@mekari/pixel3-utils 0.0.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.
Files changed (48) hide show
  1. package/dist/array.d.mts +9 -0
  2. package/dist/array.d.ts +9 -0
  3. package/dist/array.js +39 -0
  4. package/dist/array.mjs +7 -0
  5. package/dist/chunk-2UGMOMBN.mjs +43 -0
  6. package/dist/chunk-555RL46T.mjs +18 -0
  7. package/dist/chunk-65WDFMBW.mjs +71 -0
  8. package/dist/chunk-HXLTBFWE.mjs +16 -0
  9. package/dist/chunk-PLTSXP5P.mjs +35 -0
  10. package/dist/chunk-QZ7VFGWC.mjs +6 -0
  11. package/dist/chunk-TJIIVYQV.mjs +31 -0
  12. package/dist/chunk-VSOR555U.mjs +31 -0
  13. package/dist/chunk-WBQAMGXK.mjs +0 -0
  14. package/dist/context.d.mts +4 -0
  15. package/dist/context.d.ts +4 -0
  16. package/dist/context.js +37 -0
  17. package/dist/context.mjs +7 -0
  18. package/dist/dom.d.mts +14 -0
  19. package/dist/dom.d.ts +14 -0
  20. package/dist/dom.js +53 -0
  21. package/dist/dom.mjs +9 -0
  22. package/dist/generators.d.mts +7 -0
  23. package/dist/generators.d.ts +7 -0
  24. package/dist/generators.js +54 -0
  25. package/dist/generators.mjs +11 -0
  26. package/dist/index.d.mts +10 -0
  27. package/dist/index.d.ts +10 -0
  28. package/dist/index.js +263 -0
  29. package/dist/index.mjs +58 -0
  30. package/dist/metafile-cjs.json +1 -0
  31. package/dist/metafile-esm.json +1 -0
  32. package/dist/object.d.mts +15 -0
  33. package/dist/object.d.ts +15 -0
  34. package/dist/object.js +59 -0
  35. package/dist/object.mjs +13 -0
  36. package/dist/performance.d.mts +3 -0
  37. package/dist/performance.d.ts +3 -0
  38. package/dist/performance.js +92 -0
  39. package/dist/performance.mjs +7 -0
  40. package/dist/types.d.mts +17 -0
  41. package/dist/types.d.ts +17 -0
  42. package/dist/types.js +18 -0
  43. package/dist/types.mjs +1 -0
  44. package/dist/validators.d.mts +15 -0
  45. package/dist/validators.d.ts +15 -0
  46. package/dist/validators.js +66 -0
  47. package/dist/validators.mjs +11 -0
  48. package/package.json +42 -0
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
+
21
+ // src/validators.ts
22
+ var validators_exports = {};
23
+ __export(validators_exports, {
24
+ isDef: () => isDef,
25
+ isEqual: () => isEqual,
26
+ isUndef: () => isUndef
27
+ });
28
+ module.exports = __toCommonJS(validators_exports);
29
+ function isUndef(v) {
30
+ return v === void 0 || v === null;
31
+ }
32
+ __name(isUndef, "isUndef");
33
+ function isDef(v) {
34
+ return v !== void 0 && v !== null;
35
+ }
36
+ __name(isDef, "isDef");
37
+ var isEqual = /* @__PURE__ */ __name((x, y) => {
38
+ if (Object.is(x, y))
39
+ return true;
40
+ if (x instanceof Date && y instanceof Date) {
41
+ return x.getTime() === y.getTime();
42
+ }
43
+ if (x instanceof RegExp && y instanceof RegExp) {
44
+ return x.toString() === y.toString();
45
+ }
46
+ if (typeof x !== "object" || x === null || typeof y !== "object" || y === null) {
47
+ return false;
48
+ }
49
+ const keysX = Reflect.ownKeys(x);
50
+ const keysY = Reflect.ownKeys(y);
51
+ if (keysX.length !== keysY.length)
52
+ return false;
53
+ for (let i = 0; i < keysX.length; i++) {
54
+ if (!Reflect.has(y, keysX[i]))
55
+ return false;
56
+ if (!isEqual(x[keysX[i]], y[keysX[i]]))
57
+ return false;
58
+ }
59
+ return true;
60
+ }, "isEqual");
61
+ // Annotate the CommonJS export names for ESM import in node:
62
+ 0 && (module.exports = {
63
+ isDef,
64
+ isEqual,
65
+ isUndef
66
+ });
@@ -0,0 +1,11 @@
1
+ import {
2
+ isDef,
3
+ isEqual,
4
+ isUndef
5
+ } from "./chunk-2UGMOMBN.mjs";
6
+ import "./chunk-QZ7VFGWC.mjs";
7
+ export {
8
+ isDef,
9
+ isEqual,
10
+ isUndef
11
+ };
package/package.json ADDED
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@mekari/pixel3-utils",
3
+ "description": "Utils for mekari pixel 3",
4
+ "version": "0.0.0",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "main": "dist/index.js",
9
+ "dependencies": {
10
+ "@pandacss/dev": "0.15.4",
11
+ "@vueuse/core": "10.6.1",
12
+ "focus-trap": "^7.5.4"
13
+ },
14
+ "peerDependencies": {
15
+ "vue": "^3.3.7"
16
+ },
17
+ "publishConfig": {
18
+ "access": "public"
19
+ },
20
+ "devDependencies": {
21
+ "vue": "^3.3.7"
22
+ },
23
+ "module": "dist/index.mjs",
24
+ "types": "dist/index.d.ts",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "require": "./dist/index.js",
29
+ "default": "./dist/index.mjs"
30
+ }
31
+ },
32
+ "scripts": {
33
+ "clean": "rimraf dist .turbo",
34
+ "build": "tsup && pnpm build:types",
35
+ "build:fast": "tsup",
36
+ "types:check": "tsc --noEmit",
37
+ "replace-config": "clean-package",
38
+ "backup-config": "clean-package restore",
39
+ "build:types": "tsup src --dts-only",
40
+ "restore-config": "clean-package restore"
41
+ }
42
+ }