@lumx/react 3.0.6 → 3.0.7-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/_internal/types.d.ts +1 -1
- package/index.d.ts +7 -7
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +4 -4
- package/src/components/badge/Badge.tsx +2 -2
- package/src/components/button/ButtonRoot.tsx +2 -2
- package/src/components/checkbox/Checkbox.test.tsx +2 -0
- package/src/components/checkbox/Checkbox.tsx +1 -0
- package/src/components/chip/Chip.tsx +2 -2
- package/src/components/icon/Icon.tsx +2 -2
- package/src/components/link/Link.tsx +2 -2
package/_internal/types.d.ts
CHANGED
|
@@ -285,4 +285,4 @@ declare const ThumbnailVariant: {
|
|
|
285
285
|
};
|
|
286
286
|
declare type ThumbnailVariant = ValueOf<typeof ThumbnailVariant>;
|
|
287
287
|
|
|
288
|
-
export { Alignment as A, Comp as C, Emphasis as E, Falsy as F, GenericProps as G, HasTheme as H, Kind as K, Orientation as O, Size as S, Typography as T, ValueOf as V, HorizontalAlignment as a,
|
|
288
|
+
export { Alignment as A, Comp as C, Emphasis as E, Falsy as F, GenericProps as G, HasTheme as H, Kind as K, Orientation as O, Size as S, Typography as T, ValueOf as V, HorizontalAlignment as a, ColorPalette as b, Callback as c, VerticalAlignment as d, ColorVariant as e, TextElement as f, HeadingElement as g, AspectRatio as h, FocusPoint as i, ThumbnailSize as j, ThumbnailVariant as k, HasAriaLabelOrLabelledBy as l, GlobalSize as m, TypographyInterface as n, Color as o, Theme as p, TypographyTitleCustom as q, TypographyCustom as r, ThumbnailAspectRatio as s };
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode, SyntheticEvent, ReactElement, MouseEventHandler, KeyboardEventHandler, AriaAttributes, DetailedHTMLProps, ButtonHTMLAttributes, InputHTMLAttributes, Ref, RefObject, ImgHTMLAttributes, CSSProperties, SetStateAction, Key } from 'react';
|
|
2
|
-
import { K as Kind, C as Comp, G as GenericProps, H as HasTheme, a as HorizontalAlignment, S as Size, b as
|
|
3
|
-
export { A as Alignment,
|
|
2
|
+
import { K as Kind, C as Comp, G as GenericProps, H as HasTheme, a as HorizontalAlignment, S as Size, b as ColorPalette, E as Emphasis, V as ValueOf, c as Callback, A as Alignment, d as VerticalAlignment, O as Orientation, e as ColorVariant, T as Typography, f as TextElement, g as HeadingElement, h as AspectRatio, F as Falsy, i as FocusPoint, j as ThumbnailSize, k as ThumbnailVariant, l as HasAriaLabelOrLabelledBy, m as GlobalSize, n as TypographyInterface } from './_internal/types.js';
|
|
3
|
+
export { A as Alignment, h as AspectRatio, c as Callback, o as Color, b as ColorPalette, e as ColorVariant, E as Emphasis, i as FocusPoint, G as GenericProps, m as GlobalSize, g as HeadingElement, a as HorizontalAlignment, K as Kind, O as Orientation, S as Size, f as TextElement, p as Theme, s as ThumbnailAspectRatio, j as ThumbnailSize, k as ThumbnailVariant, T as Typography, r as TypographyCustom, n as TypographyInterface, q as TypographyTitleCustom, d as VerticalAlignment } from './_internal/types.js';
|
|
4
4
|
|
|
5
5
|
interface AlertDialogProps extends Omit<DialogProps, 'header' | 'footer'> {
|
|
6
6
|
/** Message variant. */
|
|
@@ -261,7 +261,7 @@ interface BadgeProps extends GenericProps {
|
|
|
261
261
|
/** Badge content. */
|
|
262
262
|
children?: ReactNode;
|
|
263
263
|
/** Color variant. */
|
|
264
|
-
color?:
|
|
264
|
+
color?: ColorPalette;
|
|
265
265
|
}
|
|
266
266
|
/**
|
|
267
267
|
* Badge component.
|
|
@@ -279,7 +279,7 @@ declare type HTMLButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButton
|
|
|
279
279
|
declare type ButtonSize = Extract<Size, 's' | 'm'>;
|
|
280
280
|
interface BaseButtonProps extends GenericProps, Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>, HasTheme {
|
|
281
281
|
/** Color variant. */
|
|
282
|
-
color?:
|
|
282
|
+
color?: ColorPalette;
|
|
283
283
|
/** Emphasis variant. */
|
|
284
284
|
emphasis?: Emphasis;
|
|
285
285
|
/** Whether or not the button has a background color in low emphasis. */
|
|
@@ -426,7 +426,7 @@ interface ChipProps extends GenericProps, HasTheme {
|
|
|
426
426
|
/** A component to be rendered before the content. */
|
|
427
427
|
before?: ReactNode;
|
|
428
428
|
/** Color variant. */
|
|
429
|
-
color?:
|
|
429
|
+
color?: ColorPalette;
|
|
430
430
|
/** Whether the component is clickable or not. */
|
|
431
431
|
isClickable?: boolean;
|
|
432
432
|
/** Whether the component is disabled or not. */
|
|
@@ -1178,7 +1178,7 @@ declare type IconSizes = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | '
|
|
|
1178
1178
|
*/
|
|
1179
1179
|
interface IconProps extends GenericProps, HasTheme {
|
|
1180
1180
|
/** Color variant. */
|
|
1181
|
-
color?:
|
|
1181
|
+
color?: ColorPalette;
|
|
1182
1182
|
/** Lightened or darkened variant of the selected icon color. */
|
|
1183
1183
|
colorVariant?: ColorVariant;
|
|
1184
1184
|
/** Whether the icon has a shape. */
|
|
@@ -1403,7 +1403,7 @@ declare type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttribute
|
|
|
1403
1403
|
*/
|
|
1404
1404
|
interface LinkProps extends GenericProps {
|
|
1405
1405
|
/** Color variant. */
|
|
1406
|
-
color?:
|
|
1406
|
+
color?: ColorPalette;
|
|
1407
1407
|
/** Lightened or darkened variant of the selected icon color. */
|
|
1408
1408
|
colorVariant?: ColorVariant;
|
|
1409
1409
|
/** Link href. */
|
package/index.js
CHANGED
|
@@ -1583,6 +1583,7 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
|
|
|
1583
1583
|
type: "checkbox",
|
|
1584
1584
|
id: inputId,
|
|
1585
1585
|
className: `${CLASSNAME$8}__input-native`,
|
|
1586
|
+
disabled: isDisabled,
|
|
1586
1587
|
tabIndex: isDisabled ? -1 : 0,
|
|
1587
1588
|
name: name,
|
|
1588
1589
|
value: value,
|