@schandlergarcia/sf-web-components 1.0.15 → 1.0.16

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schandlergarcia/sf-web-components",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Reusable Salesforce web components library with Tailwind CSS v4 and shadcn/ui",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,46 +1,15 @@
1
- import { useState } from "react";
2
- import { useNavigate } from "react-router";
3
- import { Button } from '@schandlergarcia/sf-web-components';
1
+ import { RocketLaunchIcon } from "@heroicons/react/24/outline";
2
+ import { EmptyState } from '@schandlergarcia/sf-web-components';
4
3
 
5
4
  export default function HomePage() {
6
- const navigate = useNavigate();
7
- const [searchText, setSearchText] = useState("");
8
-
9
- const handleSearch = (e: React.FormEvent) => {
10
- e.preventDefault();
11
- // Navigate to your search results page
12
- console.log("Search:", searchText);
13
- };
14
-
15
5
  return (
16
- <div className="flex min-h-[80vh] items-center justify-center px-4 sm:px-6 lg:px-8">
17
- <div className="w-full max-w-4xl">
18
- <div className="text-center mb-8">
19
- <h1 className="text-4xl font-bold text-slate-900 dark:text-slate-50 mb-4">
20
- Welcome
21
- </h1>
22
- <p className="text-lg text-slate-600 dark:text-slate-300">
23
- Your application is ready to go.
24
- </p>
25
- </div>
26
- <form onSubmit={handleSearch} className="flex flex-col gap-4 items-center">
27
- <div className="flex gap-2 w-full max-w-2xl">
28
- <input
29
- type="text"
30
- value={searchText}
31
- onChange={(e) => setSearchText(e.target.value)}
32
- placeholder="Search..."
33
- className="flex-1 px-4 py-2 border border-slate-300 dark:border-slate-700 rounded-lg bg-white dark:bg-slate-900 text-slate-900 dark:text-slate-50 focus:outline-none focus:ring-2 focus:ring-slate-400"
34
- />
35
- <Button type="submit">Search</Button>
36
- </div>
37
- <div className="flex gap-2">
38
- <Button variant="outline" onClick={() => navigate("/about")}>
39
- Learn More
40
- </Button>
41
- </div>
42
- </form>
43
- </div>
6
+ <div className="flex min-h-screen items-center justify-center bg-slate-50 dark:bg-slate-950 transition-colors">
7
+ <EmptyState
8
+ size="lg"
9
+ icon={<RocketLaunchIcon className="h-14 w-14" />}
10
+ heading="Bespoke App Template"
11
+ body="Component library loaded and ready to go."
12
+ />
44
13
  </div>
45
14
  );
46
15
  }
@@ -1,21 +1,12 @@
1
1
  export default function Search() {
2
2
  return (
3
- <div className="flex min-h-[80vh] items-center justify-center px-4 sm:px-6 lg:px-8">
3
+ <div className="flex min-h-[80vh] items-center justify-center px-4 sm:px-6 lg:px-8 bg-slate-50 dark:bg-slate-950 transition-colors">
4
4
  <div className="w-full max-w-4xl">
5
5
  <div className="text-center mb-8">
6
6
  <h1 className="text-4xl font-bold text-slate-900 dark:text-slate-50 mb-4">Search</h1>
7
7
  <p className="text-lg text-slate-600 dark:text-slate-300">Find records across your organization.</p>
8
8
  </div>
9
- <div className="flex gap-2">
10
- <input
11
- type="text"
12
- placeholder="Search..."
13
- className="flex-1 px-4 py-2 border border-slate-300 dark:border-slate-700 rounded-lg bg-white dark:bg-slate-900 text-slate-900 dark:text-slate-50 focus:outline-none focus:ring-2 focus:ring-slate-400"
14
- />
15
- <button className="px-4 py-2 bg-slate-900 dark:bg-slate-50 text-white dark:text-slate-900 rounded-lg hover:bg-slate-700 dark:hover:bg-slate-200 transition-colors">
16
- Search
17
- </button>
18
- </div>
9
+ <p className="text-center text-slate-500 dark:text-slate-400">Search functionality coming soon...</p>
19
10
  </div>
20
11
  </div>
21
12
  );