@landtrustinc/design-system 1.2.38 → 1.2.39
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/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1104,6 +1104,10 @@ type ContactLandownerButtonProps = {
|
|
|
1104
1104
|
* @default "Contact Landowner"
|
|
1105
1105
|
*/
|
|
1106
1106
|
buttonText?: string;
|
|
1107
|
+
/**
|
|
1108
|
+
* Target attribute for the link (e.g., "_blank" to open in new tab)
|
|
1109
|
+
*/
|
|
1110
|
+
target?: '_blank' | '_self' | '_parent' | '_top';
|
|
1107
1111
|
/**
|
|
1108
1112
|
* Additional CSS class names
|
|
1109
1113
|
*/
|
package/dist/index.js
CHANGED
|
@@ -5307,6 +5307,7 @@ var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
|
5307
5307
|
var ContactLandownerButton = ({
|
|
5308
5308
|
url,
|
|
5309
5309
|
buttonText = "Contact Landowner",
|
|
5310
|
+
target,
|
|
5310
5311
|
className
|
|
5311
5312
|
}) => {
|
|
5312
5313
|
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Box_default, { marginTop: "var(--spacing-4)", children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
@@ -5316,6 +5317,8 @@ var ContactLandownerButton = ({
|
|
|
5316
5317
|
size: "base",
|
|
5317
5318
|
as: "a",
|
|
5318
5319
|
href: url,
|
|
5320
|
+
target,
|
|
5321
|
+
rel: target === "_blank" ? "noopener noreferrer" : void 0,
|
|
5319
5322
|
className,
|
|
5320
5323
|
children: buttonText
|
|
5321
5324
|
}
|