@lumx/react 4.3.2-alpha.2 → 4.3.2-alpha.21
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/CONTRIBUTING.md +0 -12
- package/_internal/CzTdCnO5.js +1375 -0
- package/_internal/CzTdCnO5.js.map +1 -0
- package/index.d.ts +651 -79
- package/index.js +1711 -727
- package/index.js.map +1 -1
- package/package.json +18 -3
- package/utils/index.d.ts +1 -2
- package/utils/index.js +5 -1219
- package/utils/index.js.map +1 -1
- package/_internal/DpdvhbTO.js +0 -159
- package/_internal/DpdvhbTO.js.map +0 -1
package/index.d.ts
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { Kind as Kind$1, HorizontalAlignment as HorizontalAlignment$1, Size as Size$1, ColorPalette as ColorPalette$1, Theme as Theme$1, Orientation as Orientation$1, Alignment as Alignment$1, AspectRatio as AspectRatio$1, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$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, HasTheme as HasTheme$1, ValueOf as ValueOf$1, HasAriaDisabled as HasAriaDisabled$1,
|
|
4
|
+
import { GenericProps, HasTheme as HasTheme$1, ValueOf as ValueOf$1, HasAriaDisabled as HasAriaDisabled$1, LumxClassName as LumxClassName$1, HasCloseMode, HasClassName as HasClassName$1, JSXElement as JSXElement$1, CommonRef as CommonRef$1, Falsy, HeadingElement as HeadingElement$1, HasRequiredLinkHref, HasAriaLabelOrLabelledBy } 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, AriaAttributes, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
|
|
7
|
+
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, ReactText, RefObject, CSSProperties, ImgHTMLAttributes, SetStateAction, Key, ElementType, ComponentProps } from 'react';
|
|
8
8
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
9
|
-
import { Selector } from '@lumx/core/js/types/Selector';
|
|
10
9
|
|
|
11
10
|
/** LumX Component Type. */
|
|
12
11
|
type Comp<P, T = HTMLElement> = {
|
|
@@ -294,32 +293,6 @@ interface AvatarProps extends GenericProps, HasTheme$1 {
|
|
|
294
293
|
*/
|
|
295
294
|
declare const Avatar: Comp<AvatarProps, HTMLDivElement>;
|
|
296
295
|
|
|
297
|
-
/**
|
|
298
|
-
* Defines the props of the component.
|
|
299
|
-
*/
|
|
300
|
-
interface BadgeProps extends GenericProps {
|
|
301
|
-
/** Badge content. */
|
|
302
|
-
children?: ReactNode;
|
|
303
|
-
/** Color variant. */
|
|
304
|
-
color?: ColorPalette$1;
|
|
305
|
-
}
|
|
306
|
-
/**
|
|
307
|
-
* Badge component.
|
|
308
|
-
*
|
|
309
|
-
* @param props Component props.
|
|
310
|
-
* @param ref Component ref.
|
|
311
|
-
* @return React element.
|
|
312
|
-
*/
|
|
313
|
-
declare const Badge: Comp<BadgeProps, HTMLDivElement>;
|
|
314
|
-
|
|
315
|
-
interface BadgeWrapperProps extends GenericProps {
|
|
316
|
-
/** Badge. */
|
|
317
|
-
badge: ReactElement;
|
|
318
|
-
/** Node to display the badge on */
|
|
319
|
-
children: ReactNode;
|
|
320
|
-
}
|
|
321
|
-
declare const BadgeWrapper: Comp<BadgeWrapperProps, HTMLDivElement>;
|
|
322
|
-
|
|
323
296
|
/**
|
|
324
297
|
* Alignments.
|
|
325
298
|
*/
|
|
@@ -567,6 +540,62 @@ interface HasDisabled {
|
|
|
567
540
|
disabled?: boolean;
|
|
568
541
|
}
|
|
569
542
|
|
|
543
|
+
type FunctionSelector<TObject, TValue> = (o: TObject) => TValue;
|
|
544
|
+
type FieldSelector<TObject, TValue> = keyof {
|
|
545
|
+
[TKey in keyof TObject as TObject[TKey] extends TValue ? TKey : never]: TObject[TKey];
|
|
546
|
+
};
|
|
547
|
+
/**
|
|
548
|
+
* Value selector on an object
|
|
549
|
+
* - either via an object key
|
|
550
|
+
* - or a selector function
|
|
551
|
+
*/
|
|
552
|
+
type Selector<TObject, TValue = string> = FieldSelector<TObject, TValue> | FunctionSelector<TObject, TValue>;
|
|
553
|
+
|
|
554
|
+
/**
|
|
555
|
+
* Defines the props of the component.
|
|
556
|
+
*/
|
|
557
|
+
interface BadgeProps$1 extends HasClassName {
|
|
558
|
+
/** Badge content. */
|
|
559
|
+
children?: JSXElement;
|
|
560
|
+
/** Color variant. */
|
|
561
|
+
color?: ColorPalette;
|
|
562
|
+
/** reference to the root element */
|
|
563
|
+
ref?: CommonRef;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Defines the props of the component.
|
|
568
|
+
*/
|
|
569
|
+
interface BadgeProps extends Omit<BadgeProps$1, 'children'>, GenericProps {
|
|
570
|
+
/** Badge content. */
|
|
571
|
+
children?: ReactNode;
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Badge component.
|
|
575
|
+
*
|
|
576
|
+
* @param props Component props.
|
|
577
|
+
* @param ref Component ref.
|
|
578
|
+
* @return React element.
|
|
579
|
+
*/
|
|
580
|
+
declare const Badge: Comp<BadgeProps, HTMLDivElement>;
|
|
581
|
+
|
|
582
|
+
interface BadgeWrapperProps$1 extends HasClassName {
|
|
583
|
+
/** Badge element to display */
|
|
584
|
+
badge?: JSXElement;
|
|
585
|
+
/** Content to wrap with badge */
|
|
586
|
+
children?: JSXElement;
|
|
587
|
+
/** Ref forwarding */
|
|
588
|
+
ref?: CommonRef;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
interface BadgeWrapperProps extends GenericProps, Omit<BadgeWrapperProps$1, 'children' | 'badge'> {
|
|
592
|
+
/** Badge element to display */
|
|
593
|
+
badge: ReactElement;
|
|
594
|
+
/** Content to wrap with badge */
|
|
595
|
+
children: ReactNode;
|
|
596
|
+
}
|
|
597
|
+
declare const BadgeWrapper: Comp<BadgeWrapperProps, HTMLDivElement>;
|
|
598
|
+
|
|
570
599
|
interface BaseClickableProps extends HasDisabled, HasAriaDisabled {
|
|
571
600
|
children?: JSXElement;
|
|
572
601
|
onClick?: (event?: any) => void;
|
|
@@ -635,11 +664,11 @@ interface ButtonProps$1 extends BaseButtonProps {
|
|
|
635
664
|
/**
|
|
636
665
|
* Component display name.
|
|
637
666
|
*/
|
|
638
|
-
declare const COMPONENT_NAME = "Button";
|
|
667
|
+
declare const COMPONENT_NAME$1 = "Button";
|
|
639
668
|
/**
|
|
640
669
|
* Component default class name and class prefix.
|
|
641
670
|
*/
|
|
642
|
-
declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
|
|
671
|
+
declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME$1>;
|
|
643
672
|
/**
|
|
644
673
|
* Component default props.
|
|
645
674
|
*/
|
|
@@ -879,6 +908,423 @@ interface SelectionChipGroupProps<O> extends GenericProps {
|
|
|
879
908
|
*/
|
|
880
909
|
declare const SelectionChipGroup: <O>({ onChange, value, getOptionId, getOptionName, inputRef, inputLabel, renderChip, theme, isDisabled, chipTooltipLabel, label, ...forwardedProps }: SelectionChipGroupProps<O>) => react_jsx_runtime.JSX.Element;
|
|
881
910
|
|
|
911
|
+
/**
|
|
912
|
+
* The source of the combobox option selection
|
|
913
|
+
* It could either be on click / touch or keyboard selection
|
|
914
|
+
*/
|
|
915
|
+
type ComboboxOptionSelectEventSource = 'keyboard' | 'click';
|
|
916
|
+
type ComboboxSelectionType = 'single' | 'multiple';
|
|
917
|
+
type BaseLoadingStatus = 'loading' | 'loadingMore' | 'idle' | 'error' | 'debouncing' | 'filtering' | 'empty';
|
|
918
|
+
/**
|
|
919
|
+
* Options related types
|
|
920
|
+
*/
|
|
921
|
+
/** All possible values a combobox option can have */
|
|
922
|
+
type BaseComboboxOptionProps<O = any> = {
|
|
923
|
+
/**
|
|
924
|
+
* A unique id to track the option
|
|
925
|
+
*/
|
|
926
|
+
id: string;
|
|
927
|
+
/**
|
|
928
|
+
* Whether the current input value should filter this option.
|
|
929
|
+
*/
|
|
930
|
+
filterFromInput?: boolean;
|
|
931
|
+
/**
|
|
932
|
+
* Callback to call when the option is selected.
|
|
933
|
+
* This should only be used to add custom actions on options.
|
|
934
|
+
* For most cases, the "onSelect" on the Combobox root component should be enough.
|
|
935
|
+
*/
|
|
936
|
+
onSelect?: (option: O, eventSource?: ComboboxOptionSelectEventSource) => void;
|
|
937
|
+
/**
|
|
938
|
+
* Additional data to link to the option. This can be useful to retrieve with `onSelect`.
|
|
939
|
+
*/
|
|
940
|
+
data?: O;
|
|
941
|
+
/**
|
|
942
|
+
* Whether the option is disabled
|
|
943
|
+
*/
|
|
944
|
+
isDisabled?: boolean;
|
|
945
|
+
/**
|
|
946
|
+
* The components to use to visually customize options.
|
|
947
|
+
* ! Options must not have interactive elements.
|
|
948
|
+
* ! If you need additional actions, you might need to create custom options and search how to
|
|
949
|
+
* ! make them accessible.
|
|
950
|
+
*/
|
|
951
|
+
children?: ReactNode;
|
|
952
|
+
/**
|
|
953
|
+
* The text value the option has.
|
|
954
|
+
* This is the value used to filter the options by when manual filtering is disabled
|
|
955
|
+
* and that will be used as input value when an option is selected
|
|
956
|
+
*/
|
|
957
|
+
textValue?: string;
|
|
958
|
+
/**
|
|
959
|
+
* Element to display before the content of the option.
|
|
960
|
+
* ! Options must not have interactive elements.
|
|
961
|
+
* ! If you need additional actions, you might need to create custom options and search how to
|
|
962
|
+
* ! make them accessible.
|
|
963
|
+
*/
|
|
964
|
+
before?: ReactNode;
|
|
965
|
+
/**
|
|
966
|
+
* Element to display after the content of the option.
|
|
967
|
+
* ! Options must not have interactive elements.
|
|
968
|
+
* ! If you need additional actions, you might need to create custom options and search how to
|
|
969
|
+
* ! make them accessible.
|
|
970
|
+
*/
|
|
971
|
+
after?: ReactNode;
|
|
972
|
+
/**
|
|
973
|
+
* Size of the list item.
|
|
974
|
+
* Default to tiny
|
|
975
|
+
*/
|
|
976
|
+
size?: ListItemSize;
|
|
977
|
+
/**
|
|
978
|
+
* Fill to activate a tooltip on mouse over
|
|
979
|
+
*/
|
|
980
|
+
tooltipProps?: Partial<TooltipProps>;
|
|
981
|
+
};
|
|
982
|
+
/**
|
|
983
|
+
* Props for when an option has no children.
|
|
984
|
+
* In these case, we need at least the text value to know what to display
|
|
985
|
+
* */
|
|
986
|
+
type TextValueOnly<O = any> = BaseComboboxOptionProps<O> & {
|
|
987
|
+
children?: never;
|
|
988
|
+
textValue: string;
|
|
989
|
+
};
|
|
990
|
+
/**
|
|
991
|
+
* Props for when an option has a react element as string
|
|
992
|
+
* In that case, we can use the children as the textValue without having
|
|
993
|
+
* to set a manual props.
|
|
994
|
+
* The props is still available to have a text value different than the displayed value.
|
|
995
|
+
*/
|
|
996
|
+
type StringOption<O = any> = BaseComboboxOptionProps<O> & {
|
|
997
|
+
children: ReactText;
|
|
998
|
+
textValue?: string;
|
|
999
|
+
};
|
|
1000
|
+
/**
|
|
1001
|
+
* Props for when an option has a react element as children
|
|
1002
|
+
* In that case, we cannot know what the actual value of the
|
|
1003
|
+
* option is, so the `textValue` prop has to be set.
|
|
1004
|
+
*/
|
|
1005
|
+
type NodeOption<O = any> = BaseComboboxOptionProps<O> & {
|
|
1006
|
+
children: Exclude<ReactNode, ReactText>;
|
|
1007
|
+
textValue: string;
|
|
1008
|
+
};
|
|
1009
|
+
/** Props for the ComboboxOption component */
|
|
1010
|
+
type ComboboxOptionProps<O = any> = TextValueOnly<O> | StringOption<O> | NodeOption<O>;
|
|
1011
|
+
/** Shared data between all combobox option types. */
|
|
1012
|
+
interface BaseRegisteredComboboxOption {
|
|
1013
|
+
id: string;
|
|
1014
|
+
/** The id that was generated for this option */
|
|
1015
|
+
generatedId: string;
|
|
1016
|
+
/** Whether the "option" is an action */
|
|
1017
|
+
isAction?: boolean;
|
|
1018
|
+
/** Whether the "option" is disabled */
|
|
1019
|
+
isDisabled?: boolean;
|
|
1020
|
+
}
|
|
1021
|
+
/** Values of action type options */
|
|
1022
|
+
interface RegisteredComboboxAction extends BaseRegisteredComboboxOption {
|
|
1023
|
+
/** Whether the "option" is an action */
|
|
1024
|
+
isAction: true;
|
|
1025
|
+
/** Callback when the action is triggered. */
|
|
1026
|
+
onSelect?: () => void;
|
|
1027
|
+
}
|
|
1028
|
+
/** Combobox value */
|
|
1029
|
+
interface RegisteredComboboxOptionValue<O = any> extends BaseRegisteredComboboxOption, Pick<ComboboxOptionProps<O>, 'data' | 'filterFromInput' | 'textValue' | 'onSelect'> {
|
|
1030
|
+
/** The section the option is a child of. */
|
|
1031
|
+
sectionId?: string;
|
|
1032
|
+
/** Whether the "option" is an action */
|
|
1033
|
+
isAction?: never;
|
|
1034
|
+
}
|
|
1035
|
+
/** The option values stored in the state */
|
|
1036
|
+
type RegisteredComboboxOption<O = any> = RegisteredComboboxAction | RegisteredComboboxOptionValue<O>;
|
|
1037
|
+
type OnComboboxSelect<O = any> = (option: RegisteredComboboxOptionValue<O>) => void;
|
|
1038
|
+
type OnComboboxInputChange = TextFieldProps['onChange'];
|
|
1039
|
+
type ComboboxTranslations = {
|
|
1040
|
+
clearLabel: string;
|
|
1041
|
+
showSuggestionsLabel: string;
|
|
1042
|
+
loadingLabel: string;
|
|
1043
|
+
noResultsForInputLabel: (input?: string) => string;
|
|
1044
|
+
serviceUnavailableLabel: string;
|
|
1045
|
+
tryReloadLabel: string;
|
|
1046
|
+
nbOptionsLabel: (options: number) => string;
|
|
1047
|
+
};
|
|
1048
|
+
/** Props for the main combobox component. */
|
|
1049
|
+
type ComboboxProps<O = any> = {
|
|
1050
|
+
/**
|
|
1051
|
+
* HTML id
|
|
1052
|
+
*/
|
|
1053
|
+
id?: string;
|
|
1054
|
+
/**
|
|
1055
|
+
* The current option id to set as selected.
|
|
1056
|
+
* If omitted, the local state will be used instead;
|
|
1057
|
+
*/
|
|
1058
|
+
selectedIds?: Array<string | number>;
|
|
1059
|
+
/**
|
|
1060
|
+
* The current value for the combobox input.
|
|
1061
|
+
* If omitted, the input is controlled locally */
|
|
1062
|
+
inputValue?: string;
|
|
1063
|
+
/**
|
|
1064
|
+
* The default value to set on the input.
|
|
1065
|
+
* Use this if you want to initialize the input with a value and not control it
|
|
1066
|
+
*/
|
|
1067
|
+
defaultInputValue?: string;
|
|
1068
|
+
/**
|
|
1069
|
+
* Whether the options should be automatically filtered or not.
|
|
1070
|
+
* By default, the combobox will try to filter the options from the current input value
|
|
1071
|
+
* using a "contains" strategy.
|
|
1072
|
+
* If this is `false`, the option will not be automatically filtered and must be manually filtered by the parent.
|
|
1073
|
+
* Useful for asynchronous comboboxes.
|
|
1074
|
+
*/
|
|
1075
|
+
autoFilter: boolean;
|
|
1076
|
+
/**
|
|
1077
|
+
* Whether the combobox should open on focus
|
|
1078
|
+
*/
|
|
1079
|
+
openOnFocus?: boolean;
|
|
1080
|
+
/**
|
|
1081
|
+
* Whether the combobox should open on click
|
|
1082
|
+
*/
|
|
1083
|
+
openOnClick?: boolean;
|
|
1084
|
+
/**
|
|
1085
|
+
* Status of the combobox
|
|
1086
|
+
*/
|
|
1087
|
+
status: BaseLoadingStatus;
|
|
1088
|
+
/**
|
|
1089
|
+
* Callback when the input changes.
|
|
1090
|
+
*/
|
|
1091
|
+
onInputChange?: OnComboboxInputChange;
|
|
1092
|
+
/**
|
|
1093
|
+
* Callback for when an option is selected
|
|
1094
|
+
*/
|
|
1095
|
+
onSelect?: OnComboboxSelect<O>;
|
|
1096
|
+
/**
|
|
1097
|
+
* Callback called when the combobox opens
|
|
1098
|
+
*/
|
|
1099
|
+
onOpen?: (options: {
|
|
1100
|
+
currentValue?: string;
|
|
1101
|
+
manual: boolean;
|
|
1102
|
+
}) => void;
|
|
1103
|
+
/**
|
|
1104
|
+
* The combobox components to render.
|
|
1105
|
+
* Must be one of the exposed components (Combobox.Input, Combobox.ListBox etc...)
|
|
1106
|
+
*/
|
|
1107
|
+
children: ReactNode;
|
|
1108
|
+
/**
|
|
1109
|
+
* The combobox can have a specific selection type:
|
|
1110
|
+
* - Single: only one item is selected
|
|
1111
|
+
* - Multiple: several items can be selected (this impacts the combobox list, which will now not close when selectiong an option)
|
|
1112
|
+
*/
|
|
1113
|
+
selectionType?: ComboboxSelectionType;
|
|
1114
|
+
/**
|
|
1115
|
+
* Whether the error state should be displayed when the status is in error.
|
|
1116
|
+
* @default `true` if `status` is defined
|
|
1117
|
+
*/
|
|
1118
|
+
showErrorState?: boolean;
|
|
1119
|
+
/**
|
|
1120
|
+
* Whether the empty state should be displayed when there is no results.
|
|
1121
|
+
* @default `true` if `autoFilter=false`
|
|
1122
|
+
*/
|
|
1123
|
+
showEmptyState?: boolean;
|
|
1124
|
+
/** custom className */
|
|
1125
|
+
className?: string;
|
|
1126
|
+
/** translations to be used across the combobox */
|
|
1127
|
+
translations: ComboboxTranslations;
|
|
1128
|
+
};
|
|
1129
|
+
/** Entity related types for single selection. */
|
|
1130
|
+
type SingleSelection<O = any> = {
|
|
1131
|
+
selectionType: 'single';
|
|
1132
|
+
/**
|
|
1133
|
+
* Selected option object
|
|
1134
|
+
*/
|
|
1135
|
+
value?: O;
|
|
1136
|
+
/**
|
|
1137
|
+
* Callback on option object selected
|
|
1138
|
+
*/
|
|
1139
|
+
onChange?(newValue?: O): void;
|
|
1140
|
+
/**
|
|
1141
|
+
* No chips in single selection mode.
|
|
1142
|
+
*/
|
|
1143
|
+
renderChip?: never;
|
|
1144
|
+
};
|
|
1145
|
+
/** Entity related types for multiple selection. */
|
|
1146
|
+
type MultipleSelection<O = any> = {
|
|
1147
|
+
selectionType: 'multiple';
|
|
1148
|
+
/**
|
|
1149
|
+
* Selected options array
|
|
1150
|
+
*/
|
|
1151
|
+
value?: O[];
|
|
1152
|
+
/**
|
|
1153
|
+
* Callback on option array selected
|
|
1154
|
+
*/
|
|
1155
|
+
onChange?(newValue?: O[]): void;
|
|
1156
|
+
/**
|
|
1157
|
+
* Custom selection chip render function
|
|
1158
|
+
*/
|
|
1159
|
+
renderChip?: (option: O) => ReactNode;
|
|
1160
|
+
};
|
|
1161
|
+
/** Shared props between SelectTextField and SelectButton */
|
|
1162
|
+
type BaseSelectProps<O = any> = {
|
|
1163
|
+
/**
|
|
1164
|
+
* List of option objects
|
|
1165
|
+
*/
|
|
1166
|
+
options?: Array<O>;
|
|
1167
|
+
/**
|
|
1168
|
+
* Option object id selector (either the property name or a function to get the id)
|
|
1169
|
+
*/
|
|
1170
|
+
getOptionId: Selector<O>;
|
|
1171
|
+
/**
|
|
1172
|
+
* Option object name selector (either the property name or a function to get the name)
|
|
1173
|
+
* Fallbacks on the ID if not defined
|
|
1174
|
+
*/
|
|
1175
|
+
getOptionName?: Selector<O, string | undefined | null>;
|
|
1176
|
+
/**
|
|
1177
|
+
* Option object description selector (either the property name or a function to get the description)
|
|
1178
|
+
*/
|
|
1179
|
+
getOptionDescription?: Selector<O, string | undefined | null>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Option object section id selector.
|
|
1182
|
+
* Providing this will group options by sections (and may change their order)
|
|
1183
|
+
* If the section id is a string, it is used as section label. Else, the section won't have a label.
|
|
1184
|
+
*/
|
|
1185
|
+
getSectionId?: Selector<O, any>;
|
|
1186
|
+
/**
|
|
1187
|
+
* option object section title selector.
|
|
1188
|
+
* If provided, the section will be rendered using this function.
|
|
1189
|
+
*/
|
|
1190
|
+
renderSectionTitle?: (option: O, sectionIndex: number) => React.ReactNode;
|
|
1191
|
+
/**
|
|
1192
|
+
* Whether the sections are separated by dividers
|
|
1193
|
+
*/
|
|
1194
|
+
hasSectionDividers?: boolean;
|
|
1195
|
+
/**
|
|
1196
|
+
* Option object render function
|
|
1197
|
+
* Default to rendering option using the id & name obtained with `optionIdSelector` & `optionNameSelector`
|
|
1198
|
+
*
|
|
1199
|
+
* **The direct child must be a Combobox.Option, otherwise it will not render the children.**.
|
|
1200
|
+
*/
|
|
1201
|
+
renderOption?: (option: O, index: number) => React.ReactNode;
|
|
1202
|
+
/**
|
|
1203
|
+
* Callback to load more items
|
|
1204
|
+
*/
|
|
1205
|
+
onLoadMore?(): void;
|
|
1206
|
+
/**
|
|
1207
|
+
* Props passed to the option list.
|
|
1208
|
+
*/
|
|
1209
|
+
/**
|
|
1210
|
+
* Add custom elements before the options
|
|
1211
|
+
*/
|
|
1212
|
+
beforeOptions?: ReactNode;
|
|
1213
|
+
/**
|
|
1214
|
+
* Data attribute scope
|
|
1215
|
+
*/
|
|
1216
|
+
scope?: string;
|
|
1217
|
+
};
|
|
1218
|
+
type OpenComboboxAction = {
|
|
1219
|
+
type: 'OPEN_COMBOBOX';
|
|
1220
|
+
payload?: {
|
|
1221
|
+
manual?: boolean;
|
|
1222
|
+
};
|
|
1223
|
+
};
|
|
1224
|
+
type CloseComboboxAction = {
|
|
1225
|
+
type: 'CLOSE_COMBOBOX';
|
|
1226
|
+
};
|
|
1227
|
+
type SetInputValueAction = {
|
|
1228
|
+
type: 'SET_INPUT_VALUE';
|
|
1229
|
+
payload: string;
|
|
1230
|
+
};
|
|
1231
|
+
type AddOptionAction = {
|
|
1232
|
+
type: 'ADD_OPTION';
|
|
1233
|
+
payload: {
|
|
1234
|
+
id: string;
|
|
1235
|
+
option: RegisteredComboboxOption;
|
|
1236
|
+
};
|
|
1237
|
+
};
|
|
1238
|
+
type RemoveOptionAction = {
|
|
1239
|
+
type: 'REMOVE_OPTION';
|
|
1240
|
+
payload: {
|
|
1241
|
+
id: string;
|
|
1242
|
+
};
|
|
1243
|
+
};
|
|
1244
|
+
type ComboboxAction = OpenComboboxAction | CloseComboboxAction | SetInputValueAction | AddOptionAction | RemoveOptionAction;
|
|
1245
|
+
|
|
1246
|
+
declare const COMPONENT_NAME = "ComboboxOption";
|
|
1247
|
+
declare const COMBOBOX_OPTION_CLASSNAME: LumxClassName$1<typeof COMPONENT_NAME>;
|
|
1248
|
+
declare const LUMX_CLASSNAME = "lumx-list-item";
|
|
1249
|
+
interface OptionContentProps<O extends object = any> extends GenericProps, Omit<ComboboxOptionProps<O>, 'id' | 'textValue' | 'filterFromInput' | 'data'> {
|
|
1250
|
+
id: string;
|
|
1251
|
+
isSelected?: boolean;
|
|
1252
|
+
onSelect?(): void;
|
|
1253
|
+
description?: string;
|
|
1254
|
+
/** Whether the option should be focused by default. */
|
|
1255
|
+
autofocus?: boolean;
|
|
1256
|
+
/** Customize the root element. */
|
|
1257
|
+
as?: React__default.ElementType;
|
|
1258
|
+
/** Type of the combobox (listbox or grid). */
|
|
1259
|
+
comboboxType?: 'listbox' | 'grid';
|
|
1260
|
+
}
|
|
1261
|
+
/**
|
|
1262
|
+
* Props for ComboboxOption with additional generic properties.
|
|
1263
|
+
*/
|
|
1264
|
+
interface ComboboxOptionComponentProps<O extends object = any> extends GenericProps, Omit<ComboboxOptionProps<O>, 'as'> {
|
|
1265
|
+
/** Customize the root element. */
|
|
1266
|
+
as?: React__default.ElementType;
|
|
1267
|
+
}
|
|
1268
|
+
/**
|
|
1269
|
+
* Option to set within a combobox list.
|
|
1270
|
+
*
|
|
1271
|
+
* @family Combobox
|
|
1272
|
+
* @param ComboboxOptionProps
|
|
1273
|
+
* @returns ComboboxOption
|
|
1274
|
+
*/
|
|
1275
|
+
declare const ComboboxOption: Comp<ComboboxOptionComponentProps<any>, HTMLElement>;
|
|
1276
|
+
|
|
1277
|
+
interface ComboboxOptionSkeletonProps {
|
|
1278
|
+
className?: string;
|
|
1279
|
+
index?: number;
|
|
1280
|
+
children?: ReactNode | ((options: {
|
|
1281
|
+
index?: number;
|
|
1282
|
+
}) => ReactNode);
|
|
1283
|
+
before?: ComboboxOptionProps['before'];
|
|
1284
|
+
after?: ComboboxOptionProps['after'];
|
|
1285
|
+
size?: ComboboxOptionProps['size'];
|
|
1286
|
+
}
|
|
1287
|
+
/**
|
|
1288
|
+
* Skeleton for a combobox option.
|
|
1289
|
+
* A typography skeleton is rendered by default but can be overridden by passing children.
|
|
1290
|
+
*/
|
|
1291
|
+
declare const ComboboxOptionSkeleton: ({ className, index, before, after, size, children, }: ComboboxOptionSkeletonProps) => react_jsx_runtime.JSX.Element;
|
|
1292
|
+
|
|
1293
|
+
interface ComboboxOptionActionProps extends GenericProps {
|
|
1294
|
+
/** Should the action be set as disabled */
|
|
1295
|
+
isDisabled?: boolean;
|
|
1296
|
+
/** Action to trigger when the action is selected */
|
|
1297
|
+
onClick: () => void;
|
|
1298
|
+
/** Customize the root element. */
|
|
1299
|
+
as?: React__default.ElementType;
|
|
1300
|
+
}
|
|
1301
|
+
/**
|
|
1302
|
+
* Action to set on a Combobox Option.
|
|
1303
|
+
* Allows to add an interactive element that
|
|
1304
|
+
* can be navigated to and triggered using the keyboard.
|
|
1305
|
+
*
|
|
1306
|
+
* Defaults as "button"
|
|
1307
|
+
*
|
|
1308
|
+
* @family Combobox
|
|
1309
|
+
* @param ComboboxOptionActionProps
|
|
1310
|
+
* @returns ComboboxOptionAction
|
|
1311
|
+
*/
|
|
1312
|
+
declare const ComboboxOptionAction: (props: ComboboxOptionActionProps) => react_jsx_runtime.JSX.Element;
|
|
1313
|
+
|
|
1314
|
+
interface ComboboxOptionMoreInfoProps {
|
|
1315
|
+
buttonProps?: Partial<IconButtonProps>;
|
|
1316
|
+
popoverProps?: PopoverProps;
|
|
1317
|
+
onToggle?: (isOpen: boolean) => void;
|
|
1318
|
+
children?: React__default.ReactNode;
|
|
1319
|
+
}
|
|
1320
|
+
/**
|
|
1321
|
+
* Display more info on the option as a popover opening on mouse hover or keyboard nav
|
|
1322
|
+
* Please consider using a simpler option description instead for better UX and a11y.
|
|
1323
|
+
*
|
|
1324
|
+
* @family Combobox
|
|
1325
|
+
*/
|
|
1326
|
+
declare const ComboboxOptionMoreInfo: React__default.FC<ComboboxOptionMoreInfoProps>;
|
|
1327
|
+
|
|
882
1328
|
/**
|
|
883
1329
|
* Comment block variants.
|
|
884
1330
|
*/
|
|
@@ -1639,22 +2085,37 @@ interface GridItemProps extends GenericProps {
|
|
|
1639
2085
|
*/
|
|
1640
2086
|
declare const GridItem: Comp<GridItemProps, HTMLDivElement>;
|
|
1641
2087
|
|
|
1642
|
-
type GridColumnGapSize = Extract<Size
|
|
2088
|
+
type GridColumnGapSize = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
1643
2089
|
/**
|
|
1644
2090
|
* Defines the props of the component.
|
|
1645
2091
|
*/
|
|
1646
|
-
interface GridColumnProps extends
|
|
2092
|
+
interface GridColumnProps$1 extends HasClassName {
|
|
1647
2093
|
/** Customize the root element. */
|
|
1648
|
-
as?:
|
|
2094
|
+
as?: any;
|
|
1649
2095
|
/** Children elements. */
|
|
1650
|
-
children?:
|
|
2096
|
+
children?: JSXElement;
|
|
1651
2097
|
/** Space between columns and rows. */
|
|
1652
2098
|
gap?: GridColumnGapSize;
|
|
1653
2099
|
/** Ideal number of columns. */
|
|
1654
2100
|
maxColumns?: number;
|
|
1655
2101
|
/** Minimum width for each item, reduce the number of column if there is not enough space. */
|
|
1656
2102
|
itemMinWidth?: number;
|
|
2103
|
+
/** Custom styles. */
|
|
2104
|
+
style?: any;
|
|
2105
|
+
/** reference to the root element */
|
|
2106
|
+
ref?: CommonRef;
|
|
1657
2107
|
}
|
|
2108
|
+
|
|
2109
|
+
/**
|
|
2110
|
+
* Defines the props of the component.
|
|
2111
|
+
*/
|
|
2112
|
+
interface GridColumnProps extends GenericProps, GridColumnProps$1 {
|
|
2113
|
+
/** Customize the root element. */
|
|
2114
|
+
as?: React.ElementType;
|
|
2115
|
+
/** Children elements. */
|
|
2116
|
+
children?: React.ReactNode;
|
|
2117
|
+
}
|
|
2118
|
+
|
|
1658
2119
|
/**
|
|
1659
2120
|
* The GridColumn is a layout component that can display children in a grid
|
|
1660
2121
|
* with custom display properties. It also comes with a responsive design,
|
|
@@ -1705,54 +2166,42 @@ interface IconProps extends Omit<IconProps$1, 'children'>, GenericProps {
|
|
|
1705
2166
|
*/
|
|
1706
2167
|
declare const Icon: Comp<IconProps, HTMLElement>;
|
|
1707
2168
|
|
|
1708
|
-
/**
|
|
1709
|
-
* Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).
|
|
1710
|
-
*/
|
|
1711
|
-
type FocusPoint = {
|
|
1712
|
-
x?: number;
|
|
1713
|
-
y?: number;
|
|
1714
|
-
};
|
|
1715
2169
|
/**
|
|
1716
2170
|
* Loading attribute is not yet supported in typescript, so we need
|
|
1717
2171
|
* to add it in order to avoid a ts error.
|
|
1718
2172
|
* https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
|
|
1719
2173
|
*/
|
|
1720
2174
|
declare module 'react' {
|
|
1721
|
-
interface ImgHTMLAttributes<T> extends
|
|
2175
|
+
interface ImgHTMLAttributes<T> extends React.HTMLAttributes<T> {
|
|
1722
2176
|
loading?: 'eager' | 'lazy';
|
|
1723
2177
|
}
|
|
1724
2178
|
}
|
|
1725
|
-
/**
|
|
1726
|
-
* All available aspect ratios.
|
|
1727
|
-
* @deprecated
|
|
1728
|
-
*/
|
|
1729
|
-
declare const ThumbnailAspectRatio: Record<string, AspectRatio$1>;
|
|
1730
2179
|
/**
|
|
1731
2180
|
* Thumbnail sizes.
|
|
1732
2181
|
*/
|
|
1733
|
-
type ThumbnailSize = Extract<Size
|
|
2182
|
+
type ThumbnailSize$1 = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1734
2183
|
/**
|
|
1735
2184
|
* Thumbnail variants.
|
|
1736
2185
|
*/
|
|
1737
|
-
declare const ThumbnailVariant: {
|
|
2186
|
+
declare const ThumbnailVariant$1: {
|
|
1738
2187
|
readonly squared: "squared";
|
|
1739
2188
|
readonly rounded: "rounded";
|
|
1740
2189
|
};
|
|
1741
|
-
type ThumbnailVariant = ValueOf
|
|
2190
|
+
type ThumbnailVariant$1 = ValueOf<typeof ThumbnailVariant$1>;
|
|
1742
2191
|
/**
|
|
1743
2192
|
* Thumbnail object fit.
|
|
1744
2193
|
*/
|
|
1745
|
-
declare const ThumbnailObjectFit: {
|
|
2194
|
+
declare const ThumbnailObjectFit$1: {
|
|
1746
2195
|
readonly cover: "cover";
|
|
1747
2196
|
readonly contain: "contain";
|
|
1748
2197
|
};
|
|
1749
|
-
type ThumbnailObjectFit = ValueOf
|
|
2198
|
+
type ThumbnailObjectFit$1 = ValueOf<typeof ThumbnailObjectFit$1>;
|
|
1750
2199
|
|
|
1751
2200
|
type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
1752
2201
|
/**
|
|
1753
2202
|
* Defines the props of the component.
|
|
1754
2203
|
*/
|
|
1755
|
-
interface ThumbnailProps extends
|
|
2204
|
+
interface ThumbnailProps$1 extends HasTheme$1, HasClassName$1 {
|
|
1756
2205
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
1757
2206
|
align?: HorizontalAlignment$1;
|
|
1758
2207
|
/** Image alternative text. */
|
|
@@ -1760,41 +2209,98 @@ interface ThumbnailProps extends GenericProps, HasTheme$1 {
|
|
|
1760
2209
|
/** Image aspect ratio. */
|
|
1761
2210
|
aspectRatio?: AspectRatio$1;
|
|
1762
2211
|
/** Badge. */
|
|
1763
|
-
badge?:
|
|
2212
|
+
badge?: JSXElement$1;
|
|
1764
2213
|
/** Image cross origin resource policy. */
|
|
1765
2214
|
crossOrigin?: ImgHTMLProps['crossOrigin'];
|
|
1766
2215
|
/** Fallback icon (SVG path) or react node when image fails to load. */
|
|
1767
|
-
fallback?: string |
|
|
2216
|
+
fallback?: string | JSXElement$1;
|
|
1768
2217
|
/** Whether the thumbnail should fill it's parent size (requires flex parent) or not. */
|
|
1769
2218
|
fillHeight?: boolean;
|
|
1770
|
-
/** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
|
|
1771
|
-
focusPoint?: FocusPoint;
|
|
1772
2219
|
/** Image URL. */
|
|
1773
2220
|
image: string;
|
|
2221
|
+
loadingState: string;
|
|
1774
2222
|
/** Props to inject into the native <img> element. */
|
|
1775
2223
|
imgProps?: ImgHTMLProps;
|
|
1776
2224
|
/** Reference to the native <img> element. */
|
|
1777
|
-
imgRef?:
|
|
2225
|
+
imgRef?: CommonRef$1;
|
|
2226
|
+
ref?: CommonRef$1;
|
|
1778
2227
|
/** Set to true to force the display of the loading skeleton. */
|
|
1779
2228
|
isLoading?: boolean;
|
|
1780
2229
|
/** Set how the image should fit when its aspect ratio is constrained */
|
|
1781
|
-
objectFit?: ThumbnailObjectFit;
|
|
2230
|
+
objectFit?: ThumbnailObjectFit$1;
|
|
1782
2231
|
/** Size variant of the component. */
|
|
1783
|
-
size?: ThumbnailSize;
|
|
2232
|
+
size?: ThumbnailSize$1;
|
|
1784
2233
|
/** Image loading mode. */
|
|
1785
|
-
loading?:
|
|
2234
|
+
loading?: 'eager' | 'lazy';
|
|
1786
2235
|
/** Ref of an existing placeholder image to display while loading. */
|
|
1787
|
-
loadingPlaceholderImageRef?:
|
|
2236
|
+
loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement>;
|
|
1788
2237
|
/** On click callback. */
|
|
1789
|
-
onClick?:
|
|
2238
|
+
onClick?: (event: any) => void;
|
|
1790
2239
|
/** On key press callback. */
|
|
1791
|
-
onKeyPress?:
|
|
2240
|
+
onKeyPress?: (event: any) => void;
|
|
1792
2241
|
/** Variant of the component. */
|
|
1793
|
-
variant?: ThumbnailVariant;
|
|
2242
|
+
variant?: ThumbnailVariant$1;
|
|
1794
2243
|
/** Props to pass to the link wrapping the thumbnail. */
|
|
1795
|
-
linkProps?:
|
|
2244
|
+
linkProps?: GenericProps;
|
|
2245
|
+
focusPointStyle?: GenericProps;
|
|
2246
|
+
disabledStateProps?: GenericProps;
|
|
2247
|
+
isAnyDisabled?: boolean;
|
|
1796
2248
|
/** Custom react component for the link (can be used to inject react router Link). */
|
|
1797
2249
|
linkAs?: 'a' | any;
|
|
2250
|
+
'aria-label'?: string;
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
* Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).
|
|
2255
|
+
*/
|
|
2256
|
+
type FocusPoint = {
|
|
2257
|
+
x?: number;
|
|
2258
|
+
y?: number;
|
|
2259
|
+
};
|
|
2260
|
+
/**
|
|
2261
|
+
* Loading attribute is not yet supported in typescript, so we need
|
|
2262
|
+
* to add it in order to avoid a ts error.
|
|
2263
|
+
* https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
|
|
2264
|
+
*/
|
|
2265
|
+
declare module 'react' {
|
|
2266
|
+
interface ImgHTMLAttributes<T> extends React__default.HTMLAttributes<T> {
|
|
2267
|
+
loading?: 'eager' | 'lazy';
|
|
2268
|
+
}
|
|
2269
|
+
}
|
|
2270
|
+
/**
|
|
2271
|
+
* All available aspect ratios.
|
|
2272
|
+
* @deprecated
|
|
2273
|
+
*/
|
|
2274
|
+
declare const ThumbnailAspectRatio: Record<string, AspectRatio$1>;
|
|
2275
|
+
/**
|
|
2276
|
+
* Thumbnail sizes.
|
|
2277
|
+
*/
|
|
2278
|
+
type ThumbnailSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
2279
|
+
/**
|
|
2280
|
+
* Thumbnail variants.
|
|
2281
|
+
*/
|
|
2282
|
+
declare const ThumbnailVariant: {
|
|
2283
|
+
readonly squared: "squared";
|
|
2284
|
+
readonly rounded: "rounded";
|
|
2285
|
+
};
|
|
2286
|
+
type ThumbnailVariant = ValueOf$1<typeof ThumbnailVariant>;
|
|
2287
|
+
/**
|
|
2288
|
+
* Thumbnail object fit.
|
|
2289
|
+
*/
|
|
2290
|
+
declare const ThumbnailObjectFit: {
|
|
2291
|
+
readonly cover: "cover";
|
|
2292
|
+
readonly contain: "contain";
|
|
2293
|
+
};
|
|
2294
|
+
type ThumbnailObjectFit = ValueOf$1<typeof ThumbnailObjectFit>;
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
* Defines the props of the component.
|
|
2298
|
+
*/
|
|
2299
|
+
interface ThumbnailProps extends GenericProps, Omit<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
|
|
2300
|
+
/** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
|
|
2301
|
+
focusPoint?: FocusPoint;
|
|
2302
|
+
/** Badge. */
|
|
2303
|
+
badge?: ReactElement | Falsy;
|
|
1798
2304
|
}
|
|
1799
2305
|
/**
|
|
1800
2306
|
* Thumbnail component.
|
|
@@ -3171,11 +3677,21 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
3171
3677
|
/**
|
|
3172
3678
|
* Defines the props of the component.
|
|
3173
3679
|
*/
|
|
3174
|
-
interface TableProps extends
|
|
3680
|
+
interface TableProps$1 extends HasTheme, HasClassName {
|
|
3175
3681
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
3176
3682
|
hasBefore?: boolean;
|
|
3177
3683
|
/** Whether the table has dividers or not. */
|
|
3178
3684
|
hasDividers?: boolean;
|
|
3685
|
+
/** Children */
|
|
3686
|
+
children?: JSXElement;
|
|
3687
|
+
/** reference to the root element */
|
|
3688
|
+
ref?: CommonRef;
|
|
3689
|
+
}
|
|
3690
|
+
|
|
3691
|
+
/**
|
|
3692
|
+
* Defines the props of the component.
|
|
3693
|
+
*/
|
|
3694
|
+
interface TableProps extends GenericProps, Omit<TableProps$1, 'ref'> {
|
|
3179
3695
|
/** Children */
|
|
3180
3696
|
children?: React.ReactNode;
|
|
3181
3697
|
}
|
|
@@ -3191,7 +3707,17 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
|
|
|
3191
3707
|
/**
|
|
3192
3708
|
* Defines the props of the component.
|
|
3193
3709
|
*/
|
|
3194
|
-
interface TableBodyProps extends
|
|
3710
|
+
interface TableBodyProps$1 extends HasClassName {
|
|
3711
|
+
/** Children */
|
|
3712
|
+
children?: JSXElement;
|
|
3713
|
+
/** reference to the root element */
|
|
3714
|
+
ref?: CommonRef;
|
|
3715
|
+
}
|
|
3716
|
+
|
|
3717
|
+
/**
|
|
3718
|
+
* Defines the props of the component.
|
|
3719
|
+
*/
|
|
3720
|
+
interface TableBodyProps extends GenericProps, Omit<TableBodyProps$1, 'ref'> {
|
|
3195
3721
|
/** Children */
|
|
3196
3722
|
children?: React.ReactNode;
|
|
3197
3723
|
}
|
|
@@ -3211,7 +3737,7 @@ declare const ThOrder: {
|
|
|
3211
3737
|
readonly asc: "asc";
|
|
3212
3738
|
readonly desc: "desc";
|
|
3213
3739
|
};
|
|
3214
|
-
type ThOrder = ValueOf
|
|
3740
|
+
type ThOrder = ValueOf<typeof ThOrder>;
|
|
3215
3741
|
/**
|
|
3216
3742
|
* Table cell variants.
|
|
3217
3743
|
*/
|
|
@@ -3219,11 +3745,11 @@ declare const TableCellVariant: {
|
|
|
3219
3745
|
readonly body: "body";
|
|
3220
3746
|
readonly head: "head";
|
|
3221
3747
|
};
|
|
3222
|
-
type TableCellVariant = ValueOf
|
|
3748
|
+
type TableCellVariant = ValueOf<typeof TableCellVariant>;
|
|
3223
3749
|
/**
|
|
3224
3750
|
* Defines the props of the component.
|
|
3225
3751
|
*/
|
|
3226
|
-
interface TableCellProps extends
|
|
3752
|
+
interface TableCellProps$1 extends HasClassName {
|
|
3227
3753
|
/** Icon (SVG path).(thead only). */
|
|
3228
3754
|
icon?: string;
|
|
3229
3755
|
/** Whether the column is sortable or not (thead only). */
|
|
@@ -3234,6 +3760,16 @@ interface TableCellProps extends GenericProps {
|
|
|
3234
3760
|
variant?: TableCellVariant;
|
|
3235
3761
|
/** On header cell click callback. */
|
|
3236
3762
|
onHeaderClick?(): void;
|
|
3763
|
+
/** Children */
|
|
3764
|
+
children?: JSXElement;
|
|
3765
|
+
/** reference to the root element */
|
|
3766
|
+
ref?: CommonRef;
|
|
3767
|
+
}
|
|
3768
|
+
|
|
3769
|
+
/**
|
|
3770
|
+
* Defines the props of the component.
|
|
3771
|
+
*/
|
|
3772
|
+
interface TableCellProps extends GenericProps, Omit<TableCellProps$1, 'ref'> {
|
|
3237
3773
|
/** Children */
|
|
3238
3774
|
children?: React.ReactNode;
|
|
3239
3775
|
}
|
|
@@ -3249,7 +3785,17 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
|
|
|
3249
3785
|
/**
|
|
3250
3786
|
* Defines the props of the component.
|
|
3251
3787
|
*/
|
|
3252
|
-
interface TableHeaderProps extends
|
|
3788
|
+
interface TableHeaderProps$1 extends HasClassName {
|
|
3789
|
+
/** Children */
|
|
3790
|
+
children?: JSXElement;
|
|
3791
|
+
/** reference to the root element */
|
|
3792
|
+
ref?: CommonRef;
|
|
3793
|
+
}
|
|
3794
|
+
|
|
3795
|
+
/**
|
|
3796
|
+
* Defines the props of the component.
|
|
3797
|
+
*/
|
|
3798
|
+
interface TableHeaderProps extends GenericProps, Omit<TableHeaderProps$1, 'ref'> {
|
|
3253
3799
|
/** Children */
|
|
3254
3800
|
children?: React.ReactNode;
|
|
3255
3801
|
}
|
|
@@ -3265,13 +3811,25 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
|
|
|
3265
3811
|
/**
|
|
3266
3812
|
* Defines the props of the component.
|
|
3267
3813
|
*/
|
|
3268
|
-
interface TableRowProps extends
|
|
3814
|
+
interface TableRowProps$1 extends HasClassName, HasAriaDisabled {
|
|
3269
3815
|
/** Whether the component is clickable or not. */
|
|
3270
3816
|
isClickable?: boolean;
|
|
3271
|
-
/** Whether the component is disabled or not. */
|
|
3272
|
-
isDisabled?: boolean;
|
|
3273
3817
|
/** Whether the component is selected or not. */
|
|
3274
3818
|
isSelected?: boolean;
|
|
3819
|
+
/** Tab index */
|
|
3820
|
+
tabIndex?: number;
|
|
3821
|
+
/** Children */
|
|
3822
|
+
children?: JSXElement;
|
|
3823
|
+
/** reference to the root element */
|
|
3824
|
+
ref?: CommonRef;
|
|
3825
|
+
}
|
|
3826
|
+
|
|
3827
|
+
/**
|
|
3828
|
+
* Defines the props of the component.
|
|
3829
|
+
*/
|
|
3830
|
+
interface TableRowProps extends GenericProps, Omit<TableRowProps$1, 'ref' | 'tabIndex' | 'aria-disabled'> {
|
|
3831
|
+
/** Whether the component is disabled or not. */
|
|
3832
|
+
isDisabled?: boolean;
|
|
3275
3833
|
/** Children */
|
|
3276
3834
|
children?: React.ReactNode;
|
|
3277
3835
|
}
|
|
@@ -3500,7 +4058,21 @@ declare const useFocusPointStyle: ({ image, aspectRatio, focusPoint, imgProps: {
|
|
|
3500
4058
|
/**
|
|
3501
4059
|
* Defines the props of the component.
|
|
3502
4060
|
*/
|
|
3503
|
-
interface ToolbarProps extends
|
|
4061
|
+
interface ToolbarProps$1 extends HasClassName {
|
|
4062
|
+
/** After content (placed after the label). */
|
|
4063
|
+
after?: JSXElement;
|
|
4064
|
+
/** Before content (placed before the label). */
|
|
4065
|
+
before?: JSXElement;
|
|
4066
|
+
/** Label content. */
|
|
4067
|
+
label?: JSXElement;
|
|
4068
|
+
/** Component ref. */
|
|
4069
|
+
ref?: CommonRef;
|
|
4070
|
+
}
|
|
4071
|
+
|
|
4072
|
+
/**
|
|
4073
|
+
* Defines the props of the component.
|
|
4074
|
+
*/
|
|
4075
|
+
interface ToolbarProps extends GenericProps, ToolbarProps$1 {
|
|
3504
4076
|
/** After content (placed after the label). */
|
|
3505
4077
|
after?: ReactNode;
|
|
3506
4078
|
/** Before content (placed before the label). */
|
|
@@ -3653,5 +4225,5 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
3653
4225
|
/** Get the theme in the current context. */
|
|
3654
4226
|
declare function useTheme(): ThemeContextValue;
|
|
3655
4227
|
|
|
3656
|
-
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, 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, TableHeader, TableRow, Text, TextField, ThOrder, ThemeProvider, Thumbnail, ThumbnailAspectRatio, ThumbnailObjectFit, ThumbnailVariant, Toolbar, Tooltip, Uploader, UploaderVariant, UserBlock, clamp, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
3657
|
-
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, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, 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 };
|
|
4228
|
+
export { AlertDialog, Autocomplete, AutocompleteMultiple, Avatar, Badge, BadgeWrapper, Button, ButtonEmphasis, ButtonGroup, CLASSNAME, COMBOBOX_OPTION_CLASSNAME, COMPONENT_NAME$1 as COMPONENT_NAME, Checkbox, Chip, ChipGroup, ComboboxOption, ComboboxOptionAction, ComboboxOptionMoreInfo, ComboboxOptionSkeleton, 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, LUMX_CLASSNAME, Lightbox, Link, LinkPreview, List, ListDivider, ListItem, 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, isClickable, useFocusPointStyle, useHeadingLevel, useTheme };
|
|
4229
|
+
export type { AlertDialogProps, AutocompleteMultipleProps, AutocompleteProps, AvatarProps, AvatarSize, BadgeProps, BadgeWrapperProps, BaseButtonProps, BaseSelectProps, ButtonGroupProps, ButtonProps, ButtonSize, CheckboxProps, ChipGroupProps, ChipProps, ComboboxAction, ComboboxOptionActionProps, ComboboxOptionComponentProps, ComboboxOptionMoreInfoProps, ComboboxOptionProps, ComboboxOptionSkeletonProps, ComboboxProps, CommentBlockProps, DatePickerControlledProps, DatePickerFieldProps, DatePickerProps, DialogProps, DialogSizes, DividerProps, DragHandleProps, DropdownProps, Elevation, ExpansionPanelProps, FlagProps, FlexBoxProps, FlexHorizontalAlignment, FlexVerticalAlignment, FocusPoint, GapSize, GenericBlockProps, GridColumnGapSize, GridColumnProps, GridItemProps, GridProps, HeadingLevelProviderProps, HeadingProps, IconButtonProps, IconProps, IconSizes, ImageBlockProps, ImageBlockSize, ImageLightboxProps, InlineListProps, InputHelperProps, InputLabelProps, LightboxProps, LinkPreviewProps, LinkProps, ListDividerProps, ListItemProps, ListItemSize, ListProps, ListSubheaderProps, MarginAutoAlignment, MessageProps, MosaicProps, MultipleSelection, NavigationProps, NotificationProps, Offset, OnComboboxInputChange, OnComboboxSelect, OptionContentProps, PopoverDialogProps, PopoverProps, PostBlockProps, ProgressCircularProps, ProgressCircularSize, ProgressLinearProps, ProgressProps, ProgressTrackerProps, ProgressTrackerProviderProps, ProgressTrackerStepPanelProps, ProgressTrackerStepProps, RadioButtonProps, RadioGroupProps, RawInputTextProps, RawInputTextareaProps, SelectMultipleProps, SelectProps, SelectionChipGroupProps, SideNavigationItemProps, SideNavigationProps, SingleSelection, 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 };
|