@elliemae/ds-stepper 3.14.0-next.9 → 3.14.0-rc.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/types/DSStepperDefinitions.d.ts +2 -0
- package/dist/types/Stepper.d.ts +9 -0
- package/dist/types/StepperButton.d.ts +9 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/props.d.ts +45 -0
- package/dist/types/styled.d.ts +30 -0
- package/dist/types/tests/Stepper.global-attributes.test.d.ts +1 -0
- package/dist/types/tests/Stepper.test.d.ts +1 -0
- package/dist/types/tests/StepperButton.global-attributes.test.d.ts +1 -0
- package/package.json +6 -6
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DSStepperInternalsT } from './props';
|
|
3
|
+
declare const DSStepper: {
|
|
4
|
+
(props: DSStepperInternalsT.StepperPropsT): JSX.Element;
|
|
5
|
+
propTypes: React.WeakValidationMap<unknown>;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
declare const StepperWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSStepperInternalsT.StepperPropsT>;
|
|
9
|
+
export { DSStepper, StepperWithSchema };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DSStepperInternalsT } from './props';
|
|
3
|
+
declare const DSStepperButton: {
|
|
4
|
+
(props: DSStepperInternalsT.StepperButtonPropsT): JSX.Element;
|
|
5
|
+
propTypes: React.WeakValidationMap<unknown>;
|
|
6
|
+
displayName: string;
|
|
7
|
+
};
|
|
8
|
+
declare const DSStepperButtonWithSchema: import("@elliemae/ds-utilities/dist/types/props-helpers/propTypes/types").DocumentedReactComponent<DSStepperInternalsT.StepperButtonPropsT>;
|
|
9
|
+
export { DSStepperButton, DSStepperButtonWithSchema };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { WeakValidationMap } from 'react';
|
|
2
|
+
declare const BUTTON_SIZES: {
|
|
3
|
+
readonly normal: "normal";
|
|
4
|
+
readonly large: "large";
|
|
5
|
+
};
|
|
6
|
+
type ButtonSizesT = (typeof BUTTON_SIZES)[keyof typeof BUTTON_SIZES];
|
|
7
|
+
declare const CHEVRON_TYPE: {
|
|
8
|
+
readonly left: "left";
|
|
9
|
+
readonly right: "right";
|
|
10
|
+
};
|
|
11
|
+
type ChevronT = (typeof CHEVRON_TYPE)[keyof typeof CHEVRON_TYPE];
|
|
12
|
+
export declare namespace DSStepperInternalsT {
|
|
13
|
+
interface StepperPropsT {
|
|
14
|
+
[property: string]: unknown;
|
|
15
|
+
steps: number;
|
|
16
|
+
current: number | null;
|
|
17
|
+
visited: number[];
|
|
18
|
+
}
|
|
19
|
+
interface StepperButtonPropsT {
|
|
20
|
+
[property: string]: unknown;
|
|
21
|
+
chevron?: ChevronT;
|
|
22
|
+
fontSize?: ButtonSizesT;
|
|
23
|
+
label: string;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
onClick: VoidFunction;
|
|
26
|
+
innerRef?: React.MutableRefObject<HTMLButtonElement> | ((_ref: HTMLButtonElement) => void);
|
|
27
|
+
'aria-label'?: string;
|
|
28
|
+
'aria-pressed'?: boolean;
|
|
29
|
+
'data-testid'?: string;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export declare const defaultProps: {
|
|
33
|
+
steps: number;
|
|
34
|
+
current: undefined;
|
|
35
|
+
visited: never[];
|
|
36
|
+
};
|
|
37
|
+
export declare const dsStepperProps: WeakValidationMap<unknown>;
|
|
38
|
+
export declare const defaultButtonProps: {
|
|
39
|
+
chevron: undefined;
|
|
40
|
+
fontSize: "normal";
|
|
41
|
+
disabled: boolean;
|
|
42
|
+
onClick: () => void;
|
|
43
|
+
};
|
|
44
|
+
export declare const dsStepperButtonProps: WeakValidationMap<unknown>;
|
|
45
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DSStepperInternalsT } from './props';
|
|
3
|
+
export declare const StepperWrapper: import("styled-components").StyledComponent<keyof JSX.IntrinsicElements, import("@elliemae/ds-system").Theme, Record<string, unknown> & DSStepperInternalsT.StepperPropsT, never>;
|
|
4
|
+
interface StepProps {
|
|
5
|
+
active: boolean;
|
|
6
|
+
visited: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const Step: import("styled-components").StyledComponent<keyof JSX.IntrinsicElements, import("@elliemae/ds-system").Theme, Record<string, unknown> & StepProps, never>;
|
|
9
|
+
export declare const Label: import("styled-components").StyledComponent<{
|
|
10
|
+
(props: any): JSX.Element;
|
|
11
|
+
propTypes: {
|
|
12
|
+
containerProps: import("prop-types").Requireable<object>;
|
|
13
|
+
tooltipOptions: import("prop-types").Requireable<object>;
|
|
14
|
+
textOptions: import("prop-types").Requireable<object>;
|
|
15
|
+
value: import("prop-types").Requireable<NonNullable<import("prop-types").ReactNodeLike>>;
|
|
16
|
+
placement: import("prop-types").Requireable<string>;
|
|
17
|
+
tooltipDelay: import("prop-types").Requireable<number>;
|
|
18
|
+
zIndex: import("prop-types").Requireable<number>;
|
|
19
|
+
};
|
|
20
|
+
defaultProps: {
|
|
21
|
+
containerProps: {};
|
|
22
|
+
tooltipOptions: {};
|
|
23
|
+
textOptions: {};
|
|
24
|
+
value: string;
|
|
25
|
+
placement: string;
|
|
26
|
+
tooltipDelay: number;
|
|
27
|
+
};
|
|
28
|
+
}, import("@elliemae/ds-system").Theme, object, never>;
|
|
29
|
+
export declare const StyledButton: import("styled-components").StyledComponent<import("react").ComponentType<import("@elliemae/ds-button").DSButtonT.Props>, import("@elliemae/ds-system").Theme, DSStepperInternalsT.StepperButtonPropsT, never>;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-stepper",
|
|
3
|
-
"version": "3.14.0-
|
|
3
|
+
"version": "3.14.0-rc.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Stepper",
|
|
6
6
|
"files": [
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"lodash": "~4.17.21",
|
|
55
55
|
"prop-types": "~15.8.1",
|
|
56
56
|
"uid": "~2.0.0",
|
|
57
|
-
"@elliemae/ds-
|
|
58
|
-
"@elliemae/ds-
|
|
59
|
-
"@elliemae/ds-truncated-tooltip-text": "3.14.0-
|
|
60
|
-
"@elliemae/ds-icons": "3.14.0-
|
|
61
|
-
"@elliemae/ds-utilities": "3.14.0-
|
|
57
|
+
"@elliemae/ds-system": "3.14.0-rc.1",
|
|
58
|
+
"@elliemae/ds-button": "3.14.0-rc.1",
|
|
59
|
+
"@elliemae/ds-truncated-tooltip-text": "3.14.0-rc.1",
|
|
60
|
+
"@elliemae/ds-icons": "3.14.0-rc.1",
|
|
61
|
+
"@elliemae/ds-utilities": "3.14.0-rc.1"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@testing-library/jest-dom": "~5.16.4",
|