@golocalinteractive/golocal-cloud-wrapper 0.0.101
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 +329 -0
- package/dist/components/app-header.d.ts +6 -0
- package/dist/components/app-header.d.ts.map +1 -0
- package/dist/components/app-sidebar.d.ts +4 -0
- package/dist/components/app-sidebar.d.ts.map +1 -0
- package/dist/components/credential-form.d.ts +11 -0
- package/dist/components/credential-form.d.ts.map +1 -0
- package/dist/components/profile-dropdown.d.ts +6 -0
- package/dist/components/profile-dropdown.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +9 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +12 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +10 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/collapsible-section.d.ts +14 -0
- package/dist/components/ui/collapsible-section.d.ts.map +1 -0
- package/dist/components/ui/dropdown-menu.d.ts +26 -0
- package/dist/components/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/components/ui/index.d.ts +14 -0
- package/dist/components/ui/index.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +6 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/separator.d.ts +5 -0
- package/dist/components/ui/separator.d.ts.map +1 -0
- package/dist/components/ui/sheet.d.ts +26 -0
- package/dist/components/ui/sheet.d.ts.map +1 -0
- package/dist/components/ui/sidebar.d.ts +70 -0
- package/dist/components/ui/sidebar.d.ts.map +1 -0
- package/dist/components/ui/skeleton.d.ts +4 -0
- package/dist/components/ui/skeleton.d.ts.map +1 -0
- package/dist/components/ui/sonner.d.ts +4 -0
- package/dist/components/ui/sonner.d.ts.map +1 -0
- package/dist/components/ui/tooltip.d.ts +8 -0
- package/dist/components/ui/tooltip.d.ts.map +1 -0
- package/dist/components/vendor-connection-card.d.ts +15 -0
- package/dist/components/vendor-connection-card.d.ts.map +1 -0
- package/dist/components/vendor-connections.d.ts +17 -0
- package/dist/components/vendor-connections.d.ts.map +1 -0
- package/dist/components/vendor-selection.d.ts +8 -0
- package/dist/components/vendor-selection.d.ts.map +1 -0
- package/dist/context/PermissionsContext.d.ts +25 -0
- package/dist/context/PermissionsContext.d.ts.map +1 -0
- package/dist/enums/vendors.d.ts +15 -0
- package/dist/enums/vendors.d.ts.map +1 -0
- package/dist/files/geist-cyrillic-400-normal.woff +0 -0
- package/dist/files/geist-cyrillic-400-normal.woff2 +0 -0
- package/dist/files/geist-latin-400-normal.woff +0 -0
- package/dist/files/geist-latin-400-normal.woff2 +0 -0
- package/dist/files/geist-latin-ext-400-normal.woff +0 -0
- package/dist/files/geist-latin-ext-400-normal.woff2 +0 -0
- package/dist/golocal-cloud-wrapper.cjs.js +291 -0
- package/dist/golocal-cloud-wrapper.css +1 -0
- package/dist/golocal-cloud-wrapper.es.js +10862 -0
- package/dist/hooks/use-active-route.d.ts +5 -0
- package/dist/hooks/use-active-route.d.ts.map +1 -0
- package/dist/hooks/use-active-route.test.d.ts +2 -0
- package/dist/hooks/use-active-route.test.d.ts.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-navigation-config.d.ts +7 -0
- package/dist/hooks/use-navigation-config.d.ts.map +1 -0
- package/dist/index.d.ts +19 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/lib/auth/client.d.ts +5 -0
- package/dist/lib/auth/client.d.ts.map +1 -0
- package/dist/lib/auth/index.d.ts +2 -0
- package/dist/lib/auth/index.d.ts.map +1 -0
- package/dist/lib/auth/middleware.d.ts +5 -0
- package/dist/lib/auth/middleware.d.ts.map +1 -0
- package/dist/lib/auth/permissions.d.ts +10 -0
- package/dist/lib/auth/permissions.d.ts.map +1 -0
- package/dist/lib/auth/server.d.ts +7 -0
- package/dist/lib/auth/server.d.ts.map +1 -0
- package/dist/lib/auth/token.d.ts +2 -0
- package/dist/lib/auth/token.d.ts.map +1 -0
- package/dist/lib/icon-map.d.ts +32 -0
- package/dist/lib/icon-map.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/vendor-form-config.d.ts +20 -0
- package/dist/lib/vendor-form-config.d.ts.map +1 -0
- package/dist/lib/vendor-info.d.ts +9 -0
- package/dist/lib/vendor-info.d.ts.map +1 -0
- package/dist/providers/GLICloudProvider.d.ts +19 -0
- package/dist/providers/GLICloudProvider.d.ts.map +1 -0
- package/dist/server.cjs.js +11 -0
- package/dist/server.d.ts +5 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.es.js +2795 -0
- package/dist/token-CPL6JoNm.js +25 -0
- package/dist/token-OmUSTZxZ.cjs +1 -0
- package/dist/types/credentials.d.ts +41 -0
- package/dist/types/credentials.d.ts.map +1 -0
- package/dist/types/navigation.d.ts +33 -0
- package/dist/types/navigation.d.ts.map +1 -0
- package/package.json +91 -0
- package/tailwind.preset.js +99 -0
package/README.md
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
# Go Local Interactive Cloud Wrapper
|
|
2
|
+
|
|
3
|
+
A React provider component for Go Local Interactive's cloud services with built-in styling and authentication middleware.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @golocalinteractive/golocal-cloud-wrapper
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
### Basic Usage (Styles Auto-injected)
|
|
14
|
+
|
|
15
|
+
The styles are automatically included when you import the `GLICloudProvider`:
|
|
16
|
+
|
|
17
|
+
```jsx
|
|
18
|
+
import { GLICloudProvider } from "@golocalinteractive/golocal-cloud-wrapper";
|
|
19
|
+
|
|
20
|
+
function App() {
|
|
21
|
+
return (
|
|
22
|
+
<GLICloudProvider>
|
|
23
|
+
<div>Your app content here</div>
|
|
24
|
+
</GLICloudProvider>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Authentication Setup
|
|
30
|
+
|
|
31
|
+
This package includes Auth0 authentication utilities and middleware helpers. To set up authentication in your Next.js app:
|
|
32
|
+
|
|
33
|
+
#### 1. Environment Variables
|
|
34
|
+
|
|
35
|
+
Add these to your `.env.local`:
|
|
36
|
+
|
|
37
|
+
```env
|
|
38
|
+
AUTH0_SECRET='use [openssl rand -hex 32] to generate a 32 bytes value'
|
|
39
|
+
AUTH0_BASE_URL='http://localhost:3000'
|
|
40
|
+
AUTH0_ISSUER_BASE_URL='https://YOUR_DOMAIN'
|
|
41
|
+
AUTH0_CLIENT_ID='your_client_id'
|
|
42
|
+
AUTH0_CLIENT_SECRET='your_client_secret'
|
|
43
|
+
AUTH0_AUDIENCE='your_audience'
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
#### 2. Auth API Routes
|
|
47
|
+
|
|
48
|
+
Create `app/api/auth/[auth0]/route.ts`:
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
import { handleAuth } from "@auth0/nextjs-auth0";
|
|
52
|
+
|
|
53
|
+
export const GET = handleAuth;
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### 4. Login/Logout Links
|
|
57
|
+
|
|
58
|
+
```jsx
|
|
59
|
+
import { useUser } from "@auth0/nextjs-auth0/client";
|
|
60
|
+
|
|
61
|
+
function AuthButtons() {
|
|
62
|
+
const { user, isLoading } = useUser();
|
|
63
|
+
|
|
64
|
+
if (isLoading) return <div>Loading...</div>;
|
|
65
|
+
|
|
66
|
+
if (user) {
|
|
67
|
+
return (
|
|
68
|
+
<div>
|
|
69
|
+
<span>Welcome {user.name}!</span>
|
|
70
|
+
<a href="/api/auth/logout">Logout</a>
|
|
71
|
+
</div>
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return <a href="/api/auth/login">Login</a>;
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Manual CSS Import (Alternative)
|
|
80
|
+
|
|
81
|
+
If you prefer to manually control CSS imports, you can import the styles separately:
|
|
82
|
+
|
|
83
|
+
```jsx
|
|
84
|
+
// Import styles first
|
|
85
|
+
import "@golocalinteractive/golocal-cloud-wrapper/styles";
|
|
86
|
+
|
|
87
|
+
// Then import the provider
|
|
88
|
+
import { GLICloudProvider } from "@golocalinteractive/golocal-cloud-wrapper";
|
|
89
|
+
|
|
90
|
+
function App() {
|
|
91
|
+
return (
|
|
92
|
+
<GLICloudProvider>
|
|
93
|
+
<div>Your app content here</div>
|
|
94
|
+
</GLICloudProvider>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### User Permissions
|
|
100
|
+
|
|
101
|
+
The package includes built-in permission management for GoLocal Interactive products.
|
|
102
|
+
|
|
103
|
+
**Important:** Server-side functions must be imported from `/server` path:
|
|
104
|
+
|
|
105
|
+
```typescript
|
|
106
|
+
// ❌ Wrong - This will cause errors in server components
|
|
107
|
+
import { getServerSidePermissions } from "@golocalinteractive/golocal-cloud-wrapper";
|
|
108
|
+
|
|
109
|
+
// ✅ Correct - Use /server path for server-side imports
|
|
110
|
+
import { getServerSidePermissions } from "@golocalinteractive/golocal-cloud-wrapper/server";
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
#### Client-Side Permissions (with PermissionsProvider)
|
|
114
|
+
|
|
115
|
+
First, create an API endpoint:
|
|
116
|
+
|
|
117
|
+
```typescript
|
|
118
|
+
// app/api/auth/permissions/route.ts
|
|
119
|
+
import { NextResponse } from 'next/server';
|
|
120
|
+
import { getServerSidePermissions } from '@golocalinteractive/golocal-cloud-wrapper/server';
|
|
121
|
+
|
|
122
|
+
export async function GET() {
|
|
123
|
+
try {
|
|
124
|
+
const permissions = await getServerSidePermissions();
|
|
125
|
+
return NextResponse.json(permissions);
|
|
126
|
+
} catch (error) {
|
|
127
|
+
return NextResponse.json(
|
|
128
|
+
{ essentialInsights: false, organic: false, paid: false, web: false, priceMonster: false, se_company_id: null },
|
|
129
|
+
{ status: 500 }
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
Then use in your components:
|
|
136
|
+
|
|
137
|
+
```jsx
|
|
138
|
+
import { PermissionsProvider, usePermissions, useProductAccess } from "@golocalinteractive/golocal-cloud-wrapper";
|
|
139
|
+
|
|
140
|
+
function App() {
|
|
141
|
+
return (
|
|
142
|
+
<PermissionsProvider>
|
|
143
|
+
<YourApp />
|
|
144
|
+
</PermissionsProvider>
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
// Option 1: Using usePermissions (original way)
|
|
149
|
+
function YourComponent() {
|
|
150
|
+
const { permissions, loading, error } = usePermissions();
|
|
151
|
+
|
|
152
|
+
if (loading) return <div>Loading...</div>;
|
|
153
|
+
|
|
154
|
+
return (
|
|
155
|
+
<div>
|
|
156
|
+
{permissions.essentialInsights && <EssentialInsightsContent />}
|
|
157
|
+
{permissions.organic && <OrganicContent />}
|
|
158
|
+
{permissions.paid && <PaidContent />}
|
|
159
|
+
{permissions.web && <WebContent />}
|
|
160
|
+
{permissions.priceMonster && <PriceMonsterContent />}
|
|
161
|
+
</div>
|
|
162
|
+
);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// Option 2: Using useProductAccess (shorthand access)
|
|
166
|
+
function YourComponentShorthand() {
|
|
167
|
+
const { essentialInsights, organic, paid, web, priceMonster, se_company_id, loading, error } = useProductAccess();
|
|
168
|
+
|
|
169
|
+
if (loading) return <div>Loading...</div>;
|
|
170
|
+
|
|
171
|
+
return (
|
|
172
|
+
<div>
|
|
173
|
+
{essentialInsights && <EssentialInsightsContent />}
|
|
174
|
+
{organic && <OrganicContent />}
|
|
175
|
+
{paid && <PaidContent />}
|
|
176
|
+
{web && <WebContent />}
|
|
177
|
+
{priceMonster && <PriceMonsterContent />}
|
|
178
|
+
<p>Company ID: {se_company_id}</p>
|
|
179
|
+
</div>
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
#### Server-Side Permissions
|
|
185
|
+
|
|
186
|
+
For server components:
|
|
187
|
+
|
|
188
|
+
```typescript
|
|
189
|
+
// app/layout.tsx (Server Component)
|
|
190
|
+
import { getServerSidePermissions } from '@golocalinteractive/golocal-cloud-wrapper/server';
|
|
191
|
+
|
|
192
|
+
export default async function RootLayout({ children }) {
|
|
193
|
+
const permissions = await getServerSidePermissions();
|
|
194
|
+
|
|
195
|
+
return (
|
|
196
|
+
<html>
|
|
197
|
+
<body>
|
|
198
|
+
<ClientProviders initialPermissions={permissions}>
|
|
199
|
+
{children}
|
|
200
|
+
</ClientProviders>
|
|
201
|
+
</body>
|
|
202
|
+
</html>
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### Active Route Tracking
|
|
208
|
+
|
|
209
|
+
The package includes a `useActiveRoute` hook for tracking the current route and highlighting active navigation links:
|
|
210
|
+
|
|
211
|
+
```jsx
|
|
212
|
+
import { useActiveRoute } from "@golocalinteractive/golocal-cloud-wrapper";
|
|
213
|
+
|
|
214
|
+
function MyNavigation() {
|
|
215
|
+
const { currentPath, isActiveRoute } = useActiveRoute();
|
|
216
|
+
|
|
217
|
+
return (
|
|
218
|
+
<nav>
|
|
219
|
+
<a
|
|
220
|
+
href="/dashboard"
|
|
221
|
+
className={isActiveRoute("/dashboard") ? "active" : ""}
|
|
222
|
+
>
|
|
223
|
+
Dashboard
|
|
224
|
+
</a>
|
|
225
|
+
<a
|
|
226
|
+
href="/settings"
|
|
227
|
+
className={isActiveRoute("/settings") ? "active" : ""}
|
|
228
|
+
>
|
|
229
|
+
Settings
|
|
230
|
+
</a>
|
|
231
|
+
</nav>
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
The `useActiveRoute` hook provides:
|
|
237
|
+
|
|
238
|
+
- `currentPath`: The current URL pathname
|
|
239
|
+
- `isActiveRoute(path)`: Function that returns `true` if the given path matches the current route (supports exact matches and nested routes)
|
|
240
|
+
|
|
241
|
+
## Features
|
|
242
|
+
|
|
243
|
+
- **Auto-injected Styles**: CSS is automatically included when importing the provider
|
|
244
|
+
- **Tailwind CSS**: Built with Tailwind CSS v4 for consistent styling
|
|
245
|
+
- **Custom Design System**: Includes GLI brand colors and design tokens
|
|
246
|
+
- **Responsive Design**: Mobile-first responsive components
|
|
247
|
+
- **Dark Mode Support**: Built-in dark mode support
|
|
248
|
+
- **Accessibility**: WCAG compliant components
|
|
249
|
+
- **Active Link Highlighting**: Built-in route tracking and active link highlighting
|
|
250
|
+
|
|
251
|
+
## Available CSS Variables
|
|
252
|
+
|
|
253
|
+
The package includes custom CSS variables for GLI branding:
|
|
254
|
+
|
|
255
|
+
```css
|
|
256
|
+
/* GLI Colors */
|
|
257
|
+
--gli-blue: #e5f7ff;
|
|
258
|
+
--gli-blue-dark: #007db8;
|
|
259
|
+
--gli-orange: #fff6ef;
|
|
260
|
+
--gli-orange-dark: #f68029;
|
|
261
|
+
--gli-green: #edfad8;
|
|
262
|
+
--gli-gray-dark: #c2c2c2;
|
|
263
|
+
|
|
264
|
+
/* Organic Colors */
|
|
265
|
+
--organic-blue: #ecf3f8;
|
|
266
|
+
--organic-navy: #013760;
|
|
267
|
+
--organic-mid-blue: #1e6aa4;
|
|
268
|
+
--organic-light-blue: #95b5d0;
|
|
269
|
+
|
|
270
|
+
/* Paid Colors */
|
|
271
|
+
--paid-green: #5c792f;
|
|
272
|
+
--paid-green-light: #85b045;
|
|
273
|
+
--paid-lime: #ecfad6;
|
|
274
|
+
--paid-green-dark: #324715;
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
## Troubleshooting
|
|
278
|
+
|
|
279
|
+
### Styles Not Applying
|
|
280
|
+
|
|
281
|
+
If styles aren't taking effect:
|
|
282
|
+
|
|
283
|
+
1. **Check Import Order**: Make sure you're importing the provider correctly
|
|
284
|
+
2. **CSS Conflicts**: Ensure no other CSS is overriding the styles
|
|
285
|
+
3. **Build Process**: Verify your build process includes CSS processing
|
|
286
|
+
4. **Browser Cache**: Clear browser cache and reload
|
|
287
|
+
|
|
288
|
+
### Build Issues
|
|
289
|
+
|
|
290
|
+
If you encounter build issues:
|
|
291
|
+
|
|
292
|
+
1. **PostCSS Config**: Ensure you have `@tailwindcss/postcss` installed
|
|
293
|
+
2. **Tailwind Version**: This package uses Tailwind CSS v4
|
|
294
|
+
3. **Node Version**: Requires Node.js 18+ for Tailwind CSS v4
|
|
295
|
+
|
|
296
|
+
## Development
|
|
297
|
+
|
|
298
|
+
```bash
|
|
299
|
+
# Install dependencies
|
|
300
|
+
npm install
|
|
301
|
+
|
|
302
|
+
# Build the package
|
|
303
|
+
npm run build
|
|
304
|
+
|
|
305
|
+
# Build for development
|
|
306
|
+
npm run build:dev
|
|
307
|
+
|
|
308
|
+
# Run tests
|
|
309
|
+
npm test
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
## Available Components
|
|
313
|
+
|
|
314
|
+
### Providers
|
|
315
|
+
|
|
316
|
+
- `GLICloudProvider` - Cloud provider context for Go Local Interactive services
|
|
317
|
+
|
|
318
|
+
### Hooks
|
|
319
|
+
|
|
320
|
+
- `useActiveRoute` - Hook for tracking current route and active link highlighting
|
|
321
|
+
|
|
322
|
+
## Requirements
|
|
323
|
+
|
|
324
|
+
- React 19+
|
|
325
|
+
- TypeScript (recommended)
|
|
326
|
+
|
|
327
|
+
## License
|
|
328
|
+
|
|
329
|
+
ISC
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-header.d.ts","sourceRoot":"","sources":["../../src/components/app-header.tsx"],"names":[],"mappings":"AAKA,UAAU,cAAc;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,eAAO,MAAM,SAAS,GAAI,cAAc,cAAc,4CAcrD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../src/components/app-sidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAEL,OAAO,EAYR,MAAM,MAAM,CAAC;AAmGd,wBAAgB,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,2CAqH5E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Vendor } from "../enums/vendors";
|
|
2
|
+
import { VendorCredentials } from "../types/credentials";
|
|
3
|
+
interface CredentialFormProps {
|
|
4
|
+
vendor: Vendor;
|
|
5
|
+
onBack: () => void;
|
|
6
|
+
onSubmit: (credentials: VendorCredentials) => void;
|
|
7
|
+
isLoading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default function CredentialForm({ vendor, onBack, onSubmit, isLoading, }: CredentialFormProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=credential-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credential-form.d.ts","sourceRoot":"","sources":["../../src/components/credential-form.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAG1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,UAAU,mBAAmB;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,QAAQ,EAAE,CAAC,WAAW,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACnD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EACrC,MAAM,EACN,MAAM,EACN,QAAQ,EACR,SAAiB,GAClB,EAAE,mBAAmB,2CAiJrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile-dropdown.d.ts","sourceRoot":"","sources":["../../src/components/profile-dropdown.tsx"],"names":[],"mappings":"AAYA,UAAU,oBAAoB;IAC5B,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACvC;AAED,eAAO,MAAM,eAAe,GAAI,cAAc,oBAAoB,mDAwEjE,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type VariantProps } from "class-variance-authority";
|
|
2
|
+
declare const badgeVariants: (props?: ({
|
|
3
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
5
|
+
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
6
|
+
asChild?: boolean;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export { Badge, badgeVariants };
|
|
9
|
+
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,aAAa;;mFAkBlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAO,EACP,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,GAC7B,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,2CAU3D;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { type VariantProps } from "class-variance-authority";
|
|
3
|
+
declare const buttonVariants: (props?: ({
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
7
|
+
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
8
|
+
asChild?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
export { Button, buttonVariants };
|
|
12
|
+
//# sourceMappingURL=button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;mFA2BnB,CAAC;AAEF,MAAM,WAAW,WACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,cAAc,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,QAAA,MAAM,MAAM,uFAWX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
|
10
|
+
//# sourceMappingURL=card.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,iBAAS,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWjE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQtE;AAED,iBAAS,eAAe,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQ5E;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQxE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAQvE;AAED,OAAO,EACL,IAAI,EACJ,UAAU,EACV,UAAU,EACV,SAAS,EACT,UAAU,EACV,eAAe,EACf,WAAW,GACZ,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
type CollapsibleSectionProps = {
|
|
3
|
+
title: string;
|
|
4
|
+
url?: string;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
defaultOpen?: boolean;
|
|
7
|
+
icon?: React.ReactNode;
|
|
8
|
+
isActive?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare function CollapsibleSection({ title, url, children, defaultOpen, icon, isActive, className, disabled, }: CollapsibleSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=collapsible-section.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"collapsible-section.d.ts","sourceRoot":"","sources":["../../../src/components/ui/collapsible-section.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,KAAK,uBAAuB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,KAAK,EACL,GAAG,EACH,QAAQ,EACR,WAAmB,EACnB,IAAI,EACJ,QAAgB,EAChB,SAAS,EACT,QAAgB,GACjB,EAAE,uBAAuB,2CA+EzB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
3
|
+
declare function DropdownMenu({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare function DropdownMenuPortal({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare function DropdownMenuTrigger({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function DropdownMenuGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
9
|
+
inset?: boolean;
|
|
10
|
+
variant?: "default" | "destructive";
|
|
11
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function DropdownMenuRadioGroup({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
16
|
+
inset?: boolean;
|
|
17
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare function DropdownMenuShortcut({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
declare function DropdownMenuSub({ ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
22
|
+
inset?: boolean;
|
|
23
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export { DropdownMenu, DropdownMenuPortal, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuGroup, DropdownMenuLabel, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubTrigger, DropdownMenuSubContent, };
|
|
26
|
+
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../../src/components/ui/dropdown-menu.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,qBAAqB,MAAM,+BAA+B,CAAC;AAKvE,iBAAS,YAAY,CAAC,EACpB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,IAAI,CAAC,2CAEzD;AAED,iBAAS,kBAAkB,CAAC,EAC1B,GAA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cAAc,CAAC,OAAO,qBAAqB,CAAC,KAAK,CAAC,GAAG;IAC5D,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,2CAYA;AAED,iBAAS,qBAAqB,CAAC,EAC7B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,SAAS,CAAC,2CAQ9D;AAED,iBAAS,oBAAoB,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAW9B;AAED,iBAAS,eAAe,CAAC,EACvB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,GAAG,CAAC,2CAExD;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,UAAU,CAAC,GAAG;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,2CAeA;AAED,iBAAS,sBAAsB,CAAC,EAC9B,SAAS,EACT,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,qBAAqB,CAAC,UAAU,CAAC,2CAW/D;AAED,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,sBAAsB,EACtB,sBAAsB,GACvB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./badge";
|
|
2
|
+
export * from "./button";
|
|
3
|
+
export * from "./card";
|
|
4
|
+
export * from "./collapsible-section";
|
|
5
|
+
export * from "./dropdown-menu";
|
|
6
|
+
export * from "./input";
|
|
7
|
+
export * from "./separator";
|
|
8
|
+
export * from "./sheet";
|
|
9
|
+
export * from "./sidebar";
|
|
10
|
+
export * from "./sidebar";
|
|
11
|
+
export * from "./skeleton";
|
|
12
|
+
export * from "./sonner";
|
|
13
|
+
export * from "./tooltip";
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ui/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
}
|
|
4
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export { Input };
|
|
6
|
+
//# sourceMappingURL=input.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/components/ui/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;CAAG;AAExD,QAAA,MAAM,KAAK,qFAcV,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3
|
+
declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
export { Separator };
|
|
5
|
+
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../../src/components/ui/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAIhE,QAAA,MAAM,SAAS,6JAoBd,CAAC;AAGF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
3
|
+
import { type VariantProps } from "class-variance-authority";
|
|
4
|
+
declare const Sheet: React.FC<DialogPrimitive.DialogProps>;
|
|
5
|
+
declare const SheetTrigger: React.ForwardRefExoticComponent<DialogPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
6
|
+
declare const SheetClose: React.ForwardRefExoticComponent<DialogPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
|
|
7
|
+
declare const SheetPortal: React.FC<DialogPrimitive.DialogPortalProps>;
|
|
8
|
+
declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
declare const sheetVariants: (props?: ({
|
|
10
|
+
side?: "top" | "bottom" | "left" | "right" | null | undefined;
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
12
|
+
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof sheetVariants> {
|
|
13
|
+
}
|
|
14
|
+
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
declare const SheetHeader: {
|
|
16
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
displayName: string;
|
|
18
|
+
};
|
|
19
|
+
declare const SheetFooter: {
|
|
20
|
+
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
displayName: string;
|
|
22
|
+
};
|
|
23
|
+
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
24
|
+
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
|
+
export { Sheet, SheetPortal, SheetOverlay, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
26
|
+
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,KAAK,uCAAuB,CAAC;AAEnC,QAAA,MAAM,YAAY,8GAA0B,CAAC;AAE7C,QAAA,MAAM,UAAU,4GAAwB,CAAC;AAEzC,QAAA,MAAM,WAAW,6CAAyB,CAAC;AAE3C,QAAA,MAAM,YAAY,8JAYhB,CAAC;AAGH,QAAA,MAAM,aAAa;;mFAiBlB,CAAC;AAEF,UAAU,iBACR,SAAQ,KAAK,CAAC,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EACpE,YAAY,CAAC,OAAO,aAAa,CAAC;CAAG;AAEzC,QAAA,MAAM,YAAY,0FAkBhB,CAAC;AAGH,QAAA,MAAM,WAAW;8BAGd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,WAAW;8BAGd,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;;CAQtC,CAAC;AAGF,QAAA,MAAM,UAAU,oKASd,CAAC;AAGH,QAAA,MAAM,gBAAgB,8KASpB,CAAC;AAGH,OAAO,EACL,KAAK,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,YAAY,EACZ,WAAW,EACX,WAAW,EACX,UAAU,EACV,gBAAgB,GACjB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { VariantProps } from "class-variance-authority";
|
|
3
|
+
import { Button } from "./button";
|
|
4
|
+
import { Input } from "./input";
|
|
5
|
+
import { Separator } from "./separator";
|
|
6
|
+
import { TooltipContent } from "./tooltip";
|
|
7
|
+
type SidebarContextProps = {
|
|
8
|
+
state: "expanded" | "collapsed";
|
|
9
|
+
open: boolean;
|
|
10
|
+
setOpen: (open: boolean) => void;
|
|
11
|
+
openMobile: boolean;
|
|
12
|
+
setOpenMobile: (open: boolean) => void;
|
|
13
|
+
isMobile: boolean;
|
|
14
|
+
toggleSidebar: () => void;
|
|
15
|
+
};
|
|
16
|
+
declare function useSidebar(): SidebarContextProps;
|
|
17
|
+
declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange: setOpenProp, className, style, children, ...props }: React.ComponentProps<"div"> & {
|
|
18
|
+
defaultOpen?: boolean;
|
|
19
|
+
open?: boolean;
|
|
20
|
+
onOpenChange?: (open: boolean) => void;
|
|
21
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React.ComponentProps<"div"> & {
|
|
23
|
+
side?: "left" | "right";
|
|
24
|
+
variant?: "sidebar" | "floating" | "inset";
|
|
25
|
+
collapsible?: "offcanvas" | "icon" | "none";
|
|
26
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
declare function SidebarTrigger({ className, onClick, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
declare function SidebarRail({ className, ...props }: React.ComponentProps<"button">): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
declare function SidebarInset({ className, ...props }: React.ComponentProps<"main">): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare function SidebarInput({ className, ...props }: React.ComponentProps<typeof Input>): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
declare function SidebarHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
declare function SidebarFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
33
|
+
declare function SidebarSeparator({ className, ...props }: React.ComponentProps<typeof Separator>): import("react/jsx-runtime").JSX.Element;
|
|
34
|
+
declare function SidebarContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function SidebarGroup({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
declare function SidebarGroupLabel({ className, asChild, ...props }: React.ComponentProps<"div"> & {
|
|
37
|
+
asChild?: boolean;
|
|
38
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
declare function SidebarGroupAction({ className, asChild, ...props }: React.ComponentProps<"button"> & {
|
|
40
|
+
asChild?: boolean;
|
|
41
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
declare function SidebarGroupContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
declare function SidebarMenu({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
declare function SidebarMenuItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
declare const sidebarMenuButtonVariants: (props?: ({
|
|
46
|
+
variant?: "default" | "outline" | null | undefined;
|
|
47
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
48
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
49
|
+
declare function SidebarMenuButton({ asChild, isActive, variant, size, tooltip, className, ...props }: React.ComponentProps<"button"> & {
|
|
50
|
+
asChild?: boolean;
|
|
51
|
+
isActive?: boolean;
|
|
52
|
+
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
53
|
+
} & VariantProps<typeof sidebarMenuButtonVariants>): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
declare function SidebarMenuAction({ className, asChild, showOnHover, ...props }: React.ComponentProps<"button"> & {
|
|
55
|
+
asChild?: boolean;
|
|
56
|
+
showOnHover?: boolean;
|
|
57
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
58
|
+
declare function SidebarMenuBadge({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
declare function SidebarMenuSkeleton({ className, showIcon, ...props }: React.ComponentProps<"div"> & {
|
|
60
|
+
showIcon?: boolean;
|
|
61
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
declare function SidebarMenuSub({ className, ...props }: React.ComponentProps<"ul">): import("react/jsx-runtime").JSX.Element;
|
|
63
|
+
declare function SidebarMenuSubItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
64
|
+
declare function SidebarMenuSubButton({ asChild, size, isActive, className, ...props }: React.ComponentProps<"a"> & {
|
|
65
|
+
asChild?: boolean;
|
|
66
|
+
size?: "sm" | "md";
|
|
67
|
+
isActive?: boolean;
|
|
68
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
69
|
+
export { Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, useSidebar, };
|
|
70
|
+
//# sourceMappingURL=sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/ui/sidebar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,YAAY,EAAO,MAAM,0BAA0B,CAAC;AAK7D,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AASxC,OAAO,EAEL,cAAc,EAGf,MAAM,WAAW,CAAC;AASnB,KAAK,mBAAmB,GAAG;IACzB,KAAK,EAAE,UAAU,GAAG,WAAW,CAAC;IAChC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACjC,UAAU,EAAE,OAAO,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAIF,iBAAS,UAAU,wBAOlB;AAED,iBAAS,eAAe,CAAC,EACvB,WAAkB,EAClB,IAAI,EAAE,QAAQ,EACd,YAAY,EAAE,WAAW,EACzB,SAAS,EACT,KAAK,EACL,QAAQ,EACR,GAAG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