@dmsi/wedgekit-react 0.0.211 → 0.0.213
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.
|
@@ -339,12 +339,14 @@ var TopBar = (_a) => {
|
|
|
339
339
|
left,
|
|
340
340
|
brandLogo = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(LogoDMSiTopBar, {}),
|
|
341
341
|
id,
|
|
342
|
-
testid
|
|
342
|
+
testid,
|
|
343
|
+
brandHref = "/"
|
|
343
344
|
} = _b, props = __objRest(_b, [
|
|
344
345
|
"left",
|
|
345
346
|
"brandLogo",
|
|
346
347
|
"id",
|
|
347
|
-
"testid"
|
|
348
|
+
"testid",
|
|
349
|
+
"brandHref"
|
|
348
350
|
]);
|
|
349
351
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
350
352
|
TopBarBase,
|
|
@@ -358,7 +360,7 @@ var TopBar = (_a) => {
|
|
|
358
360
|
{
|
|
359
361
|
id: id ? `${id}-brand-logo-link` : void 0,
|
|
360
362
|
"data-testid": testid ? `${testid}-brand-logo-link` : void 0,
|
|
361
|
-
href:
|
|
363
|
+
href: brandHref,
|
|
362
364
|
className: "grow max-w-[400px] h-auto max-h-10 *:max-h-[inherit]",
|
|
363
365
|
children: brandLogo && brandLogo
|
|
364
366
|
}
|
|
@@ -110,12 +110,14 @@ var TopBar = (_a) => {
|
|
|
110
110
|
left,
|
|
111
111
|
brandLogo = /* @__PURE__ */ jsx(LogoDMSiTopBar, {}),
|
|
112
112
|
id,
|
|
113
|
-
testid
|
|
113
|
+
testid,
|
|
114
|
+
brandHref = "/"
|
|
114
115
|
} = _b, props = __objRest(_b, [
|
|
115
116
|
"left",
|
|
116
117
|
"brandLogo",
|
|
117
118
|
"id",
|
|
118
|
-
"testid"
|
|
119
|
+
"testid",
|
|
120
|
+
"brandHref"
|
|
119
121
|
]);
|
|
120
122
|
return /* @__PURE__ */ jsx(
|
|
121
123
|
TopBarBase,
|
|
@@ -129,7 +131,7 @@ var TopBar = (_a) => {
|
|
|
129
131
|
{
|
|
130
132
|
id: id ? `${id}-brand-logo-link` : void 0,
|
|
131
133
|
"data-testid": testid ? `${testid}-brand-logo-link` : void 0,
|
|
132
|
-
href:
|
|
134
|
+
href: brandHref,
|
|
133
135
|
className: "grow max-w-[400px] h-auto max-h-10 *:max-h-[inherit]",
|
|
134
136
|
children: brandLogo && brandLogo
|
|
135
137
|
}
|
package/package.json
CHANGED
|
@@ -104,8 +104,14 @@ export const TopBar = ({
|
|
|
104
104
|
brandLogo = <LogoDMSiTopBar />,
|
|
105
105
|
id,
|
|
106
106
|
testid,
|
|
107
|
+
brandHref = "/",
|
|
107
108
|
...props
|
|
108
|
-
}: TopBarProps & {
|
|
109
|
+
}: TopBarProps & {
|
|
110
|
+
brandLogo?: ReactNode;
|
|
111
|
+
id?: string;
|
|
112
|
+
testid?: string;
|
|
113
|
+
brandHref?: string;
|
|
114
|
+
}) => {
|
|
109
115
|
return (
|
|
110
116
|
<TopBarBase
|
|
111
117
|
{...props}
|
|
@@ -117,7 +123,7 @@ export const TopBar = ({
|
|
|
117
123
|
<a
|
|
118
124
|
id={id ? `${id}-brand-logo-link` : undefined}
|
|
119
125
|
data-testid={testid ? `${testid}-brand-logo-link` : undefined}
|
|
120
|
-
href=
|
|
126
|
+
href={brandHref}
|
|
121
127
|
className="grow max-w-[400px] h-auto max-h-10 *:max-h-[inherit]"
|
|
122
128
|
>
|
|
123
129
|
{brandLogo && brandLogo}
|