@uniformdev/design-system 20.7.1-alpha.81 → 20.7.1-alpha.84
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 +2292 -1148
- package/dist/index.d.mts +228 -19
- package/dist/index.d.ts +228 -19
- package/dist/index.js +2095 -937
- package/package.json +11 -9
package/dist/index.d.ts
CHANGED
|
@@ -80,6 +80,14 @@ declare const supports: (cssProp: string) => string;
|
|
|
80
80
|
* @example `${cq('300px')} { background: red; }`
|
|
81
81
|
*/
|
|
82
82
|
declare const cq: (size: string) => string;
|
|
83
|
+
/**
|
|
84
|
+
* Prefers Reduced Motion Helper Function
|
|
85
|
+
* @function
|
|
86
|
+
* @param {string} cssProp - The css property you want to check support
|
|
87
|
+
* @returns {string} - compiled prefers reduced motion query e.g. @media (prefers-reduced-motion: reduce)
|
|
88
|
+
* @example `${prefersReducedMotion('reduce')} { animation: none; }`
|
|
89
|
+
*/
|
|
90
|
+
declare const prefersReducedMotion: (cssProp: "reduce" | "no-preference") => string;
|
|
83
91
|
|
|
84
92
|
/** @deprecated for internal use only */
|
|
85
93
|
declare const debounce: (fn: (...args: any[]) => void, ms?: number) => (this: any, ...args: any[]) => void;
|
|
@@ -1175,7 +1183,7 @@ type IconType = IconName | IconType$1;
|
|
|
1175
1183
|
/** sets fill color of the svg icon
|
|
1176
1184
|
* @default 'default'
|
|
1177
1185
|
*/
|
|
1178
|
-
type IconColor = 'white' | 'action' | 'default' | 'red' | 'gray' | 'gray300' | 'accent' | 'currentColor' | 'accent-dark' | 'accent-light' | 'accent-alt-dark';
|
|
1186
|
+
type IconColor = 'white' | 'action' | 'default' | 'red' | 'gray' | 'gray300' | 'accent' | 'currentColor' | 'accent-dark' | 'accent-light' | 'accent-alt-dark' | 'utility-success';
|
|
1179
1187
|
interface IconProps extends IconBaseProps {
|
|
1180
1188
|
/** sets the icon to be used */
|
|
1181
1189
|
icon: IconType;
|
|
@@ -1492,10 +1500,12 @@ type MultilineChipProps = {
|
|
|
1492
1500
|
declare const MultilineChip: ({ children, onClick, ...props }: MultilineChipProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1493
1501
|
|
|
1494
1502
|
type CounterBgColors = 'var(--white)' | 'var(--gray-50)' | 'var(--accent-light)' | 'var(--accent-dark)' | 'transparent';
|
|
1495
|
-
type CounterIconColors = 'auto' | 'var(--utility-caution-icon)' | 'var(--utility-danger-icon)' | 'var(--utility-info-icon)' | 'red';
|
|
1503
|
+
type CounterIconColors = 'auto' | 'var(--utility-caution-icon)' | 'var(--utility-danger-icon)' | 'var(--utility-info-icon)' | 'var(--utility-success-icon)' | 'red';
|
|
1496
1504
|
type CounterProps = {
|
|
1497
|
-
/** sets the count value, a 0 will show a dot instead of a number. Undefined will cause the counter to disappear.
|
|
1498
|
-
|
|
1505
|
+
/** sets the count value, a 0 will show a dot instead of a number. Undefined will cause the counter to disappear.
|
|
1506
|
+
* String can be used for formatting purposes, e.g. "1.2k" or regionalized number, e.g. "1,200"
|
|
1507
|
+
*/
|
|
1508
|
+
count: number | string | undefined;
|
|
1499
1509
|
/** sets the background color
|
|
1500
1510
|
* @default 'transparent'
|
|
1501
1511
|
*/
|
|
@@ -1504,9 +1514,13 @@ type CounterProps = {
|
|
|
1504
1514
|
iconColor?: CounterIconColors;
|
|
1505
1515
|
/** Optional icon for the counter */
|
|
1506
1516
|
icon?: IconType;
|
|
1517
|
+
/** sets the size of the counter
|
|
1518
|
+
* @default 'md'
|
|
1519
|
+
*/
|
|
1520
|
+
size?: 'sm' | 'md';
|
|
1507
1521
|
} & React.HTMLAttributes<HTMLDivElement>;
|
|
1508
1522
|
/** @example <Counter count={1} /> */
|
|
1509
|
-
declare const Counter: ({ count, bgColor, icon, iconColor, ...props }: CounterProps) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
1523
|
+
declare const Counter: ({ count, bgColor, icon, iconColor, size, ...props }: CounterProps) => _emotion_react_jsx_runtime.JSX.Element | null;
|
|
1510
1524
|
|
|
1511
1525
|
type TextAlignProps = 'left' | 'right' | 'center';
|
|
1512
1526
|
type BoxHeightProps = 'auto' | 'xs' | 'sm' | 'md' | 'lg';
|
|
@@ -2123,6 +2137,11 @@ type InputComboBoxOption<TValue = string> = {
|
|
|
2123
2137
|
* Note: this works for any type used for an option where a boolean called indented exists.
|
|
2124
2138
|
*/
|
|
2125
2139
|
indented?: boolean;
|
|
2140
|
+
/**
|
|
2141
|
+
* Sets the option to be fixed.
|
|
2142
|
+
* This will prevent the option from being removed or selected.
|
|
2143
|
+
*/
|
|
2144
|
+
isFixed?: boolean;
|
|
2126
2145
|
};
|
|
2127
2146
|
type InputComboBoxProps<TOption = InputComboBoxOption, IsMulti extends boolean = boolean, TGroup extends GroupBase<TOption> = GroupBase<TOption>> = Props<TOption, IsMulti, TGroup>;
|
|
2128
2147
|
type InputCreatableComboBoxProps<TOption = InputComboBoxOption, IsMulti extends boolean = boolean, TGroup extends GroupBase<TOption> = GroupBase<TOption>> = CreatableProps<TOption, IsMulti, TGroup>;
|
|
@@ -2511,6 +2530,7 @@ declare const JsonEditor: ({ defaultValue, onChange, jsonSchema, height, readOnl
|
|
|
2511
2530
|
type KeyValueItem<TValue extends string = string> = {
|
|
2512
2531
|
key: string;
|
|
2513
2532
|
value: TValue;
|
|
2533
|
+
icon?: string;
|
|
2514
2534
|
uniqueId?: string;
|
|
2515
2535
|
};
|
|
2516
2536
|
type KeyValueInputProps<TValue extends string = string> = {
|
|
@@ -2521,10 +2541,18 @@ type KeyValueInputProps<TValue extends string = string> = {
|
|
|
2521
2541
|
newItemDefault?: KeyValueItem<TValue>;
|
|
2522
2542
|
keyLabel?: string;
|
|
2523
2543
|
valueLabel?: string;
|
|
2544
|
+
iconLabel?: string;
|
|
2524
2545
|
keyInfoPopover?: ReactNode;
|
|
2525
2546
|
valueInfoPopover?: ReactNode;
|
|
2526
|
-
|
|
2547
|
+
iconInfoPopover?: ReactNode;
|
|
2548
|
+
errors?: (Record<keyof Omit<KeyValueItem, 'uniqueId'>, string> | Partial<Record<keyof Omit<KeyValueItem, 'uniqueId'>, string>> | null)[];
|
|
2527
2549
|
onFocusChange?: (isFocused: boolean) => void;
|
|
2550
|
+
showIconColumn?: boolean;
|
|
2551
|
+
renderIconSelector?: (props: {
|
|
2552
|
+
value?: string;
|
|
2553
|
+
onChange: (icon: string) => void;
|
|
2554
|
+
disabled?: boolean;
|
|
2555
|
+
}) => ReactNode;
|
|
2528
2556
|
};
|
|
2529
2557
|
/**
|
|
2530
2558
|
* A component to render a sortable key-value input
|
|
@@ -2533,7 +2561,7 @@ type KeyValueInputProps<TValue extends string = string> = {
|
|
|
2533
2561
|
* return <KeyValueInput value={value} onChange={setValue} />
|
|
2534
2562
|
* @deprecated This component is in beta, name and props are subject to change without a major version
|
|
2535
2563
|
*/
|
|
2536
|
-
declare const KeyValueInput: <TValue extends string = string>({ value, onChange, label, newItemDefault, keyLabel, valueLabel, keyInfoPopover, valueInfoPopover, disabled, errors, onFocusChange, }: KeyValueInputProps<TValue>) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2564
|
+
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;
|
|
2537
2565
|
|
|
2538
2566
|
type AsideAndSectionLayout = {
|
|
2539
2567
|
/** sets child components in the aside / supporting column */
|
|
@@ -2742,6 +2770,10 @@ interface DropdownStyleMenuTriggerProps extends React.HTMLAttributes<HTMLButtonE
|
|
|
2742
2770
|
children: React.ReactNode;
|
|
2743
2771
|
/** sets the background color of the button */
|
|
2744
2772
|
bgColor?: string;
|
|
2773
|
+
/** sets the variant of the button
|
|
2774
|
+
* @default "ghost"
|
|
2775
|
+
*/
|
|
2776
|
+
variant?: 'ghost' | 'outline';
|
|
2745
2777
|
}
|
|
2746
2778
|
/** Renders a dropdown menu style menu trigger button */
|
|
2747
2779
|
declare const DropdownStyleMenuTrigger: React$1.ForwardRefExoticComponent<DropdownStyleMenuTriggerProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -2804,6 +2836,11 @@ type MenuGroupProps = {
|
|
|
2804
2836
|
};
|
|
2805
2837
|
declare const MenuGroup: ({ title, children }: MenuGroupProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
2806
2838
|
|
|
2839
|
+
/**
|
|
2840
|
+
* base - default
|
|
2841
|
+
* red - red text
|
|
2842
|
+
* accent-alt - AI color (accent-alt-dark). DOES NOT change the text - only the icon color!
|
|
2843
|
+
*/
|
|
2807
2844
|
type MenuItemTextThemeProps = 'base' | 'red' | 'accent-alt';
|
|
2808
2845
|
type MenuItemProps = MenuItemProps$1 & {
|
|
2809
2846
|
/**
|
|
@@ -2879,6 +2916,7 @@ type MenuThreeDotsProps = {
|
|
|
2879
2916
|
* @default '1rem'
|
|
2880
2917
|
*/
|
|
2881
2918
|
iconSize?: string;
|
|
2919
|
+
disabled?: boolean;
|
|
2882
2920
|
} & HTMLAttributes<HTMLButtonElement>;
|
|
2883
2921
|
declare const MenuThreeDots: React$1.ForwardRefExoticComponent<{
|
|
2884
2922
|
/** sets the aria-label and title value on the button
|
|
@@ -2889,6 +2927,14 @@ declare const MenuThreeDots: React$1.ForwardRefExoticComponent<{
|
|
|
2889
2927
|
* @default '1rem'
|
|
2890
2928
|
*/
|
|
2891
2929
|
iconSize?: string;
|
|
2930
|
+
disabled?: boolean;
|
|
2931
|
+
} & HTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2932
|
+
declare const MenuSelect: React$1.ForwardRefExoticComponent<{
|
|
2933
|
+
/** sets the size of the menu select
|
|
2934
|
+
* @default 'base'
|
|
2935
|
+
*/
|
|
2936
|
+
size?: "xs" | "sm" | "base" | "md" | "lg";
|
|
2937
|
+
children: React.ReactNode;
|
|
2892
2938
|
} & HTMLAttributes<HTMLButtonElement> & React$1.RefAttributes<HTMLButtonElement>>;
|
|
2893
2939
|
|
|
2894
2940
|
type SearchableMenuProps = {
|
|
@@ -3177,6 +3223,35 @@ type LabelLeadingIconProps = HTMLAttributes<HTMLButtonElement> & {
|
|
|
3177
3223
|
};
|
|
3178
3224
|
declare const LabelLeadingIcon: ({ icon, iconColor, children, isActive, isLocked, title, ...props }: LabelLeadingIconProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3179
3225
|
|
|
3226
|
+
type BaseParameterActionButtonProps = {
|
|
3227
|
+
children: React__default.ReactNode;
|
|
3228
|
+
disabled?: boolean;
|
|
3229
|
+
/**
|
|
3230
|
+
* The tooltip to display when hovering over the button.
|
|
3231
|
+
* If a string is provided, it will be displayed as a tooltip.
|
|
3232
|
+
* If a React element is provided, it will be displayed as a tooltip.
|
|
3233
|
+
*/
|
|
3234
|
+
tooltip?: string | React__default.ReactNode;
|
|
3235
|
+
/**
|
|
3236
|
+
* The component to render the button as.
|
|
3237
|
+
* There maybe a scenario where we want to render the button as a div
|
|
3238
|
+
* @default 'button'
|
|
3239
|
+
*/
|
|
3240
|
+
renderAs?: 'button' | 'div';
|
|
3241
|
+
} & HTMLAttributes<HTMLButtonElement | HTMLDivElement>;
|
|
3242
|
+
interface OutlineVariant extends BaseParameterActionButtonProps {
|
|
3243
|
+
themeType: 'outline';
|
|
3244
|
+
}
|
|
3245
|
+
interface FilledVariant extends BaseParameterActionButtonProps {
|
|
3246
|
+
themeType: 'filled';
|
|
3247
|
+
/** inverts the border layout of the button
|
|
3248
|
+
* @default false
|
|
3249
|
+
*/
|
|
3250
|
+
inverted?: boolean;
|
|
3251
|
+
}
|
|
3252
|
+
type ParameterActionButtonProps = OutlineVariant | FilledVariant;
|
|
3253
|
+
declare const ParameterActionButton: ({ children, themeType, tooltip, renderAs, disabled, ...props }: ParameterActionButtonProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3254
|
+
|
|
3180
3255
|
type ParameterDrawerHeaderProps = {
|
|
3181
3256
|
title: string;
|
|
3182
3257
|
iconBeforeTitle?: ReactNode;
|
|
@@ -3298,6 +3373,9 @@ type ParameterMenuButtonProps = {
|
|
|
3298
3373
|
/** sets the legend value */
|
|
3299
3374
|
label: string;
|
|
3300
3375
|
children?: ReactNode;
|
|
3376
|
+
disabled?: boolean;
|
|
3377
|
+
/** set to true to render the menu directly in the parent DOM */
|
|
3378
|
+
withoutPortal?: boolean;
|
|
3301
3379
|
};
|
|
3302
3380
|
/** @example <ParameterMenuButton label="label value"><MenuItem>menu option component</MenuItem></ParameterMenuButton> */
|
|
3303
3381
|
declare const ParameterMenuButton: React$1.ForwardRefExoticComponent<ParameterMenuButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
@@ -3367,6 +3445,84 @@ type ParameterNameAndPublicIdInputProps = {
|
|
|
3367
3445
|
/** @example <ParameterNameAndPublicIdInput /> */
|
|
3368
3446
|
declare const ParameterNameAndPublicIdInput: ({ id, onBlur, autoFocus, onNameChange, onPublicIdChange, nameIdError, publicIdError, readOnly, hasInitialPublicIdField, label, warnOverLength, nameIdField, nameCaption, namePlaceholderText, publicIdFieldName, publicIdCaption, publicIdPlaceholderText, values, }: ParameterNameAndPublicIdInputProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3369
3447
|
|
|
3448
|
+
type SliderOption = {
|
|
3449
|
+
value: string;
|
|
3450
|
+
text: string;
|
|
3451
|
+
};
|
|
3452
|
+
type SliderProps = {
|
|
3453
|
+
value: number;
|
|
3454
|
+
onChange: (value: number) => void;
|
|
3455
|
+
onBlur?: () => void;
|
|
3456
|
+
min?: number;
|
|
3457
|
+
max?: number;
|
|
3458
|
+
step?: number;
|
|
3459
|
+
options?: SliderOption[];
|
|
3460
|
+
showNumberInput?: boolean;
|
|
3461
|
+
disabled?: boolean;
|
|
3462
|
+
'aria-label'?: string;
|
|
3463
|
+
id?: string;
|
|
3464
|
+
name?: string;
|
|
3465
|
+
};
|
|
3466
|
+
/**
|
|
3467
|
+
* Slider component that supports both numeric values and predefined options
|
|
3468
|
+
* @example
|
|
3469
|
+
* // Numeric mode
|
|
3470
|
+
* <Slider value={50} onChange={setValue} min={0} max={100} step={1} />
|
|
3471
|
+
*
|
|
3472
|
+
* // Options mode
|
|
3473
|
+
* <Slider value={1} onChange={setValue} options={[{value: 'small', text: 'Small'}, {value: 'large', text: 'Large'}]} />
|
|
3474
|
+
*/
|
|
3475
|
+
declare const Slider: React$1.ForwardRefExoticComponent<SliderProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
3476
|
+
|
|
3477
|
+
type TickMark = {
|
|
3478
|
+
position: number;
|
|
3479
|
+
percentage: number;
|
|
3480
|
+
label?: string;
|
|
3481
|
+
isLarge: boolean;
|
|
3482
|
+
};
|
|
3483
|
+
type SliderLabelsProps = {
|
|
3484
|
+
ticks: TickMark[];
|
|
3485
|
+
currentValue: number;
|
|
3486
|
+
containerWidth?: number;
|
|
3487
|
+
};
|
|
3488
|
+
/**
|
|
3489
|
+
* SliderLabels component that intelligently shows/hides labels based on available space
|
|
3490
|
+
*/
|
|
3491
|
+
declare function SliderLabels({ ticks, currentValue, containerWidth }: SliderLabelsProps): _emotion_react_jsx_runtime.JSX.Element;
|
|
3492
|
+
|
|
3493
|
+
type ParameterNumberSliderProps = CommonParameterInputProps & Omit<SliderProps, 'id' | 'aria-label' | 'options'> & {
|
|
3494
|
+
/**
|
|
3495
|
+
* The current numeric value of the slider
|
|
3496
|
+
*/
|
|
3497
|
+
value: number;
|
|
3498
|
+
/**
|
|
3499
|
+
* Callback when the value changes
|
|
3500
|
+
*/
|
|
3501
|
+
onChange: (value: number) => void;
|
|
3502
|
+
};
|
|
3503
|
+
/**
|
|
3504
|
+
* Parameter wrapper for numeric sliders
|
|
3505
|
+
* @example <ParameterNumberSlider label="Opacity" value={50} onChange={setValue} min={0} max={100} step={1} />
|
|
3506
|
+
*/
|
|
3507
|
+
declare const ParameterNumberSlider: React$1.ForwardRefExoticComponent<CommonParameterProps & {
|
|
3508
|
+
caption?: string;
|
|
3509
|
+
menuItems?: React$1.ReactNode;
|
|
3510
|
+
actionItems?: React.ReactNode;
|
|
3511
|
+
errorTestId?: string;
|
|
3512
|
+
captionTestId?: string;
|
|
3513
|
+
title?: string;
|
|
3514
|
+
} & Omit<SliderProps, "id" | "aria-label" | "options"> & {
|
|
3515
|
+
/**
|
|
3516
|
+
* The current numeric value of the slider
|
|
3517
|
+
*/
|
|
3518
|
+
value: number;
|
|
3519
|
+
/**
|
|
3520
|
+
* Callback when the value changes
|
|
3521
|
+
*/
|
|
3522
|
+
onChange: (value: number) => void;
|
|
3523
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3524
|
+
declare const ParameterNumberSliderInner: React$1.ForwardRefExoticComponent<Omit<SliderProps, "id" | "aria-label" | "options"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3525
|
+
|
|
3370
3526
|
type LinkNodeProps = NonNullable<LinkParamValue>;
|
|
3371
3527
|
type SerializedLinkNode = Spread<{
|
|
3372
3528
|
link: LinkNodeProps;
|
|
@@ -3475,16 +3631,17 @@ type RichTextProps = {
|
|
|
3475
3631
|
} | null>;
|
|
3476
3632
|
/** Assets */
|
|
3477
3633
|
onInsertAsset?: () => void;
|
|
3634
|
+
placeholder?: string;
|
|
3478
3635
|
};
|
|
3479
3636
|
type RichTextParamValue = SerializedEditorState | undefined | null;
|
|
3480
|
-
type ParameterRichTextInnerProps = RichTextProps & {
|
|
3637
|
+
type ParameterRichTextInnerProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> & RichTextProps & {
|
|
3481
3638
|
value: RichTextParamValue | ((editor: LexicalEditor) => void);
|
|
3482
3639
|
editorWrapperClassName?: string;
|
|
3483
3640
|
editorFooter?: React.ReactNode;
|
|
3484
3641
|
};
|
|
3485
3642
|
type ParameterRichTextProps = CommonParameterInputProps & ParameterRichTextInnerProps;
|
|
3486
|
-
declare const ParameterRichText: ({ label, labelLeadingIcon, hiddenLabel, id, errorMessage, caption, errorTestId, captionTestId, menuItems,
|
|
3487
|
-
declare const ParameterRichTextInner: ({ value,
|
|
3643
|
+
declare const ParameterRichText: ({ label, labelLeadingIcon, hiddenLabel, id, errorMessage, caption, errorTestId, captionTestId, menuItems, children, ...innerProps }: ParameterRichTextProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3644
|
+
declare const ParameterRichTextInner: ({ value, editorFooter, children, customNodes, editorWrapperClassName, ...richTextProps }: ParameterRichTextInnerProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3488
3645
|
|
|
3489
3646
|
type ParameterSelectProps = CommonParameterInputProps & CommonParameterSelectProps & React.InputHTMLAttributes<HTMLSelectElement>;
|
|
3490
3647
|
/** @example <ParameterSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]} */
|
|
@@ -3499,6 +3656,47 @@ declare const ParameterSelect: React$1.ForwardRefExoticComponent<CommonParameter
|
|
|
3499
3656
|
/** @example <ParameterSelectInner options={[{ label: 'option label', value: 0}]} />*/
|
|
3500
3657
|
declare const ParameterSelectInner: React$1.ForwardRefExoticComponent<Omit<ParameterSelectProps, "label" | "id"> & React$1.RefAttributes<HTMLSelectElement>>;
|
|
3501
3658
|
|
|
3659
|
+
type ParameterSelectSliderProps = CommonParameterInputProps & Omit<SliderProps, 'id' | 'aria-label' | 'value' | 'onChange' | 'min' | 'max' | 'step' | 'showNumberInput'> & {
|
|
3660
|
+
/**
|
|
3661
|
+
* The available options for the slider
|
|
3662
|
+
*/
|
|
3663
|
+
options: SliderOption[];
|
|
3664
|
+
/**
|
|
3665
|
+
* The current selected value (option value string)
|
|
3666
|
+
*/
|
|
3667
|
+
value: string;
|
|
3668
|
+
/**
|
|
3669
|
+
* Callback when the selection changes (receives option value string)
|
|
3670
|
+
*/
|
|
3671
|
+
onChange: (value: string) => void;
|
|
3672
|
+
};
|
|
3673
|
+
/**
|
|
3674
|
+
* Parameter wrapper for option-based sliders
|
|
3675
|
+
* @example <ParameterSelectSlider label="Size" value="medium" onChange={setValue} options={[{value: 'small', text: 'Small'}, {value: 'medium', text: 'Medium'}, {value: 'large', text: 'Large'}]} />
|
|
3676
|
+
*/
|
|
3677
|
+
declare const ParameterSelectSlider: React$1.ForwardRefExoticComponent<CommonParameterProps & {
|
|
3678
|
+
caption?: string;
|
|
3679
|
+
menuItems?: React$1.ReactNode;
|
|
3680
|
+
actionItems?: React.ReactNode;
|
|
3681
|
+
errorTestId?: string;
|
|
3682
|
+
captionTestId?: string;
|
|
3683
|
+
title?: string;
|
|
3684
|
+
} & Omit<SliderProps, "id" | "aria-label" | "onChange" | "max" | "min" | "step" | "value" | "showNumberInput"> & {
|
|
3685
|
+
/**
|
|
3686
|
+
* The available options for the slider
|
|
3687
|
+
*/
|
|
3688
|
+
options: SliderOption[];
|
|
3689
|
+
/**
|
|
3690
|
+
* The current selected value (option value string)
|
|
3691
|
+
*/
|
|
3692
|
+
value: string;
|
|
3693
|
+
/**
|
|
3694
|
+
* Callback when the selection changes (receives option value string)
|
|
3695
|
+
*/
|
|
3696
|
+
onChange: (value: string) => void;
|
|
3697
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3698
|
+
declare const ParameterSelectSliderInner: React$1.ForwardRefExoticComponent<Omit<ParameterSelectSliderProps, "caption" | "title" | "errorTestId" | "captionTestId" | "menuItems" | "actionItems" | keyof CommonParameterProps> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3699
|
+
|
|
3502
3700
|
/** A function that extracts all common props and element props
|
|
3503
3701
|
* @example const { shellProps, innerProps } = extractParameterProps(props) */
|
|
3504
3702
|
declare const extractParameterProps: <T>(props: T & CommonParameterInputProps) => {
|
|
@@ -3540,12 +3738,15 @@ type ParameterShellOverrideProps = {
|
|
|
3540
3738
|
*/
|
|
3541
3739
|
isParameterGroup?: boolean;
|
|
3542
3740
|
};
|
|
3543
|
-
type ParameterShellProps = React.InputHTMLAttributes<HTMLDivElement> & CommonParameterInputProps & ParameterShellOverrideProps
|
|
3741
|
+
type ParameterShellProps = React.InputHTMLAttributes<HTMLDivElement> & CommonParameterInputProps & ParameterShellOverrideProps & {
|
|
3742
|
+
/** set to true to render the menu directly in the parent DOM */
|
|
3743
|
+
menuWithoutPortal?: boolean;
|
|
3744
|
+
};
|
|
3544
3745
|
/**
|
|
3545
3746
|
* Uniform Parameter shell component
|
|
3546
3747
|
* @example <ParameterShell label="my label" id="my-id"><ParameterInput onChange={() => {}} /></ParameterShell>
|
|
3547
3748
|
*/
|
|
3548
|
-
declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hiddenLabel, id, errorMessage, warningMessage, infoMessage, caption, errorTestId, captionTestId, menuItems, actionItems, hasOverriddenValue, onResetOverriddenValue, title, children, isParameterGroup, ...props }: ParameterShellProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3749
|
+
declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hiddenLabel, id, errorMessage, warningMessage, infoMessage, caption, errorTestId, captionTestId, menuItems, actionItems, hasOverriddenValue, onResetOverriddenValue, title, children, isParameterGroup, menuWithoutPortal, ...props }: ParameterShellProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
3549
3750
|
declare const ParameterShellPlaceholder: ({ children }: {
|
|
3550
3751
|
children?: ReactNode;
|
|
3551
3752
|
}) => _emotion_react_jsx_runtime.JSX.Element;
|
|
@@ -3564,21 +3765,27 @@ declare const ParameterTextarea: React$1.ForwardRefExoticComponent<CommonParamet
|
|
|
3564
3765
|
/** @example <ParameterTextareaInner /> */
|
|
3565
3766
|
declare const ParameterTextareaInner: React$1.ForwardRefExoticComponent<React$1.HTMLAttributes<HTMLTextAreaElement> & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
3566
3767
|
|
|
3567
|
-
type
|
|
3768
|
+
type ParameterToggleInnerProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
3568
3769
|
type: 'checkbox' | 'radio';
|
|
3770
|
+
withoutIndeterminateState?: boolean;
|
|
3569
3771
|
};
|
|
3772
|
+
type ParameterToggleProps = CommonParameterInputProps & ParameterToggleInnerProps;
|
|
3570
3773
|
/** @example <ParameterToggle title="my checkbox" label="label value" id="my-checkbox" type="checkbox" onIconClick={() => alert('icon clicked)} /> */
|
|
3571
|
-
declare const ParameterToggle: React$1.ForwardRefExoticComponent<
|
|
3774
|
+
declare const ParameterToggle: React$1.ForwardRefExoticComponent<CommonParameterProps & {
|
|
3572
3775
|
caption?: string;
|
|
3573
3776
|
menuItems?: React$1.ReactNode;
|
|
3574
3777
|
actionItems?: React.ReactNode;
|
|
3575
3778
|
errorTestId?: string;
|
|
3576
3779
|
captionTestId?: string;
|
|
3577
3780
|
title?: string;
|
|
3578
|
-
} & {
|
|
3781
|
+
} & Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
3579
3782
|
type: "checkbox" | "radio";
|
|
3783
|
+
withoutIndeterminateState?: boolean;
|
|
3784
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3785
|
+
declare const ParameterToggleInner: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "type"> & {
|
|
3786
|
+
type: "checkbox" | "radio";
|
|
3787
|
+
withoutIndeterminateState?: boolean;
|
|
3580
3788
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
3581
|
-
declare const ParameterToggleInner: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttributes<HTMLInputElement> & React$1.RefAttributes<HTMLInputElement>>;
|
|
3582
3789
|
|
|
3583
3790
|
type PopoverProps = Omit<PopoverProps$1, 'unmountOnHide'> & {
|
|
3584
3791
|
/** sets the aria-controls and id value of the matching popover set */
|
|
@@ -3744,7 +3951,7 @@ type SwitchProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'type'> & {
|
|
|
3744
3951
|
/** sets the label value */
|
|
3745
3952
|
label: ReactNode;
|
|
3746
3953
|
/** (optional) sets information text */
|
|
3747
|
-
infoText?: string;
|
|
3954
|
+
infoText?: string | ReactNode;
|
|
3748
3955
|
/** sets the toggle text value */
|
|
3749
3956
|
toggleText?: string;
|
|
3750
3957
|
/** sets child elements */
|
|
@@ -3766,7 +3973,7 @@ declare const Switch: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAt
|
|
|
3766
3973
|
/** sets the label value */
|
|
3767
3974
|
label: ReactNode;
|
|
3768
3975
|
/** (optional) sets information text */
|
|
3769
|
-
infoText?: string;
|
|
3976
|
+
infoText?: string | ReactNode;
|
|
3770
3977
|
/** sets the toggle text value */
|
|
3771
3978
|
toggleText?: string;
|
|
3772
3979
|
/** sets child elements */
|
|
@@ -4164,4 +4371,6 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
4164
4371
|
};
|
|
4165
4372
|
declare const StatusBullet: ({ status, hideText, size, message, compact, ...props }: StatusBulletProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
4166
4373
|
|
|
4167
|
-
|
|
4374
|
+
declare const actionBarVisibilityStyles: _emotion_react.SerializedStyles;
|
|
4375
|
+
|
|
4376
|
+
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$1 as ButtonSizeProps, type ButtonSoftThemeProps, type ButtonThemeProps$1 as 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, FlexiCard, FlexiCardTitle, 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, 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, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonSoftAccentPrimary, buttonSoftAlt, buttonSoftDestructive, buttonSoftPrimary, buttonSoftTertiary, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, 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, useOutsideClick, useParameterShell, usePopoverComponentContext, useRichTextToolbarState, useShortcut, functionalColors as utilityColors, warningIcon, yesNoIcon, zigZag, zigZagThick };
|