Socket
Socket
Sign inDemoInstall

@assecosolutions/fox-button

Package Overview
Dependencies
Maintainers
4
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assecosolutions/fox-button - npm Package Compare versions

Comparing version 1.5.15 to 1.5.16

122

index.esm.js

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

import { css, LitElement, html as html$2 } from 'lit';
import { LitElement, html as html$2 } from 'lit';
import { property, customElement } from 'lit/decorators.js';

@@ -24,9 +24,27 @@ import { classMap } from 'lit/directives/class-map.js';

var fails$9 = function (exec) {
try {
return !!exec();
} catch (error) {
return true;
}
};
var fails$8 = fails$9;
var functionBindNative = !fails$8(function () {
var test = (function () { /* empty */ }).bind();
// eslint-disable-next-line no-prototype-builtins -- safe
return typeof test != 'function' || test.hasOwnProperty('prototype');
});
var NATIVE_BIND$1 = functionBindNative;
var FunctionPrototype$1 = Function.prototype;
var bind = FunctionPrototype$1.bind;
var call$5 = FunctionPrototype$1.call;
var callBind = bind && bind.bind(call$5);
var uncurryThis$a = NATIVE_BIND$1 && bind.bind(call$5, call$5);
var functionUncurryThis = bind ? function (fn) {
return fn && callBind(call$5, fn);
var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
return fn && uncurryThis$a(fn);
} : function (fn) {

@@ -38,10 +56,2 @@ return fn && function () {

var fails$7 = function (exec) {
try {
return !!exec();
} catch (error) {
return true;
}
};
var uncurryThis$9 = functionUncurryThis;

@@ -58,3 +68,3 @@

var uncurryThis$8 = functionUncurryThis;
var fails$6 = fails$7;
var fails$7 = fails$9;
var classof = classofRaw;

@@ -66,3 +76,3 @@

// fallback for non-array-like ES3 and non-enumerable old V8 strings
var indexedObject = fails$6(function () {
var indexedObject = fails$7(function () {
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346

@@ -122,5 +132,7 @@ // eslint-disable-next-line no-prototype-builtins -- safe

})('versions', []).push({
version: '3.20.0',
version: '3.20.3',
mode: 'global',
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE',
source: 'https://github.com/zloirock/core-js'
});

@@ -212,6 +224,6 @@

var V8_VERSION = engineV8Version;
var fails$5 = fails$7;
var fails$6 = fails$9;
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$5(function () {
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$6(function () {
var symbol = Symbol();

@@ -276,6 +288,8 @@ // Chrome 38 Symbol has incorrect toString conversion

var fails$4 = fails$7;
var objectDefineProperties = {};
var fails$5 = fails$9;
// Detect IE8's incomplete defineProperty implementation
var descriptors = !fails$4(function () {
var descriptors = !fails$5(function () {
// eslint-disable-next-line es/no-object-defineproperty -- required for testing

@@ -285,2 +299,15 @@ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;

var DESCRIPTORS$7 = descriptors;
var fails$4 = fails$9;
// V8 ~ Chrome 36-
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$4(function () {
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
value: 42,
writable: false
}).prototype != 42;
});
var objectDefineProperty = {};

@@ -300,8 +327,8 @@

var DESCRIPTORS$6 = descriptors;
var fails$3 = fails$7;
var fails$3 = fails$9;
var createElement = documentCreateElement$2;
// Thank's IE8 for his funny defineProperty
// Thanks to IE8 for its funny defineProperty
var ie8DomDefine = !DESCRIPTORS$6 && !fails$3(function () {
// eslint-disable-next-line es/no-object-defineproperty -- requied for testing
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty(createElement('div'), 'a', {

@@ -312,5 +339,7 @@ get: function () { return 7; }

var NATIVE_BIND = functionBindNative;
var call$4 = Function.prototype.call;
var functionCall = call$4.bind ? call$4.bind(call$4) : function () {
var functionCall = NATIVE_BIND ? call$4.bind(call$4) : function () {
return call$4.apply(call$4, arguments);

@@ -428,2 +457,3 @@ };

var IE8_DOM_DEFINE$1 = ie8DomDefine;
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
var anObject$4 = anObject$5;

@@ -435,9 +465,29 @@ var toPropertyKey$1 = toPropertyKey$2;

var $defineProperty = Object.defineProperty;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
var ENUMERABLE = 'enumerable';
var CONFIGURABLE$1 = 'configurable';
var WRITABLE = 'writable';
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
objectDefineProperty.f = DESCRIPTORS$5 ? $defineProperty : function defineProperty(O, P, Attributes) {
objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
anObject$4(O);
P = toPropertyKey$1(P);
anObject$4(Attributes);
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
var current = $getOwnPropertyDescriptor$1(O, P);
if (current && current[WRITABLE]) {
O[P] = Attributes.value;
Attributes = {
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
writable: false
};
}
} return $defineProperty(O, P, Attributes);
} : $defineProperty : function defineProperty(O, P, Attributes) {
anObject$4(O);
P = toPropertyKey$1(P);
anObject$4(Attributes);
if (IE8_DOM_DEFINE$1) try {

@@ -571,2 +621,3 @@ return $defineProperty(O, P, Attributes);

var DESCRIPTORS$4 = descriptors;
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
var definePropertyModule$3 = objectDefineProperty;

@@ -580,3 +631,3 @@ var anObject$3 = anObject$5;

// eslint-disable-next-line es/no-object-defineproperties -- safe
var objectDefineProperties = DESCRIPTORS$4 ? Object.defineProperties : function defineProperties(O, Properties) {
objectDefineProperties.f = DESCRIPTORS$4 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
anObject$3(O);

@@ -608,3 +659,3 @@ var props = toIndexedObject$2(Properties);

var anObject$2 = anObject$5;
var defineProperties = objectDefineProperties;
var definePropertiesModule = objectDefineProperties;
var enumBugKeys$1 = enumBugKeys$3;

@@ -687,3 +738,3 @@ var hiddenKeys$2 = hiddenKeys$4;

} else result = NullProtoObject();
return Properties === undefined ? result : defineProperties(result, Properties);
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
};

@@ -986,3 +1037,3 @@

var fails$2 = fails$7;
var fails$2 = fails$9;
var isCallable$4 = isCallable$d;

@@ -1066,3 +1117,3 @@

var fails$1 = fails$7;
var fails$1 = fails$9;

@@ -1098,3 +1149,3 @@ var correctPrototypeGetter = !fails$1(function () {

var fails = fails$7;
var fails = fails$9;
var isCallable$2 = isCallable$d;

@@ -1479,6 +1530,2 @@ var getPrototypeOf$1 = objectGetPrototypeOf;

let _$1 = t => t,
_t$1;
const styles = css(_t$1 || (_t$1 = _$1`:host{display:inline-flex;outline:none;white-space:nowrap;-webkit-tap-highlight-color:transparent;vertical-align:top;box-sizing:border-box}:host{--fox-button-font-weight: var(--fox-font-weight-medium, 600);--fox-button-font-size: var(--fox-font-size-base, 14px);--fox-button-font-family-fallback: Nunito, Roboto, sans-serif;--fox-button-font-family: var( --fox-font-family, var(--fox-button-font-family-fallback) );--fox-button-text-color-rgb: 15, 19, 16;--fox-button-primary-color-rgb: 231, 236, 240;--fox-button-text-on-primary-color-rgb: 15, 19, 16}:host([primary]){--fox-button-primary-color-rgb-fallback: 69, 153, 255;--fox-button-primary-color-rgb: var( --fox-client-base-rgb-color, var(--fox-button-primary-color-rgb-fallback) );--fox-button-text-color-rgb: 69, 153, 255;--fox-button-text-on-primary-color-rgb: 255, 255, 255}:host([danger]){--fox-button-primary-color-rgb: 250, 190, 58;--fox-button-text-color-rgb: 250, 190, 58;--fox-button-text-on-primary-color-rgb: 255, 255, 255}:host([small]){--fox-button-font-size: 12px;--fox-button-height: 26px;--fox-button-horizontal-spaceing: 8px}:host([fullwidth]){width:100%}:host([disabled]){pointer-events:none}.fox-button{transition:all ease-out .4s;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--fox-button-font-family);font-size:var(--fox-button-font-size);font-weight:var(--fox-button-font-weight);text-decoration:none;color:rgba(var(--fox-button-text-color-rgb), var(--fox-button-color-alpha, 1));background:rgba(var(--fox-button-primary-color-rgb), var(--fox-button-background-alpha, 0));border-radius:var(--fox-button-border-radius, 4px);height:var(--fox-button-height, 32px);padding:0 var(--fox-button-horizontal-spaceing, 16px);flex:auto;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle}.fox-button__outlined{border:2px solid rgba(var(--fox-button-primary-color-rgb), 1)}.fox-button__raised{--fox-button-background-alpha: 1;--fox-button-text-color-rgb: var(--fox-button-text-on-primary-color-rgb)}.fox-button:focus{--fox-button-background-alpha: 0.1}.fox-button:focus.fox-button__raised{--fox-button-background-alpha: 0.7}.fox-button:hover{cursor:pointer}.fox-button:hover:not(.fox-button:hover.fox-button__raised){background:rgba(148,168,188,.1)}.fox-button:hover.fox-button__raised{--fox-button-background-alpha: 0.7}.fox-button:active{--fox-button-background-alpha: 0.2;outline:none}.fox-button:active.fox-button__raised{transition:none;--fox-button-background-alpha: 0.9;box-shadow:0 3px 6px #0f131029}.fox-button:disabled{--fox-button-background-alpha: 0;--fox-button-color-alpha: 0.3;cursor:default;pointer-events:none}.fox-button:disabled.fox-button__raised{--fox-button-color-alpha: 0.3;--fox-button-background-alpha: 0.3}.fox-button:disabled.fox-button__outlined{border:2px solid rgba(var(--fox-button-primary-color-rgb), 0.1)}.fox-button__progress{bottom:0;right:0;left:0;position:absolute;--mdc-linear-progress-buffer-color: rgba(255, 255, 255, 0.6);--mdc-theme-primary: rgba(var(--fox-button-primary-color-rgb), 1)}.trailing-icon ::slotted(*),.trailing-icon .fox-button__icon,.leading-icon ::slotted(*),.leading-icon .fox-button__icon{margin-left:0;margin-right:5px;display:block;width:18px;height:18px;font-size:18px;vertical-align:top}.trailing-icon ::slotted(*),.trailing-icon .fox-button__icon{margin-left:5px;margin-right:0}.slot-container{display:inline-flex;align-items:center;justify-content:center}`));
let _ = t => t,

@@ -1561,8 +1608,3 @@ _t,

};
/**
* @ignore
*/
FoxButton.styles = [styles];
__decorate([property({

@@ -1569,0 +1611,0 @@ type: Boolean,

@@ -54,5 +54,2 @@ (function (global, factory) {

var styles = lit.css(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject([":host{display:inline-flex;outline:none;white-space:nowrap;-webkit-tap-highlight-color:transparent;vertical-align:top;box-sizing:border-box}:host{--fox-button-font-weight: var(--fox-font-weight-medium, 600);--fox-button-font-size: var(--fox-font-size-base, 14px);--fox-button-font-family-fallback: Nunito, Roboto, sans-serif;--fox-button-font-family: var( --fox-font-family, var(--fox-button-font-family-fallback) );--fox-button-text-color-rgb: 15, 19, 16;--fox-button-primary-color-rgb: 231, 236, 240;--fox-button-text-on-primary-color-rgb: 15, 19, 16}:host([primary]){--fox-button-primary-color-rgb-fallback: 69, 153, 255;--fox-button-primary-color-rgb: var( --fox-client-base-rgb-color, var(--fox-button-primary-color-rgb-fallback) );--fox-button-text-color-rgb: 69, 153, 255;--fox-button-text-on-primary-color-rgb: 255, 255, 255}:host([danger]){--fox-button-primary-color-rgb: 250, 190, 58;--fox-button-text-color-rgb: 250, 190, 58;--fox-button-text-on-primary-color-rgb: 255, 255, 255}:host([small]){--fox-button-font-size: 12px;--fox-button-height: 26px;--fox-button-horizontal-spaceing: 8px}:host([fullwidth]){width:100%}:host([disabled]){pointer-events:none}.fox-button{transition:all ease-out .4s;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--fox-button-font-family);font-size:var(--fox-button-font-size);font-weight:var(--fox-button-font-weight);text-decoration:none;color:rgba(var(--fox-button-text-color-rgb), var(--fox-button-color-alpha, 1));background:rgba(var(--fox-button-primary-color-rgb), var(--fox-button-background-alpha, 0));border-radius:var(--fox-button-border-radius, 4px);height:var(--fox-button-height, 32px);padding:0 var(--fox-button-horizontal-spaceing, 16px);flex:auto;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle}.fox-button__outlined{border:2px solid rgba(var(--fox-button-primary-color-rgb), 1)}.fox-button__raised{--fox-button-background-alpha: 1;--fox-button-text-color-rgb: var(--fox-button-text-on-primary-color-rgb)}.fox-button:focus{--fox-button-background-alpha: 0.1}.fox-button:focus.fox-button__raised{--fox-button-background-alpha: 0.7}.fox-button:hover{cursor:pointer}.fox-button:hover:not(.fox-button:hover.fox-button__raised){background:rgba(148,168,188,.1)}.fox-button:hover.fox-button__raised{--fox-button-background-alpha: 0.7}.fox-button:active{--fox-button-background-alpha: 0.2;outline:none}.fox-button:active.fox-button__raised{transition:none;--fox-button-background-alpha: 0.9;box-shadow:0 3px 6px #0f131029}.fox-button:disabled{--fox-button-background-alpha: 0;--fox-button-color-alpha: 0.3;cursor:default;pointer-events:none}.fox-button:disabled.fox-button__raised{--fox-button-color-alpha: 0.3;--fox-button-background-alpha: 0.3}.fox-button:disabled.fox-button__outlined{border:2px solid rgba(var(--fox-button-primary-color-rgb), 0.1)}.fox-button__progress{bottom:0;right:0;left:0;position:absolute;--mdc-linear-progress-buffer-color: rgba(255, 255, 255, 0.6);--mdc-theme-primary: rgba(var(--fox-button-primary-color-rgb), 1)}.trailing-icon ::slotted(*),.trailing-icon .fox-button__icon,.leading-icon ::slotted(*),.leading-icon .fox-button__icon{margin-left:0;margin-right:5px;display:block;width:18px;height:18px;font-size:18px;vertical-align:top}.trailing-icon ::slotted(*),.trailing-icon .fox-button__icon{margin-left:5px;margin-right:0}.slot-container{display:inline-flex;align-items:center;justify-content:center}"], [":host{display:inline-flex;outline:none;white-space:nowrap;-webkit-tap-highlight-color:transparent;vertical-align:top;box-sizing:border-box}:host{--fox-button-font-weight: var(--fox-font-weight-medium, 600);--fox-button-font-size: var(--fox-font-size-base, 14px);--fox-button-font-family-fallback: Nunito, Roboto, sans-serif;--fox-button-font-family: var( --fox-font-family, var(--fox-button-font-family-fallback) );--fox-button-text-color-rgb: 15, 19, 16;--fox-button-primary-color-rgb: 231, 236, 240;--fox-button-text-on-primary-color-rgb: 15, 19, 16}:host([primary]){--fox-button-primary-color-rgb-fallback: 69, 153, 255;--fox-button-primary-color-rgb: var( --fox-client-base-rgb-color, var(--fox-button-primary-color-rgb-fallback) );--fox-button-text-color-rgb: 69, 153, 255;--fox-button-text-on-primary-color-rgb: 255, 255, 255}:host([danger]){--fox-button-primary-color-rgb: 250, 190, 58;--fox-button-text-color-rgb: 250, 190, 58;--fox-button-text-on-primary-color-rgb: 255, 255, 255}:host([small]){--fox-button-font-size: 12px;--fox-button-height: 26px;--fox-button-horizontal-spaceing: 8px}:host([fullwidth]){width:100%}:host([disabled]){pointer-events:none}.fox-button{transition:all ease-out .4s;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--fox-button-font-family);font-size:var(--fox-button-font-size);font-weight:var(--fox-button-font-weight);text-decoration:none;color:rgba(var(--fox-button-text-color-rgb), var(--fox-button-color-alpha, 1));background:rgba(var(--fox-button-primary-color-rgb), var(--fox-button-background-alpha, 0));border-radius:var(--fox-button-border-radius, 4px);height:var(--fox-button-height, 32px);padding:0 var(--fox-button-horizontal-spaceing, 16px);flex:auto;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;border:none;outline:none;line-height:inherit;user-select:none;-webkit-appearance:none;overflow:visible;vertical-align:middle}.fox-button__outlined{border:2px solid rgba(var(--fox-button-primary-color-rgb), 1)}.fox-button__raised{--fox-button-background-alpha: 1;--fox-button-text-color-rgb: var(--fox-button-text-on-primary-color-rgb)}.fox-button:focus{--fox-button-background-alpha: 0.1}.fox-button:focus.fox-button__raised{--fox-button-background-alpha: 0.7}.fox-button:hover{cursor:pointer}.fox-button:hover:not(.fox-button:hover.fox-button__raised){background:rgba(148,168,188,.1)}.fox-button:hover.fox-button__raised{--fox-button-background-alpha: 0.7}.fox-button:active{--fox-button-background-alpha: 0.2;outline:none}.fox-button:active.fox-button__raised{transition:none;--fox-button-background-alpha: 0.9;box-shadow:0 3px 6px #0f131029}.fox-button:disabled{--fox-button-background-alpha: 0;--fox-button-color-alpha: 0.3;cursor:default;pointer-events:none}.fox-button:disabled.fox-button__raised{--fox-button-color-alpha: 0.3;--fox-button-background-alpha: 0.3}.fox-button:disabled.fox-button__outlined{border:2px solid rgba(var(--fox-button-primary-color-rgb), 0.1)}.fox-button__progress{bottom:0;right:0;left:0;position:absolute;--mdc-linear-progress-buffer-color: rgba(255, 255, 255, 0.6);--mdc-theme-primary: rgba(var(--fox-button-primary-color-rgb), 1)}.trailing-icon ::slotted(*),.trailing-icon .fox-button__icon,.leading-icon ::slotted(*),.leading-icon .fox-button__icon{margin-left:0;margin-right:5px;display:block;width:18px;height:18px;font-size:18px;vertical-align:top}.trailing-icon ::slotted(*),.trailing-icon .fox-button__icon{margin-left:5px;margin-right:0}.slot-container{display:inline-flex;align-items:center;justify-content:center}"])));
var templateObject_1$1;
/**

@@ -111,9 +108,3 @@ * This is a Button

};
/**
* @ignore
*/
FoxButton.styles = [styles];
__decorate([decorators_js.property({

@@ -120,0 +111,0 @@ type: Boolean,

@@ -25,6 +25,2 @@ import { LitElement } from 'lit';

export declare class FoxButton extends LitElement {
/**
* @ignore
*/
static styles: import("lit").CSSResult[];
small: boolean;

@@ -31,0 +27,0 @@ primary: boolean;

import './FoxButton';
import { FoxButton } from './FoxButton';
declare const _default: {

@@ -7,3 +8,18 @@ title: string;

export default _default;
export declare const Interactive: {
(args: FoxButton): import("lit-html").TemplateResult<1>;
args: {
label: string;
icon: string;
small: boolean;
outlined: boolean;
raised: boolean;
primary: boolean;
disabled: boolean;
trailingIcon: boolean;
fullwidth: boolean;
progress: boolean;
};
};
export declare const Default: () => import("lit-html").TemplateResult<1>;
export declare const Primary: () => import("lit-html").TemplateResult<1>;
{
"name": "@assecosolutions/fox-button",
"version": "1.5.15",
"version": "1.5.16",
"public": true,

@@ -24,5 +24,7 @@ "lib": {

"lit": "^2.0.0",
"@assecosolutions/ng-strictly-typed": "0.0.1",
"@assecosolutions/ng-strictly-typed": "0.0.2",
"lodash": "^4.17.21",
"rxjs": "6.6.7",
"@assecosolutions/fox-icon": "1.5.15",
"@assecosolutions/fox-progress": "1.5.14",
"@assecosolutions/fox-progress": "1.5.15",
"@material/mwc-circular-progress": "^0.25.3",

@@ -29,0 +31,0 @@ "@material/mwc-linear-progress": "^0.25.3"

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