@vashu96/ui 0.0.1 → 0.0.3

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/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # @vashu96/ui
2
+
3
+ **Crystal Flat Design System** — A collection of high-quality, glassmorphism-inspired React components.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @vashu96/ui
9
+ ```
10
+
11
+ ## Setup
12
+
13
+ Import the global styles in your main entry point (e.g., `main.tsx` or `App.tsx`):
14
+
15
+ ```tsx
16
+ import "@vashu96/ui/styles.css";
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```tsx
22
+ import { Button, Card, SpotlightCard } from "@vashu96/ui";
23
+
24
+ function MyComponent() {
25
+ return (
26
+ <Card variant="glass">
27
+ <SpotlightCard>
28
+ <h2>Hello World</h2>
29
+ <Button variant="primary">Click Me</Button>
30
+ </SpotlightCard>
31
+ </Card>
32
+ );
33
+ }
34
+ ```
35
+
36
+ ## Components
37
+
38
+ The library provides a comprehensive set of components:
39
+
40
+ - **Layout**: `Card`, `SpotlightCard`, `Separator`, `Table`, `DataTable`, `Sidebar`, `Sheet`
41
+ - **Forms**: `Button`, `Input`, `Textarea`, `Checkbox`, `Switch`, `Slider`, `Select`, `FormField`, `Label`
42
+ - **Feedback**: `Badge`, `Alert`, `Toast`, `Progress`, `Spinner`, `Skeleton`, `EmptyState`
43
+ - **Overlay**: `Dialog`, `ConfirmDialog`, `Tooltip`, `Dropdown`, `Command`, `SearchCommand`
44
+ - **Navigation**: `Tabs`, `Breadcrumb`, `Pagination`, `Tag`
45
+
46
+ ## Theme Support
47
+
48
+ The library supports light and dark modes out of the box. Use the `data-theme="dark"` attribute on a parent element or the `html` tag to switch themes.
49
+
50
+ ## License
51
+
52
+ MIT
@@ -5,6 +5,7 @@ declare const BreadcrumbItem: import('react').ForwardRefExoticComponent<HTMLAttr
5
5
  interface BreadcrumbLinkProps extends HTMLAttributes<HTMLAnchorElement> {
6
6
  href?: string;
7
7
  active?: boolean;
8
+ isCurrent?: boolean;
8
9
  }
9
10
  declare const BreadcrumbLink: import('react').ForwardRefExoticComponent<BreadcrumbLinkProps & import('react').RefAttributes<HTMLAnchorElement>>;
10
11
  declare function BreadcrumbSeparator({ children, className, }: {
package/dist/TOC.d.ts ADDED
@@ -0,0 +1,19 @@
1
+ import { HTMLAttributes } from 'react';
2
+ export interface TOCItem {
3
+ id: string;
4
+ label: string;
5
+ }
6
+ export interface TOCProps extends HTMLAttributes<HTMLElement> {
7
+ items: TOCItem[];
8
+ /**
9
+ * Whether to use smooth scrolling when clicking on a link.
10
+ * @default true
11
+ */
12
+ smooth?: boolean;
13
+ /**
14
+ * Callback fired when a TOC item is clicked.
15
+ * Useful for handling router navigation or URL updates manually.
16
+ */
17
+ onItemClick?: (id: string) => void;
18
+ }
19
+ export declare function TOC({ items, smooth, className, onItemClick, ...props }: TOCProps): import("react/jsx-runtime").JSX.Element;