@zag-js/numeric-range
Advanced tools
Comparing version 0.70.0 to 0.71.0
@@ -1,44 +0,4 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod2) => __copyProps(__defProp({}, "__esModule", { value: true }), mod2); | ||
'use strict'; | ||
// src/index.ts | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
clampValue: () => clampValue, | ||
getClosestValueIndex: () => getClosestValueIndex, | ||
getMaxValueAtIndex: () => getMaxValueAtIndex, | ||
getMinValueAtIndex: () => getMinValueAtIndex, | ||
getNextStepValue: () => getNextStepValue, | ||
getPercentValue: () => getPercentValue, | ||
getPreviousStepValue: () => getPreviousStepValue, | ||
getRoundedValue: () => getRoundedValue, | ||
getValuePercent: () => getValuePercent, | ||
getValueRanges: () => getValueRanges, | ||
getValueSetterAtIndex: () => getValueSetterAtIndex, | ||
getValueTransformer: () => getValueTransformer, | ||
isValueAtMax: () => isValueAtMax, | ||
isValueAtMin: () => isValueAtMin, | ||
isValueWithinRange: () => isValueWithinRange, | ||
mod: () => mod, | ||
roundToStepPrecision: () => roundToStepPrecision, | ||
snapValueToStep: () => snapValueToStep, | ||
toFixedNumber: () => toFixedNumber | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
function getMinValueAtIndex(index, values, minValue) { | ||
@@ -165,24 +125,21 @@ return index === 0 ? minValue : values[index - 1]; | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
clampValue, | ||
getClosestValueIndex, | ||
getMaxValueAtIndex, | ||
getMinValueAtIndex, | ||
getNextStepValue, | ||
getPercentValue, | ||
getPreviousStepValue, | ||
getRoundedValue, | ||
getValuePercent, | ||
getValueRanges, | ||
getValueSetterAtIndex, | ||
getValueTransformer, | ||
isValueAtMax, | ||
isValueAtMin, | ||
isValueWithinRange, | ||
mod, | ||
roundToStepPrecision, | ||
snapValueToStep, | ||
toFixedNumber | ||
}); | ||
//# sourceMappingURL=index.js.map | ||
exports.clampValue = clampValue; | ||
exports.getClosestValueIndex = getClosestValueIndex; | ||
exports.getMaxValueAtIndex = getMaxValueAtIndex; | ||
exports.getMinValueAtIndex = getMinValueAtIndex; | ||
exports.getNextStepValue = getNextStepValue; | ||
exports.getPercentValue = getPercentValue; | ||
exports.getPreviousStepValue = getPreviousStepValue; | ||
exports.getRoundedValue = getRoundedValue; | ||
exports.getValuePercent = getValuePercent; | ||
exports.getValueRanges = getValueRanges; | ||
exports.getValueSetterAtIndex = getValueSetterAtIndex; | ||
exports.getValueTransformer = getValueTransformer; | ||
exports.isValueAtMax = isValueAtMax; | ||
exports.isValueAtMin = isValueAtMin; | ||
exports.isValueWithinRange = isValueWithinRange; | ||
exports.mod = mod; | ||
exports.roundToStepPrecision = roundToStepPrecision; | ||
exports.snapValueToStep = snapValueToStep; | ||
exports.toFixedNumber = toFixedNumber; |
{ | ||
"name": "@zag-js/numeric-range", | ||
"version": "0.70.0", | ||
"version": "0.71.0", | ||
"description": "Numeric range utilities", | ||
@@ -17,4 +17,3 @@ "keywords": [ | ||
"files": [ | ||
"dist", | ||
"src" | ||
"dist" | ||
], | ||
@@ -21,0 +20,0 @@ "publishConfig": { |
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
17220
7
297