@lumx/core 4.3.2-alpha.32 → 4.3.2-alpha.34

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.
@@ -29,7 +29,7 @@ export declare function setup({ component, render, decorators: { withCombination
29
29
  rightIcon?: string | undefined;
30
30
  target?: string | undefined;
31
31
  typography?: string | undefined;
32
- onClick?: ((event: any) => void) | undefined;
32
+ handleClick?: ((event: any) => void) | undefined;
33
33
  ref?: import("../../types").CommonRef;
34
34
  theme?: import("@lumx/core/js/constants").Theme | undefined;
35
35
  className?: string | undefined;
@@ -29,7 +29,7 @@ export interface LinkProps extends HasTheme, HasClassName, HasAriaDisabled, HasD
29
29
  /** Typography variant. */
30
30
  typography?: string;
31
31
  /** Click handler. */
32
- onClick?: (event: any) => void;
32
+ handleClick?: (event: any) => void;
33
33
  /** Reference to the root element. */
34
34
  ref?: CommonRef;
35
35
  }
@@ -0,0 +1,30 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ import { type ProgressCircularSize } from '.';
3
+ export declare function setup({ component, decorators: { withCombinations }, overrides, }: SetupStoriesOptions<{
4
+ overrides: 'Inline';
5
+ decorators: 'withCombinations';
6
+ }>): {
7
+ meta: {
8
+ component: any;
9
+ args: Partial<import(".").ProgressCircularProps>;
10
+ argTypes: {
11
+ size: {
12
+ control: {
13
+ type: "select" | "inline-radio";
14
+ };
15
+ options: ProgressCircularSize[];
16
+ mapping: Record<string, ProgressCircularSize> | undefined;
17
+ };
18
+ };
19
+ };
20
+ /** Default progress circular */
21
+ Default: {};
22
+ /** All sizes */
23
+ AllSizes: {
24
+ decorators: ((story: any, context: any) => any)[];
25
+ };
26
+ /** Inline display variant to use inside text */
27
+ Inline: {
28
+ [x: string]: any;
29
+ };
30
+ };
@@ -0,0 +1,11 @@
1
+ import { SetupOptions } from '../../../testing';
2
+ /**
3
+ * Mounts the component and returns common DOM elements / data needed in multiple tests further down.
4
+ */
5
+ export declare const setup: (propsOverride: any | undefined, { render, ...options }: SetupOptions<any>) => {
6
+ props: any;
7
+ element: HTMLElement;
8
+ wrapper: Partial<import("../../../testing").SetupResult>;
9
+ };
10
+ declare const _default: (renderOptions: SetupOptions<any>) => void;
11
+ export default _default;
@@ -0,0 +1,52 @@
1
+ import type { CommonRef, GenericProps, HasClassName, HasTheme, LumxClassName } from '../../types';
2
+ import { Size } from '../../constants';
3
+ /**
4
+ * Progress sizes.
5
+ */
6
+ export type ProgressCircularSize = Extract<Size, 'xxs' | 'xs' | 's' | 'm'>;
7
+ /**
8
+ * Defines the props of the component.
9
+ */
10
+ export interface ProgressCircularProps extends HasTheme, HasClassName {
11
+ /**
12
+ * Progress circular size.
13
+ */
14
+ size?: ProgressCircularSize;
15
+ /**
16
+ * Progress display type (inline or block).
17
+ * @default 'block'
18
+ */
19
+ display?: 'inline' | 'block';
20
+ /** Component ref */
21
+ ref?: CommonRef;
22
+ /** additional props for the svg */
23
+ svgProps?: GenericProps;
24
+ /** additional props for the circle */
25
+ circleProps?: GenericProps;
26
+ }
27
+ /**
28
+ * Component display name.
29
+ */
30
+ export declare const COMPONENT_NAME = "ProgressCircular";
31
+ /**
32
+ * Component default class name and class prefix.
33
+ */
34
+ export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
35
+ export declare const block: {
36
+ (additionalClasses: import("classnames/types").ClassValue[]): string;
37
+ (modifiers?: import("../../utils/classNames/bem/modifier").Modifier, additionalClasses?: import("classnames/types").ClassValue[]): string;
38
+ }, element: {
39
+ (elem: string, additionalClasses: import("classnames/types").ClassValue[]): string;
40
+ (elem: string, modifiers?: import("../../utils/classNames/bem/modifier").Modifier, additionalClasses?: import("classnames/types").ClassValue[]): string;
41
+ };
42
+ /**
43
+ * Component default props.
44
+ */
45
+ export declare const DEFAULT_PROPS: Partial<ProgressCircularProps>;
46
+ /**
47
+ * ProgressCircular component.
48
+ *
49
+ * @param props Component props.
50
+ * @return JSX element.
51
+ */
52
+ export declare const ProgressCircular: (props: ProgressCircularProps) => import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import type { SetupStoriesOptions } from '@lumx/core/stories/types';
2
+ export declare function setup({ component, }: SetupStoriesOptions<{
3
+ decorators?: never;
4
+ }>): {
5
+ meta: {
6
+ component: any;
7
+ args: Partial<import(".").ProgressLinearProps>;
8
+ };
9
+ /** Default progress linear */
10
+ Default: {};
11
+ };
@@ -0,0 +1,11 @@
1
+ import { SetupOptions } from '../../../testing';
2
+ /**
3
+ * Mounts the component and returns common DOM elements / data needed in multiple tests further down.
4
+ */
5
+ export declare const setup: (propsOverride: any | undefined, { render, ...options }: SetupOptions<any>) => {
6
+ props: any;
7
+ element: HTMLElement;
8
+ wrapper: Partial<import("../../../testing").SetupResult>;
9
+ };
10
+ declare const _default: (renderOptions: SetupOptions<any>) => void;
11
+ export default _default;
@@ -0,0 +1,27 @@
1
+ import type { CommonRef, HasClassName, HasTheme, LumxClassName } from '../../types';
2
+ /**
3
+ * Defines the props of the component.
4
+ */
5
+ export interface ProgressLinearProps extends HasTheme, HasClassName {
6
+ /** Component ref */
7
+ ref?: CommonRef;
8
+ }
9
+ /**
10
+ * Component display name.
11
+ */
12
+ export declare const COMPONENT_NAME = "ProgressLinear";
13
+ /**
14
+ * Component default class name and class prefix.
15
+ */
16
+ export declare const CLASSNAME: LumxClassName<typeof COMPONENT_NAME>;
17
+ /**
18
+ * Component default props.
19
+ */
20
+ export declare const DEFAULT_PROPS: Partial<ProgressLinearProps>;
21
+ /**
22
+ * ProgressLinear component.
23
+ *
24
+ * @param props Component props.
25
+ * @return JSX element.
26
+ */
27
+ export declare const ProgressLinear: (props: ProgressLinearProps) => import("react").JSX.Element;
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/lumapps/design-system/issues"
7
7
  },
8
8
  "dependencies": {
9
- "@lumx/icons": "^4.3.2-alpha.32",
9
+ "@lumx/icons": "^4.3.2-alpha.34",
10
10
  "classnames": "^2.3.2",
11
11
  "focus-visible": "^5.0.2",
12
12
  "lodash": "4.17.23",
@@ -66,7 +66,7 @@
66
66
  "update-version-changelog": "yarn version-changelog ../../CHANGELOG.md"
67
67
  },
68
68
  "sideEffects": false,
69
- "version": "4.3.2-alpha.32",
69
+ "version": "4.3.2-alpha.34",
70
70
  "devDependencies": {
71
71
  "@rollup/plugin-typescript": "^12.3.0",
72
72
  "@testing-library/dom": "^10.4.1",