Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ueaweb/button

Package Overview
Dependencies
Maintainers
6
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ueaweb/button - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

./dist/button.umd.js

@@ -1,1 +0,1 @@

(function(_,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["react/jsx-runtime"],n):(_=typeof globalThis<"u"?globalThis:_||self,_["@ueaweb/button"]=n(_.jsxRuntime))})(this,function(_){"use strict";const t={Button:"_Button_1r5gf_2",Button__full:"_Button__full_1r5gf_15",alignment__left:"_alignment__left_1r5gf_18",alignment__right:"_alignment__right_1r5gf_26",alignment__center:"_alignment__center_1r5gf_29",Button__auto:"_Button__auto_1r5gf_39",Button__primary:"_Button__primary_1r5gf_42","Button__primary--white":"_Button__primary--white_1r5gf_48","Button__primary--orange":"_Button__primary--orange_1r5gf_58","Button__primary--blue":"_Button__primary--blue_1r5gf_68","Button__primary--green":"_Button__primary--green_1r5gf_78","Button__primary--lilac":"_Button__primary--lilac_1r5gf_88","Button__primary--pink":"_Button__primary--pink_1r5gf_98","Button__primary--black":"_Button__primary--black_1r5gf_108","Button__primary--grey":"_Button__primary--grey_1r5gf_118","Button__primary--lightGrey":"_Button__primary--lightGrey_1r5gf_128","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_1r5gf_138","Button__primary--brightWhite":"_Button__primary--brightWhite_1r5gf_148",Button__secondary:"_Button__secondary_1r5gf_165","Button__secondary--white":"_Button__secondary--white_1r5gf_170","Button__secondary--orange":"_Button__secondary--orange_1r5gf_178","Button__secondary--blue":"_Button__secondary--blue_1r5gf_186","Button__secondary--green":"_Button__secondary--green_1r5gf_194","Button__secondary--lilac":"_Button__secondary--lilac_1r5gf_202","Button__secondary--pink":"_Button__secondary--pink_1r5gf_210","Button__secondary--black":"_Button__secondary--black_1r5gf_218","Button__secondary--grey":"_Button__secondary--grey_1r5gf_226","Button__secondary--lightGrey":"_Button__secondary--lightGrey_1r5gf_234","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_1r5gf_242","Button__secondary--brightWhite":"_Button__secondary--brightWhite_1r5gf_250","Button__overide--white":"_Button__overide--white_1r5gf_264","Button__overide--orange":"_Button__overide--orange_1r5gf_267","Button__overide--blue":"_Button__overide--blue_1r5gf_270","Button__overide--green":"_Button__overide--green_1r5gf_273","Button__overide--lilac":"_Button__overide--lilac_1r5gf_276","Button__overide--pink":"_Button__overide--pink_1r5gf_279","Button__overide--black":"_Button__overide--black_1r5gf_282","Button__overide--grey":"_Button__overide--grey_1r5gf_285","Button__overide--lightGrey":"_Button__overide--lightGrey_1r5gf_288","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_1r5gf_291","Button__overide--brightWhite":"_Button__overide--brightWhite_1r5gf_294",Button__icon:"_Button__icon_1r5gf_297",Button__plain:"_Button__plain_1r5gf_338"};return B=>{const{linkText:e,type:i="__primary",colour:g="--black",width:y="auto",text_colour:u=!1,url:r,icon:o,text_alignment:a}=B,l={className:[t.Button,t["Button"+i],t["Button__"+y],t["Button"+i+g],o?t.Button__icon:"",a?t["alignment__"+a]:"",u?t["Button__overide"+u]:"","SB027_2"].filter(Boolean).join(" "),...r.target&&{target:r.target},...r.href&&{href:r.href},...e&&{title:e}};return _.jsxs("a",{...l,children:[o&&_.jsx("em",{dangerouslySetInnerHTML:o}),_.jsx("span",{children:e})]})}});
(function(_,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["react/jsx-runtime"],n):(_=typeof globalThis<"u"?globalThis:_||self,_["@ueaweb/button"]=n(_.jsxRuntime))})(this,function(_){"use strict";const t={Button:"_Button_11v0k_2",Button__full:"_Button__full_11v0k_16",alignment__left:"_alignment__left_11v0k_23",alignment__right:"_alignment__right_11v0k_31",alignment__center:"_alignment__center_11v0k_34",Button__auto:"_Button__auto_11v0k_44",Button__primary:"_Button__primary_11v0k_47","Button__primary--white":"_Button__primary--white_11v0k_53","Button__primary--orange":"_Button__primary--orange_11v0k_63","Button__primary--blue":"_Button__primary--blue_11v0k_73","Button__primary--green":"_Button__primary--green_11v0k_83","Button__primary--lilac":"_Button__primary--lilac_11v0k_93","Button__primary--pink":"_Button__primary--pink_11v0k_103","Button__primary--black":"_Button__primary--black_11v0k_113","Button__primary--grey":"_Button__primary--grey_11v0k_123","Button__primary--lightGrey":"_Button__primary--lightGrey_11v0k_133","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_11v0k_143","Button__primary--brightWhite":"_Button__primary--brightWhite_11v0k_153",Button__secondary:"_Button__secondary_11v0k_170","Button__secondary--white":"_Button__secondary--white_11v0k_175","Button__secondary--orange":"_Button__secondary--orange_11v0k_183","Button__secondary--blue":"_Button__secondary--blue_11v0k_191","Button__secondary--green":"_Button__secondary--green_11v0k_199","Button__secondary--lilac":"_Button__secondary--lilac_11v0k_207","Button__secondary--pink":"_Button__secondary--pink_11v0k_215","Button__secondary--black":"_Button__secondary--black_11v0k_223","Button__secondary--grey":"_Button__secondary--grey_11v0k_231","Button__secondary--lightGrey":"_Button__secondary--lightGrey_11v0k_239","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_11v0k_247","Button__secondary--brightWhite":"_Button__secondary--brightWhite_11v0k_255","Button__overide--white":"_Button__overide--white_11v0k_269","Button__overide--orange":"_Button__overide--orange_11v0k_272","Button__overide--blue":"_Button__overide--blue_11v0k_275","Button__overide--green":"_Button__overide--green_11v0k_278","Button__overide--lilac":"_Button__overide--lilac_11v0k_281","Button__overide--pink":"_Button__overide--pink_11v0k_284","Button__overide--black":"_Button__overide--black_11v0k_287","Button__overide--grey":"_Button__overide--grey_11v0k_290","Button__overide--lightGrey":"_Button__overide--lightGrey_11v0k_293","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_11v0k_296","Button__overide--brightWhite":"_Button__overide--brightWhite_11v0k_299",Button__icon:"_Button__icon_11v0k_302",Button__plain:"_Button__plain_11v0k_343"};return B=>{const{linkText:o,type:i="__primary",colour:y="--black",width:l="auto",text_colour:u=!1,url:e,icon:r,text_alignment:a}=B,c={className:[t.Button,t["Button"+i],t["Button__"+l],t["Button"+i+y],r?t.Button__icon:"",a?t["alignment__"+a]:"",u?t["Button__overide"+u]:"","SB027_2"].filter(Boolean).join(" "),...e.target&&{target:e.target},...e.href&&{href:e.href},...o&&{title:o}};return _.jsxs("a",{...c,children:[r&&_.jsx("em",{dangerouslySetInnerHTML:r}),_.jsx("span",{children:o})]})}});

@@ -1,1 +0,1 @@

"use strict";const o=require("react/jsx-runtime"),c="_Button_1r5gf_2",l="_Button__full_1r5gf_15",s="_alignment__left_1r5gf_18",f="_alignment__right_1r5gf_26",d="_alignment__center_1r5gf_29",m="_Button__auto_1r5gf_39",h="_Button__primary_1r5gf_42",p="_Button__secondary_1r5gf_165",v="_Button__icon_1r5gf_297",b="_Button__plain_1r5gf_338",_={Button:c,Button__full:l,alignment__left:s,alignment__right:f,alignment__center:d,Button__auto:m,Button__primary:h,"Button__primary--white":"_Button__primary--white_1r5gf_48","Button__primary--orange":"_Button__primary--orange_1r5gf_58","Button__primary--blue":"_Button__primary--blue_1r5gf_68","Button__primary--green":"_Button__primary--green_1r5gf_78","Button__primary--lilac":"_Button__primary--lilac_1r5gf_88","Button__primary--pink":"_Button__primary--pink_1r5gf_98","Button__primary--black":"_Button__primary--black_1r5gf_108","Button__primary--grey":"_Button__primary--grey_1r5gf_118","Button__primary--lightGrey":"_Button__primary--lightGrey_1r5gf_128","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_1r5gf_138","Button__primary--brightWhite":"_Button__primary--brightWhite_1r5gf_148",Button__secondary:p,"Button__secondary--white":"_Button__secondary--white_1r5gf_170","Button__secondary--orange":"_Button__secondary--orange_1r5gf_178","Button__secondary--blue":"_Button__secondary--blue_1r5gf_186","Button__secondary--green":"_Button__secondary--green_1r5gf_194","Button__secondary--lilac":"_Button__secondary--lilac_1r5gf_202","Button__secondary--pink":"_Button__secondary--pink_1r5gf_210","Button__secondary--black":"_Button__secondary--black_1r5gf_218","Button__secondary--grey":"_Button__secondary--grey_1r5gf_226","Button__secondary--lightGrey":"_Button__secondary--lightGrey_1r5gf_234","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_1r5gf_242","Button__secondary--brightWhite":"_Button__secondary--brightWhite_1r5gf_250","Button__overide--white":"_Button__overide--white_1r5gf_264","Button__overide--orange":"_Button__overide--orange_1r5gf_267","Button__overide--blue":"_Button__overide--blue_1r5gf_270","Button__overide--green":"_Button__overide--green_1r5gf_273","Button__overide--lilac":"_Button__overide--lilac_1r5gf_276","Button__overide--pink":"_Button__overide--pink_1r5gf_279","Button__overide--black":"_Button__overide--black_1r5gf_282","Button__overide--grey":"_Button__overide--grey_1r5gf_285","Button__overide--lightGrey":"_Button__overide--lightGrey_1r5gf_288","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_1r5gf_291","Button__overide--brightWhite":"_Button__overide--brightWhite_1r5gf_294",Button__icon:v,Button__plain:b},k=a=>{const{linkText:r,type:e="__primary",colour:g="--black",width:B="auto",text_colour:i=!1,url:t,icon:n,text_alignment:u}=a,y={className:[_.Button,_["Button"+e],_["Button__"+B],_["Button"+e+g],n?_.Button__icon:"",u?_["alignment__"+u]:"",i?_["Button__overide"+i]:"","SB027_2"].filter(Boolean).join(" "),...t.target&&{target:t.target},...t.href&&{href:t.href},...r&&{title:r}};return o.jsxs("a",{...y,children:[n&&o.jsx("em",{dangerouslySetInnerHTML:n}),o.jsx("span",{children:r})]})};module.exports=k;
"use strict";const e=require("react/jsx-runtime"),c="_Button_11v0k_2",l="_Button__full_11v0k_16",k="_alignment__left_11v0k_23",s="_alignment__right_11v0k_31",g="_alignment__center_11v0k_34",d="_Button__auto_11v0k_44",m="_Button__primary_11v0k_47",h="_Button__secondary_11v0k_170",p="_Button__icon_11v0k_302",b="_Button__plain_11v0k_343",_={Button:c,Button__full:l,alignment__left:k,alignment__right:s,alignment__center:g,Button__auto:d,Button__primary:m,"Button__primary--white":"_Button__primary--white_11v0k_53","Button__primary--orange":"_Button__primary--orange_11v0k_63","Button__primary--blue":"_Button__primary--blue_11v0k_73","Button__primary--green":"_Button__primary--green_11v0k_83","Button__primary--lilac":"_Button__primary--lilac_11v0k_93","Button__primary--pink":"_Button__primary--pink_11v0k_103","Button__primary--black":"_Button__primary--black_11v0k_113","Button__primary--grey":"_Button__primary--grey_11v0k_123","Button__primary--lightGrey":"_Button__primary--lightGrey_11v0k_133","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_11v0k_143","Button__primary--brightWhite":"_Button__primary--brightWhite_11v0k_153",Button__secondary:h,"Button__secondary--white":"_Button__secondary--white_11v0k_175","Button__secondary--orange":"_Button__secondary--orange_11v0k_183","Button__secondary--blue":"_Button__secondary--blue_11v0k_191","Button__secondary--green":"_Button__secondary--green_11v0k_199","Button__secondary--lilac":"_Button__secondary--lilac_11v0k_207","Button__secondary--pink":"_Button__secondary--pink_11v0k_215","Button__secondary--black":"_Button__secondary--black_11v0k_223","Button__secondary--grey":"_Button__secondary--grey_11v0k_231","Button__secondary--lightGrey":"_Button__secondary--lightGrey_11v0k_239","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_11v0k_247","Button__secondary--brightWhite":"_Button__secondary--brightWhite_11v0k_255","Button__overide--white":"_Button__overide--white_11v0k_269","Button__overide--orange":"_Button__overide--orange_11v0k_272","Button__overide--blue":"_Button__overide--blue_11v0k_275","Button__overide--green":"_Button__overide--green_11v0k_278","Button__overide--lilac":"_Button__overide--lilac_11v0k_281","Button__overide--pink":"_Button__overide--pink_11v0k_284","Button__overide--black":"_Button__overide--black_11v0k_287","Button__overide--grey":"_Button__overide--grey_11v0k_290","Button__overide--lightGrey":"_Button__overide--lightGrey_11v0k_293","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_11v0k_296","Button__overide--brightWhite":"_Button__overide--brightWhite_11v0k_299",Button__icon:p,Button__plain:b},G=a=>{const{linkText:n,type:r="__primary",colour:B="--black",width:y="auto",text_colour:i=!1,url:t,icon:o,text_alignment:u}=a,v={className:[_.Button,_["Button"+r],_["Button__"+y],_["Button"+r+B],o?_.Button__icon:"",u?_["alignment__"+u]:"",i?_["Button__overide"+i]:"","SB027_2"].filter(Boolean).join(" "),...t.target&&{target:t.target},...t.href&&{href:t.href},...n&&{title:n}};return e.jsxs("a",{...v,children:[o&&e.jsx("em",{dangerouslySetInnerHTML:o}),e.jsx("span",{children:n})]})};module.exports=G;
import { jsxs as l, jsx as u } from "react/jsx-runtime";
const c = "_Button_1r5gf_2", f = "_Button__full_1r5gf_15", d = "_alignment__left_1r5gf_18", s = "_alignment__right_1r5gf_26", m = "_alignment__center_1r5gf_29", h = "_Button__auto_1r5gf_39", p = "_Button__primary_1r5gf_42", v = "_Button__secondary_1r5gf_165", b = "_Button__icon_1r5gf_297", k = "_Button__plain_1r5gf_338", _ = {
const c = "_Button_11v0k_2", k = "_Button__full_11v0k_16", g = "_alignment__left_11v0k_23", d = "_alignment__right_11v0k_31", s = "_alignment__center_11v0k_34", m = "_Button__auto_11v0k_44", h = "_Button__primary_11v0k_47", p = "_Button__secondary_11v0k_170", b = "_Button__icon_11v0k_302", f = "_Button__plain_11v0k_343", _ = {
Button: c,
Button__full: f,
alignment__left: d,
alignment__right: s,
alignment__center: m,
Button__auto: h,
Button__primary: p,
"Button__primary--white": "_Button__primary--white_1r5gf_48",
"Button__primary--orange": "_Button__primary--orange_1r5gf_58",
"Button__primary--blue": "_Button__primary--blue_1r5gf_68",
"Button__primary--green": "_Button__primary--green_1r5gf_78",
"Button__primary--lilac": "_Button__primary--lilac_1r5gf_88",
"Button__primary--pink": "_Button__primary--pink_1r5gf_98",
"Button__primary--black": "_Button__primary--black_1r5gf_108",
"Button__primary--grey": "_Button__primary--grey_1r5gf_118",
"Button__primary--lightGrey": "_Button__primary--lightGrey_1r5gf_128",
"Button__primary--veryLightGrey": "_Button__primary--veryLightGrey_1r5gf_138",
"Button__primary--brightWhite": "_Button__primary--brightWhite_1r5gf_148",
Button__secondary: v,
"Button__secondary--white": "_Button__secondary--white_1r5gf_170",
"Button__secondary--orange": "_Button__secondary--orange_1r5gf_178",
"Button__secondary--blue": "_Button__secondary--blue_1r5gf_186",
"Button__secondary--green": "_Button__secondary--green_1r5gf_194",
"Button__secondary--lilac": "_Button__secondary--lilac_1r5gf_202",
"Button__secondary--pink": "_Button__secondary--pink_1r5gf_210",
"Button__secondary--black": "_Button__secondary--black_1r5gf_218",
"Button__secondary--grey": "_Button__secondary--grey_1r5gf_226",
"Button__secondary--lightGrey": "_Button__secondary--lightGrey_1r5gf_234",
"Button__secondary--veryLightGrey": "_Button__secondary--veryLightGrey_1r5gf_242",
"Button__secondary--brightWhite": "_Button__secondary--brightWhite_1r5gf_250",
"Button__overide--white": "_Button__overide--white_1r5gf_264",
"Button__overide--orange": "_Button__overide--orange_1r5gf_267",
"Button__overide--blue": "_Button__overide--blue_1r5gf_270",
"Button__overide--green": "_Button__overide--green_1r5gf_273",
"Button__overide--lilac": "_Button__overide--lilac_1r5gf_276",
"Button__overide--pink": "_Button__overide--pink_1r5gf_279",
"Button__overide--black": "_Button__overide--black_1r5gf_282",
"Button__overide--grey": "_Button__overide--grey_1r5gf_285",
"Button__overide--lightGrey": "_Button__overide--lightGrey_1r5gf_288",
"Button__overide--veryLightGrey": "_Button__overide--veryLightGrey_1r5gf_291",
"Button__overide--brightWhite": "_Button__overide--brightWhite_1r5gf_294",
Button__full: k,
alignment__left: g,
alignment__right: d,
alignment__center: s,
Button__auto: m,
Button__primary: h,
"Button__primary--white": "_Button__primary--white_11v0k_53",
"Button__primary--orange": "_Button__primary--orange_11v0k_63",
"Button__primary--blue": "_Button__primary--blue_11v0k_73",
"Button__primary--green": "_Button__primary--green_11v0k_83",
"Button__primary--lilac": "_Button__primary--lilac_11v0k_93",
"Button__primary--pink": "_Button__primary--pink_11v0k_103",
"Button__primary--black": "_Button__primary--black_11v0k_113",
"Button__primary--grey": "_Button__primary--grey_11v0k_123",
"Button__primary--lightGrey": "_Button__primary--lightGrey_11v0k_133",
"Button__primary--veryLightGrey": "_Button__primary--veryLightGrey_11v0k_143",
"Button__primary--brightWhite": "_Button__primary--brightWhite_11v0k_153",
Button__secondary: p,
"Button__secondary--white": "_Button__secondary--white_11v0k_175",
"Button__secondary--orange": "_Button__secondary--orange_11v0k_183",
"Button__secondary--blue": "_Button__secondary--blue_11v0k_191",
"Button__secondary--green": "_Button__secondary--green_11v0k_199",
"Button__secondary--lilac": "_Button__secondary--lilac_11v0k_207",
"Button__secondary--pink": "_Button__secondary--pink_11v0k_215",
"Button__secondary--black": "_Button__secondary--black_11v0k_223",
"Button__secondary--grey": "_Button__secondary--grey_11v0k_231",
"Button__secondary--lightGrey": "_Button__secondary--lightGrey_11v0k_239",
"Button__secondary--veryLightGrey": "_Button__secondary--veryLightGrey_11v0k_247",
"Button__secondary--brightWhite": "_Button__secondary--brightWhite_11v0k_255",
"Button__overide--white": "_Button__overide--white_11v0k_269",
"Button__overide--orange": "_Button__overide--orange_11v0k_272",
"Button__overide--blue": "_Button__overide--blue_11v0k_275",
"Button__overide--green": "_Button__overide--green_11v0k_278",
"Button__overide--lilac": "_Button__overide--lilac_11v0k_281",
"Button__overide--pink": "_Button__overide--pink_11v0k_284",
"Button__overide--black": "_Button__overide--black_11v0k_287",
"Button__overide--grey": "_Button__overide--grey_11v0k_290",
"Button__overide--lightGrey": "_Button__overide--lightGrey_11v0k_293",
"Button__overide--veryLightGrey": "_Button__overide--veryLightGrey_11v0k_296",
"Button__overide--brightWhite": "_Button__overide--brightWhite_11v0k_299",
Button__icon: b,
Button__plain: k
Button__plain: f
}, w = (a) => {
const {
linkText: r,
type: o = "__primary",
colour: g = "--black",
width: B = "auto",
text_colour: e = !1,
linkText: n,
type: e = "__primary",
colour: B = "--black",
width: y = "auto",
text_colour: r = !1,
url: t,
icon: n,
icon: o,
text_alignment: i
} = a, y = {
} = a, v = {
className: [
_.Button,
_["Button" + o],
_["Button__" + B],
_["Button" + o + g],
n ? _.Button__icon : "",
_["Button" + e],
_["Button__" + y],
_["Button" + e + B],
o ? _.Button__icon : "",
i ? _["alignment__" + i] : "",
e ? _["Button__overide" + e] : "",
r ? _["Button__overide" + r] : "",
"SB027_2"

@@ -69,7 +69,7 @@ ].filter(Boolean).join(" "),

...t.href && { href: t.href },
...r && { title: r }
...n && { title: n }
};
return /* @__PURE__ */ l("a", { ...y, children: [
n && /* @__PURE__ */ u("em", { dangerouslySetInnerHTML: n }),
/* @__PURE__ */ u("span", { children: r })
return /* @__PURE__ */ l("a", { ...v, children: [
o && /* @__PURE__ */ u("em", { dangerouslySetInnerHTML: o }),
/* @__PURE__ */ u("span", { children: n })
] });

@@ -76,0 +76,0 @@ };

@@ -1,1 +0,1 @@

(function(_,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["react/jsx-runtime"],n):(_=typeof globalThis<"u"?globalThis:_||self,_["@ueaweb/button"]=n(_.jsxRuntime))})(this,function(_){"use strict";const t={Button:"_Button_1r5gf_2",Button__full:"_Button__full_1r5gf_15",alignment__left:"_alignment__left_1r5gf_18",alignment__right:"_alignment__right_1r5gf_26",alignment__center:"_alignment__center_1r5gf_29",Button__auto:"_Button__auto_1r5gf_39",Button__primary:"_Button__primary_1r5gf_42","Button__primary--white":"_Button__primary--white_1r5gf_48","Button__primary--orange":"_Button__primary--orange_1r5gf_58","Button__primary--blue":"_Button__primary--blue_1r5gf_68","Button__primary--green":"_Button__primary--green_1r5gf_78","Button__primary--lilac":"_Button__primary--lilac_1r5gf_88","Button__primary--pink":"_Button__primary--pink_1r5gf_98","Button__primary--black":"_Button__primary--black_1r5gf_108","Button__primary--grey":"_Button__primary--grey_1r5gf_118","Button__primary--lightGrey":"_Button__primary--lightGrey_1r5gf_128","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_1r5gf_138","Button__primary--brightWhite":"_Button__primary--brightWhite_1r5gf_148",Button__secondary:"_Button__secondary_1r5gf_165","Button__secondary--white":"_Button__secondary--white_1r5gf_170","Button__secondary--orange":"_Button__secondary--orange_1r5gf_178","Button__secondary--blue":"_Button__secondary--blue_1r5gf_186","Button__secondary--green":"_Button__secondary--green_1r5gf_194","Button__secondary--lilac":"_Button__secondary--lilac_1r5gf_202","Button__secondary--pink":"_Button__secondary--pink_1r5gf_210","Button__secondary--black":"_Button__secondary--black_1r5gf_218","Button__secondary--grey":"_Button__secondary--grey_1r5gf_226","Button__secondary--lightGrey":"_Button__secondary--lightGrey_1r5gf_234","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_1r5gf_242","Button__secondary--brightWhite":"_Button__secondary--brightWhite_1r5gf_250","Button__overide--white":"_Button__overide--white_1r5gf_264","Button__overide--orange":"_Button__overide--orange_1r5gf_267","Button__overide--blue":"_Button__overide--blue_1r5gf_270","Button__overide--green":"_Button__overide--green_1r5gf_273","Button__overide--lilac":"_Button__overide--lilac_1r5gf_276","Button__overide--pink":"_Button__overide--pink_1r5gf_279","Button__overide--black":"_Button__overide--black_1r5gf_282","Button__overide--grey":"_Button__overide--grey_1r5gf_285","Button__overide--lightGrey":"_Button__overide--lightGrey_1r5gf_288","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_1r5gf_291","Button__overide--brightWhite":"_Button__overide--brightWhite_1r5gf_294",Button__icon:"_Button__icon_1r5gf_297",Button__plain:"_Button__plain_1r5gf_338"};return B=>{const{linkText:e,type:i="__primary",colour:g="--black",width:y="auto",text_colour:u=!1,url:r,icon:o,text_alignment:a}=B,l={className:[t.Button,t["Button"+i],t["Button__"+y],t["Button"+i+g],o?t.Button__icon:"",a?t["alignment__"+a]:"",u?t["Button__overide"+u]:"","SB027_2"].filter(Boolean).join(" "),...r.target&&{target:r.target},...r.href&&{href:r.href},...e&&{title:e}};return _.jsxs("a",{...l,children:[o&&_.jsx("em",{dangerouslySetInnerHTML:o}),_.jsx("span",{children:e})]})}});
(function(_,n){typeof exports=="object"&&typeof module<"u"?module.exports=n(require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["react/jsx-runtime"],n):(_=typeof globalThis<"u"?globalThis:_||self,_["@ueaweb/button"]=n(_.jsxRuntime))})(this,function(_){"use strict";const t={Button:"_Button_11v0k_2",Button__full:"_Button__full_11v0k_16",alignment__left:"_alignment__left_11v0k_23",alignment__right:"_alignment__right_11v0k_31",alignment__center:"_alignment__center_11v0k_34",Button__auto:"_Button__auto_11v0k_44",Button__primary:"_Button__primary_11v0k_47","Button__primary--white":"_Button__primary--white_11v0k_53","Button__primary--orange":"_Button__primary--orange_11v0k_63","Button__primary--blue":"_Button__primary--blue_11v0k_73","Button__primary--green":"_Button__primary--green_11v0k_83","Button__primary--lilac":"_Button__primary--lilac_11v0k_93","Button__primary--pink":"_Button__primary--pink_11v0k_103","Button__primary--black":"_Button__primary--black_11v0k_113","Button__primary--grey":"_Button__primary--grey_11v0k_123","Button__primary--lightGrey":"_Button__primary--lightGrey_11v0k_133","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_11v0k_143","Button__primary--brightWhite":"_Button__primary--brightWhite_11v0k_153",Button__secondary:"_Button__secondary_11v0k_170","Button__secondary--white":"_Button__secondary--white_11v0k_175","Button__secondary--orange":"_Button__secondary--orange_11v0k_183","Button__secondary--blue":"_Button__secondary--blue_11v0k_191","Button__secondary--green":"_Button__secondary--green_11v0k_199","Button__secondary--lilac":"_Button__secondary--lilac_11v0k_207","Button__secondary--pink":"_Button__secondary--pink_11v0k_215","Button__secondary--black":"_Button__secondary--black_11v0k_223","Button__secondary--grey":"_Button__secondary--grey_11v0k_231","Button__secondary--lightGrey":"_Button__secondary--lightGrey_11v0k_239","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_11v0k_247","Button__secondary--brightWhite":"_Button__secondary--brightWhite_11v0k_255","Button__overide--white":"_Button__overide--white_11v0k_269","Button__overide--orange":"_Button__overide--orange_11v0k_272","Button__overide--blue":"_Button__overide--blue_11v0k_275","Button__overide--green":"_Button__overide--green_11v0k_278","Button__overide--lilac":"_Button__overide--lilac_11v0k_281","Button__overide--pink":"_Button__overide--pink_11v0k_284","Button__overide--black":"_Button__overide--black_11v0k_287","Button__overide--grey":"_Button__overide--grey_11v0k_290","Button__overide--lightGrey":"_Button__overide--lightGrey_11v0k_293","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_11v0k_296","Button__overide--brightWhite":"_Button__overide--brightWhite_11v0k_299",Button__icon:"_Button__icon_11v0k_302",Button__plain:"_Button__plain_11v0k_343"};return B=>{const{linkText:o,type:i="__primary",colour:y="--black",width:l="auto",text_colour:u=!1,url:e,icon:r,text_alignment:a}=B,c={className:[t.Button,t["Button"+i],t["Button__"+l],t["Button"+i+y],r?t.Button__icon:"",a?t["alignment__"+a]:"",u?t["Button__overide"+u]:"","SB027_2"].filter(Boolean).join(" "),...e.target&&{target:e.target},...e.href&&{href:e.href},...o&&{title:o}};return _.jsxs("a",{...c,children:[r&&_.jsx("em",{dangerouslySetInnerHTML:r}),_.jsx("span",{children:o})]})}});
{
"name": "@ueaweb/button",
"private": false,
"version": "0.5.0",
"version": "0.5.1",
"type": "module",

@@ -32,3 +32,3 @@ "files": [

"license": "ISC",
"gitHead": "8b66a9d8a1018ed4ddb31e3c27deac3b30ec3d20",
"gitHead": "cbd1e389c0c82436829ea3c4e60164d2039b4f98",
"devDependencies": {

@@ -35,0 +35,0 @@ "husky": "^9.0.11"

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc