@lumx/react 3.10.1-alpha.7 → 3.10.1-alpha.8
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/index.d.ts +86 -12
- package/index.js +318 -304
- package/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/alert-dialog/AlertDialog.tsx +6 -3
- package/src/components/autocomplete/Autocomplete.stories.tsx +1 -2
- package/src/components/autocomplete/Autocomplete.tsx +3 -3
- package/src/components/autocomplete/AutocompleteMultiple.stories.tsx +2 -5
- package/src/components/autocomplete/AutocompleteMultiple.tsx +2 -2
- package/src/components/avatar/Avatar.tsx +3 -3
- package/src/components/badge/Badge.tsx +3 -3
- package/src/components/badge/BadgeWrapper.tsx +3 -2
- package/src/components/button/Button.tsx +9 -8
- package/src/components/button/ButtonGroup.tsx +9 -3
- package/src/components/button/ButtonRoot.tsx +6 -2
- package/src/components/button/IconButton.tsx +2 -2
- package/src/components/checkbox/Checkbox.tsx +4 -4
- package/src/components/chip/Chip.tsx +15 -9
- package/src/components/chip/ChipGroup.tsx +3 -2
- package/src/components/comment-block/CommentBlock.stories.tsx +4 -7
- package/src/components/comment-block/CommentBlock.tsx +3 -3
- package/src/components/date-picker/constants.ts +2 -2
- package/src/components/dialog/Dialog.tsx +9 -7
- package/src/components/divider/Divider.tsx +3 -3
- package/src/components/drag-handle/DragHandle.tsx +3 -3
- package/src/components/dropdown/Dropdown.tsx +4 -3
- package/src/components/expansion-panel/ExpansionPanel.tsx +26 -20
- package/src/components/flag/Flag.tsx +3 -3
- package/src/components/flex-box/FlexBox.tsx +4 -4
- package/src/components/generic-block/GenericBlock.tsx +10 -8
- package/src/components/generic-block/constants.ts +4 -9
- package/src/components/grid/Grid.tsx +5 -3
- package/src/components/grid/GridItem.tsx +5 -3
- package/src/components/grid-column/GridColumn.tsx +5 -3
- package/src/components/heading/Heading.tsx +7 -2
- package/src/components/icon/Icon.tsx +3 -3
- package/src/components/image-block/ImageBlock.tsx +3 -3
- package/src/components/image-lightbox/ImageLightbox.tsx +1 -1
- package/src/components/image-lightbox/constants.ts +2 -2
- package/src/components/image-lightbox/internal/ImageSlide.tsx +1 -1
- package/src/components/image-lightbox/internal/ImageSlideshow.tsx +9 -5
- package/src/components/image-lightbox/useImageLightbox.tsx +2 -1
- package/src/components/inline-list/InlineList.tsx +7 -3
- package/src/components/input-helper/InputHelper.tsx +3 -3
- package/src/components/input-label/InputLabel.tsx +3 -3
- package/src/components/lightbox/Lightbox.tsx +6 -4
- package/src/components/link/Link.tsx +11 -7
- package/src/components/link-preview/LinkPreview.tsx +3 -3
- package/src/components/list/List.tsx +4 -4
- package/src/components/list/ListDivider.tsx +3 -2
- package/src/components/list/ListItem.tsx +6 -5
- package/src/components/list/ListSubheader.tsx +3 -2
- package/src/components/list/useInteractiveList.tsx +7 -6
- package/src/components/message/Message.tsx +3 -3
- package/src/components/mosaic/Mosaic.test.tsx +3 -3
- package/src/components/mosaic/Mosaic.tsx +6 -5
- package/src/components/navigation/Navigation.stories.tsx +2 -2
- package/src/components/navigation/Navigation.tsx +3 -3
- package/src/components/navigation/NavigationItem.tsx +3 -9
- package/src/components/navigation/NavigationSection.tsx +3 -3
- package/src/components/notification/Notification.tsx +9 -5
- package/src/components/popover/Popover.stories.tsx +13 -15
- package/src/components/popover/Popover.test.tsx +6 -1
- package/src/components/popover/Popover.tsx +6 -6
- package/src/components/popover/usePopoverStyle.tsx +1 -3
- package/src/components/popover/useRestoreFocusOnClose.tsx +1 -1
- package/src/components/popover-dialog/PopoverDialog.tsx +3 -2
- package/src/components/post-block/PostBlock.tsx +11 -7
- package/src/components/progress/Progress.tsx +3 -3
- package/src/components/progress/ProgressCircular.tsx +3 -3
- package/src/components/progress/ProgressLinear.tsx +3 -3
- package/src/components/progress-tracker/ProgressTracker.stories.tsx +11 -11
- package/src/components/progress-tracker/ProgressTracker.tsx +4 -3
- package/src/components/progress-tracker/ProgressTrackerStep.tsx +3 -3
- package/src/components/progress-tracker/ProgressTrackerStepPanel.tsx +2 -0
- package/src/components/radio-button/RadioButton.tsx +3 -3
- package/src/components/radio-button/RadioGroup.stories.tsx +1 -4
- package/src/components/radio-button/RadioGroup.tsx +3 -2
- package/src/components/select/Select.stories.tsx +19 -38
- package/src/components/select/Select.tsx +5 -5
- package/src/components/select/SelectMultiple.stories.tsx +15 -30
- package/src/components/select/SelectMultiple.tsx +3 -4
- package/src/components/select/WithSelectContext.tsx +3 -4
- package/src/components/select/constants.ts +3 -1
- package/src/components/side-navigation/SideNavigation.stories.tsx +1 -1
- package/src/components/side-navigation/SideNavigation.tsx +4 -3
- package/src/components/side-navigation/SideNavigationItem.tsx +7 -7
- package/src/components/skeleton/SkeletonCircle.tsx +3 -3
- package/src/components/skeleton/SkeletonRectangle.tsx +3 -3
- package/src/components/skeleton/SkeletonTypography.stories.tsx +7 -12
- package/src/components/skeleton/SkeletonTypography.tsx +3 -3
- package/src/components/slider/Slider.tsx +4 -4
- package/src/components/slider/index.ts +1 -1
- package/src/components/slideshow/Slides.tsx +6 -4
- package/src/components/slideshow/Slideshow.stories.tsx +1 -3
- package/src/components/slideshow/Slideshow.tsx +3 -1
- package/src/components/slideshow/SlideshowControls.stories.tsx +1 -4
- package/src/components/slideshow/SlideshowControls.tsx +4 -4
- package/src/components/slideshow/SlideshowItem.tsx +5 -2
- package/src/components/slideshow/SlideshowItemGroup.tsx +5 -3
- package/src/components/switch/Switch.test.tsx +1 -1
- package/src/components/switch/Switch.tsx +7 -4
- package/src/components/table/Table.tsx +5 -3
- package/src/components/table/TableBody.tsx +7 -3
- package/src/components/table/TableCell.tsx +5 -3
- package/src/components/table/TableHeader.tsx +7 -3
- package/src/components/table/TableRow.tsx +5 -3
- package/src/components/tabs/TabList.tsx +1 -1
- package/src/components/tabs/TabPanel.tsx +2 -0
- package/src/components/tabs/Tabs.stories.tsx +12 -11
- package/src/components/text/Text.tsx +14 -5
- package/src/components/text-field/TextField.test.tsx +2 -2
- package/src/components/text-field/TextField.tsx +8 -7
- package/src/components/thumbnail/Thumbnail.tsx +4 -4
- package/src/components/toolbar/Toolbar.tsx +3 -3
- package/src/components/tooltip/Tooltip.tsx +4 -4
- package/src/components/tooltip/context.tsx +1 -1
- package/src/components/tooltip/useInjectTooltipRef.tsx +1 -1
- package/src/components/uploader/Uploader.tsx +3 -3
- package/src/components/user-block/UserBlock.tsx +12 -10
- package/src/hooks/useCallbackOnEscape.ts +1 -1
- package/src/hooks/useClickAway.tsx +2 -1
- package/src/hooks/useFocusTrap.ts +1 -1
- package/src/hooks/useInterval.tsx +4 -1
- package/src/hooks/useKeyboardListNavigation.tsx +4 -2
- package/src/hooks/useSizeOnWindowResize.ts +10 -14
- package/src/hooks/useStopPropagation.ts +2 -1
- package/src/stories/decorators/withCombinations.tsx +1 -1
- package/src/testing/utils/commonTestsSuiteRTL.tsx +2 -2
- package/src/utils/ClickAwayProvider/ClickAwayProvider.tsx +4 -0
- package/src/utils/className/getRootClassName.test.ts +11 -0
- package/src/utils/className/getRootClassName.ts +24 -0
- package/src/utils/className/index.ts +1 -0
- package/src/utils/date/getMonthCalendar.ts +4 -3
- package/src/utils/{makeListenerTowerContext.ts → function/makeListenerTowerContext.ts} +2 -2
- package/src/utils/{collection/partitionMulti.ts → partitionMulti.ts} +12 -13
- package/src/utils/{flattenChildren.ts → react/flattenChildren.ts} +3 -2
- package/src/utils/{renderButtonOrLink.tsx → react/renderButtonOrLink.tsx} +1 -1
- package/src/utils/{skipRender.tsx → react/skipRender.tsx} +1 -1
- package/src/utils/type/index.ts +18 -18
- package/src/utils/type/isComponent.ts +33 -0
- package/utils/index.d.ts +4 -0
- package/utils/index.js +96 -1
- package/utils/index.js.map +1 -1
- package/_internal/index.js +0 -99
- package/_internal/index.js.map +0 -1
- package/src/utils/className.test.js +0 -41
- package/src/utils/collection/castArray.test.ts +0 -15
- package/src/utils/collection/castArray.ts +0 -3
- package/src/utils/collection/chunk.test.ts +0 -15
- package/src/utils/collection/chunk.ts +0 -6
- package/src/utils/collection/isEmpty.test.js +0 -20
- package/src/utils/collection/isEmpty.ts +0 -4
- package/src/utils/collection/last.ts +0 -2
- package/src/utils/collection/partitionMulti.test.ts +0 -35
- package/src/utils/collection/pull.test.ts +0 -17
- package/src/utils/collection/pull.ts +0 -7
- package/src/utils/collection/range.test.js +0 -9
- package/src/utils/collection/range.ts +0 -2
- package/src/utils/function/memoize.test.ts +0 -36
- package/src/utils/function/memoize.ts +0 -13
- package/src/utils/type/ComponentClassName.ts +0 -7
- package/src/utils/type/KebabCase.ts +0 -6
- /package/src/utils/{clamp.ts → number/clamp.ts} +0 -0
- /package/src/utils/{OnBeforeUnmount.tsx → react/OnBeforeUnmount.tsx} +0 -0
- /package/src/utils/{mergeRefs.ts → react/mergeRefs.ts} +0 -0
- /package/src/utils/{renderLink.tsx → react/renderLink.tsx} +0 -0
package/index.d.ts
CHANGED
|
@@ -306,6 +306,10 @@ interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
|
|
|
306
306
|
onClick(): void;
|
|
307
307
|
label: string;
|
|
308
308
|
};
|
|
309
|
+
/**
|
|
310
|
+
* Children
|
|
311
|
+
*/
|
|
312
|
+
children?: React.ReactNode;
|
|
309
313
|
}
|
|
310
314
|
/**
|
|
311
315
|
* AlertDialog component.
|
|
@@ -599,6 +603,8 @@ interface BaseButtonProps extends GenericProps, Pick<AriaAttributes, 'aria-expan
|
|
|
599
603
|
type?: HTMLButtonProps['type'];
|
|
600
604
|
/** Custom react component for the link (can be used to inject react router Link). */
|
|
601
605
|
linkAs?: 'a' | any;
|
|
606
|
+
/** Children */
|
|
607
|
+
children?: React.ReactNode;
|
|
602
608
|
}
|
|
603
609
|
|
|
604
610
|
/**
|
|
@@ -668,7 +674,12 @@ declare const IconButton: Comp<IconButtonProps, HTMLButtonElement>;
|
|
|
668
674
|
/**
|
|
669
675
|
* Defines the props of the component
|
|
670
676
|
*/
|
|
671
|
-
|
|
677
|
+
interface ButtonGroupProps extends GenericProps {
|
|
678
|
+
/**
|
|
679
|
+
* Children
|
|
680
|
+
*/
|
|
681
|
+
children?: React.ReactNode;
|
|
682
|
+
}
|
|
672
683
|
/**
|
|
673
684
|
* ButtonGroup component.
|
|
674
685
|
*
|
|
@@ -676,7 +687,7 @@ type ButtonGroupProps = GenericProps;
|
|
|
676
687
|
* @param ref Component ref.
|
|
677
688
|
* @return React element.
|
|
678
689
|
*/
|
|
679
|
-
declare const ButtonGroup: Comp<
|
|
690
|
+
declare const ButtonGroup: Comp<ButtonGroupProps, HTMLDivElement>;
|
|
680
691
|
|
|
681
692
|
/**
|
|
682
693
|
* Defines the props of the component.
|
|
@@ -740,6 +751,8 @@ interface ChipProps extends GenericProps, HasTheme {
|
|
|
740
751
|
onAfterClick?: MouseEventHandler;
|
|
741
752
|
/** On "before" element clicked callback. */
|
|
742
753
|
onBeforeClick?: MouseEventHandler;
|
|
754
|
+
/** Children */
|
|
755
|
+
children?: React.ReactNode;
|
|
743
756
|
}
|
|
744
757
|
/**
|
|
745
758
|
* Chip component.
|
|
@@ -962,6 +975,8 @@ interface DialogProps extends GenericProps {
|
|
|
962
975
|
onVisibilityChange?(isVisible: boolean): void;
|
|
963
976
|
/** whether to disable the scroll on the body or not */
|
|
964
977
|
disableBodyScroll?: boolean;
|
|
978
|
+
/** Children */
|
|
979
|
+
children?: React.ReactNode;
|
|
965
980
|
}
|
|
966
981
|
type DialogSizes = Extract<Size, 'tiny' | 'regular' | 'big' | 'huge'>;
|
|
967
982
|
/**
|
|
@@ -1207,6 +1222,8 @@ interface ExpansionPanelProps extends GenericProps, HasTheme {
|
|
|
1207
1222
|
toggleButtonProps: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis' | 'color'>;
|
|
1208
1223
|
/** On toggle open or close callback. */
|
|
1209
1224
|
onToggleOpen?(shouldOpen: boolean, event: React.MouseEvent): void;
|
|
1225
|
+
/** Children */
|
|
1226
|
+
children?: React.ReactNode;
|
|
1210
1227
|
}
|
|
1211
1228
|
/**
|
|
1212
1229
|
* ExpansionPanel component.
|
|
@@ -1275,13 +1292,24 @@ interface FlexBoxProps extends GenericProps {
|
|
|
1275
1292
|
*/
|
|
1276
1293
|
declare const FlexBox: Comp<FlexBoxProps, HTMLDivElement>;
|
|
1277
1294
|
|
|
1278
|
-
type GenericBlockGapSize = Extract<Size, 'tiny' | 'regular' | 'medium' | 'big' | 'huge'>;
|
|
1279
1295
|
/**
|
|
1280
1296
|
* Accepted gap sizes for the generic block.
|
|
1281
1297
|
*/
|
|
1282
|
-
declare const GenericBlockGapSize: {
|
|
1283
|
-
|
|
1284
|
-
|
|
1298
|
+
declare const GenericBlockGapSize: Pick<{
|
|
1299
|
+
readonly xxs: "xxs";
|
|
1300
|
+
readonly xs: "xs";
|
|
1301
|
+
readonly s: "s";
|
|
1302
|
+
readonly m: "m";
|
|
1303
|
+
readonly l: "l";
|
|
1304
|
+
readonly xl: "xl";
|
|
1305
|
+
readonly xxl: "xxl";
|
|
1306
|
+
readonly tiny: "tiny";
|
|
1307
|
+
readonly regular: "regular";
|
|
1308
|
+
readonly medium: "medium";
|
|
1309
|
+
readonly big: "big";
|
|
1310
|
+
readonly huge: "huge";
|
|
1311
|
+
}, "big" | "tiny" | "regular" | "medium" | "huge">;
|
|
1312
|
+
type GenericBlockGapSize = ValueOf<typeof GenericBlockGapSize>;
|
|
1285
1313
|
|
|
1286
1314
|
interface GenericBlockProps extends FlexBoxProps {
|
|
1287
1315
|
/**
|
|
@@ -1404,6 +1432,10 @@ interface TextProps extends GenericProps {
|
|
|
1404
1432
|
* Ignored when `truncate` is set to true or lines: 1
|
|
1405
1433
|
* */
|
|
1406
1434
|
whiteSpace?: WhiteSpace;
|
|
1435
|
+
/**
|
|
1436
|
+
* Children
|
|
1437
|
+
*/
|
|
1438
|
+
children?: React.ReactNode;
|
|
1407
1439
|
}
|
|
1408
1440
|
/**
|
|
1409
1441
|
* Text component.
|
|
@@ -1422,6 +1454,10 @@ interface HeadingProps extends Partial<TextProps> {
|
|
|
1422
1454
|
* Display a specific heading level instead of the one provided by parent context provider.
|
|
1423
1455
|
*/
|
|
1424
1456
|
as?: HeadingElement;
|
|
1457
|
+
/**
|
|
1458
|
+
* Children
|
|
1459
|
+
*/
|
|
1460
|
+
children?: React.ReactNode;
|
|
1425
1461
|
}
|
|
1426
1462
|
/**
|
|
1427
1463
|
* Renders a heading component.
|
|
@@ -1461,6 +1497,8 @@ interface GridProps extends GenericProps {
|
|
|
1461
1497
|
hAlign?: Alignment;
|
|
1462
1498
|
/** Gutter size. */
|
|
1463
1499
|
gutter?: GridGutterSize;
|
|
1500
|
+
/** Children */
|
|
1501
|
+
children?: React.ReactNode;
|
|
1464
1502
|
}
|
|
1465
1503
|
/**
|
|
1466
1504
|
* Grid component.
|
|
@@ -1482,6 +1520,8 @@ interface GridItemProps extends GenericProps {
|
|
|
1482
1520
|
order?: Columns;
|
|
1483
1521
|
/** Width. */
|
|
1484
1522
|
width?: Columns;
|
|
1523
|
+
/** Children */
|
|
1524
|
+
children?: React.ReactNode;
|
|
1485
1525
|
}
|
|
1486
1526
|
/**
|
|
1487
1527
|
* GridItem component.
|
|
@@ -1791,6 +1831,10 @@ interface InlineListProps extends GenericProps {
|
|
|
1791
1831
|
* Activate line wrap on overflow.
|
|
1792
1832
|
*/
|
|
1793
1833
|
wrap?: boolean;
|
|
1834
|
+
/**
|
|
1835
|
+
* Children
|
|
1836
|
+
*/
|
|
1837
|
+
children?: React.ReactNode;
|
|
1794
1838
|
}
|
|
1795
1839
|
/**
|
|
1796
1840
|
* InlineList component.
|
|
@@ -1857,6 +1901,8 @@ interface LightboxProps extends GenericProps, HasTheme, Pick<AriaAttributes, 'ar
|
|
|
1857
1901
|
zIndex?: number;
|
|
1858
1902
|
/** On close callback. */
|
|
1859
1903
|
onClose?(): void;
|
|
1904
|
+
/** Children */
|
|
1905
|
+
children?: React.ReactNode;
|
|
1860
1906
|
}
|
|
1861
1907
|
/**
|
|
1862
1908
|
* Lightbox component.
|
|
@@ -1890,6 +1936,8 @@ interface LinkProps extends GenericProps {
|
|
|
1890
1936
|
target?: HTMLAnchorProps['target'];
|
|
1891
1937
|
/** Typography variant. */
|
|
1892
1938
|
typography?: Typography;
|
|
1939
|
+
/** Children */
|
|
1940
|
+
children?: React.ReactNode;
|
|
1893
1941
|
}
|
|
1894
1942
|
/**
|
|
1895
1943
|
* Link component.
|
|
@@ -2123,7 +2171,7 @@ declare const NavigationItem: (<E extends React.ElementType = "a">(props: React.
|
|
|
2123
2171
|
ref?: ComponentRef<E> | undefined;
|
|
2124
2172
|
}) => React.JSX.Element) & {
|
|
2125
2173
|
displayName: string;
|
|
2126
|
-
className:
|
|
2174
|
+
className: string;
|
|
2127
2175
|
};
|
|
2128
2176
|
|
|
2129
2177
|
type NavigationProps = React.ComponentProps<'nav'> & HasClassName & HasTheme & {
|
|
@@ -2358,6 +2406,8 @@ interface ProgressTrackerStepPanelProps extends GenericProps {
|
|
|
2358
2406
|
id?: string;
|
|
2359
2407
|
/** Whether the step is active or not. */
|
|
2360
2408
|
isActive?: boolean;
|
|
2409
|
+
/** Children */
|
|
2410
|
+
children?: React.ReactNode;
|
|
2361
2411
|
}
|
|
2362
2412
|
/**
|
|
2363
2413
|
* ProgressTrackerStepPanel component.
|
|
@@ -2469,6 +2519,8 @@ interface CoreSelectProps extends GenericProps, HasTheme {
|
|
|
2469
2519
|
onInfiniteScroll?(): void;
|
|
2470
2520
|
/** Render value function. Default: Renders the value as a string. */
|
|
2471
2521
|
selectedValueRender?(choice: string): ReactNode | string;
|
|
2522
|
+
/** Children */
|
|
2523
|
+
children?: React.ReactNode;
|
|
2472
2524
|
}
|
|
2473
2525
|
|
|
2474
2526
|
/** Defines the props of the component. */
|
|
@@ -2686,6 +2738,8 @@ interface SlideshowProps extends GenericProps, Pick<SlidesProps, 'autoPlay' | 's
|
|
|
2686
2738
|
slideshowControlsProps?: Pick<SlideshowControlsProps, 'nextButtonProps' | 'previousButtonProps' | 'paginationItemProps'> & Omit<SlideshowControlsProps, 'activeIndex' | 'onPaginationClick' | 'onNextClick' | 'onPreviousClick' | 'slidesCount' | 'parentRef' | 'theme'>;
|
|
2687
2739
|
/** Callback when slide changes */
|
|
2688
2740
|
onChange?(index: number): void;
|
|
2741
|
+
/** Children */
|
|
2742
|
+
children?: React.ReactNode;
|
|
2689
2743
|
}
|
|
2690
2744
|
/**
|
|
2691
2745
|
* Slideshow component.
|
|
@@ -2702,6 +2756,8 @@ declare const Slideshow: Comp<SlideshowProps, HTMLDivElement>;
|
|
|
2702
2756
|
interface SlideshowItemProps extends GenericProps {
|
|
2703
2757
|
/** interval in which slides are automatically shown */
|
|
2704
2758
|
interval?: number;
|
|
2759
|
+
/** Children */
|
|
2760
|
+
children?: React.ReactNode;
|
|
2705
2761
|
}
|
|
2706
2762
|
/**
|
|
2707
2763
|
* SlideshowItem component.
|
|
@@ -2842,6 +2898,8 @@ interface SlidesProps extends GenericProps, HasTheme {
|
|
|
2842
2898
|
* Receives the group position starting from 1 and the total number of groups.
|
|
2843
2899
|
* */
|
|
2844
2900
|
slideGroupLabel?: (groupPosition: number, groupTotal: number) => string;
|
|
2901
|
+
/** Children */
|
|
2902
|
+
children?: React.ReactNode;
|
|
2845
2903
|
}
|
|
2846
2904
|
/**
|
|
2847
2905
|
* Slides component.
|
|
@@ -2872,6 +2930,8 @@ interface SwitchProps extends GenericProps, HasTheme {
|
|
|
2872
2930
|
onChange?(isChecked: boolean, value?: string, name?: string, event?: SyntheticEvent): void;
|
|
2873
2931
|
/** optional props for input */
|
|
2874
2932
|
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
2933
|
+
/** Children */
|
|
2934
|
+
children?: React.ReactNode;
|
|
2875
2935
|
}
|
|
2876
2936
|
/**
|
|
2877
2937
|
* Switch component.
|
|
@@ -2890,6 +2950,8 @@ interface TableProps extends GenericProps, HasTheme {
|
|
|
2890
2950
|
hasBefore?: boolean;
|
|
2891
2951
|
/** Whether the table has dividers or not. */
|
|
2892
2952
|
hasDividers?: boolean;
|
|
2953
|
+
/** Children */
|
|
2954
|
+
children?: React.ReactNode;
|
|
2893
2955
|
}
|
|
2894
2956
|
/**
|
|
2895
2957
|
* Table component.
|
|
@@ -2903,7 +2965,10 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
|
|
|
2903
2965
|
/**
|
|
2904
2966
|
* Defines the props of the component.
|
|
2905
2967
|
*/
|
|
2906
|
-
|
|
2968
|
+
interface TableBodyProps extends GenericProps {
|
|
2969
|
+
/** Children */
|
|
2970
|
+
children?: React.ReactNode;
|
|
2971
|
+
}
|
|
2907
2972
|
/**
|
|
2908
2973
|
* TableBody component.
|
|
2909
2974
|
*
|
|
@@ -2911,7 +2976,7 @@ type TableBodyProps = GenericProps;
|
|
|
2911
2976
|
* @param ref Component ref.
|
|
2912
2977
|
* @return React element.
|
|
2913
2978
|
*/
|
|
2914
|
-
declare const TableBody: Comp<
|
|
2979
|
+
declare const TableBody: Comp<TableBodyProps, HTMLTableSectionElement>;
|
|
2915
2980
|
|
|
2916
2981
|
/**
|
|
2917
2982
|
* Table head cell sort order.
|
|
@@ -2943,6 +3008,8 @@ interface TableCellProps extends GenericProps {
|
|
|
2943
3008
|
variant?: TableCellVariant;
|
|
2944
3009
|
/** On header cell click callback. */
|
|
2945
3010
|
onHeaderClick?(): void;
|
|
3011
|
+
/** Children */
|
|
3012
|
+
children?: React.ReactNode;
|
|
2946
3013
|
}
|
|
2947
3014
|
/**
|
|
2948
3015
|
* TableCell component.
|
|
@@ -2956,7 +3023,10 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
|
|
|
2956
3023
|
/**
|
|
2957
3024
|
* Defines the props of the component.
|
|
2958
3025
|
*/
|
|
2959
|
-
|
|
3026
|
+
interface TableHeaderProps extends GenericProps {
|
|
3027
|
+
/** Children */
|
|
3028
|
+
children?: React.ReactNode;
|
|
3029
|
+
}
|
|
2960
3030
|
/**
|
|
2961
3031
|
* TableHeader component.
|
|
2962
3032
|
*
|
|
@@ -2964,7 +3034,7 @@ type TableHeaderProps = GenericProps;
|
|
|
2964
3034
|
* @param ref Component ref.
|
|
2965
3035
|
* @return React element.
|
|
2966
3036
|
*/
|
|
2967
|
-
declare const TableHeader: Comp<
|
|
3037
|
+
declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
|
|
2968
3038
|
|
|
2969
3039
|
/**
|
|
2970
3040
|
* Defines the props of the component.
|
|
@@ -2976,6 +3046,8 @@ interface TableRowProps extends GenericProps {
|
|
|
2976
3046
|
isDisabled?: boolean;
|
|
2977
3047
|
/** Whether the component is selected or not. */
|
|
2978
3048
|
isSelected?: boolean;
|
|
3049
|
+
/** Children */
|
|
3050
|
+
children?: React.ReactNode;
|
|
2979
3051
|
}
|
|
2980
3052
|
/**
|
|
2981
3053
|
* TableRow component.
|
|
@@ -3075,6 +3147,8 @@ interface TabPanelProps extends GenericProps {
|
|
|
3075
3147
|
id?: string;
|
|
3076
3148
|
/** Whether the tab is active or not. */
|
|
3077
3149
|
isActive?: boolean;
|
|
3150
|
+
/** Children */
|
|
3151
|
+
children?: React.ReactNode;
|
|
3078
3152
|
}
|
|
3079
3153
|
/**
|
|
3080
3154
|
* TabPanel component.
|
|
@@ -3092,7 +3166,7 @@ declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
|
|
|
3092
3166
|
*/
|
|
3093
3167
|
interface TextFieldProps extends GenericProps, HasTheme {
|
|
3094
3168
|
/** Chip Group to be rendered before the main text input. */
|
|
3095
|
-
chips?:
|
|
3169
|
+
chips?: ReactNode;
|
|
3096
3170
|
/** Props to pass to the clear button (minus those already set by the TextField props). If not specified, the button won't be displayed. */
|
|
3097
3171
|
clearButtonProps?: Pick<IconButtonProps, 'label'> & Omit<IconButtonProps, 'label' | 'onClick' | 'icon' | 'emphasis'>;
|
|
3098
3172
|
/** Error message. */
|