@elliemae/ds-breadcrumb 2.3.0-alpha.4 → 2.3.0-alpha.6
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/{cjs → dist/cjs}/DSBreadcrumb.js +0 -0
- package/{cjs → dist/cjs}/DSBreadcrumb.js.map +0 -0
- package/{cjs → dist/cjs}/DSBreadcrumbItem.js +0 -0
- package/{cjs → dist/cjs}/DSBreadcrumbItem.js.map +0 -0
- package/{cjs → dist/cjs}/hooks/useKeyboardNavigation.js +0 -0
- package/{cjs → dist/cjs}/hooks/useKeyboardNavigation.js.map +0 -0
- package/{cjs → dist/cjs}/index.d.js +0 -0
- package/{cjs → dist/cjs}/index.d.js.map +0 -0
- package/{cjs → dist/cjs}/index.js +0 -0
- package/{cjs → dist/cjs}/index.js.map +0 -0
- package/{cjs → dist/cjs}/styles.js +0 -0
- package/{cjs → dist/cjs}/styles.js.map +0 -0
- package/{esm → dist/esm}/DSBreadcrumb.js +0 -0
- package/{esm → dist/esm}/DSBreadcrumb.js.map +0 -0
- package/{esm → dist/esm}/DSBreadcrumbItem.js +0 -0
- package/{esm → dist/esm}/DSBreadcrumbItem.js.map +0 -0
- package/{esm → dist/esm}/hooks/useKeyboardNavigation.js +0 -0
- package/{esm → dist/esm}/hooks/useKeyboardNavigation.js.map +0 -0
- package/{esm → dist/esm}/index.d.js +0 -0
- package/{esm → dist/esm}/index.d.js.map +0 -0
- package/{esm → dist/esm}/index.js +0 -0
- package/{esm → dist/esm}/index.js.map +0 -0
- package/{esm → dist/esm}/styles.js +0 -0
- package/{esm → dist/esm}/styles.js.map +0 -0
- package/package.json +29 -27
- package/types/DSBreadcrumb.d.ts +0 -56
- package/types/DSBreadcrumbItem.d.ts +0 -78
- package/types/hooks/useKeyboardNavigation.d.ts +0 -2
- package/types/index.d.d.ts +0 -27
- package/types/index.d.ts +0 -3
- package/types/styles.d.ts +0 -6
- package/types/tests/DSBreadcrumb.test.d.ts +0 -1
- package/types/tests/DSBreadcrumbItem.test.d.ts +0 -1
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-breadcrumb",
|
|
3
|
-
"version": "2.3.0-alpha.
|
|
3
|
+
"version": "2.3.0-alpha.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Breadcrumb",
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"module": "./dist/esm/index.js",
|
|
10
|
+
"main": "./dist/cjs/index.js",
|
|
11
|
+
"types": "./dist/types/index.d.ts",
|
|
9
12
|
"exports": {
|
|
10
13
|
".": {
|
|
11
|
-
"import": "./esm/index.js",
|
|
12
|
-
"require": "./cjs/index.js"
|
|
14
|
+
"import": "./dist/esm/index.js",
|
|
15
|
+
"require": "./dist/cjs/index.js"
|
|
13
16
|
},
|
|
14
17
|
"./styles": {
|
|
15
|
-
"import": "./esm/styles.js",
|
|
16
|
-
"require": "./cjs/styles.js"
|
|
18
|
+
"import": "./dist/esm/styles.js",
|
|
19
|
+
"require": "./dist/cjs/styles.js"
|
|
17
20
|
},
|
|
18
21
|
"./hooks/useKeyboardNavigation": {
|
|
19
|
-
"import": "./esm/hooks/useKeyboardNavigation.js",
|
|
20
|
-
"require": "./cjs/hooks/useKeyboardNavigation.js"
|
|
22
|
+
"import": "./dist/esm/hooks/useKeyboardNavigation.js",
|
|
23
|
+
"require": "./dist/cjs/hooks/useKeyboardNavigation.js"
|
|
21
24
|
},
|
|
22
25
|
"./DSBreadcrumbItem": {
|
|
23
|
-
"import": "./esm/DSBreadcrumbItem.js",
|
|
24
|
-
"require": "./cjs/DSBreadcrumbItem.js"
|
|
26
|
+
"import": "./dist/esm/DSBreadcrumbItem.js",
|
|
27
|
+
"require": "./dist/cjs/DSBreadcrumbItem.js"
|
|
25
28
|
},
|
|
26
29
|
"./DSBreadcrumb": {
|
|
27
|
-
"import": "./esm/DSBreadcrumb.js",
|
|
28
|
-
"require": "./cjs/DSBreadcrumb.js"
|
|
30
|
+
"import": "./dist/esm/DSBreadcrumb.js",
|
|
31
|
+
"require": "./dist/cjs/DSBreadcrumb.js"
|
|
29
32
|
}
|
|
30
33
|
},
|
|
31
34
|
"sideEffects": [
|
|
@@ -37,23 +40,17 @@
|
|
|
37
40
|
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
38
41
|
},
|
|
39
42
|
"engines": {
|
|
40
|
-
"
|
|
41
|
-
"node": ">=
|
|
43
|
+
"pnpm": ">=6",
|
|
44
|
+
"node": ">=16"
|
|
42
45
|
},
|
|
43
46
|
"author": "ICE MT",
|
|
44
|
-
"scripts": {
|
|
45
|
-
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
46
|
-
"prebuild": "exit 0",
|
|
47
|
-
"predev": "exit 0",
|
|
48
|
-
"build": "node ../../scripts/build/build.js"
|
|
49
|
-
},
|
|
50
47
|
"dependencies": {
|
|
51
|
-
"@elliemae/ds-system": "2.3.0-alpha.
|
|
48
|
+
"@elliemae/ds-system": "2.3.0-alpha.6",
|
|
52
49
|
"react-desc": "~4.1.3"
|
|
53
50
|
},
|
|
54
51
|
"devDependencies": {
|
|
55
|
-
"@elliemae/pui-theme": "~2.
|
|
56
|
-
"@testing-library/jest-dom": "~5.15.
|
|
52
|
+
"@elliemae/pui-theme": "~2.3.0",
|
|
53
|
+
"@testing-library/jest-dom": "~5.15.1",
|
|
57
54
|
"@testing-library/react": "~12.1.2",
|
|
58
55
|
"@testing-library/user-event": "~13.5.0",
|
|
59
56
|
"styled-components": "~5.3.3"
|
|
@@ -66,7 +63,12 @@
|
|
|
66
63
|
},
|
|
67
64
|
"publishConfig": {
|
|
68
65
|
"access": "public",
|
|
69
|
-
"
|
|
70
|
-
|
|
66
|
+
"typeSafety": false
|
|
67
|
+
},
|
|
68
|
+
"scripts": {
|
|
69
|
+
"dev": "cross-env NODE_ENV=development && node ../../scripts/build/build.js -w",
|
|
70
|
+
"prebuild": "exit 0",
|
|
71
|
+
"predev": "exit 0",
|
|
72
|
+
"build": "node ../../scripts/build/build.js"
|
|
71
73
|
}
|
|
72
74
|
}
|
package/types/DSBreadcrumb.d.ts
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import DSBreadcrumbItem from './DSBreadcrumbItem';
|
|
4
|
-
import type { DSBreadcrumbPropsT } from './index.d';
|
|
5
|
-
declare const htmlElements: readonly ["nav", "div", "header", "footer", "main"];
|
|
6
|
-
declare const DSBreadcrumb: {
|
|
7
|
-
({ containerProps, as, label, isTitle, children, trailingSlash, ...rest }: DSBreadcrumbPropsT): React.ReactElement;
|
|
8
|
-
Item: typeof DSBreadcrumbItem;
|
|
9
|
-
propTypes: {
|
|
10
|
-
/** props injected to breadcrumb wrapper */
|
|
11
|
-
containerProps: {
|
|
12
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
13
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
14
|
-
};
|
|
15
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Type of element you want the main container to be:
|
|
19
|
-
* 'nav', 'div', 'header', 'footer', 'main'
|
|
20
|
-
*/
|
|
21
|
-
as: {
|
|
22
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
23
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
24
|
-
};
|
|
25
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Whether to show the last element of the breadcrumb as a title
|
|
29
|
-
* Also removes trailing slash to show last element as title
|
|
30
|
-
*/
|
|
31
|
-
isTitle: {
|
|
32
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
33
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
34
|
-
};
|
|
35
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
36
|
-
};
|
|
37
|
-
/** breadcrumb label */
|
|
38
|
-
label: {
|
|
39
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
40
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
41
|
-
};
|
|
42
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* Container items to wrap
|
|
46
|
-
*/
|
|
47
|
-
children: any;
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
|
-
declare const DSBreadcrumbWithSchema: {
|
|
51
|
-
(props?: unknown): JSX.Element;
|
|
52
|
-
propTypes: unknown;
|
|
53
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
54
|
-
};
|
|
55
|
-
export { DSBreadcrumb, DSBreadcrumbWithSchema, htmlElements };
|
|
56
|
-
export default DSBreadcrumb;
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/// <reference path="../../../../shared/typings/react-desc.d.ts" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { DSBreadcrumbItemPropsT } from './index.d';
|
|
4
|
-
declare function DSBreadcrumbItem({ active, as, href, isTitle, onClick, label, color, addRef, childIndex, trailingSlash, onKeyDown, ...rest }: DSBreadcrumbItemPropsT): React.ReactElement;
|
|
5
|
-
declare namespace DSBreadcrumbItem {
|
|
6
|
-
var propTypes: {
|
|
7
|
-
/** inject props to wrapper */
|
|
8
|
-
containerComponent: {
|
|
9
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
10
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
11
|
-
};
|
|
12
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
13
|
-
};
|
|
14
|
-
/** render as any html node */
|
|
15
|
-
as: {
|
|
16
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
17
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
18
|
-
};
|
|
19
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
20
|
-
};
|
|
21
|
-
/** active item */
|
|
22
|
-
active: {
|
|
23
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
24
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
25
|
-
};
|
|
26
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
27
|
-
};
|
|
28
|
-
/** href link */
|
|
29
|
-
href: {
|
|
30
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
31
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
32
|
-
};
|
|
33
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
34
|
-
};
|
|
35
|
-
/** on click handler */
|
|
36
|
-
onClick: {
|
|
37
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
38
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
39
|
-
};
|
|
40
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
41
|
-
};
|
|
42
|
-
/** style item as title */
|
|
43
|
-
isTitle: {
|
|
44
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
45
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
46
|
-
};
|
|
47
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
48
|
-
};
|
|
49
|
-
/** add trailing slash */
|
|
50
|
-
trailingSlash: {
|
|
51
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
52
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
53
|
-
};
|
|
54
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
55
|
-
};
|
|
56
|
-
/** item label */
|
|
57
|
-
label: {
|
|
58
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
59
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
60
|
-
};
|
|
61
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
62
|
-
};
|
|
63
|
-
/** link color */
|
|
64
|
-
color: {
|
|
65
|
-
defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
|
|
66
|
-
deprecated: import("react-desc").PropTypesDescValidator;
|
|
67
|
-
};
|
|
68
|
-
isRequired: import("react-desc").PropTypesDescValue;
|
|
69
|
-
};
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
declare const DSBreadcrumbItemWithSchema: {
|
|
73
|
-
(props?: unknown): JSX.Element;
|
|
74
|
-
propTypes: unknown;
|
|
75
|
-
toTypescript: () => import("react-desc").TypescriptSchema;
|
|
76
|
-
};
|
|
77
|
-
export { DSBreadcrumbItem, DSBreadcrumbItemWithSchema };
|
|
78
|
-
export default DSBreadcrumbItem;
|
package/types/index.d.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { htmlElements } from './DSBreadcrumb';
|
|
3
|
-
declare type SafeComponentsT = typeof htmlElements[number];
|
|
4
|
-
declare type SafeItemComponentT = 'a' | 'button' | 'div' | 'span' | 'p';
|
|
5
|
-
interface DSBreadcrumbPropsT {
|
|
6
|
-
containerProps?: unknown;
|
|
7
|
-
as?: SafeComponentsT;
|
|
8
|
-
label?: string;
|
|
9
|
-
isTitle?: boolean;
|
|
10
|
-
trailingSlash?: boolean;
|
|
11
|
-
children: React.ReactElement[];
|
|
12
|
-
}
|
|
13
|
-
interface DSBreadcrumbItemPropsT {
|
|
14
|
-
active?: boolean;
|
|
15
|
-
isActive?: boolean;
|
|
16
|
-
as?: SafeItemComponentT;
|
|
17
|
-
href?: string;
|
|
18
|
-
isTitle?: boolean;
|
|
19
|
-
trailingSlash?: boolean;
|
|
20
|
-
addRef: (ref: HTMLElement) => void;
|
|
21
|
-
onKeyDown: (e: React.KeyboardEvent, componentRefIndex: number, onClick: () => void) => void;
|
|
22
|
-
onClick?: () => void;
|
|
23
|
-
label?: string;
|
|
24
|
-
childIndex: number;
|
|
25
|
-
color?: string | null;
|
|
26
|
-
}
|
|
27
|
-
export { DSBreadcrumbPropsT, DSBreadcrumbItemPropsT, SafeComponentsT, SafeItemComponentT, };
|
package/types/index.d.ts
DELETED
package/types/styles.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { DSBreadcrumbItemPropsT } from './index.d';
|
|
2
|
-
declare const StyledList: import("styled-components").StyledComponent<"ol", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
-
declare const StyledCrumbWrapper: import("styled-components").StyledComponent<"li", import("styled-components").DefaultTheme, Partial<DSBreadcrumbItemPropsT>, never>;
|
|
4
|
-
declare const StyledContainer: import("styled-components").StyledComponent<"nav", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
-
declare const StyledLink: import("styled-components").StyledComponent<"a", import("styled-components").DefaultTheme, Partial<DSBreadcrumbItemPropsT>, never>;
|
|
6
|
-
export { StyledList, StyledCrumbWrapper, StyledContainer, StyledLink };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|