@elliemae/ds-menu-tree-item 3.29.1 → 3.30.0-next.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 {}\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;",
4
+ "sourcesContent": ["/* eslint-disable @typescript-eslint/no-empty-interface */\nimport type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { type TypescriptHelpersT } from '@elliemae/ds-typescript-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\n extends TypescriptHelpersT.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;ADGvB,8BAA4C;AA4CrC,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,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 {}\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;",
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 { type TypescriptHelpersT } from '@elliemae/ds-typescript-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\n extends TypescriptHelpersT.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;ACGvB,SAAS,WAAW,wBAAwB;AA4CrC,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
  }
@@ -1,4 +1,5 @@
1
1
  import type { XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';
2
+ import { type TypescriptHelpersT } from '@elliemae/ds-typescript-helpers';
2
3
  import type { DSMenuTreeItemName, MENU_TREE_ITEM_SLOTS } from './constants/index.js';
3
4
  import type { WeakValidationMap } from 'react';
4
5
  export declare namespace DSMenuTreeItemT {
@@ -22,7 +23,7 @@ export declare namespace DSMenuTreeItemT {
22
23
  }
23
24
  interface DefaultProps {
24
25
  }
25
- interface OptionalProps extends PropsForGlobalOnSlots<typeof DSMenuTreeItemName, typeof MENU_TREE_ITEM_SLOTS> {
26
+ interface OptionalProps extends TypescriptHelpersT.PropsForGlobalOnSlots<typeof DSMenuTreeItemName, typeof MENU_TREE_ITEM_SLOTS> {
26
27
  onCollapse: (dsId: string) => void;
27
28
  subitems: ItemT[] | null;
28
29
  onSelect?: (dsId: string) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-menu-tree-item",
3
- "version": "3.29.1",
3
+ "version": "3.30.0-next.0",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Menu Tree Item",
6
6
  "files": [
@@ -36,21 +36,22 @@
36
36
  },
37
37
  "dependencies": {
38
38
  "@xstyled/styled-components": "~3.6.0",
39
- "@elliemae/ds-button-v2": "3.29.1",
40
- "@elliemae/ds-form-radio": "3.29.1",
41
- "@elliemae/ds-form-checkbox": "3.29.1",
42
- "@elliemae/ds-grid": "3.29.1",
43
- "@elliemae/ds-icons": "3.29.1",
44
- "@elliemae/ds-props-helpers": "3.29.1",
45
- "@elliemae/ds-separator": "3.29.1",
46
- "@elliemae/ds-system": "3.29.1",
47
- "@elliemae/ds-typography": "3.29.1",
48
- "@elliemae/ds-utilities": "3.29.1"
39
+ "@elliemae/ds-button-v2": "3.30.0-next.0",
40
+ "@elliemae/ds-form-checkbox": "3.30.0-next.0",
41
+ "@elliemae/ds-props-helpers": "3.30.0-next.0",
42
+ "@elliemae/ds-form-radio": "3.30.0-next.0",
43
+ "@elliemae/ds-separator": "3.30.0-next.0",
44
+ "@elliemae/ds-system": "3.30.0-next.0",
45
+ "@elliemae/ds-icons": "3.30.0-next.0",
46
+ "@elliemae/ds-grid": "3.30.0-next.0",
47
+ "@elliemae/ds-typescript-helpers": "3.30.0-next.0",
48
+ "@elliemae/ds-typography": "3.30.0-next.0",
49
+ "@elliemae/ds-utilities": "3.30.0-next.0"
49
50
  },
50
51
  "devDependencies": {
51
52
  "@elliemae/pui-cli": "~9.0.0-next.31",
52
53
  "styled-components": "~5.3.9",
53
- "@elliemae/ds-monorepo-devops": "3.29.1"
54
+ "@elliemae/ds-monorepo-devops": "3.30.0-next.0"
54
55
  },
55
56
  "peerDependencies": {
56
57
  "@testing-library/jest-dom": "~5.16.4",