@lumx/core 4.3.2-alpha.36 → 4.3.2-alpha.38
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/js/components/Button/IconButtonStories.d.ts +2 -1
- package/js/components/Button/Stories.d.ts +2 -1
- package/js/components/Checkbox/Stories.d.ts +1 -1
- package/js/components/Checkbox/index.d.ts +1 -1
- package/js/components/RadioButton/Stories.d.ts +1 -1
- package/js/components/RadioButton/index.d.ts +1 -1
- package/js/components/RawClickable/index.d.ts +2 -1
- package/js/components/Switch/Stories.d.ts +1 -1
- package/js/components/Switch/index.d.ts +1 -1
- package/js/components/Thumbnail/Stories.d.ts +2 -2
- package/js/components/Thumbnail/index.d.ts +2 -2
- package/js/types/jsx/PropsToOverride.d.ts +1 -1
- package/package.json +2 -2
|
@@ -177,7 +177,8 @@ export declare function setup({ component, render, decorators: { withCombination
|
|
|
177
177
|
theme?: import("@lumx/core/js/constants").Theme | undefined;
|
|
178
178
|
'aria-disabled'?: import("../../types/Booleanish").Booleanish | undefined;
|
|
179
179
|
children?: import("react").ReactNode;
|
|
180
|
-
|
|
180
|
+
handleClick?: ((event?: any) => void) | undefined;
|
|
181
|
+
handleKeyPress?: ((event?: any) => void) | undefined;
|
|
181
182
|
ref?: import("../../types").CommonRef;
|
|
182
183
|
disabled?: boolean | undefined;
|
|
183
184
|
};
|
|
@@ -250,7 +250,8 @@ export declare function setup({ component, render, decorators: { withCombination
|
|
|
250
250
|
className?: string | undefined;
|
|
251
251
|
theme?: Theme | undefined;
|
|
252
252
|
'aria-disabled'?: import("../../types/Booleanish").Booleanish | undefined;
|
|
253
|
-
|
|
253
|
+
handleClick?: ((event?: any) => void) | undefined;
|
|
254
|
+
handleKeyPress?: ((event?: any) => void) | undefined;
|
|
254
255
|
ref?: import("../../types").CommonRef;
|
|
255
256
|
disabled?: boolean | undefined;
|
|
256
257
|
};
|
|
@@ -31,7 +31,7 @@ export declare function setup({ component, render, decorators: { withCombination
|
|
|
31
31
|
inputProps?: Record<string, any> | undefined;
|
|
32
32
|
inputRef?: import("../../types").CommonRef;
|
|
33
33
|
inputId?: string | undefined;
|
|
34
|
-
|
|
34
|
+
handleChange?: ((isChecked: boolean, value?: string, name?: string, event?: any) => void) | undefined;
|
|
35
35
|
ref?: import("../../types").CommonRef;
|
|
36
36
|
theme?: import("../../constants").Theme | undefined;
|
|
37
37
|
className?: string | undefined;
|
|
@@ -24,7 +24,7 @@ export interface CheckboxProps extends HasTheme, HasClassName, HasAriaDisabled,
|
|
|
24
24
|
/** Native input id. */
|
|
25
25
|
inputId: string;
|
|
26
26
|
/** On change callback. */
|
|
27
|
-
|
|
27
|
+
handleChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
|
|
28
28
|
/** reference to the root element */
|
|
29
29
|
ref?: CommonRef;
|
|
30
30
|
}
|
|
@@ -31,7 +31,7 @@ export declare function setup({ component, render, decorators: { withCombination
|
|
|
31
31
|
inputProps?: Record<string, any> | undefined;
|
|
32
32
|
inputRef?: import("../../types").CommonRef;
|
|
33
33
|
inputId?: string | undefined;
|
|
34
|
-
|
|
34
|
+
handleChange?: ((value?: string, name?: string, event?: any) => void) | undefined;
|
|
35
35
|
ref?: import("../../types").CommonRef;
|
|
36
36
|
theme?: import("../../constants").Theme | undefined;
|
|
37
37
|
className?: string | undefined;
|
|
@@ -20,7 +20,7 @@ export interface RadioButtonProps extends HasTheme, HasClassName, HasAriaDisable
|
|
|
20
20
|
/** Native input id. */
|
|
21
21
|
inputId: string;
|
|
22
22
|
/** On change callback. */
|
|
23
|
-
|
|
23
|
+
handleChange?(value?: string, name?: string, event?: any): void;
|
|
24
24
|
/** reference to the root element */
|
|
25
25
|
ref?: CommonRef;
|
|
26
26
|
}
|
|
@@ -2,7 +2,8 @@ import { CommonRef, HasPolymorphicAs, HasRequiredLinkHref, HasDisabled, JSXEleme
|
|
|
2
2
|
export type ClickableElement = 'a' | 'button' | ElementType;
|
|
3
3
|
export interface BaseClickableProps extends HasDisabled, HasAriaDisabled {
|
|
4
4
|
children?: JSXElement;
|
|
5
|
-
|
|
5
|
+
handleClick?: (event?: any) => void;
|
|
6
|
+
handleKeyPress?: (event?: any) => void;
|
|
6
7
|
ref?: CommonRef;
|
|
7
8
|
}
|
|
8
9
|
export type RawClickableProps<E extends ClickableElement> = HasPolymorphicAs<E> & HasRequiredLinkHref<E> & BaseClickableProps;
|
|
@@ -35,7 +35,7 @@ export declare function setup({ component, render, decorators: { withCombination
|
|
|
35
35
|
inputProps?: Record<string, any> | undefined;
|
|
36
36
|
inputRef?: import("../../types").CommonRef;
|
|
37
37
|
inputId?: string | undefined;
|
|
38
|
-
|
|
38
|
+
handleChange?: ((isChecked: boolean, value?: string, name?: string, event?: any) => void) | undefined;
|
|
39
39
|
position?: "left" | "right" | undefined;
|
|
40
40
|
ref?: import("../../types").CommonRef;
|
|
41
41
|
theme?: import("../../constants").Theme | undefined;
|
|
@@ -20,7 +20,7 @@ export interface SwitchProps extends HasTheme, HasClassName, HasAriaDisabled, Ha
|
|
|
20
20
|
/** Native input id. */
|
|
21
21
|
inputId: string;
|
|
22
22
|
/** On change callback. */
|
|
23
|
-
|
|
23
|
+
handleChange?(isChecked: boolean, value?: string, name?: string, event?: any): void;
|
|
24
24
|
/** Position of the switch relative to the label. */
|
|
25
25
|
position?: 'left' | 'right';
|
|
26
26
|
/** reference to the root element */
|
|
@@ -79,8 +79,8 @@ export declare function setup({ component, render, decorators: { withNestedProps
|
|
|
79
79
|
size?: import("./types").ThumbnailSize | undefined;
|
|
80
80
|
loading?: "eager" | "lazy" | undefined;
|
|
81
81
|
loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement> | undefined;
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
handleClick?: ((event: any) => void) | undefined;
|
|
83
|
+
handleKeyPress?: ((event: any) => void) | undefined;
|
|
84
84
|
variant?: ThumbnailVariant | undefined;
|
|
85
85
|
linkProps?: import("../../types").GenericProps | undefined;
|
|
86
86
|
focusPointStyle?: import("../../types").GenericProps | undefined;
|
|
@@ -40,9 +40,9 @@ export interface ThumbnailProps extends HasTheme, HasClassName {
|
|
|
40
40
|
/** Ref of an existing placeholder image to display while loading. */
|
|
41
41
|
loadingPlaceholderImageRef?: React.RefObject<HTMLImageElement>;
|
|
42
42
|
/** On click callback. */
|
|
43
|
-
|
|
43
|
+
handleClick?: (event: any) => void;
|
|
44
44
|
/** On key press callback. */
|
|
45
|
-
|
|
45
|
+
handleKeyPress?: (event: any) => void;
|
|
46
46
|
/** Variant of the component. */
|
|
47
47
|
variant?: ThumbnailVariant;
|
|
48
48
|
/** Props to pass to the link wrapping the thumbnail. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** list of generic props defined on JSX that need to be redefined for each framework */
|
|
2
|
-
export type PropsToOverride = 'ref' | '
|
|
2
|
+
export type PropsToOverride = 'ref' | 'handleClick' | 'handleChange' | 'handleKeyPress';
|
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.
|
|
9
|
+
"@lumx/icons": "^4.3.2-alpha.38",
|
|
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.
|
|
69
|
+
"version": "4.3.2-alpha.38",
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
72
72
|
"@testing-library/dom": "^10.4.1",
|