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

@ueaweb/button

Package Overview
Dependencies
Maintainers
4
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.3.14 to 0.3.15

2

./dist/button.umd.js

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

(function(_,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["react/jsx-runtime"],o):(_=typeof globalThis<"u"?globalThis:_||self,_["@ueaweb/button"]=o(_.jsxRuntime))})(this,function(_){"use strict";const t={Button:"_Button_1meog_2",Button__full:"_Button__full_1meog_13",Button__auto:"_Button__auto_1meog_19",Button__primary:"_Button__primary_1meog_22","Button__primary--white":"_Button__primary--white_1meog_28","Button__primary--orange":"_Button__primary--orange_1meog_38","Button__primary--blue":"_Button__primary--blue_1meog_48","Button__primary--green":"_Button__primary--green_1meog_58","Button__primary--lilac":"_Button__primary--lilac_1meog_68","Button__primary--pink":"_Button__primary--pink_1meog_78","Button__primary--black":"_Button__primary--black_1meog_88","Button__primary--grey":"_Button__primary--grey_1meog_98","Button__primary--lightGrey":"_Button__primary--lightGrey_1meog_108","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_1meog_118","Button__primary--brightWhite":"_Button__primary--brightWhite_1meog_128",Button__secondary:"_Button__secondary_1meog_145","Button__secondary--white":"_Button__secondary--white_1meog_150","Button__secondary--orange":"_Button__secondary--orange_1meog_158","Button__secondary--blue":"_Button__secondary--blue_1meog_166","Button__secondary--green":"_Button__secondary--green_1meog_174","Button__secondary--lilac":"_Button__secondary--lilac_1meog_182","Button__secondary--pink":"_Button__secondary--pink_1meog_190","Button__secondary--black":"_Button__secondary--black_1meog_198","Button__secondary--grey":"_Button__secondary--grey_1meog_206","Button__secondary--lightGrey":"_Button__secondary--lightGrey_1meog_214","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_1meog_222","Button__secondary--brightWhite":"_Button__secondary--brightWhite_1meog_230","Button__overide--white":"_Button__overide--white_1meog_244","Button__overide--orange":"_Button__overide--orange_1meog_247","Button__overide--blue":"_Button__overide--blue_1meog_250","Button__overide--green":"_Button__overide--green_1meog_253","Button__overide--lilac":"_Button__overide--lilac_1meog_256","Button__overide--pink":"_Button__overide--pink_1meog_259","Button__overide--black":"_Button__overide--black_1meog_262","Button__overide--grey":"_Button__overide--grey_1meog_265","Button__overide--lightGrey":"_Button__overide--lightGrey_1meog_268","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_1meog_271","Button__overide--brightWhite":"_Button__overide--brightWhite_1meog_274",Button__plain:"_Button__plain_1meog_296"};return u=>{const{url:i,linkText:e,newWindow:B,type:n="__primary",colour:a="--black",width:y="auto",text_colour:r=!1}=u,g={className:[t.Button,t["Button"+n],t["Button__"+y],t["Button"+n+a],r?t["Button__overide"+r]:"","SB027_2"].filter(m=>m).join(" "),href:i,...B?{target:"_blank"}:{},title:e};return _.jsx("a",{...g,children:e})}});
(function(_,e){typeof exports=="object"&&typeof module<"u"?module.exports=e(require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["react/jsx-runtime"],e):(_=typeof globalThis<"u"?globalThis:_||self,_["@ueaweb/button"]=e(_.jsxRuntime))})(this,function(_){"use strict";const o={Button:"_Button_1meog_2",Button__full:"_Button__full_1meog_13",Button__auto:"_Button__auto_1meog_19",Button__primary:"_Button__primary_1meog_22","Button__primary--white":"_Button__primary--white_1meog_28","Button__primary--orange":"_Button__primary--orange_1meog_38","Button__primary--blue":"_Button__primary--blue_1meog_48","Button__primary--green":"_Button__primary--green_1meog_58","Button__primary--lilac":"_Button__primary--lilac_1meog_68","Button__primary--pink":"_Button__primary--pink_1meog_78","Button__primary--black":"_Button__primary--black_1meog_88","Button__primary--grey":"_Button__primary--grey_1meog_98","Button__primary--lightGrey":"_Button__primary--lightGrey_1meog_108","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_1meog_118","Button__primary--brightWhite":"_Button__primary--brightWhite_1meog_128",Button__secondary:"_Button__secondary_1meog_145","Button__secondary--white":"_Button__secondary--white_1meog_150","Button__secondary--orange":"_Button__secondary--orange_1meog_158","Button__secondary--blue":"_Button__secondary--blue_1meog_166","Button__secondary--green":"_Button__secondary--green_1meog_174","Button__secondary--lilac":"_Button__secondary--lilac_1meog_182","Button__secondary--pink":"_Button__secondary--pink_1meog_190","Button__secondary--black":"_Button__secondary--black_1meog_198","Button__secondary--grey":"_Button__secondary--grey_1meog_206","Button__secondary--lightGrey":"_Button__secondary--lightGrey_1meog_214","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_1meog_222","Button__secondary--brightWhite":"_Button__secondary--brightWhite_1meog_230","Button__overide--white":"_Button__overide--white_1meog_244","Button__overide--orange":"_Button__overide--orange_1meog_247","Button__overide--blue":"_Button__overide--blue_1meog_250","Button__overide--green":"_Button__overide--green_1meog_253","Button__overide--lilac":"_Button__overide--lilac_1meog_256","Button__overide--pink":"_Button__overide--pink_1meog_259","Button__overide--black":"_Button__overide--black_1meog_262","Button__overide--grey":"_Button__overide--grey_1meog_265","Button__overide--lightGrey":"_Button__overide--lightGrey_1meog_268","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_1meog_271","Button__overide--brightWhite":"_Button__overide--brightWhite_1meog_274",Button__plain:"_Button__plain_1meog_296"};return B=>{var i;const{linkText:n,type:r="__primary",colour:a="--black",width:y="auto",text_colour:u=!1,url:t}=B,g=t.linktype==="story"?(i=t==null?void 0:t.story)==null?void 0:i.url:t.url,m={className:[o.Button,o["Button"+r],o["Button__"+y],o["Button"+r+a],u?o["Button__overide"+u]:"","SB027_2"].filter(d=>d).join(" "),href:g,target:t.target,title:n};return _.jsx("a",{...m,children:n})}});

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

"use strict";const g=require("react/jsx-runtime"),m="_Button_1meog_2",c="_Button__full_1meog_13",d="_Button__auto_1meog_19",l="_Button__primary_1meog_22",s="_Button__secondary_1meog_145",p="_Button__plain_1meog_296",_={Button:m,Button__full:c,Button__auto:d,Button__primary:l,"Button__primary--white":"_Button__primary--white_1meog_28","Button__primary--orange":"_Button__primary--orange_1meog_38","Button__primary--blue":"_Button__primary--blue_1meog_48","Button__primary--green":"_Button__primary--green_1meog_58","Button__primary--lilac":"_Button__primary--lilac_1meog_68","Button__primary--pink":"_Button__primary--pink_1meog_78","Button__primary--black":"_Button__primary--black_1meog_88","Button__primary--grey":"_Button__primary--grey_1meog_98","Button__primary--lightGrey":"_Button__primary--lightGrey_1meog_108","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_1meog_118","Button__primary--brightWhite":"_Button__primary--brightWhite_1meog_128",Button__secondary:s,"Button__secondary--white":"_Button__secondary--white_1meog_150","Button__secondary--orange":"_Button__secondary--orange_1meog_158","Button__secondary--blue":"_Button__secondary--blue_1meog_166","Button__secondary--green":"_Button__secondary--green_1meog_174","Button__secondary--lilac":"_Button__secondary--lilac_1meog_182","Button__secondary--pink":"_Button__secondary--pink_1meog_190","Button__secondary--black":"_Button__secondary--black_1meog_198","Button__secondary--grey":"_Button__secondary--grey_1meog_206","Button__secondary--lightGrey":"_Button__secondary--lightGrey_1meog_214","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_1meog_222","Button__secondary--brightWhite":"_Button__secondary--brightWhite_1meog_230","Button__overide--white":"_Button__overide--white_1meog_244","Button__overide--orange":"_Button__overide--orange_1meog_247","Button__overide--blue":"_Button__overide--blue_1meog_250","Button__overide--green":"_Button__overide--green_1meog_253","Button__overide--lilac":"_Button__overide--lilac_1meog_256","Button__overide--pink":"_Button__overide--pink_1meog_259","Button__overide--black":"_Button__overide--black_1meog_262","Button__overide--grey":"_Button__overide--grey_1meog_265","Button__overide--lightGrey":"_Button__overide--lightGrey_1meog_268","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_1meog_271","Button__overide--brightWhite":"_Button__overide--brightWhite_1meog_274",Button__plain:p},h=r=>{const{url:n,linkText:t,newWindow:u,type:o="__primary",colour:i="--black",width:B="auto",text_colour:e=!1}=r,a={className:[_.Button,_["Button"+o],_["Button__"+B],_["Button"+o+i],e?_["Button__overide"+e]:"","SB027_2"].filter(y=>y).join(" "),href:n,...u?{target:"_blank"}:{},title:t};return g.jsx("a",{...a,children:t})};module.exports=h;
"use strict";const m=require("react/jsx-runtime"),c="_Button_1meog_2",l="_Button__full_1meog_13",d="_Button__auto_1meog_19",s="_Button__primary_1meog_22",p="_Button__secondary_1meog_145",h="_Button__plain_1meog_296",t={Button:c,Button__full:l,Button__auto:d,Button__primary:s,"Button__primary--white":"_Button__primary--white_1meog_28","Button__primary--orange":"_Button__primary--orange_1meog_38","Button__primary--blue":"_Button__primary--blue_1meog_48","Button__primary--green":"_Button__primary--green_1meog_58","Button__primary--lilac":"_Button__primary--lilac_1meog_68","Button__primary--pink":"_Button__primary--pink_1meog_78","Button__primary--black":"_Button__primary--black_1meog_88","Button__primary--grey":"_Button__primary--grey_1meog_98","Button__primary--lightGrey":"_Button__primary--lightGrey_1meog_108","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_1meog_118","Button__primary--brightWhite":"_Button__primary--brightWhite_1meog_128",Button__secondary:p,"Button__secondary--white":"_Button__secondary--white_1meog_150","Button__secondary--orange":"_Button__secondary--orange_1meog_158","Button__secondary--blue":"_Button__secondary--blue_1meog_166","Button__secondary--green":"_Button__secondary--green_1meog_174","Button__secondary--lilac":"_Button__secondary--lilac_1meog_182","Button__secondary--pink":"_Button__secondary--pink_1meog_190","Button__secondary--black":"_Button__secondary--black_1meog_198","Button__secondary--grey":"_Button__secondary--grey_1meog_206","Button__secondary--lightGrey":"_Button__secondary--lightGrey_1meog_214","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_1meog_222","Button__secondary--brightWhite":"_Button__secondary--brightWhite_1meog_230","Button__overide--white":"_Button__overide--white_1meog_244","Button__overide--orange":"_Button__overide--orange_1meog_247","Button__overide--blue":"_Button__overide--blue_1meog_250","Button__overide--green":"_Button__overide--green_1meog_253","Button__overide--lilac":"_Button__overide--lilac_1meog_256","Button__overide--pink":"_Button__overide--pink_1meog_259","Button__overide--black":"_Button__overide--black_1meog_262","Button__overide--grey":"_Button__overide--grey_1meog_265","Button__overide--lightGrey":"_Button__overide--lightGrey_1meog_268","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_1meog_271","Button__overide--brightWhite":"_Button__overide--brightWhite_1meog_274",Button__plain:h},v=u=>{var n;const{linkText:o,type:e="__primary",colour:i="--black",width:B="auto",text_colour:r=!1,url:_}=u,a=_.linktype==="story"?(n=_==null?void 0:_.story)==null?void 0:n.url:_.url,y={className:[t.Button,t["Button"+e],t["Button__"+B],t["Button"+e+i],r?t["Button__overide"+r]:"","SB027_2"].filter(g=>g).join(" "),href:a,target:_.target,title:o};return m.jsx("a",{...y,children:o})};module.exports=v;

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

import { jsx as g } from "react/jsx-runtime";
const m = "_Button_1meog_2", c = "_Button__full_1meog_13", d = "_Button__auto_1meog_19", l = "_Button__primary_1meog_22", s = "_Button__secondary_1meog_145", p = "_Button__plain_1meog_296", _ = {
Button: m,
import { jsx as m } from "react/jsx-runtime";
const l = "_Button_1meog_2", c = "_Button__full_1meog_13", d = "_Button__auto_1meog_19", s = "_Button__primary_1meog_22", p = "_Button__secondary_1meog_145", h = "_Button__plain_1meog_296", t = {
Button: l,
Button__full: c,
Button__auto: d,
Button__primary: l,
Button__primary: s,
"Button__primary--white": "_Button__primary--white_1meog_28",

@@ -18,3 +18,3 @@ "Button__primary--orange": "_Button__primary--orange_1meog_38",

"Button__primary--brightWhite": "_Button__primary--brightWhite_1meog_128",
Button__secondary: s,
Button__secondary: p,
"Button__secondary--white": "_Button__secondary--white_1meog_150",

@@ -42,29 +42,29 @@ "Button__secondary--orange": "_Button__secondary--orange_1meog_158",

"Button__overide--brightWhite": "_Button__overide--brightWhite_1meog_274",
Button__plain: p
}, v = (r) => {
Button__plain: h
}, b = (u) => {
var n;
const {
url: n,
linkText: t,
newWindow: u,
type: o = "__primary",
linkText: o,
type: e = "__primary",
colour: i = "--black",
width: B = "auto",
text_colour: e = !1
} = r, a = {
text_colour: r = !1,
url: _
} = u, a = _.linktype === "story" ? (n = _ == null ? void 0 : _.story) == null ? void 0 : n.url : _.url, y = {
className: [
_.Button,
_["Button" + o],
_["Button__" + B],
_["Button" + o + i],
e ? _["Button__overide" + e] : "",
t.Button,
t["Button" + e],
t["Button__" + B],
t["Button" + e + i],
r ? t["Button__overide" + r] : "",
"SB027_2"
].filter((y) => y).join(" "),
href: n,
...u ? { target: "_blank" } : {},
title: t
].filter((g) => g).join(" "),
href: a,
target: _.target,
title: o
};
return /* @__PURE__ */ g("a", { ...a, children: t });
return /* @__PURE__ */ m("a", { ...y, children: o });
};
export {
v as default
b as default
};

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

(function(_,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["react/jsx-runtime"],o):(_=typeof globalThis<"u"?globalThis:_||self,_["@ueaweb/button"]=o(_.jsxRuntime))})(this,function(_){"use strict";const t={Button:"_Button_1meog_2",Button__full:"_Button__full_1meog_13",Button__auto:"_Button__auto_1meog_19",Button__primary:"_Button__primary_1meog_22","Button__primary--white":"_Button__primary--white_1meog_28","Button__primary--orange":"_Button__primary--orange_1meog_38","Button__primary--blue":"_Button__primary--blue_1meog_48","Button__primary--green":"_Button__primary--green_1meog_58","Button__primary--lilac":"_Button__primary--lilac_1meog_68","Button__primary--pink":"_Button__primary--pink_1meog_78","Button__primary--black":"_Button__primary--black_1meog_88","Button__primary--grey":"_Button__primary--grey_1meog_98","Button__primary--lightGrey":"_Button__primary--lightGrey_1meog_108","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_1meog_118","Button__primary--brightWhite":"_Button__primary--brightWhite_1meog_128",Button__secondary:"_Button__secondary_1meog_145","Button__secondary--white":"_Button__secondary--white_1meog_150","Button__secondary--orange":"_Button__secondary--orange_1meog_158","Button__secondary--blue":"_Button__secondary--blue_1meog_166","Button__secondary--green":"_Button__secondary--green_1meog_174","Button__secondary--lilac":"_Button__secondary--lilac_1meog_182","Button__secondary--pink":"_Button__secondary--pink_1meog_190","Button__secondary--black":"_Button__secondary--black_1meog_198","Button__secondary--grey":"_Button__secondary--grey_1meog_206","Button__secondary--lightGrey":"_Button__secondary--lightGrey_1meog_214","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_1meog_222","Button__secondary--brightWhite":"_Button__secondary--brightWhite_1meog_230","Button__overide--white":"_Button__overide--white_1meog_244","Button__overide--orange":"_Button__overide--orange_1meog_247","Button__overide--blue":"_Button__overide--blue_1meog_250","Button__overide--green":"_Button__overide--green_1meog_253","Button__overide--lilac":"_Button__overide--lilac_1meog_256","Button__overide--pink":"_Button__overide--pink_1meog_259","Button__overide--black":"_Button__overide--black_1meog_262","Button__overide--grey":"_Button__overide--grey_1meog_265","Button__overide--lightGrey":"_Button__overide--lightGrey_1meog_268","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_1meog_271","Button__overide--brightWhite":"_Button__overide--brightWhite_1meog_274",Button__plain:"_Button__plain_1meog_296"};return u=>{const{url:i,linkText:e,newWindow:B,type:n="__primary",colour:a="--black",width:y="auto",text_colour:r=!1}=u,g={className:[t.Button,t["Button"+n],t["Button__"+y],t["Button"+n+a],r?t["Button__overide"+r]:"","SB027_2"].filter(m=>m).join(" "),href:i,...B?{target:"_blank"}:{},title:e};return _.jsx("a",{...g,children:e})}});
(function(_,e){typeof exports=="object"&&typeof module<"u"?module.exports=e(require("react/jsx-runtime")):typeof define=="function"&&define.amd?define(["react/jsx-runtime"],e):(_=typeof globalThis<"u"?globalThis:_||self,_["@ueaweb/button"]=e(_.jsxRuntime))})(this,function(_){"use strict";const o={Button:"_Button_1meog_2",Button__full:"_Button__full_1meog_13",Button__auto:"_Button__auto_1meog_19",Button__primary:"_Button__primary_1meog_22","Button__primary--white":"_Button__primary--white_1meog_28","Button__primary--orange":"_Button__primary--orange_1meog_38","Button__primary--blue":"_Button__primary--blue_1meog_48","Button__primary--green":"_Button__primary--green_1meog_58","Button__primary--lilac":"_Button__primary--lilac_1meog_68","Button__primary--pink":"_Button__primary--pink_1meog_78","Button__primary--black":"_Button__primary--black_1meog_88","Button__primary--grey":"_Button__primary--grey_1meog_98","Button__primary--lightGrey":"_Button__primary--lightGrey_1meog_108","Button__primary--veryLightGrey":"_Button__primary--veryLightGrey_1meog_118","Button__primary--brightWhite":"_Button__primary--brightWhite_1meog_128",Button__secondary:"_Button__secondary_1meog_145","Button__secondary--white":"_Button__secondary--white_1meog_150","Button__secondary--orange":"_Button__secondary--orange_1meog_158","Button__secondary--blue":"_Button__secondary--blue_1meog_166","Button__secondary--green":"_Button__secondary--green_1meog_174","Button__secondary--lilac":"_Button__secondary--lilac_1meog_182","Button__secondary--pink":"_Button__secondary--pink_1meog_190","Button__secondary--black":"_Button__secondary--black_1meog_198","Button__secondary--grey":"_Button__secondary--grey_1meog_206","Button__secondary--lightGrey":"_Button__secondary--lightGrey_1meog_214","Button__secondary--veryLightGrey":"_Button__secondary--veryLightGrey_1meog_222","Button__secondary--brightWhite":"_Button__secondary--brightWhite_1meog_230","Button__overide--white":"_Button__overide--white_1meog_244","Button__overide--orange":"_Button__overide--orange_1meog_247","Button__overide--blue":"_Button__overide--blue_1meog_250","Button__overide--green":"_Button__overide--green_1meog_253","Button__overide--lilac":"_Button__overide--lilac_1meog_256","Button__overide--pink":"_Button__overide--pink_1meog_259","Button__overide--black":"_Button__overide--black_1meog_262","Button__overide--grey":"_Button__overide--grey_1meog_265","Button__overide--lightGrey":"_Button__overide--lightGrey_1meog_268","Button__overide--veryLightGrey":"_Button__overide--veryLightGrey_1meog_271","Button__overide--brightWhite":"_Button__overide--brightWhite_1meog_274",Button__plain:"_Button__plain_1meog_296"};return B=>{var i;const{linkText:n,type:r="__primary",colour:a="--black",width:y="auto",text_colour:u=!1,url:t}=B,g=t.linktype==="story"?(i=t==null?void 0:t.story)==null?void 0:i.url:t.url,m={className:[o.Button,o["Button"+r],o["Button__"+y],o["Button"+r+a],u?o["Button__overide"+u]:"","SB027_2"].filter(d=>d).join(" "),href:g,target:t.target,title:n};return _.jsx("a",{...m,children:n})}});

@@ -8,5 +8,20 @@ import type { Colours } from '@ueaweb/shared/src/types';

declare type ButtonProps = {
url: string;
url: {
cached_url: string;
fieldtype: string;
id: string;
linktype: LinkType;
url?: string;
target: TargetType;
story?: {
full_slug: string;
id: number;
name: string;
slug: string;
url: string;
uuid: string;
_stopResolving: boolean;
};
};
linkText: string;
newWindow?: boolean;
type?: Types;

@@ -18,6 +33,10 @@ colour?: Colours;

declare type Types = '__primary' | '__secondary';
declare type LinkType = "url" | "story";
declare type Width = 'auto' | 'full';
declare type TargetType = "_blank" | "_self";
declare type Types = "__primary" | "__secondary";
declare type Width = "auto" | "full";
export { }
{
"name": "@ueaweb/button",
"private": false,
"version": "0.3.14",
"version": "0.3.15",
"type": "module",

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

"license": "ISC",
"gitHead": "09dfa90e105e1a0f6d39cd2e2ee9075b9d9f26ab"
"gitHead": "eacf3d0d6f70f0450c2afefd1fb3bd2ed248a650"
}
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