@purpurds/cta-link 4.3.0 → 4.4.0
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/LICENSE.txt +2 -2
- package/dist/cta-link.cjs.js +1 -1
- package/dist/cta-link.cjs.js.map +1 -1
- package/dist/cta-link.d.ts +3 -2
- package/dist/cta-link.es.js +8 -8
- package/dist/cta-link.es.js.map +1 -1
- package/package.json +11 -11
package/dist/cta-link.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { ActionProps } from '@purpurds/action';
|
|
2
|
+
import { default as React, AnchorHTMLAttributes } from 'react';
|
|
3
|
+
|
|
3
4
|
export declare const ctaLinkIcons: readonly ["forward", "external", "back", "phone"];
|
|
4
5
|
export type CtaLinkIcon = typeof ctaLinkIcons[number];
|
|
5
6
|
export declare const CtaLink: ({ children, className, ["data-testid"]: dataTestid, fullWidth, iconOnly, size, variant, icon, ...props }: ActionProps & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
package/dist/cta-link.es.js
CHANGED
|
@@ -103,7 +103,7 @@ const b = /* @__PURE__ */ x(k), $ = {
|
|
|
103
103
|
}
|
|
104
104
|
);
|
|
105
105
|
};
|
|
106
|
-
function
|
|
106
|
+
function V(t) {
|
|
107
107
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
108
108
|
}
|
|
109
109
|
var m = { exports: {} };
|
|
@@ -142,8 +142,8 @@ var m = { exports: {} };
|
|
|
142
142
|
t.exports ? (a.default = a, t.exports = a) : window.classNames = a;
|
|
143
143
|
})();
|
|
144
144
|
})(m);
|
|
145
|
-
var
|
|
146
|
-
const
|
|
145
|
+
var B = m.exports;
|
|
146
|
+
const H = /* @__PURE__ */ V(B), s = {
|
|
147
147
|
"purpur-cta-link": "_purpur-cta-link_e7abc_1",
|
|
148
148
|
"purpur-cta-link--sm": "_purpur-cta-link--sm_e7abc_33",
|
|
149
149
|
"purpur-cta-link--icon-only": "_purpur-cta-link--icon-only_e7abc_36",
|
|
@@ -157,12 +157,12 @@ const B = /* @__PURE__ */ H(V), s = {
|
|
|
157
157
|
"purpur-cta-link--secondary-negative": "_purpur-cta-link--secondary-negative_e7abc_87",
|
|
158
158
|
"purpur-cta-link--expressive": "_purpur-cta-link--expressive_e7abc_98",
|
|
159
159
|
"purpur-cta-link--expressive-negative": "_purpur-cta-link--expressive-negative_e7abc_108"
|
|
160
|
-
}, p = "purpur-cta-link", D = ["forward", "external", "back", "phone"],
|
|
160
|
+
}, p = "purpur-cta-link", D = ["forward", "external", "back", "phone"], I = {
|
|
161
161
|
forward: S,
|
|
162
162
|
external: j,
|
|
163
163
|
back: M,
|
|
164
164
|
phone: L
|
|
165
|
-
},
|
|
165
|
+
}, P = ({
|
|
166
166
|
children: t,
|
|
167
167
|
className: l,
|
|
168
168
|
["data-testid"]: a,
|
|
@@ -173,7 +173,7 @@ const B = /* @__PURE__ */ H(V), s = {
|
|
|
173
173
|
icon: n = "forward",
|
|
174
174
|
...d
|
|
175
175
|
}) => {
|
|
176
|
-
const w =
|
|
176
|
+
const w = H(
|
|
177
177
|
[
|
|
178
178
|
l,
|
|
179
179
|
s[p],
|
|
@@ -185,7 +185,7 @@ const B = /* @__PURE__ */ H(V), s = {
|
|
|
185
185
|
[s[`${p}--negative`]]: e.endsWith("negative"),
|
|
186
186
|
[s[`${p}--full-width`]]: i
|
|
187
187
|
}
|
|
188
|
-
), h = d.href ? "a" : "span", v =
|
|
188
|
+
), h = d.href ? "a" : "span", v = I[n];
|
|
189
189
|
return /* @__PURE__ */ y(h, { className: w, "data-testid": a, ...d, children: [
|
|
190
190
|
(n === "back" || n === "phone") && /* @__PURE__ */ c(f, { svg: v, size: r === o.LG ? "sm" : "xs" }),
|
|
191
191
|
!u && t,
|
|
@@ -193,7 +193,7 @@ const B = /* @__PURE__ */ H(V), s = {
|
|
|
193
193
|
] });
|
|
194
194
|
};
|
|
195
195
|
export {
|
|
196
|
-
|
|
196
|
+
P as CtaLink,
|
|
197
197
|
D as ctaLinkIcons
|
|
198
198
|
};
|
|
199
199
|
//# sourceMappingURL=cta-link.es.js.map
|