@elliemae/ds-menu-tree-item 3.29.0-next.0 → 3.29.0-rc.0
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.
@@ -35,10 +35,7 @@ __export(react_desc_prop_types_exports, {
|
|
35
35
|
module.exports = __toCommonJS(react_desc_prop_types_exports);
|
36
36
|
var React = __toESM(require("react"));
|
37
37
|
var import_ds_props_helpers = require("@elliemae/ds-props-helpers");
|
38
|
-
const defaultProps = {
|
39
|
-
isSelected: false,
|
40
|
-
multiple: false
|
41
|
-
};
|
38
|
+
const defaultProps = {};
|
42
39
|
const itemPropsSchema = import_ds_props_helpers.PropTypes.shape({
|
43
40
|
dsId: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.number]).isRequired,
|
44
41
|
collapsed: import_ds_props_helpers.PropTypes.bool,
|
@@ -48,13 +45,14 @@ const itemPropsSchema = import_ds_props_helpers.PropTypes.shape({
|
|
48
45
|
});
|
49
46
|
const DSMenuTreeItemPropTypes = {
|
50
47
|
...import_ds_props_helpers.xstyledPropTypes,
|
51
|
-
item: itemPropsSchema.description("
|
52
|
-
onCollapse: import_ds_props_helpers.PropTypes.func,
|
53
|
-
subitems: import_ds_props_helpers.PropTypes.object,
|
54
|
-
onSelect: import_ds_props_helpers.PropTypes.func,
|
55
|
-
isSelected: import_ds_props_helpers.PropTypes.bool,
|
56
|
-
multiple: import_ds_props_helpers.PropTypes.bool,
|
57
|
-
depth: import_ds_props_helpers.PropTypes.number
|
48
|
+
item: itemPropsSchema.description("The item to render"),
|
49
|
+
onCollapse: import_ds_props_helpers.PropTypes.func.description("Callback when the item is collapsed"),
|
50
|
+
subitems: import_ds_props_helpers.PropTypes.object.description("The subitems of the item"),
|
51
|
+
onSelect: import_ds_props_helpers.PropTypes.func.description("Callback when the item is selected"),
|
52
|
+
isSelected: import_ds_props_helpers.PropTypes.bool.description("Whether the item is selected"),
|
53
|
+
multiple: import_ds_props_helpers.PropTypes.bool.description("Whether the menu is multiple"),
|
54
|
+
depth: import_ds_props_helpers.PropTypes.number.description("The depth of the item"),
|
55
|
+
dsId: import_ds_props_helpers.PropTypes.oneOfType([import_ds_props_helpers.PropTypes.string, import_ds_props_helpers.PropTypes.number])
|
58
56
|
};
|
59
57
|
const DSMenuTreeItemPropTypesSchema = DSMenuTreeItemPropTypes;
|
60
58
|
//# sourceMappingURL=react-desc-prop-types.js.map
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../src/react-desc-prop-types.ts", "../../../../../scripts/build/transpile/react-shim.js"],
|
4
|
-
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { DSMenuTreeItemName, MENU_TREE_ITEM_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSMenuTreeItemT {\n export interface ItemT {\n dsId: string;\n collapsed?: boolean;\n depth: number;\n subitems: ItemT[] | null;\n }\n\n export interface TreeviewItemProps {\n onCollapse: (dsId: string) => void;\n item: ItemT;\n onSelect?: (dsId: string) => void;\n isSelected?: boolean;\n multiple?: boolean;\n }\n\n export interface RequiredProps {\n item: ItemT;\n dsId: string;\n depth: number;\n }\n\n export interface DefaultProps {
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAA4C;
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { DSMenuTreeItemName, MENU_TREE_ITEM_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSMenuTreeItemT {\n export interface ItemT {\n dsId: string;\n collapsed?: boolean;\n depth: number;\n subitems: ItemT[] | null;\n }\n\n export interface TreeviewItemProps {\n onCollapse: (dsId: string) => void;\n item: ItemT;\n onSelect?: (dsId: string) => void;\n isSelected?: boolean;\n multiple?: boolean;\n }\n\n export interface RequiredProps {\n item: ItemT;\n dsId: string;\n depth: number;\n }\n\n export interface DefaultProps {}\n\n export interface OptionalProps extends PropsForGlobalOnSlots<typeof DSMenuTreeItemName, typeof MENU_TREE_ITEM_SLOTS> {\n onCollapse: (dsId: string) => void;\n subitems: ItemT[] | null;\n onSelect?: (dsId: string) => void;\n isSelected?: boolean;\n multiple?: boolean;\n }\n\n export interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {}\n\n export type ExampleState = '0' | '1';\n}\n\nexport const defaultProps: DSMenuTreeItemT.DefaultProps = {};\n\nconst itemPropsSchema = PropTypes.shape({\n dsId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,\n collapsed: PropTypes.bool,\n depth: PropTypes.number,\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n subitems: PropTypes.any,\n});\n\nexport const DSMenuTreeItemPropTypes: DSPropTypesSchema<DSMenuTreeItemT.InternalProps> = {\n ...xstyledPropTypes,\n item: itemPropsSchema.description('The item to render'),\n onCollapse: PropTypes.func.description('Callback when the item is collapsed'),\n subitems: PropTypes.object.description('The subitems of the item'),\n onSelect: PropTypes.func.description('Callback when the item is selected'),\n isSelected: PropTypes.bool.description('Whether the item is selected'),\n multiple: PropTypes.bool.description('Whether the menu is multiple'),\n depth: PropTypes.number.description('The depth of the item'),\n dsId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n};\n\nexport const DSMenuTreeItemPropTypesSchema =\n DSMenuTreeItemPropTypes as unknown as WeakValidationMap<DSMenuTreeItemT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADEvB,8BAA4C;AA2CrC,MAAM,eAA6C,CAAC;AAE3D,MAAM,kBAAkB,kCAAU,MAAM;AAAA,EACtC,MAAM,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,MAAM,CAAC,EAAE;AAAA,EAChE,WAAW,kCAAU;AAAA,EACrB,OAAO,kCAAU;AAAA;AAAA,EAEjB,UAAU,kCAAU;AACtB,CAAC;AAEM,MAAM,0BAA4E;AAAA,EACvF,GAAG;AAAA,EACH,MAAM,gBAAgB,YAAY,oBAAoB;AAAA,EACtD,YAAY,kCAAU,KAAK,YAAY,qCAAqC;AAAA,EAC5E,UAAU,kCAAU,OAAO,YAAY,0BAA0B;AAAA,EACjE,UAAU,kCAAU,KAAK,YAAY,oCAAoC;AAAA,EACzE,YAAY,kCAAU,KAAK,YAAY,8BAA8B;AAAA,EACrE,UAAU,kCAAU,KAAK,YAAY,8BAA8B;AAAA,EACnE,OAAO,kCAAU,OAAO,YAAY,uBAAuB;AAAA,EAC3D,MAAM,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,MAAM,CAAC;AAChE;AAEO,MAAM,gCACX;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -1,9 +1,6 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import { PropTypes, xstyledPropTypes } from "@elliemae/ds-props-helpers";
|
3
|
-
const defaultProps = {
|
4
|
-
isSelected: false,
|
5
|
-
multiple: false
|
6
|
-
};
|
3
|
+
const defaultProps = {};
|
7
4
|
const itemPropsSchema = PropTypes.shape({
|
8
5
|
dsId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,
|
9
6
|
collapsed: PropTypes.bool,
|
@@ -13,13 +10,14 @@ const itemPropsSchema = PropTypes.shape({
|
|
13
10
|
});
|
14
11
|
const DSMenuTreeItemPropTypes = {
|
15
12
|
...xstyledPropTypes,
|
16
|
-
item: itemPropsSchema.description("
|
17
|
-
onCollapse: PropTypes.func,
|
18
|
-
subitems: PropTypes.object,
|
19
|
-
onSelect: PropTypes.func,
|
20
|
-
isSelected: PropTypes.bool,
|
21
|
-
multiple: PropTypes.bool,
|
22
|
-
depth: PropTypes.number
|
13
|
+
item: itemPropsSchema.description("The item to render"),
|
14
|
+
onCollapse: PropTypes.func.description("Callback when the item is collapsed"),
|
15
|
+
subitems: PropTypes.object.description("The subitems of the item"),
|
16
|
+
onSelect: PropTypes.func.description("Callback when the item is selected"),
|
17
|
+
isSelected: PropTypes.bool.description("Whether the item is selected"),
|
18
|
+
multiple: PropTypes.bool.description("Whether the menu is multiple"),
|
19
|
+
depth: PropTypes.number.description("The depth of the item"),
|
20
|
+
dsId: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
23
21
|
};
|
24
22
|
const DSMenuTreeItemPropTypesSchema = DSMenuTreeItemPropTypes;
|
25
23
|
export {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"version": 3,
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/react-desc-prop-types.ts"],
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { DSMenuTreeItemName, MENU_TREE_ITEM_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSMenuTreeItemT {\n export interface ItemT {\n dsId: string;\n collapsed?: boolean;\n depth: number;\n subitems: ItemT[] | null;\n }\n\n export interface TreeviewItemProps {\n onCollapse: (dsId: string) => void;\n item: ItemT;\n onSelect?: (dsId: string) => void;\n isSelected?: boolean;\n multiple?: boolean;\n }\n\n export interface RequiredProps {\n item: ItemT;\n dsId: string;\n depth: number;\n }\n\n export interface DefaultProps {
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,wBAAwB;
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport type { DSMenuTreeItemName, MENU_TREE_ITEM_SLOTS } from './constants/index.js';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSMenuTreeItemT {\n export interface ItemT {\n dsId: string;\n collapsed?: boolean;\n depth: number;\n subitems: ItemT[] | null;\n }\n\n export interface TreeviewItemProps {\n onCollapse: (dsId: string) => void;\n item: ItemT;\n onSelect?: (dsId: string) => void;\n isSelected?: boolean;\n multiple?: boolean;\n }\n\n export interface RequiredProps {\n item: ItemT;\n dsId: string;\n depth: number;\n }\n\n export interface DefaultProps {}\n\n export interface OptionalProps extends PropsForGlobalOnSlots<typeof DSMenuTreeItemName, typeof MENU_TREE_ITEM_SLOTS> {\n onCollapse: (dsId: string) => void;\n subitems: ItemT[] | null;\n onSelect?: (dsId: string) => void;\n isSelected?: boolean;\n multiple?: boolean;\n }\n\n export interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {}\n\n export interface InternalProps extends DefaultProps, OptionalProps, XstyledProps, RequiredProps {}\n\n export type ExampleState = '0' | '1';\n}\n\nexport const defaultProps: DSMenuTreeItemT.DefaultProps = {};\n\nconst itemPropsSchema = PropTypes.shape({\n dsId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,\n collapsed: PropTypes.bool,\n depth: PropTypes.number,\n // eslint-disable-next-line @typescript-eslint/no-use-before-define\n subitems: PropTypes.any,\n});\n\nexport const DSMenuTreeItemPropTypes: DSPropTypesSchema<DSMenuTreeItemT.InternalProps> = {\n ...xstyledPropTypes,\n item: itemPropsSchema.description('The item to render'),\n onCollapse: PropTypes.func.description('Callback when the item is collapsed'),\n subitems: PropTypes.object.description('The subitems of the item'),\n onSelect: PropTypes.func.description('Callback when the item is selected'),\n isSelected: PropTypes.bool.description('Whether the item is selected'),\n multiple: PropTypes.bool.description('Whether the menu is multiple'),\n depth: PropTypes.number.description('The depth of the item'),\n dsId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n};\n\nexport const DSMenuTreeItemPropTypesSchema =\n DSMenuTreeItemPropTypes as unknown as WeakValidationMap<DSMenuTreeItemT.Props>;\n"],
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACEvB,SAAS,WAAW,wBAAwB;AA2CrC,MAAM,eAA6C,CAAC;AAE3D,MAAM,kBAAkB,UAAU,MAAM;AAAA,EACtC,MAAM,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE;AAAA,EAChE,WAAW,UAAU;AAAA,EACrB,OAAO,UAAU;AAAA;AAAA,EAEjB,UAAU,UAAU;AACtB,CAAC;AAEM,MAAM,0BAA4E;AAAA,EACvF,GAAG;AAAA,EACH,MAAM,gBAAgB,YAAY,oBAAoB;AAAA,EACtD,YAAY,UAAU,KAAK,YAAY,qCAAqC;AAAA,EAC5E,UAAU,UAAU,OAAO,YAAY,0BAA0B;AAAA,EACjE,UAAU,UAAU,KAAK,YAAY,oCAAoC;AAAA,EACzE,YAAY,UAAU,KAAK,YAAY,8BAA8B;AAAA,EACrE,UAAU,UAAU,KAAK,YAAY,8BAA8B;AAAA,EACnE,OAAO,UAAU,OAAO,YAAY,uBAAuB;AAAA,EAC3D,MAAM,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC;AAChE;AAEO,MAAM,gCACX;",
|
6
6
|
"names": []
|
7
7
|
}
|
@@ -21,13 +21,13 @@ export declare namespace DSMenuTreeItemT {
|
|
21
21
|
depth: number;
|
22
22
|
}
|
23
23
|
interface DefaultProps {
|
24
|
-
isSelected?: boolean;
|
25
|
-
multiple?: boolean;
|
26
24
|
}
|
27
25
|
interface OptionalProps extends PropsForGlobalOnSlots<typeof DSMenuTreeItemName, typeof MENU_TREE_ITEM_SLOTS> {
|
28
26
|
onCollapse: (dsId: string) => void;
|
29
27
|
subitems: ItemT[] | null;
|
30
28
|
onSelect?: (dsId: string) => void;
|
29
|
+
isSelected?: boolean;
|
30
|
+
multiple?: boolean;
|
31
31
|
}
|
32
32
|
interface Props extends Partial<DefaultProps>, OptionalProps, XstyledProps, RequiredProps {
|
33
33
|
}
|
@@ -36,5 +36,5 @@ export declare namespace DSMenuTreeItemT {
|
|
36
36
|
type ExampleState = '0' | '1';
|
37
37
|
}
|
38
38
|
export declare const defaultProps: DSMenuTreeItemT.DefaultProps;
|
39
|
-
export declare const DSMenuTreeItemPropTypes: DSPropTypesSchema<DSMenuTreeItemT.
|
39
|
+
export declare const DSMenuTreeItemPropTypes: DSPropTypesSchema<DSMenuTreeItemT.InternalProps>;
|
40
40
|
export declare const DSMenuTreeItemPropTypesSchema: WeakValidationMap<DSMenuTreeItemT.Props>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@elliemae/ds-menu-tree-item",
|
3
|
-
"version": "3.29.0-
|
3
|
+
"version": "3.29.0-rc.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "ICE MT - Dimsum - Menu Tree Item",
|
6
6
|
"files": [
|
@@ -36,21 +36,21 @@
|
|
36
36
|
},
|
37
37
|
"dependencies": {
|
38
38
|
"@xstyled/styled-components": "~3.6.0",
|
39
|
-
"@elliemae/ds-button-v2": "3.29.0-
|
40
|
-
"@elliemae/ds-form-checkbox": "3.29.0-
|
41
|
-
"@elliemae/ds-form-radio": "3.29.0-
|
42
|
-
"@elliemae/ds-grid": "3.29.0-
|
43
|
-
"@elliemae/ds-icons": "3.29.0-
|
44
|
-
"@elliemae/ds-props-helpers": "3.29.0-
|
45
|
-
"@elliemae/ds-separator": "3.29.0-
|
46
|
-
"@elliemae/ds-system": "3.29.0-
|
47
|
-
"@elliemae/ds-typography": "3.29.0-
|
48
|
-
"@elliemae/ds-utilities": "3.29.0-
|
39
|
+
"@elliemae/ds-button-v2": "3.29.0-rc.0",
|
40
|
+
"@elliemae/ds-form-checkbox": "3.29.0-rc.0",
|
41
|
+
"@elliemae/ds-form-radio": "3.29.0-rc.0",
|
42
|
+
"@elliemae/ds-grid": "3.29.0-rc.0",
|
43
|
+
"@elliemae/ds-icons": "3.29.0-rc.0",
|
44
|
+
"@elliemae/ds-props-helpers": "3.29.0-rc.0",
|
45
|
+
"@elliemae/ds-separator": "3.29.0-rc.0",
|
46
|
+
"@elliemae/ds-system": "3.29.0-rc.0",
|
47
|
+
"@elliemae/ds-typography": "3.29.0-rc.0",
|
48
|
+
"@elliemae/ds-utilities": "3.29.0-rc.0"
|
49
49
|
},
|
50
50
|
"devDependencies": {
|
51
51
|
"@elliemae/pui-cli": "~9.0.0-next.31",
|
52
52
|
"styled-components": "~5.3.9",
|
53
|
-
"@elliemae/ds-monorepo-devops": "3.29.0-
|
53
|
+
"@elliemae/ds-monorepo-devops": "3.29.0-rc.0"
|
54
54
|
},
|
55
55
|
"peerDependencies": {
|
56
56
|
"@testing-library/jest-dom": "~5.16.4",
|