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

@launchpad-ui/progress

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@launchpad-ui/progress - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

dist/index.es.js

@@ -43,3 +43,2 @@ // ../../scripts/react-shim.js

import cx from "clsx";
import { clamp } from "lodash-es";
import "./styles/Progress.css";

@@ -52,2 +51,3 @@ var ProgressSize = /* @__PURE__ */ ((ProgressSize2) => {

})(ProgressSize || {});
var clamp = (number, lower, upper) => upper ? Math.min(Math.max(number, lower), upper) : Math.min(number, lower);
var Progress = ({ value, size = "small" /* Small */, className, delayMs = 0 }) => {

@@ -54,0 +54,0 @@ const dimensions = {

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

"use strict";
var __create = Object.create;

@@ -74,3 +75,2 @@ var __defProp = Object.defineProperty;

var import_clsx = __toESM(require("clsx"));
var import_lodash_es = require("lodash-es");
var import_Progress = require("./styles/Progress.css");

@@ -83,2 +83,3 @@ var ProgressSize = /* @__PURE__ */ ((ProgressSize2) => {

})(ProgressSize || {});
var clamp = (number, lower, upper) => upper ? Math.min(Math.max(number, lower), upper) : Math.min(number, lower);
var Progress = ({ value, size = "small" /* Small */, className, delayMs = 0 }) => {

@@ -124,3 +125,3 @@ const dimensions = {

strokeDasharray: circumference,
strokeDashoffset: circumference * (1 - (value === void 0 || value === null ? 0.25 : (0, import_lodash_es.clamp)(value, 0, 1)))
strokeDashoffset: circumference * (1 - (value === void 0 || value === null ? 0.25 : clamp(value, 0, 1)))
}));

@@ -127,0 +128,0 @@ return delayMs ? /* @__PURE__ */ React.createElement(DelayedIndicator, {

{
"name": "@launchpad-ui/progress",
"version": "0.2.1",
"version": "0.2.2",
"status": "beta",
"publishConfig": {

@@ -29,4 +30,3 @@ "access": "public"

"@launchpad-ui/tokens": "~0.1.5",
"clsx": "^1.1.1",
"lodash-es": "^4.17.21"
"clsx": "^1.2.0"
},

@@ -38,3 +38,2 @@ "peerDependencies": {

"devDependencies": {
"@types/lodash-es": "^4.17.6",
"react": "^18.2.0",

@@ -44,5 +43,5 @@ "react-dom": "^18.2.0"

"scripts": {
"build": "tsc --project tsconfig.build.json && node build.js",
"build": "tsc --project tsconfig.build.json && node ../../scripts/build.js",
"clean": "rm -rf dist",
"e2e": "exit 0",
"e2e": "playwright test --config=../../playwright.config.ct.ts",
"lint": "eslint '**/*.{ts,tsx,js}' && stylelint '**/*.css' --ignore-path ../../.stylelintignore",

@@ -49,0 +48,0 @@ "test": "vitest run --coverage"

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