@rslsp1/fa-app-tools 0.1.0 → 0.1.1
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.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +22 -0
- package/dist/index.mjs +20 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
|
|
3
4
|
declare function useOnClickOutside(ref: RefObject<HTMLElement | null>, handler: (e: MouseEvent | TouchEvent) => void): void;
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
declare function FaToolsBadge(): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { FaToolsBadge, useOnClickOutside };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
|
|
3
4
|
declare function useOnClickOutside(ref: RefObject<HTMLElement | null>, handler: (e: MouseEvent | TouchEvent) => void): void;
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
declare function FaToolsBadge(): react_jsx_runtime.JSX.Element;
|
|
7
|
+
|
|
8
|
+
export { FaToolsBadge, useOnClickOutside };
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -19,6 +20,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
19
20
|
// src/index.ts
|
|
20
21
|
var index_exports = {};
|
|
21
22
|
__export(index_exports, {
|
|
23
|
+
FaToolsBadge: () => FaToolsBadge,
|
|
22
24
|
useOnClickOutside: () => useOnClickOutside
|
|
23
25
|
});
|
|
24
26
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -39,7 +41,27 @@ function useOnClickOutside(ref, handler) {
|
|
|
39
41
|
};
|
|
40
42
|
}, [ref, handler]);
|
|
41
43
|
}
|
|
44
|
+
|
|
45
|
+
// src/components/Badge.tsx
|
|
46
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
47
|
+
function FaToolsBadge() {
|
|
48
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { style: {
|
|
49
|
+
position: "fixed",
|
|
50
|
+
bottom: 12,
|
|
51
|
+
right: 12,
|
|
52
|
+
background: "rgba(255,255,255,0.08)",
|
|
53
|
+
border: "1px solid rgba(255,255,255,0.15)",
|
|
54
|
+
borderRadius: 8,
|
|
55
|
+
padding: "4px 10px",
|
|
56
|
+
fontSize: 10,
|
|
57
|
+
color: "rgba(255,255,255,0.4)",
|
|
58
|
+
fontFamily: "monospace",
|
|
59
|
+
zIndex: 9999,
|
|
60
|
+
pointerEvents: "none"
|
|
61
|
+
}, children: "fa-app-tools v0.1.1" });
|
|
62
|
+
}
|
|
42
63
|
// Annotate the CommonJS export names for ESM import in node:
|
|
43
64
|
0 && (module.exports = {
|
|
65
|
+
FaToolsBadge,
|
|
44
66
|
useOnClickOutside
|
|
45
67
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -14,6 +14,26 @@ function useOnClickOutside(ref, handler) {
|
|
|
14
14
|
};
|
|
15
15
|
}, [ref, handler]);
|
|
16
16
|
}
|
|
17
|
+
|
|
18
|
+
// src/components/Badge.tsx
|
|
19
|
+
import { jsx } from "react/jsx-runtime";
|
|
20
|
+
function FaToolsBadge() {
|
|
21
|
+
return /* @__PURE__ */ jsx("div", { style: {
|
|
22
|
+
position: "fixed",
|
|
23
|
+
bottom: 12,
|
|
24
|
+
right: 12,
|
|
25
|
+
background: "rgba(255,255,255,0.08)",
|
|
26
|
+
border: "1px solid rgba(255,255,255,0.15)",
|
|
27
|
+
borderRadius: 8,
|
|
28
|
+
padding: "4px 10px",
|
|
29
|
+
fontSize: 10,
|
|
30
|
+
color: "rgba(255,255,255,0.4)",
|
|
31
|
+
fontFamily: "monospace",
|
|
32
|
+
zIndex: 9999,
|
|
33
|
+
pointerEvents: "none"
|
|
34
|
+
}, children: "fa-app-tools v0.1.1" });
|
|
35
|
+
}
|
|
17
36
|
export {
|
|
37
|
+
FaToolsBadge,
|
|
18
38
|
useOnClickOutside
|
|
19
39
|
};
|