@lumx/react 4.9.0-next.8 → 4.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_internal/{C9YCH96e.js → Dpulze-1.js} +3 -3
- package/_internal/Dpulze-1.js.map +1 -0
- package/index.d.ts +1384 -808
- package/index.js +14245 -11360
- package/index.js.map +1 -1
- package/package.json +3 -4
- package/utils/index.js +1 -1
- package/_internal/C9YCH96e.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Theme as Theme$1, Size as Size$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio as AspectRatio$1, Emphasis as Emphasis$1 } from '@lumx/core/js/constants';
|
|
2
2
|
export * from '@lumx/core/js/constants';
|
|
3
3
|
import * as _lumx_core_js_types from '@lumx/core/js/types';
|
|
4
|
-
import { GenericProps as GenericProps$1, HasTheme as HasTheme$1, ValueOf as ValueOf$1, PropsToOverride,
|
|
4
|
+
import { GenericProps as GenericProps$1, HasTheme as HasTheme$1, ValueOf as ValueOf$1, PropsToOverride, HasAriaDisabled as HasAriaDisabled$1, HasRequiredLinkHref as HasRequiredLinkHref$1, HasClassName as HasClassName$1, HasCloseMode as HasCloseMode$1, JSXElement as JSXElement$1, CommonRef as CommonRef$1, Falsy, HeadingElement as HeadingElement$1, HasAriaLabelOrLabelledBy as HasAriaLabelOrLabelledBy$1 } from '@lumx/core/js/types';
|
|
5
5
|
export * from '@lumx/core/js/types';
|
|
6
6
|
import * as React$1 from 'react';
|
|
7
|
-
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, RefObject,
|
|
7
|
+
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, RefObject, SetStateAction, Key, CSSProperties, ElementType as ElementType$1, HTMLInputTypeAttribute, ComponentProps, ImgHTMLAttributes, AriaAttributes as AriaAttributes$1 } from 'react';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
9
|
|
|
10
10
|
/** LumX Component Type. */
|
|
@@ -32,6 +32,13 @@ type ComponentRef<C> = C extends keyof JSX.IntrinsicElements ? JSX.IntrinsicElem
|
|
|
32
32
|
ref?: infer R;
|
|
33
33
|
}> ? R : never;
|
|
34
34
|
|
|
35
|
+
type HasPolymorphicAs$1<E extends React.ElementType> = React.ComponentPropsWithoutRef<E> & {
|
|
36
|
+
/**
|
|
37
|
+
* Customize the rendered component.
|
|
38
|
+
*/
|
|
39
|
+
as?: E;
|
|
40
|
+
};
|
|
41
|
+
|
|
35
42
|
interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
|
|
36
43
|
/** Message variant. */
|
|
37
44
|
kind?: Kind$1;
|
|
@@ -1067,248 +1074,349 @@ interface SelectionChipGroupProps<O> extends GenericProps$1 {
|
|
|
1067
1074
|
*/
|
|
1068
1075
|
declare const SelectionChipGroup: <O>({ onChange, value, getOptionId, getOptionName, inputRef, inputLabel, renderChip, theme, isDisabled, chipTooltipLabel, label, ...forwardedProps }: SelectionChipGroupProps<O>) => react_jsx_runtime.JSX.Element;
|
|
1069
1076
|
|
|
1077
|
+
type Listener = (evt: KeyboardEvent) => void;
|
|
1078
|
+
interface UseKeyboardListNavigationType {
|
|
1079
|
+
/** the current active index */
|
|
1080
|
+
activeItemIndex: number;
|
|
1081
|
+
/** callback to be used when a key is pressed. usually used with the native prop `onKeyDown` */
|
|
1082
|
+
onKeyboardNavigation: Listener;
|
|
1083
|
+
/** Resets the active index to the initial state */
|
|
1084
|
+
resetActiveIndex(): void;
|
|
1085
|
+
/** Sets the active index to a given value */
|
|
1086
|
+
setActiveItemIndex(value: SetStateAction<number>): void;
|
|
1087
|
+
}
|
|
1088
|
+
type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>, onListItemSelected: (itemSelected: I) => void, onListItemNavigated?: (itemSelected: I) => void, onEnterPressed?: (itemSelected: string) => void, onBackspacePressed?: Listener, keepFocusAfterSelection?: boolean, initialIndex?: number, preventTabOnEnteredValue?: boolean) => UseKeyboardListNavigationType;
|
|
1089
|
+
|
|
1090
|
+
/** List item padding size. */
|
|
1091
|
+
type ListItemPadding = Extract<Size, 'big' | 'huge'>;
|
|
1070
1092
|
/**
|
|
1071
|
-
*
|
|
1093
|
+
* Defines the props of the component.
|
|
1072
1094
|
*/
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1095
|
+
interface ListProps$1 extends HasClassName {
|
|
1096
|
+
/** List content (should be ListItem, ListDivider, etc.). */
|
|
1097
|
+
children?: JSXElement;
|
|
1098
|
+
/** Item padding size. */
|
|
1099
|
+
itemPadding?: ListItemPadding;
|
|
1100
|
+
/** ref to the root element */
|
|
1101
|
+
ref?: CommonRef;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1078
1104
|
/**
|
|
1079
1105
|
* Defines the props of the component.
|
|
1080
1106
|
*/
|
|
1081
|
-
interface
|
|
1082
|
-
/** Action toolbar content. */
|
|
1083
|
-
actions?: ReactNode;
|
|
1084
|
-
/** Props to pass to the avatar. */
|
|
1085
|
-
avatarProps: AvatarProps;
|
|
1086
|
-
/** Comment block replies. */
|
|
1087
|
-
children?: ReactNode;
|
|
1088
|
-
/** Comment date with the minimal timestamp information (xx minutes, x hours, yesterday, 6 days, Month Day, Month Day Year)*/
|
|
1089
|
-
date?: string;
|
|
1090
|
-
/** Comment date with the full timestamp information (day, month, year, time) */
|
|
1091
|
-
fullDate?: string;
|
|
1092
|
-
/** Whether the component has actions to display or not. */
|
|
1093
|
-
hasActions?: boolean;
|
|
1094
|
-
/** Action toolbar header content. */
|
|
1095
|
-
headerActions?: ReactNode;
|
|
1096
|
-
/** Whether the component is open or not. */
|
|
1097
|
-
isOpen?: boolean;
|
|
1098
|
-
/** Whether the comment is relevant or not. */
|
|
1099
|
-
isRelevant?: boolean;
|
|
1100
|
-
/** Comment author name. */
|
|
1101
|
-
name?: React.ReactNode;
|
|
1102
|
-
/**
|
|
1103
|
-
* On click callback.
|
|
1104
|
-
* @deprecated Use avatarProps instead and/or inject a clickable component in `name`
|
|
1105
|
-
*/
|
|
1106
|
-
onClick?(): void;
|
|
1107
|
-
/**
|
|
1108
|
-
* On mouse enter callback.
|
|
1109
|
-
* @deprecated Use avatarProps instead and/or inject a clickable component in `name`
|
|
1110
|
-
*/
|
|
1111
|
-
onMouseEnter?(): void;
|
|
1107
|
+
interface ListProps extends GenericProps$1, ReactToJSX<ListProps$1> {
|
|
1112
1108
|
/**
|
|
1113
|
-
*
|
|
1114
|
-
* @deprecated
|
|
1109
|
+
* Whether the list items are clickable.
|
|
1110
|
+
* @deprecated not needed anymore.
|
|
1115
1111
|
*/
|
|
1116
|
-
|
|
1117
|
-
/**
|
|
1118
|
-
|
|
1119
|
-
/**
|
|
1120
|
-
|
|
1112
|
+
isClickable?: boolean;
|
|
1113
|
+
/** Tab index of the list. */
|
|
1114
|
+
tabIndex?: number;
|
|
1115
|
+
/** @deprecated not supported since v4.0.0 */
|
|
1116
|
+
onListItemSelected?(key: Key, index: number, evt: SyntheticEvent): void;
|
|
1121
1117
|
}
|
|
1118
|
+
declare const List: Comp<ListProps, HTMLUListElement> & {
|
|
1119
|
+
useKeyboardListNavigation: useKeyboardListNavigationType;
|
|
1120
|
+
};
|
|
1121
|
+
|
|
1122
1122
|
/**
|
|
1123
|
-
*
|
|
1124
|
-
*
|
|
1125
|
-
* @param props Component props.
|
|
1126
|
-
* @param ref Component ref.
|
|
1127
|
-
* @return React element.
|
|
1123
|
+
* ListItemAction props.
|
|
1128
1124
|
*/
|
|
1129
|
-
|
|
1125
|
+
type ListItemActionProps<E extends ClickableElement = 'button'> = RawClickableProps<E> & HasClassName;
|
|
1130
1126
|
|
|
1127
|
+
/** ListItem size variants. */
|
|
1128
|
+
type ListItemSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1131
1129
|
/**
|
|
1132
1130
|
* Defines the props of the component.
|
|
1133
1131
|
*/
|
|
1134
|
-
interface
|
|
1135
|
-
/**
|
|
1136
|
-
|
|
1137
|
-
/**
|
|
1138
|
-
|
|
1139
|
-
/**
|
|
1140
|
-
|
|
1141
|
-
/**
|
|
1142
|
-
|
|
1143
|
-
/**
|
|
1144
|
-
|
|
1145
|
-
/**
|
|
1146
|
-
|
|
1147
|
-
/**
|
|
1148
|
-
|
|
1149
|
-
/**
|
|
1150
|
-
|
|
1151
|
-
/**
|
|
1152
|
-
|
|
1132
|
+
interface ListItemProps$1 extends HasClassName, HasAriaDisabled {
|
|
1133
|
+
/** A component to be rendered after the content. */
|
|
1134
|
+
after?: JSXElement;
|
|
1135
|
+
/** A component to be rendered before the content. */
|
|
1136
|
+
before?: JSXElement;
|
|
1137
|
+
/** Content. */
|
|
1138
|
+
children?: JSXElement;
|
|
1139
|
+
/** Whether the list item should be highlighted or not. */
|
|
1140
|
+
isHighlighted?: boolean;
|
|
1141
|
+
/** Whether the component is selected or not. */
|
|
1142
|
+
isSelected?: boolean;
|
|
1143
|
+
/** Whether link/button is disabled or not. */
|
|
1144
|
+
isDisabled?: boolean;
|
|
1145
|
+
/** Custom component for the link (can be used to inject router Link). */
|
|
1146
|
+
linkAs?: 'a' | any;
|
|
1147
|
+
/** Props that will be passed on to the Link. */
|
|
1148
|
+
linkProps?: GenericProps;
|
|
1149
|
+
/** Reference to the link element. */
|
|
1150
|
+
linkRef?: CommonRef;
|
|
1151
|
+
/** Size variant. */
|
|
1152
|
+
size?: ListItemSize;
|
|
1153
|
+
/** ref to the root <li> element */
|
|
1154
|
+
ref?: CommonRef;
|
|
1155
|
+
/** On click callback. */
|
|
1156
|
+
handleClick?: (event: any) => void;
|
|
1153
1157
|
}
|
|
1154
|
-
|
|
1155
|
-
/**
|
|
1156
|
-
* DatePicker component.
|
|
1157
|
-
*
|
|
1158
|
-
* @param props Component props.
|
|
1159
|
-
* @param ref Component ref.
|
|
1160
|
-
* @return React element.
|
|
1161
|
-
*/
|
|
1162
|
-
declare const DatePicker: Comp<DatePickerProps, HTMLDivElement>;
|
|
1158
|
+
type ListItemPropsToOverride = 'after' | 'before' | 'children' | 'handleClick';
|
|
1163
1159
|
|
|
1164
1160
|
/**
|
|
1165
1161
|
* Defines the props of the component.
|
|
1166
1162
|
*/
|
|
1167
|
-
interface
|
|
1168
|
-
/**
|
|
1169
|
-
|
|
1170
|
-
/**
|
|
1171
|
-
|
|
1172
|
-
/**
|
|
1173
|
-
|
|
1174
|
-
/**
|
|
1175
|
-
|
|
1163
|
+
interface ListItemProps extends GenericProps$1, HasAriaDisabled$1, ReactToJSX<ListItemProps$1, ListItemPropsToOverride> {
|
|
1164
|
+
/** A component to be rendered after the content. */
|
|
1165
|
+
after?: ReactNode;
|
|
1166
|
+
/** A component to be rendered before the content. */
|
|
1167
|
+
before?: ReactNode;
|
|
1168
|
+
/** Content. */
|
|
1169
|
+
children: string | ReactNode;
|
|
1170
|
+
/** Reference to the <li> element. */
|
|
1171
|
+
listItemRef?: Ref<HTMLLIElement>;
|
|
1172
|
+
/** Reference to the link element. */
|
|
1173
|
+
linkRef?: Ref<HTMLAnchorElement>;
|
|
1174
|
+
/** On click callback. */
|
|
1175
|
+
onClick?(event: SyntheticEvent): void;
|
|
1176
|
+
/** @alias onClick */
|
|
1177
|
+
onItemSelected?(evt: SyntheticEvent): void;
|
|
1176
1178
|
}
|
|
1177
1179
|
/**
|
|
1178
|
-
*
|
|
1179
|
-
*
|
|
1180
|
-
* @param props Component props.
|
|
1181
|
-
* @param ref Component ref.
|
|
1182
|
-
* @return React element.
|
|
1180
|
+
* ListItem component with Action sub-component.
|
|
1183
1181
|
*/
|
|
1184
|
-
declare const
|
|
1182
|
+
declare const ListItem: Comp<ListItemProps, HTMLLIElement> & {
|
|
1183
|
+
/** Sub-component that renders the default action (button or link) for the action area pattern. */
|
|
1184
|
+
Action: (<E extends React$1.ElementType = "button">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
|
|
1185
|
+
as?: E | undefined;
|
|
1186
|
+
} & GenericProps$1 & ReactToJSX<ListItemActionProps, "children"> & _lumx_core_js_types.HasRequiredLinkHref<E> & {
|
|
1187
|
+
children: ReactNode;
|
|
1188
|
+
onClick?(evt: SyntheticEvent): void;
|
|
1189
|
+
} & React$1.ComponentProps<E> & {
|
|
1190
|
+
ref?: ComponentRef<E> | undefined;
|
|
1191
|
+
}) => React.JSX.Element) & {
|
|
1192
|
+
displayName: string;
|
|
1193
|
+
className: string;
|
|
1194
|
+
defaultProps: Partial<ListItemActionProps<"button">>;
|
|
1195
|
+
};
|
|
1196
|
+
};
|
|
1185
1197
|
|
|
1186
1198
|
/**
|
|
1187
1199
|
* Defines the props of the component.
|
|
1188
1200
|
*/
|
|
1189
|
-
interface
|
|
1190
|
-
/**
|
|
1191
|
-
|
|
1192
|
-
/** Locale (language or region) to use. */
|
|
1193
|
-
locale?: string;
|
|
1194
|
-
/** Date after which dates can't be selected. */
|
|
1195
|
-
maxDate?: Date;
|
|
1196
|
-
/** Date before which dates can't be selected. */
|
|
1197
|
-
minDate?: Date;
|
|
1198
|
-
/** Props to pass to the next month button (minus those already set by the DatePickerControlled props). */
|
|
1199
|
-
nextButtonProps: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
1200
|
-
/** Props to pass to the previous month button (minus those already set by the DatePickerControlled props). */
|
|
1201
|
-
previousButtonProps: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
1202
|
-
/** Currently selected date. */
|
|
1203
|
-
value: Date | undefined;
|
|
1204
|
-
/** On change callback. */
|
|
1205
|
-
onChange(value: Date | undefined, name?: string, event?: SyntheticEvent): void;
|
|
1201
|
+
interface ListDividerProps$1 extends HasClassName {
|
|
1202
|
+
/** ref to the root element */
|
|
1203
|
+
ref?: CommonRef;
|
|
1206
1204
|
}
|
|
1205
|
+
|
|
1207
1206
|
/**
|
|
1208
|
-
*
|
|
1207
|
+
* Defines the props of the component.
|
|
1208
|
+
*/
|
|
1209
|
+
type ListDividerProps = GenericProps$1 & ReactToJSX<ListDividerProps$1>;
|
|
1210
|
+
/**
|
|
1211
|
+
* ListDivider component.
|
|
1212
|
+
* Purely decorative, consider a `ListSection` with label for a better list structure.
|
|
1209
1213
|
*
|
|
1210
1214
|
* @param props Component props.
|
|
1211
1215
|
* @param ref Component ref.
|
|
1212
1216
|
* @return React element.
|
|
1213
1217
|
*/
|
|
1214
|
-
declare const
|
|
1218
|
+
declare const ListDivider: Comp<ListDividerProps, HTMLLIElement>;
|
|
1215
1219
|
|
|
1216
1220
|
/**
|
|
1217
1221
|
* Defines the props of the component.
|
|
1218
1222
|
*/
|
|
1219
|
-
interface
|
|
1220
|
-
/**
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
/**
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
/**
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
/**
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
/**
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
/**
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1223
|
+
interface TextProps$1 extends HasClassName {
|
|
1224
|
+
/**
|
|
1225
|
+
* Color variant.
|
|
1226
|
+
*/
|
|
1227
|
+
color?: ColorWithVariants;
|
|
1228
|
+
/**
|
|
1229
|
+
* Lightened or darkened variant of the selected color.
|
|
1230
|
+
*/
|
|
1231
|
+
colorVariant?: ColorVariant;
|
|
1232
|
+
/**
|
|
1233
|
+
* Typography variant.
|
|
1234
|
+
*/
|
|
1235
|
+
typography?: Typography;
|
|
1236
|
+
/**
|
|
1237
|
+
* Custom component to render the text.
|
|
1238
|
+
*/
|
|
1239
|
+
as: TextElement;
|
|
1240
|
+
/**
|
|
1241
|
+
* Control whether the text should truncate or not.
|
|
1242
|
+
* Setting as `true` will make the text truncate on a single line.
|
|
1243
|
+
* Setting as `{ lines: number }` will make the text truncate on a multiple lines.
|
|
1244
|
+
*/
|
|
1245
|
+
truncate?: boolean | {
|
|
1246
|
+
lines: number;
|
|
1247
|
+
};
|
|
1248
|
+
/**
|
|
1249
|
+
* Prevents text to wrap on multiple lines
|
|
1250
|
+
* (automatically activated when single line text truncate is activated).
|
|
1251
|
+
*/
|
|
1252
|
+
noWrap?: boolean;
|
|
1253
|
+
/**
|
|
1254
|
+
* WhiteSpace variant
|
|
1255
|
+
* Ignored when `noWrap` is set to true
|
|
1256
|
+
* Ignored when `truncate` is set to true or lines: 1
|
|
1257
|
+
* */
|
|
1258
|
+
whiteSpace?: WhiteSpace;
|
|
1259
|
+
/**
|
|
1260
|
+
* Children
|
|
1261
|
+
*/
|
|
1262
|
+
children?: JSXElement;
|
|
1263
|
+
/** list of styles to apply */
|
|
1264
|
+
style?: CSSProperties;
|
|
1258
1265
|
}
|
|
1259
|
-
type DialogSizes = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1260
|
-
/**
|
|
1261
|
-
* Dialog component.
|
|
1262
|
-
*
|
|
1263
|
-
* @param props Component props.
|
|
1264
|
-
* @param ref Component ref.
|
|
1265
|
-
* @return React element.
|
|
1266
|
-
*/
|
|
1267
|
-
declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
1268
1266
|
|
|
1269
1267
|
/**
|
|
1270
1268
|
* Defines the props of the component.
|
|
1271
1269
|
*/
|
|
1272
|
-
interface
|
|
1273
|
-
/**
|
|
1270
|
+
interface ListSectionProps$1 extends HasClassName {
|
|
1271
|
+
/** Section label displayed as the group title. Accepts a plain string or custom JSX content. */
|
|
1272
|
+
label?: string | JSXElement;
|
|
1273
|
+
/** Section icon */
|
|
1274
|
+
icon?: string;
|
|
1275
|
+
/** List items (should be ListItem, ListDivider, etc.). */
|
|
1276
|
+
children: JSXElement;
|
|
1277
|
+
/** Items wrapper forwarded props */
|
|
1278
|
+
itemsWrapperProps?: Record<string, any>;
|
|
1279
|
+
/** ID for the label element (used for aria-labelledby). */
|
|
1280
|
+
id: string;
|
|
1281
|
+
/** ref to the root element */
|
|
1274
1282
|
ref?: CommonRef;
|
|
1283
|
+
/** Text component to use for rendering the label */
|
|
1284
|
+
Text: (props: TextProps$1 & Record<string, any>) => any;
|
|
1275
1285
|
}
|
|
1276
1286
|
|
|
1277
1287
|
/**
|
|
1278
1288
|
* Defines the props of the component.
|
|
1279
1289
|
*/
|
|
1280
|
-
interface
|
|
1290
|
+
interface ListSectionProps extends GenericProps$1, ReactToJSX<ListSectionProps$1, 'children' | 'id' | 'Text'> {
|
|
1291
|
+
/** Section content */
|
|
1292
|
+
children: ReactNode;
|
|
1281
1293
|
}
|
|
1282
1294
|
/**
|
|
1283
|
-
*
|
|
1295
|
+
* ListSection component.
|
|
1284
1296
|
*
|
|
1285
1297
|
* @param props Component props.
|
|
1286
1298
|
* @param ref Component ref.
|
|
1287
1299
|
* @return React element.
|
|
1288
1300
|
*/
|
|
1289
|
-
declare const
|
|
1290
|
-
|
|
1291
|
-
/**
|
|
1292
|
-
* Defines the props of the component.
|
|
1293
|
-
*/
|
|
1294
|
-
interface DragHandleProps$1 extends HasTheme, HasClassName {
|
|
1295
|
-
/** Reference to the root element */
|
|
1296
|
-
ref?: CommonRef;
|
|
1297
|
-
}
|
|
1301
|
+
declare const ListSection: Comp<ListSectionProps, HTMLLIElement>;
|
|
1298
1302
|
|
|
1299
1303
|
/**
|
|
1300
1304
|
* Defines the props of the component.
|
|
1301
1305
|
*/
|
|
1302
|
-
interface
|
|
1306
|
+
interface ListSubheaderProps extends GenericProps$1 {
|
|
1307
|
+
/** Content. */
|
|
1308
|
+
children: string | ReactNode;
|
|
1303
1309
|
}
|
|
1304
1310
|
/**
|
|
1305
|
-
*
|
|
1311
|
+
* ListSubheader component.
|
|
1312
|
+
* @deprecated ListSubheader produces improper list structure. use ListSection instead.
|
|
1306
1313
|
*
|
|
1307
1314
|
* @param props Component props.
|
|
1308
1315
|
* @param ref Component ref.
|
|
1309
1316
|
* @return React element.
|
|
1310
1317
|
*/
|
|
1311
|
-
declare const
|
|
1318
|
+
declare const ListSubheader: Comp<ListSubheaderProps, HTMLLIElement>;
|
|
1319
|
+
|
|
1320
|
+
/**
|
|
1321
|
+
* Defines the props for the core ComboboxState template.
|
|
1322
|
+
*/
|
|
1323
|
+
interface ComboboxStateProps$1 {
|
|
1324
|
+
/**
|
|
1325
|
+
* Message to display when the list has no visible options.
|
|
1326
|
+
* Can be a plain string or a function receiving the current input value (for dynamic messages).
|
|
1327
|
+
* When omitted, the empty state is not shown.
|
|
1328
|
+
*/
|
|
1329
|
+
emptyMessage?: string | ((inputValue: string) => string);
|
|
1330
|
+
/**
|
|
1331
|
+
* Error state title message.
|
|
1332
|
+
* When provided, the error state is active (takes priority over the empty state).
|
|
1333
|
+
* When omitted, the error state is not shown.
|
|
1334
|
+
*/
|
|
1335
|
+
errorMessage?: string;
|
|
1336
|
+
/**
|
|
1337
|
+
* Secondary error message (e.g. "Please try again").
|
|
1338
|
+
* Only rendered when `errorMessage` is provided.
|
|
1339
|
+
*/
|
|
1340
|
+
errorTryReloadMessage?: string;
|
|
1341
|
+
/**
|
|
1342
|
+
* Message to announce when loading persists (after a 500ms debounce).
|
|
1343
|
+
* When omitted, no loading announcement is made.
|
|
1344
|
+
*/
|
|
1345
|
+
loadingMessage?: string;
|
|
1346
|
+
/**
|
|
1347
|
+
* List state
|
|
1348
|
+
*/
|
|
1349
|
+
state?: {
|
|
1350
|
+
/**
|
|
1351
|
+
* Whether the list currently has no visible options.
|
|
1352
|
+
* Driven by the framework wrapper via the combobox handle's `emptyChange` event.
|
|
1353
|
+
*/
|
|
1354
|
+
isEmpty?: boolean;
|
|
1355
|
+
/**
|
|
1356
|
+
* The current value of the combobox input.
|
|
1357
|
+
* Passed to `emptyMessage` when it is a function.
|
|
1358
|
+
*/
|
|
1359
|
+
inputValue?: string;
|
|
1360
|
+
/**
|
|
1361
|
+
* Whether loading is active (immediate, from `loadingChange` event).
|
|
1362
|
+
* Used to suppress false "empty" state while data is loading.
|
|
1363
|
+
*/
|
|
1364
|
+
isLoading?: boolean;
|
|
1365
|
+
/**
|
|
1366
|
+
* Whether the combobox popover is open.
|
|
1367
|
+
* Used to gate live region content so screen readers announce messages
|
|
1368
|
+
* when the popover opens (content insertion triggers `aria-live` announcement).
|
|
1369
|
+
*/
|
|
1370
|
+
isOpen?: boolean;
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* Props for Combobox.State component.
|
|
1376
|
+
*/
|
|
1377
|
+
interface ComboboxStateProps extends ReactToJSX<ComboboxStateProps$1, 'state'> {
|
|
1378
|
+
/** Additional content rendered after the state message. */
|
|
1379
|
+
children?: ReactNode;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* Defines the props for the core ComboboxSection template.
|
|
1384
|
+
*/
|
|
1385
|
+
interface ComboboxSectionProps$1 extends HasClassName {
|
|
1386
|
+
/** Section label displayed as the group title. Accepts a plain string or custom JSX content. */
|
|
1387
|
+
label?: string | JSXElement;
|
|
1388
|
+
/** Section icon */
|
|
1389
|
+
icon?: string;
|
|
1390
|
+
/** Section content (should be ComboboxOption elements). */
|
|
1391
|
+
children: JSXElement;
|
|
1392
|
+
/** ref to the root element. */
|
|
1393
|
+
ref?: CommonRef;
|
|
1394
|
+
/**
|
|
1395
|
+
* When true, the section renders as a bare `<li hidden>` wrapper, keeping children
|
|
1396
|
+
* mounted (so option registrations stay alive) but invisible to the user and screen readers.
|
|
1397
|
+
* Set automatically by the React/Vue wrapper when all child options are filtered out.
|
|
1398
|
+
*/
|
|
1399
|
+
hidden?: boolean;
|
|
1400
|
+
/**
|
|
1401
|
+
* When true, the section is visually rendered (label + content) but hidden from assistive
|
|
1402
|
+
* technology. Used for skeleton-only sections: the visual skeleton provides feedback to
|
|
1403
|
+
* sighted users, while the live region (`ComboboxState`) handles the loading announcement.
|
|
1404
|
+
*/
|
|
1405
|
+
'aria-hidden'?: boolean;
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* Props that React/Vue wrappers need to re-declare with framework-specific types.
|
|
1409
|
+
* Used by `ReactToJSX<ComboboxSectionProps, ComboboxSectionPropsToOverride>`.
|
|
1410
|
+
*/
|
|
1411
|
+
type ComboboxSectionPropsToOverride = 'children';
|
|
1412
|
+
|
|
1413
|
+
/**
|
|
1414
|
+
* Props for Combobox.Section component.
|
|
1415
|
+
*/
|
|
1416
|
+
interface ComboboxSectionProps extends GenericProps$1, ReactToJSX<ComboboxSectionProps$1, ComboboxSectionPropsToOverride> {
|
|
1417
|
+
/** Section content (should be Combobox.Option elements). */
|
|
1418
|
+
children: ReactNode;
|
|
1419
|
+
}
|
|
1312
1420
|
|
|
1313
1421
|
/**
|
|
1314
1422
|
* Different possible placements for the popover.
|
|
@@ -1332,117 +1440,941 @@ declare const Placement: {
|
|
|
1332
1440
|
};
|
|
1333
1441
|
type Placement = ValueOf<typeof Placement>;
|
|
1334
1442
|
/**
|
|
1335
|
-
* Offset of the popover.
|
|
1443
|
+
* Offset of the popover.
|
|
1444
|
+
*/
|
|
1445
|
+
interface Offset {
|
|
1446
|
+
/** Offset size along the reference. */
|
|
1447
|
+
along?: number;
|
|
1448
|
+
/** Offset size away from the reference. */
|
|
1449
|
+
away?: number;
|
|
1450
|
+
}
|
|
1451
|
+
/**
|
|
1452
|
+
* Popover elevation index.
|
|
1453
|
+
*/
|
|
1454
|
+
type Elevation = 1 | 2 | 3 | 4 | 5;
|
|
1455
|
+
/**
|
|
1456
|
+
* Popover fit anchor width options.
|
|
1457
|
+
*/
|
|
1458
|
+
declare const FitAnchorWidth: {
|
|
1459
|
+
readonly MAX_WIDTH: "maxWidth";
|
|
1460
|
+
readonly MIN_WIDTH: "minWidth";
|
|
1461
|
+
readonly WIDTH: "width";
|
|
1462
|
+
};
|
|
1463
|
+
type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Shared popover props used by both React and Vue wrappers.
|
|
1467
|
+
*
|
|
1468
|
+
* Framework-specific props (ref types, children, callbacks) are added by each wrapper.
|
|
1469
|
+
* The `anchorRef`, `boundaryRef`, `focusElement`, `parentElement`, `focusTrapZoneElement`
|
|
1470
|
+
* are typed as `any` here because React uses `RefObject<HTMLElement>` while Vue uses
|
|
1471
|
+
* raw `HTMLElement` — each framework narrows the type in its own props definition.
|
|
1472
|
+
*/
|
|
1473
|
+
interface PopoverProps$1 extends HasClassName, HasTheme, HasCloseMode {
|
|
1474
|
+
/** Reference to the DOM element used to set the position of the popover. */
|
|
1475
|
+
anchorRef?: CommonRef;
|
|
1476
|
+
/** Customize the root element tag. */
|
|
1477
|
+
as?: string;
|
|
1478
|
+
/** Element which will act as boundary when opening the popover. */
|
|
1479
|
+
boundaryRef?: CommonRef;
|
|
1480
|
+
/** Whether a click anywhere out of the popover would close it. */
|
|
1481
|
+
closeOnClickAway?: boolean;
|
|
1482
|
+
/** Whether an escape key press would close the popover. */
|
|
1483
|
+
closeOnEscape?: boolean;
|
|
1484
|
+
/** Shadow elevation. */
|
|
1485
|
+
elevation?: Elevation;
|
|
1486
|
+
/**
|
|
1487
|
+
* Manage popover width:
|
|
1488
|
+
* - `maxWidth`: popover not bigger than anchor
|
|
1489
|
+
* - `minWidth` or `true`: popover not smaller than anchor
|
|
1490
|
+
* - `width`: popover equal to the anchor.
|
|
1491
|
+
*/
|
|
1492
|
+
fitToAnchorWidth?: FitAnchorWidth | boolean;
|
|
1493
|
+
/** Shrink popover if even after flipping there is not enough space. */
|
|
1494
|
+
fitWithinViewportHeight?: boolean;
|
|
1495
|
+
/** Element to focus when opening the popover. */
|
|
1496
|
+
focusElement?: CommonRef;
|
|
1497
|
+
/** Whether the focus should go back on the anchor when popover closes and focus is within. */
|
|
1498
|
+
focusAnchorOnClose?: boolean;
|
|
1499
|
+
/** Whether we put an arrow or not. */
|
|
1500
|
+
hasArrow?: boolean;
|
|
1501
|
+
/** Whether the popover is open or not. */
|
|
1502
|
+
isOpen: boolean;
|
|
1503
|
+
/** Offset placement relative to anchor. */
|
|
1504
|
+
offset?: Offset;
|
|
1505
|
+
/** Reference to the parent element that triggered the popover. */
|
|
1506
|
+
parentElement?: CommonRef;
|
|
1507
|
+
/** Placement relative to anchor. */
|
|
1508
|
+
placement?: Placement;
|
|
1509
|
+
/** Whether the popover should be rendered into a portal. */
|
|
1510
|
+
usePortal?: boolean;
|
|
1511
|
+
/** The element in which the focus trap should be set. Default to popover. */
|
|
1512
|
+
focusTrapZoneElement?: CommonRef;
|
|
1513
|
+
/** Z-axis position. */
|
|
1514
|
+
zIndex?: number;
|
|
1515
|
+
/** Whether the popover should trap the focus within itself. */
|
|
1516
|
+
withFocusTrap?: boolean;
|
|
1517
|
+
/** On close callback (on click away or Escape pressed). Framework wrappers provide their own type. */
|
|
1518
|
+
handleClose?(): void;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
/**
|
|
1522
|
+
* Defines the props of the component.
|
|
1523
|
+
* Extends core PopoverProps, overriding ref-typed props with React-specific `RefObject` types
|
|
1524
|
+
* and replacing `handleClose` with the React-idiomatic `onClose` callback.
|
|
1525
|
+
*/
|
|
1526
|
+
interface PopoverProps extends GenericProps$1, ReactToJSX<PopoverProps$1, 'anchorRef' | 'as' | 'boundaryRef' | 'focusElement' | 'parentElement' | 'focusTrapZoneElement' | 'className'> {
|
|
1527
|
+
/** Reference to the DOM element used to set the position of the popover. */
|
|
1528
|
+
anchorRef: RefObject<HTMLElement>;
|
|
1529
|
+
/** Customize the root element. (Must accept ref forwarding and props forwarding!). */
|
|
1530
|
+
as?: React.ElementType;
|
|
1531
|
+
/** Element which will act as boundary when opening the popover. */
|
|
1532
|
+
boundaryRef?: RefObject<HTMLElement>;
|
|
1533
|
+
/** Content. */
|
|
1534
|
+
children: ReactNode;
|
|
1535
|
+
/** Element to focus when opening the popover. */
|
|
1536
|
+
focusElement?: RefObject<HTMLElement>;
|
|
1537
|
+
/** Reference to the parent element that triggered the popover (will get back focus on close or else fallback on the anchor element). */
|
|
1538
|
+
parentElement?: RefObject<HTMLElement>;
|
|
1539
|
+
/** Whether the popover should be rendered into a DOM node that exists outside the DOM hierarchy of the parent component. */
|
|
1540
|
+
usePortal?: boolean;
|
|
1541
|
+
/** The element in which the focus trap should be set. Default to popover. */
|
|
1542
|
+
focusTrapZoneElement?: RefObject<HTMLElement>;
|
|
1543
|
+
/** On close callback (on click away or Escape pressed). */
|
|
1544
|
+
onClose?(): void;
|
|
1545
|
+
}
|
|
1546
|
+
/**
|
|
1547
|
+
* Popover component.
|
|
1548
|
+
*
|
|
1549
|
+
* @param props Component props.
|
|
1550
|
+
* @param ref Component ref.
|
|
1551
|
+
* @return React element.
|
|
1552
|
+
*/
|
|
1553
|
+
declare const Popover: Comp<PopoverProps, HTMLDivElement>;
|
|
1554
|
+
|
|
1555
|
+
/**
|
|
1556
|
+
* Props for Popover that can be passed to Combobox.Popover.
|
|
1557
|
+
* Excludes isOpen, anchorRef, children, and onClose which are managed internally.
|
|
1558
|
+
*/
|
|
1559
|
+
type ComboboxPopoverProps = Partial<Omit<PopoverProps, 'isOpen' | 'anchorRef' | 'children' | 'onClose'>>;
|
|
1560
|
+
/**
|
|
1561
|
+
* Props for the Combobox.Popover component.
|
|
1562
|
+
*/
|
|
1563
|
+
interface ComboboxPopoverComponentProps extends ComboboxPopoverProps {
|
|
1564
|
+
/** Content (should contain a Combobox.List). */
|
|
1565
|
+
children: ReactNode;
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Defines the props for the core ComboboxOptionSkeleton template.
|
|
1570
|
+
*/
|
|
1571
|
+
interface ComboboxOptionSkeletonProps$1 extends HasClassName {
|
|
1572
|
+
/** Content rendered before the skeleton text (e.g. SkeletonCircle for avatar placeholders). */
|
|
1573
|
+
before?: JSXElement;
|
|
1574
|
+
/** Content rendered after the skeleton text. */
|
|
1575
|
+
after?: JSXElement;
|
|
1576
|
+
/** Show a secondary skeleton line (mirrors ComboboxOption's `description` prop). */
|
|
1577
|
+
hasDescription?: boolean;
|
|
1578
|
+
/** Override the default SkeletonTypography content entirely. */
|
|
1579
|
+
children?: JSXElement;
|
|
1580
|
+
/** ref to the root <li> element. */
|
|
1581
|
+
ref?: CommonRef;
|
|
1582
|
+
/**
|
|
1583
|
+
* Number of skeleton `<li>` elements to render.
|
|
1584
|
+
* Each is an independent element with `:nth-child` width cycling applied by SCSS.
|
|
1585
|
+
* @default 1
|
|
1586
|
+
*/
|
|
1587
|
+
count?: number;
|
|
1588
|
+
}
|
|
1589
|
+
/**
|
|
1590
|
+
* Props that React/Vue wrappers need to re-declare with framework-specific types.
|
|
1591
|
+
* Used by `ReactToJSX<ComboboxOptionSkeletonProps, ComboboxOptionSkeletonPropsToOverride>`.
|
|
1592
|
+
*/
|
|
1593
|
+
type ComboboxOptionSkeletonPropsToOverride = 'before' | 'after' | 'children';
|
|
1594
|
+
|
|
1595
|
+
/**
|
|
1596
|
+
* Props for Combobox.OptionSkeleton component.
|
|
1597
|
+
*/
|
|
1598
|
+
interface ComboboxOptionSkeletonProps extends GenericProps$1, ReactToJSX<ComboboxOptionSkeletonProps$1, ComboboxOptionSkeletonPropsToOverride> {
|
|
1599
|
+
/** Content rendered before the skeleton text (e.g. SkeletonCircle for avatar placeholders). */
|
|
1600
|
+
before?: ReactNode;
|
|
1601
|
+
/** Content rendered after the skeleton text. */
|
|
1602
|
+
after?: ReactNode;
|
|
1603
|
+
/** Override the default SkeletonTypography content entirely. */
|
|
1604
|
+
children?: ReactNode;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
/**
|
|
1608
|
+
* Defines the props for the core ComboboxOptionMoreInfo template.
|
|
1609
|
+
*/
|
|
1610
|
+
interface ComboboxOptionMoreInfoProps$1 extends HasClassName {
|
|
1611
|
+
/** Popover content (additional details about the option). */
|
|
1612
|
+
children?: JSXElement;
|
|
1613
|
+
/** Whether the popover is open. */
|
|
1614
|
+
isOpen?: boolean;
|
|
1615
|
+
/** ID for the popover element (used for aria-describedby on the parent option). */
|
|
1616
|
+
popoverId: string;
|
|
1617
|
+
/** Ref for the anchor element (icon button). */
|
|
1618
|
+
ref?: CommonRef;
|
|
1619
|
+
/** Mouse enter callback. */
|
|
1620
|
+
onMouseEnter?(): void;
|
|
1621
|
+
/** Mouse leave callback. */
|
|
1622
|
+
onMouseLeave?(): void;
|
|
1623
|
+
/** Props forwarded to the IconButton. */
|
|
1624
|
+
buttonProps?: Record<string, any>;
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Props that React/Vue wrappers need to re-declare with framework-specific types.
|
|
1628
|
+
*/
|
|
1629
|
+
type ComboboxOptionMoreInfoPropsToOverride = 'children' | 'popoverId' | 'isOpen';
|
|
1630
|
+
|
|
1631
|
+
/**
|
|
1632
|
+
* Props for Combobox.OptionMoreInfo component.
|
|
1633
|
+
*/
|
|
1634
|
+
interface ComboboxOptionMoreInfoProps extends ReactToJSX<ComboboxOptionMoreInfoProps$1, ComboboxOptionMoreInfoPropsToOverride> {
|
|
1635
|
+
/** Content of the popover (additional details about the option). */
|
|
1636
|
+
children?: ReactNode;
|
|
1637
|
+
/** Callback when the popover opens or closes. */
|
|
1638
|
+
onToggle?(isOpen: boolean): void;
|
|
1639
|
+
/** Props forwarded to the IconButton. */
|
|
1640
|
+
buttonProps?: Partial<IconButtonProps>;
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
/**
|
|
1644
|
+
* Defines the props for the core ComboboxOption template.
|
|
1645
|
+
*/
|
|
1646
|
+
interface ComboboxOptionProps$1 extends HasClassName {
|
|
1647
|
+
/** A component to be rendered before the content (e.g. an icon or avatar). */
|
|
1648
|
+
before?: JSXElement;
|
|
1649
|
+
/** A component to be rendered after the content (e.g. ComboboxOptionAction elements). */
|
|
1650
|
+
after?: JSXElement;
|
|
1651
|
+
/** Content (option label). */
|
|
1652
|
+
children?: JSXElement;
|
|
1653
|
+
/** Props forwarded to a Tooltip wrapping the role="option" / role="gridcell" element. */
|
|
1654
|
+
tooltipProps?: Record<string, any>;
|
|
1655
|
+
/** Helper description. */
|
|
1656
|
+
description?: string;
|
|
1657
|
+
/** Unique ID for the option element. */
|
|
1658
|
+
id?: string;
|
|
1659
|
+
/** Unique ID for the description element (for aria-describedby). */
|
|
1660
|
+
descriptionId?: string;
|
|
1661
|
+
/** Whether the option is disabled. */
|
|
1662
|
+
isDisabled?: boolean;
|
|
1663
|
+
/** Whether the option is selected. */
|
|
1664
|
+
isSelected?: boolean;
|
|
1665
|
+
/** Whether the parent list is in grid mode. */
|
|
1666
|
+
isGrid?: boolean;
|
|
1667
|
+
/**
|
|
1668
|
+
* Whether the option is hidden (filtered out by auto-filter).
|
|
1669
|
+
* When true, renders a bare `<li hidden>` with only the children text — no ARIA roles,
|
|
1670
|
+
* no classes, no visual structure. This keeps the element in the DOM so its textContent
|
|
1671
|
+
* can be read for future filter evaluations, while naturally excluding it from
|
|
1672
|
+
* `[role="option"]` queries (focus navigation) and `.lumx-combobox-option` CSS rules
|
|
1673
|
+
* (section/popover auto-hide).
|
|
1674
|
+
*/
|
|
1675
|
+
hidden?: boolean;
|
|
1676
|
+
/** On click callback. */
|
|
1677
|
+
handleClick?(): void;
|
|
1678
|
+
/** Extra props forwarded to the inner action element (e.g. link props when as="a"). */
|
|
1679
|
+
actionProps?: Record<string, any>;
|
|
1680
|
+
/** ref to the root <li> element. */
|
|
1681
|
+
ref?: CommonRef;
|
|
1682
|
+
/** The value for this option (used for selection). */
|
|
1683
|
+
value?: string;
|
|
1684
|
+
}
|
|
1685
|
+
/**
|
|
1686
|
+
* Props that React/Vue wrappers need to re-declare with framework-specific types.
|
|
1687
|
+
* Used by `ReactToJSX<ComboboxOptionProps, ComboboxOptionPropsToOverride>`.
|
|
1688
|
+
*/
|
|
1689
|
+
type ComboboxOptionPropsToOverride = 'before' | 'after' | 'children' | 'tooltipProps' | 'actionProps';
|
|
1690
|
+
|
|
1691
|
+
declare const ARIA_LINK_MODES: readonly ["aria-describedby", "aria-labelledby"];
|
|
1692
|
+
|
|
1693
|
+
/** Position of the tooltip relative to the anchor element. */
|
|
1694
|
+
type TooltipPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
1695
|
+
/**
|
|
1696
|
+
* Framework-agnostic tooltip props (shared between React and Vue wrappers).
|
|
1697
|
+
*/
|
|
1698
|
+
interface TooltipProps$1 extends HasCloseMode {
|
|
1699
|
+
/** Delay (in ms) before closing the tooltip. */
|
|
1700
|
+
delay?: number;
|
|
1701
|
+
/** Whether the tooltip is displayed even without the mouse hovering the anchor. */
|
|
1702
|
+
forceOpen?: boolean;
|
|
1703
|
+
/** Label text. */
|
|
1704
|
+
label?: string | null | false;
|
|
1705
|
+
/** Placement of the tooltip relative to the anchor. */
|
|
1706
|
+
placement?: TooltipPlacement;
|
|
1707
|
+
/** Choose how the tooltip text should link to the anchor */
|
|
1708
|
+
ariaLinkMode?: (typeof ARIA_LINK_MODES)[number];
|
|
1709
|
+
/** Z-index for the tooltip */
|
|
1710
|
+
zIndex?: number;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
/**
|
|
1714
|
+
* Defines the props of the component.
|
|
1715
|
+
*/
|
|
1716
|
+
interface TooltipProps extends GenericProps$1, TooltipProps$1 {
|
|
1717
|
+
/** Anchor (element on which we activate the tooltip). */
|
|
1718
|
+
children: ReactNode;
|
|
1719
|
+
}
|
|
1720
|
+
/**
|
|
1721
|
+
* Tooltip component.
|
|
1722
|
+
*
|
|
1723
|
+
* @param props Component props.
|
|
1724
|
+
* @param ref Component ref.
|
|
1725
|
+
* @return React element.
|
|
1726
|
+
*/
|
|
1727
|
+
declare const Tooltip: Comp<TooltipProps, HTMLDivElement>;
|
|
1728
|
+
|
|
1729
|
+
/**
|
|
1730
|
+
* Props forwarded to the inner action element (button or link).
|
|
1731
|
+
*/
|
|
1732
|
+
type ComboboxOptionActionProps$1<E extends ElementType$1 = 'button'> = HasPolymorphicAs$1<E> & HasRequiredLinkHref$1<E>;
|
|
1733
|
+
/**
|
|
1734
|
+
* Props for Combobox.Option component.
|
|
1735
|
+
*/
|
|
1736
|
+
interface ComboboxOptionProps extends GenericProps$1, ReactToJSX<ComboboxOptionProps$1, ComboboxOptionPropsToOverride> {
|
|
1737
|
+
/** Display label for the option. */
|
|
1738
|
+
children?: ReactNode;
|
|
1739
|
+
/** On option clicked (or activated with keyboard) */
|
|
1740
|
+
onClick?(): void;
|
|
1741
|
+
/** Content rendered before the option label (e.g. an icon or avatar). */
|
|
1742
|
+
before?: ReactNode;
|
|
1743
|
+
/**
|
|
1744
|
+
* Content rendered after the option label.
|
|
1745
|
+
* In grid mode (`type="grid"` on the parent Combobox.List), use `Combobox.OptionAction` elements here
|
|
1746
|
+
* to add secondary action buttons. Each action becomes an independent `role="gridcell"`.
|
|
1747
|
+
*/
|
|
1748
|
+
after?: ReactNode;
|
|
1749
|
+
/** Props forwarded to a Tooltip wrapping the role="option" / role="gridcell" trigger element. */
|
|
1750
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
1751
|
+
/** Props forwarded to the inner action element (e.g. `{ as: 'a', href: '/foo' }`). */
|
|
1752
|
+
actionProps?: ComboboxOptionActionProps$1<any>;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
/**
|
|
1756
|
+
* Popup type for the combobox listbox.
|
|
1757
|
+
* - `'listbox'`: Standard listbox with `role="listbox"` and `role="option"` items.
|
|
1758
|
+
* - `'grid'`: Grid mode with `role="grid"` and `role="gridcell"` items, enabling 2D keyboard navigation.
|
|
1759
|
+
*/
|
|
1760
|
+
type ComboboxListType = 'listbox' | 'grid';
|
|
1761
|
+
|
|
1762
|
+
/**
|
|
1763
|
+
* Props for Combobox.List component.
|
|
1764
|
+
* Note: role, id are set internally and cannot be overridden.
|
|
1765
|
+
*/
|
|
1766
|
+
interface ComboboxListProps extends ListProps {
|
|
1767
|
+
/** Accessible label for the listbox (required for accessibility). */
|
|
1768
|
+
'aria-label': string;
|
|
1769
|
+
/**
|
|
1770
|
+
* The popup type. Set to "grid" when options have action buttons (Combobox.OptionAction).
|
|
1771
|
+
* Enables 2D keyboard navigation and switches ARIA roles from listbox/option to grid/gridcell.
|
|
1772
|
+
* @default 'listbox'
|
|
1773
|
+
*/
|
|
1774
|
+
type?: ComboboxListType;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
interface InputLabelProps$1 extends HasClassName, HasTheme {
|
|
1778
|
+
/** Typography variant. */
|
|
1779
|
+
typography?: Typography;
|
|
1780
|
+
/** Label content. */
|
|
1781
|
+
children: JSXElement;
|
|
1782
|
+
/** Native htmlFor property. */
|
|
1783
|
+
htmlFor: string;
|
|
1784
|
+
/** Whether the component is required or not. */
|
|
1785
|
+
isRequired?: boolean;
|
|
1786
|
+
/** ref to the root element */
|
|
1787
|
+
ref?: CommonRef;
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* Defines the props of the component.
|
|
1792
|
+
*/
|
|
1793
|
+
interface TextFieldProps$1 extends HasClassName, HasTheme, HasAriaDisabled, HasDisabled {
|
|
1794
|
+
/** Chip Group to be rendered before the main text input. */
|
|
1795
|
+
chips?: JSXElement;
|
|
1796
|
+
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
1797
|
+
clearButtonProps?: GenericProps;
|
|
1798
|
+
/** Error message. */
|
|
1799
|
+
error?: string | JSXElement;
|
|
1800
|
+
/** Whether we force the focus style or not. */
|
|
1801
|
+
forceFocusStyle?: boolean;
|
|
1802
|
+
/** Whether the text field is displayed with error style or not. */
|
|
1803
|
+
hasError?: boolean;
|
|
1804
|
+
/** Additional element to put at the end of the text field. */
|
|
1805
|
+
afterElement?: JSXElement;
|
|
1806
|
+
/** Helper text. */
|
|
1807
|
+
helper?: string | JSXElement;
|
|
1808
|
+
/** Icon (SVG path). */
|
|
1809
|
+
icon?: string;
|
|
1810
|
+
/** Native input id property (generated if not provided to link the label element). */
|
|
1811
|
+
id?: string;
|
|
1812
|
+
/** Generated helper id for accessibility attributes. */
|
|
1813
|
+
helperId?: string;
|
|
1814
|
+
/** Generated error id for accessibility attributes. */
|
|
1815
|
+
errorId?: string;
|
|
1816
|
+
/** Whether the component is required or not. */
|
|
1817
|
+
isRequired?: boolean;
|
|
1818
|
+
/** Whether the text field is displayed with valid style or not. */
|
|
1819
|
+
isValid?: boolean;
|
|
1820
|
+
/** Label text. */
|
|
1821
|
+
label?: string;
|
|
1822
|
+
/** Additional label props. */
|
|
1823
|
+
labelProps?: InputLabelProps$1;
|
|
1824
|
+
/** Max string length the input accepts (constrains the input and displays a character counter). */
|
|
1825
|
+
maxLength?: number;
|
|
1826
|
+
/** Whether the text field is a textarea or an input. */
|
|
1827
|
+
multiline?: boolean;
|
|
1828
|
+
/** Placeholder text. */
|
|
1829
|
+
placeholder?: string;
|
|
1830
|
+
/** Reference to the wrapper. */
|
|
1831
|
+
textFieldRef?: CommonRef;
|
|
1832
|
+
/** Value. */
|
|
1833
|
+
value?: string;
|
|
1834
|
+
/** Whether any part is disabled. */
|
|
1835
|
+
isAnyDisabled?: boolean;
|
|
1836
|
+
/** The input element (input or textarea). */
|
|
1837
|
+
input: JSXElement;
|
|
1838
|
+
/** Whether the input is focused. */
|
|
1839
|
+
isFocus?: boolean;
|
|
1840
|
+
/** IconButton component. */
|
|
1841
|
+
IconButton: (props: Record<string, any>) => any;
|
|
1842
|
+
/** Ref to the component root. */
|
|
1843
|
+
ref?: CommonRef;
|
|
1844
|
+
}
|
|
1845
|
+
type TextFieldPropsToOverride = 'input' | 'IconButton' | 'labelProps' | 'textFieldRef' | 'clearButtonProps' | 'helperId' | 'errorId' | 'isAnyDisabled' | 'isFocus';
|
|
1846
|
+
|
|
1847
|
+
/**
|
|
1848
|
+
* Defines the props of the component.
|
|
1849
|
+
*/
|
|
1850
|
+
interface TextFieldProps extends GenericProps$1, ReactToJSX<TextFieldProps$1, TextFieldPropsToOverride> {
|
|
1851
|
+
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
1852
|
+
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
1853
|
+
/** Reference to the <input> or <textarea> element. */
|
|
1854
|
+
inputRef?: Ref<HTMLInputElement | HTMLTextAreaElement>;
|
|
1855
|
+
/** Additional label props. */
|
|
1856
|
+
labelProps?: InputLabelProps;
|
|
1857
|
+
/** Minimum number of rows displayed in multiline mode (requires `multiline` to be enabled). */
|
|
1858
|
+
minimumRows?: number;
|
|
1859
|
+
/** Native input name property. */
|
|
1860
|
+
name?: string;
|
|
1861
|
+
/** Reference to the wrapper. */
|
|
1862
|
+
textFieldRef?: Ref<HTMLDivElement>;
|
|
1863
|
+
/** Native input type (only when `multiline` is disabled). */
|
|
1864
|
+
type?: React.ComponentProps<'input'>['type'];
|
|
1865
|
+
/** On blur callback. */
|
|
1866
|
+
onBlur?(event: React.FocusEvent): void;
|
|
1867
|
+
/** On change callback. */
|
|
1868
|
+
onChange(value: string, name?: string, event?: SyntheticEvent): void;
|
|
1869
|
+
/** On clear callback. */
|
|
1870
|
+
onClear?(event?: SyntheticEvent): void;
|
|
1871
|
+
/** On focus callback. */
|
|
1872
|
+
onFocus?(event: React.FocusEvent): void;
|
|
1873
|
+
}
|
|
1874
|
+
/**
|
|
1875
|
+
* TextField component.
|
|
1876
|
+
*
|
|
1877
|
+
* @param props Component props.
|
|
1878
|
+
* @param ref Component ref.
|
|
1879
|
+
* @return React element.
|
|
1880
|
+
*/
|
|
1881
|
+
declare const TextField: Comp<TextFieldProps, HTMLDivElement>;
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Defines the props of the component.
|
|
1885
|
+
*/
|
|
1886
|
+
interface RawInputTextProps$1 extends HasTheme, HasClassName {
|
|
1887
|
+
value?: string;
|
|
1888
|
+
type?: HTMLInputTypeAttribute;
|
|
1889
|
+
name?: string | undefined;
|
|
1890
|
+
ref?: CommonRef;
|
|
1891
|
+
handleChange?: (value: string, name?: string, event?: any) => void;
|
|
1892
|
+
handleInput?: (value: string, name?: string, event?: any) => void;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
|
|
1896
|
+
/**
|
|
1897
|
+
* Defines the props of the component.
|
|
1898
|
+
*/
|
|
1899
|
+
interface RawInputTextProps extends NativeInputProps, ReactToJSX<RawInputTextProps$1> {
|
|
1900
|
+
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
/**
|
|
1904
|
+
* Raw input text component
|
|
1905
|
+
* (input element without any decoration)
|
|
1906
|
+
*/
|
|
1907
|
+
declare const RawInputText: Comp<RawInputTextProps, HTMLInputElement>;
|
|
1908
|
+
|
|
1909
|
+
/**
|
|
1910
|
+
* Defines the props of the component.
|
|
1911
|
+
*/
|
|
1912
|
+
interface RawInputTextareaProps$1 extends HasTheme, HasClassName {
|
|
1913
|
+
value?: string;
|
|
1914
|
+
rows?: number;
|
|
1915
|
+
name?: string | undefined;
|
|
1916
|
+
ref?: CommonRef;
|
|
1917
|
+
handleChange?: (value: string, name?: string, event?: any) => void;
|
|
1918
|
+
handleInput?: (value: string, name?: string, event?: any) => void;
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
type NativeTextareaProps = Omit<ComponentProps<'textarea'>, 'value' | 'onChange'>;
|
|
1922
|
+
/**
|
|
1923
|
+
* Defines the props of the component.
|
|
1924
|
+
*/
|
|
1925
|
+
interface RawInputTextareaProps extends NativeTextareaProps, ReactToJSX<RawInputTextareaProps$1, 'rows'> {
|
|
1926
|
+
minimumRows?: number;
|
|
1927
|
+
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
1928
|
+
}
|
|
1929
|
+
/**
|
|
1930
|
+
* Raw input text area component
|
|
1931
|
+
* (textarea element without any decoration)
|
|
1932
|
+
*/
|
|
1933
|
+
declare const RawInputTextarea: Comp<Omit<RawInputTextareaProps, "type">, HTMLTextAreaElement>;
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* Props for Combobox.Input component.
|
|
1937
|
+
* Note: role, aria-autocomplete, aria-controls, aria-expanded are set internally and cannot be overridden.
|
|
1938
|
+
*/
|
|
1939
|
+
interface ComboboxInputProps extends TextFieldProps {
|
|
1940
|
+
/** Reference to the input element. */
|
|
1941
|
+
inputRef?: Ref<HTMLInputElement>;
|
|
1942
|
+
/**
|
|
1943
|
+
* Props for the toggle button.
|
|
1944
|
+
* When provided, a chevron button will be rendered in the text field's afterElement
|
|
1945
|
+
* to toggle the listbox visibility.
|
|
1946
|
+
*/
|
|
1947
|
+
toggleButtonProps?: Pick<IconButtonProps, 'label'> & Partial<Omit<IconButtonProps, 'label'>>;
|
|
1948
|
+
/** Called when an option is selected. */
|
|
1949
|
+
onSelect?: (option: {
|
|
1950
|
+
value: string;
|
|
1951
|
+
}) => void;
|
|
1952
|
+
/**
|
|
1953
|
+
* When true (default), the combobox automatically filters options as the user types.
|
|
1954
|
+
* Each `Combobox.Option` registers itself and hides when it doesn't match the input value.
|
|
1955
|
+
*
|
|
1956
|
+
* Set to false when you handle filtering yourself (e.g. async search, consumer-side
|
|
1957
|
+
* pre-filtering). Options will not be auto-filtered.
|
|
1958
|
+
*/
|
|
1959
|
+
autoFilter?: boolean;
|
|
1960
|
+
}
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* Label display mode for the ComboboxButton.
|
|
1964
|
+
* - `'show-selection'`: Show the selected value if available, otherwise the label.
|
|
1965
|
+
* - `'show-label'`: Always show the label.
|
|
1966
|
+
* - `'show-tooltip'`: Show nothing in the button; label appears only in tooltip.
|
|
1967
|
+
*/
|
|
1968
|
+
type ComboboxButtonLabelDisplayMode = 'show-selection' | 'show-label' | 'show-tooltip';
|
|
1969
|
+
/**
|
|
1970
|
+
* Defines the props for the core ComboboxButton template.
|
|
1971
|
+
*/
|
|
1972
|
+
interface ComboboxButtonProps$1 extends HasClassName {
|
|
1973
|
+
/** The label for the button (used for ARIA and tooltip). */
|
|
1974
|
+
label: string;
|
|
1975
|
+
/** The currently selected value to display. */
|
|
1976
|
+
value?: string;
|
|
1977
|
+
/** Controls how the label/value is displayed. */
|
|
1978
|
+
labelDisplayMode?: ComboboxButtonLabelDisplayMode;
|
|
1979
|
+
/** The ID of the listbox element (for aria-controls). */
|
|
1980
|
+
listboxId?: string;
|
|
1981
|
+
/** Whether the combobox is open. */
|
|
1982
|
+
isOpen?: boolean;
|
|
1983
|
+
/** ref to the root button element. */
|
|
1984
|
+
ref?: CommonRef;
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
/**
|
|
1988
|
+
* Defines the props of the component.
|
|
1989
|
+
*/
|
|
1990
|
+
interface ComboboxProviderProps {
|
|
1991
|
+
/** Combobox content. */
|
|
1992
|
+
children?: ReactNode;
|
|
1993
|
+
}
|
|
1994
|
+
/**
|
|
1995
|
+
* Combobox.Provider component.
|
|
1996
|
+
*
|
|
1997
|
+
* Provides shared context to sub-components. The vanilla JS combobox handle is
|
|
1998
|
+
* created by the trigger sub-component (Combobox.Input or Combobox.Button) on mount.
|
|
1999
|
+
*
|
|
2000
|
+
* @param props Component props.
|
|
2001
|
+
* @return React element.
|
|
2002
|
+
*/
|
|
2003
|
+
declare function ComboboxProvider(props: ComboboxProviderProps): react_jsx_runtime.JSX.Element;
|
|
2004
|
+
declare namespace ComboboxProvider {
|
|
2005
|
+
var displayName: string;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
/** Map of combobox event names to their payload types. */
|
|
2009
|
+
interface ComboboxEventMap {
|
|
2010
|
+
/** Fired when the combobox open state changes. Payload: whether the combobox is open. */
|
|
2011
|
+
open: boolean;
|
|
2012
|
+
/** Fired when the active descendant changes (visual focus). Payload: the option id or null. */
|
|
2013
|
+
activeDescendantChange: string | null;
|
|
2014
|
+
/**
|
|
2015
|
+
* Fired when the visible option count transitions between empty and non-empty.
|
|
2016
|
+
* Payload: whether the list is empty plus the current input value.
|
|
2017
|
+
*/
|
|
2018
|
+
emptyChange: {
|
|
2019
|
+
isEmpty?: boolean;
|
|
2020
|
+
inputValue?: string;
|
|
2021
|
+
} | undefined;
|
|
2022
|
+
/**
|
|
2023
|
+
* Fired immediately when the aggregate loading state changes (skeleton count transitions
|
|
2024
|
+
* between 0 and >0). Used for empty suppression in ComboboxState and for aria-busy on the listbox.
|
|
2025
|
+
*/
|
|
2026
|
+
loadingChange: boolean;
|
|
2027
|
+
/**
|
|
2028
|
+
* Fired after a 500ms debounce when loading persists, or immediately when loading ends.
|
|
2029
|
+
* Used to control the loading message text in the live region (ComboboxState).
|
|
2030
|
+
*/
|
|
2031
|
+
loadingAnnouncement: boolean;
|
|
2032
|
+
}
|
|
2033
|
+
|
|
2034
|
+
/**
|
|
2035
|
+
* Hook to subscribe to a combobox event via the handle's subscriber system.
|
|
2036
|
+
* Re-subscribes when the handle changes (e.g. trigger mount/unmount).
|
|
2037
|
+
*/
|
|
2038
|
+
declare function useComboboxEvent<K extends keyof ComboboxEventMap>(event: K, initialValue: ComboboxEventMap[K]): ComboboxEventMap[K];
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* Props for Combobox.Button component.
|
|
2042
|
+
*
|
|
2043
|
+
* Polymorphic component — use `as` to render the trigger as a different element or component
|
|
2044
|
+
* (e.g., `as="a"`, `as={RouterLink}`). Defaults to the LumX `Button` component.
|
|
2045
|
+
*/
|
|
2046
|
+
type ComboboxButtonProps<E extends ElementType$1 = typeof Button> = Omit<HasPolymorphicAs$1<E>, 'children' | 'role' | 'aria-controls' | 'aria-haspopup' | 'aria-expanded' | 'aria-activedescendant'> & HasRequiredLinkHref$1<E> & ReactToJSX<ComboboxButtonProps$1> & {
|
|
2047
|
+
/** Called when an option is selected. */
|
|
2048
|
+
onSelect?: (option: {
|
|
2049
|
+
value: string;
|
|
2050
|
+
}) => void;
|
|
2051
|
+
};
|
|
2052
|
+
|
|
2053
|
+
/**
|
|
2054
|
+
* Combobox.OptionAction props.
|
|
2055
|
+
*
|
|
2056
|
+
* Polymorphic component — use `as` to render as a different element or component
|
|
2057
|
+
* (e.g., `as={IconButton}`, `as={Button}`). Defaults to `'button'`.
|
|
2058
|
+
*/
|
|
2059
|
+
type ComboboxOptionActionProps<E extends ElementType$1 = 'button'> = HasPolymorphicAs$1<E> & HasClassName$1 & HasRequiredLinkHref$1<E> & {
|
|
2060
|
+
/** Content of the action (icon, label, etc.). Optional when using a polymorphic `as` that provides its own content (e.g., IconButton). */
|
|
2061
|
+
children?: ReactNode;
|
|
2062
|
+
/** Whether the action is disabled. */
|
|
2063
|
+
isDisabled?: boolean;
|
|
2064
|
+
/** On click callback. */
|
|
2065
|
+
onClick?(evt: SyntheticEvent): void;
|
|
2066
|
+
};
|
|
2067
|
+
|
|
2068
|
+
/**
|
|
2069
|
+
* Combobox compound component namespace.
|
|
2070
|
+
*/
|
|
2071
|
+
declare const Combobox: {
|
|
2072
|
+
/** Provides shared combobox context (handle, listbox ID, anchor ref) to all sub-components. */
|
|
2073
|
+
Provider: typeof ComboboxProvider;
|
|
2074
|
+
/** Button trigger for select-only combobox mode with keyboard navigation and typeahead. */
|
|
2075
|
+
Button: (<E extends React$1.ElementType = Comp<ButtonProps, HTMLButtonElement | HTMLAnchorElement>>(props: Omit<HasPolymorphicAs$1<E>, "children" | "aria-expanded" | "aria-haspopup" | "role" | "aria-controls" | "aria-activedescendant"> & _lumx_core_js_types.HasRequiredLinkHref<E> & ReactToJSX<ComboboxButtonProps$1> & {
|
|
2076
|
+
onSelect?: (option: {
|
|
2077
|
+
value: string;
|
|
2078
|
+
}) => void;
|
|
2079
|
+
} & React$1.ComponentProps<E> & {
|
|
2080
|
+
ref?: ComponentRef<E> | undefined;
|
|
2081
|
+
}) => React.JSX.Element) & {
|
|
2082
|
+
displayName: string;
|
|
2083
|
+
className: "lumx-combobox-button";
|
|
2084
|
+
};
|
|
2085
|
+
/** Text input trigger for autocomplete combobox mode with optional toggle button and filtering. */
|
|
2086
|
+
Input: Comp<ComboboxInputProps, HTMLDivElement>;
|
|
2087
|
+
/** Listbox container that registers with the combobox handle and tracks loading state. */
|
|
2088
|
+
List: Comp<ComboboxListProps, HTMLUListElement>;
|
|
2089
|
+
/** Selectable option item with filtering and keyboard navigation support. */
|
|
2090
|
+
Option: Comp<ComboboxOptionProps, HTMLLIElement>;
|
|
2091
|
+
/** Secondary action button within a grid-mode option row, rendered as an independent gridcell. */
|
|
2092
|
+
OptionAction: (<E extends React$1.ElementType = "button">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
|
|
2093
|
+
as?: E | undefined;
|
|
2094
|
+
} & _lumx_core_js_types.HasClassName & _lumx_core_js_types.HasRequiredLinkHref<E> & {
|
|
2095
|
+
children?: React$1.ReactNode;
|
|
2096
|
+
isDisabled?: boolean;
|
|
2097
|
+
onClick?(evt: React$1.SyntheticEvent): void;
|
|
2098
|
+
} & React$1.ComponentProps<E> & {
|
|
2099
|
+
ref?: ComponentRef<E> | undefined;
|
|
2100
|
+
}) => React.JSX.Element) & {
|
|
2101
|
+
displayName: string;
|
|
2102
|
+
className: "lumx-combobox-option-action";
|
|
2103
|
+
};
|
|
2104
|
+
/** Info button on an option that shows a popover on hover or keyboard highlight. */
|
|
2105
|
+
OptionMoreInfo: {
|
|
2106
|
+
(props: ComboboxOptionMoreInfoProps): react_jsx_runtime.JSX.Element;
|
|
2107
|
+
displayName: string;
|
|
2108
|
+
className: "lumx-combobox-option-more-info";
|
|
2109
|
+
};
|
|
2110
|
+
/** Loading placeholder skeleton(s) that auto-register loading state with the combobox handle. */
|
|
2111
|
+
OptionSkeleton: {
|
|
2112
|
+
(props: ComboboxOptionSkeletonProps): react_jsx_runtime.JSX.Element;
|
|
2113
|
+
displayName: string;
|
|
2114
|
+
className: "lumx-combobox-option-skeleton";
|
|
2115
|
+
};
|
|
2116
|
+
/** Floating popover container that auto-binds to the combobox anchor and open/close state. */
|
|
2117
|
+
Popover: {
|
|
2118
|
+
(props: ComboboxPopoverComponentProps): react_jsx_runtime.JSX.Element;
|
|
2119
|
+
displayName: string;
|
|
2120
|
+
className: "lumx-combobox-popover";
|
|
2121
|
+
};
|
|
2122
|
+
/** Labelled group of options that auto-hides when all its child options are filtered out. */
|
|
2123
|
+
Section: Comp<ComboboxSectionProps, HTMLLIElement>;
|
|
2124
|
+
/** Displays empty, error, and loading state messages for the combobox list. */
|
|
2125
|
+
State: {
|
|
2126
|
+
(props: ComboboxStateProps): react_jsx_runtime.JSX.Element;
|
|
2127
|
+
displayName: string;
|
|
2128
|
+
className: "lumx-combobox-state";
|
|
2129
|
+
};
|
|
2130
|
+
/** Visual separator between option groups (alias for ListDivider). Purely decorative — invisible to screen readers. */
|
|
2131
|
+
Divider: Comp<ListDividerProps, HTMLLIElement>;
|
|
2132
|
+
/** Hook to subscribe to combobox events. Must be used within a Combobox.Provider. */
|
|
2133
|
+
useComboboxEvent: typeof useComboboxEvent;
|
|
2134
|
+
};
|
|
2135
|
+
|
|
2136
|
+
/**
|
|
2137
|
+
* Comment block variants.
|
|
2138
|
+
*/
|
|
2139
|
+
declare const CommentBlockVariant: {
|
|
2140
|
+
readonly indented: "indented";
|
|
2141
|
+
readonly linear: "linear";
|
|
2142
|
+
};
|
|
2143
|
+
type CommentBlockVariant = ValueOf$1<typeof CommentBlockVariant>;
|
|
2144
|
+
/**
|
|
2145
|
+
* Defines the props of the component.
|
|
2146
|
+
*/
|
|
2147
|
+
interface CommentBlockProps extends GenericProps$1, HasTheme$1 {
|
|
2148
|
+
/** Action toolbar content. */
|
|
2149
|
+
actions?: ReactNode;
|
|
2150
|
+
/** Props to pass to the avatar. */
|
|
2151
|
+
avatarProps: AvatarProps;
|
|
2152
|
+
/** Comment block replies. */
|
|
2153
|
+
children?: ReactNode;
|
|
2154
|
+
/** Comment date with the minimal timestamp information (xx minutes, x hours, yesterday, 6 days, Month Day, Month Day Year)*/
|
|
2155
|
+
date?: string;
|
|
2156
|
+
/** Comment date with the full timestamp information (day, month, year, time) */
|
|
2157
|
+
fullDate?: string;
|
|
2158
|
+
/** Whether the component has actions to display or not. */
|
|
2159
|
+
hasActions?: boolean;
|
|
2160
|
+
/** Action toolbar header content. */
|
|
2161
|
+
headerActions?: ReactNode;
|
|
2162
|
+
/** Whether the component is open or not. */
|
|
2163
|
+
isOpen?: boolean;
|
|
2164
|
+
/** Whether the comment is relevant or not. */
|
|
2165
|
+
isRelevant?: boolean;
|
|
2166
|
+
/** Comment author name. */
|
|
2167
|
+
name?: React.ReactNode;
|
|
2168
|
+
/**
|
|
2169
|
+
* On click callback.
|
|
2170
|
+
* @deprecated Use avatarProps instead and/or inject a clickable component in `name`
|
|
2171
|
+
*/
|
|
2172
|
+
onClick?(): void;
|
|
2173
|
+
/**
|
|
2174
|
+
* On mouse enter callback.
|
|
2175
|
+
* @deprecated Use avatarProps instead and/or inject a clickable component in `name`
|
|
2176
|
+
*/
|
|
2177
|
+
onMouseEnter?(): void;
|
|
2178
|
+
/**
|
|
2179
|
+
* On mouse leave callback.
|
|
2180
|
+
* @deprecated Use avatarProps instead and/or inject a clickable component in `name`
|
|
2181
|
+
*/
|
|
2182
|
+
onMouseLeave?(): void;
|
|
2183
|
+
/** Comment content. */
|
|
2184
|
+
text: ReactNode | string;
|
|
2185
|
+
/** Comment variant. */
|
|
2186
|
+
variant?: CommentBlockVariant;
|
|
2187
|
+
}
|
|
2188
|
+
/**
|
|
2189
|
+
* CommentBlock component.
|
|
2190
|
+
*
|
|
2191
|
+
* @param props Component props.
|
|
2192
|
+
* @param ref Component ref.
|
|
2193
|
+
* @return React element.
|
|
2194
|
+
*/
|
|
2195
|
+
declare const CommentBlock: Comp<CommentBlockProps, HTMLDivElement>;
|
|
2196
|
+
|
|
2197
|
+
/**
|
|
2198
|
+
* Defines the props of the component.
|
|
2199
|
+
*/
|
|
2200
|
+
interface DatePickerProps extends GenericProps$1 {
|
|
2201
|
+
/** Default month. */
|
|
2202
|
+
defaultMonth?: Date;
|
|
2203
|
+
/** Locale (language or region) to use. */
|
|
2204
|
+
locale?: string;
|
|
2205
|
+
/** Date after which dates can't be selected. */
|
|
2206
|
+
maxDate?: Date;
|
|
2207
|
+
/** Date before which dates can't be selected. */
|
|
2208
|
+
minDate?: Date;
|
|
2209
|
+
/** Props to pass to the next month button (minus those already set by the DatePickerControlled props). */
|
|
2210
|
+
nextButtonProps: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2211
|
+
/** Props to pass to the previous month button (minus those already set by the DatePickerControlled props). */
|
|
2212
|
+
previousButtonProps: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2213
|
+
/** Reference to the <button> element corresponding to the current date or the selected date. */
|
|
2214
|
+
todayOrSelectedDateRef?: Ref<HTMLButtonElement>;
|
|
2215
|
+
/** Currently selected date. */
|
|
2216
|
+
value: Date | undefined;
|
|
2217
|
+
/** On change callback. */
|
|
2218
|
+
onChange(value: Date | undefined): void;
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
/**
|
|
2222
|
+
* DatePicker component.
|
|
2223
|
+
*
|
|
2224
|
+
* @param props Component props.
|
|
2225
|
+
* @param ref Component ref.
|
|
2226
|
+
* @return React element.
|
|
2227
|
+
*/
|
|
2228
|
+
declare const DatePicker: Comp<DatePickerProps, HTMLDivElement>;
|
|
2229
|
+
|
|
2230
|
+
/**
|
|
2231
|
+
* Defines the props of the component.
|
|
2232
|
+
*/
|
|
2233
|
+
interface DatePickerControlledProps extends DatePickerProps {
|
|
2234
|
+
/** Selected month to display. */
|
|
2235
|
+
selectedMonth: Date;
|
|
2236
|
+
/** On previous month change callback. */
|
|
2237
|
+
onPrevMonthChange(): void;
|
|
2238
|
+
/** On next month change callback. */
|
|
2239
|
+
onNextMonthChange(): void;
|
|
2240
|
+
/** On month/year change callback. */
|
|
2241
|
+
onMonthChange?: (newMonth: Date) => void;
|
|
2242
|
+
}
|
|
2243
|
+
/**
|
|
2244
|
+
* DatePickerControlled component.
|
|
2245
|
+
*
|
|
2246
|
+
* @param props Component props.
|
|
2247
|
+
* @param ref Component ref.
|
|
2248
|
+
* @return React element.
|
|
2249
|
+
*/
|
|
2250
|
+
declare const DatePickerControlled: Comp<DatePickerControlledProps, HTMLDivElement>;
|
|
2251
|
+
|
|
2252
|
+
/**
|
|
2253
|
+
* Defines the props of the component.
|
|
2254
|
+
*/
|
|
2255
|
+
interface DatePickerFieldProps extends Omit<TextFieldProps, 'value' | 'onChange'>, GenericProps$1 {
|
|
2256
|
+
/** Default month. */
|
|
2257
|
+
defaultMonth?: Date;
|
|
2258
|
+
/** Locale (language or region) to use. */
|
|
2259
|
+
locale?: string;
|
|
2260
|
+
/** Date after which dates can't be selected. */
|
|
2261
|
+
maxDate?: Date;
|
|
2262
|
+
/** Date before which dates can't be selected. */
|
|
2263
|
+
minDate?: Date;
|
|
2264
|
+
/** Props to pass to the next month button (minus those already set by the DatePickerControlled props). */
|
|
2265
|
+
nextButtonProps: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2266
|
+
/** Props to pass to the previous month button (minus those already set by the DatePickerControlled props). */
|
|
2267
|
+
previousButtonProps: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
2268
|
+
/** Currently selected date. */
|
|
2269
|
+
value: Date | undefined;
|
|
2270
|
+
/** On change callback. */
|
|
2271
|
+
onChange(value: Date | undefined, name?: string, event?: SyntheticEvent): void;
|
|
2272
|
+
}
|
|
2273
|
+
/**
|
|
2274
|
+
* DatePickerField component.
|
|
2275
|
+
*
|
|
2276
|
+
* @param props Component props.
|
|
2277
|
+
* @param ref Component ref.
|
|
2278
|
+
* @return React element.
|
|
2279
|
+
*/
|
|
2280
|
+
declare const DatePickerField: Comp<DatePickerFieldProps, HTMLDivElement>;
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* Defines the props of the component.
|
|
2284
|
+
*/
|
|
2285
|
+
interface DialogProps extends GenericProps$1, HasCloseMode$1 {
|
|
2286
|
+
/** Footer content. */
|
|
2287
|
+
footer?: ReactNode;
|
|
2288
|
+
/** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
|
|
2289
|
+
forceFooterDivider?: boolean;
|
|
2290
|
+
/** Header content. */
|
|
2291
|
+
header?: ReactNode;
|
|
2292
|
+
/** Whether the divider between the dialog content and the footer is always displayed (instead of showing it on scroll). */
|
|
2293
|
+
forceHeaderDivider?: boolean;
|
|
2294
|
+
/** Whether the indefinite progress indicator over the dialog content is displayed or not. */
|
|
2295
|
+
isLoading?: boolean;
|
|
2296
|
+
/** Whether the component is open or not. */
|
|
2297
|
+
isOpen?: boolean;
|
|
2298
|
+
/** Reference to the parent element that triggered modal opening (will get back focus on close). */
|
|
2299
|
+
parentElement?: RefObject<HTMLElement>;
|
|
2300
|
+
/** Reference to the dialog content element. */
|
|
2301
|
+
contentRef?: Ref<HTMLDivElement>;
|
|
2302
|
+
/** Reference to the of the element that should get the focus when the dialogs opens. By default, the first child will take focus. */
|
|
2303
|
+
focusElement?: RefObject<HTMLElement>;
|
|
2304
|
+
/** Whether to keep the dialog open on clickaway or escape press. */
|
|
2305
|
+
preventAutoClose?: boolean;
|
|
2306
|
+
/** Whether to keep the dialog open on escape press. */
|
|
2307
|
+
preventCloseOnEscape?: boolean;
|
|
2308
|
+
/** Whether to keep the dialog open on clickaway. */
|
|
2309
|
+
preventCloseOnClick?: boolean;
|
|
2310
|
+
/** Size variant. */
|
|
2311
|
+
size?: DialogSizes;
|
|
2312
|
+
/** Z-axis position. */
|
|
2313
|
+
zIndex?: number;
|
|
2314
|
+
/** Z-axis position. */
|
|
2315
|
+
dialogProps?: GenericProps$1;
|
|
2316
|
+
/** On close callback. */
|
|
2317
|
+
onClose?(): void;
|
|
2318
|
+
/** Callback called when the open animation starts and the close animation finishes. */
|
|
2319
|
+
onVisibilityChange?(isVisible: boolean): void;
|
|
2320
|
+
/** whether to disable the scroll on the body or not */
|
|
2321
|
+
disableBodyScroll?: boolean;
|
|
2322
|
+
/** Children */
|
|
2323
|
+
children?: React__default.ReactNode;
|
|
2324
|
+
}
|
|
2325
|
+
type DialogSizes = Extract<Size$1, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
2326
|
+
/**
|
|
2327
|
+
* Dialog component.
|
|
2328
|
+
*
|
|
2329
|
+
* @param props Component props.
|
|
2330
|
+
* @param ref Component ref.
|
|
2331
|
+
* @return React element.
|
|
2332
|
+
*/
|
|
2333
|
+
declare const Dialog: Comp<DialogProps, HTMLDivElement>;
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
* Defines the props of the component.
|
|
1336
2337
|
*/
|
|
1337
|
-
interface
|
|
1338
|
-
/**
|
|
1339
|
-
|
|
1340
|
-
/** Offset size away from the reference. */
|
|
1341
|
-
away?: number;
|
|
2338
|
+
interface DividerProps$1 extends HasTheme, HasClassName {
|
|
2339
|
+
/** reference to the root element */
|
|
2340
|
+
ref?: CommonRef;
|
|
1342
2341
|
}
|
|
2342
|
+
|
|
1343
2343
|
/**
|
|
1344
|
-
*
|
|
2344
|
+
* Defines the props of the component.
|
|
1345
2345
|
*/
|
|
1346
|
-
|
|
2346
|
+
interface DividerProps extends GenericProps$1, ReactToJSX<DividerProps$1> {
|
|
2347
|
+
}
|
|
1347
2348
|
/**
|
|
1348
|
-
*
|
|
2349
|
+
* Divider component.
|
|
2350
|
+
*
|
|
2351
|
+
* @param props Component props.
|
|
2352
|
+
* @param ref Component ref.
|
|
2353
|
+
* @return React element.
|
|
1349
2354
|
*/
|
|
1350
|
-
declare const
|
|
1351
|
-
readonly MAX_WIDTH: "maxWidth";
|
|
1352
|
-
readonly MIN_WIDTH: "minWidth";
|
|
1353
|
-
readonly WIDTH: "width";
|
|
1354
|
-
};
|
|
1355
|
-
type FitAnchorWidth = ValueOf<typeof FitAnchorWidth>;
|
|
2355
|
+
declare const Divider: Comp<DividerProps, HTMLHRElement>;
|
|
1356
2356
|
|
|
1357
2357
|
/**
|
|
1358
|
-
*
|
|
1359
|
-
*
|
|
1360
|
-
* Framework-specific props (ref types, children, callbacks) are added by each wrapper.
|
|
1361
|
-
* The `anchorRef`, `boundaryRef`, `focusElement`, `parentElement`, `focusTrapZoneElement`
|
|
1362
|
-
* are typed as `any` here because React uses `RefObject<HTMLElement>` while Vue uses
|
|
1363
|
-
* raw `HTMLElement` — each framework narrows the type in its own props definition.
|
|
2358
|
+
* Defines the props of the component.
|
|
1364
2359
|
*/
|
|
1365
|
-
interface
|
|
1366
|
-
/** Reference to the
|
|
1367
|
-
|
|
1368
|
-
/** Customize the root element tag. */
|
|
1369
|
-
as?: string;
|
|
1370
|
-
/** Element which will act as boundary when opening the popover. */
|
|
1371
|
-
boundaryRef?: CommonRef;
|
|
1372
|
-
/** Whether a click anywhere out of the popover would close it. */
|
|
1373
|
-
closeOnClickAway?: boolean;
|
|
1374
|
-
/** Whether an escape key press would close the popover. */
|
|
1375
|
-
closeOnEscape?: boolean;
|
|
1376
|
-
/** Shadow elevation. */
|
|
1377
|
-
elevation?: Elevation;
|
|
1378
|
-
/**
|
|
1379
|
-
* Manage popover width:
|
|
1380
|
-
* - `maxWidth`: popover not bigger than anchor
|
|
1381
|
-
* - `minWidth` or `true`: popover not smaller than anchor
|
|
1382
|
-
* - `width`: popover equal to the anchor.
|
|
1383
|
-
*/
|
|
1384
|
-
fitToAnchorWidth?: FitAnchorWidth | boolean;
|
|
1385
|
-
/** Shrink popover if even after flipping there is not enough space. */
|
|
1386
|
-
fitWithinViewportHeight?: boolean;
|
|
1387
|
-
/** Element to focus when opening the popover. */
|
|
1388
|
-
focusElement?: CommonRef;
|
|
1389
|
-
/** Whether the focus should go back on the anchor when popover closes and focus is within. */
|
|
1390
|
-
focusAnchorOnClose?: boolean;
|
|
1391
|
-
/** Whether we put an arrow or not. */
|
|
1392
|
-
hasArrow?: boolean;
|
|
1393
|
-
/** Whether the popover is open or not. */
|
|
1394
|
-
isOpen: boolean;
|
|
1395
|
-
/** Offset placement relative to anchor. */
|
|
1396
|
-
offset?: Offset;
|
|
1397
|
-
/** Reference to the parent element that triggered the popover. */
|
|
1398
|
-
parentElement?: CommonRef;
|
|
1399
|
-
/** Placement relative to anchor. */
|
|
1400
|
-
placement?: Placement;
|
|
1401
|
-
/** Whether the popover should be rendered into a portal. */
|
|
1402
|
-
usePortal?: boolean;
|
|
1403
|
-
/** The element in which the focus trap should be set. Default to popover. */
|
|
1404
|
-
focusTrapZoneElement?: CommonRef;
|
|
1405
|
-
/** Z-axis position. */
|
|
1406
|
-
zIndex?: number;
|
|
1407
|
-
/** Whether the popover should trap the focus within itself. */
|
|
1408
|
-
withFocusTrap?: boolean;
|
|
1409
|
-
/** On close callback (on click away or Escape pressed). Framework wrappers provide their own type. */
|
|
1410
|
-
handleClose?(): void;
|
|
2360
|
+
interface DragHandleProps$1 extends HasTheme, HasClassName {
|
|
2361
|
+
/** Reference to the root element */
|
|
2362
|
+
ref?: CommonRef;
|
|
1411
2363
|
}
|
|
1412
2364
|
|
|
1413
2365
|
/**
|
|
1414
2366
|
* Defines the props of the component.
|
|
1415
|
-
* Extends core PopoverProps, overriding ref-typed props with React-specific `RefObject` types
|
|
1416
|
-
* and replacing `handleClose` with the React-idiomatic `onClose` callback.
|
|
1417
2367
|
*/
|
|
1418
|
-
interface
|
|
1419
|
-
/** Reference to the DOM element used to set the position of the popover. */
|
|
1420
|
-
anchorRef: RefObject<HTMLElement>;
|
|
1421
|
-
/** Customize the root element. (Must accept ref forwarding and props forwarding!). */
|
|
1422
|
-
as?: React.ElementType;
|
|
1423
|
-
/** Element which will act as boundary when opening the popover. */
|
|
1424
|
-
boundaryRef?: RefObject<HTMLElement>;
|
|
1425
|
-
/** Content. */
|
|
1426
|
-
children: ReactNode;
|
|
1427
|
-
/** Element to focus when opening the popover. */
|
|
1428
|
-
focusElement?: RefObject<HTMLElement>;
|
|
1429
|
-
/** Reference to the parent element that triggered the popover (will get back focus on close or else fallback on the anchor element). */
|
|
1430
|
-
parentElement?: RefObject<HTMLElement>;
|
|
1431
|
-
/** Whether the popover should be rendered into a DOM node that exists outside the DOM hierarchy of the parent component. */
|
|
1432
|
-
usePortal?: boolean;
|
|
1433
|
-
/** The element in which the focus trap should be set. Default to popover. */
|
|
1434
|
-
focusTrapZoneElement?: RefObject<HTMLElement>;
|
|
1435
|
-
/** On close callback (on click away or Escape pressed). */
|
|
1436
|
-
onClose?(): void;
|
|
2368
|
+
interface DragHandleProps extends GenericProps$1, ReactToJSX<DragHandleProps$1> {
|
|
1437
2369
|
}
|
|
1438
2370
|
/**
|
|
1439
|
-
*
|
|
2371
|
+
* DragHandle component.
|
|
1440
2372
|
*
|
|
1441
2373
|
* @param props Component props.
|
|
1442
2374
|
* @param ref Component ref.
|
|
1443
2375
|
* @return React element.
|
|
1444
2376
|
*/
|
|
1445
|
-
declare const
|
|
2377
|
+
declare const DragHandle: Comp<DragHandleProps, HTMLDivElement>;
|
|
1446
2378
|
|
|
1447
2379
|
/**
|
|
1448
2380
|
* Defines the props of the component.
|
|
@@ -1528,7 +2460,7 @@ declare const Dropdown: Comp<DropdownProps, HTMLDivElement>;
|
|
|
1528
2460
|
/**
|
|
1529
2461
|
* Defines the props of the component.
|
|
1530
2462
|
*/
|
|
1531
|
-
interface ExpansionPanelProps extends
|
|
2463
|
+
interface ExpansionPanelProps$1 extends HasClassName, HasCloseMode, HasTheme {
|
|
1532
2464
|
/** Whether the expansion panel has a background. */
|
|
1533
2465
|
hasBackground?: boolean;
|
|
1534
2466
|
/** Whether the header has a divider. */
|
|
@@ -1537,6 +2469,41 @@ interface ExpansionPanelProps extends GenericProps$1, HasCloseMode$1, HasTheme$1
|
|
|
1537
2469
|
isOpen?: boolean;
|
|
1538
2470
|
/** Label text (overwritten if a `<header>` is provided in the children). */
|
|
1539
2471
|
label?: string;
|
|
2472
|
+
/** On open callback. */
|
|
2473
|
+
handleOpen?: (event: any) => void;
|
|
2474
|
+
/** On close callback. */
|
|
2475
|
+
handleClose?: (event: any) => void;
|
|
2476
|
+
/** Props to pass to the toggle button (minus those already set by the ExpansionPanel props). */
|
|
2477
|
+
toggleButtonProps: any;
|
|
2478
|
+
/** On toggle open or close callback. */
|
|
2479
|
+
handleToggleOpen?(shouldOpen: boolean, event: any): void;
|
|
2480
|
+
/** Children */
|
|
2481
|
+
children?: JSXElement;
|
|
2482
|
+
/** Ref forwarded to the root `<section>` element. */
|
|
2483
|
+
ref?: CommonRef;
|
|
2484
|
+
/** Ref forwarded to the collapsible wrapper `<div>`. */
|
|
2485
|
+
wrapperRef?: CommonRef;
|
|
2486
|
+
/** Props spread onto the header content `<div>` (e.g. `aria-*`, `data-*`). */
|
|
2487
|
+
headerProps: GenericProps;
|
|
2488
|
+
/** Content rendered inside the header content area. */
|
|
2489
|
+
headerContent?: JSXElement;
|
|
2490
|
+
/** Optional drag handle element rendered at the start of the header. */
|
|
2491
|
+
dragHandle?: JSXElement;
|
|
2492
|
+
/** Content rendered inside the collapsible content area. */
|
|
2493
|
+
content?: JSXElement;
|
|
2494
|
+
/** Optional footer element rendered below the content. */
|
|
2495
|
+
footer?: JSXElement;
|
|
2496
|
+
/** IconButton component injected by the framework wrapper (React or Vue). */
|
|
2497
|
+
IconButton: any;
|
|
2498
|
+
/** Whether the children should remain mounted (visible in the DOM) while the panel is closed. */
|
|
2499
|
+
isChildrenVisible?: boolean;
|
|
2500
|
+
}
|
|
2501
|
+
type ExpansionPanelPropsToOverride = 'handleOpen' | 'handleClose' | 'toggleButtonProps' | 'handleToggleOpen' | 'wrapperRef' | 'headerProps' | 'headerContent' | 'dragHandle' | 'content' | 'IconButton' | 'isChildrenVisible' | 'footer';
|
|
2502
|
+
|
|
2503
|
+
/**
|
|
2504
|
+
* Defines the props of the component.
|
|
2505
|
+
*/
|
|
2506
|
+
interface ExpansionPanelProps extends GenericProps$1, ReactToJSX<ExpansionPanelProps$1, ExpansionPanelPropsToOverride> {
|
|
1540
2507
|
/** On open callback. */
|
|
1541
2508
|
onOpen?: (event: React__default.MouseEvent) => void;
|
|
1542
2509
|
/** On close callback. */
|
|
@@ -1545,8 +2512,6 @@ interface ExpansionPanelProps extends GenericProps$1, HasCloseMode$1, HasTheme$1
|
|
|
1545
2512
|
toggleButtonProps: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
1546
2513
|
/** On toggle open or close callback. */
|
|
1547
2514
|
onToggleOpen?(shouldOpen: boolean, event: React__default.MouseEvent): void;
|
|
1548
|
-
/** Children */
|
|
1549
|
-
children?: React__default.ReactNode;
|
|
1550
2515
|
}
|
|
1551
2516
|
/**
|
|
1552
2517
|
* ExpansionPanel component.
|
|
@@ -1557,53 +2522,6 @@ interface ExpansionPanelProps extends GenericProps$1, HasCloseMode$1, HasTheme$1
|
|
|
1557
2522
|
*/
|
|
1558
2523
|
declare const ExpansionPanel: Comp<ExpansionPanelProps, HTMLDivElement>;
|
|
1559
2524
|
|
|
1560
|
-
/**
|
|
1561
|
-
* Defines the props of the component.
|
|
1562
|
-
*/
|
|
1563
|
-
interface TextProps$1 extends HasClassName {
|
|
1564
|
-
/**
|
|
1565
|
-
* Color variant.
|
|
1566
|
-
*/
|
|
1567
|
-
color?: ColorWithVariants;
|
|
1568
|
-
/**
|
|
1569
|
-
* Lightened or darkened variant of the selected color.
|
|
1570
|
-
*/
|
|
1571
|
-
colorVariant?: ColorVariant;
|
|
1572
|
-
/**
|
|
1573
|
-
* Typography variant.
|
|
1574
|
-
*/
|
|
1575
|
-
typography?: Typography;
|
|
1576
|
-
/**
|
|
1577
|
-
* Custom component to render the text.
|
|
1578
|
-
*/
|
|
1579
|
-
as: TextElement;
|
|
1580
|
-
/**
|
|
1581
|
-
* Control whether the text should truncate or not.
|
|
1582
|
-
* Setting as `true` will make the text truncate on a single line.
|
|
1583
|
-
* Setting as `{ lines: number }` will make the text truncate on a multiple lines.
|
|
1584
|
-
*/
|
|
1585
|
-
truncate?: boolean | {
|
|
1586
|
-
lines: number;
|
|
1587
|
-
};
|
|
1588
|
-
/**
|
|
1589
|
-
* Prevents text to wrap on multiple lines
|
|
1590
|
-
* (automatically activated when single line text truncate is activated).
|
|
1591
|
-
*/
|
|
1592
|
-
noWrap?: boolean;
|
|
1593
|
-
/**
|
|
1594
|
-
* WhiteSpace variant
|
|
1595
|
-
* Ignored when `noWrap` is set to true
|
|
1596
|
-
* Ignored when `truncate` is set to true or lines: 1
|
|
1597
|
-
* */
|
|
1598
|
-
whiteSpace?: WhiteSpace;
|
|
1599
|
-
/**
|
|
1600
|
-
* Children
|
|
1601
|
-
*/
|
|
1602
|
-
children?: JSXElement;
|
|
1603
|
-
/** list of styles to apply */
|
|
1604
|
-
style?: CSSProperties;
|
|
1605
|
-
}
|
|
1606
|
-
|
|
1607
2525
|
interface FlagProps$1 extends HasClassName, HasTheme {
|
|
1608
2526
|
/** Color of the component. */
|
|
1609
2527
|
color?: ColorPalette;
|
|
@@ -1696,7 +2614,7 @@ declare const GenericBlockGapSize: Pick<{
|
|
|
1696
2614
|
readonly medium: "medium";
|
|
1697
2615
|
readonly big: "big";
|
|
1698
2616
|
readonly huge: "huge";
|
|
1699
|
-
}, "
|
|
2617
|
+
}, "big" | "medium" | "tiny" | "regular" | "huge">;
|
|
1700
2618
|
type GenericBlockGapSize = ValueOf<typeof GenericBlockGapSize>;
|
|
1701
2619
|
|
|
1702
2620
|
interface GenericBlockProps$1 extends FlexBoxProps$1 {
|
|
@@ -1926,7 +2844,7 @@ interface GridColumnProps extends GenericProps$1, ReactToJSX<GridColumnProps$1>
|
|
|
1926
2844
|
*/
|
|
1927
2845
|
declare const GridColumn: Comp<GridColumnProps, HTMLElement>;
|
|
1928
2846
|
|
|
1929
|
-
declare const ICON_SIZES: ("
|
|
2847
|
+
declare const ICON_SIZES: ("m" | "s" | "xxs" | "xs" | "l" | "xl" | "xxl")[];
|
|
1930
2848
|
|
|
1931
2849
|
type IconSizes = (typeof ICON_SIZES)[number];
|
|
1932
2850
|
/**
|
|
@@ -1965,6 +2883,71 @@ interface IconProps extends ReactToJSX<IconProps$1>, GenericProps$1 {
|
|
|
1965
2883
|
*/
|
|
1966
2884
|
declare const Icon: Comp<IconProps, HTMLElement>;
|
|
1967
2885
|
|
|
2886
|
+
type ImageCaptionMetadata$1 = {
|
|
2887
|
+
/** Image title to display in the caption. */
|
|
2888
|
+
title?: string;
|
|
2889
|
+
/** Props to pass to the title. */
|
|
2890
|
+
titleProps?: GenericProps;
|
|
2891
|
+
/** Image description. Can be either a string, ReactNode, or sanitized html object. */
|
|
2892
|
+
description?: JSXElement | {
|
|
2893
|
+
__html: string;
|
|
2894
|
+
};
|
|
2895
|
+
/** Props to pass to the description. */
|
|
2896
|
+
descriptionProps?: GenericProps;
|
|
2897
|
+
/** Tag content. */
|
|
2898
|
+
tags?: JSXElement;
|
|
2899
|
+
/** Caption custom CSS style. */
|
|
2900
|
+
captionStyle?: GenericProps;
|
|
2901
|
+
/** Props to pass to the wrapper FlexBox element. */
|
|
2902
|
+
wrapperProps?: GenericProps;
|
|
2903
|
+
/** FlexBox component injected by the framework wrapper (React or Vue). */
|
|
2904
|
+
FlexBox: any;
|
|
2905
|
+
/** Text component injected by the framework wrapper (React or Vue). */
|
|
2906
|
+
Text: any;
|
|
2907
|
+
};
|
|
2908
|
+
type ImageCaptionPropsToOverride = 'FlexBox' | 'Text' | 'wrapperProps';
|
|
2909
|
+
|
|
2910
|
+
/**
|
|
2911
|
+
* Image block variants.
|
|
2912
|
+
*/
|
|
2913
|
+
declare const ImageBlockCaptionPosition: {
|
|
2914
|
+
readonly below: "below";
|
|
2915
|
+
readonly over: "over";
|
|
2916
|
+
};
|
|
2917
|
+
type ImageBlockCaptionPosition = ValueOf<typeof ImageBlockCaptionPosition>;
|
|
2918
|
+
/**
|
|
2919
|
+
* Image block sizes.
|
|
2920
|
+
*/
|
|
2921
|
+
type ImageBlockSize$1 = Extract<Size, 'xl' | 'xxl'>;
|
|
2922
|
+
/**
|
|
2923
|
+
* Defines the props of the component.
|
|
2924
|
+
*/
|
|
2925
|
+
interface ImageBlockProps$1 extends HasClassName, HasTheme, Omit<ImageCaptionMetadata$1, ImageCaptionPropsToOverride> {
|
|
2926
|
+
/** Action toolbar content. */
|
|
2927
|
+
actions?: JSXElement;
|
|
2928
|
+
/** Alignment. */
|
|
2929
|
+
align?: HorizontalAlignment;
|
|
2930
|
+
/** Image alternative text. */
|
|
2931
|
+
alt: string;
|
|
2932
|
+
/** Caption position. */
|
|
2933
|
+
captionPosition?: ImageBlockCaptionPosition;
|
|
2934
|
+
/** Whether the image has to fill its container height or not. */
|
|
2935
|
+
fillHeight?: boolean;
|
|
2936
|
+
/** Image URL. */
|
|
2937
|
+
image: string;
|
|
2938
|
+
/** Size variant. */
|
|
2939
|
+
size?: ImageBlockSize$1;
|
|
2940
|
+
/** Props to pass to the thumbnail (minus those already set by the ImageBlock props). */
|
|
2941
|
+
thumbnailProps?: GenericProps;
|
|
2942
|
+
/** reference to the root element */
|
|
2943
|
+
ref?: CommonRef;
|
|
2944
|
+
/** component for rendering the thumbnail */
|
|
2945
|
+
Thumbnail: any;
|
|
2946
|
+
/** component for rendering the image caption */
|
|
2947
|
+
ImageCaption: any;
|
|
2948
|
+
}
|
|
2949
|
+
type ImageBlockPropsToOverride = 'Thumbnail' | 'ImageCaption' | 'thumbnailProps';
|
|
2950
|
+
|
|
1968
2951
|
/**
|
|
1969
2952
|
* Loading attribute is not yet supported in typescript, so we need
|
|
1970
2953
|
* to add it in order to avoid a ts error.
|
|
@@ -2114,32 +3097,6 @@ interface ThumbnailProps extends GenericProps$1, ReactToJSX<ThumbnailProps$1, 'l
|
|
|
2114
3097
|
*/
|
|
2115
3098
|
declare const Thumbnail: Comp<ThumbnailProps, HTMLElement>;
|
|
2116
3099
|
|
|
2117
|
-
type ForwardedTextProps = Omit<TextProps, 'as' | 'typography' | 'color' | 'colorVariant'>;
|
|
2118
|
-
type ImageCaptionMetadata = {
|
|
2119
|
-
/** Image title to display in the caption. */
|
|
2120
|
-
title?: string;
|
|
2121
|
-
/** Props to pass to the title. */
|
|
2122
|
-
titleProps?: ForwardedTextProps;
|
|
2123
|
-
/** Image description. Can be either a string, or sanitized html. */
|
|
2124
|
-
description?: string | {
|
|
2125
|
-
__html: string;
|
|
2126
|
-
};
|
|
2127
|
-
/** Props to pass to the title. */
|
|
2128
|
-
descriptionProps?: ForwardedTextProps;
|
|
2129
|
-
/** Tag content. */
|
|
2130
|
-
tags?: ReactNode;
|
|
2131
|
-
/** Caption custom CSS style. */
|
|
2132
|
-
captionStyle?: CSSProperties;
|
|
2133
|
-
};
|
|
2134
|
-
|
|
2135
|
-
/**
|
|
2136
|
-
* Image block variants.
|
|
2137
|
-
*/
|
|
2138
|
-
declare const ImageBlockCaptionPosition: {
|
|
2139
|
-
readonly below: "below";
|
|
2140
|
-
readonly over: "over";
|
|
2141
|
-
};
|
|
2142
|
-
type ImageBlockCaptionPosition = ValueOf$1<typeof ImageBlockCaptionPosition>;
|
|
2143
3100
|
/**
|
|
2144
3101
|
* Image block sizes.
|
|
2145
3102
|
*/
|
|
@@ -2147,21 +3104,7 @@ type ImageBlockSize = Extract<Size$1, 'xl' | 'xxl'>;
|
|
|
2147
3104
|
/**
|
|
2148
3105
|
* Defines the props of the component.
|
|
2149
3106
|
*/
|
|
2150
|
-
interface ImageBlockProps extends GenericProps$1,
|
|
2151
|
-
/** Action toolbar content. */
|
|
2152
|
-
actions?: ReactNode;
|
|
2153
|
-
/** Alignment. */
|
|
2154
|
-
align?: HorizontalAlignment$1;
|
|
2155
|
-
/** Image alternative text. */
|
|
2156
|
-
alt: string;
|
|
2157
|
-
/** Caption position. */
|
|
2158
|
-
captionPosition?: ImageBlockCaptionPosition;
|
|
2159
|
-
/** Whether the image has to fill its container height or not. */
|
|
2160
|
-
fillHeight?: boolean;
|
|
2161
|
-
/** Image URL. */
|
|
2162
|
-
image: string;
|
|
2163
|
-
/** Size variant. */
|
|
2164
|
-
size?: ImageBlockSize;
|
|
3107
|
+
interface ImageBlockProps extends GenericProps$1, ReactToJSX<ImageBlockProps$1, ImageBlockPropsToOverride> {
|
|
2165
3108
|
/** Props to pass to the thumbnail (minus those already set by the ImageBlock props). */
|
|
2166
3109
|
thumbnailProps?: Omit<ThumbnailProps, 'image' | 'size' | 'theme' | 'align' | 'fillHeight'>;
|
|
2167
3110
|
}
|
|
@@ -2174,6 +3117,16 @@ interface ImageBlockProps extends GenericProps$1, HasTheme$1, ImageCaptionMetada
|
|
|
2174
3117
|
*/
|
|
2175
3118
|
declare const ImageBlock: Comp<ImageBlockProps, HTMLDivElement>;
|
|
2176
3119
|
|
|
3120
|
+
type ForwardedTextProps = Omit<TextProps, 'as' | 'typography' | 'color' | 'colorVariant'>;
|
|
3121
|
+
type ImageCaptionMetadata = Omit<ImageCaptionMetadata$1, ImageCaptionPropsToOverride> & {
|
|
3122
|
+
/** Props to pass to the title. */
|
|
3123
|
+
titleProps?: ForwardedTextProps;
|
|
3124
|
+
/** Props to pass to the title. */
|
|
3125
|
+
descriptionProps?: ForwardedTextProps;
|
|
3126
|
+
/** Caption custom CSS style. */
|
|
3127
|
+
captionStyle?: CSSProperties;
|
|
3128
|
+
};
|
|
3129
|
+
|
|
2177
3130
|
type InheritedSlideShowProps = Pick<SlideshowProps, 'slideshowControlsProps' | 'slideGroupLabel'>;
|
|
2178
3131
|
interface ZoomButtonProps {
|
|
2179
3132
|
/** Zoom in button props */
|
|
@@ -2307,19 +3260,6 @@ interface InputHelperProps extends ReactToJSX<InputHelperProps$1>, GenericProps$
|
|
|
2307
3260
|
*/
|
|
2308
3261
|
declare const InputHelper: Comp<InputHelperProps, HTMLParagraphElement>;
|
|
2309
3262
|
|
|
2310
|
-
interface InputLabelProps$1 extends HasClassName, HasTheme {
|
|
2311
|
-
/** Typography variant. */
|
|
2312
|
-
typography?: Typography;
|
|
2313
|
-
/** Label content. */
|
|
2314
|
-
children: JSXElement;
|
|
2315
|
-
/** Native htmlFor property. */
|
|
2316
|
-
htmlFor: string;
|
|
2317
|
-
/** Whether the component is required or not. */
|
|
2318
|
-
isRequired?: boolean;
|
|
2319
|
-
/** ref to the root element */
|
|
2320
|
-
ref?: CommonRef;
|
|
2321
|
-
}
|
|
2322
|
-
|
|
2323
3263
|
interface InputLabelProps extends ReactToJSX<InputLabelProps$1>, GenericProps$1 {
|
|
2324
3264
|
}
|
|
2325
3265
|
/**
|
|
@@ -2366,280 +3306,84 @@ declare const Lightbox: Comp<LightboxProps, HTMLDivElement>;
|
|
|
2366
3306
|
*/
|
|
2367
3307
|
interface LinkProps$1 extends HasClassName, HasAriaDisabled, HasDisabled {
|
|
2368
3308
|
/** Children content */
|
|
2369
|
-
children?: JSXElement;
|
|
2370
|
-
/** Color variant. */
|
|
2371
|
-
color?: ColorWithVariants;
|
|
2372
|
-
/** Lightened or darkened variant of the selected icon color. */
|
|
2373
|
-
colorVariant?: ColorVariant;
|
|
2374
|
-
/** Link href. */
|
|
2375
|
-
href?: string;
|
|
2376
|
-
/** Whether the component is disabled or not. */
|
|
2377
|
-
isDisabled?: boolean;
|
|
2378
|
-
/** Custom element/component for the link. */
|
|
2379
|
-
linkAs?: string | any;
|
|
2380
|
-
/** Click handler (framework wrappers convert onClick to handleClick). */
|
|
2381
|
-
handleClick?: (event: any) => void;
|
|
2382
|
-
/** Link target. */
|
|
2383
|
-
target?: string;
|
|
2384
|
-
/** Typography variant. */
|
|
2385
|
-
typography?: Typography;
|
|
2386
|
-
/** Element ref. */
|
|
2387
|
-
ref?: CommonRef;
|
|
2388
|
-
}
|
|
2389
|
-
|
|
2390
|
-
/**
|
|
2391
|
-
* Defines the props of the component.
|
|
2392
|
-
*/
|
|
2393
|
-
interface LinkProps extends GenericProps$1, ReactToJSX<LinkProps$1> {
|
|
2394
|
-
/**
|
|
2395
|
-
* Left icon (SVG path).
|
|
2396
|
-
* @deprecated Instead, simply nest `<Icon />` in the children
|
|
2397
|
-
*/
|
|
2398
|
-
leftIcon?: string;
|
|
2399
|
-
/** Click handler. */
|
|
2400
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
2401
|
-
/**
|
|
2402
|
-
* Right icon (SVG path).
|
|
2403
|
-
* @deprecated Instead, simply nest `<Icon />` in the children
|
|
2404
|
-
*/
|
|
2405
|
-
rightIcon?: string;
|
|
2406
|
-
/** Children */
|
|
2407
|
-
children?: React.ReactNode;
|
|
2408
|
-
}
|
|
2409
|
-
/**
|
|
2410
|
-
* Link component.
|
|
2411
|
-
*
|
|
2412
|
-
* @param props Component props.
|
|
2413
|
-
* @param ref Component ref.
|
|
2414
|
-
* @return React element.
|
|
2415
|
-
*/
|
|
2416
|
-
declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
2417
|
-
|
|
2418
|
-
/**
|
|
2419
|
-
* Defines the props of the component.
|
|
2420
|
-
*/
|
|
2421
|
-
interface LinkPreviewProps extends GenericProps$1, HasTheme$1 {
|
|
2422
|
-
/** Description. */
|
|
2423
|
-
description?: string;
|
|
2424
|
-
/** Link URL. */
|
|
2425
|
-
link: string;
|
|
2426
|
-
/** Custom react component for the link (can be used to inject react router Link). */
|
|
2427
|
-
linkAs?: 'a' | any;
|
|
2428
|
-
/** Props to pass to the link (minus those already set by the LinkPreview props). */
|
|
2429
|
-
linkProps?: Omit<LinkProps, 'color' | 'colorVariant' | 'href' | 'target'>;
|
|
2430
|
-
/** Size variant. */
|
|
2431
|
-
size?: Extract<Size$1, 'regular' | 'big'>;
|
|
2432
|
-
/** Thumbnail for the link preview. */
|
|
2433
|
-
thumbnailProps?: ThumbnailProps;
|
|
2434
|
-
/** Title. */
|
|
2435
|
-
title?: string;
|
|
2436
|
-
/** Customize the title heading tag. */
|
|
2437
|
-
titleHeading?: HeadingElement$1;
|
|
2438
|
-
}
|
|
2439
|
-
/**
|
|
2440
|
-
* LinkPreview component.
|
|
2441
|
-
*
|
|
2442
|
-
* @param props Component props.
|
|
2443
|
-
* @param ref Component ref.
|
|
2444
|
-
* @return React element.
|
|
2445
|
-
*/
|
|
2446
|
-
declare const LinkPreview: Comp<LinkPreviewProps, HTMLDivElement>;
|
|
2447
|
-
|
|
2448
|
-
type Listener = (evt: KeyboardEvent) => void;
|
|
2449
|
-
interface UseKeyboardListNavigationType {
|
|
2450
|
-
/** the current active index */
|
|
2451
|
-
activeItemIndex: number;
|
|
2452
|
-
/** callback to be used when a key is pressed. usually used with the native prop `onKeyDown` */
|
|
2453
|
-
onKeyboardNavigation: Listener;
|
|
2454
|
-
/** Resets the active index to the initial state */
|
|
2455
|
-
resetActiveIndex(): void;
|
|
2456
|
-
/** Sets the active index to a given value */
|
|
2457
|
-
setActiveItemIndex(value: SetStateAction<number>): void;
|
|
2458
|
-
}
|
|
2459
|
-
type useKeyboardListNavigationType = <I>(items: I[], ref: RefObject<HTMLElement>, onListItemSelected: (itemSelected: I) => void, onListItemNavigated?: (itemSelected: I) => void, onEnterPressed?: (itemSelected: string) => void, onBackspacePressed?: Listener, keepFocusAfterSelection?: boolean, initialIndex?: number, preventTabOnEnteredValue?: boolean) => UseKeyboardListNavigationType;
|
|
2460
|
-
|
|
2461
|
-
/** List item padding size. */
|
|
2462
|
-
type ListItemPadding = Extract<Size, 'big' | 'huge'>;
|
|
2463
|
-
/**
|
|
2464
|
-
* Defines the props of the component.
|
|
2465
|
-
*/
|
|
2466
|
-
interface ListProps$1 extends HasClassName {
|
|
2467
|
-
/** List content (should be ListItem, ListDivider, etc.). */
|
|
2468
|
-
children?: JSXElement;
|
|
2469
|
-
/** Item padding size. */
|
|
2470
|
-
itemPadding?: ListItemPadding;
|
|
2471
|
-
/** ref to the root element */
|
|
2472
|
-
ref?: CommonRef;
|
|
2473
|
-
}
|
|
2474
|
-
|
|
2475
|
-
/**
|
|
2476
|
-
* Defines the props of the component.
|
|
2477
|
-
*/
|
|
2478
|
-
interface ListProps extends GenericProps$1, ReactToJSX<ListProps$1> {
|
|
2479
|
-
/**
|
|
2480
|
-
* Whether the list items are clickable.
|
|
2481
|
-
* @deprecated not needed anymore.
|
|
2482
|
-
*/
|
|
2483
|
-
isClickable?: boolean;
|
|
2484
|
-
/** Tab index of the list. */
|
|
2485
|
-
tabIndex?: number;
|
|
2486
|
-
/** @deprecated not supported since v4.0.0 */
|
|
2487
|
-
onListItemSelected?(key: Key, index: number, evt: SyntheticEvent): void;
|
|
2488
|
-
}
|
|
2489
|
-
declare const List: Comp<ListProps, HTMLUListElement> & {
|
|
2490
|
-
useKeyboardListNavigation: useKeyboardListNavigationType;
|
|
2491
|
-
};
|
|
2492
|
-
|
|
2493
|
-
/**
|
|
2494
|
-
* ListItemAction props.
|
|
2495
|
-
*/
|
|
2496
|
-
type ListItemActionProps<E extends ClickableElement = 'button'> = RawClickableProps<E> & HasClassName;
|
|
2497
|
-
|
|
2498
|
-
/** ListItem size variants. */
|
|
2499
|
-
type ListItemSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
2500
|
-
/**
|
|
2501
|
-
* Defines the props of the component.
|
|
2502
|
-
*/
|
|
2503
|
-
interface ListItemProps$1 extends HasClassName, HasAriaDisabled {
|
|
2504
|
-
/** A component to be rendered after the content. */
|
|
2505
|
-
after?: JSXElement;
|
|
2506
|
-
/** A component to be rendered before the content. */
|
|
2507
|
-
before?: JSXElement;
|
|
2508
|
-
/** Content. */
|
|
2509
|
-
children?: JSXElement;
|
|
2510
|
-
/** Whether the list item should be highlighted or not. */
|
|
2511
|
-
isHighlighted?: boolean;
|
|
2512
|
-
/** Whether the component is selected or not. */
|
|
2513
|
-
isSelected?: boolean;
|
|
2514
|
-
/** Whether link/button is disabled or not. */
|
|
2515
|
-
isDisabled?: boolean;
|
|
2516
|
-
/** Custom component for the link (can be used to inject router Link). */
|
|
2517
|
-
linkAs?: 'a' | any;
|
|
2518
|
-
/** Props that will be passed on to the Link. */
|
|
2519
|
-
linkProps?: GenericProps;
|
|
2520
|
-
/** Reference to the link element. */
|
|
2521
|
-
linkRef?: CommonRef;
|
|
2522
|
-
/** Size variant. */
|
|
2523
|
-
size?: ListItemSize;
|
|
2524
|
-
/** ref to the root <li> element */
|
|
2525
|
-
ref?: CommonRef;
|
|
2526
|
-
/** On click callback. */
|
|
2527
|
-
handleClick?: (event: any) => void;
|
|
2528
|
-
}
|
|
2529
|
-
type ListItemPropsToOverride = 'after' | 'before' | 'children' | 'handleClick';
|
|
2530
|
-
|
|
2531
|
-
/**
|
|
2532
|
-
* Defines the props of the component.
|
|
2533
|
-
*/
|
|
2534
|
-
interface ListItemProps extends GenericProps$1, HasAriaDisabled$1, ReactToJSX<ListItemProps$1, ListItemPropsToOverride> {
|
|
2535
|
-
/** A component to be rendered after the content. */
|
|
2536
|
-
after?: ReactNode;
|
|
2537
|
-
/** A component to be rendered before the content. */
|
|
2538
|
-
before?: ReactNode;
|
|
2539
|
-
/** Content. */
|
|
2540
|
-
children: string | ReactNode;
|
|
2541
|
-
/** Reference to the <li> element. */
|
|
2542
|
-
listItemRef?: Ref<HTMLLIElement>;
|
|
2543
|
-
/** Reference to the link element. */
|
|
2544
|
-
linkRef?: Ref<HTMLAnchorElement>;
|
|
2545
|
-
/** On click callback. */
|
|
2546
|
-
onClick?(event: SyntheticEvent): void;
|
|
2547
|
-
/** @alias onClick */
|
|
2548
|
-
onItemSelected?(evt: SyntheticEvent): void;
|
|
2549
|
-
}
|
|
2550
|
-
/**
|
|
2551
|
-
* ListItem component with Action sub-component.
|
|
2552
|
-
*/
|
|
2553
|
-
declare const ListItem: Comp<ListItemProps, HTMLLIElement> & {
|
|
2554
|
-
/** Sub-component that renders the default action (button or link) for the action area pattern. */
|
|
2555
|
-
Action: (<E extends React$1.ElementType = "button">(props: React$1.PropsWithoutRef<React$1.ComponentProps<E>> & {
|
|
2556
|
-
as?: E | undefined;
|
|
2557
|
-
} & GenericProps$1 & ReactToJSX<ListItemActionProps, "children"> & _lumx_core_js_types.HasRequiredLinkHref<E> & {
|
|
2558
|
-
children: ReactNode;
|
|
2559
|
-
onClick?(evt: SyntheticEvent): void;
|
|
2560
|
-
} & React$1.ComponentProps<E> & {
|
|
2561
|
-
ref?: ComponentRef<E> | undefined;
|
|
2562
|
-
}) => React.JSX.Element) & {
|
|
2563
|
-
displayName: string;
|
|
2564
|
-
className: string;
|
|
2565
|
-
defaultProps: Partial<ListItemActionProps<"button">>;
|
|
2566
|
-
};
|
|
2567
|
-
};
|
|
2568
|
-
|
|
2569
|
-
/**
|
|
2570
|
-
* Defines the props of the component.
|
|
2571
|
-
*/
|
|
2572
|
-
interface ListDividerProps$1 extends HasClassName {
|
|
2573
|
-
/** ref to the root element */
|
|
2574
|
-
ref?: CommonRef;
|
|
2575
|
-
}
|
|
2576
|
-
|
|
2577
|
-
/**
|
|
2578
|
-
* Defines the props of the component.
|
|
2579
|
-
*/
|
|
2580
|
-
type ListDividerProps = GenericProps$1 & ReactToJSX<ListDividerProps$1>;
|
|
2581
|
-
/**
|
|
2582
|
-
* ListDivider component.
|
|
2583
|
-
* Purely decorative, consider a `ListSection` with label for a better list structure.
|
|
2584
|
-
*
|
|
2585
|
-
* @param props Component props.
|
|
2586
|
-
* @param ref Component ref.
|
|
2587
|
-
* @return React element.
|
|
2588
|
-
*/
|
|
2589
|
-
declare const ListDivider: Comp<ListDividerProps, HTMLLIElement>;
|
|
2590
|
-
|
|
2591
|
-
/**
|
|
2592
|
-
* Defines the props of the component.
|
|
2593
|
-
*/
|
|
2594
|
-
interface ListSectionProps$1 extends HasClassName {
|
|
2595
|
-
/** Section label displayed as the group title. */
|
|
2596
|
-
label?: string;
|
|
2597
|
-
/** Section icon */
|
|
2598
|
-
icon?: string;
|
|
2599
|
-
/** List items (should be ListItem, ListDivider, etc.). */
|
|
2600
|
-
children: JSXElement;
|
|
2601
|
-
/** Items wrapper forwarded props */
|
|
2602
|
-
itemsWrapperProps?: Record<string, any>;
|
|
2603
|
-
/** ID for the label element (used for aria-labelledby). */
|
|
2604
|
-
id: string;
|
|
2605
|
-
/** ref to the root element */
|
|
3309
|
+
children?: JSXElement;
|
|
3310
|
+
/** Color variant. */
|
|
3311
|
+
color?: ColorWithVariants;
|
|
3312
|
+
/** Lightened or darkened variant of the selected icon color. */
|
|
3313
|
+
colorVariant?: ColorVariant;
|
|
3314
|
+
/** Link href. */
|
|
3315
|
+
href?: string;
|
|
3316
|
+
/** Whether the component is disabled or not. */
|
|
3317
|
+
isDisabled?: boolean;
|
|
3318
|
+
/** Custom element/component for the link. */
|
|
3319
|
+
linkAs?: string | any;
|
|
3320
|
+
/** Click handler (framework wrappers convert onClick to handleClick). */
|
|
3321
|
+
handleClick?: (event: any) => void;
|
|
3322
|
+
/** Link target. */
|
|
3323
|
+
target?: string;
|
|
3324
|
+
/** Typography variant. */
|
|
3325
|
+
typography?: Typography;
|
|
3326
|
+
/** Element ref. */
|
|
2606
3327
|
ref?: CommonRef;
|
|
2607
|
-
/** Text component to use for rendering the label */
|
|
2608
|
-
Text: (props: TextProps$1 & Record<string, any>) => any;
|
|
2609
3328
|
}
|
|
2610
3329
|
|
|
2611
3330
|
/**
|
|
2612
3331
|
* Defines the props of the component.
|
|
2613
3332
|
*/
|
|
2614
|
-
interface
|
|
2615
|
-
/**
|
|
2616
|
-
|
|
3333
|
+
interface LinkProps extends GenericProps$1, ReactToJSX<LinkProps$1> {
|
|
3334
|
+
/**
|
|
3335
|
+
* Left icon (SVG path).
|
|
3336
|
+
* @deprecated Instead, simply nest `<Icon />` in the children
|
|
3337
|
+
*/
|
|
3338
|
+
leftIcon?: string;
|
|
3339
|
+
/** Click handler. */
|
|
3340
|
+
onClick?: (event: React.MouseEvent) => void;
|
|
3341
|
+
/**
|
|
3342
|
+
* Right icon (SVG path).
|
|
3343
|
+
* @deprecated Instead, simply nest `<Icon />` in the children
|
|
3344
|
+
*/
|
|
3345
|
+
rightIcon?: string;
|
|
3346
|
+
/** Children */
|
|
3347
|
+
children?: React.ReactNode;
|
|
2617
3348
|
}
|
|
2618
3349
|
/**
|
|
2619
|
-
*
|
|
3350
|
+
* Link component.
|
|
2620
3351
|
*
|
|
2621
3352
|
* @param props Component props.
|
|
2622
3353
|
* @param ref Component ref.
|
|
2623
3354
|
* @return React element.
|
|
2624
3355
|
*/
|
|
2625
|
-
declare const
|
|
3356
|
+
declare const Link: Comp<LinkProps, HTMLButtonElement | HTMLAnchorElement>;
|
|
2626
3357
|
|
|
2627
3358
|
/**
|
|
2628
3359
|
* Defines the props of the component.
|
|
2629
3360
|
*/
|
|
2630
|
-
interface
|
|
2631
|
-
/**
|
|
2632
|
-
|
|
3361
|
+
interface LinkPreviewProps extends GenericProps$1, HasTheme$1 {
|
|
3362
|
+
/** Description. */
|
|
3363
|
+
description?: string;
|
|
3364
|
+
/** Link URL. */
|
|
3365
|
+
link: string;
|
|
3366
|
+
/** Custom react component for the link (can be used to inject react router Link). */
|
|
3367
|
+
linkAs?: 'a' | any;
|
|
3368
|
+
/** Props to pass to the link (minus those already set by the LinkPreview props). */
|
|
3369
|
+
linkProps?: Omit<LinkProps, 'color' | 'colorVariant' | 'href' | 'target'>;
|
|
3370
|
+
/** Size variant. */
|
|
3371
|
+
size?: Extract<Size$1, 'regular' | 'big'>;
|
|
3372
|
+
/** Thumbnail for the link preview. */
|
|
3373
|
+
thumbnailProps?: ThumbnailProps;
|
|
3374
|
+
/** Title. */
|
|
3375
|
+
title?: string;
|
|
3376
|
+
/** Customize the title heading tag. */
|
|
3377
|
+
titleHeading?: HeadingElement$1;
|
|
2633
3378
|
}
|
|
2634
3379
|
/**
|
|
2635
|
-
*
|
|
2636
|
-
* @deprecated ListSubheader produces improper list structure. use ListSection instead.
|
|
3380
|
+
* LinkPreview component.
|
|
2637
3381
|
*
|
|
2638
3382
|
* @param props Component props.
|
|
2639
3383
|
* @param ref Component ref.
|
|
2640
3384
|
* @return React element.
|
|
2641
3385
|
*/
|
|
2642
|
-
declare const
|
|
3386
|
+
declare const LinkPreview: Comp<LinkPreviewProps, HTMLDivElement>;
|
|
2643
3387
|
|
|
2644
3388
|
/**
|
|
2645
3389
|
* Defines the props of the component.
|
|
@@ -2682,7 +3426,20 @@ declare const Message: Comp<MessageProps, HTMLDivElement>;
|
|
|
2682
3426
|
/**
|
|
2683
3427
|
* Defines the props of the component.
|
|
2684
3428
|
*/
|
|
2685
|
-
interface MosaicProps extends
|
|
3429
|
+
interface MosaicProps$1 extends HasClassName, HasTheme {
|
|
3430
|
+
/** Thumbnails. */
|
|
3431
|
+
thumbnails: any[];
|
|
3432
|
+
/** On image click callback. */
|
|
3433
|
+
handleClick?(index: number): void;
|
|
3434
|
+
Thumbnail: any;
|
|
3435
|
+
ref?: CommonRef;
|
|
3436
|
+
}
|
|
3437
|
+
type MosaicPropsToOverride = 'Thumbnail' | 'thumbnails';
|
|
3438
|
+
|
|
3439
|
+
/**
|
|
3440
|
+
* Defines the props of the component.
|
|
3441
|
+
*/
|
|
3442
|
+
interface MosaicProps extends GenericProps$1, ReactToJSX<MosaicProps$1, MosaicPropsToOverride> {
|
|
2686
3443
|
/** Thumbnails. */
|
|
2687
3444
|
thumbnails: ThumbnailProps[];
|
|
2688
3445
|
/** On image click callback. */
|
|
@@ -3955,149 +4712,6 @@ interface TextProps extends ReactToJSX<TextProps$1>, GenericProps$1 {
|
|
|
3955
4712
|
*/
|
|
3956
4713
|
declare const Text: Comp<TextProps, HTMLElement>;
|
|
3957
4714
|
|
|
3958
|
-
/**
|
|
3959
|
-
* Defines the props of the component.
|
|
3960
|
-
*/
|
|
3961
|
-
interface TextFieldProps$1 extends HasClassName, HasTheme, HasAriaDisabled, HasDisabled {
|
|
3962
|
-
/** Chip Group to be rendered before the main text input. */
|
|
3963
|
-
chips?: JSXElement;
|
|
3964
|
-
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
3965
|
-
clearButtonProps?: GenericProps;
|
|
3966
|
-
/** Error message. */
|
|
3967
|
-
error?: string | JSXElement;
|
|
3968
|
-
/** Whether we force the focus style or not. */
|
|
3969
|
-
forceFocusStyle?: boolean;
|
|
3970
|
-
/** Whether the text field is displayed with error style or not. */
|
|
3971
|
-
hasError?: boolean;
|
|
3972
|
-
/** Additional element to put at the end of the text field. */
|
|
3973
|
-
afterElement?: JSXElement;
|
|
3974
|
-
/** Helper text. */
|
|
3975
|
-
helper?: string | JSXElement;
|
|
3976
|
-
/** Icon (SVG path). */
|
|
3977
|
-
icon?: string;
|
|
3978
|
-
/** Native input id property (generated if not provided to link the label element). */
|
|
3979
|
-
id?: string;
|
|
3980
|
-
/** Generated helper id for accessibility attributes. */
|
|
3981
|
-
helperId?: string;
|
|
3982
|
-
/** Generated error id for accessibility attributes. */
|
|
3983
|
-
errorId?: string;
|
|
3984
|
-
/** Whether the component is required or not. */
|
|
3985
|
-
isRequired?: boolean;
|
|
3986
|
-
/** Whether the text field is displayed with valid style or not. */
|
|
3987
|
-
isValid?: boolean;
|
|
3988
|
-
/** Label text. */
|
|
3989
|
-
label?: string;
|
|
3990
|
-
/** Additional label props. */
|
|
3991
|
-
labelProps?: InputLabelProps$1;
|
|
3992
|
-
/** Max string length the input accepts (constrains the input and displays a character counter). */
|
|
3993
|
-
maxLength?: number;
|
|
3994
|
-
/** Whether the text field is a textarea or an input. */
|
|
3995
|
-
multiline?: boolean;
|
|
3996
|
-
/** Placeholder text. */
|
|
3997
|
-
placeholder?: string;
|
|
3998
|
-
/** Reference to the wrapper. */
|
|
3999
|
-
textFieldRef?: CommonRef;
|
|
4000
|
-
/** Value. */
|
|
4001
|
-
value?: string;
|
|
4002
|
-
/** Whether any part is disabled. */
|
|
4003
|
-
isAnyDisabled?: boolean;
|
|
4004
|
-
/** The input element (input or textarea). */
|
|
4005
|
-
input: JSXElement;
|
|
4006
|
-
/** Whether the input is focused. */
|
|
4007
|
-
isFocus?: boolean;
|
|
4008
|
-
/** IconButton component. */
|
|
4009
|
-
IconButton: (props: Record<string, any>) => any;
|
|
4010
|
-
/** Ref to the component root. */
|
|
4011
|
-
ref?: CommonRef;
|
|
4012
|
-
}
|
|
4013
|
-
type TextFieldPropsToOverride = 'input' | 'IconButton' | 'labelProps' | 'textFieldRef' | 'clearButtonProps' | 'helperId' | 'errorId' | 'isAnyDisabled' | 'isFocus';
|
|
4014
|
-
|
|
4015
|
-
/**
|
|
4016
|
-
* Defines the props of the component.
|
|
4017
|
-
*/
|
|
4018
|
-
interface TextFieldProps extends GenericProps$1, ReactToJSX<TextFieldProps$1, TextFieldPropsToOverride> {
|
|
4019
|
-
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
4020
|
-
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
4021
|
-
/** Reference to the <input> or <textarea> element. */
|
|
4022
|
-
inputRef?: Ref<HTMLInputElement | HTMLTextAreaElement>;
|
|
4023
|
-
/** Additional label props. */
|
|
4024
|
-
labelProps?: InputLabelProps;
|
|
4025
|
-
/** Minimum number of rows displayed in multiline mode (requires `multiline` to be enabled). */
|
|
4026
|
-
minimumRows?: number;
|
|
4027
|
-
/** Native input name property. */
|
|
4028
|
-
name?: string;
|
|
4029
|
-
/** Reference to the wrapper. */
|
|
4030
|
-
textFieldRef?: Ref<HTMLDivElement>;
|
|
4031
|
-
/** Native input type (only when `multiline` is disabled). */
|
|
4032
|
-
type?: React.ComponentProps<'input'>['type'];
|
|
4033
|
-
/** On blur callback. */
|
|
4034
|
-
onBlur?(event: React.FocusEvent): void;
|
|
4035
|
-
/** On change callback. */
|
|
4036
|
-
onChange(value: string, name?: string, event?: SyntheticEvent): void;
|
|
4037
|
-
/** On clear callback. */
|
|
4038
|
-
onClear?(event?: SyntheticEvent): void;
|
|
4039
|
-
/** On focus callback. */
|
|
4040
|
-
onFocus?(event: React.FocusEvent): void;
|
|
4041
|
-
}
|
|
4042
|
-
/**
|
|
4043
|
-
* TextField component.
|
|
4044
|
-
*
|
|
4045
|
-
* @param props Component props.
|
|
4046
|
-
* @param ref Component ref.
|
|
4047
|
-
* @return React element.
|
|
4048
|
-
*/
|
|
4049
|
-
declare const TextField: Comp<TextFieldProps, HTMLDivElement>;
|
|
4050
|
-
|
|
4051
|
-
/**
|
|
4052
|
-
* Defines the props of the component.
|
|
4053
|
-
*/
|
|
4054
|
-
interface RawInputTextProps$1 extends HasTheme, HasClassName {
|
|
4055
|
-
value?: string;
|
|
4056
|
-
type?: HTMLInputTypeAttribute;
|
|
4057
|
-
name?: string | undefined;
|
|
4058
|
-
ref?: CommonRef;
|
|
4059
|
-
handleChange?: (value: string, name?: string, event?: any) => void;
|
|
4060
|
-
}
|
|
4061
|
-
|
|
4062
|
-
type NativeInputProps = Omit<ComponentProps<'input'>, 'value' | 'onChange'>;
|
|
4063
|
-
/**
|
|
4064
|
-
* Defines the props of the component.
|
|
4065
|
-
*/
|
|
4066
|
-
interface RawInputTextProps extends NativeInputProps, ReactToJSX<RawInputTextProps$1> {
|
|
4067
|
-
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
4068
|
-
}
|
|
4069
|
-
|
|
4070
|
-
/**
|
|
4071
|
-
* Raw input text component
|
|
4072
|
-
* (input element without any decoration)
|
|
4073
|
-
*/
|
|
4074
|
-
declare const RawInputText: Comp<RawInputTextProps, HTMLInputElement>;
|
|
4075
|
-
|
|
4076
|
-
/**
|
|
4077
|
-
* Defines the props of the component.
|
|
4078
|
-
*/
|
|
4079
|
-
interface RawInputTextareaProps$1 extends HasTheme, HasClassName {
|
|
4080
|
-
value?: string;
|
|
4081
|
-
rows?: number;
|
|
4082
|
-
name?: string | undefined;
|
|
4083
|
-
ref?: CommonRef;
|
|
4084
|
-
handleChange?: (value: string, name?: string, event?: any) => void;
|
|
4085
|
-
}
|
|
4086
|
-
|
|
4087
|
-
type NativeTextareaProps = Omit<ComponentProps<'textarea'>, 'value' | 'onChange'>;
|
|
4088
|
-
/**
|
|
4089
|
-
* Defines the props of the component.
|
|
4090
|
-
*/
|
|
4091
|
-
interface RawInputTextareaProps extends NativeTextareaProps, ReactToJSX<RawInputTextareaProps$1, 'rows'> {
|
|
4092
|
-
minimumRows?: number;
|
|
4093
|
-
onChange?: (value: string, name?: string, event?: SyntheticEvent) => void;
|
|
4094
|
-
}
|
|
4095
|
-
/**
|
|
4096
|
-
* Raw input text area component
|
|
4097
|
-
* (textarea element without any decoration)
|
|
4098
|
-
*/
|
|
4099
|
-
declare const RawInputTextarea: Comp<Omit<RawInputTextareaProps, "type">, HTMLTextAreaElement>;
|
|
4100
|
-
|
|
4101
4715
|
declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: { width, height } }: ThumbnailProps, element: HTMLImageElement | undefined, isLoaded: boolean) => CSSProperties;
|
|
4102
4716
|
|
|
4103
4717
|
/**
|
|
@@ -4134,44 +4748,6 @@ interface ToolbarProps extends GenericProps$1, ReactToJSX<ToolbarProps$1> {
|
|
|
4134
4748
|
*/
|
|
4135
4749
|
declare const Toolbar: Comp<ToolbarProps, HTMLDivElement>;
|
|
4136
4750
|
|
|
4137
|
-
declare const ARIA_LINK_MODES: readonly ["aria-describedby", "aria-labelledby"];
|
|
4138
|
-
|
|
4139
|
-
/** Position of the tooltip relative to the anchor element. */
|
|
4140
|
-
type TooltipPlacement = 'top' | 'right' | 'bottom' | 'left';
|
|
4141
|
-
/**
|
|
4142
|
-
* Framework-agnostic tooltip props (shared between React and Vue wrappers).
|
|
4143
|
-
*/
|
|
4144
|
-
interface TooltipProps$1 extends HasCloseMode {
|
|
4145
|
-
/** Delay (in ms) before closing the tooltip. */
|
|
4146
|
-
delay?: number;
|
|
4147
|
-
/** Whether the tooltip is displayed even without the mouse hovering the anchor. */
|
|
4148
|
-
forceOpen?: boolean;
|
|
4149
|
-
/** Label text. */
|
|
4150
|
-
label?: string | null | false;
|
|
4151
|
-
/** Placement of the tooltip relative to the anchor. */
|
|
4152
|
-
placement?: TooltipPlacement;
|
|
4153
|
-
/** Choose how the tooltip text should link to the anchor */
|
|
4154
|
-
ariaLinkMode?: (typeof ARIA_LINK_MODES)[number];
|
|
4155
|
-
/** Z-index for the tooltip */
|
|
4156
|
-
zIndex?: number;
|
|
4157
|
-
}
|
|
4158
|
-
|
|
4159
|
-
/**
|
|
4160
|
-
* Defines the props of the component.
|
|
4161
|
-
*/
|
|
4162
|
-
interface TooltipProps extends GenericProps$1, TooltipProps$1 {
|
|
4163
|
-
/** Anchor (element on which we activate the tooltip). */
|
|
4164
|
-
children: ReactNode;
|
|
4165
|
-
}
|
|
4166
|
-
/**
|
|
4167
|
-
* Tooltip component.
|
|
4168
|
-
*
|
|
4169
|
-
* @param props Component props.
|
|
4170
|
-
* @param ref Component ref.
|
|
4171
|
-
* @return React element.
|
|
4172
|
-
*/
|
|
4173
|
-
declare const Tooltip: Comp<TooltipProps, HTMLDivElement>;
|
|
4174
|
-
|
|
4175
4751
|
/**
|
|
4176
4752
|
* Uploader variants.
|
|
4177
4753
|
*/
|
|
@@ -4392,5 +4968,5 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
4392
4968
|
/** Get the theme in the current context. */
|
|
4393
4969
|
declare function useTheme(): ThemeContextValue;
|
|
4394
4970
|
|
|
4395
|
-
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME, COMPONENT_NAME, Checkbox, Chip, ChipGroup, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableCellVariant as TableCellVariantType, TableHeader, TableRow, Text, TextField, ThOrder, ThOrder as ThOrderType, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
4396
|
-
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GenericBlockSectionProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSectionProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectMultipleProps, SelectProps, SelectionChipGroupProps, SideNavigationItemProps, SideNavigationProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesProps, SlideshowControlsProps, SlideshowItemProps, SlideshowProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabProviderProps, TableBodyProps, TableCellProps, TableHeaderProps, TableProps, TableRowProps, TextFieldProps, TextProps, ThumbnailProps, ThumbnailSize, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
|
|
4971
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME, COMPONENT_NAME, Checkbox, Chip, ChipGroup, Combobox, CommentBlock, CommentBlockVariant, DEFAULT_PROPS, DatePicker, DatePickerControlled, DatePickerField, Dialog, Divider, DragHandle, Dropdown, ExpansionPanel, Flag, FlexBox, GenericBlock, GenericBlockGapSize, Grid, GridColumn, GridItem, Heading, HeadingLevelProvider, Icon, IconButton, ImageBlock, ImageBlockCaptionPosition, ImageLightbox, InlineList, InputHelper, InputLabel, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, ListSection, ListSubheader, Message, Mosaic, Navigation, Notification, Placement, Popover, PopoverDialog, PostBlock, Progress, ProgressCircular, ProgressLinear, ProgressTracker, ProgressTrackerProvider, ProgressTrackerStep, ProgressTrackerStepPanel, ProgressVariant, RadioButton, RadioGroup, RawInputText, RawInputTextarea, Select, SelectMultiple, SelectMultipleField, SelectVariant, SelectionChipGroup, SideNavigation, SideNavigationItem, SkeletonCircle, SkeletonRectangle, SkeletonRectangleVariant, SkeletonTypography, Slider, Slides, Slideshow, SlideshowControls, SlideshowItem, Switch, Tab, TabList, TabListLayout, TabPanel, TabProvider, Table, TableBody, TableCell, TableCellVariant, TableCellVariant as TableCellVariantType, TableHeader, TableRow, Text, TextField, ThOrder, ThOrder as ThOrderType, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
4972
|
+
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, ComboboxButtonProps, ComboboxInputProps, ComboboxListProps, ComboboxOptionActionProps, ComboboxOptionMoreInfoProps, ComboboxOptionProps, ComboboxOptionSkeletonProps, ComboboxPopoverComponentProps, ComboboxPopoverProps, ComboboxProviderProps, ComboboxSectionProps, ComboboxStateProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GenericBlockSectionProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSectionProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, NavigationProps, NotificationProps, Offset, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectMultipleProps, SelectProps, SelectionChipGroupProps, SideNavigationItemProps, SideNavigationProps, SkeletonCircleProps, SkeletonRectangleProps, SkeletonTypographyProps, SliderProps, SlidesProps, SlideshowControlsProps, SlideshowItemProps, SlideshowProps, SwitchProps, TabListProps, TabPanelProps, TabProps, TabProviderProps, TableBodyProps, TableCellProps, TableHeaderProps, TableProps, TableRowProps, TextFieldProps, TextProps, ThumbnailProps, ThumbnailSize, ToolbarProps, TooltipPlacement, TooltipProps, UploaderProps, UploaderSize, UserBlockProps, UserBlockSize };
|