foxact 0.2.36 → 0.2.37
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/package.json +10 -10
- package/rem/index.cjs +1 -1
- package/rem/index.d.ts +5 -4
- package/rem/index.js +1 -1
- package/rem/index.mjs +1 -1
- package/sizes.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "foxact",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.37",
|
|
4
4
|
"description": "React Hooks/Utils done right. For browser, SSR, and React Server Components.",
|
|
5
5
|
"homepage": "https://foxact.skk.moe",
|
|
6
6
|
"repository": {
|
|
@@ -186,6 +186,15 @@
|
|
|
186
186
|
"require": "./types/index.cjs",
|
|
187
187
|
"default": "./types/index.js"
|
|
188
188
|
},
|
|
189
|
+
"./typescript-happy-forward-ref": {
|
|
190
|
+
"types": "./typescript-happy-forward-ref/index.d.ts",
|
|
191
|
+
"import": {
|
|
192
|
+
"types": "./typescript-happy-forward-ref/index.d.ts",
|
|
193
|
+
"default": "./typescript-happy-forward-ref/index.mjs"
|
|
194
|
+
},
|
|
195
|
+
"require": "./typescript-happy-forward-ref/index.cjs",
|
|
196
|
+
"default": "./typescript-happy-forward-ref/index.js"
|
|
197
|
+
},
|
|
189
198
|
"./use": {
|
|
190
199
|
"types": "./use/index.d.ts",
|
|
191
200
|
"import": {
|
|
@@ -213,15 +222,6 @@
|
|
|
213
222
|
"require": "./use-array/index.cjs",
|
|
214
223
|
"default": "./use-array/index.js"
|
|
215
224
|
},
|
|
216
|
-
"./typescript-happy-forward-ref": {
|
|
217
|
-
"types": "./typescript-happy-forward-ref/index.d.ts",
|
|
218
|
-
"import": {
|
|
219
|
-
"types": "./typescript-happy-forward-ref/index.d.ts",
|
|
220
|
-
"default": "./typescript-happy-forward-ref/index.mjs"
|
|
221
|
-
},
|
|
222
|
-
"require": "./typescript-happy-forward-ref/index.cjs",
|
|
223
|
-
"default": "./typescript-happy-forward-ref/index.js"
|
|
224
|
-
},
|
|
225
225
|
"./use-clipboard": {
|
|
226
226
|
"types": "./use-clipboard/index.d.ts",
|
|
227
227
|
"import": {
|
package/rem/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e="16px",n=function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r&&r!==e?"calc(".concat(n," * ").concat(r,")"):n};function r(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16;return function c(i){if(Array.isArray(i))return i.map(c).join(" ");if(0===i||"0"===i)return"0";if("number"==typeof i)return n("".concat(i/t).concat(e),r);if(i.includes("calc(")||i.includes("var(")||i.includes("clamp("))return i;if(i.includes(" "))return i.split(" ").map(c).join(" ");if(i.includes(e))return n(i,r);const o=Number(i.replace("px",""));return o==o?n("".concat(o/t).concat(e),r):i}}const t=r("rem",e,16),c=r("rem","var(--mantine-scale)",16),i=r("em",e,16);exports.createConverter=r,exports.em=i,exports.mantine_rem=c,exports.rem=t;
|
package/rem/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
declare
|
|
2
|
-
declare const
|
|
3
|
-
declare const
|
|
1
|
+
declare function createConverter(units: string, shouldScaleTo?: '16px' | (string & {}) | null, htmlFontSize?: number): (this: void, value: number | string | number[]) => string;
|
|
2
|
+
declare const rem: (this: void, value: number | string | number[]) => string;
|
|
3
|
+
declare const mantine_rem: (this: void, value: number | string | number[]) => string;
|
|
4
|
+
declare const em: (this: void, value: number | string | number[]) => string;
|
|
4
5
|
|
|
5
|
-
export { em, mantine_rem, rem };
|
|
6
|
+
export { createConverter, em, mantine_rem, rem };
|
package/rem/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const e="16px",n=function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r&&r!==e?"calc(".concat(n," * ").concat(r,")"):n};function r(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16;return function c(i){if(Array.isArray(i))return i.map(c).join(" ");if(0===i||"0"===i)return"0";if("number"==typeof i)return n("".concat(i/t).concat(e),r);if(i.includes("calc(")||i.includes("var(")||i.includes("clamp("))return i;if(i.includes(" "))return i.split(" ").map(c).join(" ");if(i.includes(e))return n(i,r);const o=Number(i.replace("px",""));return o==o?n("".concat(o/t).concat(e),r):i}}const t=r("rem",e,16),c=r("rem","var(--mantine-scale)",16),i=r("em",e,16);exports.createConverter=r,exports.em=i,exports.mantine_rem=c,exports.rem=t;
|
package/rem/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const n="16px"
|
|
1
|
+
const n="16px",e=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return r&&r!==n?"calc(".concat(e," * ").concat(r,")"):e};function r(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16;return function c(i){if(Array.isArray(i))return i.map(c).join(" ");if(0===i||"0"===i)return"0";if("number"==typeof i)return e("".concat(i/t).concat(n),r);if(i.includes("calc(")||i.includes("var(")||i.includes("clamp("))return i;if(i.includes(" "))return i.split(" ").map(c).join(" ");if(i.includes(n))return e(i,r);const u=Number(i.replace("px",""));return u==u?e("".concat(u/t).concat(n),r):i}}const t=r("rem",n,16),c=r("rem","var(--mantine-scale)",16),i=r("em",n,16);export{r as createConverter,i as em,c as mantine_rem,t as rem};
|
package/sizes.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"total":{"raw":
|
|
1
|
+
{"total":{"raw":18655,"gzip":11350,"br":0},"exports":{"compose-context-provider":{"raw":177,"gzip":155,"br":122},"create-context-state":{"raw":145,"gzip":116,"br":96},"context-state":{"raw":377,"gzip":241,"br":207},"create-fixed-array":{"raw":419,"gzip":279,"br":251},"invariant":{"raw":178,"gzip":156,"br":118},"noop":{"raw":33,"gzip":53,"br":37},"current-year":{"raw":592,"gzip":400,"br":326},"no-ssr":{"raw":468,"gzip":318,"br":266},"nullthrow":{"raw":194,"gzip":167,"br":128},"types":{"raw":0,"gzip":20,"br":1},"create-storage-hook":{"raw":2061,"gzip":880,"br":762},"typescript-happy-forward-ref":{"raw":119,"gzip":103,"br":80},"request-idle-callback":{"raw":410,"gzip":229,"br":175},"use":{"raw":276,"gzip":182,"br":150},"rem":{"raw":824,"gzip":396,"br":352},"use-abortable-effect":{"raw":210,"gzip":166,"br":150},"use-array":{"raw":329,"gzip":238,"br":199},"use-composition-input":{"raw":458,"gzip":283,"br":241},"use-debounced-state":{"raw":401,"gzip":280,"br":242},"use-clipboard":{"raw":1067,"gzip":611,"br":524},"use-debounced-value":{"raw":470,"gzip":309,"br":252},"use-error-boundary":{"raw":244,"gzip":196,"br":159},"use-isomorphic-layout-effect":{"raw":178,"gzip":142,"br":113},"use-is-client":{"raw":151,"gzip":142,"br":118},"use-map":{"raw":346,"gzip":244,"br":210},"use-local-storage":{"raw":310,"gzip":184,"br":157},"use-media-query":{"raw":718,"gzip":402,"br":334},"use-intersection":{"raw":1230,"gzip":649,"br":597},"use-next-pathname":{"raw":321,"gzip":236,"br":199},"use-react-router-enable-concurrent-navigation":{"raw":960,"gzip":470,"br":387},"use-next-link":{"raw":1600,"gzip":851,"br":730},"use-retimer":{"raw":200,"gzip":165,"br":123},"use-react-router-is-match":{"raw":564,"gzip":373,"br":314},"use-session-storage":{"raw":316,"gzip":181,"br":152},"use-singleton":{"raw":138,"gzip":129,"br":109},"use-set":{"raw":347,"gzip":240,"br":203},"use-stable-handler-only-when-you-know-what-you-are-doing-or-you-will-be-fired":{"raw":459,"gzip":325,"br":254},"use-uncontrolled":{"raw":296,"gzip":227,"br":193},"use-url-hash-state":{"raw":1069,"gzip":612,"br":534}}}
|