@lumx/react 4.3.2-alpha.2 → 4.3.2-alpha.20
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/DpdvhbTO.js +1 -1
- package/index.d.ts +198 -72
- package/index.js +622 -326
- package/index.js.map +1 -1
- package/package.json +18 -3
- package/utils/index.d.ts +6 -1
- package/utils/index.js +7 -7
package/CONTRIBUTING.md
CHANGED
|
@@ -41,18 +41,6 @@ Before opening a Pull Request, please see the Submission Guidelines below.
|
|
|
41
41
|
You can request a new feature by submitting an issue to our [GitHub Repository](https://github.com/lumapps/design-system/issues).
|
|
42
42
|
If you would like to implement a new feature then consider what kind of change it is, discuss it with us before hand in your issue, so that we can better coordinate our efforts, prevent duplication of work, and help you to craft the change so that it is successfully accepted into the project.
|
|
43
43
|
|
|
44
|
-
## <a name="create-a-new-react-component-"></a> Want to create a new React Component?
|
|
45
|
-
|
|
46
|
-
The first step to create a new React component is to run:
|
|
47
|
-
|
|
48
|
-
```
|
|
49
|
-
yarn scaffold
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
This script will generate a TSX file for the component code, a TSX file for the component tests and an MDX file to demo this component.
|
|
53
|
-
|
|
54
|
-
To export your component into the `@lumx/react` NPM package, you also have to make sure to update the `src/index.tsx` file.
|
|
55
|
-
|
|
56
44
|
## <a name="submission-guidelines"></a> Submission guidelines
|
|
57
45
|
|
|
58
46
|
### Submitting an issue
|
package/_internal/DpdvhbTO.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React__default, { useContext, useEffect, useMemo, useRef, createContext } from 'react';
|
|
2
2
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
3
|
-
import isEmpty from 'lodash/isEmpty';
|
|
3
|
+
import isEmpty from 'lodash/isEmpty.js';
|
|
4
4
|
import { createPortal } from 'react-dom';
|
|
5
5
|
|
|
6
6
|
const DisabledStateContext = /*#__PURE__*/React__default.createContext({
|
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, HasCloseMode,
|
|
4
|
+
import { GenericProps, HasTheme as HasTheme$1, ValueOf as ValueOf$1, HasAriaDisabled as HasAriaDisabled$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
7
|
import React__default, { Ref, ReactElement, ReactNode, SyntheticEvent, MouseEventHandler, KeyboardEventHandler, AriaAttributes, 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;
|
|
@@ -654,7 +683,7 @@ interface ButtonProps extends GenericProps, ButtonProps$1 {
|
|
|
654
683
|
* @param ref Component ref.
|
|
655
684
|
* @return React element.
|
|
656
685
|
*/
|
|
657
|
-
declare const Button: Comp<ButtonProps,
|
|
686
|
+
declare const Button: Comp<ButtonProps, HTMLAnchorElement | HTMLButtonElement>;
|
|
658
687
|
|
|
659
688
|
interface IconButtonProps$1 extends BaseButtonProps {
|
|
660
689
|
/**
|
|
@@ -1705,54 +1734,42 @@ interface IconProps extends Omit<IconProps$1, 'children'>, GenericProps {
|
|
|
1705
1734
|
*/
|
|
1706
1735
|
declare const Icon: Comp<IconProps, HTMLElement>;
|
|
1707
1736
|
|
|
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
1737
|
/**
|
|
1716
1738
|
* Loading attribute is not yet supported in typescript, so we need
|
|
1717
1739
|
* to add it in order to avoid a ts error.
|
|
1718
1740
|
* https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
|
|
1719
1741
|
*/
|
|
1720
1742
|
declare module 'react' {
|
|
1721
|
-
interface ImgHTMLAttributes<T> extends
|
|
1743
|
+
interface ImgHTMLAttributes<T> extends React.HTMLAttributes<T> {
|
|
1722
1744
|
loading?: 'eager' | 'lazy';
|
|
1723
1745
|
}
|
|
1724
1746
|
}
|
|
1725
|
-
/**
|
|
1726
|
-
* All available aspect ratios.
|
|
1727
|
-
* @deprecated
|
|
1728
|
-
*/
|
|
1729
|
-
declare const ThumbnailAspectRatio: Record<string, AspectRatio$1>;
|
|
1730
1747
|
/**
|
|
1731
1748
|
* Thumbnail sizes.
|
|
1732
1749
|
*/
|
|
1733
|
-
type ThumbnailSize = Extract<Size
|
|
1750
|
+
type ThumbnailSize$1 = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1734
1751
|
/**
|
|
1735
1752
|
* Thumbnail variants.
|
|
1736
1753
|
*/
|
|
1737
|
-
declare const ThumbnailVariant: {
|
|
1754
|
+
declare const ThumbnailVariant$1: {
|
|
1738
1755
|
readonly squared: "squared";
|
|
1739
1756
|
readonly rounded: "rounded";
|
|
1740
1757
|
};
|
|
1741
|
-
type ThumbnailVariant = ValueOf
|
|
1758
|
+
type ThumbnailVariant$1 = ValueOf<typeof ThumbnailVariant$1>;
|
|
1742
1759
|
/**
|
|
1743
1760
|
* Thumbnail object fit.
|
|
1744
1761
|
*/
|
|
1745
|
-
declare const ThumbnailObjectFit: {
|
|
1762
|
+
declare const ThumbnailObjectFit$1: {
|
|
1746
1763
|
readonly cover: "cover";
|
|
1747
1764
|
readonly contain: "contain";
|
|
1748
1765
|
};
|
|
1749
|
-
type ThumbnailObjectFit = ValueOf
|
|
1766
|
+
type ThumbnailObjectFit$1 = ValueOf<typeof ThumbnailObjectFit$1>;
|
|
1750
1767
|
|
|
1751
1768
|
type ImgHTMLProps = ImgHTMLAttributes<HTMLImageElement>;
|
|
1752
1769
|
/**
|
|
1753
1770
|
* Defines the props of the component.
|
|
1754
1771
|
*/
|
|
1755
|
-
interface ThumbnailProps extends
|
|
1772
|
+
interface ThumbnailProps$1 extends HasTheme$1, HasClassName$1 {
|
|
1756
1773
|
/** Alignment of the thumbnail in it's parent (requires flex parent). */
|
|
1757
1774
|
align?: HorizontalAlignment$1;
|
|
1758
1775
|
/** Image alternative text. */
|
|
@@ -1760,41 +1777,98 @@ interface ThumbnailProps extends GenericProps, HasTheme$1 {
|
|
|
1760
1777
|
/** Image aspect ratio. */
|
|
1761
1778
|
aspectRatio?: AspectRatio$1;
|
|
1762
1779
|
/** Badge. */
|
|
1763
|
-
badge?:
|
|
1780
|
+
badge?: JSXElement$1;
|
|
1764
1781
|
/** Image cross origin resource policy. */
|
|
1765
1782
|
crossOrigin?: ImgHTMLProps['crossOrigin'];
|
|
1766
1783
|
/** Fallback icon (SVG path) or react node when image fails to load. */
|
|
1767
|
-
fallback?: string |
|
|
1784
|
+
fallback?: string | JSXElement$1;
|
|
1768
1785
|
/** Whether the thumbnail should fill it's parent size (requires flex parent) or not. */
|
|
1769
1786
|
fillHeight?: boolean;
|
|
1770
|
-
/** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
|
|
1771
|
-
focusPoint?: FocusPoint;
|
|
1772
1787
|
/** Image URL. */
|
|
1773
1788
|
image: string;
|
|
1789
|
+
loadingState: string;
|
|
1774
1790
|
/** Props to inject into the native <img> element. */
|
|
1775
1791
|
imgProps?: ImgHTMLProps;
|
|
1776
1792
|
/** Reference to the native <img> element. */
|
|
1777
|
-
imgRef?:
|
|
1793
|
+
imgRef?: CommonRef$1;
|
|
1794
|
+
ref?: CommonRef$1;
|
|
1778
1795
|
/** Set to true to force the display of the loading skeleton. */
|
|
1779
1796
|
isLoading?: boolean;
|
|
1780
1797
|
/** Set how the image should fit when its aspect ratio is constrained */
|
|
1781
|
-
objectFit?: ThumbnailObjectFit;
|
|
1798
|
+
objectFit?: ThumbnailObjectFit$1;
|
|
1782
1799
|
/** Size variant of the component. */
|
|
1783
|
-
size?: ThumbnailSize;
|
|
1800
|
+
size?: ThumbnailSize$1;
|
|
1784
1801
|
/** Image loading mode. */
|
|
1785
|
-
loading?:
|
|
1802
|
+
loading?: 'eager' | 'lazy';
|
|
1786
1803
|
/** Ref of an existing placeholder image to display while loading. */
|
|
1787
|
-
loadingPlaceholderImageRef?:
|
|
1804
|
+
loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement>;
|
|
1788
1805
|
/** On click callback. */
|
|
1789
|
-
onClick?:
|
|
1806
|
+
onClick?: (event: any) => void;
|
|
1790
1807
|
/** On key press callback. */
|
|
1791
|
-
onKeyPress?:
|
|
1808
|
+
onKeyPress?: (event: any) => void;
|
|
1792
1809
|
/** Variant of the component. */
|
|
1793
|
-
variant?: ThumbnailVariant;
|
|
1810
|
+
variant?: ThumbnailVariant$1;
|
|
1794
1811
|
/** Props to pass to the link wrapping the thumbnail. */
|
|
1795
|
-
linkProps?:
|
|
1812
|
+
linkProps?: GenericProps;
|
|
1813
|
+
focusPointStyle?: GenericProps;
|
|
1814
|
+
disabledStateProps?: GenericProps;
|
|
1815
|
+
isAnyDisabled?: boolean;
|
|
1796
1816
|
/** Custom react component for the link (can be used to inject react router Link). */
|
|
1797
1817
|
linkAs?: 'a' | any;
|
|
1818
|
+
'aria-label'?: string;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
/**
|
|
1822
|
+
* Focal point using vertical alignment, horizontal alignment or coordinates (from -1 to 1).
|
|
1823
|
+
*/
|
|
1824
|
+
type FocusPoint = {
|
|
1825
|
+
x?: number;
|
|
1826
|
+
y?: number;
|
|
1827
|
+
};
|
|
1828
|
+
/**
|
|
1829
|
+
* Loading attribute is not yet supported in typescript, so we need
|
|
1830
|
+
* to add it in order to avoid a ts error.
|
|
1831
|
+
* https://github.com/typescript-cheatsheets/react-typescript-cheatsheet/blob/master/ADVANCED.md#adding-non-standard-attributes
|
|
1832
|
+
*/
|
|
1833
|
+
declare module 'react' {
|
|
1834
|
+
interface ImgHTMLAttributes<T> extends React__default.HTMLAttributes<T> {
|
|
1835
|
+
loading?: 'eager' | 'lazy';
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
/**
|
|
1839
|
+
* All available aspect ratios.
|
|
1840
|
+
* @deprecated
|
|
1841
|
+
*/
|
|
1842
|
+
declare const ThumbnailAspectRatio: Record<string, AspectRatio$1>;
|
|
1843
|
+
/**
|
|
1844
|
+
* Thumbnail sizes.
|
|
1845
|
+
*/
|
|
1846
|
+
type ThumbnailSize = Extract<Size$1, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl'>;
|
|
1847
|
+
/**
|
|
1848
|
+
* Thumbnail variants.
|
|
1849
|
+
*/
|
|
1850
|
+
declare const ThumbnailVariant: {
|
|
1851
|
+
readonly squared: "squared";
|
|
1852
|
+
readonly rounded: "rounded";
|
|
1853
|
+
};
|
|
1854
|
+
type ThumbnailVariant = ValueOf$1<typeof ThumbnailVariant>;
|
|
1855
|
+
/**
|
|
1856
|
+
* Thumbnail object fit.
|
|
1857
|
+
*/
|
|
1858
|
+
declare const ThumbnailObjectFit: {
|
|
1859
|
+
readonly cover: "cover";
|
|
1860
|
+
readonly contain: "contain";
|
|
1861
|
+
};
|
|
1862
|
+
type ThumbnailObjectFit = ValueOf$1<typeof ThumbnailObjectFit>;
|
|
1863
|
+
|
|
1864
|
+
/**
|
|
1865
|
+
* Defines the props of the component.
|
|
1866
|
+
*/
|
|
1867
|
+
interface ThumbnailProps extends GenericProps, Omit<ThumbnailProps$1, 'loadingState' | 'isAnyDisabled' | 'focusPointStyle' | 'disabledStateProps' | 'badge'> {
|
|
1868
|
+
/** Apply relative vertical and horizontal shift (from -1 to 1) on the image position inside the thumbnail. */
|
|
1869
|
+
focusPoint?: FocusPoint;
|
|
1870
|
+
/** Badge. */
|
|
1871
|
+
badge?: ReactElement | Falsy;
|
|
1798
1872
|
}
|
|
1799
1873
|
/**
|
|
1800
1874
|
* Thumbnail component.
|
|
@@ -2097,7 +2171,7 @@ interface LinkProps extends GenericProps, Omit<LinkProps$1, 'label'> {
|
|
|
2097
2171
|
* @param ref Component ref.
|
|
2098
2172
|
* @return React element.
|
|
2099
2173
|
*/
|
|
2100
|
-
declare const Link: Comp<LinkProps,
|
|
2174
|
+
declare const Link: Comp<LinkProps, HTMLAnchorElement | HTMLButtonElement>;
|
|
2101
2175
|
|
|
2102
2176
|
/**
|
|
2103
2177
|
* Defines the props of the component.
|
|
@@ -3171,11 +3245,21 @@ declare const Switch: Comp<SwitchProps, HTMLDivElement>;
|
|
|
3171
3245
|
/**
|
|
3172
3246
|
* Defines the props of the component.
|
|
3173
3247
|
*/
|
|
3174
|
-
interface TableProps extends
|
|
3248
|
+
interface TableProps$1 extends HasTheme, HasClassName {
|
|
3175
3249
|
/** Whether the table has checkbox or thumbnail on first cell or not. */
|
|
3176
3250
|
hasBefore?: boolean;
|
|
3177
3251
|
/** Whether the table has dividers or not. */
|
|
3178
3252
|
hasDividers?: boolean;
|
|
3253
|
+
/** Children */
|
|
3254
|
+
children?: JSXElement;
|
|
3255
|
+
/** reference to the root element */
|
|
3256
|
+
ref?: CommonRef;
|
|
3257
|
+
}
|
|
3258
|
+
|
|
3259
|
+
/**
|
|
3260
|
+
* Defines the props of the component.
|
|
3261
|
+
*/
|
|
3262
|
+
interface TableProps extends GenericProps, Omit<TableProps$1, 'ref'> {
|
|
3179
3263
|
/** Children */
|
|
3180
3264
|
children?: React.ReactNode;
|
|
3181
3265
|
}
|
|
@@ -3191,7 +3275,17 @@ declare const Table: Comp<TableProps, HTMLTableElement>;
|
|
|
3191
3275
|
/**
|
|
3192
3276
|
* Defines the props of the component.
|
|
3193
3277
|
*/
|
|
3194
|
-
interface TableBodyProps extends
|
|
3278
|
+
interface TableBodyProps$1 extends HasClassName {
|
|
3279
|
+
/** Children */
|
|
3280
|
+
children?: JSXElement;
|
|
3281
|
+
/** reference to the root element */
|
|
3282
|
+
ref?: CommonRef;
|
|
3283
|
+
}
|
|
3284
|
+
|
|
3285
|
+
/**
|
|
3286
|
+
* Defines the props of the component.
|
|
3287
|
+
*/
|
|
3288
|
+
interface TableBodyProps extends GenericProps, Omit<TableBodyProps$1, 'ref'> {
|
|
3195
3289
|
/** Children */
|
|
3196
3290
|
children?: React.ReactNode;
|
|
3197
3291
|
}
|
|
@@ -3211,7 +3305,7 @@ declare const ThOrder: {
|
|
|
3211
3305
|
readonly asc: "asc";
|
|
3212
3306
|
readonly desc: "desc";
|
|
3213
3307
|
};
|
|
3214
|
-
type ThOrder = ValueOf
|
|
3308
|
+
type ThOrder = ValueOf<typeof ThOrder>;
|
|
3215
3309
|
/**
|
|
3216
3310
|
* Table cell variants.
|
|
3217
3311
|
*/
|
|
@@ -3219,11 +3313,11 @@ declare const TableCellVariant: {
|
|
|
3219
3313
|
readonly body: "body";
|
|
3220
3314
|
readonly head: "head";
|
|
3221
3315
|
};
|
|
3222
|
-
type TableCellVariant = ValueOf
|
|
3316
|
+
type TableCellVariant = ValueOf<typeof TableCellVariant>;
|
|
3223
3317
|
/**
|
|
3224
3318
|
* Defines the props of the component.
|
|
3225
3319
|
*/
|
|
3226
|
-
interface TableCellProps extends
|
|
3320
|
+
interface TableCellProps$1 extends HasClassName {
|
|
3227
3321
|
/** Icon (SVG path).(thead only). */
|
|
3228
3322
|
icon?: string;
|
|
3229
3323
|
/** Whether the column is sortable or not (thead only). */
|
|
@@ -3234,6 +3328,16 @@ interface TableCellProps extends GenericProps {
|
|
|
3234
3328
|
variant?: TableCellVariant;
|
|
3235
3329
|
/** On header cell click callback. */
|
|
3236
3330
|
onHeaderClick?(): void;
|
|
3331
|
+
/** Children */
|
|
3332
|
+
children?: JSXElement;
|
|
3333
|
+
/** reference to the root element */
|
|
3334
|
+
ref?: CommonRef;
|
|
3335
|
+
}
|
|
3336
|
+
|
|
3337
|
+
/**
|
|
3338
|
+
* Defines the props of the component.
|
|
3339
|
+
*/
|
|
3340
|
+
interface TableCellProps extends GenericProps, Omit<TableCellProps$1, 'ref'> {
|
|
3237
3341
|
/** Children */
|
|
3238
3342
|
children?: React.ReactNode;
|
|
3239
3343
|
}
|
|
@@ -3249,7 +3353,17 @@ declare const TableCell: Comp<TableCellProps, HTMLTableCellElement>;
|
|
|
3249
3353
|
/**
|
|
3250
3354
|
* Defines the props of the component.
|
|
3251
3355
|
*/
|
|
3252
|
-
interface TableHeaderProps extends
|
|
3356
|
+
interface TableHeaderProps$1 extends HasClassName {
|
|
3357
|
+
/** Children */
|
|
3358
|
+
children?: JSXElement;
|
|
3359
|
+
/** reference to the root element */
|
|
3360
|
+
ref?: CommonRef;
|
|
3361
|
+
}
|
|
3362
|
+
|
|
3363
|
+
/**
|
|
3364
|
+
* Defines the props of the component.
|
|
3365
|
+
*/
|
|
3366
|
+
interface TableHeaderProps extends GenericProps, Omit<TableHeaderProps$1, 'ref'> {
|
|
3253
3367
|
/** Children */
|
|
3254
3368
|
children?: React.ReactNode;
|
|
3255
3369
|
}
|
|
@@ -3265,13 +3379,25 @@ declare const TableHeader: Comp<TableHeaderProps, HTMLTableSectionElement>;
|
|
|
3265
3379
|
/**
|
|
3266
3380
|
* Defines the props of the component.
|
|
3267
3381
|
*/
|
|
3268
|
-
interface TableRowProps extends
|
|
3382
|
+
interface TableRowProps$1 extends HasClassName, HasAriaDisabled {
|
|
3269
3383
|
/** Whether the component is clickable or not. */
|
|
3270
3384
|
isClickable?: boolean;
|
|
3271
|
-
/** Whether the component is disabled or not. */
|
|
3272
|
-
isDisabled?: boolean;
|
|
3273
3385
|
/** Whether the component is selected or not. */
|
|
3274
3386
|
isSelected?: boolean;
|
|
3387
|
+
/** Tab index */
|
|
3388
|
+
tabIndex?: number;
|
|
3389
|
+
/** Children */
|
|
3390
|
+
children?: JSXElement;
|
|
3391
|
+
/** reference to the root element */
|
|
3392
|
+
ref?: CommonRef;
|
|
3393
|
+
}
|
|
3394
|
+
|
|
3395
|
+
/**
|
|
3396
|
+
* Defines the props of the component.
|
|
3397
|
+
*/
|
|
3398
|
+
interface TableRowProps extends GenericProps, Omit<TableRowProps$1, 'ref' | 'tabIndex' | 'aria-disabled'> {
|
|
3399
|
+
/** Whether the component is disabled or not. */
|
|
3400
|
+
isDisabled?: boolean;
|
|
3275
3401
|
/** Children */
|
|
3276
3402
|
children?: React.ReactNode;
|
|
3277
3403
|
}
|
|
@@ -3653,5 +3779,5 @@ declare const ThemeProvider: React__default.FC<{
|
|
|
3653
3779
|
/** Get the theme in the current context. */
|
|
3654
3780
|
declare function useTheme(): ThemeContextValue;
|
|
3655
3781
|
|
|
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 };
|
|
3782
|
+
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, 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 };
|
|
3657
3783
|
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 };
|