@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 CHANGED
@@ -1,12 +1,12 @@
1
1
  Name: @purpurds/action
2
- Version: 4.2.0
2
+ Version: 4.3.0
3
3
  License: AGPL-3.0-only
4
4
  Private: false
5
5
 
6
6
  ---
7
7
 
8
8
  Name: @purpurds/icon
9
- Version: 4.2.0
9
+ Version: 4.3.0
10
10
  License: AGPL-3.0-only
11
11
  Private: false
12
12
 
@@ -6,5 +6,5 @@
6
6
  Copyright (c) 2018 Jed Watson.
7
7
  Licensed under the MIT License (MIT), see
8
8
  http://jedwatson.github.io/classnames
9
- */(function(t){(function(){var l={}.hasOwnProperty;function a(){for(var r="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(r=u(r,i(n)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var n in r)l.call(r,n)&&r[n]&&(e=u(e,n));return e}function u(r,e){return e?r?r+" "+e:r+e:r}t.exports?(a.default=a,t.exports=a):window.classNames=a})()})(m);var H=m.exports;const P=A(H),s={"purpur-cta-link":"_purpur-cta-link_e7abc_1","purpur-cta-link--sm":"_purpur-cta-link--sm_e7abc_33","purpur-cta-link--icon-only":"_purpur-cta-link--icon-only_e7abc_36","purpur-cta-link--md":"_purpur-cta-link--md_e7abc_39","purpur-cta-link--lg":"_purpur-cta-link--lg_e7abc_45","purpur-cta-link--full-width":"_purpur-cta-link--full-width_e7abc_51","purpur-cta-link--primary":"_purpur-cta-link--primary_e7abc_54","purpur-cta-link--disabled":"_purpur-cta-link--disabled_e7abc_58","purpur-cta-link--primary-negative":"_purpur-cta-link--primary-negative_e7abc_64","purpur-cta-link--secondary":"_purpur-cta-link--secondary_e7abc_76","purpur-cta-link--secondary-negative":"_purpur-cta-link--secondary-negative_e7abc_87","purpur-cta-link--expressive":"_purpur-cta-link--expressive_e7abc_98","purpur-cta-link--expressive-negative":"_purpur-cta-link--expressive-negative_e7abc_108"},p="purpur-cta-link",V=["forward","external","back","phone"],B={forward:$,external:M,back:j,phone:S},I=({children:t,className:l,["data-testid"]:a,fullWidth:i=!1,iconOnly:u,size:r=o.MD,variant:e,icon:n="forward",...d})=>{const w=P([l,s[p],s[`${p}--${e}`],s[`${p}--${r}`]],{[s[`${p}--icon-only`]]:u,[s[`${p}--negative`]]:e.endsWith("negative"),[s[`${p}--full-width`]]:i}),h=d.href?"a":"span",v=B[n];return c.jsxs(h,{className:w,"data-testid":a,...d,children:[(n==="back"||n==="phone")&&c.jsx(f,{svg:v,size:r===o.LG?"sm":"xs"}),!u&&t,(n==="forward"||n==="external")&&c.jsx(f,{svg:v,size:r===o.LG?"sm":"xs"})]})};exports.CtaLink=I;exports.ctaLinkIcons=V;
9
+ */(function(t){(function(){var l={}.hasOwnProperty;function a(){for(var r="",e=0;e<arguments.length;e++){var n=arguments[e];n&&(r=u(r,i(n)))}return r}function i(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return a.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var n in r)l.call(r,n)&&r[n]&&(e=u(e,n));return e}function u(r,e){return e?r?r+" "+e:r+e:r}t.exports?(a.default=a,t.exports=a):window.classNames=a})()})(m);var I=m.exports;const V=A(I),s={"purpur-cta-link":"_purpur-cta-link_e7abc_1","purpur-cta-link--sm":"_purpur-cta-link--sm_e7abc_33","purpur-cta-link--icon-only":"_purpur-cta-link--icon-only_e7abc_36","purpur-cta-link--md":"_purpur-cta-link--md_e7abc_39","purpur-cta-link--lg":"_purpur-cta-link--lg_e7abc_45","purpur-cta-link--full-width":"_purpur-cta-link--full-width_e7abc_51","purpur-cta-link--primary":"_purpur-cta-link--primary_e7abc_54","purpur-cta-link--disabled":"_purpur-cta-link--disabled_e7abc_58","purpur-cta-link--primary-negative":"_purpur-cta-link--primary-negative_e7abc_64","purpur-cta-link--secondary":"_purpur-cta-link--secondary_e7abc_76","purpur-cta-link--secondary-negative":"_purpur-cta-link--secondary-negative_e7abc_87","purpur-cta-link--expressive":"_purpur-cta-link--expressive_e7abc_98","purpur-cta-link--expressive-negative":"_purpur-cta-link--expressive-negative_e7abc_108"},p="purpur-cta-link",B=["forward","external","back","phone"],H={forward:$,external:M,back:j,phone:S},P=({children:t,className:l,["data-testid"]:a,fullWidth:i=!1,iconOnly:u,size:r=o.MD,variant:e,icon:n="forward",...d})=>{const w=V([l,s[p],s[`${p}--${e}`],s[`${p}--${r}`]],{[s[`${p}--icon-only`]]:u,[s[`${p}--negative`]]:e.endsWith("negative"),[s[`${p}--full-width`]]:i}),h=d.href?"a":"span",v=H[n];return c.jsxs(h,{className:w,"data-testid":a,...d,children:[(n==="back"||n==="phone")&&c.jsx(f,{svg:v,size:r===o.LG?"sm":"xs"}),!u&&t,(n==="forward"||n==="external")&&c.jsx(f,{svg:v,size:r===o.LG?"sm":"xs"})]})};exports.CtaLink=P;exports.ctaLinkIcons=B;
10
10
  //# sourceMappingURL=cta-link.cjs.js.map