react-magma-dom 4.4.0 → 4.4.1-next.1
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/dist/components/Hyperlink/Hyperlink.stories.d.ts +30 -2
- package/dist/components/Hyperlink/index.d.ts +19 -3
- package/dist/components/Input/Input.stories.d.ts +16 -0
- package/dist/components/InputBase/index.d.ts +4 -0
- package/dist/components/TreeView/useTreeItem.d.ts +2 -0
- package/dist/esm/index.js +114 -61
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/properties.json +172 -111
- package/dist/react-magma-dom.cjs.development.js +286 -234
- package/dist/react-magma-dom.cjs.development.js.map +1 -1
- package/dist/react-magma-dom.cjs.production.min.js +1 -1
- package/dist/react-magma-dom.cjs.production.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,32 @@
|
|
|
1
|
+
import { HyperlinkIconPosition } from '.';
|
|
1
2
|
declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react/types-6-0").ReactFramework, import("@storybook/react/types-6-0").Args>;
|
|
2
3
|
export default _default;
|
|
3
|
-
export declare const Default:
|
|
4
|
-
|
|
4
|
+
export declare const Default: {
|
|
5
|
+
(args: any): JSX.Element;
|
|
6
|
+
args: {
|
|
7
|
+
styledAs: string;
|
|
8
|
+
isInverse: boolean;
|
|
9
|
+
to: string;
|
|
10
|
+
hasUnderline: boolean;
|
|
11
|
+
icon: JSX.Element;
|
|
12
|
+
iconPosition: HyperlinkIconPosition;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export declare const All: {
|
|
16
|
+
(args: any): JSX.Element;
|
|
17
|
+
args: {};
|
|
18
|
+
parameters: {
|
|
19
|
+
controls: {
|
|
20
|
+
exclude: string[];
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const Inverse: {
|
|
25
|
+
(args: any): JSX.Element;
|
|
26
|
+
args: {};
|
|
27
|
+
parameters: {
|
|
28
|
+
controls: {
|
|
29
|
+
exclude: string[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonStyles } from '../Button';
|
|
3
3
|
import { Omit } from '../../utils';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import { IconProps } from 'react-magma-icons';
|
|
5
|
+
export declare enum HyperlinkIconPosition {
|
|
6
|
+
left = "left",
|
|
7
|
+
right = "right",
|
|
8
|
+
both = "both"
|
|
9
|
+
}
|
|
7
10
|
export interface HyperlinkProps extends ButtonStyles, Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'color'> {
|
|
11
|
+
/**
|
|
12
|
+
* @children required
|
|
13
|
+
*/
|
|
8
14
|
children: React.ReactNode;
|
|
9
15
|
/**
|
|
10
16
|
* How the hyperlink is styled (can look like either a plain link or a button)
|
|
@@ -19,5 +25,15 @@ export interface HyperlinkProps extends ButtonStyles, Omit<React.AnchorHTMLAttri
|
|
|
19
25
|
* The href value of the link
|
|
20
26
|
*/
|
|
21
27
|
to: string;
|
|
28
|
+
hasUnderline?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Icon to display within the component
|
|
31
|
+
*/
|
|
32
|
+
icon?: React.ReactElement<IconProps> | Array<React.ReactElement<IconProps>>;
|
|
33
|
+
/**
|
|
34
|
+
* Position within the link for the icon to appear
|
|
35
|
+
* @default HyperlinkIconPosition.right
|
|
36
|
+
*/
|
|
37
|
+
iconPosition?: HyperlinkIconPosition;
|
|
22
38
|
}
|
|
23
39
|
export declare const Hyperlink: React.ForwardRefExoticComponent<HyperlinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -35,6 +35,7 @@ export declare const IconPositions: {
|
|
|
35
35
|
iconAriaLabel?: string;
|
|
36
36
|
iconRef?: React.Ref<HTMLButtonElement>;
|
|
37
37
|
inputStyle?: React.CSSProperties;
|
|
38
|
+
inputWrapperStyle?: React.CSSProperties;
|
|
38
39
|
isClearable?: boolean;
|
|
39
40
|
onClear?: () => void;
|
|
40
41
|
isPredictive?: boolean;
|
|
@@ -364,6 +365,7 @@ export declare const WithChildren: {
|
|
|
364
365
|
iconAriaLabel?: string;
|
|
365
366
|
iconRef?: React.Ref<HTMLButtonElement>;
|
|
366
367
|
inputStyle?: React.CSSProperties;
|
|
368
|
+
inputWrapperStyle?: React.CSSProperties;
|
|
367
369
|
isClearable?: boolean;
|
|
368
370
|
onClear?: () => void;
|
|
369
371
|
isPredictive?: boolean;
|
|
@@ -691,6 +693,7 @@ export declare const WithTwoIcons: {
|
|
|
691
693
|
iconAriaLabel?: string;
|
|
692
694
|
iconRef?: React.Ref<HTMLButtonElement>;
|
|
693
695
|
inputStyle?: React.CSSProperties;
|
|
696
|
+
inputWrapperStyle?: React.CSSProperties;
|
|
694
697
|
isClearable?: boolean;
|
|
695
698
|
onClear?: () => void;
|
|
696
699
|
isPredictive?: boolean;
|
|
@@ -991,3 +994,16 @@ export declare const WithTwoIcons: {
|
|
|
991
994
|
};
|
|
992
995
|
};
|
|
993
996
|
};
|
|
997
|
+
export declare const NumberInput: {
|
|
998
|
+
(args: any): JSX.Element;
|
|
999
|
+
args: {
|
|
1000
|
+
disabled: boolean;
|
|
1001
|
+
helperMessage: string;
|
|
1002
|
+
isClearable: boolean;
|
|
1003
|
+
};
|
|
1004
|
+
parameters: {
|
|
1005
|
+
controls: {
|
|
1006
|
+
exclude: string[];
|
|
1007
|
+
};
|
|
1008
|
+
};
|
|
1009
|
+
};
|
|
@@ -64,6 +64,10 @@ export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
64
64
|
* Style properties for the input element
|
|
65
65
|
*/
|
|
66
66
|
inputStyle?: React.CSSProperties;
|
|
67
|
+
/**
|
|
68
|
+
* Style properties for input wrapper element
|
|
69
|
+
*/
|
|
70
|
+
inputWrapperStyle?: React.CSSProperties;
|
|
67
71
|
/**
|
|
68
72
|
* Total number of characters in an input.
|
|
69
73
|
*/
|