@lumx/react 4.2.0 → 4.2.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +25 -23
- package/index.js +1245 -859
- package/index.js.map +1 -1
- package/package.json +5 -4
- package/utils/index.d.ts +64 -3
- package/utils/index.js +89 -3
- package/utils/index.js.map +1 -1
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Kind as Kind$1, HorizontalAlignment, Size as Size$1, ColorPalette as ColorPalette$1, VerticalAlignment, Alignment, Orientation, AspectRatio, ColorWithVariants as ColorWithVariants$1, ColorVariant as ColorVariant$1, Typography as Typography$1, Emphasis as Emphasis$1, GlobalSize, TypographyInterface as TypographyInterface$1, Theme as Theme$1 } from '@lumx/core/js/constants';
|
|
2
2
|
export * from '@lumx/core/js/constants';
|
|
3
3
|
import * as _lumx_core_js_types from '@lumx/core/js/types';
|
|
4
|
-
import { GenericProps as GenericProps$1, HasTheme as HasTheme$1, ValueOf, HasAriaDisabled as HasAriaDisabled$1, HasCloseMode,
|
|
4
|
+
import { GenericProps as GenericProps$1, HasTheme as HasTheme$1, ValueOf, HasAriaDisabled as HasAriaDisabled$1, HasCloseMode, Falsy, HasClassName as HasClassName$1, 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, InputHTMLAttributes, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key, ElementType, ComponentProps } from 'react';
|
|
@@ -531,7 +531,7 @@ interface BaseButtonProps extends GenericProps, Pick<AriaAttributes, 'aria-expan
|
|
|
531
531
|
target?: '_self' | '_blank' | '_parent' | '_top';
|
|
532
532
|
/** Native button type. */
|
|
533
533
|
type?: 'submit' | 'reset' | 'button' | undefined;
|
|
534
|
-
/** Custom
|
|
534
|
+
/** Custom component for the link (can be used to inject router Link). */
|
|
535
535
|
linkAs?: 'a' | any;
|
|
536
536
|
}
|
|
537
537
|
|
|
@@ -622,7 +622,7 @@ interface ButtonGroupProps extends GenericProps {
|
|
|
622
622
|
/**
|
|
623
623
|
* Children
|
|
624
624
|
*/
|
|
625
|
-
children?:
|
|
625
|
+
children?: JSXElement;
|
|
626
626
|
}
|
|
627
627
|
|
|
628
628
|
/**
|
|
@@ -1179,16 +1179,20 @@ interface ExpansionPanelProps extends GenericProps$1, HasCloseMode, HasTheme$1 {
|
|
|
1179
1179
|
*/
|
|
1180
1180
|
declare const ExpansionPanel: Comp<ExpansionPanelProps, HTMLDivElement>;
|
|
1181
1181
|
|
|
1182
|
-
interface FlagProps extends GenericProps
|
|
1182
|
+
interface FlagProps$1 extends GenericProps, HasTheme {
|
|
1183
1183
|
/** Color of the component. */
|
|
1184
|
-
color?: ColorPalette
|
|
1184
|
+
color?: ColorPalette;
|
|
1185
1185
|
/** Icon to use before the label. */
|
|
1186
1186
|
icon?: string;
|
|
1187
1187
|
/** Text label of the flag. */
|
|
1188
|
-
|
|
1188
|
+
children: JSXElement;
|
|
1189
1189
|
/** Enable text truncate on overflow */
|
|
1190
1190
|
truncate?: boolean;
|
|
1191
1191
|
}
|
|
1192
|
+
|
|
1193
|
+
interface FlagProps extends Omit<FlagProps$1, 'children'> {
|
|
1194
|
+
label: React.ReactNode;
|
|
1195
|
+
}
|
|
1192
1196
|
/**
|
|
1193
1197
|
* Flag component.
|
|
1194
1198
|
*
|
|
@@ -1383,15 +1387,6 @@ interface TextProps extends GenericProps {
|
|
|
1383
1387
|
children?: JSXElement;
|
|
1384
1388
|
}
|
|
1385
1389
|
|
|
1386
|
-
/**
|
|
1387
|
-
* Text component.
|
|
1388
|
-
*
|
|
1389
|
-
* @param props Component props.
|
|
1390
|
-
* @param ref Component ref.
|
|
1391
|
-
* @return React element.
|
|
1392
|
-
*/
|
|
1393
|
-
declare const Text: Comp<TextProps, HTMLElement>;
|
|
1394
|
-
|
|
1395
1390
|
/**
|
|
1396
1391
|
* Defines the props of the component.
|
|
1397
1392
|
*/
|
|
@@ -1399,12 +1394,9 @@ interface HeadingProps extends Partial<TextProps> {
|
|
|
1399
1394
|
/**
|
|
1400
1395
|
* Display a specific heading level instead of the one provided by parent context provider.
|
|
1401
1396
|
*/
|
|
1402
|
-
as?: HeadingElement
|
|
1403
|
-
/**
|
|
1404
|
-
* Children
|
|
1405
|
-
*/
|
|
1406
|
-
children?: React.ReactNode;
|
|
1397
|
+
as?: HeadingElement;
|
|
1407
1398
|
}
|
|
1399
|
+
|
|
1408
1400
|
/**
|
|
1409
1401
|
* Renders a heading component.
|
|
1410
1402
|
* Extends the `Text` Component with the heading level automatically computed based on
|
|
@@ -2053,13 +2045,13 @@ declare const ListSubheader: Comp<ListSubheaderProps, HTMLLIElement>;
|
|
|
2053
2045
|
/**
|
|
2054
2046
|
* Defines the props of the component.
|
|
2055
2047
|
*/
|
|
2056
|
-
interface MessageProps extends GenericProps
|
|
2048
|
+
interface MessageProps extends GenericProps {
|
|
2057
2049
|
/** Content. */
|
|
2058
|
-
children?:
|
|
2050
|
+
children?: JSXElement;
|
|
2059
2051
|
/** Whether the message has a background or not. */
|
|
2060
2052
|
hasBackground?: boolean;
|
|
2061
2053
|
/** Message variant. */
|
|
2062
|
-
kind?: Kind
|
|
2054
|
+
kind?: Kind;
|
|
2063
2055
|
/** Message custom icon SVG path. */
|
|
2064
2056
|
icon?: string;
|
|
2065
2057
|
/**
|
|
@@ -2074,6 +2066,7 @@ interface MessageProps extends GenericProps$1 {
|
|
|
2074
2066
|
label: string;
|
|
2075
2067
|
};
|
|
2076
2068
|
}
|
|
2069
|
+
|
|
2077
2070
|
/**
|
|
2078
2071
|
* Message component.
|
|
2079
2072
|
*
|
|
@@ -3143,6 +3136,15 @@ interface TabPanelProps extends GenericProps$1 {
|
|
|
3143
3136
|
*/
|
|
3144
3137
|
declare const TabPanel: Comp<TabPanelProps, HTMLDivElement>;
|
|
3145
3138
|
|
|
3139
|
+
/**
|
|
3140
|
+
* Text component.
|
|
3141
|
+
*
|
|
3142
|
+
* @param props Component props.
|
|
3143
|
+
* @param ref Component ref.
|
|
3144
|
+
* @return React element.
|
|
3145
|
+
*/
|
|
3146
|
+
declare const Text: Comp<TextProps, HTMLElement>;
|
|
3147
|
+
|
|
3146
3148
|
/**
|
|
3147
3149
|
* Defines the props of the component.
|
|
3148
3150
|
*/
|