@elliemae/ds-menu-items-section 3.70.0-next.27 → 3.70.0-next.28
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.
|
@@ -45,7 +45,7 @@ const DSMenuItemsSection = (props) => {
|
|
|
45
45
|
xstyledProps
|
|
46
46
|
} = (0, import_useMenuItemsSection.useMenuItemsSection)(props);
|
|
47
47
|
const { label, wrapperStyles, innerRef, render: Render } = props;
|
|
48
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_menu_items_commons.StyledSectionWrapper, { style: wrapperStyles, innerRef, role: "option", ...globalProps, ...xstyledProps, children: Render !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Render, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_menu_items_commons.StyledGroupLabel, { children: label }) });
|
|
48
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_menu_items_commons.StyledSectionWrapper, { style: wrapperStyles, innerRef, role: "option", ...globalProps, ...xstyledProps, children: Render !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Render, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ds_menu_items_commons.StyledGroupLabel, { variant: "b3-strong", component: "span", children: label }) });
|
|
49
49
|
};
|
|
50
50
|
DSMenuItemsSection.displayName = "DSSectionMenuItem";
|
|
51
51
|
const DSMenuItemsSectionWithSchema = (0, import_ds_props_helpers.describe)(DSMenuItemsSection);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../src/DSMenuItemsSection.tsx", "../../../../../scripts/build/transpile/react-shim.js"],
|
|
4
|
-
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { StyledSectionWrapper, StyledGroupLabel } from '@elliemae/ds-menu-items-commons';\nimport { type DSMenuItemsSectionT, DSMenuItemsSectionPropTypesSchema } from './react-desc-prop-types.js';\nimport { useMenuItemsSection } from './config/useMenuItemsSection.js';\n\nconst DSMenuItemsSection: React.ComponentType<DSMenuItemsSectionT.Props> = (props) => {\n const {\n // propsWithDefault, // legacy code was not using this for anything else than globalProps and xstyledProps\n globalProps,\n xstyledProps,\n } = useMenuItemsSection(props);\n\n // since we have `{}` as DefaultProps, props and propsWithDefault are basically the same...\n // this is kept as is to avoid complications, but it could be simplified/improved\n const { label, wrapperStyles, innerRef, render: Render } = props;\n\n return (\n <StyledSectionWrapper style={wrapperStyles} innerRef={innerRef} role=\"option\" {...globalProps} {...xstyledProps}>\n {Render !== undefined ? <Render {...props}
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;
|
|
4
|
+
"sourcesContent": ["import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { StyledSectionWrapper, StyledGroupLabel } from '@elliemae/ds-menu-items-commons';\nimport { type DSMenuItemsSectionT, DSMenuItemsSectionPropTypesSchema } from './react-desc-prop-types.js';\nimport { useMenuItemsSection } from './config/useMenuItemsSection.js';\n\nconst DSMenuItemsSection: React.ComponentType<DSMenuItemsSectionT.Props> = (props) => {\n const {\n // propsWithDefault, // legacy code was not using this for anything else than globalProps and xstyledProps\n globalProps,\n xstyledProps,\n } = useMenuItemsSection(props);\n\n // since we have `{}` as DefaultProps, props and propsWithDefault are basically the same...\n // this is kept as is to avoid complications, but it could be simplified/improved\n const { label, wrapperStyles, innerRef, render: Render } = props;\n\n return (\n <StyledSectionWrapper style={wrapperStyles} innerRef={innerRef} role=\"option\" {...globalProps} {...xstyledProps}>\n {Render !== undefined ? (\n <Render {...props} />\n ) : (\n <StyledGroupLabel variant=\"b3-strong\" component=\"span\">\n {label}\n </StyledGroupLabel>\n )}\n </StyledSectionWrapper>\n );\n};\n\n// this is `'DSSectionMenuItem'` for legacy reasons, when moving to inheritance pattern this has been kept as it was to avoid complications\nDSMenuItemsSection.displayName = 'DSSectionMenuItem';\nconst DSMenuItemsSectionWithSchema = describe(DSMenuItemsSection);\nDSMenuItemsSectionWithSchema.propTypes = DSMenuItemsSectionPropTypesSchema;\n\nexport { DSMenuItemsSection, DSMenuItemsSectionWithSchema };\n", "import * as React from 'react';\nexport { React };\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;ACAA,YAAuB;ADoBf;AAnBR,8BAAyB;AACzB,mCAAuD;AACvD,mCAA4E;AAC5E,iCAAoC;AAEpC,MAAM,qBAAqE,CAAC,UAAU;AACpF,QAAM;AAAA;AAAA,IAEJ;AAAA,IACA;AAAA,EACF,QAAI,gDAAoB,KAAK;AAI7B,QAAM,EAAE,OAAO,eAAe,UAAU,QAAQ,OAAO,IAAI;AAE3D,SACE,4CAAC,qDAAqB,OAAO,eAAe,UAAoB,MAAK,UAAU,GAAG,aAAc,GAAG,cAChG,qBAAW,SACV,4CAAC,UAAQ,GAAG,OAAO,IAEnB,4CAAC,iDAAiB,SAAQ,aAAY,WAAU,QAC7C,iBACH,GAEJ;AAEJ;AAGA,mBAAmB,cAAc;AACjC,MAAM,mCAA+B,kCAAS,kBAAkB;AAChE,6BAA6B,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -11,7 +11,7 @@ const DSMenuItemsSection = (props) => {
|
|
|
11
11
|
xstyledProps
|
|
12
12
|
} = useMenuItemsSection(props);
|
|
13
13
|
const { label, wrapperStyles, innerRef, render: Render } = props;
|
|
14
|
-
return /* @__PURE__ */ jsx(StyledSectionWrapper, { style: wrapperStyles, innerRef, role: "option", ...globalProps, ...xstyledProps, children: Render !== void 0 ? /* @__PURE__ */ jsx(Render, { ...props }) : /* @__PURE__ */ jsx(StyledGroupLabel, { children: label }) });
|
|
14
|
+
return /* @__PURE__ */ jsx(StyledSectionWrapper, { style: wrapperStyles, innerRef, role: "option", ...globalProps, ...xstyledProps, children: Render !== void 0 ? /* @__PURE__ */ jsx(Render, { ...props }) : /* @__PURE__ */ jsx(StyledGroupLabel, { variant: "b3-strong", component: "span", children: label }) });
|
|
15
15
|
};
|
|
16
16
|
DSMenuItemsSection.displayName = "DSSectionMenuItem";
|
|
17
17
|
const DSMenuItemsSectionWithSchema = describe(DSMenuItemsSection);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../../../scripts/build/transpile/react-shim.js", "../../src/DSMenuItemsSection.tsx"],
|
|
4
|
-
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { StyledSectionWrapper, StyledGroupLabel } from '@elliemae/ds-menu-items-commons';\nimport { type DSMenuItemsSectionT, DSMenuItemsSectionPropTypesSchema } from './react-desc-prop-types.js';\nimport { useMenuItemsSection } from './config/useMenuItemsSection.js';\n\nconst DSMenuItemsSection: React.ComponentType<DSMenuItemsSectionT.Props> = (props) => {\n const {\n // propsWithDefault, // legacy code was not using this for anything else than globalProps and xstyledProps\n globalProps,\n xstyledProps,\n } = useMenuItemsSection(props);\n\n // since we have `{}` as DefaultProps, props and propsWithDefault are basically the same...\n // this is kept as is to avoid complications, but it could be simplified/improved\n const { label, wrapperStyles, innerRef, render: Render } = props;\n\n return (\n <StyledSectionWrapper style={wrapperStyles} innerRef={innerRef} role=\"option\" {...globalProps} {...xstyledProps}>\n {Render !== undefined ? <Render {...props}
|
|
5
|
-
"mappings": "AAAA,YAAY,WAAW;
|
|
4
|
+
"sourcesContent": ["import * as React from 'react';\nexport { React };\n", "import React from 'react';\nimport { describe } from '@elliemae/ds-props-helpers';\nimport { StyledSectionWrapper, StyledGroupLabel } from '@elliemae/ds-menu-items-commons';\nimport { type DSMenuItemsSectionT, DSMenuItemsSectionPropTypesSchema } from './react-desc-prop-types.js';\nimport { useMenuItemsSection } from './config/useMenuItemsSection.js';\n\nconst DSMenuItemsSection: React.ComponentType<DSMenuItemsSectionT.Props> = (props) => {\n const {\n // propsWithDefault, // legacy code was not using this for anything else than globalProps and xstyledProps\n globalProps,\n xstyledProps,\n } = useMenuItemsSection(props);\n\n // since we have `{}` as DefaultProps, props and propsWithDefault are basically the same...\n // this is kept as is to avoid complications, but it could be simplified/improved\n const { label, wrapperStyles, innerRef, render: Render } = props;\n\n return (\n <StyledSectionWrapper style={wrapperStyles} innerRef={innerRef} role=\"option\" {...globalProps} {...xstyledProps}>\n {Render !== undefined ? (\n <Render {...props} />\n ) : (\n <StyledGroupLabel variant=\"b3-strong\" component=\"span\">\n {label}\n </StyledGroupLabel>\n )}\n </StyledSectionWrapper>\n );\n};\n\n// this is `'DSSectionMenuItem'` for legacy reasons, when moving to inheritance pattern this has been kept as it was to avoid complications\nDSMenuItemsSection.displayName = 'DSSectionMenuItem';\nconst DSMenuItemsSectionWithSchema = describe(DSMenuItemsSection);\nDSMenuItemsSectionWithSchema.propTypes = DSMenuItemsSectionPropTypesSchema;\n\nexport { DSMenuItemsSection, DSMenuItemsSectionWithSchema };\n"],
|
|
5
|
+
"mappings": "AAAA,YAAY,WAAW;ACoBf;AAnBR,SAAS,gBAAgB;AACzB,SAAS,sBAAsB,wBAAwB;AACvD,SAAmC,yCAAyC;AAC5E,SAAS,2BAA2B;AAEpC,MAAM,qBAAqE,CAAC,UAAU;AACpF,QAAM;AAAA;AAAA,IAEJ;AAAA,IACA;AAAA,EACF,IAAI,oBAAoB,KAAK;AAI7B,QAAM,EAAE,OAAO,eAAe,UAAU,QAAQ,OAAO,IAAI;AAE3D,SACE,oBAAC,wBAAqB,OAAO,eAAe,UAAoB,MAAK,UAAU,GAAG,aAAc,GAAG,cAChG,qBAAW,SACV,oBAAC,UAAQ,GAAG,OAAO,IAEnB,oBAAC,oBAAiB,SAAQ,aAAY,WAAU,QAC7C,iBACH,GAEJ;AAEJ;AAGA,mBAAmB,cAAc;AACjC,MAAM,+BAA+B,SAAS,kBAAkB;AAChE,6BAA6B,YAAY;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-menu-items-section",
|
|
3
|
-
"version": "3.70.0-next.
|
|
3
|
+
"version": "3.70.0-next.28",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Menu Items Section",
|
|
6
6
|
"files": [
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
"indent": 4
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@elliemae/ds-grid": "3.70.0-next.
|
|
40
|
-
"@elliemae/ds-
|
|
41
|
-
"@elliemae/ds-
|
|
39
|
+
"@elliemae/ds-grid": "3.70.0-next.28",
|
|
40
|
+
"@elliemae/ds-props-helpers": "3.70.0-next.28",
|
|
41
|
+
"@elliemae/ds-menu-items-commons": "3.70.0-next.28"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"jest": "^30.0.0",
|
|
45
45
|
"lodash-es": "^4.18.1",
|
|
46
46
|
"styled-components": "~5.3.9",
|
|
47
|
-
"@elliemae/ds-monorepo-devops": "3.70.0-next.
|
|
47
|
+
"@elliemae/ds-monorepo-devops": "3.70.0-next.28"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@testing-library/jest-dom": "^6.6.3",
|