@radix-solid-js/number 0.1.0

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.cjs ADDED
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ // src/number.ts
4
+ function clamp(value, [min, max]) {
5
+ return Math.min(max, Math.max(min, value));
6
+ }
7
+
8
+ exports.clamp = clamp;
9
+ //# sourceMappingURL=index.cjs.map
10
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/number.ts"],"names":[],"mappings":";;;AAAA,SAAS,KAAA,CAAM,KAAA,EAAe,CAAC,GAAA,EAAK,GAAG,CAAA,EAA6B;AAClE,EAAA,OAAO,KAAK,GAAA,CAAI,GAAA,EAAK,KAAK,GAAA,CAAI,GAAA,EAAK,KAAK,CAAC,CAAA;AAC3C","file":"index.cjs","sourcesContent":["function clamp(value: number, [min, max]: [number, number]): number {\n return Math.min(max, Math.max(min, value));\n}\n\nexport { clamp };\n"]}
@@ -0,0 +1,3 @@
1
+ declare function clamp(value: number, [min, max]: [number, number]): number;
2
+
3
+ export { clamp };
@@ -0,0 +1,3 @@
1
+ declare function clamp(value: number, [min, max]: [number, number]): number;
2
+
3
+ export { clamp };
package/dist/index.js ADDED
@@ -0,0 +1,8 @@
1
+ // src/number.ts
2
+ function clamp(value, [min, max]) {
3
+ return Math.min(max, Math.max(min, value));
4
+ }
5
+
6
+ export { clamp };
7
+ //# sourceMappingURL=index.js.map
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/number.ts"],"names":[],"mappings":";AAAA,SAAS,KAAA,CAAM,KAAA,EAAe,CAAC,GAAA,EAAK,GAAG,CAAA,EAA6B;AAClE,EAAA,OAAO,KAAK,GAAA,CAAI,GAAA,EAAK,KAAK,GAAA,CAAI,GAAA,EAAK,KAAK,CAAC,CAAA;AAC3C","file":"index.js","sourcesContent":["function clamp(value: number, [min, max]: [number, number]): number {\n return Math.min(max, Math.max(min, value));\n}\n\nexport { clamp };\n"]}
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "@radix-solid-js/number",
3
+ "version": "0.1.0",
4
+ "license": "MIT",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ }
20
+ },
21
+ "files": [
22
+ "dist"
23
+ ],
24
+ "sideEffects": false,
25
+ "scripts": {
26
+ "build": "tsup",
27
+ "clean": "rm -rf dist",
28
+ "typecheck": "tsc --noEmit"
29
+ },
30
+ "devDependencies": {
31
+ "@repo/tsconfig": "workspace:*",
32
+ "tsup": "^8.3.6",
33
+ "typescript": "^5.7.3"
34
+ },
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/ljho01/shadcn-solid-js.git",
41
+ "directory": "packages/core/number"
42
+ }
43
+ }