@lumx/react 3.0.7-alpha.0 → 3.0.7

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/package.json CHANGED
@@ -7,8 +7,8 @@
7
7
  },
8
8
  "dependencies": {
9
9
  "@juggle/resize-observer": "^3.2.0",
10
- "@lumx/core": "^3.0.7-alpha.0",
11
- "@lumx/icons": "^3.0.7-alpha.0",
10
+ "@lumx/core": "^3.0.7",
11
+ "@lumx/icons": "^3.0.7",
12
12
  "@popperjs/core": "^2.5.4",
13
13
  "body-scroll-lock": "^3.1.5",
14
14
  "classnames": "^2.2.6",
@@ -114,6 +114,6 @@
114
114
  "build:storybook": "cd storybook && ./build"
115
115
  },
116
116
  "sideEffects": false,
117
- "version": "3.0.7-alpha.0",
118
- "gitHead": "3f528f821c680dbf072fc5f78fee38d980227d17"
117
+ "version": "3.0.7",
118
+ "gitHead": "4fec43ef3290a9f250767d3bdecf60cfcf02ee75"
119
119
  }
@@ -1,4 +1,4 @@
1
- import { ColorPalette } from '@lumx/react';
1
+ import { Color, ColorPalette } from '@lumx/react';
2
2
  import { Comp, GenericProps } from '@lumx/react/utils/type';
3
3
  import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
4
4
  import classNames from 'classnames';
@@ -11,7 +11,7 @@ export interface BadgeProps extends GenericProps {
11
11
  /** Badge content. */
12
12
  children?: ReactNode;
13
13
  /** Color variant. */
14
- color?: ColorPalette;
14
+ color?: Color;
15
15
  }
16
16
 
17
17
  /**
@@ -4,7 +4,7 @@ import isEmpty from 'lodash/isEmpty';
4
4
 
5
5
  import classNames from 'classnames';
6
6
 
7
- import { ColorPalette, Emphasis, Size, Theme } from '@lumx/react';
7
+ import { Color, ColorPalette, Emphasis, Size, Theme } from '@lumx/react';
8
8
  import { CSS_PREFIX } from '@lumx/react/constants';
9
9
  import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
10
10
  import { handleBasicClasses } from '@lumx/react/utils/className';
@@ -22,7 +22,7 @@ export interface BaseButtonProps
22
22
  Pick<AriaAttributes, 'aria-expanded' | 'aria-haspopup' | 'aria-pressed' | 'aria-label'>,
23
23
  HasTheme {
24
24
  /** Color variant. */
25
- color?: ColorPalette;
25
+ color?: Color;
26
26
  /** Emphasis variant. */
27
27
  emphasis?: Emphasis;
28
28
  /** Whether or not the button has a background color in low emphasis. */
@@ -1,4 +1,4 @@
1
- import { ColorPalette, Size, Theme } from '@lumx/react';
1
+ import { Color, ColorPalette, Size, Theme } from '@lumx/react';
2
2
  import { useStopPropagation } from '@lumx/react/hooks/useStopPropagation';
3
3
 
4
4
  import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
@@ -24,7 +24,7 @@ export interface ChipProps extends GenericProps, HasTheme {
24
24
  /** A component to be rendered before the content. */
25
25
  before?: ReactNode;
26
26
  /** Color variant. */
27
- color?: ColorPalette;
27
+ color?: Color;
28
28
  /** Whether the component is clickable or not. */
29
29
  isClickable?: boolean;
30
30
  /** Whether the component is disabled or not. */
@@ -2,7 +2,7 @@ import React, { forwardRef } from 'react';
2
2
 
3
3
  import classNames from 'classnames';
4
4
 
5
- import { ColorPalette, ColorVariant, Size, Theme } from '@lumx/react';
5
+ import { Color, ColorPalette, ColorVariant, Size, Theme } from '@lumx/react';
6
6
  import { Comp, GenericProps, HasTheme } from '@lumx/react/utils/type';
7
7
  import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
8
8
  import { mdiAlertCircle } from '@lumx/icons';
@@ -14,7 +14,7 @@ export type IconSizes = Extract<Size, 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'x
14
14
  */
15
15
  export interface IconProps extends GenericProps, HasTheme {
16
16
  /** Color variant. */
17
- color?: ColorPalette;
17
+ color?: Color;
18
18
  /** Lightened or darkened variant of the selected icon color. */
19
19
  colorVariant?: ColorVariant;
20
20
  /** Whether the icon has a shape. */
@@ -4,7 +4,7 @@ import isEmpty from 'lodash/isEmpty';
4
4
 
5
5
  import classNames from 'classnames';
6
6
 
7
- import { ColorPalette, ColorVariant, Icon, Size, Typography } from '@lumx/react';
7
+ import { Color, ColorVariant, Icon, Size, Typography } from '@lumx/react';
8
8
  import { Comp, GenericProps } from '@lumx/react/utils/type';
9
9
  import { getRootClassName, handleBasicClasses } from '@lumx/react/utils/className';
10
10
  import { renderLink } from '@lumx/react/utils/renderLink';
@@ -16,7 +16,7 @@ type HTMLAnchorProps = React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAn
16
16
  */
17
17
  export interface LinkProps extends GenericProps {
18
18
  /** Color variant. */
19
- color?: ColorPalette;
19
+ color?: Color;
20
20
  /** Lightened or darkened variant of the selected icon color. */
21
21
  colorVariant?: ColorVariant;
22
22
  /** Link href. */