@elliemae/ds-menu-items-separator 3.70.0-next.7 → 3.70.0-next.71
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/cjs/package.json
CHANGED
|
@@ -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-duplicate-type-constituents */\n
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAAuE;AACvE,mCAIO;
|
|
4
|
+
"sourcesContent": ["/* eslint-disable @typescript-eslint/no-duplicate-type-constituents */\n\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport {\n type DSMenuItemsCommonsT,\n DSMenuItemsCommonsPropTypes,\n DSMenuItemsCommonsDefaultProps,\n} from '@elliemae/ds-menu-items-commons';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSMenuItemsSeparatorT {\n /** *****************************************************************************************\n ******************************** IMPORTANT DISCLAIMER *************************************\n *******************************************************************************************\n This component violates `common.RequiredProps` because\n - it does not have a `dsId` prop\n - not only it is not required, it's literally ignored\n this is \"okay\" because the separator is not selectable nor activatable, but may not scale well...\n \n I am reflecting what the code is actually doing instead of what we \"meant\" to do.\n ***************************************************************************************** */\n\n // sections can not be \"selected\" nor activated and for this reason we never had an hard requirement for the dsId\n // this may not scale well but to avoid breaking changes we are keeping it this way, if we ever need to add it we will do a V2\n export type RequiredProps = Record<string, never>;\n\n export type DefaultProps = DSMenuItemsCommonsT.DefaultProps & {\n role?: string;\n };\n\n export type OptionalProps = DSMenuItemsCommonsT.OptionalProps<DSMenuItemsSeparatorT.InternalProps>;\n\n // this is not \"standard\" because of what was said in the disclaimer above.\n export interface Props\n extends\n Partial<DefaultProps>,\n OptionalProps,\n // no \"RequiredProps\" because of what was said in the disclaimer above.\n Omit<GlobalAttributesT<HTMLLIElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>,\n XstyledProps {}\n\n export interface InternalProps\n extends\n DefaultProps,\n OptionalProps,\n // no \"RequiredProps\" because of what was said in the disclaimer above.\n Omit<GlobalAttributesT<HTMLLIElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>,\n XstyledProps {}\n}\n\nexport const defaultProps: DSMenuItemsSeparatorT.DefaultProps = {\n ...DSMenuItemsCommonsDefaultProps,\n role: 'option',\n};\n\n// check the disclaimer above, this affects the validation.\n// eslint-disable-next-line no-unused-vars\nconst { dsId, ...commonsWithoutOverwrites } = DSMenuItemsCommonsPropTypes;\n\nexport const DSMenuItemsSeparatorPropTypes: DSPropTypesSchema<DSMenuItemsSeparatorT.InternalProps> = {\n // each single menu-item is in charge of spreading the GlobalAttributesT & XstyledProps\n // they are NOT inherited from a common element from ds-menu-items-commons\n ...xstyledPropTypes,\n ...commonsWithoutOverwrites,\n ...globalAttributesPropTypes,\n role: PropTypes.string\n .description('the arial role to apply to the separator, defaults to \"option\"')\n .defaultValue('option'),\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).description(\n 'The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed.',\n ),\n};\n\nexport const DSMenuItemsSeparatorPropTypesSchema =\n DSMenuItemsSeparatorPropTypes as unknown as WeakValidationMap<DSMenuItemsSeparatorT.Props>;\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADGvB,8BAAuE;AACvE,mCAIO;AA2CA,MAAM,eAAmD;AAAA,EAC9D,GAAG;AAAA,EACH,MAAM;AACR;AAIA,MAAM,EAAE,MAAM,GAAG,yBAAyB,IAAI;AAEvC,MAAM,gCAAwF;AAAA;AAAA;AAAA,EAGnG,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM,kCAAU,OACb,YAAY,gEAAgE,EAC5E,aAAa,QAAQ;AAAA,EACxB,UAAU,kCAAU,UAAU,CAAC,kCAAU,QAAQ,kCAAU,MAAM,CAAC,EAAE;AAAA,IAClE;AAAA,EACF;AACF;AAEO,MAAM,sCACX;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/dist/esm/package.json
CHANGED
|
@@ -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-duplicate-type-constituents */\n
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,WAAW,2BAA2B,wBAAwB;AACvE;AAAA,EAEE;AAAA,EACA;AAAA,OACK;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "/* eslint-disable @typescript-eslint/no-duplicate-type-constituents */\n\nimport type { GlobalAttributesT, XstyledProps, DSPropTypesSchema } from '@elliemae/ds-props-helpers';\nimport { PropTypes, globalAttributesPropTypes, xstyledPropTypes } from '@elliemae/ds-props-helpers';\nimport {\n type DSMenuItemsCommonsT,\n DSMenuItemsCommonsPropTypes,\n DSMenuItemsCommonsDefaultProps,\n} from '@elliemae/ds-menu-items-commons';\nimport type { WeakValidationMap } from 'react';\n\nexport declare namespace DSMenuItemsSeparatorT {\n /** *****************************************************************************************\n ******************************** IMPORTANT DISCLAIMER *************************************\n *******************************************************************************************\n This component violates `common.RequiredProps` because\n - it does not have a `dsId` prop\n - not only it is not required, it's literally ignored\n this is \"okay\" because the separator is not selectable nor activatable, but may not scale well...\n \n I am reflecting what the code is actually doing instead of what we \"meant\" to do.\n ***************************************************************************************** */\n\n // sections can not be \"selected\" nor activated and for this reason we never had an hard requirement for the dsId\n // this may not scale well but to avoid breaking changes we are keeping it this way, if we ever need to add it we will do a V2\n export type RequiredProps = Record<string, never>;\n\n export type DefaultProps = DSMenuItemsCommonsT.DefaultProps & {\n role?: string;\n };\n\n export type OptionalProps = DSMenuItemsCommonsT.OptionalProps<DSMenuItemsSeparatorT.InternalProps>;\n\n // this is not \"standard\" because of what was said in the disclaimer above.\n export interface Props\n extends\n Partial<DefaultProps>,\n OptionalProps,\n // no \"RequiredProps\" because of what was said in the disclaimer above.\n Omit<GlobalAttributesT<HTMLLIElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>,\n XstyledProps {}\n\n export interface InternalProps\n extends\n DefaultProps,\n OptionalProps,\n // no \"RequiredProps\" because of what was said in the disclaimer above.\n Omit<GlobalAttributesT<HTMLLIElement>, keyof DefaultProps | keyof OptionalProps | keyof XstyledProps>,\n XstyledProps {}\n}\n\nexport const defaultProps: DSMenuItemsSeparatorT.DefaultProps = {\n ...DSMenuItemsCommonsDefaultProps,\n role: 'option',\n};\n\n// check the disclaimer above, this affects the validation.\n// eslint-disable-next-line no-unused-vars\nconst { dsId, ...commonsWithoutOverwrites } = DSMenuItemsCommonsPropTypes;\n\nexport const DSMenuItemsSeparatorPropTypes: DSPropTypesSchema<DSMenuItemsSeparatorT.InternalProps> = {\n // each single menu-item is in charge of spreading the GlobalAttributesT & XstyledProps\n // they are NOT inherited from a common element from ds-menu-items-commons\n ...xstyledPropTypes,\n ...commonsWithoutOverwrites,\n ...globalAttributesPropTypes,\n role: PropTypes.string\n .description('the arial role to apply to the separator, defaults to \"option\"')\n .defaultValue('option'),\n tabIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).description(\n 'The tab index of the menu item. for WCAG 2.1 AA compliance only -1 and 0 are allowed.',\n ),\n};\n\nexport const DSMenuItemsSeparatorPropTypesSchema =\n DSMenuItemsSeparatorPropTypes as unknown as WeakValidationMap<DSMenuItemsSeparatorT.Props>;\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACGvB,SAAS,WAAW,2BAA2B,wBAAwB;AACvE;AAAA,EAEE;AAAA,EACA;AAAA,OACK;AA2CA,MAAM,eAAmD;AAAA,EAC9D,GAAG;AAAA,EACH,MAAM;AACR;AAIA,MAAM,EAAE,MAAM,GAAG,yBAAyB,IAAI;AAEvC,MAAM,gCAAwF;AAAA;AAAA;AAAA,EAGnG,GAAG;AAAA,EACH,GAAG;AAAA,EACH,GAAG;AAAA,EACH,MAAM,UAAU,OACb,YAAY,gEAAgE,EAC5E,aAAa,QAAQ;AAAA,EACxB,UAAU,UAAU,UAAU,CAAC,UAAU,QAAQ,UAAU,MAAM,CAAC,EAAE;AAAA,IAClE;AAAA,EACF;AACF;AAEO,MAAM,sCACX;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-menu-items-separator",
|
|
3
|
-
"version": "3.70.0-next.
|
|
3
|
+
"version": "3.70.0-next.71",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Menu Items Separator",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
],
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "https://
|
|
25
|
+
"url": "https://github.com/intcx/PLATFORM-UI.dimsum.git"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
28
|
"pnpm": ">=9",
|
|
@@ -36,24 +36,24 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-
|
|
40
|
-
"@elliemae/ds-
|
|
41
|
-
"@elliemae/ds-
|
|
39
|
+
"@elliemae/ds-grid": "3.70.0-next.71",
|
|
40
|
+
"@elliemae/ds-props-helpers": "3.70.0-next.71",
|
|
41
|
+
"@elliemae/ds-menu-items-commons": "3.70.0-next.71"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"jest": "^30.0.0",
|
|
45
|
-
"lodash-es": "^4.
|
|
46
|
-
"styled-components": "~5.3.
|
|
47
|
-
"@elliemae/ds-monorepo-devops": "3.70.0-next.
|
|
45
|
+
"lodash-es": "^4.18.1",
|
|
46
|
+
"styled-components": "~5.3.11",
|
|
47
|
+
"@elliemae/ds-monorepo-devops": "3.70.0-next.71"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@testing-library/jest-dom": "^6.6.3",
|
|
51
51
|
"@testing-library/react": "^16.0.1",
|
|
52
52
|
"@testing-library/user-event": "~14.6.1",
|
|
53
|
-
"lodash-es": "^4.
|
|
53
|
+
"lodash-es": "^4.18.1",
|
|
54
54
|
"react": "^18.3.1",
|
|
55
55
|
"react-dom": "^18.3.1",
|
|
56
|
-
"styled-components": "~5.3.
|
|
56
|
+
"styled-components": "~5.3.11"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public",
|
|
@@ -68,4 +68,4 @@
|
|
|
68
68
|
"build": "cross-env NODE_ENV=production node ../../../scripts/build/build.mjs",
|
|
69
69
|
"checkDeps": "npx -yes ../../util/ds-codemods check-missing-packages --projectFolderPath=\"./\" --ignorePackagesGlobPattern=\"\" --ignoreFilesGlobPattern=\"**/test-ables/*,**/tests/*\""
|
|
70
70
|
}
|
|
71
|
-
}
|
|
71
|
+
}
|