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

@purpurds/spinner

Package Overview
Dependencies
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@purpurds/spinner - npm Package Compare versions

Comparing version 4.6.0 to 5.0.0

4

dist/spinner.cjs.js

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

"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime");function S(s){return s&&s.__esModule&&Object.prototype.hasOwnProperty.call(s,"default")?s.default:s}var f={exports:{}};/*!
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("react/jsx-runtime");function x(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var d={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(s){(function(){var u={}.hasOwnProperty;function n(){for(var r="",e=0;e<arguments.length;e++){var t=arguments[e];t&&(r=l(r,c(t)))}return r}function c(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return n.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var t in r)u.call(r,t)&&r[t]&&(e=l(e,t));return e}function l(r,e){return e?r?r+" "+e:r+e:r}s.exports?(n.default=n,s.exports=n):window.classNames=n})()})(f);var g=f.exports;const d=S(g),m="_rotate_7s2g1_1",v="_dash_7s2g1_1",p={"purpur-spinner":"_purpur-spinner_7s2g1_1",rotate:m,"purpur-spinner--xxs":"_purpur-spinner--xxs_7s2g1_4","purpur-spinner--xs":"_purpur-spinner--xs_7s2g1_8","purpur-spinner--sm":"_purpur-spinner--sm_7s2g1_12","purpur-spinner--md":"_purpur-spinner--md_7s2g1_16","purpur-spinner--lg":"_purpur-spinner--lg_7s2g1_20","purpur-spinner__circle":"_purpur-spinner__circle_7s2g1_24",dash:v,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_7s2g1_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_7s2g1_36","purpur-spinner__circle--negative-disabled":"_purpur-spinner__circle--negative-disabled_7s2g1_39"},i="purpur-spinner",a={PRIMARY:"primary",DISABLED:"disabled",NEGATIVE:"negative",NEGATIVE_DISABLED:"negative-disabled"},x=Object.values(a),o={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},N=Object.values(o),b=({["data-testid"]:s,size:u=o.SM,variant:n=a.PRIMARY,...c})=>_.jsx("div",{className:d([p[i],p[`${i}--${u}`]]),"data-testid":s,...c,children:_.jsx("svg",{viewBox:"0 0 50 50",children:_.jsx("circle",{className:d(p[`${i}__circle`],p[`${i}__circle--${n}`]),cx:"25",cy:"25",r:"20"})})});exports.SPINNER_SIZE=o;exports.SPINNER_VARIANT=a;exports.Spinner=b;exports.spinnerSizes=N;exports.spinnerVariants=x;
*/(function(n){(function(){var o={}.hasOwnProperty;function s(){for(var r="",e=0;e<arguments.length;e++){var t=arguments[e];t&&(r=u(r,c(t)))}return r}function c(r){if(typeof r=="string"||typeof r=="number")return r;if(typeof r!="object")return"";if(Array.isArray(r))return s.apply(null,r);if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]"))return r.toString();var e="";for(var t in r)o.call(r,t)&&r[t]&&(e=u(e,t));return e}function u(r,e){return e?r?r+" "+e:r+e:r}n.exports?(s.default=s,n.exports=s):window.classNames=s})()})(d);var f=d.exports;const l=x(f),j="_rotate_1xozj_1",S="_dash_1xozj_1",p={"purpur-spinner":"_purpur-spinner_1xozj_1",rotate:j,"purpur-spinner--xxs":"_purpur-spinner--xxs_1xozj_4","purpur-spinner--xs":"_purpur-spinner--xs_1xozj_8","purpur-spinner--sm":"_purpur-spinner--sm_1xozj_12","purpur-spinner--md":"_purpur-spinner--md_1xozj_16","purpur-spinner--lg":"_purpur-spinner--lg_1xozj_20","purpur-spinner__circle":"_purpur-spinner__circle_1xozj_24",dash:S,"purpur-spinner__circle--disabled":"_purpur-spinner__circle--disabled_1xozj_33","purpur-spinner__circle--negative":"_purpur-spinner__circle--negative_1xozj_36"},i="purpur-spinner",a={XXS:"xxs",XS:"xs",SM:"sm",MD:"md",LG:"lg"},m=Object.values(a),v=({["data-testid"]:n,disabled:o=!1,negative:s=!1,size:c=a.SM,...u})=>_.jsx("div",{className:l([p[i],p[`${i}--${c}`]]),"data-testid":n,...u,children:_.jsx("svg",{viewBox:"0 0 50 50",children:_.jsx("circle",{className:l(p[`${i}__circle`],{[p[`${i}__circle--disabled`]]:o,[p[`${i}__circle--negative`]]:s}),cx:"25",cy:"25",r:"20"})})});exports.SPINNER_SIZE=a;exports.Spinner=v;exports.spinnerSizes=m;
//# sourceMappingURL=spinner.cjs.js.map
import { default as React } from 'react';
export declare const SPINNER_VARIANT: {
readonly PRIMARY: "primary";
readonly DISABLED: "disabled";
readonly NEGATIVE: "negative";
readonly NEGATIVE_DISABLED: "negative-disabled";
};
export declare const spinnerVariants: ("primary" | "disabled" | "negative" | "negative-disabled")[];
export type SpinnerVariant = (typeof SPINNER_VARIANT)[keyof typeof SPINNER_VARIANT];
export declare const SPINNER_SIZE: {

@@ -22,6 +14,7 @@ readonly XXS: "xxs";

["data-testid"]?: string;
disabled?: boolean;
negative?: boolean;
size?: SpinnerSize;
variant?: SpinnerVariant;
};
export declare const Spinner: ({ ["data-testid"]: dataTestid, size, variant, ...props }: SpinnerProps) => React.JSX.Element;
export declare const Spinner: ({ ["data-testid"]: dataTestid, disabled, negative, size, ...props }: SpinnerProps) => React.JSX.Element;
//# sourceMappingURL=spinner.d.ts.map

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

import { jsx as c } from "react/jsx-runtime";
function g(s) {
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
import { jsx as _ } from "react/jsx-runtime";
function d(n) {
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
}

@@ -11,13 +11,13 @@ var l = { exports: {} };

*/
(function(s) {
(function(n) {
(function() {
var u = {}.hasOwnProperty;
function n() {
var o = {}.hasOwnProperty;
function s() {
for (var r = "", e = 0; e < arguments.length; e++) {
var t = arguments[e];
t && (r = a(r, _(t)));
t && (r = u(r, c(t)));
}
return r;
}
function _(r) {
function c(r) {
if (typeof r == "string" || typeof r == "number")

@@ -28,3 +28,3 @@ return r;

if (Array.isArray(r))
return n.apply(null, r);
return s.apply(null, r);
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))

@@ -34,31 +34,25 @@ return r.toString();

for (var t in r)
u.call(r, t) && r[t] && (e = a(e, t));
o.call(r, t) && r[t] && (e = u(e, t));
return e;
}
function a(r, e) {
function u(r, e) {
return e ? r ? r + " " + e : r + e : r;
}
s.exports ? (n.default = n, s.exports = n) : window.classNames = n;
n.exports ? (s.default = s, n.exports = s) : window.classNames = s;
})();
})(l);
var m = l.exports;
const o = /* @__PURE__ */ g(m), v = "_rotate_7s2g1_1", S = "_dash_7s2g1_1", p = {
"purpur-spinner": "_purpur-spinner_7s2g1_1",
rotate: v,
"purpur-spinner--xxs": "_purpur-spinner--xxs_7s2g1_4",
"purpur-spinner--xs": "_purpur-spinner--xs_7s2g1_8",
"purpur-spinner--sm": "_purpur-spinner--sm_7s2g1_12",
"purpur-spinner--md": "_purpur-spinner--md_7s2g1_16",
"purpur-spinner--lg": "_purpur-spinner--lg_7s2g1_20",
"purpur-spinner__circle": "_purpur-spinner__circle_7s2g1_24",
dash: S,
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_7s2g1_33",
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_7s2g1_36",
"purpur-spinner__circle--negative-disabled": "_purpur-spinner__circle--negative-disabled_7s2g1_39"
}, i = "purpur-spinner", d = {
PRIMARY: "primary",
DISABLED: "disabled",
NEGATIVE: "negative",
NEGATIVE_DISABLED: "negative-disabled"
}, b = Object.values(d), f = {
var x = l.exports;
const a = /* @__PURE__ */ d(x), m = "_rotate_1xozj_1", j = "_dash_1xozj_1", p = {
"purpur-spinner": "_purpur-spinner_1xozj_1",
rotate: m,
"purpur-spinner--xxs": "_purpur-spinner--xxs_1xozj_4",
"purpur-spinner--xs": "_purpur-spinner--xs_1xozj_8",
"purpur-spinner--sm": "_purpur-spinner--sm_1xozj_12",
"purpur-spinner--md": "_purpur-spinner--md_1xozj_16",
"purpur-spinner--lg": "_purpur-spinner--lg_1xozj_20",
"purpur-spinner__circle": "_purpur-spinner__circle_1xozj_24",
dash: j,
"purpur-spinner__circle--disabled": "_purpur-spinner__circle--disabled_1xozj_33",
"purpur-spinner__circle--negative": "_purpur-spinner__circle--negative_1xozj_36"
}, i = "purpur-spinner", f = {
XXS: "xxs",

@@ -69,20 +63,21 @@ XS: "xs",

LG: "lg"
}, N = Object.values(f), y = ({
["data-testid"]: s,
size: u = f.SM,
variant: n = d.PRIMARY,
..._
}) => /* @__PURE__ */ c(
}, S = Object.values(f), z = ({
["data-testid"]: n,
disabled: o = !1,
negative: s = !1,
size: c = f.SM,
...u
}) => /* @__PURE__ */ _(
"div",
{
className: o([p[i], p[`${i}--${u}`]]),
"data-testid": s,
..._,
children: /* @__PURE__ */ c("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ c(
className: a([p[i], p[`${i}--${c}`]]),
"data-testid": n,
...u,
children: /* @__PURE__ */ _("svg", { viewBox: "0 0 50 50", children: /* @__PURE__ */ _(
"circle",
{
className: o(
p[`${i}__circle`],
p[`${i}__circle--${n}`]
),
className: a(p[`${i}__circle`], {
[p[`${i}__circle--disabled`]]: o,
[p[`${i}__circle--negative`]]: s
}),
cx: "25",

@@ -97,7 +92,5 @@ cy: "25",

f as SPINNER_SIZE,
d as SPINNER_VARIANT,
y as Spinner,
N as spinnerSizes,
b as spinnerVariants
z as Spinner,
S as spinnerSizes
};
//# sourceMappingURL=spinner.es.js.map
{
"name": "@purpurds/spinner",
"version": "4.6.0",
"version": "5.0.0",
"license": "AGPL-3.0-only",

@@ -18,3 +18,3 @@ "main": "./dist/spinner.cjs.js",

"classnames": "~2.5.0",
"@purpurds/tokens": "4.6.0"
"@purpurds/tokens": "5.0.0"
},

@@ -21,0 +21,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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