@uniformdev/design-system 20.50.2-alpha.2 → 20.50.2-alpha.77
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/dist/esm/index.js +4036 -2078
- package/dist/index.d.mts +1219 -319
- package/dist/index.d.ts +1219 -319
- package/dist/index.js +4037 -2005
- package/package.json +11 -14
package/dist/index.d.ts
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
2
2
|
import { Decorator } from '@storybook/react-vite';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
|
-
import React__default, { RefObject, ReactElement, HTMLAttributes, ReactNode, ButtonHTMLAttributes, ImgHTMLAttributes, SVGProps, InputHTMLAttributes,
|
|
5
|
-
import { GroupBase, Props, MultiValue, SingleValue } from 'react-select';
|
|
4
|
+
import React__default, { RefObject, ReactElement, HTMLAttributes, ReactNode, ButtonHTMLAttributes, ImgHTMLAttributes, SVGProps, InputHTMLAttributes, HtmlHTMLAttributes, PropsWithChildren, CSSProperties, Ref, FocusEventHandler, ChangeEvent } from 'react';
|
|
5
|
+
import { GroupBase, Props, MultiValue, SingleValue, StylesConfig } from 'react-select';
|
|
6
6
|
export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionLabel, GetOptionValue, GroupBase, GroupHeadingProps, GroupProps, MenuListProps, MenuPlacement, MultiValue, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionContext, OptionProps, Options, OptionsOrGroups } from 'react-select';
|
|
7
7
|
import * as _emotion_react from '@emotion/react';
|
|
8
|
-
import { SerializedStyles } from '@emotion/react';
|
|
9
|
-
import * as _ariakit_react from '@ariakit/react';
|
|
10
|
-
import { TooltipOptions, TooltipStoreProps, TooltipProps as TooltipProps$1, ButtonProps as ButtonProps$1, MenuStoreProps, PopoverStoreState, MenuProps as MenuProps$1, Menu as Menu$1, MenuItemProps as MenuItemProps$1, PopoverProps as PopoverProps$1, PopoverProviderProps, PopoverStore, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
11
|
-
export { PopoverStore } from '@ariakit/react';
|
|
8
|
+
import { SerializedStyles, Interpolation, Theme as Theme$1 } from '@emotion/react';
|
|
12
9
|
import { IconType as IconType$2, IconBaseProps } from '@react-icons/all-files/lib';
|
|
13
10
|
import * as _react_icons_all_files from '@react-icons/all-files';
|
|
14
11
|
import { IconType as IconType$1 } from '@react-icons/all-files';
|
|
@@ -505,24 +502,40 @@ interface UseShortcutResult extends ShortcutReference {
|
|
|
505
502
|
}
|
|
506
503
|
declare function useShortcut({ disabled, handler, shortcut, macShortcut, doNotPreventDefault, activeWhenEditing, useKey, }: UseShortcutOptions): UseShortcutResult;
|
|
507
504
|
|
|
508
|
-
type
|
|
505
|
+
type Placement = 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'left' | 'left-start' | 'left-end' | 'right' | 'right-start' | 'right-end';
|
|
506
|
+
interface PopoverStore {
|
|
507
|
+
show(): void;
|
|
508
|
+
hide(): void;
|
|
509
|
+
readonly open: boolean;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
type TooltipProps = {
|
|
509
513
|
/** Content of tooltip popover */
|
|
510
514
|
title: string | React.ReactElement;
|
|
511
515
|
/** Optional ability to specify alternative placement. By default - bottom center */
|
|
512
|
-
placement?:
|
|
516
|
+
placement?: Placement;
|
|
513
517
|
/** Optional ability to control visibility of Tooltip manually, useful for showing tooltip on click instead of on hover */
|
|
514
|
-
visible?:
|
|
518
|
+
visible?: boolean | undefined;
|
|
515
519
|
/** Offset between the reference and the popover on the main axis. Use it only in special cases. */
|
|
516
|
-
gutter?:
|
|
520
|
+
gutter?: number;
|
|
517
521
|
children: ReactElement;
|
|
518
522
|
/** If the tooltip should not be rendered inside a portal */
|
|
519
523
|
withoutPortal?: boolean;
|
|
520
|
-
/**
|
|
524
|
+
/**
|
|
525
|
+
* Sets the delay time before showing the tooltip.
|
|
521
526
|
* @default 0
|
|
522
527
|
*/
|
|
523
528
|
timeout?: number;
|
|
524
|
-
|
|
525
|
-
|
|
529
|
+
/**
|
|
530
|
+
* Sets the visibility of the tooltip. This is deprecated and will be removed in the next major version.
|
|
531
|
+
* @deprecated Use `visible` instead.
|
|
532
|
+
*/
|
|
533
|
+
open?: boolean | undefined;
|
|
534
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'children'>;
|
|
535
|
+
/**
|
|
536
|
+
* Displays contextual information when hovering or focusing an element.
|
|
537
|
+
*/
|
|
538
|
+
declare function Tooltip({ children, title, placement, visible, withoutPortal, timeout, gutter, ...popupProps }: TooltipProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
526
539
|
|
|
527
540
|
/** Button sizes that are available to use with our brand */
|
|
528
541
|
type ButtonSizeProps = 'zero' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
@@ -551,7 +564,7 @@ declare const useButtonStyles: ({ size, ...props }: ButtonStylesProps) => {
|
|
|
551
564
|
btnSize: string;
|
|
552
565
|
};
|
|
553
566
|
|
|
554
|
-
type ButtonProps =
|
|
567
|
+
type ButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
555
568
|
/** sets the theme of the button
|
|
556
569
|
* @default "primary"
|
|
557
570
|
*/
|
|
@@ -587,7 +600,25 @@ type ButtonWithVariantProps = Omit<ButtonProps, 'buttonType'> & {
|
|
|
587
600
|
* Uniform Button Component
|
|
588
601
|
* @example <Button buttonType="secondary" size="md" onClick={() => alert('hello world!')}>Click me</Button>
|
|
589
602
|
*/
|
|
590
|
-
declare const Button: React$1.ForwardRefExoticComponent<(
|
|
603
|
+
declare const Button: React$1.ForwardRefExoticComponent<(ButtonProps | ButtonWithVariantProps) & React$1.RefAttributes<HTMLButtonElement>>;
|
|
604
|
+
|
|
605
|
+
type LinkButtonProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
606
|
+
/** React child node */
|
|
607
|
+
children?: React$1.ReactNode;
|
|
608
|
+
/** (optional) sets whether the link is truncated or not */
|
|
609
|
+
truncated?: boolean;
|
|
610
|
+
};
|
|
611
|
+
/**
|
|
612
|
+
* @deprecated - Beta - A button styled as a link with ghost-like appearance.
|
|
613
|
+
* Features no padding, left-aligned content, text truncation, and no background hover color.
|
|
614
|
+
* @example <LinkButton onClick={() => {}}>Click me</LinkButton>
|
|
615
|
+
*/
|
|
616
|
+
declare const LinkButton: React$1.ForwardRefExoticComponent<React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
617
|
+
/** React child node */
|
|
618
|
+
children?: React$1.ReactNode;
|
|
619
|
+
/** (optional) sets whether the link is truncated or not */
|
|
620
|
+
truncated?: boolean;
|
|
621
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
591
622
|
|
|
592
623
|
declare const rectangleRoundedIcon: IconType$1;
|
|
593
624
|
declare const cardIcon: IconType$1;
|
|
@@ -1400,8 +1431,8 @@ type ButtonWithMenuStylesProps = ButtonWithMenuDefaultStylesProps | ButtonWithMe
|
|
|
1400
1431
|
interface ActionButtonsProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'size' | 'disabled'> {
|
|
1401
1432
|
/** Takes a function for the visible button */
|
|
1402
1433
|
onButtonClick?: () => void;
|
|
1403
|
-
/** (optional)
|
|
1404
|
-
placement?:
|
|
1434
|
+
/** (optional) placement options for the expandable menu */
|
|
1435
|
+
placement?: Placement;
|
|
1405
1436
|
/** sets the button text value */
|
|
1406
1437
|
buttonText: React.ReactNode;
|
|
1407
1438
|
/** sets a leading icon supporting the button text */
|
|
@@ -1451,12 +1482,25 @@ declare const ButtonWithMenu: ({ onButtonClick, buttonText, icon, disabled, chil
|
|
|
1451
1482
|
* A string in the ISO 8601 date format: YYYY-MM-DD
|
|
1452
1483
|
*/
|
|
1453
1484
|
type IsoDateString = string;
|
|
1485
|
+
type CalendarCellCss = Interpolation<Theme$1> | null | false | undefined;
|
|
1486
|
+
/**
|
|
1487
|
+
* Optional style overrides for calendar sub-elements.
|
|
1488
|
+
*/
|
|
1489
|
+
type CalendarStyles = {
|
|
1490
|
+
/**
|
|
1491
|
+
* Returns custom styles to append to a date cell.
|
|
1492
|
+
*/
|
|
1493
|
+
calendarCell?: (date: Date) => CalendarCellCss[];
|
|
1494
|
+
};
|
|
1454
1495
|
type CalendarProps = Pick<CalendarProps$1<DateValue>, 'autoFocus' | 'isDisabled' | 'isReadOnly' | 'isInvalid'> & Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur' | 'onFocus'> & {
|
|
1455
1496
|
value: IsoDateString | null | undefined;
|
|
1456
1497
|
timeZone: string;
|
|
1457
1498
|
minValue?: IsoDateString;
|
|
1458
1499
|
maxValue?: IsoDateString;
|
|
1459
1500
|
onChange?: (value: IsoDateString) => void;
|
|
1501
|
+
styles?: CalendarStyles;
|
|
1502
|
+
withTodayButton?: boolean;
|
|
1503
|
+
isDateUnavailable?: (date: Date) => boolean;
|
|
1460
1504
|
};
|
|
1461
1505
|
/**
|
|
1462
1506
|
* A Calendar Grid which allows the user to navigate
|
|
@@ -1464,7 +1508,7 @@ type CalendarProps = Pick<CalendarProps$1<DateValue>, 'autoFocus' | 'isDisabled'
|
|
|
1464
1508
|
*
|
|
1465
1509
|
* @deprecated This component is in beta, name and props are subject to change without a major version
|
|
1466
1510
|
*/
|
|
1467
|
-
declare const Calendar: ({ value, timeZone, minValue, maxValue, onChange, autoFocus, isDisabled, isInvalid, isReadOnly, ...props }: CalendarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1511
|
+
declare const Calendar: ({ value, timeZone, minValue, maxValue, onChange, styles: stylesProp, autoFocus, isDisabled, isInvalid, isReadOnly, withTodayButton, isDateUnavailable, ...props }: CalendarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1468
1512
|
|
|
1469
1513
|
/** Callout button types available to use with our brand */
|
|
1470
1514
|
type CalloutType = 'caution' | 'danger' | 'info' | 'note' | 'success' | 'tip' | 'error';
|
|
@@ -1561,7 +1605,7 @@ declare const CardContainer: ({ bgColor, padding, withLastColumn, children, ...p
|
|
|
1561
1605
|
*/
|
|
1562
1606
|
declare const LoadingCardSkeleton: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
1563
1607
|
|
|
1564
|
-
type ChipSizeProp = 'xs' | 'sm' | 'md';
|
|
1608
|
+
type ChipSizeProp = 'xxs' | 'xs' | 'sm' | 'md';
|
|
1565
1609
|
type ChipTheme = 'accent-light' | 'accent-dark' | 'accent-alt-light' | 'accent-alt-dark' | 'neutral-light' | 'neutral-dark' | 'utility-caution' | 'utility-danger' | 'utility-info' | 'utility-success';
|
|
1566
1610
|
type ChipProps = {
|
|
1567
1611
|
icon?: IconType;
|
|
@@ -1609,15 +1653,23 @@ type DismissibleChipActionProps = {
|
|
|
1609
1653
|
declare const DismissibleChipAction: ({ onDismiss, ...props }: DismissibleChipActionProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1610
1654
|
|
|
1611
1655
|
type FilterChipSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
1612
|
-
|
|
1656
|
+
/**
|
|
1657
|
+
* Compact button used to toggle a filter on/off, optionally rendered as a
|
|
1658
|
+
* dropdown trigger. Spreads `...props` first then sets `type` last with a
|
|
1659
|
+
* fallback to `"button"` so wrappers like Base UI's `Menu.Trigger` (which can
|
|
1660
|
+
* forward `type: undefined` via `cloneElement`) cannot accidentally turn it
|
|
1661
|
+
* into a submit button inside a `<form>`. Marked with `markNativeButton` so
|
|
1662
|
+
* `Menu` knows the rendered DOM is a real `<button>` and can pass
|
|
1663
|
+
* `nativeButton={true}` to Base UI.
|
|
1664
|
+
*/
|
|
1665
|
+
declare const FilterChip: React$1.ForwardRefExoticComponent<{
|
|
1613
1666
|
leadingIcon?: IconType;
|
|
1614
1667
|
asDropdown?: boolean;
|
|
1615
1668
|
children: React.ReactNode;
|
|
1616
1669
|
dataTestId?: string;
|
|
1617
1670
|
size?: FilterChipSize;
|
|
1618
1671
|
isSelected?: boolean;
|
|
1619
|
-
} & ButtonHTMLAttributes<HTMLButtonElement
|
|
1620
|
-
declare const FilterChip: ({ leadingIcon, asDropdown, children, dataTestId, size, isSelected, ...props }: FilterChipProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1672
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
1621
1673
|
|
|
1622
1674
|
type MultilineChipProps = {
|
|
1623
1675
|
children: ReactNode;
|
|
@@ -1783,13 +1835,15 @@ type DateTimePickerProps = {
|
|
|
1783
1835
|
/** (optional) sets the base test id for each of the elements with a testid */
|
|
1784
1836
|
testId?: string;
|
|
1785
1837
|
/** (optional) sets the popover placement */
|
|
1786
|
-
placement?:
|
|
1838
|
+
placement?: Placement;
|
|
1787
1839
|
/** (optional) sets the popover offset
|
|
1788
1840
|
* @default 8
|
|
1789
1841
|
*/
|
|
1790
1842
|
offset?: number;
|
|
1791
1843
|
/** (optional) sets whether to render the popover in a portal */
|
|
1792
1844
|
portal?: boolean;
|
|
1845
|
+
/** (optional) reduces input height to match compact parameter inputs */
|
|
1846
|
+
compact?: boolean;
|
|
1793
1847
|
};
|
|
1794
1848
|
/**
|
|
1795
1849
|
* Use this context for slots within the date time picker
|
|
@@ -1809,7 +1863,7 @@ declare function useDateTimePickerContext(): {
|
|
|
1809
1863
|
* Subcomponents can manipulate the value directly by using
|
|
1810
1864
|
* the `useDateTimePickerContext()` hook.
|
|
1811
1865
|
*/
|
|
1812
|
-
declare const DateTimePicker: ({ id, label, triggerIcon, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, offset, testId, placement, portal, ...props }: DateTimePickerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1866
|
+
declare const DateTimePicker: ({ id, label, triggerIcon, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, offset, testId, placement, portal, compact, ...props }: DateTimePickerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1813
1867
|
|
|
1814
1868
|
declare function DateTimePickerSummary({ value, placeholder, }: {
|
|
1815
1869
|
value: DateTimePickerValue | null | undefined;
|
|
@@ -2048,7 +2102,7 @@ interface IconButtonProps extends Omit<ButtonProps, 'size'> {
|
|
|
2048
2102
|
/** Style for the larger sizes have not been decided yet */
|
|
2049
2103
|
size?: 'xs' | 'sm' | 'md';
|
|
2050
2104
|
}
|
|
2051
|
-
declare const IconButton: React$1.ForwardRefExoticComponent<
|
|
2105
|
+
declare const IconButton: React$1.ForwardRefExoticComponent<IconButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2052
2106
|
|
|
2053
2107
|
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
|
2054
2108
|
imgClassName?: string;
|
|
@@ -2653,8 +2707,6 @@ type IntegrationModalHeaderProps = {
|
|
|
2653
2707
|
/** (optional) sets child elements in */
|
|
2654
2708
|
menu?: React$1.ReactNode;
|
|
2655
2709
|
};
|
|
2656
|
-
type HexModalBackgroundProps = React$1.SVGAttributes<SVGElement>;
|
|
2657
|
-
declare const HexModalBackground: ({ ...props }: HexModalBackgroundProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2658
2710
|
/** Uniform Integration Modal Header
|
|
2659
2711
|
* @example <IntegrationModalHeader icon="/icon.svg" name="name" />
|
|
2660
2712
|
*/
|
|
@@ -2719,210 +2771,7 @@ type KeyValueInputProps<TValue extends string = string> = {
|
|
|
2719
2771
|
*/
|
|
2720
2772
|
declare const KeyValueInput: <TValue extends string = string>({ value, onChange, label, newItemDefault, keyLabel, valueLabel, iconLabel, keyInfoPopover, valueInfoPopover, iconInfoPopover, disabled, errors, onFocusChange, showIconColumn, renderIconSelector, }: KeyValueInputProps<TValue>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2721
2773
|
|
|
2722
|
-
|
|
2723
|
-
/** sets child components in the aside / supporting column */
|
|
2724
|
-
sidebar?: ReactNode;
|
|
2725
|
-
/** sets child components in the section / main content column */
|
|
2726
|
-
children: ReactNode;
|
|
2727
|
-
/** Makes the sidebar sticky to the top of the container
|
|
2728
|
-
* @default false
|
|
2729
|
-
*/
|
|
2730
|
-
isStickyAside?: boolean;
|
|
2731
|
-
};
|
|
2732
|
-
declare const AsideAndSectionLayout: ({ sidebar, children, isStickyAside, }: AsideAndSectionLayout) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2733
|
-
|
|
2734
|
-
type SpacingProp = '0' | '2xs' | 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl';
|
|
2735
|
-
type BackgroundColorProp = 'transparent' | 'white' | 'gray-50' | 'gray-100' | 'gray-200' | 'gray-300' | 'gray-400' | 'gray-500' | 'gray-600' | 'gray-700' | 'gray-800' | 'gray-900';
|
|
2736
|
-
type HtmlTagProps = 'div' | 'section' | 'article' | 'aside' | 'span';
|
|
2737
|
-
type BorderRadiusProps = 'rounded-sm' | 'rounded-base' | 'rounded-md';
|
|
2738
|
-
type CommonContainerProps = {
|
|
2739
|
-
/** sets the background color of the element */
|
|
2740
|
-
backgroundColor?: BackgroundColorProp;
|
|
2741
|
-
/** sets border: 1px solid var(--gray-300)*/
|
|
2742
|
-
border?: boolean;
|
|
2743
|
-
/** sets the border radius of the element */
|
|
2744
|
-
rounded?: BorderRadiusProps;
|
|
2745
|
-
/** sets the padding of the element */
|
|
2746
|
-
padding?: string;
|
|
2747
|
-
/** sets the margin of the element */
|
|
2748
|
-
margin?: string;
|
|
2749
|
-
};
|
|
2750
|
-
type RhythmProps = React.HTMLAttributes<HTMLDivElement | HTMLFieldSetElement> & {
|
|
2751
|
-
/** sets the wrapping html tag
|
|
2752
|
-
* @default 'div'
|
|
2753
|
-
*/
|
|
2754
|
-
tag?: HtmlTagProps | 'fieldset';
|
|
2755
|
-
/** sets the spacing between each element
|
|
2756
|
-
* @default 'div'
|
|
2757
|
-
*/
|
|
2758
|
-
gap?: SpacingProp;
|
|
2759
|
-
/** sets the alignment of elements
|
|
2760
|
-
* @default normal browser behaviour
|
|
2761
|
-
*/
|
|
2762
|
-
align?: CSSProperties['alignItems'];
|
|
2763
|
-
justify?: CSSProperties['justifyContent'];
|
|
2764
|
-
children: React.ReactNode;
|
|
2765
|
-
/** for use when fieldset is applied to the tag prop */
|
|
2766
|
-
disabled?: boolean;
|
|
2767
|
-
ref?: Ref<HTMLDivElement>;
|
|
2768
|
-
};
|
|
2769
|
-
|
|
2770
|
-
type ContainerProps = CommonContainerProps & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
2771
|
-
tag?: HtmlTagProps;
|
|
2772
|
-
children: React$1.ReactNode;
|
|
2773
|
-
};
|
|
2774
|
-
declare const Container: ({ tag, backgroundColor, border, rounded, padding, margin, children, ...props }: ContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2775
|
-
|
|
2776
|
-
declare const HorizontalRhythm: ({ align, justify, tag, gap, children, ref, ...props }: RhythmProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2777
|
-
|
|
2778
|
-
type TwoColumnLayoutProps = {
|
|
2779
|
-
/** sets the full bleed background colour
|
|
2780
|
-
* @default 'var(--white)'
|
|
2781
|
-
*/
|
|
2782
|
-
bgColor?: 'var(--white)' | 'var(--gray-50)';
|
|
2783
|
-
/** sets child components in the aside / supporting column */
|
|
2784
|
-
supportingContent?: ReactNode;
|
|
2785
|
-
/** sets child components in the section / main content column */
|
|
2786
|
-
children?: ReactNode;
|
|
2787
|
-
/** inverts the layout placing the aside container on the left
|
|
2788
|
-
* @default false
|
|
2789
|
-
*/
|
|
2790
|
-
invertLayout?: boolean;
|
|
2791
|
-
};
|
|
2792
|
-
/** @example <TwoColumnLayout supportingContent={<div>supporting content</div>}><h1>title</h1></TwoColumnLayout> */
|
|
2793
|
-
declare const TwoColumnLayout: ({ bgColor, invertLayout, supportingContent, children, }: TwoColumnLayoutProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2794
|
-
|
|
2795
|
-
declare const VerticalRhythm: ({ align, justify, tag, gap, children, ref, ...props }: RhythmProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2796
|
-
|
|
2797
|
-
type LimitsBarProps = {
|
|
2798
|
-
/** The current value of used limits */
|
|
2799
|
-
current: number;
|
|
2800
|
-
/** The maximum number of limits */
|
|
2801
|
-
max: number;
|
|
2802
|
-
/** @deprecated No longer used */
|
|
2803
|
-
label?: string;
|
|
2804
|
-
/** Optional popover content for info icon */
|
|
2805
|
-
popoverContent?: ReactNode;
|
|
2806
|
-
};
|
|
2807
|
-
/**
|
|
2808
|
-
* Uniform Limits Bar Component
|
|
2809
|
-
* @example <LimitsBar current={3} max={5} />
|
|
2810
|
-
*/
|
|
2811
|
-
declare const LimitsBar: ({ current, max, popoverContent }: LimitsBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2812
|
-
|
|
2813
|
-
type LinkListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
2814
|
-
/** sets the title field */
|
|
2815
|
-
title: string;
|
|
2816
|
-
/** (optional) sets react child component */
|
|
2817
|
-
children?: React$1.ReactNode;
|
|
2818
|
-
};
|
|
2819
|
-
declare const LinkList: ({ title, children, ...props }: LinkListProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2820
|
-
|
|
2821
|
-
type ScrollableListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
2822
|
-
/** (optional) sets the label value */
|
|
2823
|
-
label?: string;
|
|
2824
|
-
/** (optional) allows users to add child components within the container */
|
|
2825
|
-
children?: React$1.ReactNode;
|
|
2826
|
-
};
|
|
2827
|
-
/**
|
|
2828
|
-
* Component that sets the base structure for scrollable content in a max height container
|
|
2829
|
-
* @example <ScrollableList label="allowed content types"><button>say hello</button></ScrollableList>
|
|
2830
|
-
*/
|
|
2831
|
-
declare const ScrollableList: ({ label, children, ...props }: ScrollableListProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2832
|
-
|
|
2833
|
-
type ScrollableListContainerProps = {
|
|
2834
|
-
/** sets whether to show or hide the shadow around the element
|
|
2835
|
-
* @default 'false'
|
|
2836
|
-
*/
|
|
2837
|
-
disableShadow?: boolean;
|
|
2838
|
-
/** sets the active style of the button */
|
|
2839
|
-
active: boolean;
|
|
2840
|
-
};
|
|
2841
|
-
|
|
2842
|
-
type ScrollableItemProps = {
|
|
2843
|
-
/** sets an element within the label > span element */
|
|
2844
|
-
icon?: React.ReactElement;
|
|
2845
|
-
/**sets the label value */
|
|
2846
|
-
label: string | React.ReactElement;
|
|
2847
|
-
/** sets a data-testid on the label */
|
|
2848
|
-
labelTestId?: string;
|
|
2849
|
-
/** recommended to use a form input element of type radio or checkbox */
|
|
2850
|
-
children: React.ReactNode;
|
|
2851
|
-
} & ScrollableListContainerProps;
|
|
2852
|
-
/** @example <ScrollableListInputItem label="my label" active={true}><input type="radio" name="age" /></ScrollableListInputItem>*/
|
|
2853
|
-
declare const ScrollableListInputItem: ({ label, icon, active, disableShadow, children, labelTestId, ...props }: ScrollableItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2854
|
-
|
|
2855
|
-
type ScrollableListItemProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
2856
|
-
/** sets the button text value */
|
|
2857
|
-
buttonText: string;
|
|
2858
|
-
icon?: React$1.ReactElement;
|
|
2859
|
-
} & ScrollableListContainerProps;
|
|
2860
|
-
/**
|
|
2861
|
-
* Component used within <ScrollableList /> for adding interactive button components with predefined styles
|
|
2862
|
-
* @example <ScrollableListItem buttontext="my button" active={false} />
|
|
2863
|
-
*/
|
|
2864
|
-
declare const ScrollableListItem: ({ buttonText, icon, active, disableShadow, ...props }: ScrollableListItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2865
|
-
|
|
2866
|
-
type LoadingIndicatorProps = {
|
|
2867
|
-
color?: 'gray' | 'accent-alt';
|
|
2868
|
-
size?: 'lg' | 'sm';
|
|
2869
|
-
} & Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
|
|
2870
|
-
/**
|
|
2871
|
-
* Loading Indicator
|
|
2872
|
-
* @example <LoadingIndicator />
|
|
2873
|
-
*/
|
|
2874
|
-
declare const LoadingIndicator: ({ size, color, ...props }: LoadingIndicatorProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2875
|
-
|
|
2876
|
-
interface LoadingOverlayProps {
|
|
2877
|
-
/** sets whether to display the loading overlay components */
|
|
2878
|
-
isActive: boolean;
|
|
2879
|
-
/** (optional) type that sets a text value or React component under the loading icon */
|
|
2880
|
-
statusMessage?: string | ReactNode;
|
|
2881
|
-
/** (optional) the z-index value of the overlay
|
|
2882
|
-
* @default 9999
|
|
2883
|
-
*/
|
|
2884
|
-
zIndex?: number;
|
|
2885
|
-
/** (optional) sets the width and height of the loader
|
|
2886
|
-
* @default 128
|
|
2887
|
-
*/
|
|
2888
|
-
loaderSize?: number;
|
|
2889
|
-
/** (optional) sets the loading overlay background color
|
|
2890
|
-
* @default 'var(--white)'
|
|
2891
|
-
*/
|
|
2892
|
-
overlayBackgroundColor?: 'transparent' | 'var(--white)';
|
|
2893
|
-
/** (optional) if set to true, the animation of the loading indicator is paused
|
|
2894
|
-
* @default false
|
|
2895
|
-
*/
|
|
2896
|
-
isPaused?: boolean;
|
|
2897
|
-
/** (optional) aligns the content of the overlay to the top instead of having it centered
|
|
2898
|
-
* @default false
|
|
2899
|
-
*/
|
|
2900
|
-
isTopAligned?: boolean;
|
|
2901
|
-
children?: React.ReactNode;
|
|
2902
|
-
/** (optional) sets the position of the overlay
|
|
2903
|
-
* @default 'absolute'
|
|
2904
|
-
*/
|
|
2905
|
-
position?: 'absolute' | 'fixed';
|
|
2906
|
-
}
|
|
2907
|
-
/**
|
|
2908
|
-
* Loading Overlay.
|
|
2909
|
-
* NOTE: the container/parent element must have a non-static `position` value for the overlay to work properly.
|
|
2910
|
-
* @example <LoadingOverlay isActive={true} statusMessage="Loading..." />
|
|
2911
|
-
*/
|
|
2912
|
-
declare const LoadingOverlay: ({ isActive, statusMessage, zIndex, loaderSize, overlayBackgroundColor, isTopAligned, isPaused, children, position, }: LoadingOverlayProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2913
|
-
interface LoadingIconProps extends HTMLAttributes<SVGSVGElement> {
|
|
2914
|
-
/** (optional) prop that sets a number value for the height of the icon */
|
|
2915
|
-
width?: number;
|
|
2916
|
-
/** (optional) prop that sets a number value for the width of the icon */
|
|
2917
|
-
height?: number;
|
|
2918
|
-
}
|
|
2919
|
-
/**
|
|
2920
|
-
* Loading Icon
|
|
2921
|
-
* @example <LoadingIcon height={128} width={128} />
|
|
2922
|
-
*/
|
|
2923
|
-
declare const LoadingIcon: ({ height, width, ...props }: LoadingIconProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2924
|
-
|
|
2925
|
-
interface DropdownStyleMenuTriggerProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
2774
|
+
interface DropdownStyleMenuTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
2926
2775
|
children: React.ReactNode;
|
|
2927
2776
|
/** sets the background color of the button */
|
|
2928
2777
|
bgColor?: string;
|
|
@@ -2931,17 +2780,29 @@ interface DropdownStyleMenuTriggerProps extends React.HTMLAttributes<HTMLButtonE
|
|
|
2931
2780
|
*/
|
|
2932
2781
|
variant?: 'ghost' | 'outline';
|
|
2933
2782
|
}
|
|
2934
|
-
/**
|
|
2783
|
+
/**
|
|
2784
|
+
* Renders a dropdown menu style menu trigger button. Marked with
|
|
2785
|
+
* `markNativeButton` so the design system's `Menu` knows to opt into Base UI's
|
|
2786
|
+
* native-button code path even though the React element type is a function
|
|
2787
|
+
* component.
|
|
2788
|
+
*/
|
|
2935
2789
|
declare const DropdownStyleMenuTrigger: React$1.ForwardRefExoticComponent<DropdownStyleMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2936
2790
|
|
|
2937
2791
|
declare const legacyPlacements: readonly ["auto", "auto-start", "auto-end"];
|
|
2938
2792
|
type LegacyPlacement = (typeof legacyPlacements)[number];
|
|
2939
|
-
|
|
2940
|
-
|
|
2793
|
+
/**
|
|
2794
|
+
* @internal Hook used by MenuItem to detect when it is being rendered as the
|
|
2795
|
+
* `render` element of a Base UI SubmenuTrigger, so it can render a plain styled
|
|
2796
|
+
* div instead of `<BaseUIMenu.Item>` (which conflicts with SubmenuTrigger's own
|
|
2797
|
+
* composite-store registration and breaks click handling on submenu children).
|
|
2798
|
+
*/
|
|
2799
|
+
declare function useIsSubmenuTriggerMode(): boolean;
|
|
2800
|
+
interface MenuProps extends Pick<React$1.HTMLAttributes<HTMLDivElement>, 'className' | 'id' | 'style'> {
|
|
2801
|
+
/** The component that triggers the menu functionality */
|
|
2941
2802
|
menuTrigger: React$1.ReactElement & React$1.RefAttributes<any>;
|
|
2942
|
-
/** (optional)
|
|
2943
|
-
placement?:
|
|
2944
|
-
/** (optional) allows users to set additional class names
|
|
2803
|
+
/** (optional) placement options for the expandable menu */
|
|
2804
|
+
placement?: Placement | LegacyPlacement;
|
|
2805
|
+
/** (optional) allows users to set additional class names */
|
|
2945
2806
|
menuItemsContainerCssClasses?: SerializedStyles | string;
|
|
2946
2807
|
/** (optional) allows users to add child elements */
|
|
2947
2808
|
children?: React$1.ReactNode;
|
|
@@ -2956,7 +2817,7 @@ interface MenuProps extends MenuProps$1 {
|
|
|
2956
2817
|
* If you need to disable this functionality, set this prop to true.
|
|
2957
2818
|
*/
|
|
2958
2819
|
disableAutoSeparatorManagement?: boolean;
|
|
2959
|
-
/**
|
|
2820
|
+
/** Sets whether to use a React portal rendering or not. */
|
|
2960
2821
|
withoutPortal?: boolean;
|
|
2961
2822
|
/** (optional) sets the test id attribute */
|
|
2962
2823
|
testId?: string;
|
|
@@ -2965,12 +2826,47 @@ interface MenuProps extends MenuProps$1 {
|
|
|
2965
2826
|
* this is not compatible with nested menus that expand to the left or right of the menu
|
|
2966
2827
|
*/
|
|
2967
2828
|
maxMenuHeight?: string;
|
|
2968
|
-
|
|
2969
|
-
|
|
2829
|
+
/** Optional container element for the portal */
|
|
2830
|
+
portalElement?: HTMLElement | null;
|
|
2831
|
+
/** Sets the menu size
|
|
2970
2832
|
* it's recommended to use the same size for all menu items in a menu
|
|
2971
2833
|
* @default 'base'
|
|
2972
2834
|
*/
|
|
2973
2835
|
size?: 'small' | 'base';
|
|
2836
|
+
/** (optional) disables the menu trigger so the menu cannot be opened */
|
|
2837
|
+
disabled?: boolean;
|
|
2838
|
+
/** Controls the open state of the menu (controlled mode) */
|
|
2839
|
+
open?: boolean;
|
|
2840
|
+
/** Called when the menu closes */
|
|
2841
|
+
onClose?: () => void;
|
|
2842
|
+
/** Called when the menu open state changes */
|
|
2843
|
+
onOpenChange?: (open: boolean) => void;
|
|
2844
|
+
/** Distance between the trigger and the menu popup in pixels */
|
|
2845
|
+
gutter?: number;
|
|
2846
|
+
/** Offset along the alignment axis in pixels */
|
|
2847
|
+
shift?: number;
|
|
2848
|
+
/**
|
|
2849
|
+
* Returns a custom anchor rect for positioning the menu.
|
|
2850
|
+
* Used by QuickFilter for custom anchor positioning.
|
|
2851
|
+
*/
|
|
2852
|
+
getAnchorRect?: (anchor: HTMLElement | null) => {
|
|
2853
|
+
x?: number;
|
|
2854
|
+
y?: number;
|
|
2855
|
+
width?: number;
|
|
2856
|
+
height?: number;
|
|
2857
|
+
};
|
|
2858
|
+
/**
|
|
2859
|
+
* Controls when the menu repositions.
|
|
2860
|
+
* When provided, disables automatic anchor tracking after initial placement.
|
|
2861
|
+
*/
|
|
2862
|
+
updatePosition?: (props: {
|
|
2863
|
+
updatePosition: () => void;
|
|
2864
|
+
}) => void;
|
|
2865
|
+
/**
|
|
2866
|
+
* @deprecated use `withoutPortal={false}` instead (default behavior).
|
|
2867
|
+
* Kept for backward compatibility.
|
|
2868
|
+
*/
|
|
2869
|
+
portal?: boolean;
|
|
2974
2870
|
}
|
|
2975
2871
|
/**
|
|
2976
2872
|
* Component used for creating clickable menus
|
|
@@ -2982,7 +2878,7 @@ interface MenuProps extends MenuProps$1 {
|
|
|
2982
2878
|
* <MenuItem>Item 1</MenuItem>
|
|
2983
2879
|
* </Menu>
|
|
2984
2880
|
*/
|
|
2985
|
-
declare const Menu: React$1.ForwardRefExoticComponent<
|
|
2881
|
+
declare const Menu: React$1.ForwardRefExoticComponent<MenuProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
2986
2882
|
|
|
2987
2883
|
type MenuGroupProps = {
|
|
2988
2884
|
/** Title for the menu group. If undefined or an empty string, the group will render as normal menu */
|
|
@@ -2998,7 +2894,7 @@ declare const MenuGroup: ({ title, children }: MenuGroupProps) => _emotion_react
|
|
|
2998
2894
|
* accent-alt - AI color (accent-alt-dark). DOES NOT change the text - only the icon color!
|
|
2999
2895
|
*/
|
|
3000
2896
|
type MenuItemTextThemeProps = 'base' | 'red' | 'accent-alt';
|
|
3001
|
-
type MenuItemProps =
|
|
2897
|
+
type MenuItemProps = Pick<React$1.HTMLAttributes<HTMLDivElement>, 'className' | 'style' | 'tabIndex' | 'id' | 'title' | 'onMouseEnter' | 'onMouseLeave'> & {
|
|
3002
2898
|
/**
|
|
3003
2899
|
* Sets child elements within the component.
|
|
3004
2900
|
* Can be omitted when using the `render` prop
|
|
@@ -3006,6 +2902,11 @@ type MenuItemProps = MenuItemProps$1 & {
|
|
|
3006
2902
|
children?: ChildFunction | React$1.ReactNode;
|
|
3007
2903
|
/** (optional) set whether to hide the menu after a click action */
|
|
3008
2904
|
hideMenuOnClick?: boolean;
|
|
2905
|
+
/**
|
|
2906
|
+
* @deprecated Use `hideMenuOnClick` instead.
|
|
2907
|
+
* Alias kept for backward compatibility.
|
|
2908
|
+
*/
|
|
2909
|
+
hideOnClick?: boolean;
|
|
3009
2910
|
/** (optional) set an icon along side the item text, we recommend using the MenuItemIcon component
|
|
3010
2911
|
* @example <MenuItemIcon icon="add-r" />
|
|
3011
2912
|
*/
|
|
@@ -3026,8 +2927,18 @@ type MenuItemProps = MenuItemProps$1 & {
|
|
|
3026
2927
|
* be automatically set to invoke the shortcut's handler function.
|
|
3027
2928
|
*/
|
|
3028
2929
|
shortcut?: ShortcutReference;
|
|
2930
|
+
/** Click handler for the menu item */
|
|
2931
|
+
onClick?: React$1.MouseEventHandler<HTMLElement>;
|
|
2932
|
+
/** Whether the menu item is disabled */
|
|
2933
|
+
disabled?: boolean;
|
|
2934
|
+
/** Overrides the rendered element */
|
|
2935
|
+
render?: React$1.ReactElement;
|
|
2936
|
+
/** Ref forwarded to the root element */
|
|
2937
|
+
ref?: React$1.Ref<HTMLDivElement>;
|
|
2938
|
+
/** Overrides the text label to use when the item is matched during keyboard text navigation */
|
|
2939
|
+
label?: string;
|
|
3029
2940
|
};
|
|
3030
|
-
type ChildFunction = (menuItemProps:
|
|
2941
|
+
type ChildFunction = (menuItemProps: Record<string, unknown>) => React$1.ReactElement | null;
|
|
3031
2942
|
/**
|
|
3032
2943
|
* MenuItem Component used along side <Menu /> component
|
|
3033
2944
|
* @example <MenuItem onClick={() => alert('menu item was clicked')} icon={<RedClose />}>Remove Link</MenuItem>
|
|
@@ -3035,8 +2946,8 @@ type ChildFunction = (menuItemProps: MenuItemProps$1) => React$1.ReactElement |
|
|
|
3035
2946
|
declare const MenuItem: React$1.ForwardRefExoticComponent<Omit<MenuItemProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3036
2947
|
/**
|
|
3037
2948
|
* MenuItem Component for headless use outside <Menu /> component
|
|
3038
|
-
* Use only if adapting Uniform menu item appearance to a non-
|
|
3039
|
-
* This is required because
|
|
2949
|
+
* Use only if adapting Uniform menu item appearance to a non-Base UI menu.
|
|
2950
|
+
* This is required because Base UI does not let you use MenuItem outside of a Menu component.
|
|
3040
2951
|
* @example <MenuItemInner onClick={() => alert('menu item was clicked')} icon={<RedClose />}>Remove Link</MenuItem>
|
|
3041
2952
|
*/
|
|
3042
2953
|
declare const MenuItemInner: React$1.FC<MenuItemProps>;
|
|
@@ -3059,10 +2970,20 @@ declare const MenuItemSeparator: ({ ...props }: HtmlHTMLAttributes<HTMLHRElement
|
|
|
3059
2970
|
|
|
3060
2971
|
type MenuButtonProp = {
|
|
3061
2972
|
children: React.ReactNode;
|
|
3062
|
-
} &
|
|
2973
|
+
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
2974
|
+
/**
|
|
2975
|
+
* Bare `<button type="button">` styled wrapper used as a Menu trigger.
|
|
2976
|
+
*
|
|
2977
|
+
* The `type` attribute is set after `...props` with a fallback so wrappers
|
|
2978
|
+
* such as Base UI's `Menu.Trigger` (which can forward `type: undefined` via
|
|
2979
|
+
* `cloneElement`) cannot accidentally turn this into a submit button when
|
|
2980
|
+
* placed inside a `<form>`. Marked with `markNativeButton` so the design
|
|
2981
|
+
* system's `Menu` component knows to opt into Base UI's native-button code
|
|
2982
|
+
* path.
|
|
2983
|
+
*/
|
|
3063
2984
|
declare const MenuButton: React$1.ForwardRefExoticComponent<{
|
|
3064
2985
|
children: React.ReactNode;
|
|
3065
|
-
} &
|
|
2986
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3066
2987
|
type MenuThreeDotsProps = {
|
|
3067
2988
|
/** sets the aria-label and title value on the button
|
|
3068
2989
|
* @default 'More options'
|
|
@@ -3073,7 +2994,12 @@ type MenuThreeDotsProps = {
|
|
|
3073
2994
|
*/
|
|
3074
2995
|
iconSize?: string;
|
|
3075
2996
|
disabled?: boolean;
|
|
3076
|
-
} &
|
|
2997
|
+
} & ButtonHTMLAttributes<HTMLButtonElement>;
|
|
2998
|
+
/**
|
|
2999
|
+
* Three-dot ("more options") Menu trigger. Marked as a native-button trigger
|
|
3000
|
+
* so `Menu` reports `nativeButton={true}` to Base UI even though it is a
|
|
3001
|
+
* function component (Base UI inspects the React element's outer `type`).
|
|
3002
|
+
*/
|
|
3077
3003
|
declare const MenuThreeDots: React$1.ForwardRefExoticComponent<{
|
|
3078
3004
|
/** sets the aria-label and title value on the button
|
|
3079
3005
|
* @default 'More options'
|
|
@@ -3084,14 +3010,18 @@ declare const MenuThreeDots: React$1.ForwardRefExoticComponent<{
|
|
|
3084
3010
|
*/
|
|
3085
3011
|
iconSize?: string;
|
|
3086
3012
|
disabled?: boolean;
|
|
3087
|
-
} &
|
|
3013
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3014
|
+
/**
|
|
3015
|
+
* Select-style Menu trigger that renders the current value with a chevron.
|
|
3016
|
+
* Marked as a native-button trigger for the same reason as `MenuThreeDots`.
|
|
3017
|
+
*/
|
|
3088
3018
|
declare const MenuSelect: React$1.ForwardRefExoticComponent<{
|
|
3089
3019
|
/** sets the size of the menu select
|
|
3090
3020
|
* @default 'base'
|
|
3091
3021
|
*/
|
|
3092
3022
|
size?: "xs" | "sm" | "base" | "md" | "lg";
|
|
3093
3023
|
children: React.ReactNode;
|
|
3094
|
-
} &
|
|
3024
|
+
} & ButtonHTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
3095
3025
|
|
|
3096
3026
|
type SearchableMenuProps = {
|
|
3097
3027
|
/** Note: this is pre-debounced for your handling enjoyment */
|
|
@@ -3102,6 +3032,8 @@ type SearchableMenuProps = {
|
|
|
3102
3032
|
disableSearch?: boolean;
|
|
3103
3033
|
/** Sets the placeholder in the search input */
|
|
3104
3034
|
searchPlaceholder?: string;
|
|
3035
|
+
/** Called when Enter is pressed in the search input and no highlighted menu item handles the event */
|
|
3036
|
+
onSearchEnterKeyDown?: () => void;
|
|
3105
3037
|
} & MenuProps;
|
|
3106
3038
|
/**
|
|
3107
3039
|
* Searchable menu allows searching through its menu items
|
|
@@ -3109,9 +3041,445 @@ type SearchableMenuProps = {
|
|
|
3109
3041
|
declare const SearchableMenu: (props: SearchableMenuProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3110
3042
|
|
|
3111
3043
|
interface SelectableMenuItemProps extends PropsWithChildren<Omit<MenuItemProps, 'children'>> {
|
|
3044
|
+
/** whether the menu item is selected */
|
|
3112
3045
|
selected: boolean;
|
|
3046
|
+
/** the styles to use for the selectable menu item
|
|
3047
|
+
* @default 'default'
|
|
3048
|
+
*/
|
|
3049
|
+
selectStyles?: 'default' | 'checkbox-select';
|
|
3050
|
+
/** whether the menu item is selectable
|
|
3051
|
+
* @default true
|
|
3052
|
+
*/
|
|
3053
|
+
isSelectable?: boolean;
|
|
3054
|
+
}
|
|
3055
|
+
/**
|
|
3056
|
+
* A {@link MenuItem} that displays a selected state via a leading check icon.
|
|
3057
|
+
*
|
|
3058
|
+
* The component forwards refs to the underlying menu item DOM node so that
|
|
3059
|
+
* Base UI's `SubmenuTrigger` (which clones its `render` element and attaches a
|
|
3060
|
+
* ref for positioning/focus management) works correctly when a
|
|
3061
|
+
* SelectableMenuItem is used as a submenu trigger.
|
|
3062
|
+
*/
|
|
3063
|
+
declare const SelectableMenuItem: React$1.ForwardRefExoticComponent<Omit<SelectableMenuItemProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
3064
|
+
|
|
3065
|
+
type SwatchSize = 'default' | 'small';
|
|
3066
|
+
type SwatchVariant = 'swatch-default' | 'swatch-red' | 'swatch-orange' | 'swatch-yellow' | 'swatch-green' | 'swatch-blue' | 'swatch-purple' | 'swatch-pink' | 'swatch-brown' | 'swatch-gray';
|
|
3067
|
+
type SwatchProps = {
|
|
3068
|
+
/** sets the size of the swatch
|
|
3069
|
+
* @default 'default'
|
|
3070
|
+
*/
|
|
3071
|
+
size?: SwatchSize;
|
|
3072
|
+
/** sets the color variant of the swatch
|
|
3073
|
+
* @default 'swatch-default'
|
|
3074
|
+
*/
|
|
3075
|
+
variant?: SwatchVariant;
|
|
3076
|
+
/** sets the tooltip of the swatch
|
|
3077
|
+
* @default undefined
|
|
3078
|
+
*/
|
|
3079
|
+
tooltip?: string;
|
|
3080
|
+
/** sets the test id of the swatch
|
|
3081
|
+
* @default 'swatch'
|
|
3082
|
+
*/
|
|
3083
|
+
testId?: string;
|
|
3084
|
+
};
|
|
3085
|
+
/** @example <Swatch variant="swatch-blue" size="default" /> */
|
|
3086
|
+
declare const Swatch: ({ size, variant, tooltip, testId, }: SwatchProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3087
|
+
|
|
3088
|
+
/** Swatch color CSS custom properties
|
|
3089
|
+
* Exports CSS variables for all swatch variants that can be used in other components.
|
|
3090
|
+
* Each variant has --swatch-{variant}-bg and --swatch-{variant}-border variables.
|
|
3091
|
+
* @example <div css={swatchColors}></div>
|
|
3092
|
+
* @example css-in-js my-component { ${swatchColors} }
|
|
3093
|
+
*/
|
|
3094
|
+
declare const swatchColors: _emotion_react.SerializedStyles;
|
|
3095
|
+
/**
|
|
3096
|
+
* Swatch variant styles as plain objects.
|
|
3097
|
+
* Works with both Emotion's css prop and react-select's styles API.
|
|
3098
|
+
* @example <div css={swatchVariant['swatch-blue']}></div>
|
|
3099
|
+
* @example styles={{ multiValue: (base, { data }) => ({ ...base, ...swatchVariant[data.color] }) }}
|
|
3100
|
+
*/
|
|
3101
|
+
declare const swatchVariant: {
|
|
3102
|
+
readonly 'swatch-default': {
|
|
3103
|
+
readonly '--variant-bg': "var(--swatch-default-bg)";
|
|
3104
|
+
readonly '--variant-border': "var(--swatch-default-border)";
|
|
3105
|
+
};
|
|
3106
|
+
readonly 'swatch-gray': {
|
|
3107
|
+
readonly '--variant-bg': "var(--swatch-gray-bg)";
|
|
3108
|
+
readonly '--variant-border': "var(--swatch-gray-border)";
|
|
3109
|
+
};
|
|
3110
|
+
readonly 'swatch-brown': {
|
|
3111
|
+
readonly '--variant-bg': "var(--swatch-brown-bg)";
|
|
3112
|
+
readonly '--variant-border': "var(--swatch-brown-border)";
|
|
3113
|
+
};
|
|
3114
|
+
readonly 'swatch-orange': {
|
|
3115
|
+
readonly '--variant-bg': "var(--swatch-orange-bg)";
|
|
3116
|
+
readonly '--variant-border': "var(--swatch-orange-border)";
|
|
3117
|
+
};
|
|
3118
|
+
readonly 'swatch-yellow': {
|
|
3119
|
+
readonly '--variant-bg': "var(--swatch-yellow-bg)";
|
|
3120
|
+
readonly '--variant-border': "var(--swatch-yellow-border)";
|
|
3121
|
+
};
|
|
3122
|
+
readonly 'swatch-green': {
|
|
3123
|
+
readonly '--variant-bg': "var(--swatch-green-bg)";
|
|
3124
|
+
readonly '--variant-border': "var(--swatch-green-border)";
|
|
3125
|
+
};
|
|
3126
|
+
readonly 'swatch-blue': {
|
|
3127
|
+
readonly '--variant-bg': "var(--swatch-blue-bg)";
|
|
3128
|
+
readonly '--variant-border': "var(--swatch-blue-border)";
|
|
3129
|
+
};
|
|
3130
|
+
readonly 'swatch-purple': {
|
|
3131
|
+
readonly '--variant-bg': "var(--swatch-purple-bg)";
|
|
3132
|
+
readonly '--variant-border': "var(--swatch-purple-border)";
|
|
3133
|
+
};
|
|
3134
|
+
readonly 'swatch-pink': {
|
|
3135
|
+
readonly '--variant-bg': "var(--swatch-pink-bg)";
|
|
3136
|
+
readonly '--variant-border': "var(--swatch-pink-border)";
|
|
3137
|
+
};
|
|
3138
|
+
readonly 'swatch-red': {
|
|
3139
|
+
readonly '--variant-bg': "var(--swatch-red-bg)";
|
|
3140
|
+
readonly '--variant-border': "var(--swatch-red-border)";
|
|
3141
|
+
};
|
|
3142
|
+
};
|
|
3143
|
+
|
|
3144
|
+
/**
|
|
3145
|
+
* SwatchComboBoxLabelStyles provides custom styles for react-select's multiValue and multiValueLabel.
|
|
3146
|
+
* Dynamically applies color based on each option's color property.
|
|
3147
|
+
* @returns A StylesConfig object with customized styles.
|
|
3148
|
+
*/
|
|
3149
|
+
declare const SwatchComboBoxLabelStyles: <TOption, IsMulti extends boolean = boolean, TGroup extends ComboBoxGroupBase<TOption> = ComboBoxGroupBase<TOption>>() => StylesConfig<TOption, IsMulti, TGroup>;
|
|
3150
|
+
declare function SwatchComboBox<TOption = InputComboBoxOption & {
|
|
3151
|
+
color: SwatchVariant;
|
|
3152
|
+
}, IsMulti extends boolean = false, TGroup extends ComboBoxGroupBase<TOption> = ComboBoxGroupBase<TOption>>({ labelTitle, caption, isMulti, ...props }: InputComboBoxProps<TOption, IsMulti, TGroup> & {
|
|
3153
|
+
labelTitle?: string;
|
|
3154
|
+
caption?: string;
|
|
3155
|
+
isMulti?: boolean;
|
|
3156
|
+
}): _emotion_react_jsx_runtime.JSX.Element;
|
|
3157
|
+
|
|
3158
|
+
type SwatchLabelProps = {
|
|
3159
|
+
/** Sets the color variant of the swatch label
|
|
3160
|
+
* @default 'swatch-default'
|
|
3161
|
+
*/
|
|
3162
|
+
variant?: SwatchVariant;
|
|
3163
|
+
/** The text to display inside the swatch label */
|
|
3164
|
+
label: string;
|
|
3165
|
+
/** The size of the swatch label
|
|
3166
|
+
* @default 'default'
|
|
3167
|
+
*/
|
|
3168
|
+
size?: 'xs' | 'sm' | 'md';
|
|
3169
|
+
/** The right slot to display inside the swatch label */
|
|
3170
|
+
rightSlot?: React.ReactNode;
|
|
3171
|
+
/** The tooltip to display inside the swatch label */
|
|
3172
|
+
tooltip?: string | React.ReactElement;
|
|
3173
|
+
/** The left slot to display inside the swatch label */
|
|
3174
|
+
leftSlot?: React.ReactNode;
|
|
3175
|
+
};
|
|
3176
|
+
/**
|
|
3177
|
+
* A colored label component that uses the same color variants as Swatch.
|
|
3178
|
+
* @example <SwatchLabel variant="swatch-blue" label="Blue Label" />
|
|
3179
|
+
*/
|
|
3180
|
+
declare const SwatchLabel: ({ variant, size, label, rightSlot, tooltip, leftSlot, }: SwatchLabelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3181
|
+
declare const SwatchLabelRemoveButton: ({ onRemove, size, }: {
|
|
3182
|
+
/** The function to call when the remove button is clicked */
|
|
3183
|
+
onRemove: () => void;
|
|
3184
|
+
/** The size of the remove button
|
|
3185
|
+
* @default 'sm'
|
|
3186
|
+
*/
|
|
3187
|
+
size?: SwatchLabelProps["size"];
|
|
3188
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3189
|
+
/**
|
|
3190
|
+
* A tooltip component that displays a swatch label with a parent title and a description.
|
|
3191
|
+
* @example <SwatchLabelTooltip parentTitle="Parent Title" title="Title" description="Description" />
|
|
3192
|
+
*/
|
|
3193
|
+
declare const SwatchLabelTooltip: ({ parentTitle, title, description, }: {
|
|
3194
|
+
parentTitle?: string | React.ReactElement;
|
|
3195
|
+
title?: string | React.ReactElement;
|
|
3196
|
+
description?: string | React.ReactElement;
|
|
3197
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3198
|
+
|
|
3199
|
+
/** Represents a label item that can be displayed in the quick filter */
|
|
3200
|
+
type LabelsQuickFilterItem = {
|
|
3201
|
+
/** Unique identifier for the label */
|
|
3202
|
+
id: string;
|
|
3203
|
+
/** Display name for the label */
|
|
3204
|
+
name: string;
|
|
3205
|
+
/** Optional swatch variant color */
|
|
3206
|
+
variant?: SwatchVariant;
|
|
3207
|
+
/** Optional tooltip content */
|
|
3208
|
+
tooltip?: string | React.ReactElement;
|
|
3209
|
+
/** Whether this item represents a group header */
|
|
3210
|
+
isGroup?: boolean;
|
|
3211
|
+
/** The parent group ID if this label belongs to a group */
|
|
3212
|
+
parent?: string;
|
|
3213
|
+
};
|
|
3214
|
+
type LabelsQuickFilterProps = {
|
|
3215
|
+
/** The text to display on the filter button */
|
|
3216
|
+
buttonText: string;
|
|
3217
|
+
/** The text to display on the add button */
|
|
3218
|
+
addButtonText?: string | null;
|
|
3219
|
+
/** All available label items (including groups and children) */
|
|
3220
|
+
items: LabelsQuickFilterItem[];
|
|
3221
|
+
/** Set or array of currently selected item IDs */
|
|
3222
|
+
selectedIds: Set<string> | string[];
|
|
3223
|
+
/** Callback when a label is selected */
|
|
3224
|
+
onSelect: (item: LabelsQuickFilterItem) => void;
|
|
3225
|
+
/** Callback when a label is deselected */
|
|
3226
|
+
onDeselect: (id: string) => void;
|
|
3227
|
+
/** Whether the filter is disabled */
|
|
3228
|
+
disabled?: boolean;
|
|
3229
|
+
/** Test ID for the component */
|
|
3230
|
+
testId?: string;
|
|
3231
|
+
/** Override the total results count (defaults to items.length excluding groups) */
|
|
3232
|
+
totalResults?: number;
|
|
3233
|
+
/** handles creating a new label */
|
|
3234
|
+
onCreateLabel?: (label: string) => void;
|
|
3235
|
+
/** sets whether to use a React portal rendering or not. */
|
|
3236
|
+
withoutPortal?: boolean;
|
|
3237
|
+
/**
|
|
3238
|
+
* The maximum width of the quick filter container.
|
|
3239
|
+
* Useful for controlling the maximum width of the filter in different layouts (e.g., responsive sidebars).
|
|
3240
|
+
* @default '4rem'
|
|
3241
|
+
*/
|
|
3242
|
+
maxContainerSize?: string;
|
|
3243
|
+
/** the function to call when the quick filter is opened */
|
|
3244
|
+
onOpen?: () => void;
|
|
3245
|
+
/** the function to call when the quick filter is closed */
|
|
3246
|
+
onClose?: () => void;
|
|
3247
|
+
/**
|
|
3248
|
+
* Override the placement of the dropdown menu.
|
|
3249
|
+
* @default 'right-start'
|
|
3250
|
+
*/
|
|
3251
|
+
menuPlacement?: MenuProps['placement'];
|
|
3252
|
+
/**
|
|
3253
|
+
* Override the anchor rect for custom menu positioning.
|
|
3254
|
+
* Pass `null` to disable the built-in default and use standard positioning.
|
|
3255
|
+
*/
|
|
3256
|
+
menuGetAnchorRect?: ((anchor: HTMLElement | null) => {
|
|
3257
|
+
x?: number;
|
|
3258
|
+
y?: number;
|
|
3259
|
+
width?: number;
|
|
3260
|
+
height?: number;
|
|
3261
|
+
}) | null;
|
|
3262
|
+
/**
|
|
3263
|
+
* Override the updatePosition callback to control when the menu repositions.
|
|
3264
|
+
* Pass `null` to disable the built-in default (position freezing) and allow normal repositioning.
|
|
3265
|
+
*/
|
|
3266
|
+
menuUpdatePosition?: MenuProps['updatePosition'] | null;
|
|
3267
|
+
/** the maximum number of results to display
|
|
3268
|
+
* @default 0 (no limit)
|
|
3269
|
+
*/
|
|
3270
|
+
maxCount?: number;
|
|
3271
|
+
};
|
|
3272
|
+
/**
|
|
3273
|
+
* A reusable quick filter component for selecting labels with swatch colors.
|
|
3274
|
+
* Supports flat labels and grouped labels with nested menus.
|
|
3275
|
+
* @example <LabelsQuickFilter buttonText="Filter by label" items={labels} selectedIds={selectedSet} onSelect={handleSelect} onDeselect={handleDeselect} />
|
|
3276
|
+
*/
|
|
3277
|
+
declare const LabelsQuickFilter: ({ buttonText, addButtonText, items, selectedIds, onSelect, onDeselect, disabled, testId, totalResults, onCreateLabel, withoutPortal, maxContainerSize, onOpen, onClose, menuPlacement, menuGetAnchorRect, menuUpdatePosition, maxCount, }: LabelsQuickFilterProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3278
|
+
|
|
3279
|
+
type AsideAndSectionLayout = {
|
|
3280
|
+
/** sets child components in the aside / supporting column */
|
|
3281
|
+
sidebar?: ReactNode;
|
|
3282
|
+
/** sets child components in the section / main content column */
|
|
3283
|
+
children: ReactNode;
|
|
3284
|
+
/** Makes the sidebar sticky to the top of the container
|
|
3285
|
+
* @default false
|
|
3286
|
+
*/
|
|
3287
|
+
isStickyAside?: boolean;
|
|
3288
|
+
};
|
|
3289
|
+
declare const AsideAndSectionLayout: ({ sidebar, children, isStickyAside, }: AsideAndSectionLayout) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3290
|
+
|
|
3291
|
+
type SpacingProp = '0' | '2xs' | 'xs' | 'sm' | 'base' | 'md' | 'lg' | 'xl' | '2xl';
|
|
3292
|
+
type BackgroundColorProp = 'transparent' | 'white' | 'gray-50' | 'gray-100' | 'gray-200' | 'gray-300' | 'gray-400' | 'gray-500' | 'gray-600' | 'gray-700' | 'gray-800' | 'gray-900';
|
|
3293
|
+
type HtmlTagProps = 'div' | 'section' | 'article' | 'aside' | 'span';
|
|
3294
|
+
type BorderRadiusProps = 'rounded-sm' | 'rounded-base' | 'rounded-md';
|
|
3295
|
+
type CommonContainerProps = {
|
|
3296
|
+
/** sets the background color of the element */
|
|
3297
|
+
backgroundColor?: BackgroundColorProp;
|
|
3298
|
+
/** sets border: 1px solid var(--gray-300)*/
|
|
3299
|
+
border?: boolean;
|
|
3300
|
+
/** sets the border radius of the element */
|
|
3301
|
+
rounded?: BorderRadiusProps;
|
|
3302
|
+
/** sets the padding of the element */
|
|
3303
|
+
padding?: string;
|
|
3304
|
+
/** sets the margin of the element */
|
|
3305
|
+
margin?: string;
|
|
3306
|
+
};
|
|
3307
|
+
type RhythmProps = React.HTMLAttributes<HTMLDivElement | HTMLFieldSetElement> & {
|
|
3308
|
+
/** sets the wrapping html tag
|
|
3309
|
+
* @default 'div'
|
|
3310
|
+
*/
|
|
3311
|
+
tag?: HtmlTagProps | 'fieldset';
|
|
3312
|
+
/** sets the spacing between each element
|
|
3313
|
+
* @default 'div'
|
|
3314
|
+
*/
|
|
3315
|
+
gap?: SpacingProp;
|
|
3316
|
+
/** sets the alignment of elements
|
|
3317
|
+
* @default normal browser behaviour
|
|
3318
|
+
*/
|
|
3319
|
+
align?: CSSProperties['alignItems'];
|
|
3320
|
+
justify?: CSSProperties['justifyContent'];
|
|
3321
|
+
children: React.ReactNode;
|
|
3322
|
+
/** for use when fieldset is applied to the tag prop */
|
|
3323
|
+
disabled?: boolean;
|
|
3324
|
+
ref?: Ref<HTMLDivElement>;
|
|
3325
|
+
};
|
|
3326
|
+
|
|
3327
|
+
type ContainerProps = CommonContainerProps & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
3328
|
+
tag?: HtmlTagProps;
|
|
3329
|
+
children: React$1.ReactNode;
|
|
3330
|
+
};
|
|
3331
|
+
declare const Container: ({ tag, backgroundColor, border, rounded, padding, margin, children, ...props }: ContainerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3332
|
+
|
|
3333
|
+
declare const HorizontalRhythm: ({ align, justify, tag, gap, children, ref, ...props }: RhythmProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3334
|
+
|
|
3335
|
+
type TwoColumnLayoutProps = {
|
|
3336
|
+
/** sets the full bleed background colour
|
|
3337
|
+
* @default 'var(--white)'
|
|
3338
|
+
*/
|
|
3339
|
+
bgColor?: 'var(--white)' | 'var(--gray-50)';
|
|
3340
|
+
/** sets child components in the aside / supporting column */
|
|
3341
|
+
supportingContent?: ReactNode;
|
|
3342
|
+
/** sets child components in the section / main content column */
|
|
3343
|
+
children?: ReactNode;
|
|
3344
|
+
/** inverts the layout placing the aside container on the left
|
|
3345
|
+
* @default false
|
|
3346
|
+
*/
|
|
3347
|
+
invertLayout?: boolean;
|
|
3348
|
+
};
|
|
3349
|
+
/** @example <TwoColumnLayout supportingContent={<div>supporting content</div>}><h1>title</h1></TwoColumnLayout> */
|
|
3350
|
+
declare const TwoColumnLayout: ({ bgColor, invertLayout, supportingContent, children, }: TwoColumnLayoutProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3351
|
+
|
|
3352
|
+
declare const VerticalRhythm: ({ align, justify, tag, gap, children, ref, ...props }: RhythmProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3353
|
+
|
|
3354
|
+
type LimitsBarProps = {
|
|
3355
|
+
/** The current value of used limits */
|
|
3356
|
+
current: number;
|
|
3357
|
+
/** The maximum number of limits */
|
|
3358
|
+
max: number;
|
|
3359
|
+
/** @deprecated No longer used */
|
|
3360
|
+
label?: string;
|
|
3361
|
+
/** Optional popover content for info icon */
|
|
3362
|
+
popoverContent?: ReactNode;
|
|
3363
|
+
/** Optional css value passed to the background color of the bar. Leave empty for dynamic color based on usage percentage. */
|
|
3364
|
+
barColor?: string;
|
|
3365
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
3366
|
+
/**
|
|
3367
|
+
* Uniform Limits Bar Component
|
|
3368
|
+
* @example <LimitsBar current={3} max={5} />
|
|
3369
|
+
*/
|
|
3370
|
+
declare const LimitsBar: ({ current, max, popoverContent, barColor, ...props }: LimitsBarProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3371
|
+
|
|
3372
|
+
type LinkListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
3373
|
+
/** sets the title field */
|
|
3374
|
+
title: string;
|
|
3375
|
+
/** (optional) sets react child component */
|
|
3376
|
+
children?: React$1.ReactNode;
|
|
3377
|
+
};
|
|
3378
|
+
declare const LinkList: ({ title, children, ...props }: LinkListProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3379
|
+
|
|
3380
|
+
type ScrollableListProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
3381
|
+
/** (optional) sets the label value */
|
|
3382
|
+
label?: string;
|
|
3383
|
+
/** (optional) allows users to add child components within the container */
|
|
3384
|
+
children?: React$1.ReactNode;
|
|
3385
|
+
};
|
|
3386
|
+
/**
|
|
3387
|
+
* Component that sets the base structure for scrollable content in a max height container
|
|
3388
|
+
* @example <ScrollableList label="allowed content types"><button>say hello</button></ScrollableList>
|
|
3389
|
+
*/
|
|
3390
|
+
declare const ScrollableList: ({ label, children, ...props }: ScrollableListProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3391
|
+
|
|
3392
|
+
type ScrollableListContainerProps = {
|
|
3393
|
+
/** sets whether to show or hide the shadow around the element
|
|
3394
|
+
* @default 'false'
|
|
3395
|
+
*/
|
|
3396
|
+
disableShadow?: boolean;
|
|
3397
|
+
/** sets the active style of the button */
|
|
3398
|
+
active: boolean;
|
|
3399
|
+
};
|
|
3400
|
+
|
|
3401
|
+
type ScrollableItemProps = {
|
|
3402
|
+
/** sets an element within the label > span element */
|
|
3403
|
+
icon?: React.ReactElement;
|
|
3404
|
+
/**sets the label value */
|
|
3405
|
+
label: string | React.ReactElement;
|
|
3406
|
+
/** sets a data-testid on the label */
|
|
3407
|
+
labelTestId?: string;
|
|
3408
|
+
/** recommended to use a form input element of type radio or checkbox */
|
|
3409
|
+
children: React.ReactNode;
|
|
3410
|
+
} & ScrollableListContainerProps;
|
|
3411
|
+
/** @example <ScrollableListInputItem label="my label" active={true}><input type="radio" name="age" /></ScrollableListInputItem>*/
|
|
3412
|
+
declare const ScrollableListInputItem: ({ label, icon, active, disableShadow, children, labelTestId, ...props }: ScrollableItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3413
|
+
|
|
3414
|
+
type ScrollableListItemProps = React$1.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
3415
|
+
/** sets the button text value */
|
|
3416
|
+
buttonText: string;
|
|
3417
|
+
icon?: React$1.ReactElement;
|
|
3418
|
+
} & ScrollableListContainerProps;
|
|
3419
|
+
/**
|
|
3420
|
+
* Component used within <ScrollableList /> for adding interactive button components with predefined styles
|
|
3421
|
+
* @example <ScrollableListItem buttontext="my button" active={false} />
|
|
3422
|
+
*/
|
|
3423
|
+
declare const ScrollableListItem: ({ buttonText, icon, active, disableShadow, ...props }: ScrollableListItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3424
|
+
|
|
3425
|
+
type LoadingIndicatorProps = {
|
|
3426
|
+
color?: 'gray' | 'accent-alt';
|
|
3427
|
+
size?: 'lg' | 'sm';
|
|
3428
|
+
} & Omit<HTMLAttributes<HTMLDivElement>, 'color'>;
|
|
3429
|
+
/**
|
|
3430
|
+
* Loading Indicator
|
|
3431
|
+
* @example <LoadingIndicator />
|
|
3432
|
+
*/
|
|
3433
|
+
declare const LoadingIndicator: ({ size, color, ...props }: LoadingIndicatorProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3434
|
+
|
|
3435
|
+
interface LoadingOverlayProps {
|
|
3436
|
+
/** sets whether to display the loading overlay components */
|
|
3437
|
+
isActive: boolean;
|
|
3438
|
+
/** (optional) type that sets a text value or React component under the loading icon */
|
|
3439
|
+
statusMessage?: string | ReactNode;
|
|
3440
|
+
/** (optional) the z-index value of the overlay
|
|
3441
|
+
* @default 9999
|
|
3442
|
+
*/
|
|
3443
|
+
zIndex?: number;
|
|
3444
|
+
/** (optional) sets the width and height of the loader
|
|
3445
|
+
* @default 128
|
|
3446
|
+
*/
|
|
3447
|
+
loaderSize?: number;
|
|
3448
|
+
/** (optional) sets the loading overlay background color
|
|
3449
|
+
* @default 'var(--white)'
|
|
3450
|
+
*/
|
|
3451
|
+
overlayBackgroundColor?: 'transparent' | 'var(--white)';
|
|
3452
|
+
/** (optional) if set to true, the animation of the loading indicator is paused
|
|
3453
|
+
* @default false
|
|
3454
|
+
*/
|
|
3455
|
+
isPaused?: boolean;
|
|
3456
|
+
/** (optional) aligns the content of the overlay to the top instead of having it centered
|
|
3457
|
+
* @default false
|
|
3458
|
+
*/
|
|
3459
|
+
isTopAligned?: boolean;
|
|
3460
|
+
children?: React.ReactNode;
|
|
3461
|
+
/** (optional) sets the position of the overlay
|
|
3462
|
+
* @default 'absolute'
|
|
3463
|
+
*/
|
|
3464
|
+
position?: 'absolute' | 'fixed';
|
|
3465
|
+
}
|
|
3466
|
+
/**
|
|
3467
|
+
* Loading Overlay.
|
|
3468
|
+
* NOTE: the container/parent element must have a non-static `position` value for the overlay to work properly.
|
|
3469
|
+
* @example <LoadingOverlay isActive={true} statusMessage="Loading..." />
|
|
3470
|
+
*/
|
|
3471
|
+
declare const LoadingOverlay: ({ isActive, statusMessage, zIndex, loaderSize, overlayBackgroundColor, isTopAligned, isPaused, children, position, }: LoadingOverlayProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3472
|
+
interface LoadingIconProps extends HTMLAttributes<SVGSVGElement> {
|
|
3473
|
+
/** (optional) prop that sets a number value for the height of the icon */
|
|
3474
|
+
width?: number;
|
|
3475
|
+
/** (optional) prop that sets a number value for the width of the icon */
|
|
3476
|
+
height?: number;
|
|
3113
3477
|
}
|
|
3114
|
-
|
|
3478
|
+
/**
|
|
3479
|
+
* Loading Icon
|
|
3480
|
+
* @example <LoadingIcon height={128} width={128} />
|
|
3481
|
+
*/
|
|
3482
|
+
declare const LoadingIcon: ({ height, width, ...props }: LoadingIconProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3115
3483
|
|
|
3116
3484
|
type ModalProps = {
|
|
3117
3485
|
header?: React__default.ReactNode;
|
|
@@ -3152,120 +3520,280 @@ declare const Modal: React__default.ForwardRefExoticComponent<Omit<ModalProps, "
|
|
|
3152
3520
|
type ModalDialogProps = Omit<ModalProps, 'width'>;
|
|
3153
3521
|
declare const ModalDialog: React$1.ForwardRefExoticComponent<Omit<ModalDialogProps, "ref"> & React$1.RefAttributes<HTMLDialogElement>>;
|
|
3154
3522
|
|
|
3523
|
+
/**
|
|
3524
|
+
* Context for passing a portal container element to child popover/menu components
|
|
3525
|
+
* rendered inside a Modal. This ensures floating elements render into the dialog
|
|
3526
|
+
* instead of document.body, preventing clipping by the modal's overflow.
|
|
3527
|
+
*/
|
|
3528
|
+
declare const ModalPortalContext: React$1.Context<HTMLElement | null>;
|
|
3529
|
+
declare function useModalPortalContainer(): HTMLElement | null;
|
|
3530
|
+
|
|
3531
|
+
/** Props for {@link ObjectGridContainer}. */
|
|
3155
3532
|
type ObjectGridContainerProps = {
|
|
3156
|
-
/**
|
|
3533
|
+
/** Number of columns in the grid, passed to CSS `repeat()`.
|
|
3534
|
+
* Accepts a number (e.g. `3`) or any valid `repeat()` track value (e.g. `'auto-fill, minmax(200px, 1fr)'`).
|
|
3157
3535
|
* @default 3
|
|
3158
|
-
*
|
|
3159
|
-
* see https://developer.mozilla.org/en-US/docs/Web/CSS/repeat#syntax for examples
|
|
3536
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/repeat#syntax
|
|
3160
3537
|
*/
|
|
3161
3538
|
gridCount?: string | number;
|
|
3162
|
-
/**
|
|
3539
|
+
/** Grid item children — typically {@link ObjectGridItem} or {@link ObjectGridItemLoadingSkeleton} elements. */
|
|
3163
3540
|
children: React.ReactNode;
|
|
3164
3541
|
};
|
|
3542
|
+
/**
|
|
3543
|
+
* CSS Grid container for laying out {@link ObjectGridItem} elements in a responsive grid.
|
|
3544
|
+
* Supports forwarding a ref to the underlying `<div>`.
|
|
3545
|
+
*
|
|
3546
|
+
* @example
|
|
3547
|
+
* ```tsx
|
|
3548
|
+
* <ObjectGridContainer gridCount={4}>
|
|
3549
|
+
* <ObjectGridItem header={<ObjectGridItemHeading heading="Item" />} cover={...} />
|
|
3550
|
+
* </ObjectGridContainer>
|
|
3551
|
+
* ```
|
|
3552
|
+
*/
|
|
3165
3553
|
declare const ObjectGridContainer: React$1.ForwardRefExoticComponent<ObjectGridContainerProps & React$1.RefAttributes<HTMLDivElement>>;
|
|
3166
3554
|
|
|
3555
|
+
/** Shared props for heading components used across list and grid Object items. */
|
|
3167
3556
|
type ObjectHeadingProps = {
|
|
3168
|
-
/**
|
|
3557
|
+
/** The heading content to display. */
|
|
3169
3558
|
heading: ReactNode;
|
|
3170
|
-
/** Slot
|
|
3559
|
+
/** Slot rendered before the heading text (e.g. an icon or status indicator). */
|
|
3171
3560
|
beforeHeadingSlot?: ReactNode;
|
|
3172
|
-
/** Slot
|
|
3561
|
+
/** Slot rendered after the heading text (e.g. a badge or chip). */
|
|
3173
3562
|
afterHeadingSlot?: ReactNode;
|
|
3174
|
-
/**
|
|
3563
|
+
/** Tooltip text shown on hover when the heading is truncated. */
|
|
3175
3564
|
tooltip?: string;
|
|
3176
3565
|
};
|
|
3566
|
+
/**
|
|
3567
|
+
* Shared props for Object item components ({@link ObjectListItem} and {@link ObjectGridItem}).
|
|
3568
|
+
* Defines the common slot-based API for composing item layouts.
|
|
3569
|
+
*/
|
|
3177
3570
|
type ObjectItemProps = {
|
|
3178
|
-
/** Slot for the header
|
|
3571
|
+
/** Slot for the header — use {@link ObjectGridItemHeading} or {@link ObjectListItemHeading}. */
|
|
3179
3572
|
header: ReactNode;
|
|
3180
|
-
/** Slot for the cover
|
|
3573
|
+
/** Slot for the cover media — use {@link ObjectGridItemCoverButton}, {@link ObjectGridItemCover}, or {@link ObjectListItemCover}. */
|
|
3181
3574
|
cover: ReactNode;
|
|
3182
|
-
/** Slot
|
|
3575
|
+
/** Slot rendered on the right side of the item (e.g. timestamps, status badges). */
|
|
3183
3576
|
rightSlot?: React.ReactNode;
|
|
3184
|
-
/** Slot for the
|
|
3577
|
+
/** Slot for the left component */
|
|
3578
|
+
leftSlot?: React.ReactNode;
|
|
3579
|
+
/** Slot for context menu items — pass `<MenuItem />` elements here. When provided, a three-dot menu trigger is rendered automatically. */
|
|
3185
3580
|
menuItems?: React.ReactNode;
|
|
3186
|
-
/**
|
|
3581
|
+
/** Whether the item is visually marked as selected via `aria-selected`. */
|
|
3187
3582
|
isSelected?: boolean;
|
|
3188
|
-
/**
|
|
3583
|
+
/** Additional child content rendered below the header (only visible in `renderAs="multi"` mode for list items). */
|
|
3189
3584
|
children?: React.ReactNode;
|
|
3190
3585
|
};
|
|
3191
3586
|
|
|
3192
|
-
|
|
3587
|
+
/** Props for {@link ObjectGridItem}. */
|
|
3588
|
+
type ObjectGridItemProps = Omit<ObjectItemProps, 'leftSlot'> & {
|
|
3589
|
+
/** Whether the item is visually marked as selected. */
|
|
3193
3590
|
isSelected?: boolean;
|
|
3194
|
-
/**
|
|
3195
|
-
* @default object-grid-item-menu-btn
|
|
3591
|
+
/** Override the `data-testid` on the context menu trigger button.
|
|
3592
|
+
* @default 'object-grid-item-menu-btn'
|
|
3196
3593
|
*/
|
|
3197
3594
|
menuTestId?: string;
|
|
3198
3595
|
} & HTMLAttributes<HTMLDivElement>;
|
|
3596
|
+
/**
|
|
3597
|
+
* A card-style grid item for displaying an object with cover media, heading, subtitle, and optional context menu.
|
|
3598
|
+
*
|
|
3599
|
+
* When an `onClick` handler is provided, the entire card becomes clickable with hover styles.
|
|
3600
|
+
* Menu and right-slot interactions use `stopPropagation` to prevent triggering the card click.
|
|
3601
|
+
* Wrap items with {@link ObjectGridContainer} for responsive grid layout.
|
|
3602
|
+
*
|
|
3603
|
+
* @example
|
|
3604
|
+
* ```tsx
|
|
3605
|
+
* <ObjectGridItem
|
|
3606
|
+
* cover={<ObjectGridItemCover imageUrl="/thumb.jpg" icon={uniformComposition} />}
|
|
3607
|
+
* header={<ObjectGridItemHeading heading="My composition" tooltip="My composition" />}
|
|
3608
|
+
* rightSlot={<StatusBullet status="published" />}
|
|
3609
|
+
* menuItems={<MenuItem onClick={onEdit}>Edit</MenuItem>}
|
|
3610
|
+
* onClick={handleOpen}
|
|
3611
|
+
* />
|
|
3612
|
+
* ```
|
|
3613
|
+
*/
|
|
3199
3614
|
declare const ObjectGridItem: ({ header, cover, rightSlot, menuItems, isSelected, children, menuTestId, ...props }: ObjectGridItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3200
3615
|
|
|
3616
|
+
/**
|
|
3617
|
+
* Props for {@link ObjectGridItemCardCover}.
|
|
3618
|
+
* Pass **either** an `icon` or an `imageUrl` — the component renders the appropriate variant.
|
|
3619
|
+
*/
|
|
3201
3620
|
type ObjectGridItemCardCoverProps = {
|
|
3202
|
-
icon: IconType;
|
|
3203
|
-
iconColor?: 'currentColor' | 'accent-dark' | 'accent-alt-dark';
|
|
3621
|
+
/** Icon to render as the card cover. */ icon: IconType;
|
|
3622
|
+
/** Color applied to the icon. */ iconColor?: 'currentColor' | 'accent-dark' | 'accent-alt-dark';
|
|
3204
3623
|
} | {
|
|
3205
|
-
imageUrl: string;
|
|
3206
|
-
srcSet?: string;
|
|
3207
|
-
alt?: string;
|
|
3208
|
-
errorFallbackSrc?: string;
|
|
3624
|
+
/** URL of the image to render as the card cover. */ imageUrl: string;
|
|
3625
|
+
/** Optional `srcSet` for responsive images. */ srcSet?: string;
|
|
3626
|
+
/** Alt text for the image. */ alt?: string;
|
|
3627
|
+
/** Fallback image URL shown when the primary image fails to load. */ errorFallbackSrc?: string;
|
|
3209
3628
|
};
|
|
3629
|
+
/**
|
|
3630
|
+
* Low-level cover media for a grid card — renders either a lazy-loaded image
|
|
3631
|
+
* or an icon with a ghost background. Typically used via {@link ObjectGridItemCover}
|
|
3632
|
+
* rather than directly.
|
|
3633
|
+
*/
|
|
3210
3634
|
declare const ObjectGridItemCardCover: (props: ObjectGridItemCardCoverProps) => _emotion_react_jsx_runtime.JSX.Element | undefined;
|
|
3635
|
+
/**
|
|
3636
|
+
* Props for {@link ObjectGridItemCover}.
|
|
3637
|
+
* Extends {@link ObjectGridItemCardCoverProps} with overlay slots at each corner.
|
|
3638
|
+
*/
|
|
3211
3639
|
type ObjectGridItemCoverProps = {
|
|
3212
|
-
/**
|
|
3640
|
+
/** Slot positioned at the top-left of the cover (e.g. a selection checkbox). */
|
|
3213
3641
|
coverSlotLeft?: React.ReactNode;
|
|
3214
|
-
/**
|
|
3642
|
+
/** Slot positioned at the top-right of the cover (e.g. a favourite icon). */
|
|
3215
3643
|
coverSlotRight?: React.ReactNode;
|
|
3216
|
-
/**
|
|
3644
|
+
/** Slot positioned at the bottom-left of the cover. */
|
|
3217
3645
|
coverSlotBottomLeft?: React.ReactNode;
|
|
3218
|
-
/**
|
|
3646
|
+
/** Slot positioned at the bottom-right of the cover (e.g. a status chip). */
|
|
3219
3647
|
coverSlotBottomRight?: React.ReactNode;
|
|
3220
3648
|
} & ObjectGridItemCardCoverProps;
|
|
3649
|
+
/**
|
|
3650
|
+
* Grid item cover with corner overlay slots for badges, checkboxes, or status indicators.
|
|
3651
|
+
* Wraps {@link ObjectGridItemCardCover} and positions slot content at each corner.
|
|
3652
|
+
*
|
|
3653
|
+
* @example
|
|
3654
|
+
* ```tsx
|
|
3655
|
+
* <ObjectGridItemCover
|
|
3656
|
+
* imageUrl="/thumb.jpg"
|
|
3657
|
+
* coverSlotRight={<Chip text="New" />}
|
|
3658
|
+
* />
|
|
3659
|
+
* ```
|
|
3660
|
+
*/
|
|
3221
3661
|
declare const ObjectGridItemCover: ({ coverSlotLeft, coverSlotRight, coverSlotBottomLeft, coverSlotBottomRight, ...props }: ObjectGridItemCoverProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3662
|
+
/**
|
|
3663
|
+
* Props for {@link ObjectGridItemCoverButton}.
|
|
3664
|
+
* The `coverSlotBottomRight` is reserved for the selection chip and cannot be overridden.
|
|
3665
|
+
*/
|
|
3222
3666
|
type ObjectGridItemCoverButtonProps = {
|
|
3667
|
+
/** Unique identifier passed back to `onSelection` when the cover is clicked. */
|
|
3223
3668
|
id: string;
|
|
3669
|
+
/** Callback fired when the cover button is clicked. */
|
|
3224
3670
|
onSelection: (id: string) => void;
|
|
3671
|
+
/** Whether this cover is currently selected — renders a chip in the bottom-right corner. */
|
|
3225
3672
|
isSelected?: boolean;
|
|
3673
|
+
/** Label text shown on the selection chip.
|
|
3674
|
+
* @default 'selected'
|
|
3675
|
+
*/
|
|
3226
3676
|
selectedText?: string;
|
|
3227
3677
|
} & Omit<ObjectGridItemCoverProps, 'coverSlotBottomRight'> & ObjectGridItemCardCoverProps;
|
|
3678
|
+
/**
|
|
3679
|
+
* Clickable variant of {@link ObjectGridItemCover} that acts as a selection toggle.
|
|
3680
|
+
* When selected, a chip with `selectedText` appears in the bottom-right corner.
|
|
3681
|
+
* Click events are stopped from propagating to parent elements.
|
|
3682
|
+
*
|
|
3683
|
+
* @example
|
|
3684
|
+
* ```tsx
|
|
3685
|
+
* <ObjectGridItemCoverButton
|
|
3686
|
+
* id={item.id}
|
|
3687
|
+
* imageUrl={item.thumbnail}
|
|
3688
|
+
* isSelected={selectedId === item.id}
|
|
3689
|
+
* onSelection={setSelectedId}
|
|
3690
|
+
* />
|
|
3691
|
+
* ```
|
|
3692
|
+
*/
|
|
3228
3693
|
declare const ObjectGridItemCoverButton: ({ id, isSelected, onSelection, selectedText, ...props }: ObjectGridItemCoverButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3229
3694
|
|
|
3695
|
+
/** Props for {@link ObjectGridItemHeading}. */
|
|
3230
3696
|
type ObjectGridItemTitleProps = ObjectHeadingProps & HTMLAttributes<HTMLDivElement>;
|
|
3697
|
+
/**
|
|
3698
|
+
* Heading component designed for use inside {@link ObjectGridItem}'s `header` slot.
|
|
3699
|
+
*
|
|
3700
|
+
* Automatically detects when the heading text is truncated (via a `ResizeObserver`)
|
|
3701
|
+
* and shows the `tooltip` on hover so users can still read the full title.
|
|
3702
|
+
* Click events on `beforeHeadingSlot` and `afterHeadingSlot` are stopped from propagating
|
|
3703
|
+
* to the parent grid item.
|
|
3704
|
+
*
|
|
3705
|
+
* @example
|
|
3706
|
+
* ```tsx
|
|
3707
|
+
* <ObjectGridItemHeading
|
|
3708
|
+
* heading="My composition"
|
|
3709
|
+
* tooltip="My composition"
|
|
3710
|
+
* beforeHeadingSlot={<Icon icon={uniformComposition} />}
|
|
3711
|
+
* />
|
|
3712
|
+
* ```
|
|
3713
|
+
*/
|
|
3231
3714
|
declare const ObjectGridItemHeading: ({ heading, beforeHeadingSlot, afterHeadingSlot, tooltip, ...props }: ObjectGridItemTitleProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3232
3715
|
|
|
3716
|
+
/** Props for {@link ObjectGridItemIconWithTooltip}. */
|
|
3233
3717
|
type ObjectGridItemIconWithTooltipProps = {
|
|
3234
|
-
/**
|
|
3718
|
+
/** Text shown inside the tooltip on hover. */
|
|
3235
3719
|
tooltipTitle: string;
|
|
3236
|
-
/** The icon to
|
|
3720
|
+
/** The icon to render. */
|
|
3237
3721
|
icon: IconType;
|
|
3238
|
-
/**
|
|
3722
|
+
/** Color applied to the icon.
|
|
3723
|
+
* @default 'accent-dark'
|
|
3724
|
+
*/
|
|
3239
3725
|
iconColor?: IconColor;
|
|
3240
3726
|
} & Pick<TooltipProps, 'placement' | 'withoutPortal'>;
|
|
3727
|
+
/**
|
|
3728
|
+
* Small icon with a tooltip, designed for the `rightSlot` of {@link ObjectGridItem}.
|
|
3729
|
+
* Useful for showing contextual indicators (e.g. entry type, locale) without taking up text space.
|
|
3730
|
+
*
|
|
3731
|
+
* @example
|
|
3732
|
+
* ```tsx
|
|
3733
|
+
* <ObjectGridItemIconWithTooltip
|
|
3734
|
+
* tooltipTitle="Composition"
|
|
3735
|
+
* icon={uniformComposition}
|
|
3736
|
+
* />
|
|
3737
|
+
* ```
|
|
3738
|
+
*/
|
|
3241
3739
|
declare const ObjectGridItemIconWithTooltip: ({ tooltipTitle, placement, icon, iconColor, ...props }: ObjectGridItemIconWithTooltipProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3242
3740
|
|
|
3243
|
-
/**
|
|
3244
|
-
* @
|
|
3741
|
+
/**
|
|
3742
|
+
* Animated skeleton placeholder for {@link ObjectGridItem}, displayed while data is loading.
|
|
3743
|
+
* Renders a simulated cover image and two text lines matching the visual dimensions
|
|
3744
|
+
* of a real grid card so the layout doesn't shift on load.
|
|
3745
|
+
*
|
|
3746
|
+
* @example
|
|
3747
|
+
* ```tsx
|
|
3748
|
+
* <ObjectGridContainer gridCount={3}>
|
|
3749
|
+
* <ObjectGridItemLoadingSkeleton />
|
|
3750
|
+
* <ObjectGridItemLoadingSkeleton />
|
|
3751
|
+
* <ObjectGridItemLoadingSkeleton />
|
|
3752
|
+
* </ObjectGridContainer>
|
|
3753
|
+
* ```
|
|
3245
3754
|
*/
|
|
3246
3755
|
declare const ObjectGridItemLoadingSkeleton: () => _emotion_react_jsx_runtime.JSX.Element;
|
|
3247
3756
|
|
|
3248
|
-
/**
|
|
3757
|
+
/** Props for {@link ObjectItemLoadingSkeleton}. */
|
|
3249
3758
|
type ObjectItemLoadingSkeletonProps = {
|
|
3250
|
-
/**
|
|
3759
|
+
/** When `true`, renders an additional 80×55 animated rectangle representing a cover image. */
|
|
3251
3760
|
showCover?: boolean;
|
|
3252
|
-
/**
|
|
3761
|
+
/** Controls the skeleton layout to match the corresponding {@link ObjectListItem} mode.
|
|
3762
|
+
* - `"single"` — single text line (vertically centered).
|
|
3763
|
+
* - `"multi"` — two text lines (top-aligned).
|
|
3253
3764
|
* @default 'single'
|
|
3254
3765
|
*/
|
|
3255
3766
|
renderAs?: 'single' | 'multi';
|
|
3256
3767
|
};
|
|
3257
|
-
/**
|
|
3258
|
-
* @
|
|
3768
|
+
/**
|
|
3769
|
+
* Animated skeleton placeholder for {@link ObjectListItem}, displayed while data is loading.
|
|
3770
|
+
* Matches the visual dimensions of a real list item so the layout doesn't shift on load.
|
|
3771
|
+
*
|
|
3772
|
+
* @example
|
|
3773
|
+
* ```tsx
|
|
3774
|
+
* <ObjectListItemContainer>
|
|
3775
|
+
* <ObjectItemLoadingSkeleton />
|
|
3776
|
+
* <ObjectItemLoadingSkeleton showCover renderAs="multi" />
|
|
3777
|
+
* </ObjectListItemContainer>
|
|
3778
|
+
* ```
|
|
3259
3779
|
*/
|
|
3260
3780
|
declare const ObjectItemLoadingSkeleton: ({ showCover, renderAs, }: ObjectItemLoadingSkeletonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3261
3781
|
|
|
3262
|
-
/**
|
|
3782
|
+
/**
|
|
3783
|
+
* Props for {@link ObjectListItem}.
|
|
3784
|
+
*
|
|
3785
|
+
* Supports two layout modes via `renderAs`:
|
|
3786
|
+
* - `"single"` (default) — header and right slot vertically centered on one line.
|
|
3787
|
+
* - `"multi"` — header aligned to top with additional `children` rendered below it.
|
|
3788
|
+
*/
|
|
3263
3789
|
type ObjectListItemProps = {
|
|
3264
|
-
/**
|
|
3790
|
+
/** Portal target for the context menu, useful inside stacked route containers to prevent clipping. */
|
|
3265
3791
|
portalElement?: MenuProps['portalElement'];
|
|
3792
|
+
/** Optional cover media rendered to the left of the header (e.g. {@link ObjectListItemCover}). */
|
|
3266
3793
|
cover?: ReactNode;
|
|
3794
|
+
/** Optional drag handle rendered at the leading edge (e.g. `<DragHandle />`). */
|
|
3267
3795
|
dragHandle?: ReactNode;
|
|
3268
|
-
/**
|
|
3796
|
+
/** Minimum width at which the container query breakpoint activates to lay out columns side-by-side.
|
|
3269
3797
|
* @default '34rem'
|
|
3270
3798
|
*/
|
|
3271
3799
|
minContainerQueryWidth?: string;
|
|
@@ -3277,29 +3805,93 @@ type ObjectListItemMultiProps = Omit<ObjectItemProps, 'cover'> & {
|
|
|
3277
3805
|
renderAs?: 'multi';
|
|
3278
3806
|
children?: ReactNode;
|
|
3279
3807
|
};
|
|
3280
|
-
/**
|
|
3808
|
+
/**
|
|
3809
|
+
* A horizontal list item for displaying an object with header, cover, right slot, and optional context menu.
|
|
3810
|
+
*
|
|
3811
|
+
* Uses container queries so the layout adapts to its parent width rather than the viewport.
|
|
3812
|
+
* Wrap items with {@link ObjectListItemContainer} to get proper list semantics and dividers.
|
|
3813
|
+
*
|
|
3814
|
+
* @example
|
|
3815
|
+
* ```tsx
|
|
3816
|
+
* <ObjectListItem
|
|
3817
|
+
* header={<ObjectListItemHeading heading="My entry" />}
|
|
3818
|
+
* rightSlot={<StatusBullet status="published" />}
|
|
3819
|
+
* menuItems={<MenuItem onClick={onDelete}>Delete</MenuItem>}
|
|
3820
|
+
* />
|
|
3821
|
+
* ```
|
|
3822
|
+
*/
|
|
3281
3823
|
declare const ObjectListItem: ({ minContainerQueryWidth, ...props }: ObjectListItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3282
3824
|
|
|
3283
|
-
/**
|
|
3825
|
+
/**
|
|
3826
|
+
* Vertical container that wraps {@link ObjectListItem} elements with `role="list"` semantics
|
|
3827
|
+
* and renders a top-border divider between each item.
|
|
3828
|
+
*
|
|
3829
|
+
* @example
|
|
3830
|
+
* ```tsx
|
|
3831
|
+
* <ObjectListItemContainer>
|
|
3832
|
+
* <ObjectListItem header={<ObjectListItemHeading heading="Item 1" />} />
|
|
3833
|
+
* <ObjectListItem header={<ObjectListItemHeading heading="Item 2" />} />
|
|
3834
|
+
* </ObjectListItemContainer>
|
|
3835
|
+
* ```
|
|
3836
|
+
*/
|
|
3284
3837
|
declare const ObjectListItemContainer: ({ children, gap, ...props }: RhythmProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3285
3838
|
|
|
3286
|
-
/**
|
|
3839
|
+
/** Props for {@link ObjectListItemCover}. */
|
|
3287
3840
|
type ObjectListItemCoverProps = {
|
|
3841
|
+
/** URL of the thumbnail image. When omitted, a placeholder with `noImageText` is shown instead. */
|
|
3288
3842
|
imageUrl?: string;
|
|
3289
|
-
/**
|
|
3843
|
+
/** Placeholder text displayed when `imageUrl` is not provided.
|
|
3290
3844
|
* @default 'Image not available'
|
|
3291
3845
|
*/
|
|
3292
3846
|
noImageText?: string;
|
|
3847
|
+
/** (optional) sets the icon to display when there is no image */
|
|
3848
|
+
icon?: IconType | undefined;
|
|
3293
3849
|
} & HTMLAttributes<HTMLImageElement>;
|
|
3294
|
-
/**
|
|
3295
|
-
|
|
3850
|
+
/**
|
|
3851
|
+
* Thumbnail cover image for use inside {@link ObjectListItem}'s `cover` slot.
|
|
3852
|
+
* Renders a fixed-size (80×45) container with a lazy-loaded image, or a
|
|
3853
|
+
* text placeholder when no `imageUrl` is available.
|
|
3854
|
+
*
|
|
3855
|
+
* @example
|
|
3856
|
+
* ```tsx
|
|
3857
|
+
* <ObjectListItem
|
|
3858
|
+
* cover={<ObjectListItemCover imageUrl="https://example.com/thumb.jpg" />}
|
|
3859
|
+
* header={<ObjectListItemHeading heading="My entry" />}
|
|
3860
|
+
* />
|
|
3861
|
+
* ```
|
|
3862
|
+
*/
|
|
3863
|
+
declare const ObjectListItemCover: ({ imageUrl, noImageText, icon, ...props }: ObjectListItemCoverProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3296
3864
|
|
|
3297
|
-
/**
|
|
3865
|
+
/** Props for {@link ObjectListItemHeading}. */
|
|
3298
3866
|
type ObjectListItemHeadingProps = Omit<ObjectHeadingProps, 'heading' | 'tooltip'> & HTMLAttributes<HTMLDivElement> & {
|
|
3867
|
+
/** The heading content — typically a string, link, or inline element. */
|
|
3299
3868
|
heading: ReactNode;
|
|
3869
|
+
/** Override the `data-testid` on the heading element.
|
|
3870
|
+
* @default 'reference-item-name'
|
|
3871
|
+
*/
|
|
3872
|
+
headingTestId?: string;
|
|
3300
3873
|
};
|
|
3301
|
-
/**
|
|
3302
|
-
|
|
3874
|
+
/**
|
|
3875
|
+
* Heading component designed for use inside {@link ObjectListItem}'s `header` slot.
|
|
3876
|
+
*
|
|
3877
|
+
* Renders a responsive heading row that stacks vertically on narrow containers
|
|
3878
|
+
* and switches to a horizontal layout at wider widths (controlled by a container query).
|
|
3879
|
+
*
|
|
3880
|
+
* @example
|
|
3881
|
+
* ```tsx
|
|
3882
|
+
* <ObjectListItemHeading
|
|
3883
|
+
* heading={<a href="/entries/123">My entry</a>}
|
|
3884
|
+
* beforeHeadingSlot={<Icon icon={uniformComposition} />}
|
|
3885
|
+
* afterHeadingSlot={<Chip text="Draft" />}
|
|
3886
|
+
* />
|
|
3887
|
+
* ```
|
|
3888
|
+
*/
|
|
3889
|
+
declare const ObjectListItemHeading: ({ heading, beforeHeadingSlot, afterHeadingSlot, headingTestId, ...props }: ObjectListItemHeadingProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3890
|
+
|
|
3891
|
+
type ObjectListSubTextProps = {
|
|
3892
|
+
children: React.ReactNode;
|
|
3893
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
3894
|
+
declare const ObjectListSubText: ({ children, ...props }: ObjectListSubTextProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3303
3895
|
|
|
3304
3896
|
declare function Pagination({ limit, offset, total, onPageChange, }: {
|
|
3305
3897
|
limit: number;
|
|
@@ -3389,6 +3981,7 @@ type BaseParameterActionButtonProps = {
|
|
|
3389
3981
|
* If a React element is provided, it will be displayed as a tooltip.
|
|
3390
3982
|
*/
|
|
3391
3983
|
tooltip?: string | React__default.ReactNode;
|
|
3984
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
3392
3985
|
/**
|
|
3393
3986
|
* The component to render the button as.
|
|
3394
3987
|
* There maybe a scenario where we want to render the button as a div
|
|
@@ -3407,7 +4000,7 @@ interface FilledVariant extends BaseParameterActionButtonProps {
|
|
|
3407
4000
|
inverted?: boolean;
|
|
3408
4001
|
}
|
|
3409
4002
|
type ParameterActionButtonProps = OutlineVariant | FilledVariant;
|
|
3410
|
-
declare const ParameterActionButton: ({ children, themeType, tooltip, renderAs, disabled, ...props }: ParameterActionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4003
|
+
declare const ParameterActionButton: ({ children, themeType, tooltip, tooltipProps, renderAs, disabled, ...props }: ParameterActionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3411
4004
|
|
|
3412
4005
|
type ParameterDrawerHeaderProps = {
|
|
3413
4006
|
title: string;
|
|
@@ -3496,6 +4089,44 @@ type ParameterLabelProps = HTMLAttributes<HTMLLabelElement> & {
|
|
|
3496
4089
|
/** @example <ParameterLabel id="my-label">my label</ParameterLabel> */
|
|
3497
4090
|
declare const ParameterLabel: ({ id, asSpan, children, testId, ...props }: ParameterLabelProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3498
4091
|
|
|
4092
|
+
/** Extended option type that supports label-specific properties */
|
|
4093
|
+
type LabelOption = InputComboBoxOption & {
|
|
4094
|
+
/** The color variant for the label swatch */
|
|
4095
|
+
color?: SwatchVariant;
|
|
4096
|
+
/** Whether this option represents a group header */
|
|
4097
|
+
isGroup?: boolean;
|
|
4098
|
+
/** The parent group ID if this label belongs to a group */
|
|
4099
|
+
parent?: string;
|
|
4100
|
+
/** Tooltip content for the label */
|
|
4101
|
+
tooltip?: string | React.ReactElement;
|
|
4102
|
+
};
|
|
4103
|
+
type ParameterLabelsInnerProps = Pick<InputComboBoxProps<LabelOption, true>, 'options' | 'value' | 'defaultValue' | 'onChange' | 'onBlur' | 'isClearable' | 'isDisabled'> & {
|
|
4104
|
+
/** Callback when an item is removed from the selection */
|
|
4105
|
+
onItemRemoved?: (id: string) => void;
|
|
4106
|
+
/** Callback when a new label is created */
|
|
4107
|
+
onCreateLabel?: (label: string) => void;
|
|
4108
|
+
/** Override the text displayed on the filter button */
|
|
4109
|
+
buttonText?: string;
|
|
4110
|
+
/** Override the text displayed on the add button */
|
|
4111
|
+
addButtonText?: string | null;
|
|
4112
|
+
/** the function to call when the quick filter is opened */
|
|
4113
|
+
onOpen?: () => void;
|
|
4114
|
+
/** the function to call when the quick filter is closed */
|
|
4115
|
+
onClose?: () => void;
|
|
4116
|
+
/** The maximum number of labels that can be selected */
|
|
4117
|
+
maxCount?: number;
|
|
4118
|
+
};
|
|
4119
|
+
type ParameterLabelsProps = CommonParameterInputProps & ParameterLabelsInnerProps & {
|
|
4120
|
+
disabled?: boolean;
|
|
4121
|
+
};
|
|
4122
|
+
/**
|
|
4123
|
+
* A parameter input component for selecting multiple labels with swatch colors.
|
|
4124
|
+
* Supports grouped labels with nested menus.
|
|
4125
|
+
* @example <ParameterLabels id="labels" label="Labels" options={[]} value={[]} onChange={() => {}} />
|
|
4126
|
+
*/
|
|
4127
|
+
declare const ParameterLabels: ({ disabled, ...props }: ParameterLabelsProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4128
|
+
declare const ParameterLabelsInner: (props: ParameterLabelsInnerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4129
|
+
|
|
3499
4130
|
type ParameterLinkProps = CommonParameterInputProps & React.InputHTMLAttributes<HTMLInputElement> & {
|
|
3500
4131
|
/** (optional) sets the button text when value is empty
|
|
3501
4132
|
* @default 'Configure link'
|
|
@@ -3900,7 +4531,9 @@ declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hid
|
|
|
3900
4531
|
declare const ParameterShellPlaceholder: ({ children }: {
|
|
3901
4532
|
children?: ReactNode;
|
|
3902
4533
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3903
|
-
declare const ParameterOverrideMarker: (props: HTMLAttributes<HTMLButtonElement>
|
|
4534
|
+
declare const ParameterOverrideMarker: (props: HTMLAttributes<HTMLButtonElement> & {
|
|
4535
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
4536
|
+
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3904
4537
|
|
|
3905
4538
|
type ParameterTextareaProps = CommonParameterInputProps & React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
3906
4539
|
/** @example <ParameterTextarea label="label value" id="my-textarea" /> */
|
|
@@ -3941,8 +4574,7 @@ declare const ParameterToggleInner: React$1.ForwardRefExoticComponent<Omit<React
|
|
|
3941
4574
|
withoutIndeterminateState?: boolean;
|
|
3942
4575
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3943
4576
|
|
|
3944
|
-
type PopoverProps =
|
|
3945
|
-
/** sets the aria-controls and id value of the matching popover set */
|
|
4577
|
+
type PopoverProps = Pick<React.HTMLAttributes<HTMLDivElement>, 'className' | 'style' | 'tabIndex' | 'id'> & {
|
|
3946
4578
|
/** sets the icon color
|
|
3947
4579
|
* @default 'action'
|
|
3948
4580
|
*/
|
|
@@ -3962,7 +4594,7 @@ type PopoverProps = Omit<PopoverProps$1, 'unmountOnHide'> & {
|
|
|
3962
4594
|
/** sets the placement of the popover
|
|
3963
4595
|
* @default 'bottom'
|
|
3964
4596
|
*/
|
|
3965
|
-
placement?:
|
|
4597
|
+
placement?: Placement;
|
|
3966
4598
|
/** sets a test id for e2e tests */
|
|
3967
4599
|
testId?: string;
|
|
3968
4600
|
children: ReactNode;
|
|
@@ -3979,15 +4611,36 @@ type PopoverProps = Omit<PopoverProps$1, 'unmountOnHide'> & {
|
|
|
3979
4611
|
* @default 'small'
|
|
3980
4612
|
*/
|
|
3981
4613
|
variant?: 'large' | 'small';
|
|
4614
|
+
/**
|
|
4615
|
+
* Distance between the anchor and the popover in pixels.
|
|
4616
|
+
* @default 0
|
|
4617
|
+
*/
|
|
4618
|
+
gutter?: number;
|
|
4619
|
+
/**
|
|
4620
|
+
* Whether to render the popover in a portal.
|
|
4621
|
+
* @default true
|
|
4622
|
+
*/
|
|
4623
|
+
portal?: boolean;
|
|
4624
|
+
/** Controls the popover open state externally. */
|
|
4625
|
+
open?: boolean;
|
|
4626
|
+
/** Called when the popover open state changes. */
|
|
4627
|
+
onOpenChange?: (open: boolean) => void;
|
|
4628
|
+
/** Disables the popover trigger */
|
|
4629
|
+
disabled?: boolean;
|
|
3982
4630
|
};
|
|
3983
|
-
|
|
4631
|
+
interface PopoverComponentContextValue {
|
|
4632
|
+
open: boolean;
|
|
4633
|
+
setOpen: (open: boolean) => void;
|
|
4634
|
+
hide: () => void;
|
|
4635
|
+
show: () => void;
|
|
4636
|
+
}
|
|
4637
|
+
declare const Popover: ({ iconColor, icon, iconSize, buttonText, ariaLabel, placement, testId, trigger, children, onInit, variant, maxWidth, gutter, portal, open: controlledOpen, onOpenChange: controlledOnOpenChange, className, style, tabIndex, id, disabled, }: PopoverProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3984
4638
|
/**
|
|
3985
|
-
* Hook to get the current popover context
|
|
3986
|
-
*
|
|
3987
|
-
*
|
|
3988
|
-
* @example const currentPopoverContext = usePopoverComponentContext();
|
|
4639
|
+
* Hook to get the current popover context.
|
|
4640
|
+
* Useful for closing the popover with a nested button or interactive element.
|
|
4641
|
+
* @example const popoverContext = usePopoverComponentContext();
|
|
3989
4642
|
*/
|
|
3990
|
-
declare const usePopoverComponentContext: () =>
|
|
4643
|
+
declare const usePopoverComponentContext: () => PopoverComponentContextValue | null;
|
|
3991
4644
|
|
|
3992
4645
|
type PopoverBodyProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
3993
4646
|
/**
|
|
@@ -4052,6 +4705,118 @@ type ProgressListItem<IdType extends string = string> = {
|
|
|
4052
4705
|
};
|
|
4053
4706
|
declare const ProgressListItem: ({ children, status, error, errorLevel, autoEllipsis, }: ProgressListItemProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4054
4707
|
|
|
4708
|
+
type QuickFilterSelectedItem = {
|
|
4709
|
+
/** Unique identifier for the selected item */
|
|
4710
|
+
id: string;
|
|
4711
|
+
/** Display name for the selected item */
|
|
4712
|
+
name: string;
|
|
4713
|
+
/** Optional swatch variant color */
|
|
4714
|
+
variant?: SwatchVariant | string;
|
|
4715
|
+
/** The tooltip to display inside the selected item */
|
|
4716
|
+
tooltip?: string | React.ReactElement;
|
|
4717
|
+
/** Optional icon to display on the left of the selected item */
|
|
4718
|
+
icon?: IconType;
|
|
4719
|
+
};
|
|
4720
|
+
type QuickFilterProps = {
|
|
4721
|
+
/** the icon to display on the left of the quick filter */
|
|
4722
|
+
iconLeft?: IconType;
|
|
4723
|
+
/** the text to display on the quick filter */
|
|
4724
|
+
buttonText: string;
|
|
4725
|
+
/** the function to call when the quick filter is clicked */
|
|
4726
|
+
/** the size of the quick filter
|
|
4727
|
+
* @default 'sm'
|
|
4728
|
+
*/
|
|
4729
|
+
size?: ButtonSizeProps;
|
|
4730
|
+
/** the test id to use for the quick filter */
|
|
4731
|
+
testId?: string;
|
|
4732
|
+
/** the aria label to use for the quick filter */
|
|
4733
|
+
ariaLabel?: string;
|
|
4734
|
+
/** the children to display inside the quick filter */
|
|
4735
|
+
children: ReactNode;
|
|
4736
|
+
/** whether the quick filter is disabled */
|
|
4737
|
+
disabled?: boolean;
|
|
4738
|
+
/** the selected items to display inside the quick filter */
|
|
4739
|
+
selectedItems?: QuickFilterSelectedItem[];
|
|
4740
|
+
/** the function to call when the search term is changed */
|
|
4741
|
+
onSearchTermChanged: (searchTerm: string) => void;
|
|
4742
|
+
/** addButtonText to use for the add button
|
|
4743
|
+
* @default 'Add'
|
|
4744
|
+
*/
|
|
4745
|
+
addButtonText?: string | null;
|
|
4746
|
+
/** the css to use for the swatch colors
|
|
4747
|
+
* @default swatchColors from the Swatch component
|
|
4748
|
+
*/
|
|
4749
|
+
swatchColorsCss?: SerializedStyles;
|
|
4750
|
+
/** the function to call when an item is removed */
|
|
4751
|
+
onItemRemoved?: (id: string) => void;
|
|
4752
|
+
/** the total number of results */
|
|
4753
|
+
totalResults: number;
|
|
4754
|
+
/** the maximum height of the menu
|
|
4755
|
+
* @default '320px'
|
|
4756
|
+
*/
|
|
4757
|
+
maxMenuHeight?: string;
|
|
4758
|
+
/** the maximum number of results to display
|
|
4759
|
+
* @default 5
|
|
4760
|
+
*/
|
|
4761
|
+
maxCount?: number;
|
|
4762
|
+
/** the css to use for the container
|
|
4763
|
+
* @default swatchColors from the Swatch component
|
|
4764
|
+
*/
|
|
4765
|
+
containerCss?: SerializedStyles;
|
|
4766
|
+
/** Render function for displaying selected items. Receives selectedItems and onItemRemoved.
|
|
4767
|
+
* @default Renders SwatchLabel components
|
|
4768
|
+
*/
|
|
4769
|
+
resultsComponent?: (props: {
|
|
4770
|
+
selectedItems: QuickFilterSelectedItem[];
|
|
4771
|
+
onItemRemoved?: (id: string) => void;
|
|
4772
|
+
}) => ReactNode;
|
|
4773
|
+
/** the message to display when there are no results
|
|
4774
|
+
* @default ''
|
|
4775
|
+
*/
|
|
4776
|
+
hasNoResultsMessage?: string;
|
|
4777
|
+
/** the placeholder text to display in the search input
|
|
4778
|
+
* @default 'Search...'
|
|
4779
|
+
*/
|
|
4780
|
+
searchPlaceholderText?: string;
|
|
4781
|
+
/**
|
|
4782
|
+
* The maximum width of the quick filter container.
|
|
4783
|
+
* Useful for controlling the maximum width of the filter in different layouts (e.g., responsive sidebars).
|
|
4784
|
+
* @default '4rem'
|
|
4785
|
+
*/
|
|
4786
|
+
maxContainerSize?: string;
|
|
4787
|
+
/** the icon to display on the left of the quick filter when collapsed */
|
|
4788
|
+
collapsedIcon?: IconType;
|
|
4789
|
+
/** the function to call when the quick filter is opened */
|
|
4790
|
+
onOpen?: () => void;
|
|
4791
|
+
/** the function to call when the quick filter is closed */
|
|
4792
|
+
onClose?: () => void;
|
|
4793
|
+
/**
|
|
4794
|
+
* Override the placement of the dropdown menu.
|
|
4795
|
+
* @default 'right-start'
|
|
4796
|
+
*/
|
|
4797
|
+
menuPlacement?: MenuProps['placement'];
|
|
4798
|
+
/**
|
|
4799
|
+
* Override the anchor rect for custom menu positioning.
|
|
4800
|
+
* Pass `null` to disable the built-in default and use standard positioning.
|
|
4801
|
+
* @default Anchors to the container's right edge
|
|
4802
|
+
*/
|
|
4803
|
+
menuGetAnchorRect?: ((anchor: HTMLElement | null) => {
|
|
4804
|
+
x?: number;
|
|
4805
|
+
y?: number;
|
|
4806
|
+
width?: number;
|
|
4807
|
+
height?: number;
|
|
4808
|
+
}) | null;
|
|
4809
|
+
/**
|
|
4810
|
+
* Override the updatePosition callback to control when the menu repositions.
|
|
4811
|
+
* Pass `null` to disable the built-in default (position freezing) and allow normal repositioning.
|
|
4812
|
+
* @default Freezes position after initial placement
|
|
4813
|
+
*/
|
|
4814
|
+
menuUpdatePosition?: MenuProps['updatePosition'] | null;
|
|
4815
|
+
/** Called when Enter is pressed in the search input and no active menu item handles the event */
|
|
4816
|
+
onSearchEnterKeyDown?: () => void;
|
|
4817
|
+
};
|
|
4818
|
+
declare const QuickFilter: ({ iconLeft, collapsedIcon, buttonText, testId, ariaLabel, children, size, disabled, selectedItems, onSearchTermChanged, addButtonText, onItemRemoved, totalResults, maxMenuHeight, maxCount, containerCss, resultsComponent, hasNoResultsMessage, searchPlaceholderText, maxContainerSize, onOpen, onClose, menuPlacement, menuGetAnchorRect, menuUpdatePosition, onSearchEnterKeyDown, }: QuickFilterProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4819
|
+
|
|
4055
4820
|
type SegmentedControlOption<TValue extends string = string> = {
|
|
4056
4821
|
value: TValue;
|
|
4057
4822
|
label?: string;
|
|
@@ -4121,6 +4886,114 @@ declare const Spinner: ({ width, label, isPaused, }: {
|
|
|
4121
4886
|
isPaused?: boolean;
|
|
4122
4887
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4123
4888
|
|
|
4889
|
+
/** The direction of a step transition, determining which slide animation to play. */
|
|
4890
|
+
type StackedModalDirection = 'forward' | 'backward';
|
|
4891
|
+
/** The full navigation state exposed by the `useStackedModal` hook. */
|
|
4892
|
+
type StackedModalContextValue = {
|
|
4893
|
+
/** The zero-indexed active step. */
|
|
4894
|
+
currentStep: number;
|
|
4895
|
+
/** The total number of steps. */
|
|
4896
|
+
totalSteps: number;
|
|
4897
|
+
/** The direction of the last navigation, used to drive slide animations. */
|
|
4898
|
+
direction: StackedModalDirection;
|
|
4899
|
+
/** The zero-indexed step that was active before the last navigation. Used internally for animation. */
|
|
4900
|
+
previousStep: number;
|
|
4901
|
+
/** Navigate to the next step. No-op if already on the last step. */
|
|
4902
|
+
nextStep: () => void;
|
|
4903
|
+
/** Navigate to the previous step. No-op if already on the first step. */
|
|
4904
|
+
goBack: () => void;
|
|
4905
|
+
/** Navigate to a specific step by index. */
|
|
4906
|
+
goToStep: (index: number) => void;
|
|
4907
|
+
};
|
|
4908
|
+
/**
|
|
4909
|
+
* Hook to access the stacked modal navigation context.
|
|
4910
|
+
* Provides the current step, total steps, navigation direction, and functions to navigate between steps.
|
|
4911
|
+
*
|
|
4912
|
+
* @throws If used outside of a `<StackedModal>` component tree.
|
|
4913
|
+
*/
|
|
4914
|
+
declare function useStackedModal(): StackedModalContextValue;
|
|
4915
|
+
/** The semantic transition state for a single step, derived from the navigation context. */
|
|
4916
|
+
type StepTransitionState = {
|
|
4917
|
+
/** Whether this step is the currently visible step. */
|
|
4918
|
+
isActive: boolean;
|
|
4919
|
+
/** Whether this step is animating out after being replaced by a new active step. */
|
|
4920
|
+
isExiting: boolean;
|
|
4921
|
+
/** Whether the modal is idle (no transition in progress). True on initial render and after animations complete. */
|
|
4922
|
+
isIdle: boolean;
|
|
4923
|
+
/** The direction of the current or most recent transition. */
|
|
4924
|
+
direction: StackedModalDirection;
|
|
4925
|
+
};
|
|
4926
|
+
|
|
4927
|
+
type StackedModalProps = {
|
|
4928
|
+
/** The step content. Each child should be a `StackedModalStep` component. */
|
|
4929
|
+
children: ReactNode;
|
|
4930
|
+
/**
|
|
4931
|
+
* Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked.
|
|
4932
|
+
* If undefined is passed, the modal will not be closable by the user and the close button will not be rendered.
|
|
4933
|
+
*/
|
|
4934
|
+
onRequestClose: ModalProps['onRequestClose'];
|
|
4935
|
+
/**
|
|
4936
|
+
* The size sets the modal width to one of three options sm = 400px, md = 600px and lg = 800px.
|
|
4937
|
+
* If a width attribute is used the size will be overridden by the width attribute.
|
|
4938
|
+
* @default 'lg'
|
|
4939
|
+
*/
|
|
4940
|
+
modalSize?: ModalProps['modalSize'];
|
|
4941
|
+
/** A valid CSS width. Overrides `modalSize` when provided. */
|
|
4942
|
+
width?: string;
|
|
4943
|
+
/** A valid CSS height. */
|
|
4944
|
+
height?: string;
|
|
4945
|
+
/**
|
|
4946
|
+
* The zero-indexed step to display initially.
|
|
4947
|
+
* @default 0
|
|
4948
|
+
*/
|
|
4949
|
+
initialStep?: number;
|
|
4950
|
+
};
|
|
4951
|
+
/**
|
|
4952
|
+
* A modal component that supports multi-step content with sliding transitions.
|
|
4953
|
+
* Each child should be a `StackedModalStep` component that defines its own header,
|
|
4954
|
+
* content, and button group.
|
|
4955
|
+
*
|
|
4956
|
+
* Use the `useStackedModal` hook inside step content to navigate between steps.
|
|
4957
|
+
*
|
|
4958
|
+
* @example
|
|
4959
|
+
* <StackedModal onRequestClose={handleClose} modalSize="lg">
|
|
4960
|
+
* <StackedModalStep header="Step 1" buttonGroup={<Buttons />}>
|
|
4961
|
+
* <StepOneContent />
|
|
4962
|
+
* </StackedModalStep>
|
|
4963
|
+
* <StackedModalStep header="Step 2" buttonGroup={<Buttons />}>
|
|
4964
|
+
* <StepTwoContent />
|
|
4965
|
+
* </StackedModalStep>
|
|
4966
|
+
* </StackedModal>
|
|
4967
|
+
*/
|
|
4968
|
+
declare const StackedModal: React__default.ForwardRefExoticComponent<StackedModalProps & React__default.RefAttributes<HTMLDialogElement>>;
|
|
4969
|
+
|
|
4970
|
+
/** Props for a single step within a `StackedModal`. */
|
|
4971
|
+
type StackedModalStepProps = {
|
|
4972
|
+
/**
|
|
4973
|
+
* Header content displayed in the modal's header row, inline with the close icon.
|
|
4974
|
+
* This prop is extracted by the parent `StackedModal` and rendered in the
|
|
4975
|
+
* modal chrome -- it is **not** rendered by `StackedModalStep` itself.
|
|
4976
|
+
*/
|
|
4977
|
+
header?: ReactNode;
|
|
4978
|
+
/** Optional button group rendered at the bottom of the step, typically navigation or submit buttons. */
|
|
4979
|
+
buttonGroup?: ReactNode;
|
|
4980
|
+
/** The main body content of the step. */
|
|
4981
|
+
children: ReactNode;
|
|
4982
|
+
};
|
|
4983
|
+
/**
|
|
4984
|
+
* Defines a single step inside a `StackedModal`.
|
|
4985
|
+
*
|
|
4986
|
+
* Renders a scrollable content area and an optional bottom button group.
|
|
4987
|
+
* The `header` prop is read by the parent `StackedModal` and displayed in the
|
|
4988
|
+
* modal header row with a matching slide animation.
|
|
4989
|
+
*
|
|
4990
|
+
* @example
|
|
4991
|
+
* <StackedModalStep header="Account details" buttonGroup={<Button>Next</Button>}>
|
|
4992
|
+
* <FormFields />
|
|
4993
|
+
* </StackedModalStep>
|
|
4994
|
+
*/
|
|
4995
|
+
declare function StackedModalStep({ children, buttonGroup }: StackedModalStepProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
4996
|
+
|
|
4124
4997
|
type SwitchProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
4125
4998
|
/** sets the label value */
|
|
4126
4999
|
label: ReactNode;
|
|
@@ -4214,30 +5087,57 @@ declare const TableRow: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedH
|
|
|
4214
5087
|
declare const TableCellHead: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
4215
5088
|
declare const TableCellData: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
4216
5089
|
|
|
4217
|
-
|
|
5090
|
+
interface TabsContextValue {
|
|
5091
|
+
value: string | undefined;
|
|
5092
|
+
setValue: (value: string | undefined) => void;
|
|
5093
|
+
}
|
|
5094
|
+
/** Returns the current tabs context with `value` and `setValue`. Must be used inside `<Tabs>`. */
|
|
5095
|
+
declare const useCurrentTab: () => TabsContextValue;
|
|
4218
5096
|
type TabsProps<TTabName extends string = string> = {
|
|
4219
5097
|
children: React__default.ReactNode;
|
|
4220
5098
|
selectedId?: TTabName;
|
|
4221
5099
|
manual?: boolean;
|
|
4222
|
-
orientation?:
|
|
5100
|
+
orientation?: 'horizontal' | 'vertical';
|
|
4223
5101
|
onSelectedIdChange?: (tabName: TTabName | undefined) => void;
|
|
4224
5102
|
/**
|
|
4225
5103
|
* @deprecated you can control the route state on the application level.
|
|
4226
5104
|
*/
|
|
4227
5105
|
useHashForState?: boolean;
|
|
5106
|
+
/** Forwarded to the root element. Receives the `className` generated by Emotion's `css` prop. */
|
|
5107
|
+
className?: string;
|
|
5108
|
+
/** Forwarded to the root element. */
|
|
5109
|
+
style?: React__default.CSSProperties;
|
|
4228
5110
|
};
|
|
4229
|
-
declare const Tabs: <TTabName extends string = string>({ children, onSelectedIdChange, useHashForState, selectedId, manual,
|
|
4230
|
-
|
|
4231
|
-
|
|
5111
|
+
declare const Tabs: <TTabName extends string = string>({ children, onSelectedIdChange, useHashForState, selectedId, manual, orientation, className, style, }: TabsProps<TTabName>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
5112
|
+
type TabButtonGroupProps = React__default.HTMLAttributes<HTMLDivElement> & {
|
|
5113
|
+
children?: React__default.ReactNode;
|
|
5114
|
+
};
|
|
5115
|
+
declare const TabButtonGroup: ({ children, ...props }: TabButtonGroupProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
5116
|
+
type TabButtonProps<TTabName extends string = string> = React__default.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4232
5117
|
id: TTabName;
|
|
4233
5118
|
children: React__default.ReactNode;
|
|
4234
5119
|
};
|
|
4235
5120
|
declare const TabButton: <TTabName extends string = string>({ children, id, ...props }: TabButtonProps<TTabName>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4236
|
-
type TabContentProps<TTabName extends string = string> =
|
|
5121
|
+
type TabContentProps<TTabName extends string = string> = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'id'> & {
|
|
5122
|
+
/**
|
|
5123
|
+
* When `tabId` is not set, this identifies which tab the panel belongs to.
|
|
5124
|
+
* When `tabId` IS set, this is just the HTML `id` attribute on the panel element.
|
|
5125
|
+
* @deprecated Pass `tabId` for tab identification; use `id` only as an HTML id.
|
|
5126
|
+
*/
|
|
5127
|
+
id?: TTabName | (string & {});
|
|
5128
|
+
/** Identifies which tab this content panel belongs to. Matches the `id` on the corresponding `TabButton`. */
|
|
4237
5129
|
tabId?: TTabName;
|
|
5130
|
+
/**
|
|
5131
|
+
* Whether to keep the panel mounted in the DOM when its tab is inactive.
|
|
5132
|
+
* Defaults to `true` so that embedded forms (e.g. Formik with debounced
|
|
5133
|
+
* auto-submit) preserve their state and pending work across tab switches.
|
|
5134
|
+
* Pass `false` only when you explicitly want inactive panels unmounted.
|
|
5135
|
+
* @default true
|
|
5136
|
+
*/
|
|
5137
|
+
keepMounted?: boolean;
|
|
4238
5138
|
children: React__default.ReactNode;
|
|
4239
5139
|
};
|
|
4240
|
-
declare const TabContent: <TTabName extends string = string>({ children, ...props }: TabContentProps<TTabName>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
5140
|
+
declare const TabContent: <TTabName extends string = string>({ children, tabId, id, keepMounted, ...props }: TabContentProps<TTabName>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4241
5141
|
|
|
4242
5142
|
type CreateTeamIntegrationTileProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
4243
5143
|
/** (optional) sets the title value
|
|
@@ -4536,4 +5436,4 @@ declare const StatusBullet: ({ status, hideText, size, message, compact, ...prop
|
|
|
4536
5436
|
|
|
4537
5437
|
declare const actionBarVisibilityStyles: _emotion_react.SerializedStyles;
|
|
4538
5438
|
|
|
4539
|
-
export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AsideAndSectionLayout, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps, type ButtonSoftThemeProps, type ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarProps, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterBgColors, type CounterIconColors, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, DragHandle, type DraggableHandleProps, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, FilterChip, FlexiCard, FlexiCardTitle, type GroupedOption, Heading, type HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputCreatableComboBox, type InputCreatableComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, KeyValueInput, type KeyValueInputProps, type KeyValueItem, Label, LabelLeadingIcon, type LabelLeadingIconProps, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkTile, type LinkTileWithRefProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuSelect, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, type ModalProps, MultilineChip, type MultilineChipProps, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, ObjectGridItemLoadingSkeleton, type ObjectGridItemProps, type ObjectGridItemTitleProps, ObjectItemLoadingSkeleton, type ObjectItemLoadingSkeletonProps, ObjectListItem, ObjectListItemContainer, ObjectListItemCover, type ObjectListItemCoverProps, ObjectListItemHeading, type ObjectListItemHeadingProps, type ObjectListItemProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, ParameterActionButton, type ParameterActionButtonProps, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterNumberSlider, ParameterNumberSliderInner, type ParameterNumberSliderProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterSelectSlider, ParameterSelectSliderInner, type ParameterSelectSliderProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, PopoverBody, type PopoverBodyProps, type PopoverProps, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, ResponsiveTableContainer, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, type SerializedLinkNode, type ShortcutReference, Skeleton, type SkeletonProps, Slider, SliderLabels, type SliderLabelsProps, type SliderOption, type SliderProps, Spinner, StatusBullet, type StatusBulletProps, type StatusTypeProps, SuccessMessage, type SuccessMessageProps, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, type TickMark, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, actionBarVisibilityStyles, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonDisabled, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonSoftAccentPrimary, buttonSoftAlt, buttonSoftDestructive, buttonSoftPrimary, buttonSoftTertiary, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, chatIcon, convertComboBoxGroupsToSelectableGroups, cq, customIcons, debounce, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getButtonSize, getButtonStyles, getComboBoxSelectedSelectableGroups, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, mq, numberInput, prefersReducedMotion, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInRtl, slideInTtb, spin, structurePanelIcon, supports, textInput, uniformAiIcon, uniformComponentIcon, uniformComponentPatternIcon, uniformCompositionPatternIcon, uniformConditionalValuesIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, uniformLocaleDisabledIcon, uniformLocaleIcon, uniformStatusDraftIcon, uniformStatusModifiedIcon, uniformStatusPublishedIcon, uniformUsageStatusIcon, useBreakpoint, useButtonStyles, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useImageLoadFallback, useOutsideClick, useParameterShell, usePopoverComponentContext, useRichTextToolbarState, useShortcut, functionalColors as utilityColors, warningIcon, yesNoIcon, zigZag, zigZagThick };
|
|
5439
|
+
export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AsideAndSectionLayout, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps, type ButtonSoftThemeProps, type ButtonThemeProps, ButtonWithMenu, type ButtonWithMenuProps, Calendar, type CalendarCellCss, type CalendarProps, type CalendarStyles, Callout, type CalloutProps, type CalloutType, Caption, type CaptionProps, Card, CardContainer, type CardContainerBgColorProps, type CardContainerProps, type CardProps, CardTitle, type CardTitleProps, CheckboxWithInfo, type CheckboxWithInforProps, type ChildFunction, Chip, type ChipProps, type ChipTheme, type ComboBoxGroupBase, type ComboBoxSelectableGroup, type ComboBoxSelectableItem, type ComboBoxSelectableOption, Container, type ContainerProps, type ConvertComboBoxGroupsToSelectableGroupsOptions, Counter, type CounterBgColors, type CounterIconColors, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, DateTimePickerSummary, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, DragHandle, type DraggableHandleProps, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, DropdownStyleMenuTrigger, type DropdownStyleMenuTriggerProps, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, FilterChip, FlexiCard, FlexiCardTitle, type GroupedOption, Heading, type HeadingProps, HorizontalRhythm, Icon, IconButton, type IconButtonProps, type IconColor, type IconName, type IconProps, type IconType, IconsProvider, Image, ImageBroken, type ImageProps, InfoMessage, type InfoMessageProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputCreatableComboBox, type InputCreatableComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, KeyValueInput, type KeyValueInputProps, type KeyValueItem, Label, LabelLeadingIcon, type LabelLeadingIconProps, type LabelOption, type LabelProps, LabelsQuickFilter, type LabelsQuickFilterItem, type LabelsQuickFilterProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, LinkButton, type LinkButtonProps, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkTile, type LinkTileWithRefProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, Menu, MenuButton, type MenuButtonProp, MenuGroup, type MenuGroupProps, MenuItem, MenuItemEmptyIcon, MenuItemIcon, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, MenuSelect, MenuThreeDots, type MenuThreeDotsProps, Modal, ModalDialog, type ModalDialogProps, ModalPortalContext, type ModalProps, MultilineChip, type MultilineChipProps, ObjectGridContainer, type ObjectGridContainerProps, ObjectGridItem, ObjectGridItemCardCover, type ObjectGridItemCardCoverProps, ObjectGridItemCover, ObjectGridItemCoverButton, type ObjectGridItemCoverButtonProps, type ObjectGridItemCoverProps, ObjectGridItemHeading, ObjectGridItemIconWithTooltip, type ObjectGridItemIconWithTooltipProps, ObjectGridItemLoadingSkeleton, type ObjectGridItemProps, type ObjectGridItemTitleProps, ObjectItemLoadingSkeleton, type ObjectItemLoadingSkeletonProps, ObjectListItem, ObjectListItemContainer, ObjectListItemCover, type ObjectListItemCoverProps, ObjectListItemHeading, type ObjectListItemHeadingProps, type ObjectListItemProps, ObjectListSubText, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, ParameterActionButton, type ParameterActionButtonProps, ParameterDrawerHeader, type ParameterDrawerHeaderProps, ParameterGroup, type ParameterGroupProps, ParameterImage, ParameterImageInner, ParameterImagePreview, type ParameterImageProps, ParameterInput, ParameterInputInner, type ParameterInputProps, ParameterLabel, type ParameterLabelProps, ParameterLabels, ParameterLabelsInner, ParameterLink, ParameterLinkInner, type ParameterLinkProps, ParameterMenuButton, type ParameterMenuButtonProps, ParameterMultiSelect, ParameterMultiSelectInner, type ParameterMultiSelectOption, type ParameterMultiSelectProps, ParameterNameAndPublicIdInput, type ParameterNameAndPublicIdInputProps, ParameterNumberSlider, ParameterNumberSliderInner, type ParameterNumberSliderProps, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, ParameterSelectSlider, ParameterSelectSliderInner, type ParameterSelectSliderProps, ParameterShell, ParameterShellContext, ParameterShellPlaceholder, type ParameterShellProps, ParameterTextarea, ParameterTextareaInner, type ParameterTextareaProps, ParameterToggle, ParameterToggleInner, type ParameterToggleProps, Popover, PopoverBody, type PopoverBodyProps, type PopoverProps, type PopoverStore, ProgressBar, type ProgressBarProps, ProgressList, ProgressListItem, type ProgressListItemProps, type ProgressListProps, QuickFilter, type QuickFilterSelectedItem, type RegisterDrawerProps, ResolveIcon, type ResolveIconProps, ResponsiveTableContainer, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SearchableMenu, type SearchableMenuProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, SelectableMenuItem, type SelectableMenuItemProps, type SerializedLinkNode, type ShortcutReference, Skeleton, type SkeletonProps, Slider, SliderLabels, type SliderLabelsProps, type SliderOption, type SliderProps, Spinner, StackedModal, type StackedModalProps, StackedModalStep, type StackedModalStepProps, StatusBullet, type StatusBulletProps, type StatusTypeProps, type StepTransitionState, SuccessMessage, type SuccessMessageProps, Swatch, SwatchComboBox, SwatchComboBoxLabelStyles, SwatchLabel, type SwatchLabelProps, SwatchLabelRemoveButton, SwatchLabelTooltip, type SwatchProps, type SwatchSize, type SwatchVariant, Switch, type SwitchProps, TAKEOVER_STACK_ID, TabButton, TabButtonGroup, type TabButtonGroupProps, type TabButtonProps, TabContent, type TabContentProps, Table, TableBody, type TableBodyProps, TableCellData, type TableCellDataProps, TableCellHead, type TableCellHeadProps, TableFoot, type TableFootProps, TableHead, type TableHeadProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, TakeoverDrawerRenderer, type TextAlignProps, Textarea, type TextareaProps, Theme, type ThemeProps, type TickMark, Tile, TileContainer, type TileContainerProps, type TileProps, TileText, type TileTitleProps, ToastContainer, type ToastContainerProps, Tooltip, type TooltipProps, TwoColumnLayout, type TwoColumnLayoutProps, UniformBadge, UniformLogo, UniformLogoLarge, type UniformLogoProps, type UseShortcutOptions, type UseShortcutResult, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, actionBarVisibilityStyles, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonDisabled, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonSoftAccentPrimary, buttonSoftAlt, buttonSoftDestructive, buttonSoftPrimary, buttonSoftTertiary, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, chatIcon, convertComboBoxGroupsToSelectableGroups, cq, customIcons, debounce, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getButtonSize, getButtonStyles, getComboBoxSelectedSelectableGroups, getDrawerAttributes, getFormattedShortcut, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isSecureURL, isValidUrl, jsonIcon, labelText, mq, numberInput, prefersReducedMotion, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInRtl, slideInTtb, spin, structurePanelIcon, supports, swatchColors, swatchVariant, textInput, uniformAiIcon, uniformComponentIcon, uniformComponentPatternIcon, uniformCompositionPatternIcon, uniformConditionalValuesIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, uniformLocaleDisabledIcon, uniformLocaleIcon, uniformStatusDraftIcon, uniformStatusModifiedIcon, uniformStatusPublishedIcon, uniformUsageStatusIcon, useBreakpoint, useButtonStyles, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useImageLoadFallback, useIsSubmenuTriggerMode, useModalPortalContainer, useOutsideClick, useParameterShell, usePopoverComponentContext, useRichTextToolbarState, useShortcut, useStackedModal, functionalColors as utilityColors, warningIcon, yesNoIcon, zigZag, zigZagThick };
|