docthub-core-components 2.3.8 → 2.4.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.esm.js CHANGED
@@ -60,11 +60,11 @@ const xm = d.forwardRef(
60
60
  }
61
61
  );
62
62
  xm.displayName = "CircularProgress";
63
- function F1() {
63
+ function F1({ src: e }) {
64
64
  return /* @__PURE__ */ f("div", { className: "flex flex-col items-center justify-center h-screen w-full bg-white", children: /* @__PURE__ */ f(
65
65
  "img",
66
66
  {
67
- src: "/logoAnimation.gif",
67
+ src: e,
68
68
  alt: "Loading animation",
69
69
  className: "w-32 h-32 object-contain"
70
70
  }
@@ -1 +1,9 @@
1
- export declare function DoctAnimationLoader(): import("react/jsx-runtime").JSX.Element;
1
+ /**
2
+ * Props for the DoctAnimationLoader component
3
+ */
4
+ interface DoctAnimationLoaderProps {
5
+ /** The source URL of the loading animation image */
6
+ src: string;
7
+ }
8
+ export declare function DoctAnimationLoader({ src }: DoctAnimationLoaderProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "docthub-core-components",
3
- "version": "2.3.8",
3
+ "version": "2.4.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",
7
- "style": "dist/docthub-core-components.css",
7
+ "style": "dist/style.css",
8
8
  "types": "dist/index.d.ts",
9
9
  "files": [
10
10
  "dist"
@@ -14,7 +14,8 @@
14
14
  "types": "./dist/index.d.ts",
15
15
  "import": "./dist/index.esm.js"
16
16
  },
17
- "./style.css": "./dist/docthub-core-components.css",
17
+ "./docthub-core-components.css": "./dist/style.css",
18
+ "./style.css": "./dist/style.css",
18
19
  "./dist/*": "./dist/*"
19
20
  },
20
21
  "sideEffects": [
@@ -56,6 +57,7 @@
56
57
  "preview": "vite preview",
57
58
  "storybook": "storybook dev -p 6006",
58
59
  "build-storybook": "storybook build",
60
+ "postinstall": "node node_modules/esbuild/install.js || echo esbuild-install-skipped",
59
61
  "test": "vitest",
60
62
  "analyze": "vite build --config vite.analyze.config.ts",
61
63
  "build:registry": "node scripts/build-registry.mjs",
@@ -126,6 +128,7 @@
126
128
  "eslint-plugin-react-hooks": "^5.0.0",
127
129
  "eslint-plugin-react-refresh": "^0.4.16",
128
130
  "eslint-plugin-storybook": "9.1.10",
131
+ "esbuild": "^0.19.12",
129
132
  "globals": "^15.14.0",
130
133
  "jsdom": "^26.1.0",
131
134
  "lucide-react": "^0.474.0",
package/dist/landing.html DELETED
@@ -1,82 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="en">
3
- <head>
4
- <meta charset="UTF-8" />
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
- <title>DocThub Components - Storybook</title>
7
- <style>
8
- body {
9
- font-family: system-ui, -apple-system, sans-serif;
10
- max-width: 800px;
11
- margin: 50px auto;
12
- padding: 20px;
13
- line-height: 1.6;
14
- background: #f8f9fa;
15
- }
16
-
17
- .container {
18
- background: white;
19
- padding: 40px;
20
- border-radius: 12px;
21
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
22
- text-align: center;
23
- }
24
-
25
- h1 {
26
- color: #333;
27
- margin-bottom: 10px;
28
- font-size: 2.5rem;
29
- }
30
-
31
- .subtitle {
32
- color: #666;
33
- margin-bottom: 30px;
34
- font-size: 1.1rem;
35
- }
36
-
37
- .storybook-btn {
38
- display: inline-block;
39
- background: #ff4785;
40
- color: white;
41
- padding: 12px 24px;
42
- border-radius: 8px;
43
- text-decoration: none;
44
- font-weight: 600;
45
- font-size: 1.1rem;
46
- transition: background-color 0.3s;
47
- }
48
-
49
- .storybook-btn:hover {
50
- background: #e03569;
51
- }
52
-
53
- .info {
54
- margin-top: 30px;
55
- color: #666;
56
- font-size: 0.9rem;
57
- }
58
- </style>
59
- <script>
60
- // Auto-redirect to Storybook after 3 seconds
61
- setTimeout(() => {
62
- window.location.href = '/iframe.html';
63
- }, 3000);
64
- </script>
65
- </head>
66
-
67
- <body>
68
- <div class="container">
69
- <h1>🚀 DocThub Components</h1>
70
- <p class="subtitle">Interactive Component Documentation & Playground</p>
71
-
72
- <p>Welcome to the DocThub Component Library! This site showcases all our reusable UI components with interactive examples.</p>
73
-
74
- <a href="/iframe.html" class="storybook-btn">Open Storybook →</a>
75
-
76
- <div class="info">
77
- <p>You will be automatically redirected to Storybook in 3 seconds...</p>
78
- <p>Or <a href="/iframe.html">click here</a> to go directly.</p>
79
- </div>
80
- </div>
81
- </body>
82
- </html>
Binary file
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>