@radix-ui/number 0.1.0 → 0.1.1-rc.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/index.module.js +8 -1
- package/dist/index.module.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AAAA,sBAAe,KAAK,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAElE","sources":["
|
|
1
|
+
{"mappings":"AAAA,sBAAe,KAAK,EAAE,MAAM,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAElE","sources":["packages/core/number/src/packages/core/number/src/number.ts","packages/core/number/src/packages/core/number/src/index.ts","packages/core/number/src/index.ts"],"sourcesContent":[null,null,"export { clamp } from './number';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
function $parcel$export(e, n, v, s) {
|
|
2
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
$parcel$export(module.exports, "clamp", () => $8e747672ba00eedb$export$7d15b64cf5a3a4c4);
|
|
6
|
+
function $8e747672ba00eedb$export$7d15b64cf5a3a4c4(value, [min, max]) {
|
|
7
|
+
return Math.min(max, Math.max(min, value));
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
2
13
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":";;;;;ACAA,SAASA,yCAAT,CAAeC,KAAf,EAA8B,CAACC,GAAD,EAAMC,GAAN,CAA9B,EAAoE;IAClE,OAAOC,IAAI,CAACF,GAAL,CAASC,GAAT,EAAcC,IAAI,CAACD,GAAL,CAASD,GAAT,EAAcD,KAAd,CAAd,CAAP,CAAA;CACD;;ADFD","sources":["packages/core/number/src/index.ts","packages/core/number/src/number.ts"],"sourcesContent":["export { clamp } from './number';\n","function clamp(value: number, [min, max]: [number, number]): number {\n return Math.min(max, Math.max(min, value));\n}\n\nexport { clamp };\n"],"names":["clamp","value","min","max","Math"],"version":3,"file":"index.js.map"}
|
package/dist/index.module.js
CHANGED
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
function $ae6933e535247d3d$export$7d15b64cf5a3a4c4(value, [min, max]) {
|
|
2
|
+
return Math.min(max, Math.max(min, value));
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
export {$ae6933e535247d3d$export$7d15b64cf5a3a4c4 as clamp};
|
|
2
9
|
//# sourceMappingURL=index.module.js.map
|
package/dist/index.module.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"
|
|
1
|
+
{"mappings":"ACAA,SAASA,yCAAT,CAAeC,KAAf,EAA8B,CAACC,GAAD,EAAMC,GAAN,CAA9B,EAAoE;IAClE,OAAOC,IAAI,CAACF,GAAL,CAASC,GAAT,EAAcC,IAAI,CAACD,GAAL,CAASD,GAAT,EAAcD,KAAd,CAAd,CAAP,CAAA;CACD;;ADFD","sources":["packages/core/number/src/index.ts","packages/core/number/src/number.ts"],"sourcesContent":["export { clamp } from './number';\n","function clamp(value: number, [min, max]: [number, number]): number {\n return Math.min(max, Math.max(min, value));\n}\n\nexport { clamp };\n"],"names":["clamp","value","min","max","Math"],"version":3,"file":"index.module.js.map"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@radix-ui/number",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1-rc.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"source": "src/index.ts",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,5 +25,6 @@
|
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10"
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
|
+
"stableVersion": "0.1.0"
|
|
29
30
|
}
|