@purpurds/cta-link 8.3.1 → 8.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 +1 -1
- package/dist/cta-link.cjs.js +3 -3
- package/dist/cta-link.es.js +56 -56
- package/dist/styles.css +1 -1
- package/package.json +5 -5
package/dist/LICENSE.txt
CHANGED
package/dist/cta-link.cjs.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),j=require("react");function S(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var x={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/var
|
|
5
|
+
*/var w;function q(){return w||(w=1,(function(t){(function(){var a={}.hasOwnProperty;function i(){for(var r="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(r=l(r,u.call(this,n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var n in r)a.call(r,n)&&r[n]&&(e=l(e,this&&this[n]||n));return e}function l(r,e){return e?r?r+" "+e:r+e:r}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(x)),x.exports}var C=q();const L=S(C),M={"purpur-icon":"_purpur-icon_8u1lq_1","purpur-icon--xxs":"_purpur-icon--xxs_8u1lq_4","purpur-icon--xs":"_purpur-icon--xs_8u1lq_8","purpur-icon--sm":"_purpur-icon--sm_8u1lq_12","purpur-icon--md":"_purpur-icon--md_8u1lq_16","purpur-icon--lg":"_purpur-icon--lg_8u1lq_20","purpur-icon--xl":"_purpur-icon--xl_8u1lq_24"},N=L.bind(M),y="purpur-icon",O="md",B=t=>t.filter(a=>Object.keys(a).length>=1).map(a=>`${a.name}="${a.value}"`).join(" "),A=({content:t="",title:a}={})=>{const i=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},{name:"viewBox",value:"0 0 24 24"},a?{name:"role",value:"img"}:{name:"aria-hidden",value:"true"}],u=a?`<title>${a}</title>`:"";return`<svg ${B(i)}>${u}${t}</svg>`},P=t=>t.replace(/<(\/?)svg([^>]*)>/g,"").trim(),v=({svg:t,allyTitle:a,className:i,size:u=O,...l})=>{const r=A({content:P(t.svg),title:a}),e=N(i,y,`${y}--${u}`);return s.jsx("span",{className:e,dangerouslySetInnerHTML:{__html:r},...l})};v.displayName="Icon";const H={name:"arrow-left",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M3.1 12a.9.9 0 0 1 .264-.636l5.5-5.5a.9.9 0 0 1 1.272 1.272L6.173 11.1H20a.9.9 0 0 1 0 1.8H6.173l3.963 3.964a.9.9 0 1 1-1.272 1.272l-5.5-5.5A.9.9 0 0 1 3.1 12Z" clip-rule="evenodd"/></svg>',keywords:["arrow-left"],category:"utility"},V={name:"arrow-right",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M20.9 12a.9.9 0 0 1-.264.636l-5.5 5.5a.9.9 0 0 1-1.272-1.272l3.963-3.964H4a.9.9 0 0 1 0-1.8h13.827l-3.963-3.964a.9.9 0 1 1 1.272-1.272l5.5 5.5A.9.9 0 0 1 20.9 12Z" clip-rule="evenodd"/></svg>',keywords:["arrow-right"],category:"utility"},Z={name:"external",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M15 3.4a.9.9 0 1 1 0-1.8h6.5a.9.9 0 0 1 .9.9V9a.9.9 0 1 1-1.8 0V4.673l-7.964 7.963a.9.9 0 1 1-1.272-1.272L19.327 3.4H15ZM1.6 5c0-1.05.85-1.9 1.9-1.9h6a.9.9 0 0 1 0 1.8h-6a.1.1 0 0 0-.1.1v15.5a.1.1 0 0 0 .1.1h16a.1.1 0 0 0 .1-.1V14a.9.9 0 1 1 1.8 0v6.5a1.9 1.9 0 0 1-1.9 1.9h-16a1.9 1.9 0 0 1-1.9-1.9V5Z" clip-rule="evenodd"/></svg>',keywords:["external"],category:"media"},I={name:"phone",svg:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path fill-rule="evenodd" d="M5.341 2.228c.75-.622 1.73-.43 2.305.145l2.783 2.783a1.9 1.9 0 0 1 0 2.687L8.843 9.43a.1.1 0 0 0 0 .142l5.586 5.585a.1.1 0 0 0 .142 0l1.585-1.585a1.9 1.9 0 0 1 2.687 0l3.5 3.5c.343.342.698 1.023.31 1.742-.346.645-1.173 1.615-3.154 2.936-1.75 1.167-3.667 1.269-5.297.903-1.61-.361-3.015-1.192-3.839-2.016a.9.9 0 0 1 1.273-1.272c.573.572 1.669 1.242 2.96 1.532 1.27.285 2.656.188 3.905-.645 1.483-.989 2.137-1.68 2.418-2.06l-3.348-3.347a.1.1 0 0 0-.142 0l-1.586 1.585a1.9 1.9 0 0 1-2.687 0l-5.585-5.585a1.9 1.9 0 0 1 0-2.688l1.585-1.585a.1.1 0 0 0 0-.142L6.41 3.682c-.447.383-1.183 1.102-2.206 2.38-.878 1.097-1.14 2.08-1.127 2.951.013.898.323 1.758.732 2.59.24.488.733 1.079 1.551 1.88.561.549 1.227 1.152 2.002 1.854.344.312.71.644 1.098 1a.9.9 0 0 1-1.215 1.327c-.367-.336-.722-.658-1.061-.965a77.443 77.443 0 0 1-2.082-1.93c-.831-.813-1.523-1.586-1.909-2.372-.456-.93-.896-2.07-.916-3.356-.02-1.314.399-2.7 1.521-4.103 1.148-1.435 1.995-2.254 2.544-2.71Z" clip-rule="evenodd"/></svg>',keywords:["phone"],category:"device"};function R(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var d={exports:{}};/*!
|
|
6
6
|
Copyright (c) 2018 Jed Watson.
|
|
7
7
|
Licensed under the MIT License (MIT), see
|
|
8
8
|
http://jedwatson.github.io/classnames
|
|
9
|
-
*/var k;function T(){return k||(k=1,(function(t){(function(){var
|
|
9
|
+
*/var k;function T(){return k||(k=1,(function(t){(function(){var a={}.hasOwnProperty;function i(){for(var r="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(r=l(r,u.call(this,n)))}return r}function u(r){if(typeof r=="string"||typeof r=="number")return this&&this[r]||r;if(typeof r!="object")return"";if(Array.isArray(r))return i.apply(this,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var n in r)a.call(r,n)&&r[n]&&(e=l(e,this&&this[n]||n));return e}function l(r,e){return e?r?r+" "+e:r+e:r}t.exports?(i.default=i,t.exports=i):window.classNames=i})()})(d)),d.exports}var E=T();const F=R(E),z={"purpur-cta-link":"_purpur-cta-link_1i7hm_1","purpur-cta-link--xs":"_purpur-cta-link--xs_1i7hm_22","purpur-cta-link--icon-only":"_purpur-cta-link--icon-only_1i7hm_25","purpur-cta-link--sm":"_purpur-cta-link--sm_1i7hm_28","purpur-cta-link--md":"_purpur-cta-link--md_1i7hm_34","purpur-cta-link--lg":"_purpur-cta-link--lg_1i7hm_40","purpur-cta-link--full-width":"_purpur-cta-link--full-width_1i7hm_46","purpur-cta-link--primary":"_purpur-cta-link--primary_1i7hm_64","purpur-cta-link--disabled":"_purpur-cta-link--disabled_1i7hm_68","purpur-cta-link--primary-negative":"_purpur-cta-link--primary-negative_1i7hm_74","purpur-cta-link--secondary":"_purpur-cta-link--secondary_1i7hm_86","purpur-cta-link--secondary-negative":"_purpur-cta-link--secondary-negative_1i7hm_97","purpur-cta-link--expressive":"_purpur-cta-link--expressive_1i7hm_108","purpur-cta-link--expressive-negative":"_purpur-cta-link--expressive-negative_1i7hm_118"},D=F.bind(z),o="purpur-cta-link",W=["forward","external","back","phone"],G={forward:V,external:Z,back:H,phone:I},b=j.forwardRef(({children:t,className:a,["data-testid"]:i,fullWidth:u=!1,iconOnly:l=!1,showIcon:r=!0,negative:e=!1,size:n="md",variant:f,icon:p="forward",...c},m)=>{const $=D([a,o,`${o}--${e?`${f}-negative`:f}`,`${o}--${n}`],{[`${o}--icon-only`]:l,[`${o}--negative`]:e,[`${o}--full-width`]:u}),_=G[p],h=s.jsxs(s.Fragment,{children:[r&&(p==="back"||p==="phone")&&s.jsx(v,{svg:_,size:n==="lg"?"sm":"xs"}),(!l||l&&!r)&&t,r&&(p==="forward"||p==="external")&&s.jsx(v,{svg:_,size:n==="lg"?"sm":"xs"})]}),g={...c,className:$,"data-testid":i};return"href"in c&&c.href?s.jsx("a",{...g,ref:m,children:h}):s.jsx("span",{...g,ref:m,children:h})});b.displayName="CtaLink";exports.CtaLink=b;exports.ctaLinkIcons=W;
|
|
10
10
|
//# sourceMappingURL=cta-link.cjs.js.map
|
package/dist/cta-link.es.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as p, jsxs as $, Fragment as S } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef as j } from "react";
|
|
3
3
|
function q(t) {
|
|
4
4
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
5
5
|
}
|
|
6
|
-
var
|
|
6
|
+
var w = { exports: {} };
|
|
7
7
|
/*!
|
|
8
8
|
Copyright (c) 2018 Jed Watson.
|
|
9
9
|
Licensed under the MIT License (MIT), see
|
|
@@ -13,8 +13,8 @@ var x;
|
|
|
13
13
|
function C() {
|
|
14
14
|
return x || (x = 1, (function(t) {
|
|
15
15
|
(function() {
|
|
16
|
-
var
|
|
17
|
-
function
|
|
16
|
+
var a = {}.hasOwnProperty;
|
|
17
|
+
function i() {
|
|
18
18
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
19
19
|
var n = arguments[e];
|
|
20
20
|
n && (r = l(r, u.call(this, n)));
|
|
@@ -27,20 +27,20 @@ function C() {
|
|
|
27
27
|
if (typeof r != "object")
|
|
28
28
|
return "";
|
|
29
29
|
if (Array.isArray(r))
|
|
30
|
-
return
|
|
30
|
+
return i.apply(this, r);
|
|
31
31
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
32
32
|
return r.toString();
|
|
33
33
|
var e = "";
|
|
34
34
|
for (var n in r)
|
|
35
|
-
|
|
35
|
+
a.call(r, n) && r[n] && (e = l(e, this && this[n] || n));
|
|
36
36
|
return e;
|
|
37
37
|
}
|
|
38
38
|
function l(r, e) {
|
|
39
39
|
return e ? r ? r + " " + e : r + e : r;
|
|
40
40
|
}
|
|
41
|
-
t.exports ? (
|
|
41
|
+
t.exports ? (i.default = i, t.exports = i) : window.classNames = i;
|
|
42
42
|
})();
|
|
43
|
-
})(
|
|
43
|
+
})(w)), w.exports;
|
|
44
44
|
}
|
|
45
45
|
var M = C();
|
|
46
46
|
const N = /* @__PURE__ */ q(M), L = {
|
|
@@ -51,20 +51,20 @@ const N = /* @__PURE__ */ q(M), L = {
|
|
|
51
51
|
"purpur-icon--md": "_purpur-icon--md_8u1lq_16",
|
|
52
52
|
"purpur-icon--lg": "_purpur-icon--lg_8u1lq_20",
|
|
53
53
|
"purpur-icon--xl": "_purpur-icon--xl_8u1lq_24"
|
|
54
|
-
}, O = N.bind(L), y = "purpur-icon", B = "md", A = (t) => t.filter((
|
|
55
|
-
const
|
|
54
|
+
}, O = N.bind(L), y = "purpur-icon", B = "md", A = (t) => t.filter((a) => Object.keys(a).length >= 1).map((a) => `${a.name}="${a.value}"`).join(" "), H = ({ content: t = "", title: a } = {}) => {
|
|
55
|
+
const i = [
|
|
56
56
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
57
57
|
{ name: "fill", value: "currentColor" },
|
|
58
58
|
{ name: "viewBox", value: "0 0 24 24" },
|
|
59
|
-
|
|
60
|
-
], u =
|
|
61
|
-
return `<svg ${A(
|
|
62
|
-
}, P = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), f = ({ svg: t, allyTitle:
|
|
59
|
+
a ? { name: "role", value: "img" } : { name: "aria-hidden", value: "true" }
|
|
60
|
+
], u = a ? `<title>${a}</title>` : "";
|
|
61
|
+
return `<svg ${A(i)}>${u}${t}</svg>`;
|
|
62
|
+
}, P = (t) => t.replace(/<(\/?)svg([^>]*)>/g, "").trim(), f = ({ svg: t, allyTitle: a, className: i, size: u = B, ...l }) => {
|
|
63
63
|
const r = H({
|
|
64
64
|
content: P(t.svg),
|
|
65
|
-
title:
|
|
66
|
-
}), e = O(
|
|
67
|
-
return /* @__PURE__ */
|
|
65
|
+
title: a
|
|
66
|
+
}), e = O(i, y, `${y}--${u}`);
|
|
67
|
+
return /* @__PURE__ */ p("span", { className: e, dangerouslySetInnerHTML: { __html: r }, ...l });
|
|
68
68
|
};
|
|
69
69
|
f.displayName = "Icon";
|
|
70
70
|
const V = {
|
|
@@ -101,8 +101,8 @@ var k;
|
|
|
101
101
|
function R() {
|
|
102
102
|
return k || (k = 1, (function(t) {
|
|
103
103
|
(function() {
|
|
104
|
-
var
|
|
105
|
-
function
|
|
104
|
+
var a = {}.hasOwnProperty;
|
|
105
|
+
function i() {
|
|
106
106
|
for (var r = "", e = 0; e < arguments.length; e++) {
|
|
107
107
|
var n = arguments[e];
|
|
108
108
|
n && (r = l(r, u.call(this, n)));
|
|
@@ -115,38 +115,38 @@ function R() {
|
|
|
115
115
|
if (typeof r != "object")
|
|
116
116
|
return "";
|
|
117
117
|
if (Array.isArray(r))
|
|
118
|
-
return
|
|
118
|
+
return i.apply(this, r);
|
|
119
119
|
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
120
120
|
return r.toString();
|
|
121
121
|
var e = "";
|
|
122
122
|
for (var n in r)
|
|
123
|
-
|
|
123
|
+
a.call(r, n) && r[n] && (e = l(e, this && this[n] || n));
|
|
124
124
|
return e;
|
|
125
125
|
}
|
|
126
126
|
function l(r, e) {
|
|
127
127
|
return e ? r ? r + " " + e : r + e : r;
|
|
128
128
|
}
|
|
129
|
-
t.exports ? (
|
|
129
|
+
t.exports ? (i.default = i, t.exports = i) : window.classNames = i;
|
|
130
130
|
})();
|
|
131
131
|
})(d)), d.exports;
|
|
132
132
|
}
|
|
133
133
|
var T = R();
|
|
134
134
|
const z = /* @__PURE__ */ F(T), D = {
|
|
135
|
-
"purpur-cta-link": "_purpur-cta-
|
|
136
|
-
"purpur-cta-link--xs": "_purpur-cta-link--
|
|
137
|
-
"purpur-cta-link--icon-only": "_purpur-cta-link--icon-
|
|
138
|
-
"purpur-cta-link--sm": "_purpur-cta-link--
|
|
139
|
-
"purpur-cta-link--md": "_purpur-cta-link--
|
|
140
|
-
"purpur-cta-link--lg": "_purpur-cta-link--
|
|
141
|
-
"purpur-cta-link--full-width": "_purpur-cta-link--full-
|
|
142
|
-
"purpur-cta-link--primary": "_purpur-cta-link--
|
|
143
|
-
"purpur-cta-link--disabled": "_purpur-cta-link--
|
|
144
|
-
"purpur-cta-link--primary-negative": "_purpur-cta-link--primary-
|
|
145
|
-
"purpur-cta-link--secondary": "_purpur-cta-link--
|
|
146
|
-
"purpur-cta-link--secondary-negative": "_purpur-cta-link--secondary-
|
|
147
|
-
"purpur-cta-link--expressive": "_purpur-cta-link--
|
|
148
|
-
"purpur-cta-link--expressive-negative": "_purpur-cta-link--expressive-
|
|
149
|
-
}, W = z.bind(D),
|
|
135
|
+
"purpur-cta-link": "_purpur-cta-link_1i7hm_1",
|
|
136
|
+
"purpur-cta-link--xs": "_purpur-cta-link--xs_1i7hm_22",
|
|
137
|
+
"purpur-cta-link--icon-only": "_purpur-cta-link--icon-only_1i7hm_25",
|
|
138
|
+
"purpur-cta-link--sm": "_purpur-cta-link--sm_1i7hm_28",
|
|
139
|
+
"purpur-cta-link--md": "_purpur-cta-link--md_1i7hm_34",
|
|
140
|
+
"purpur-cta-link--lg": "_purpur-cta-link--lg_1i7hm_40",
|
|
141
|
+
"purpur-cta-link--full-width": "_purpur-cta-link--full-width_1i7hm_46",
|
|
142
|
+
"purpur-cta-link--primary": "_purpur-cta-link--primary_1i7hm_64",
|
|
143
|
+
"purpur-cta-link--disabled": "_purpur-cta-link--disabled_1i7hm_68",
|
|
144
|
+
"purpur-cta-link--primary-negative": "_purpur-cta-link--primary-negative_1i7hm_74",
|
|
145
|
+
"purpur-cta-link--secondary": "_purpur-cta-link--secondary_1i7hm_86",
|
|
146
|
+
"purpur-cta-link--secondary-negative": "_purpur-cta-link--secondary-negative_1i7hm_97",
|
|
147
|
+
"purpur-cta-link--expressive": "_purpur-cta-link--expressive_1i7hm_108",
|
|
148
|
+
"purpur-cta-link--expressive-negative": "_purpur-cta-link--expressive-negative_1i7hm_118"
|
|
149
|
+
}, W = z.bind(D), s = "purpur-cta-link", U = ["forward", "external", "back", "phone"], G = {
|
|
150
150
|
forward: Z,
|
|
151
151
|
external: I,
|
|
152
152
|
back: V,
|
|
@@ -154,39 +154,39 @@ const z = /* @__PURE__ */ F(T), D = {
|
|
|
154
154
|
}, J = j(
|
|
155
155
|
({
|
|
156
156
|
children: t,
|
|
157
|
-
className:
|
|
158
|
-
["data-testid"]:
|
|
157
|
+
className: a,
|
|
158
|
+
["data-testid"]: i,
|
|
159
159
|
fullWidth: u = !1,
|
|
160
160
|
iconOnly: l = !1,
|
|
161
161
|
showIcon: r = !0,
|
|
162
162
|
negative: e = !1,
|
|
163
163
|
size: n = "md",
|
|
164
164
|
variant: v,
|
|
165
|
-
icon:
|
|
166
|
-
...
|
|
167
|
-
},
|
|
165
|
+
icon: o = "forward",
|
|
166
|
+
...c
|
|
167
|
+
}, m) => {
|
|
168
168
|
const b = W(
|
|
169
169
|
[
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
`${
|
|
173
|
-
`${
|
|
170
|
+
a,
|
|
171
|
+
s,
|
|
172
|
+
`${s}--${e ? `${v}-negative` : v}`,
|
|
173
|
+
`${s}--${n}`
|
|
174
174
|
],
|
|
175
175
|
{
|
|
176
|
-
[`${
|
|
177
|
-
[`${
|
|
178
|
-
[`${
|
|
176
|
+
[`${s}--icon-only`]: l,
|
|
177
|
+
[`${s}--negative`]: e,
|
|
178
|
+
[`${s}--full-width`]: u
|
|
179
179
|
}
|
|
180
|
-
),
|
|
181
|
-
r && (
|
|
180
|
+
), _ = G[o], h = /* @__PURE__ */ $(S, { children: [
|
|
181
|
+
r && (o === "back" || o === "phone") && /* @__PURE__ */ p(f, { svg: _, size: n === "lg" ? "sm" : "xs" }),
|
|
182
182
|
(!l || l && !r) && t,
|
|
183
|
-
r && (
|
|
184
|
-
] }),
|
|
185
|
-
...
|
|
183
|
+
r && (o === "forward" || o === "external") && /* @__PURE__ */ p(f, { svg: _, size: n === "lg" ? "sm" : "xs" })
|
|
184
|
+
] }), g = {
|
|
185
|
+
...c,
|
|
186
186
|
className: b,
|
|
187
|
-
"data-testid":
|
|
187
|
+
"data-testid": i
|
|
188
188
|
};
|
|
189
|
-
return "href" in
|
|
189
|
+
return "href" in c && c.href ? /* @__PURE__ */ p("a", { ...g, ref: m, children: h }) : /* @__PURE__ */ p("span", { ...g, ref: m, children: h });
|
|
190
190
|
}
|
|
191
191
|
);
|
|
192
192
|
J.displayName = "CtaLink";
|
package/dist/styles.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._purpur-cta-
|
|
1
|
+
._purpur-cta-link_1i7hm_1{align-items:center;border-radius:var(--purpur-border-radius-full);border-width:0;cursor:pointer;display:inline-flex;font-size:var(--purpur-typography-scale-100);font-family:var(--purpur-typography-family-default);font-weight:var(--purpur-typography-weight-medium);gap:var(--purpur-spacing-100);justify-content:center;line-height:var(--purpur-spacing-300);text-decoration:none;width:auto}._purpur-cta-link_1i7hm_1:focus:before{border-radius:var(--purpur-border-radius-full)}._purpur-cta-link_1i7hm_1 svg{display:block}._purpur-cta-link--xs_1i7hm_22{padding:var(--purpur-spacing-50) var(--purpur-spacing-250)}._purpur-cta-link--xs_1i7hm_22._purpur-cta-link--icon-only_1i7hm_25{padding:var(--purpur-spacing-100)}._purpur-cta-link--sm_1i7hm_28{padding:var(--purpur-spacing-100) var(--purpur-spacing-250)}._purpur-cta-link--sm_1i7hm_28._purpur-cta-link--icon-only_1i7hm_25{padding:var(--purpur-spacing-100)}._purpur-cta-link--md_1i7hm_34{padding:var(--purpur-spacing-150) var(--purpur-spacing-300)}._purpur-cta-link--md_1i7hm_34._purpur-cta-link--icon-only_1i7hm_25{padding:var(--purpur-spacing-150)}._purpur-cta-link--lg_1i7hm_40{padding:var(--purpur-spacing-200) var(--purpur-spacing-400)}._purpur-cta-link--lg_1i7hm_40._purpur-cta-link--icon-only_1i7hm_25{padding:var(--purpur-spacing-200)}._purpur-cta-link--full-width_1i7hm_46{width:100%}._purpur-cta-link_1i7hm_1{position:relative;outline:0;transition:all var(--purpur-motion-duration-100) ease}._purpur-cta-link_1i7hm_1:focus:before{box-shadow:0 0 0 var(--purpur-border-width-sm) var(--purpur-color-border-interactive-focus);content:"";display:block;inset:calc(var(--purpur-spacing-25) * -1);position:absolute}._purpur-cta-link_1i7hm_1:focus:not(:focus-visible):before{box-shadow:none}._purpur-cta-link--primary_1i7hm_64{background-color:var(--purpur-color-background-interactive-primary);color:var(--purpur-color-text-interactive-on-primary)}._purpur-cta-link--primary_1i7hm_64:hover:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-primary-hover)}._purpur-cta-link--primary_1i7hm_64:active:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-primary-active)}._purpur-cta-link--primary-negative_1i7hm_74{background-color:var(--purpur-color-background-interactive-primary-negative);color:var(--purpur-color-text-interactive-on-primary-negative)}._purpur-cta-link--primary-negative_1i7hm_74:hover:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-primary-hover-negative);border-color:var(--purpur-color-background-interactive-primary-hover-negative)}._purpur-cta-link--primary-negative_1i7hm_74:active:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-primary-active-negative);border-color:var(--purpur-color-background-interactive-primary-active-negative)}._purpur-cta-link--secondary_1i7hm_86{background-color:transparent;box-shadow:inset 0 0 0 var(--purpur-border-width-xs) var(--purpur-color-border-interactive-primary);color:var(--purpur-color-text-interactive-primary)}._purpur-cta-link--secondary_1i7hm_86:hover:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-transparent-hover)}._purpur-cta-link--secondary_1i7hm_86:active:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-transparent-active)}._purpur-cta-link--secondary-negative_1i7hm_97{background-color:transparent;box-shadow:inset 0 0 0 var(--purpur-border-width-xs) var(--purpur-color-border-interactive-primary-negative);color:var(--purpur-color-text-interactive-primary-negative)}._purpur-cta-link--secondary-negative_1i7hm_97:hover:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-transparent-hover-negative)}._purpur-cta-link--secondary-negative_1i7hm_97:active:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-transparent-active-negative)}._purpur-cta-link--expressive_1i7hm_108{background-color:var(--purpur-color-background-interactive-expressive);color:var(--purpur-color-text-interactive-on-expressive)}._purpur-cta-link--expressive_1i7hm_108:hover:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-expressive-hover)}._purpur-cta-link--expressive_1i7hm_108:active:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-expressive-active)}._purpur-cta-link--expressive-negative_1i7hm_118{background-color:var(--purpur-color-background-interactive-expressive-negative);color:var(--purpur-color-text-interactive-on-expressive-negative)}._purpur-cta-link--expressive-negative_1i7hm_118:hover:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-expressive-hover-negative);color:var(--purpur-color-text-interactive-on-expressive-hover-negative)}._purpur-cta-link--expressive-negative_1i7hm_118:active:not(._purpur-cta-link--disabled_1i7hm_68){background-color:var(--purpur-color-background-interactive-expressive-active-negative);color:var(--purpur-color-text-interactive-on-expressive-active-negative)}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@purpurds/cta-link",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.4.0",
|
|
4
4
|
"license": "AGPL-3.0-only",
|
|
5
5
|
"main": "./dist/cta-link.cjs.js",
|
|
6
6
|
"types": "./dist/cta-link.d.ts",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"source": "src/cta-link.tsx",
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"classnames": "~2.5.0",
|
|
19
|
-
"@purpurds/
|
|
20
|
-
"@purpurds/
|
|
21
|
-
"@purpurds/
|
|
22
|
-
"@purpurds/
|
|
19
|
+
"@purpurds/common-types": "8.4.0",
|
|
20
|
+
"@purpurds/icon": "8.4.0",
|
|
21
|
+
"@purpurds/tokens": "8.4.0",
|
|
22
|
+
"@purpurds/action": "8.4.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@storybook/react-vite": "^9.0.18",
|