@thoughthub/hq 1.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.
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare const CraftingCredit: () => react_jsx_runtime.JSX.Element;
4
+
5
+ declare const THOUGHTHUB: {
6
+ name: string;
7
+ website: string;
8
+ };
9
+ declare const VERSION = "1.0.0";
10
+
11
+ export { CraftingCredit, THOUGHTHUB, VERSION };
@@ -0,0 +1,11 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+
3
+ declare const CraftingCredit: () => react_jsx_runtime.JSX.Element;
4
+
5
+ declare const THOUGHTHUB: {
6
+ name: string;
7
+ website: string;
8
+ };
9
+ declare const VERSION = "1.0.0";
10
+
11
+ export { CraftingCredit, THOUGHTHUB, VERSION };
package/dist/index.js ADDED
@@ -0,0 +1,78 @@
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 __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ CraftingCredit: () => CraftingCredit,
24
+ THOUGHTHUB: () => THOUGHTHUB,
25
+ VERSION: () => VERSION
26
+ });
27
+ module.exports = __toCommonJS(index_exports);
28
+
29
+ // src/CraftingCredit.tsx
30
+ var import_react = require("react");
31
+
32
+ // src/assets/th-logo.png
33
+ var th_logo_default = "./th-logo-SIZX3HFF.png";
34
+
35
+ // src/CraftingCredit.tsx
36
+ var import_jsx_runtime = require("react/jsx-runtime");
37
+ var CraftingCredit = () => {
38
+ const [logoSrc, setLogoSrc] = (0, import_react.useState)(
39
+ "https://cdn.thoughthubhq.com/th-logo.png"
40
+ );
41
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
42
+ "a",
43
+ {
44
+ href: "https://thoughthubhq.com",
45
+ target: "_blank",
46
+ rel: "noopener noreferrer",
47
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "group relative flex items-center gap-4 text-xs tracking-tight sm:text-sm cursor-pointer hover:scale-110 transition-transform duration-500 after:content-[''] after:absolute after:-bottom-2 after:left-0 after:h-0.5 after:w-full after:origin-left after:scale-x-0 hover:after:scale-x-100 after:transition-transform after:duration-500 after:ease-in-out after:bg-[#e7eacd]", children: [
48
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "shrink-0 pr-4 border-r border-neutral-200 transition-colors duration-300", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
49
+ "img",
50
+ {
51
+ src: logoSrc,
52
+ alt: "ThoughtHub HQ Logo",
53
+ width: 36,
54
+ height: 36,
55
+ onError: () => setLogoSrc(th_logo_default)
56
+ }
57
+ ) }),
58
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col justify-center", children: [
59
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "text-[10px] uppercase tracking-widest text-neutral-500 font-medium leading-none mb-1", children: "Crafted by" }),
60
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: "flex flex-col text-lg font-bold text-[#e7eacd]", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "ThoughtHub" }) })
61
+ ] })
62
+ ] })
63
+ }
64
+ ) });
65
+ };
66
+
67
+ // src/index.ts
68
+ var THOUGHTHUB = {
69
+ name: "ThoughtHub",
70
+ website: "https://thoughthubhq.com"
71
+ };
72
+ var VERSION = "1.0.0";
73
+ // Annotate the CommonJS export names for ESM import in node:
74
+ 0 && (module.exports = {
75
+ CraftingCredit,
76
+ THOUGHTHUB,
77
+ VERSION
78
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,49 @@
1
+ // src/CraftingCredit.tsx
2
+ import { useState } from "react";
3
+
4
+ // src/assets/th-logo.png
5
+ var th_logo_default = "./th-logo-SIZX3HFF.png";
6
+
7
+ // src/CraftingCredit.tsx
8
+ import { jsx, jsxs } from "react/jsx-runtime";
9
+ var CraftingCredit = () => {
10
+ const [logoSrc, setLogoSrc] = useState(
11
+ "https://cdn.thoughthubhq.com/th-logo.png"
12
+ );
13
+ return /* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(
14
+ "a",
15
+ {
16
+ href: "https://thoughthubhq.com",
17
+ target: "_blank",
18
+ rel: "noopener noreferrer",
19
+ children: /* @__PURE__ */ jsxs("div", { className: "group relative flex items-center gap-4 text-xs tracking-tight sm:text-sm cursor-pointer hover:scale-110 transition-transform duration-500 after:content-[''] after:absolute after:-bottom-2 after:left-0 after:h-0.5 after:w-full after:origin-left after:scale-x-0 hover:after:scale-x-100 after:transition-transform after:duration-500 after:ease-in-out after:bg-[#e7eacd]", children: [
20
+ /* @__PURE__ */ jsx("div", { className: "shrink-0 pr-4 border-r border-neutral-200 transition-colors duration-300", children: /* @__PURE__ */ jsx(
21
+ "img",
22
+ {
23
+ src: logoSrc,
24
+ alt: "ThoughtHub HQ Logo",
25
+ width: 36,
26
+ height: 36,
27
+ onError: () => setLogoSrc(th_logo_default)
28
+ }
29
+ ) }),
30
+ /* @__PURE__ */ jsxs("div", { className: "flex flex-col justify-center", children: [
31
+ /* @__PURE__ */ jsx("span", { className: "text-[10px] uppercase tracking-widest text-neutral-500 font-medium leading-none mb-1", children: "Crafted by" }),
32
+ /* @__PURE__ */ jsx("span", { className: "flex flex-col text-lg font-bold text-[#e7eacd]", children: /* @__PURE__ */ jsx("span", { children: "ThoughtHub" }) })
33
+ ] })
34
+ ] })
35
+ }
36
+ ) });
37
+ };
38
+
39
+ // src/index.ts
40
+ var THOUGHTHUB = {
41
+ name: "ThoughtHub",
42
+ website: "https://thoughthubhq.com"
43
+ };
44
+ var VERSION = "1.0.0";
45
+ export {
46
+ CraftingCredit,
47
+ THOUGHTHUB,
48
+ VERSION
49
+ };
Binary file
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@thoughthub/hq",
3
+ "version": "1.0.0",
4
+ "description": "ThoughtHub UI Components (Footer Credit)",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "files": [
9
+ "dist"
10
+ ],
11
+ "scripts": {
12
+ "build": "tsup"
13
+ },
14
+ "keywords": [
15
+ "react",
16
+ "ui",
17
+ "footer",
18
+ "thoughthub"
19
+ ],
20
+ "author": "ThoughtHub",
21
+ "license": "ISC",
22
+ "peerDependencies": {
23
+ "react": "^18 || ^19"
24
+ },
25
+ "devDependencies": {
26
+ "@types/react": "^19.2.14",
27
+ "tsup": "^8.5.1",
28
+ "typescript": "^6.0.2"
29
+ },
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/index.d.ts",
33
+ "import": "./dist/index.mjs",
34
+ "require": "./dist/index.js"
35
+ }
36
+ }
37
+ }