@uniformdev/design-system 19.61.1 → 19.62.1-alpha.127
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/LICENSE +1 -1
- package/dist/esm/{importedIcons-GRLD5JXK.js → importedIcons-XEGXOSVC.js} +2 -0
- package/dist/esm/index.js +6170 -4258
- package/dist/index.d.mts +455 -95
- package/dist/index.d.ts +455 -95
- package/dist/index.js +6473 -4533
- package/package.json +20 -13
package/dist/index.d.mts
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
1
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
2
|
+
import { DecoratorFn } from '@storybook/react';
|
|
2
3
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { RefObject, HTMLAttributes, ReactNode, ImgHTMLAttributes, SVGProps, CSSProperties, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
|
|
4
|
-
import { GroupBase } from 'react-select';
|
|
4
|
+
import React__default, { RefObject, HTMLAttributes, ReactNode, ImgHTMLAttributes, SVGProps, InputHTMLAttributes, CSSProperties, Ref, ButtonHTMLAttributes, FocusEventHandler, ChangeEvent, HtmlHTMLAttributes } from 'react';
|
|
5
|
+
import { GroupBase, Props } from 'react-select';
|
|
5
6
|
export { ActionMeta, FormatOptionLabelContext, FormatOptionLabelMeta, GetOptionLabel, GetOptionValue, GroupBase, GroupHeadingProps, GroupProps, MenuListProps, MenuPlacement, MultiValue, MultiValueGenericProps, MultiValueProps, MultiValueRemoveProps, OnChangeValue, OptionContext, OptionProps, Options, OptionsOrGroups } from 'react-select';
|
|
6
7
|
import * as _emotion_react from '@emotion/react';
|
|
7
8
|
import { SerializedStyles } from '@emotion/react';
|
|
8
9
|
import { LottieComponentProps } from 'lottie-react';
|
|
9
10
|
import { ButtonProps as ButtonProps$1 } from 'reakit/Button';
|
|
10
|
-
import { MenuProps as MenuProps$1
|
|
11
|
+
import { MenuProps as MenuProps$1 } from 'reakit';
|
|
11
12
|
import * as _react_icons_all_files_lib from '@react-icons/all-files/lib';
|
|
12
13
|
import { IconType as IconType$1, IconBaseProps } from '@react-icons/all-files/lib';
|
|
13
14
|
import * as _react_icons_all_files from '@react-icons/all-files';
|
|
15
|
+
import { DateValue } from '@internationalized/date';
|
|
16
|
+
import { CalendarProps as CalendarProps$1, TimeFieldProps, TimeValue } from 'react-aria-components';
|
|
14
17
|
import InternalSelect from 'react-select/dist/declarations/src/Select';
|
|
15
|
-
import { StateManagerProps } from 'react-select/dist/declarations/src/useStateManager';
|
|
16
18
|
import { JsonSchema7Type } from 'zod-to-json-schema/src/parseDef';
|
|
17
|
-
import
|
|
19
|
+
import * as _ariakit_react from '@ariakit/react';
|
|
20
|
+
import { MenuProps as MenuProps$2, MenuStoreProps, MenuItemProps as MenuItemProps$1, PopoverProps as PopoverProps$1, PopoverProviderProps, TabStoreState, TabListProps, TabProps, TabPanelProps } from '@ariakit/react';
|
|
18
21
|
import { InitialConfigType } from '@lexical/react/LexicalComposer';
|
|
19
22
|
import { LinkParamValue, RichTextParamConfiguration } from '@uniformdev/canvas';
|
|
20
23
|
export { RichTextBuiltInElement, RichTextBuiltInFormat } from '@uniformdev/canvas';
|
|
21
24
|
import { Spread, SerializedElementNode, ElementNode, NodeKey, EditorConfig, DOMConversionMap, RangeSelection, SerializedEditorState, LexicalEditor } from 'lexical';
|
|
22
|
-
import { PopoverProps as PopoverProps$1, PopoverInitialState } from 'reakit/Popover';
|
|
23
25
|
import * as react_hotkeys_hook_dist_types from 'react-hotkeys-hook/dist/types';
|
|
24
|
-
import { TabState, TabListProps, TabProps, TabPanelProps } from 'reakit/Tab';
|
|
25
26
|
import { TooltipOptions, TooltipInitialState } from 'reakit/Tooltip';
|
|
26
27
|
export { richTextBuiltInElements, richTextBuiltInFormats } from '@uniformdev/richtext';
|
|
28
|
+
export { Id as ToastId, toast } from 'react-toastify';
|
|
27
29
|
|
|
28
30
|
/** @todo: line 144 onwards will be brought into a title, paragraph, list and link components */
|
|
29
31
|
type ThemeProps = {
|
|
@@ -42,6 +44,8 @@ type ThemeProps = {
|
|
|
42
44
|
* @example <Theme disableReset={true} /> */
|
|
43
45
|
declare const Theme: ({ disableReset, disableGlobalReset }: ThemeProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
44
46
|
|
|
47
|
+
declare const BetaDecorator: DecoratorFn;
|
|
48
|
+
|
|
45
49
|
/** Breakpoint label values */
|
|
46
50
|
type BreakpointSize = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
47
51
|
type BreakpointsMap = Record<BreakpointSize, number>;
|
|
@@ -74,7 +78,7 @@ declare const supports: (cssProp: string) => string;
|
|
|
74
78
|
* @function
|
|
75
79
|
* @param {string} size - The responsive breakpoint value
|
|
76
80
|
* @returns {string} - compiled container query e.g. @container (min-width: 640px)
|
|
77
|
-
* @example `${cq('300px
|
|
81
|
+
* @example `${cq('300px')} { background: red; }`
|
|
78
82
|
*/
|
|
79
83
|
declare const cq: (size: string) => string;
|
|
80
84
|
|
|
@@ -154,6 +158,7 @@ declare const skeletonLoading: _emotion_react.Keyframes;
|
|
|
154
158
|
declare const fadeInLtr: _emotion_react.Keyframes;
|
|
155
159
|
declare const fadeInRtl: _emotion_react.Keyframes;
|
|
156
160
|
declare const slideInTtb: _emotion_react.Keyframes;
|
|
161
|
+
declare const spin: _emotion_react.Keyframes;
|
|
157
162
|
|
|
158
163
|
/** Custom scrollbar styles */
|
|
159
164
|
declare const scrollbarStyles: _emotion_react.SerializedStyles;
|
|
@@ -20350,6 +20355,11 @@ declare const allSupportedIcons: {
|
|
|
20350
20355
|
'diamond-outline': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
20351
20356
|
'diamond-fill': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
20352
20357
|
'magic-wand': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
20358
|
+
'list-view-short': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
20359
|
+
'list-view-long': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
20360
|
+
'filter-add': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
20361
|
+
'clipboard-copy': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
20362
|
+
'clipboard-paste': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
20353
20363
|
'add-r': _react_icons_all_files_lib.IconType;
|
|
20354
20364
|
add: _react_icons_all_files_lib.IconType;
|
|
20355
20365
|
airplane: _react_icons_all_files_lib.IconType;
|
|
@@ -20535,6 +20545,7 @@ declare const allSupportedIcons: {
|
|
|
20535
20545
|
compress: _react_icons_all_files_lib.IconType;
|
|
20536
20546
|
controller: _react_icons_all_files_lib.IconType;
|
|
20537
20547
|
copy: _react_icons_all_files_lib.IconType;
|
|
20548
|
+
'copy-all': _react_icons_all_files_lib.IconType;
|
|
20538
20549
|
copyright: _react_icons_all_files_lib.IconType;
|
|
20539
20550
|
'corner-double-down-left': _react_icons_all_files_lib.IconType;
|
|
20540
20551
|
'corner-double-down-right': _react_icons_all_files_lib.IconType;
|
|
@@ -20999,7 +21010,7 @@ type IconName = keyof typeof allSupportedIcons;
|
|
|
20999
21010
|
/** sets fill color of the svg icon
|
|
21000
21011
|
* @default 'default'
|
|
21001
21012
|
*/
|
|
21002
|
-
type IconColor = 'white' | 'action' | 'default' | 'red' | 'gray' | 'accent' | 'currentColor' | 'accent-light';
|
|
21013
|
+
type IconColor = 'white' | 'action' | 'default' | 'red' | 'gray' | 'accent' | 'currentColor' | 'accent-dark' | 'accent-light';
|
|
21003
21014
|
/** sets the type of icon to use from the available list */
|
|
21004
21015
|
type IconType = IconName | IconType$1;
|
|
21005
21016
|
interface IconProps extends IconBaseProps {
|
|
@@ -21057,6 +21068,11 @@ declare const customIcons: {
|
|
|
21057
21068
|
'diamond-outline': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
21058
21069
|
'diamond-fill': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
21059
21070
|
'magic-wand': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
21071
|
+
'list-view-short': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
21072
|
+
'list-view-long': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
21073
|
+
'filter-add': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
21074
|
+
'clipboard-copy': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
21075
|
+
'clipboard-paste': (props: _react_icons_all_files.IconBaseProps) => JSX.Element;
|
|
21060
21076
|
};
|
|
21061
21077
|
|
|
21062
21078
|
type IconsMap = Record<string, IconType$1>;
|
|
@@ -21072,6 +21088,12 @@ declare function IconsProvider({ children }: {
|
|
|
21072
21088
|
children: ReactNode;
|
|
21073
21089
|
}): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21074
21090
|
|
|
21091
|
+
declare const uniformComponentIcon: IconType$1;
|
|
21092
|
+
declare const uniformComponentPatternIcon: IconType$1;
|
|
21093
|
+
declare const uniformContentTypeIcon: IconType$1;
|
|
21094
|
+
declare const uniformEntryIcon: IconType$1;
|
|
21095
|
+
declare const uniformEntryPatternIcon: IconType$1;
|
|
21096
|
+
|
|
21075
21097
|
type ButtonThemeProps = 'primary' | 'secondary' | 'unimportant' | 'ghost' | 'secondaryOutline';
|
|
21076
21098
|
type ButtonSizeProps = 'sm' | 'base' | 'lg';
|
|
21077
21099
|
interface ActionButtonsProps {
|
|
@@ -21084,13 +21106,24 @@ interface ActionButtonsProps {
|
|
|
21084
21106
|
*/
|
|
21085
21107
|
buttonType?: ButtonThemeProps;
|
|
21086
21108
|
/** sets the button text value */
|
|
21087
|
-
buttonText:
|
|
21109
|
+
buttonText: React$1.ReactNode;
|
|
21088
21110
|
/** sets a leading icon supporting the button text */
|
|
21089
21111
|
icon?: IconName;
|
|
21090
21112
|
/** adds child components to the ButtonWithMenu component */
|
|
21091
21113
|
children: React$1.ReactNode;
|
|
21092
21114
|
/** sets the button size */
|
|
21093
21115
|
size?: ButtonSizeProps;
|
|
21116
|
+
/** sets additional Menu component styles */
|
|
21117
|
+
menuContainerCssClasses?: SerializedStyles;
|
|
21118
|
+
/** sets whether to use a React portal rendering or not.
|
|
21119
|
+
* @default false
|
|
21120
|
+
*/
|
|
21121
|
+
withoutPortal?: boolean;
|
|
21122
|
+
/** (optional) sets the maximum height of the menu
|
|
21123
|
+
* setting a max menu height value will make the menu scrollable if the content exceeds the height
|
|
21124
|
+
* this is not compatible with nested menus that expand to the left or right of the menu
|
|
21125
|
+
*/
|
|
21126
|
+
maxMenuHeight?: string;
|
|
21094
21127
|
}
|
|
21095
21128
|
/** ButtonWithMenuProps combines the ActionButtonsProps with React HTMLButtonElement attributes */
|
|
21096
21129
|
type ButtonWithMenuProps = ActionButtonsProps & React$1.ButtonHTMLAttributes<HTMLButtonElement>;
|
|
@@ -21116,7 +21149,26 @@ type ButtonWithMenuProps = ActionButtonsProps & React$1.ButtonHTMLAttributes<HTM
|
|
|
21116
21149
|
</MenuItem>
|
|
21117
21150
|
</ButtonWithMenu>
|
|
21118
21151
|
*/
|
|
21119
|
-
declare const ButtonWithMenu: ({ onButtonClick, buttonType, buttonText, icon, disabled, children, placement, size, ...buttonProps }: ButtonWithMenuProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21152
|
+
declare const ButtonWithMenu: ({ onButtonClick, buttonType, buttonText, icon, disabled, children, placement, size, menuContainerCssClasses, withoutPortal, maxMenuHeight, ...buttonProps }: ButtonWithMenuProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21153
|
+
|
|
21154
|
+
/**
|
|
21155
|
+
* A string in the ISO 8601 date format: YYYY-MM-DD
|
|
21156
|
+
*/
|
|
21157
|
+
type IsoDateString = string;
|
|
21158
|
+
type CalendarProps = Pick<CalendarProps$1<DateValue>, 'autoFocus' | 'isDisabled' | 'isReadOnly' | 'isInvalid'> & Omit<HTMLAttributes<HTMLDivElement>, 'onChange' | 'onBlur' | 'onFocus'> & {
|
|
21159
|
+
value: IsoDateString | null | undefined;
|
|
21160
|
+
timeZone: string;
|
|
21161
|
+
minValue?: IsoDateString;
|
|
21162
|
+
maxValue?: IsoDateString;
|
|
21163
|
+
onChange?: (value: IsoDateString) => void;
|
|
21164
|
+
};
|
|
21165
|
+
/**
|
|
21166
|
+
* A Calendar Grid which allows the user to navigate
|
|
21167
|
+
* and select a date.
|
|
21168
|
+
*
|
|
21169
|
+
* @deprecated This component is in beta, name and props are subject to change without a major version
|
|
21170
|
+
*/
|
|
21171
|
+
declare const Calendar: ({ value, timeZone, minValue, maxValue, onChange, autoFocus, isDisabled, isInvalid, isReadOnly, ...props }: CalendarProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21120
21172
|
|
|
21121
21173
|
/** Callout button types available to use with our brand */
|
|
21122
21174
|
type CalloutType = 'caution' | 'danger' | 'info' | 'note' | 'success' | 'tip' | 'error';
|
|
@@ -21156,7 +21208,7 @@ type CardProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
21156
21208
|
/** (optional) sets options for a dropdown menu */
|
|
21157
21209
|
menuItems?: JSX.Element;
|
|
21158
21210
|
/** (optional) sets the data-testid attribute on the button element
|
|
21159
|
-
* @default '
|
|
21211
|
+
* @default 'button-more'
|
|
21160
21212
|
*/
|
|
21161
21213
|
menuButtonTestId?: string;
|
|
21162
21214
|
/** (optional) sets the menu button disabled state */
|
|
@@ -21270,11 +21322,79 @@ type DashedBoxProps = React$1.HTMLAttributes<HTMLDivElement> & {
|
|
|
21270
21322
|
*/
|
|
21271
21323
|
declare const DashedBox: ({ bgColor, textAlign, boxHeight, children, ...props }: DashedBoxProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21272
21324
|
|
|
21325
|
+
/**
|
|
21326
|
+
* A string in the ISO 8601 datetime format
|
|
21327
|
+
*/
|
|
21328
|
+
type IsoDateTimeString = string;
|
|
21329
|
+
declare enum DateTimePickerVariant {
|
|
21330
|
+
Date = "date",
|
|
21331
|
+
ZonedDateTime = "zoned-datetime"
|
|
21332
|
+
}
|
|
21333
|
+
interface DateTimePickerValue {
|
|
21334
|
+
datetime: IsoDateTimeString | null;
|
|
21335
|
+
timeZone?: string;
|
|
21336
|
+
}
|
|
21337
|
+
|
|
21338
|
+
type DateTimePickerProps = {
|
|
21339
|
+
id: string;
|
|
21340
|
+
/** (optional) sets the label value */
|
|
21341
|
+
label?: ReactNode;
|
|
21342
|
+
/** The current controlled value of the picker */
|
|
21343
|
+
value: DateTimePickerValue | null | undefined;
|
|
21344
|
+
/** (optional) The minimum visible date. The calendar will not show previous months */
|
|
21345
|
+
minVisible?: IsoDateTimeString;
|
|
21346
|
+
/** (optional) The maximum visible date. The calendar will not show subsequent months */
|
|
21347
|
+
maxVisible?: IsoDateTimeString;
|
|
21348
|
+
/** (optional) An event that fires when the value changes */
|
|
21349
|
+
onChange?: (value: DateTimePickerValue) => void;
|
|
21350
|
+
/** (optional) The UI variant for the picker which controls which components are shown */
|
|
21351
|
+
variant?: DateTimePickerVariant;
|
|
21352
|
+
/** (optional) sets caption text value */
|
|
21353
|
+
placeholder?: ReactNode;
|
|
21354
|
+
/** (optional) A slot below the time input, use this to populate quick time presets */
|
|
21355
|
+
belowTimeInputSlot?: ReactNode;
|
|
21356
|
+
/** (optional) sets caption text value */
|
|
21357
|
+
caption?: string | JSX.Element;
|
|
21358
|
+
/** (optional) sets whether to show the label or hide it and add a aria-label attributes to the input field directly */
|
|
21359
|
+
showLabel?: boolean;
|
|
21360
|
+
/** (optional) sets and shows the error message value */
|
|
21361
|
+
errorMessage?: string;
|
|
21362
|
+
/** (optional) sets and shows the warning message value */
|
|
21363
|
+
warningMessage?: string;
|
|
21364
|
+
/** (optional) disables the input preventing any interaction */
|
|
21365
|
+
disabled?: boolean;
|
|
21366
|
+
/** (optional) sets the base test id for each of the elements with a testid */
|
|
21367
|
+
testId?: string;
|
|
21368
|
+
};
|
|
21369
|
+
/**
|
|
21370
|
+
* Use this context for slots within the date time picker
|
|
21371
|
+
* in order to manipulate the current value
|
|
21372
|
+
*/
|
|
21373
|
+
declare function useDateTimePickerContext(): {
|
|
21374
|
+
clearValue(): void;
|
|
21375
|
+
changeDate(isoDate: string): void;
|
|
21376
|
+
changeTime(isoTime: string): void;
|
|
21377
|
+
};
|
|
21378
|
+
/**
|
|
21379
|
+
* Date Time Picker
|
|
21380
|
+
*
|
|
21381
|
+
* @deprecated This component is in beta, name and props are subject to change without a major version
|
|
21382
|
+
*
|
|
21383
|
+
* This is a Calendar, Time input and TimeZone selector
|
|
21384
|
+
* housed in a popup. You can use it to pick a date as well
|
|
21385
|
+
* as a time, or you can also change it to only pick a date.
|
|
21386
|
+
*
|
|
21387
|
+
* Subcomponents can manipulate the value directly by using
|
|
21388
|
+
* the `useDateTimePickerContext()` hook.
|
|
21389
|
+
*/
|
|
21390
|
+
declare const DateTimePicker: ({ id, label, value, minVisible, maxVisible, variant, caption, placeholder, belowTimeInputSlot, showLabel, errorMessage, warningMessage, disabled, onChange, testId, ...props }: DateTimePickerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21391
|
+
|
|
21273
21392
|
type DescriptionListProps = {
|
|
21274
21393
|
items: {
|
|
21275
21394
|
label: string;
|
|
21276
21395
|
value: string | number | boolean | React__default.ReactNode;
|
|
21277
21396
|
}[];
|
|
21397
|
+
variant?: 'horizontal' | 'vertical';
|
|
21278
21398
|
} & React__default.HTMLAttributes<HTMLDListElement>;
|
|
21279
21399
|
/**
|
|
21280
21400
|
* A component to render a key-value list (uses <dl />, <dt /> and <dd /> under the hood).
|
|
@@ -21285,6 +21405,7 @@ declare const DescriptionList: React__default.ForwardRefExoticComponent<{
|
|
|
21285
21405
|
label: string;
|
|
21286
21406
|
value: string | number | boolean | React__default.ReactNode;
|
|
21287
21407
|
}[];
|
|
21408
|
+
variant?: "horizontal" | "vertical" | undefined;
|
|
21288
21409
|
} & React__default.HTMLAttributes<HTMLDListElement> & React__default.RefAttributes<HTMLDListElement>>;
|
|
21289
21410
|
|
|
21290
21411
|
type DetailsProps = React$1.HTMLAttributes<HTMLDetailsElement> & {
|
|
@@ -21298,9 +21419,19 @@ type DetailsProps = React$1.HTMLAttributes<HTMLDetailsElement> & {
|
|
|
21298
21419
|
* @default false
|
|
21299
21420
|
*/
|
|
21300
21421
|
isOpenByDefault?: boolean;
|
|
21422
|
+
/** Makes the content indented, and shows an indent guide line.
|
|
21423
|
+
* @default false
|
|
21424
|
+
* @deprecated this prop is in beta, and might get breaking changes in minor releases.
|
|
21425
|
+
*/
|
|
21426
|
+
isIndented?: boolean;
|
|
21427
|
+
/** Makes the the UI of the summary more compact, by removing the paddings.
|
|
21428
|
+
* @default false
|
|
21429
|
+
* @deprecated this prop is in beta, and might get breaking changes in minor releases.
|
|
21430
|
+
*/
|
|
21431
|
+
isCompact?: boolean;
|
|
21301
21432
|
};
|
|
21302
21433
|
/** @example <Details summary="summary text">child content here</Details>*/
|
|
21303
|
-
declare const Details: ({ summary, children, isOpenByDefault, isOpen, onChange, ...props }: DetailsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21434
|
+
declare const Details: ({ summary, children, isOpenByDefault, isOpen, isIndented, isCompact, onChange, ...props }: DetailsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21304
21435
|
|
|
21305
21436
|
interface DrawerRendererProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
21306
21437
|
/** The ID of the stack to render. Some drawers need to use the same stack ID to be rendered here */
|
|
@@ -21391,9 +21522,13 @@ type DrawersRegistryRecord = DrawerItem & {
|
|
|
21391
21522
|
};
|
|
21392
21523
|
type DrawerContextValue = {
|
|
21393
21524
|
providerId: string;
|
|
21525
|
+
/** Render all drawers inside ref, used for complex modals */
|
|
21394
21526
|
drawersRegistry: DrawersRegistryRecord[];
|
|
21395
21527
|
registerDrawer: (props: RegisterDrawerProps) => void;
|
|
21396
21528
|
unregisterDrawer: (drawerId: Pick<DrawerItem, 'id' | 'stackId' | 'instanceKey'>) => void;
|
|
21529
|
+
drawerTakeoverStackId?: string;
|
|
21530
|
+
registerTakeoverStackId: (stackId: string) => void;
|
|
21531
|
+
unregisterTakeoverStackId: (stackId: string) => void;
|
|
21397
21532
|
};
|
|
21398
21533
|
/**
|
|
21399
21534
|
* Provides the context to the Drawer and DrawerRenderer components.
|
|
@@ -21437,6 +21572,11 @@ type DrawerContentProps = {
|
|
|
21437
21572
|
} & HTMLAttributes<HTMLDivElement>;
|
|
21438
21573
|
declare const DrawerContent: ({ children, buttonGroup, noPadding, ...props }: DrawerContentProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21439
21574
|
|
|
21575
|
+
declare const TAKEOVER_STACK_ID = "takeover-stack";
|
|
21576
|
+
declare const TakeoverDrawerRenderer: (props: Omit<DrawerRendererProps, 'stackId'> & {
|
|
21577
|
+
stackId?: string;
|
|
21578
|
+
}) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21579
|
+
|
|
21440
21580
|
interface IconButtonProps extends Omit<ButtonProps, 'size'> {
|
|
21441
21581
|
variant?: 'square' | 'rounded';
|
|
21442
21582
|
/** Style for the larger sizes have not been decided yet */
|
|
@@ -21494,12 +21634,36 @@ type ErrorMessageProps = {
|
|
|
21494
21634
|
/** sets the test id for test automation (optional) */
|
|
21495
21635
|
testId?: string;
|
|
21496
21636
|
className?: string;
|
|
21637
|
+
/**
|
|
21638
|
+
* When set to true, the error message will be truncated instead of wrapped
|
|
21639
|
+
* when it's longer than the available width.
|
|
21640
|
+
* @default false
|
|
21641
|
+
**/
|
|
21642
|
+
truncated?: boolean;
|
|
21497
21643
|
};
|
|
21498
21644
|
/**
|
|
21499
21645
|
* Component that provides error messaging to input fields
|
|
21500
21646
|
* @example <ErrorMessage>something went wrong, please try again</ErrorMessage>
|
|
21501
21647
|
*/
|
|
21502
|
-
declare const ErrorMessage: ({ message, testId, ...otherProps }: ErrorMessageProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
21648
|
+
declare const ErrorMessage: ({ message, testId, truncated, ...otherProps }: ErrorMessageProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
21649
|
+
|
|
21650
|
+
type FieldMessageProps = {
|
|
21651
|
+
/** (optional) sets help message within the caption component */
|
|
21652
|
+
helperMessage?: string | JSX.Element;
|
|
21653
|
+
/** (option) sets caption message test id for test automation */
|
|
21654
|
+
helperMessageTestId?: string;
|
|
21655
|
+
/** (optional) sets and shows the warning message value */
|
|
21656
|
+
warningMessage?: string;
|
|
21657
|
+
/** (option) sets warning message test id for test automation */
|
|
21658
|
+
warningMessageTestId?: string;
|
|
21659
|
+
/** (optional) sets and shows the the error message value */
|
|
21660
|
+
errorMessage?: string;
|
|
21661
|
+
/** (option) sets validation message test id for test automation */
|
|
21662
|
+
errorTestId?: string;
|
|
21663
|
+
/** (optional) sets and shows the the info message value */
|
|
21664
|
+
infoMessage?: string;
|
|
21665
|
+
};
|
|
21666
|
+
declare const FieldMessage: ({ helperMessage, warningMessage, errorMessage, infoMessage, errorTestId, helperMessageTestId, }: FieldMessageProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
21503
21667
|
|
|
21504
21668
|
type FieldsetProps = React$1.HTMLAttributes<HTMLFieldSetElement> & {
|
|
21505
21669
|
/** sets the legend value */
|
|
@@ -21546,7 +21710,7 @@ type InputProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
21546
21710
|
showLabel?: boolean;
|
|
21547
21711
|
/** (optional) sets and shows the the error message value */
|
|
21548
21712
|
errorMessage?: string;
|
|
21549
|
-
/** (optional) sets and shows the
|
|
21713
|
+
/** (optional) sets and shows the warning message value */
|
|
21550
21714
|
warningMessage?: string;
|
|
21551
21715
|
/** (optional) sets the test id for input field container for test automation*/
|
|
21552
21716
|
containerTestId?: string;
|
|
@@ -21589,7 +21753,7 @@ declare const Input: React$1.ForwardRefExoticComponent<React$1.InputHTMLAttribut
|
|
|
21589
21753
|
showLabel?: boolean | undefined;
|
|
21590
21754
|
/** (optional) sets and shows the the error message value */
|
|
21591
21755
|
errorMessage?: string | undefined;
|
|
21592
|
-
/** (optional) sets and shows the
|
|
21756
|
+
/** (optional) sets and shows the warning message value */
|
|
21593
21757
|
warningMessage?: string | undefined;
|
|
21594
21758
|
/** (optional) sets the test id for input field container for test automation*/
|
|
21595
21759
|
containerTestId?: string | undefined;
|
|
@@ -21626,7 +21790,7 @@ type InputComboBoxOption = {
|
|
|
21626
21790
|
/** (optional) sets the disabled value on the input */
|
|
21627
21791
|
isDisabled?: boolean;
|
|
21628
21792
|
};
|
|
21629
|
-
type InputComboBoxProps<TOption, IsMulti extends boolean, TGroup extends GroupBase<TOption> = GroupBase<TOption>> =
|
|
21793
|
+
type InputComboBoxProps<TOption = InputComboBoxOption, IsMulti extends boolean = boolean, TGroup extends GroupBase<TOption> = GroupBase<TOption>> = Props<TOption, IsMulti, TGroup> & React$1.RefAttributes<InternalSelect<TOption, IsMulti, TGroup>>;
|
|
21630
21794
|
type ComboBoxGroupBase<TOption> = GroupBase<TOption>;
|
|
21631
21795
|
/**
|
|
21632
21796
|
* InputComboBox
|
|
@@ -21658,7 +21822,7 @@ type InputInlineSelectProps = Omit<React$1.HTMLAttributes<HTMLButtonElement>, 'o
|
|
|
21658
21822
|
*/
|
|
21659
21823
|
declare const InputInlineSelect: ({ classNameContainer, options, value, onChange, disabled, ...props }: InputInlineSelectProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21660
21824
|
|
|
21661
|
-
interface InputKeywordSearchProps extends
|
|
21825
|
+
interface InputKeywordSearchProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
21662
21826
|
/** function that takes a string value */
|
|
21663
21827
|
onSearchTextChanged: (searchText: string) => void;
|
|
21664
21828
|
/** (optional) sets the input field disabled state
|
|
@@ -21692,9 +21856,23 @@ interface InputKeywordSearchProps extends React$1.InputHTMLAttributes<HTMLInputE
|
|
|
21692
21856
|
}
|
|
21693
21857
|
/**
|
|
21694
21858
|
* Component used for keyword search functionality
|
|
21695
|
-
*
|
|
21859
|
+
*
|
|
21860
|
+
* @example <InputKeywordSearch onSearchTextChanged={setKeyword} delay={500} value={keyword} compact />
|
|
21861
|
+
*/
|
|
21862
|
+
declare const InputKeywordSearch: React$1.ForwardRefExoticComponent<InputKeywordSearchProps & React$1.RefAttributes<HTMLInputElement>>;
|
|
21863
|
+
type DebouncedInputKeywordSearchProps = Omit<InputKeywordSearchProps, 'value'> & {
|
|
21864
|
+
/** Debounce delay in milliseconds */
|
|
21865
|
+
delay?: number;
|
|
21866
|
+
/**Default value to initialize field with, as it is not controlled component and does not support providing values */
|
|
21867
|
+
defaultValue?: string;
|
|
21868
|
+
};
|
|
21869
|
+
/**
|
|
21870
|
+
* Wrapper for InputKeywordSearch that debounces the onSearchTextChanged callback
|
|
21871
|
+
* to avoid triggering any business logic on every keystroke.
|
|
21872
|
+
*
|
|
21873
|
+
* @example <DebouncedInputKeywordSearch onSearchTextChanged={setKeyword} delay={500} />
|
|
21696
21874
|
*/
|
|
21697
|
-
declare const
|
|
21875
|
+
declare const DebouncedInputKeywordSearch: ({ delay, onSearchTextChanged, defaultValue, ...props }: DebouncedInputKeywordSearchProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21698
21876
|
|
|
21699
21877
|
type InputSelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
|
|
21700
21878
|
/** (optional) sets the first item in the options list with empty value */
|
|
@@ -21713,7 +21891,7 @@ type InputSelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
|
|
|
21713
21891
|
showLabel?: boolean;
|
|
21714
21892
|
/** (optional) sets and shows the the error message value */
|
|
21715
21893
|
errorMessage?: string;
|
|
21716
|
-
/** (optional) sets and shows the
|
|
21894
|
+
/** (optional) sets and shows the warning message value */
|
|
21717
21895
|
warningMessage?: string;
|
|
21718
21896
|
/** (optional) allows react components to be added inline with the label element */
|
|
21719
21897
|
labelCta?: JSX.Element;
|
|
@@ -21736,8 +21914,110 @@ type InputSelectProps = React.SelectHTMLAttributes<HTMLSelectElement> & {
|
|
|
21736
21914
|
* Input Select Component
|
|
21737
21915
|
* @example <InputSelect label="my label" options={[{label: "option 1"}, {label: "option 2"}]} />
|
|
21738
21916
|
*/
|
|
21739
|
-
declare const InputSelect:
|
|
21917
|
+
declare const InputSelect: React$1.ForwardRefExoticComponent<React$1.SelectHTMLAttributes<HTMLSelectElement> & {
|
|
21918
|
+
/** (optional) sets the first item in the options list with empty value */
|
|
21919
|
+
defaultOption?: string | undefined;
|
|
21920
|
+
/** sets an array of select options with value and text value */
|
|
21921
|
+
options: Array<React.OptionHTMLAttributes<HTMLOptionElement> & {
|
|
21922
|
+
label: string;
|
|
21923
|
+
}>;
|
|
21924
|
+
/** (optional) sets caption text value */
|
|
21925
|
+
caption?: string | JSX.Element | undefined;
|
|
21926
|
+
/** sets the label value */
|
|
21927
|
+
label: string;
|
|
21928
|
+
/** (optional) sets whether to hide the label and use aria-label on the input field
|
|
21929
|
+
* @default false
|
|
21930
|
+
*/
|
|
21931
|
+
showLabel?: boolean | undefined;
|
|
21932
|
+
/** (optional) sets and shows the the error message value */
|
|
21933
|
+
errorMessage?: string | undefined;
|
|
21934
|
+
/** (optional) sets and shows the warning message value */
|
|
21935
|
+
warningMessage?: string | undefined;
|
|
21936
|
+
/** (optional) allows react components to be added inline with the label element */
|
|
21937
|
+
labelCta?: JSX.Element | undefined;
|
|
21938
|
+
/** (optional) styles the component in a compact format */
|
|
21939
|
+
compact?: boolean | undefined;
|
|
21940
|
+
/**
|
|
21941
|
+
* (optional) sets an overriding classname on the container element
|
|
21942
|
+
* @deprecated */
|
|
21943
|
+
classNameContainer?: string | undefined;
|
|
21944
|
+
/**
|
|
21945
|
+
* (optional) sets an overriding classname on the input element
|
|
21946
|
+
* @deprecated */
|
|
21947
|
+
classNameControl?: string | undefined;
|
|
21948
|
+
/**
|
|
21949
|
+
* (optional) sets an overriding classname on the label element
|
|
21950
|
+
* @deprecated */
|
|
21951
|
+
classNameLabel?: string | undefined;
|
|
21952
|
+
} & React$1.RefAttributes<HTMLSelectElement>>;
|
|
21953
|
+
|
|
21954
|
+
/**
|
|
21955
|
+
* A string in the ISO 8601 time format: hh:mm
|
|
21956
|
+
*/
|
|
21957
|
+
type IsoTimeString = string;
|
|
21958
|
+
type InputTimeProps = Pick<TimeFieldProps<TimeValue>, 'id' | 'name' | 'hourCycle' | 'autoFocus'> & Pick<React$1.InputHTMLAttributes<HTMLInputElement>, 'disabled'> & {
|
|
21959
|
+
/** (optional) sets the label value */
|
|
21960
|
+
label?: string;
|
|
21961
|
+
/** (optional) sets caption text value */
|
|
21962
|
+
caption?: string | JSX.Element;
|
|
21963
|
+
/** The current value in ISO 8601 time format */
|
|
21964
|
+
value: IsoTimeString | null | undefined;
|
|
21965
|
+
/** (optional) sets the minimum time value in iso8601 time format. ie 10:00 */
|
|
21966
|
+
minValue?: IsoTimeString;
|
|
21967
|
+
/** (optional) sets the maximum time value in iso8601 time format. ie 22:00 */
|
|
21968
|
+
maxValue?: IsoTimeString;
|
|
21969
|
+
/** (optional) sets whether to show the label or hide it and add a aria-label attributes to the input field directly */
|
|
21970
|
+
showLabel?: boolean;
|
|
21971
|
+
/** (optional) sets and shows the the error message value */
|
|
21972
|
+
errorMessage?: string;
|
|
21973
|
+
/** (optional) sets and shows the warning message value */
|
|
21974
|
+
warningMessage?: string;
|
|
21975
|
+
/** (optional) sets the test id for input field container for test automation*/
|
|
21976
|
+
containerTestId?: string;
|
|
21977
|
+
/** (optional) sets label test id */
|
|
21978
|
+
labelTestId?: string;
|
|
21979
|
+
/** (option) sets validation message test id for test automation */
|
|
21980
|
+
errorTestId?: string;
|
|
21981
|
+
/** (option) sets caption message test id for test automation */
|
|
21982
|
+
captionTestId?: string;
|
|
21983
|
+
belowInputSlot?: ReactNode;
|
|
21984
|
+
onChange?: (value: IsoTimeString) => void;
|
|
21985
|
+
};
|
|
21986
|
+
/**
|
|
21987
|
+
* Time input with segmented control
|
|
21988
|
+
*
|
|
21989
|
+
* @deprecated This component is in beta, name and props are subject to change without a major version
|
|
21990
|
+
*/
|
|
21991
|
+
declare const InputTime: React$1.ForwardRefExoticComponent<Pick<TimeFieldProps<TimeValue>, "autoFocus" | "id" | "name" | "hourCycle"> & Pick<React$1.InputHTMLAttributes<HTMLInputElement>, "disabled"> & {
|
|
21992
|
+
/** (optional) sets the label value */
|
|
21993
|
+
label?: string | undefined;
|
|
21994
|
+
/** (optional) sets caption text value */
|
|
21995
|
+
caption?: string | JSX.Element | undefined;
|
|
21996
|
+
/** The current value in ISO 8601 time format */
|
|
21997
|
+
value: IsoTimeString | null | undefined;
|
|
21998
|
+
/** (optional) sets the minimum time value in iso8601 time format. ie 10:00 */
|
|
21999
|
+
minValue?: string | undefined;
|
|
22000
|
+
/** (optional) sets the maximum time value in iso8601 time format. ie 22:00 */
|
|
22001
|
+
maxValue?: string | undefined;
|
|
22002
|
+
/** (optional) sets whether to show the label or hide it and add a aria-label attributes to the input field directly */
|
|
22003
|
+
showLabel?: boolean | undefined;
|
|
22004
|
+
/** (optional) sets and shows the the error message value */
|
|
22005
|
+
errorMessage?: string | undefined;
|
|
22006
|
+
/** (optional) sets and shows the warning message value */
|
|
22007
|
+
warningMessage?: string | undefined;
|
|
22008
|
+
/** (optional) sets the test id for input field container for test automation*/
|
|
22009
|
+
containerTestId?: string | undefined;
|
|
22010
|
+
/** (optional) sets label test id */
|
|
22011
|
+
labelTestId?: string | undefined;
|
|
22012
|
+
/** (option) sets validation message test id for test automation */
|
|
22013
|
+
errorTestId?: string | undefined;
|
|
22014
|
+
/** (option) sets caption message test id for test automation */
|
|
22015
|
+
captionTestId?: string | undefined;
|
|
22016
|
+
belowInputSlot?: ReactNode;
|
|
22017
|
+
onChange?: ((value: IsoTimeString) => void) | undefined;
|
|
22018
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
21740
22019
|
|
|
22020
|
+
type FontWeightProps = 'normal' | 'medium' | 'bold';
|
|
21741
22021
|
type InputToggleProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
21742
22022
|
/** sets the label value */
|
|
21743
22023
|
label: React$1.ReactNode;
|
|
@@ -21753,12 +22033,12 @@ type InputToggleProps = React$1.InputHTMLAttributes<HTMLInputElement> & {
|
|
|
21753
22033
|
caption?: string | JSX.Element;
|
|
21754
22034
|
/** (optional) sets shows the the error message value */
|
|
21755
22035
|
errorMessage?: string;
|
|
21756
|
-
/** (optional) sets and shows the
|
|
22036
|
+
/** (optional) sets and shows the warning message value */
|
|
21757
22037
|
warningMessage?: string;
|
|
21758
22038
|
/** (optional) sets the font weight of the label text
|
|
21759
|
-
* @default '
|
|
22039
|
+
* @default 'normal'
|
|
21760
22040
|
*/
|
|
21761
|
-
fontWeight?:
|
|
22041
|
+
fontWeight?: FontWeightProps;
|
|
21762
22042
|
/** (optional) sets test id for test automation*/
|
|
21763
22043
|
testId?: string;
|
|
21764
22044
|
};
|
|
@@ -21781,12 +22061,12 @@ declare const InputToggle: React$1.ForwardRefExoticComponent<React$1.InputHTMLAt
|
|
|
21781
22061
|
caption?: string | JSX.Element | undefined;
|
|
21782
22062
|
/** (optional) sets shows the the error message value */
|
|
21783
22063
|
errorMessage?: string | undefined;
|
|
21784
|
-
/** (optional) sets and shows the
|
|
22064
|
+
/** (optional) sets and shows the warning message value */
|
|
21785
22065
|
warningMessage?: string | undefined;
|
|
21786
22066
|
/** (optional) sets the font weight of the label text
|
|
21787
|
-
* @default '
|
|
22067
|
+
* @default 'normal'
|
|
21788
22068
|
*/
|
|
21789
|
-
fontWeight?:
|
|
22069
|
+
fontWeight?: FontWeightProps | undefined;
|
|
21790
22070
|
/** (optional) sets test id for test automation*/
|
|
21791
22071
|
testId?: string | undefined;
|
|
21792
22072
|
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
@@ -21938,6 +22218,9 @@ type RhythmProps = React.HTMLAttributes<HTMLDivElement | HTMLFieldSetElement> &
|
|
|
21938
22218
|
align?: CSSProperties['alignItems'];
|
|
21939
22219
|
justify?: CSSProperties['justifyContent'];
|
|
21940
22220
|
children: React.ReactNode;
|
|
22221
|
+
/** for use when fieldset is applied to the tag prop */
|
|
22222
|
+
disabled?: boolean;
|
|
22223
|
+
ref?: Ref<HTMLDivElement>;
|
|
21941
22224
|
};
|
|
21942
22225
|
|
|
21943
22226
|
type ContainerProps = CommonContainerProps & React$1.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -21946,7 +22229,7 @@ type ContainerProps = CommonContainerProps & React$1.HTMLAttributes<HTMLDivEleme
|
|
|
21946
22229
|
};
|
|
21947
22230
|
declare const Container: ({ tag, backgroundColor, border, rounded, padding, margin, children, ...props }: ContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21948
22231
|
|
|
21949
|
-
declare const HorizontalRhythm: ({ align, justify, tag, gap, children, ...props }: RhythmProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22232
|
+
declare const HorizontalRhythm: ({ align, justify, tag, gap, children, ref, ...props }: RhythmProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21950
22233
|
|
|
21951
22234
|
type TwoColumnLayoutProps = {
|
|
21952
22235
|
/** sets the full bleed background colour
|
|
@@ -21965,7 +22248,7 @@ type TwoColumnLayoutProps = {
|
|
|
21965
22248
|
/** @example <TwoColumnLayout supportingContent={<div>supporting content</div>}><h1>title</h1></TwoColumnLayout> */
|
|
21966
22249
|
declare const TwoColumnLayout: ({ bgColor, invertLayout, supportingContent, children, }: TwoColumnLayoutProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21967
22250
|
|
|
21968
|
-
declare const VerticalRhythm: ({ align, justify, tag, gap, children, ...props }: RhythmProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22251
|
+
declare const VerticalRhythm: ({ align, justify, tag, gap, children, ref, ...props }: RhythmProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
21969
22252
|
|
|
21970
22253
|
type LimitsBarProps = {
|
|
21971
22254
|
/** The current value of used limits */
|
|
@@ -22091,13 +22374,18 @@ interface LoadingIconProps extends HTMLAttributes<SVGSVGElement> {
|
|
|
22091
22374
|
*/
|
|
22092
22375
|
declare const LoadingIcon: ({ height, width, ...props }: LoadingIconProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22093
22376
|
|
|
22094
|
-
|
|
22095
|
-
|
|
22096
|
-
|
|
22377
|
+
declare const legacyPlacements: readonly ["auto", "auto-start", "auto-end"];
|
|
22378
|
+
type LegacyPlacement = (typeof legacyPlacements)[number];
|
|
22379
|
+
interface MenuProps extends MenuProps$2 {
|
|
22380
|
+
/**
|
|
22381
|
+
* sets aria-label attribute.
|
|
22382
|
+
* @deprecated Set the label directly on the `menuTrigger`
|
|
22383
|
+
*/
|
|
22384
|
+
menuLabel?: string;
|
|
22097
22385
|
/** the component that triggers the menu functionality */
|
|
22098
22386
|
menuTrigger: React$1.ReactElement & React$1.RefAttributes<any>;
|
|
22099
22387
|
/** (optional) reakit placements options for the expandable menu */
|
|
22100
|
-
placement?:
|
|
22388
|
+
placement?: MenuStoreProps['placement'] | LegacyPlacement;
|
|
22101
22389
|
/** (optional) allows users to set additional class names */
|
|
22102
22390
|
menuItemsContainerCssClasses?: SerializedStyles | string;
|
|
22103
22391
|
/** (optional) allows users to add child elements */
|
|
@@ -22105,6 +22393,7 @@ interface MenuProps extends MenuHTMLProps {
|
|
|
22105
22393
|
/**
|
|
22106
22394
|
* Overrides the visibility of the menu.
|
|
22107
22395
|
* When unset, visibility is owned by the menu. When a boolean, forces the menu visibility.
|
|
22396
|
+
* @deprecated use the `open` prop instead
|
|
22108
22397
|
*/
|
|
22109
22398
|
forceVisible?: boolean;
|
|
22110
22399
|
/**
|
|
@@ -22118,21 +22407,29 @@ interface MenuProps extends MenuHTMLProps {
|
|
|
22118
22407
|
* If you need to disable this functionality, set this prop to true.
|
|
22119
22408
|
*/
|
|
22120
22409
|
disableAutoSeparatorManagement?: boolean;
|
|
22121
|
-
/** sets whether to use a React portal rendering or not
|
|
22410
|
+
/** sets whether to use a React portal rendering or not.
|
|
22411
|
+
* @deprecated this prop was added to fix a bug with portal, this issue is now fixed, and we don't need this prop anymore.
|
|
22412
|
+
*/
|
|
22122
22413
|
withoutPortal?: boolean;
|
|
22414
|
+
/** (optional) sets the test id attribute */
|
|
22415
|
+
testId?: string;
|
|
22416
|
+
/** (optional) sets the maximum height of the menu
|
|
22417
|
+
* setting a max menu height value will make the menu scrollable if the content exceeds the height
|
|
22418
|
+
* this is not compatible with nested menus that expand to the left or right of the menu
|
|
22419
|
+
*/
|
|
22420
|
+
maxMenuHeight?: string;
|
|
22123
22421
|
}
|
|
22124
|
-
declare const MenuContext: React$1.Context<MenuStateReturn>;
|
|
22125
|
-
declare const useMenuContext: () => MenuStateReturn | undefined;
|
|
22126
22422
|
/**
|
|
22127
22423
|
* Component used for creating clickable menus
|
|
22128
22424
|
* @example
|
|
22129
22425
|
* <Menu
|
|
22130
22426
|
* menuTrigger={<button type="button">Click me</button>}
|
|
22131
22427
|
* menuItemsContainerCssClasses="bg-white"
|
|
22132
|
-
*
|
|
22428
|
+
* >
|
|
22429
|
+
* <MenuItem>Item 1</MenuItem>
|
|
22133
22430
|
* </Menu>
|
|
22134
22431
|
*/
|
|
22135
|
-
declare const Menu:
|
|
22432
|
+
declare const Menu: React$1.ForwardRefExoticComponent<Omit<MenuProps, "ref"> & React$1.RefAttributes<HTMLDivElement>>;
|
|
22136
22433
|
|
|
22137
22434
|
type MenuGroupProps = {
|
|
22138
22435
|
/** Title for the menu group. If undefined or an empty string, the group will render as normal menu */
|
|
@@ -22143,9 +22440,12 @@ type MenuGroupProps = {
|
|
|
22143
22440
|
declare const MenuGroup: ({ title, children }: MenuGroupProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22144
22441
|
|
|
22145
22442
|
type MenuItemTextThemeProps = 'base' | 'red';
|
|
22146
|
-
type MenuItemProps =
|
|
22147
|
-
/**
|
|
22148
|
-
|
|
22443
|
+
type MenuItemProps = MenuItemProps$1 & {
|
|
22444
|
+
/**
|
|
22445
|
+
* Sets child elements within the component.
|
|
22446
|
+
* Can be omitted when using the `render` prop
|
|
22447
|
+
*/
|
|
22448
|
+
children?: ChildFunction | React$1.ReactNode;
|
|
22149
22449
|
/** (optional) set whether to hide the menu after a click action */
|
|
22150
22450
|
hideMenuOnClick?: boolean;
|
|
22151
22451
|
/** (optional) set an icon along side the item text */
|
|
@@ -22162,12 +22462,19 @@ type MenuItemProps = MenuItemHTMLProps & {
|
|
|
22162
22462
|
*/
|
|
22163
22463
|
active?: boolean;
|
|
22164
22464
|
};
|
|
22165
|
-
type ChildFunction = (menuItemProps:
|
|
22465
|
+
type ChildFunction = (menuItemProps: MenuItemProps$1) => React$1.ReactElement | null;
|
|
22166
22466
|
/**
|
|
22167
22467
|
* MenuItem Component used along side <Menu /> component
|
|
22168
22468
|
* @example <MenuItem onClick={() => alert('menu item was clicked')} icon={<RedClose />}>Remove Link</MenuItem>
|
|
22169
22469
|
*/
|
|
22170
22470
|
declare const MenuItem: React$1.FC<MenuItemProps>;
|
|
22471
|
+
/**
|
|
22472
|
+
* MenuItem Component for headless use outside <Menu /> component
|
|
22473
|
+
* Use only if adapting Uniform menu item appearance to a non-ariakit menu.
|
|
22474
|
+
* This is required because ariakit does not let you use MenuItem outside of a Menu component.
|
|
22475
|
+
* @example <MenuItemInner onClick={() => alert('menu item was clicked')} icon={<RedClose />}>Remove Link</MenuItem>
|
|
22476
|
+
*/
|
|
22477
|
+
declare const MenuItemInner: React$1.FC<MenuItemProps>;
|
|
22171
22478
|
|
|
22172
22479
|
declare const MenuItemSeparator: () => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22173
22480
|
|
|
@@ -22178,46 +22485,51 @@ type MediaCardProps = Omit<CardProps, 'menuItems'> & {
|
|
|
22178
22485
|
cover?: React.ReactNode;
|
|
22179
22486
|
menuItems?: React.ReactElement<MenuItemProps>[] | React.ReactNode;
|
|
22180
22487
|
sideSection?: React.ReactNode;
|
|
22488
|
+
buttonType?: ButtonHTMLAttributes<HTMLButtonElement>['type'];
|
|
22181
22489
|
onClick?: () => void;
|
|
22182
22490
|
};
|
|
22183
|
-
declare const MediaCard: ({ title, subtitle, infoPopover, cover, menuItems, sideSection, onClick, ...cardProps }: MediaCardProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22491
|
+
declare const MediaCard: ({ title, subtitle, infoPopover, cover, menuItems, sideSection, onClick, buttonType, ...cardProps }: MediaCardProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22184
22492
|
|
|
22185
22493
|
type ModalProps = {
|
|
22186
22494
|
header?: React__default.ReactNode;
|
|
22187
22495
|
children?: React__default.ReactNode;
|
|
22188
22496
|
/** Called when the close button is clicked, the Escape button is pressed, or when the modal's backdrop is clicked */
|
|
22189
22497
|
onRequestClose: () => void;
|
|
22498
|
+
/** The size sets the modal width to one of three options sm = 400px, md = 600px and lg = 800px
|
|
22499
|
+
* if a width attribute is used the size will be overridden by the width attribute
|
|
22500
|
+
* @default 'lg'
|
|
22501
|
+
*/
|
|
22502
|
+
modalSize?: 'sm' | 'md' | 'lg';
|
|
22190
22503
|
/** A valid CSS width */
|
|
22191
22504
|
width?: string;
|
|
22192
22505
|
/** A valid CSS height */
|
|
22193
22506
|
height?: string;
|
|
22194
|
-
/** The classname to set on the wrapper of the modal
|
|
22507
|
+
/** The classname to set on the wrapper of the modal.
|
|
22508
|
+
* @deprecated the dialog is not rendered inside a wrapper anymore.
|
|
22509
|
+
*/
|
|
22195
22510
|
wrapperClassName?: string;
|
|
22196
22511
|
/** Removes the default padding on the content wrapper */
|
|
22197
22512
|
withoutContentPadding?: boolean;
|
|
22513
|
+
/** Removes the default background color of the content wrapper */
|
|
22514
|
+
withoutContentBackground?: boolean;
|
|
22198
22515
|
/** Places buttons at the bottom of the modal */
|
|
22199
22516
|
buttonGroup?: ReactNode;
|
|
22200
|
-
} & React__default.
|
|
22517
|
+
} & React__default.HTMLProps<HTMLDialogElement>;
|
|
22201
22518
|
/**
|
|
22202
22519
|
* A modal component to open a dialog with a backdrop that covers the whole page.
|
|
22203
22520
|
* @example <Modal>Hello World</Modal>
|
|
22204
22521
|
*/
|
|
22205
|
-
declare const Modal: React__default.ForwardRefExoticComponent<
|
|
22206
|
-
|
|
22207
|
-
|
|
22208
|
-
|
|
22209
|
-
|
|
22210
|
-
|
|
22211
|
-
|
|
22212
|
-
|
|
22213
|
-
|
|
22214
|
-
|
|
22215
|
-
|
|
22216
|
-
/** Removes the default padding on the content wrapper */
|
|
22217
|
-
withoutContentPadding?: boolean | undefined;
|
|
22218
|
-
/** Places buttons at the bottom of the modal */
|
|
22219
|
-
buttonGroup?: ReactNode;
|
|
22220
|
-
} & React__default.HTMLAttributes<HTMLDialogElement> & React__default.RefAttributes<HTMLDialogElement>>;
|
|
22522
|
+
declare const Modal: React__default.ForwardRefExoticComponent<Omit<ModalProps, "ref"> & React__default.RefAttributes<HTMLDialogElement>>;
|
|
22523
|
+
|
|
22524
|
+
type ModalDialogProps = Omit<ModalProps, 'width'>;
|
|
22525
|
+
declare const ModalDialog: React$1.ForwardRefExoticComponent<Omit<ModalDialogProps, "ref"> & React$1.RefAttributes<HTMLDialogElement>>;
|
|
22526
|
+
|
|
22527
|
+
declare function Pagination({ limit, offset, total, onPageChange, }: {
|
|
22528
|
+
limit: number;
|
|
22529
|
+
offset: number;
|
|
22530
|
+
total: number;
|
|
22531
|
+
onPageChange: (limit: number, offset: number) => void;
|
|
22532
|
+
}): _emotion_react_types_jsx_namespace.EmotionJSX.Element | null;
|
|
22221
22533
|
|
|
22222
22534
|
type CommonParameterProps = {
|
|
22223
22535
|
/** sets the label value */
|
|
@@ -22324,6 +22636,9 @@ type ParameterDrawerHeaderProps = {
|
|
|
22324
22636
|
iconBeforeTitle?: ReactNode;
|
|
22325
22637
|
children?: ReactNode;
|
|
22326
22638
|
};
|
|
22639
|
+
/**
|
|
22640
|
+
* @deprecated use <Drawer heading={"Hi!"} /> instead, to use default drawer heading styles
|
|
22641
|
+
*/
|
|
22327
22642
|
declare const ParameterDrawerHeader: ({ title, iconBeforeTitle, children }: ParameterDrawerHeaderProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22328
22643
|
|
|
22329
22644
|
type ParameterGroupProps = React.HTMLAttributes<HTMLFieldSetElement> & {
|
|
@@ -22423,6 +22738,20 @@ type ParameterMenuButtonProps = {
|
|
|
22423
22738
|
/** @example <ParameterMenuButton label="label value"><MenuItem>menu option component</MenuItem></ParameterMenuButton> */
|
|
22424
22739
|
declare const ParameterMenuButton: React$1.ForwardRefExoticComponent<ParameterMenuButtonProps & React$1.RefAttributes<HTMLButtonElement>>;
|
|
22425
22740
|
|
|
22741
|
+
type ParameterMultiSelectOption = InputComboBoxOption;
|
|
22742
|
+
type ParameterMultiSelectInnerProps = Pick<InputComboBoxProps<ParameterMultiSelectOption, true>, 'options' | 'defaultValue' | 'onChange' | 'onBlur' | 'isClearable' | 'isDisabled'>;
|
|
22743
|
+
type ParameterMultiSelectProps = CommonParameterInputProps & ParameterMultiSelectInnerProps & {
|
|
22744
|
+
disabled?: boolean;
|
|
22745
|
+
};
|
|
22746
|
+
/**
|
|
22747
|
+
* @deprecated beta
|
|
22748
|
+
* @example <ParameterMultiSelect label="my label" id="my-id" options={[{ label: 'option label', value: 0}]} */
|
|
22749
|
+
declare const ParameterMultiSelect: ({ disabled, ...props }: ParameterMultiSelectProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22750
|
+
/**
|
|
22751
|
+
* @deprecated beta
|
|
22752
|
+
* @example <ParameterMultiSelectInner options={[{ label: 'option label', value: 0}]} />*/
|
|
22753
|
+
declare const ParameterMultiSelectInner: (props: ParameterMultiSelectInnerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22754
|
+
|
|
22426
22755
|
type ParameterNameAndPublicIdInputProps = {
|
|
22427
22756
|
id?: undefined | string;
|
|
22428
22757
|
/** sets the label for the name input field
|
|
@@ -22592,7 +22921,7 @@ declare const extractParameterProps: <T>(props: T & CommonParameterProps & {
|
|
|
22592
22921
|
errorTestId?: string | undefined;
|
|
22593
22922
|
captionTestId?: string | undefined;
|
|
22594
22923
|
title?: string | undefined;
|
|
22595
|
-
}, "caption" | "label" | "title" | "id" | "
|
|
22924
|
+
}, "caption" | "label" | "title" | "id" | "errorMessage" | "menuItems" | "warningMessage" | "infoMessage" | "errorTestId" | "captionTestId" | "hiddenLabel" | "labelLeadingIcon" | "hasOverriddenValue" | "onResetOverriddenValue">;
|
|
22596
22925
|
};
|
|
22597
22926
|
type ParameterShellOverrideProps = {
|
|
22598
22927
|
/** sets overriding parameters indicator
|
|
@@ -22603,13 +22932,18 @@ type ParameterShellOverrideProps = {
|
|
|
22603
22932
|
* @deprecated
|
|
22604
22933
|
*/
|
|
22605
22934
|
onResetOverriddenValue?: () => void;
|
|
22935
|
+
/**
|
|
22936
|
+
* Adjusts the UI to work with parameter groups. At the moment, it just remove the white background.
|
|
22937
|
+
* @default false
|
|
22938
|
+
*/
|
|
22939
|
+
isParameterGroup?: boolean;
|
|
22606
22940
|
};
|
|
22607
22941
|
type ParameterShellProps = React.InputHTMLAttributes<HTMLDivElement> & CommonParameterInputProps & ParameterShellOverrideProps;
|
|
22608
22942
|
/**
|
|
22609
22943
|
* Uniform Parameter shell component
|
|
22610
22944
|
* @example <ParameterShell label="my label" id="my-id"><ParameterInput onChange={() => {}} /></ParameterShell>
|
|
22611
22945
|
*/
|
|
22612
|
-
declare const ParameterShell: ({ label, labelLeadingIcon, labelTrailingIcon, hiddenLabel, id, errorMessage, warningMessage, infoMessage, caption, errorTestId, captionTestId, menuItems, actionItems, hasOverriddenValue, onResetOverriddenValue, title, children, ...props }: ParameterShellProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22946
|
+
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_types_jsx_namespace.EmotionJSX.Element;
|
|
22613
22947
|
declare const ParameterShellPlaceholder: ({ children }: {
|
|
22614
22948
|
children?: ReactNode;
|
|
22615
22949
|
}) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
@@ -22666,24 +23000,26 @@ type PopoverProps = PopoverProps$1 & {
|
|
|
22666
23000
|
/** sets the placement of the popover
|
|
22667
23001
|
* @default 'bottom'
|
|
22668
23002
|
*/
|
|
22669
|
-
placement?:
|
|
23003
|
+
placement?: PopoverProviderProps['placement'];
|
|
22670
23004
|
/** sets a test id for e2e tests */
|
|
22671
23005
|
testId?: string;
|
|
22672
23006
|
children: ReactNode;
|
|
22673
23007
|
trigger?: ReactNode;
|
|
23008
|
+
/** @deprecated */
|
|
23009
|
+
baseId?: string;
|
|
22674
23010
|
};
|
|
22675
|
-
declare const Popover: ({ iconColor, icon, iconSize, buttonText, ariaLabel, placement, testId, trigger, children, ...otherProps }: PopoverProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23011
|
+
declare const Popover: ({ iconColor, icon, iconSize, buttonText, ariaLabel, placement, testId, trigger, children, baseId, ...otherProps }: PopoverProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22676
23012
|
|
|
22677
|
-
interface ProgressBarProps {
|
|
22678
|
-
className?: string;
|
|
23013
|
+
interface ProgressBarProps extends React$1.HTMLAttributes<HTMLDivElement> {
|
|
22679
23014
|
current: number;
|
|
22680
23015
|
max: number;
|
|
22681
|
-
theme?: 'primary' | 'secondary';
|
|
23016
|
+
theme?: 'primary' | 'secondary' | 'destructive';
|
|
23017
|
+
variant?: 'determinate' | 'indeterminate';
|
|
22682
23018
|
}
|
|
22683
23019
|
/**
|
|
22684
|
-
* @deprecated
|
|
23020
|
+
* @deprecated This component is in beta, and might receive breaking changes in minor releases!
|
|
22685
23021
|
*/
|
|
22686
|
-
declare function ProgressBar({
|
|
23022
|
+
declare function ProgressBar({ current, max, theme, variant, ...props }: ProgressBarProps): _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22687
23023
|
|
|
22688
23024
|
type ProgressListItemStatus = 'completed' | 'inProgress' | 'queued';
|
|
22689
23025
|
type ProgressListProps = React__default.HTMLAttributes<HTMLOListElement> & {
|
|
@@ -22728,12 +23064,13 @@ type SegmentedControlOption<TValue extends string = string> = {
|
|
|
22728
23064
|
icon?: IconType;
|
|
22729
23065
|
tooltip?: string;
|
|
22730
23066
|
disabled?: boolean;
|
|
23067
|
+
'data-testid'?: string;
|
|
22731
23068
|
};
|
|
22732
23069
|
type SegmentedControlProps<TValue extends string = string> = Omit<React__default.HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
22733
23070
|
/** A unique name for the component, used to group the options */
|
|
22734
23071
|
name: string;
|
|
22735
23072
|
/** The options to show */
|
|
22736
|
-
options: SegmentedControlOption<TValue>
|
|
23073
|
+
options: Array<SegmentedControlOption<TValue> | undefined>;
|
|
22737
23074
|
/** The value of the option to be selected */
|
|
22738
23075
|
value?: TValue;
|
|
22739
23076
|
/** Called when the user selects a different option */
|
|
@@ -22751,13 +23088,19 @@ type SegmentedControlProps<TValue extends string = string> = Omit<React__default
|
|
|
22751
23088
|
* The size of the input
|
|
22752
23089
|
* @default 'md'
|
|
22753
23090
|
*/
|
|
22754
|
-
size?: 'sm' | 'md' | 'lg';
|
|
23091
|
+
size?: 'sm' | 'md' | 'lg' | 'xl';
|
|
23092
|
+
/** Hides the text of the options */
|
|
23093
|
+
hideOptionText?: boolean;
|
|
23094
|
+
/** The size of the icon
|
|
23095
|
+
* @default '1.5em'
|
|
23096
|
+
*/
|
|
23097
|
+
iconSize?: string;
|
|
22755
23098
|
};
|
|
22756
23099
|
/**
|
|
22757
23100
|
* Horizontal control with multiple segments. Can be used as a replacement of radio buttons.
|
|
22758
23101
|
* @example <SegmentedControl name="mySegmentedControl" value={value} options={[{label: 'Option 1', value: 'option1',label: 'Option 2', value: 'option2'}]} onChange={setValue} />
|
|
22759
23102
|
*/
|
|
22760
|
-
declare const SegmentedControl: <TValue extends string = string>({ name, options, value, onChange, noCheckmark, disabled, orientation, size, ...props }: SegmentedControlProps<TValue>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23103
|
+
declare const SegmentedControl: <TValue extends string = string>({ name, options, value, onChange, noCheckmark, disabled, orientation, size, hideOptionText, iconSize, ...props }: SegmentedControlProps<TValue>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22761
23104
|
|
|
22762
23105
|
declare function ShortcutContext({ children }: {
|
|
22763
23106
|
children: React__default.ReactNode;
|
|
@@ -22865,27 +23208,30 @@ declare const TableRow: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedH
|
|
|
22865
23208
|
declare const TableCellHead: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ThHTMLAttributes<HTMLTableHeaderCellElement>, HTMLTableHeaderCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
22866
23209
|
declare const TableCellData: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, "ref"> & React$1.RefAttributes<HTMLTableCellElement>>;
|
|
22867
23210
|
|
|
22868
|
-
declare const useCurrentTab: () =>
|
|
22869
|
-
|
|
23211
|
+
declare const useCurrentTab: () => _ariakit_react.TabStore;
|
|
23212
|
+
type TabsProps<TTabName extends string = string> = {
|
|
22870
23213
|
children: React__default.ReactNode;
|
|
22871
|
-
selectedId?:
|
|
23214
|
+
selectedId?: TTabName;
|
|
22872
23215
|
manual?: boolean;
|
|
22873
|
-
orientation?:
|
|
22874
|
-
onSelectedIdChange?: (tabName:
|
|
23216
|
+
orientation?: TabStoreState['orientation'];
|
|
23217
|
+
onSelectedIdChange?: (tabName: TTabName | undefined) => void;
|
|
23218
|
+
/**
|
|
23219
|
+
* @deprecated you can control the route state on the application level.
|
|
23220
|
+
*/
|
|
22875
23221
|
useHashForState?: boolean;
|
|
22876
|
-
}
|
|
22877
|
-
declare const Tabs: ({ children, onSelectedIdChange, useHashForState, selectedId, ...props }: TabsProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23222
|
+
};
|
|
23223
|
+
declare const Tabs: <TTabName extends string = string>({ children, onSelectedIdChange, useHashForState, selectedId, manual, ...props }: TabsProps<TTabName>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22878
23224
|
declare const TabButtonGroup: ({ children, ...props }: Partial<TabListProps>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22879
|
-
|
|
22880
|
-
id:
|
|
23225
|
+
type TabButtonProps<TTabName extends string = string> = Partial<TabProps> & {
|
|
23226
|
+
id: TTabName;
|
|
22881
23227
|
children: React__default.ReactNode;
|
|
22882
|
-
}
|
|
22883
|
-
declare const TabButton: ({ children, id, ...props }: TabButtonProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22884
|
-
|
|
22885
|
-
|
|
23228
|
+
};
|
|
23229
|
+
declare const TabButton: <TTabName extends string = string>({ children, id, ...props }: TabButtonProps<TTabName>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23230
|
+
type TabContentProps<TTabName extends string = string> = Partial<TabPanelProps> & {
|
|
23231
|
+
tabId?: TTabName;
|
|
22886
23232
|
children: React__default.ReactNode;
|
|
22887
|
-
}
|
|
22888
|
-
declare const TabContent: ({ children, ...props }: TabContentProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23233
|
+
};
|
|
23234
|
+
declare const TabContent: <TTabName extends string = string>({ children, ...props }: TabContentProps<TTabName>) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
22889
23235
|
|
|
22890
23236
|
type CreateTeamIntegrationTileProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
22891
23237
|
/** (optional) sets the title value
|
|
@@ -22995,8 +23341,9 @@ declare const ResolveIcon: ({ icon, name, styleType, ...props }: ResolveIconProp
|
|
|
22995
23341
|
type TileProps = {
|
|
22996
23342
|
children: ReactNode;
|
|
22997
23343
|
disabled?: boolean;
|
|
23344
|
+
isSelected?: boolean;
|
|
22998
23345
|
} & HtmlHTMLAttributes<HTMLButtonElement>;
|
|
22999
|
-
declare const Tile: ({ children, disabled, ...props }: TileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23346
|
+
declare const Tile: ({ children, disabled, isSelected, ...props }: TileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23000
23347
|
|
|
23001
23348
|
type TileContainerProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
23002
23349
|
/** sets the background colour of the outter container
|
|
@@ -23030,6 +23377,17 @@ type TileTitleProps = {
|
|
|
23030
23377
|
} & HTMLAttributes<HTMLSpanElement>;
|
|
23031
23378
|
declare const TileText: ({ as, children, ...props }: TileTitleProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23032
23379
|
|
|
23380
|
+
type ToastContainerProps = {
|
|
23381
|
+
limit?: number;
|
|
23382
|
+
};
|
|
23383
|
+
/**
|
|
23384
|
+
* A component to render toasts in your app. This component is supposed to be used just once in your app. Typically inside _app.tsx
|
|
23385
|
+
* @example <App><ToastContainer /></App>
|
|
23386
|
+
*
|
|
23387
|
+
* @deprecated This component is in beta, and might receive breaking changes in minor releases!
|
|
23388
|
+
*/
|
|
23389
|
+
declare const ToastContainer: ({ limit }: ToastContainerProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23390
|
+
|
|
23033
23391
|
type TooltipProps = TooltipOptions & {
|
|
23034
23392
|
/** Content of tooltip popover */
|
|
23035
23393
|
title: string | React__default.ReactElement;
|
|
@@ -23046,12 +23404,14 @@ declare function Tooltip({ children, title, placement, visible, withoutPortal, .
|
|
|
23046
23404
|
/** Available heading weights e.g. 1 - 6 */
|
|
23047
23405
|
type LevelProps = 1 | 2 | 3 | 4 | 5 | 6;
|
|
23048
23406
|
type HeadingProps = {
|
|
23049
|
-
/** sets the type of heading
|
|
23407
|
+
/** sets the type of heading between h1 to h6, defaults to <h2>
|
|
23050
23408
|
* @default 2
|
|
23051
23409
|
*/
|
|
23052
23410
|
level?: LevelProps;
|
|
23411
|
+
/** override the underlying html tag */
|
|
23412
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span' | 'div';
|
|
23053
23413
|
/** sets whether to display a span with the defined heading styles
|
|
23054
|
-
* @
|
|
23414
|
+
* @deprecated use as="span"
|
|
23055
23415
|
*/
|
|
23056
23416
|
asSpan?: boolean;
|
|
23057
23417
|
/** sets the title value */
|
|
@@ -23065,7 +23425,7 @@ type HeadingProps = {
|
|
|
23065
23425
|
* Component that sets the heading tag
|
|
23066
23426
|
* @example <Heading level={1}>Blog Post Title</Heading>
|
|
23067
23427
|
*/
|
|
23068
|
-
declare const Heading: ({ level, asSpan, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23428
|
+
declare const Heading: ({ level, as, asSpan, withMarginBottom, children, ...hAttributes }: HeadingProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23069
23429
|
|
|
23070
23430
|
type IntegrationHeaderSectionProps = React$1.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
23071
23431
|
/** sets the title text of the integration */
|
|
@@ -23168,7 +23528,7 @@ type ParagraphProps = {
|
|
|
23168
23528
|
*/
|
|
23169
23529
|
declare const Paragraph: ({ className, htmlContent, children, ...pAttributes }: ParagraphProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23170
23530
|
|
|
23171
|
-
type StatusTypeProps = 'Modified' | 'Unsaved' | 'Error' | 'Draft' | 'Published' | 'Orphan' | 'Previous';
|
|
23531
|
+
type StatusTypeProps = 'Modified' | 'Unsaved' | 'Error' | 'Draft' | 'Published' | 'Orphan' | 'Previous' | 'Unknown' | 'Deleted';
|
|
23172
23532
|
type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
23173
23533
|
/** sets the current status */
|
|
23174
23534
|
status: StatusTypeProps;
|
|
@@ -23185,4 +23545,4 @@ type StatusBulletProps = React$1.HTMLAttributes<HTMLSpanElement> & {
|
|
|
23185
23545
|
};
|
|
23186
23546
|
declare const StatusBullet: ({ status, hideText, size, message, ...props }: StatusBulletProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
23187
23547
|
|
|
23188
|
-
export { ActionButtonsProps, AddButton, AddButtonProps, AddListButton, AddListButtonProps, AddListButtonThemeProps, AnimationFile, AnimationFileProps, ArrowPositionProps, Avatar, AvatarGroup, AvatarGroupProps, AvatarProps, Badge, BadgeProps, BadgeSizeProps, BadgeThemeProps, BadgeThemeStyleProps, Banner, BannerProps, BannerType, BoxHeightProps, BreakpointSize, BreakpointsMap, Button, ButtonProps, ButtonSizeProps$1 as ButtonSizeProps, ButtonThemeProps$1 as ButtonThemeProps, ButtonWithMenu, ButtonWithMenuProps, Callout, CalloutProps, CalloutType, Caption, CaptionProps, Card, CardContainer, CardContainerBgColorProps, CardContainerProps, CardProps, CardTitle, CardTitleProps, CheckboxWithInfo, CheckboxWithInforProps, ChildFunction, Chip, ChipProps, ChipTheme, ComboBoxGroupBase, ConnectToDataElementButton, ConnectToDataElementButtonProps, Container, ContainerProps, Counter, CounterProps, CreateTeamIntegrationTile, CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, DashedBoxProps, DescriptionList, DescriptionListProps, Details, DetailsProps, DismissibleChipAction, Drawer, DrawerContent, DrawerContentProps, DrawerContextValue, DrawerItem, DrawerProps, DrawerProvider, DrawerRenderer, DrawerRendererItemProps, DrawerRendererProps, DrawersRegistryRecord, EditTeamIntegrationTile, EditTeamIntegrationTileProps, ErrorMessage, ErrorMessageProps, Fieldset, FieldsetProps, Heading, HeadingProps, HexModalBackground, HorizontalRhythm, Icon, IconButton, IconButtonProps, IconColor, IconName, IconProps, IconType, IconsProvider, Image, ImageBroken, ImageProps, InfoMessage, InfoMessageProps, InlineAlert, InlineAlertProps, Input, InputComboBox, InputComboBoxOption, InputComboBoxProps, InputInlineSelect, InputInlineSelectOption, InputInlineSelectProps, InputKeywordSearch, InputKeywordSearchProps, InputProps, InputSelect, InputSelectProps, InputToggle, InputToggleProps, IntegrationComingSoon, IntegrationComingSoonProps, IntegrationHeaderSection, IntegrationHeaderSectionProps, IntegrationLoadingTile, IntegrationLoadingTileProps, IntegrationModalHeader, IntegrationModalHeaderProps, IntegrationModalIcon, IntegrationModalIconProps, IntegrationTile, IntegrationTileProps, JsonEditor, JsonEditorProps, Label, LabelLeadingIcon, LabelProps, Legend, LegendProps, LevelProps, LimitsBar, LimitsBarProps, Link, LinkColorProps, LinkList, LinkListProps, LinkManagerWithRefType, LinkNode, LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, LoadingIconProps, LoadingIndicator, LoadingOverlay, LoadingOverlayProps, MediaCard, MediaCardProps, Menu,
|
|
23548
|
+
export { type ActionButtonsProps, AddButton, type AddButtonProps, AddListButton, type AddListButtonProps, type AddListButtonThemeProps, AnimationFile, type AnimationFileProps, type ArrowPositionProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSizeProps, type BadgeThemeProps, type BadgeThemeStyleProps, Banner, type BannerProps, type BannerType, BetaDecorator, type BoxHeightProps, type BreakpointSize, type BreakpointsMap, Button, type ButtonProps, type ButtonSizeProps$1 as ButtonSizeProps, 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, ConnectToDataElementButton, type ConnectToDataElementButtonProps, Container, type ContainerProps, Counter, type CounterProps, CreateTeamIntegrationTile, type CreateTeamIntegrationTileProps, CurrentDrawerContext, DashedBox, type DashedBoxProps, DateTimePicker, type DateTimePickerProps, type DateTimePickerValue, DateTimePickerVariant, DebouncedInputKeywordSearch, type DebouncedInputKeywordSearchProps, DescriptionList, type DescriptionListProps, Details, type DetailsProps, DismissibleChipAction, Drawer, DrawerContent, type DrawerContentProps, type DrawerContextValue, type DrawerItem, type DrawerProps, DrawerProvider, DrawerRenderer, type DrawerRendererItemProps, type DrawerRendererProps, type DrawersRegistryRecord, EditTeamIntegrationTile, type EditTeamIntegrationTileProps, ErrorMessage, type ErrorMessageProps, FieldMessage, type FieldMessageProps, Fieldset, type FieldsetProps, 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, InlineAlert, type InlineAlertProps, Input, InputComboBox, type InputComboBoxOption, type InputComboBoxProps, InputInlineSelect, type InputInlineSelectOption, type InputInlineSelectProps, InputKeywordSearch, type InputKeywordSearchProps, type InputProps, InputSelect, type InputSelectProps, InputTime, type InputTimeProps, InputToggle, type InputToggleProps, IntegrationComingSoon, type IntegrationComingSoonProps, IntegrationHeaderSection, type IntegrationHeaderSectionProps, IntegrationLoadingTile, type IntegrationLoadingTileProps, IntegrationModalHeader, type IntegrationModalHeaderProps, IntegrationModalIcon, type IntegrationModalIconProps, IntegrationTile, type IntegrationTileProps, type IsoDateString, type IsoDateTimeString, type IsoTimeString, JsonEditor, type JsonEditorProps, Label, LabelLeadingIcon, type LabelProps, Legend, type LegendProps, type LevelProps, LimitsBar, type LimitsBarProps, Link, type LinkColorProps, LinkList, type LinkListProps, type LinkManagerWithRefType, LinkNode, type LinkProps, LinkWithRef, LoadingCardSkeleton, LoadingIcon, type LoadingIconProps, LoadingIndicator, LoadingOverlay, type LoadingOverlayProps, MediaCard, type MediaCardProps, Menu, MenuGroup, type MenuGroupProps, MenuItem, MenuItemInner, type MenuItemProps, MenuItemSeparator, type MenuItemTextThemeProps, type MenuProps, Modal, ModalDialog, type ModalDialogProps, type ModalProps, MultilineChip, type MultilineChipProps, PageHeaderSection, type PageHeaderSectionProps, Pagination, Paragraph, type ParagraphProps, type ParameterDataConnectButtonProps, ParameterDataResource, 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, ParameterOverrideMarker, ParameterRichText, ParameterRichTextInner, type ParameterRichTextInnerProps, type ParameterRichTextProps, ParameterSelect, ParameterSelectInner, type ParameterSelectProps, 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, type RhythmProps, type RichTextParamValue, RichTextToolbarIcon, type ScrollableItemProps, ScrollableList, type ScrollableListContainerProps, ScrollableListInputItem, ScrollableListItem, type ScrollableListItemProps, type ScrollableListProps, SegmentedControl, type SegmentedControlOption, type SegmentedControlProps, type SerializedLinkNode, ShortcutContext, ShortcutRevealer, Skeleton, type SkeletonProps, 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, 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, VerticalRhythm, WarningMessage, type WarningMessageProps, accessibleHidden, addPathSegmentToPathname, borderTopIcon, breakpoints, button, buttonAccentAltDark, buttonAccentAltDarkOutline, buttonDestructive, buttonGhost, buttonGhostDestructive, buttonGhostUnimportant, buttonPrimary, buttonPrimaryInvert, buttonRippleEffect, buttonSecondary, buttonSecondaryInvert, buttonTertiary, buttonTertiaryOutline, buttonUnimportant, canvasAlertIcon, cardIcon, cq, customIcons, extractParameterProps, fadeIn, fadeInBottom, fadeInLtr, fadeInRtl, fadeInTop, fadeOutBottom, fullWidthScreenIcon, getDrawerAttributes, getParentPath, getPathSegment, growSubtle, imageTextIcon, infoFilledIcon, input, inputError, inputSelect, isMacLike, isSecureURL, isValidUrl, jsonIcon, labelText, loader as loaderAnimationData, macifyShortcut, mq, numberInput, queryStringIcon, rectangleRoundedIcon, replaceUnderscoreInString, richTextToolbarButton, richTextToolbarButtonActive, ripple, scrollbarStyles, settings, settingsIcon, skeletonLoading, slideInTtb, spin, spinner as spinnerAnimationData, structurePanelIcon, supports, textInput, uniformComponentIcon, uniformComponentPatternIcon, uniformContentTypeIcon, uniformEntryIcon, uniformEntryPatternIcon, useBreakpoint, useCloseCurrentDrawer, useCurrentDrawer, useCurrentTab, useDateTimePickerContext, useDrawer, useIconContext, useOutsideClick, useParameterShell, useShortcut, warningIcon, yesNoIcon };
|