@launchpad-ui/progress
Advanced tools
Comparing version 0.5.52 to 0.5.53
@@ -60,43 +60,46 @@ import './style.css'; | ||
const circumference = 2 * Math.PI * radius; | ||
const indicator = /* @__PURE__ */ jsxs( | ||
"svg", | ||
{ | ||
className: cx( | ||
styles.Progress, | ||
isIndeterminate && styles["Progress--indeterminate"], | ||
className | ||
), | ||
width: diameter, | ||
height: diameter, | ||
viewBox: `0 0 ${diameter} ${diameter}`, | ||
"data-test-id": testId, | ||
role: "progressbar", | ||
"aria-valuemin": 0, | ||
"aria-valuetext": "loading", | ||
"aria-valuemax": 100, | ||
children: [ | ||
/* @__PURE__ */ jsx( | ||
"circle", | ||
{ | ||
className: styles["Progress-track"], | ||
cx: diameter / 2, | ||
cy: diameter / 2, | ||
r: radius, | ||
strokeWidth | ||
} | ||
const indicator = ( | ||
// biome-ignore lint/a11y/useFocusableInteractive: <explanation> | ||
/* @__PURE__ */ jsxs( | ||
"svg", | ||
{ | ||
className: cx( | ||
styles.Progress, | ||
isIndeterminate && styles["Progress--indeterminate"], | ||
className | ||
), | ||
/* @__PURE__ */ jsx( | ||
"circle", | ||
{ | ||
className: styles["Progress-head"], | ||
cx: diameter / 2, | ||
cy: diameter / 2, | ||
r: radius, | ||
strokeWidth, | ||
strokeDasharray: circumference, | ||
strokeDashoffset: circumference * (1 - (value === void 0 || value === null ? 0.25 : clamp(value, 0, 1))) | ||
} | ||
) | ||
] | ||
} | ||
width: diameter, | ||
height: diameter, | ||
viewBox: `0 0 ${diameter} ${diameter}`, | ||
"data-test-id": testId, | ||
role: "progressbar", | ||
"aria-valuemin": 0, | ||
"aria-valuetext": "loading", | ||
"aria-valuemax": 100, | ||
children: [ | ||
/* @__PURE__ */ jsx( | ||
"circle", | ||
{ | ||
className: styles["Progress-track"], | ||
cx: diameter / 2, | ||
cy: diameter / 2, | ||
r: radius, | ||
strokeWidth | ||
} | ||
), | ||
/* @__PURE__ */ jsx( | ||
"circle", | ||
{ | ||
className: styles["Progress-head"], | ||
cx: diameter / 2, | ||
cy: diameter / 2, | ||
r: radius, | ||
strokeWidth, | ||
strokeDasharray: circumference, | ||
strokeDashoffset: circumference * (1 - (value === void 0 || value === null ? 0.25 : clamp(value, 0, 1))) | ||
} | ||
) | ||
] | ||
} | ||
) | ||
); | ||
@@ -103,0 +106,0 @@ return delayMs ? /* @__PURE__ */ jsx(DelayedIndicator, { delayMs, children: indicator }) : indicator; |
@@ -62,43 +62,46 @@ require('./style.css'); | ||
const circumference = 2 * Math.PI * radius; | ||
const indicator = /* @__PURE__ */ jsxRuntime.jsxs( | ||
"svg", | ||
{ | ||
className: classix.cx( | ||
styles.Progress, | ||
isIndeterminate && styles["Progress--indeterminate"], | ||
className | ||
), | ||
width: diameter, | ||
height: diameter, | ||
viewBox: `0 0 ${diameter} ${diameter}`, | ||
"data-test-id": testId, | ||
role: "progressbar", | ||
"aria-valuemin": 0, | ||
"aria-valuetext": "loading", | ||
"aria-valuemax": 100, | ||
children: [ | ||
/* @__PURE__ */ jsxRuntime.jsx( | ||
"circle", | ||
{ | ||
className: styles["Progress-track"], | ||
cx: diameter / 2, | ||
cy: diameter / 2, | ||
r: radius, | ||
strokeWidth | ||
} | ||
const indicator = ( | ||
// biome-ignore lint/a11y/useFocusableInteractive: <explanation> | ||
/* @__PURE__ */ jsxRuntime.jsxs( | ||
"svg", | ||
{ | ||
className: classix.cx( | ||
styles.Progress, | ||
isIndeterminate && styles["Progress--indeterminate"], | ||
className | ||
), | ||
/* @__PURE__ */ jsxRuntime.jsx( | ||
"circle", | ||
{ | ||
className: styles["Progress-head"], | ||
cx: diameter / 2, | ||
cy: diameter / 2, | ||
r: radius, | ||
strokeWidth, | ||
strokeDasharray: circumference, | ||
strokeDashoffset: circumference * (1 - (value === void 0 || value === null ? 0.25 : clamp(value, 0, 1))) | ||
} | ||
) | ||
] | ||
} | ||
width: diameter, | ||
height: diameter, | ||
viewBox: `0 0 ${diameter} ${diameter}`, | ||
"data-test-id": testId, | ||
role: "progressbar", | ||
"aria-valuemin": 0, | ||
"aria-valuetext": "loading", | ||
"aria-valuemax": 100, | ||
children: [ | ||
/* @__PURE__ */ jsxRuntime.jsx( | ||
"circle", | ||
{ | ||
className: styles["Progress-track"], | ||
cx: diameter / 2, | ||
cy: diameter / 2, | ||
r: radius, | ||
strokeWidth | ||
} | ||
), | ||
/* @__PURE__ */ jsxRuntime.jsx( | ||
"circle", | ||
{ | ||
className: styles["Progress-head"], | ||
cx: diameter / 2, | ||
cy: diameter / 2, | ||
r: radius, | ||
strokeWidth, | ||
strokeDasharray: circumference, | ||
strokeDashoffset: circumference * (1 - (value === void 0 || value === null ? 0.25 : clamp(value, 0, 1))) | ||
} | ||
) | ||
] | ||
} | ||
) | ||
); | ||
@@ -105,0 +108,0 @@ return delayMs ? /* @__PURE__ */ jsxRuntime.jsx(DelayedIndicator, { delayMs, children: indicator }) : indicator; |
{ | ||
"name": "@launchpad-ui/progress", | ||
"version": "0.5.52", | ||
"version": "0.5.53", | ||
"status": "beta", | ||
@@ -35,3 +35,3 @@ "publishConfig": { | ||
"classix": "2.1.17", | ||
"@launchpad-ui/tokens": "~0.11.3" | ||
"@launchpad-ui/tokens": "~0.11.4" | ||
}, | ||
@@ -49,5 +49,4 @@ "peerDependencies": { | ||
"clean": "rm -rf dist", | ||
"lint": "stylelint '**/*.css' --ignore-path ../../.stylelintignore", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22742
253
Updated@launchpad-ui/tokens@~0.11.4