ublo-lib 1.36.2 → 1.36.4
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/es/common/components/msem-preset-editor/editors/elloha.js +1 -1
- package/es/esf/components/account-button/account-button.d.ts +3 -2
- package/es/esf/components/account-button/account-button.d.ts.map +1 -1
- package/es/esf/components/account-button/account-button.js +5 -3
- package/es/lbm/components/instant-search/products.module.css +1 -0
- package/package.json +1 -1
|
@@ -73,7 +73,7 @@ export default function Elloha({ preset, setPreset, stay, setShowPresetDialog, o
|
|
|
73
73
|
}
|
|
74
74
|
function getDefaultData(preset) {
|
|
75
75
|
if (!preset?.presets)
|
|
76
|
-
return DEFAULT_DATA;
|
|
76
|
+
return DEFAULT_DATA.groupNames;
|
|
77
77
|
const { groupNames } = preset.presets;
|
|
78
78
|
return groupNames || DEFAULT_DATA.groupNames;
|
|
79
79
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as React from "react";
|
|
1
2
|
type Props = {
|
|
2
3
|
item: {
|
|
3
4
|
name: string;
|
|
@@ -9,6 +10,6 @@ type Props = {
|
|
|
9
10
|
showLabel?: boolean;
|
|
10
11
|
compact?: boolean;
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
-
export
|
|
13
|
+
declare const AccountButton: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export default AccountButton;
|
|
14
15
|
//# sourceMappingURL=account-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-button.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/account-button/account-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account-button.d.ts","sourceRoot":"","sources":["../../../../src/esf/components/account-button/account-button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,KAAK,GAAG;IACX,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,QAAA,MAAM,aAAa,iFA6BlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
2
3
|
import classNames from "classnames";
|
|
3
4
|
import Link from "ublo/link";
|
|
4
5
|
import Button from "dt-design-system/es/button";
|
|
5
6
|
import * as Icons from "dt-design-system/es/icons";
|
|
6
7
|
import styles from "./account-button.module.css";
|
|
7
|
-
|
|
8
|
+
const AccountButton = React.forwardRef(({ item, className, showLabel, compact }, ref) => {
|
|
8
9
|
const { name, path, shortTitle, title } = item;
|
|
9
10
|
const classes = classNames(styles.button, className, {
|
|
10
11
|
[styles.compact]: compact,
|
|
11
12
|
});
|
|
12
|
-
return (_jsxs(Button, { href: path, tag: Link, variant: "transparent", className: classes, "aria-label": shortTitle || title, compact: compact, children: [_jsx(Icons.User, { className: styles.icon }), showLabel && (_jsx("span", { className: styles.label, dangerouslySetInnerHTML: { __html: shortTitle || title } }))] }, name));
|
|
13
|
-
}
|
|
13
|
+
return (_jsxs(Button, { href: path, tag: Link, variant: "transparent", className: classes, "aria-label": shortTitle || title, compact: compact, ref: ref, children: [_jsx(Icons.User, { className: styles.icon }), showLabel && (_jsx("span", { className: styles.label, dangerouslySetInnerHTML: { __html: shortTitle || title } }))] }, name));
|
|
14
|
+
});
|
|
15
|
+
export default AccountButton;
|