@goplusvn/core 0.1.1 → 0.1.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/package.json +31 -175
- package/dist/audit/index.d.mts +0 -115
- package/dist/audit/index.d.ts +0 -115
- package/dist/audit/index.js +0 -204
- package/dist/audit/index.js.map +0 -1
- package/dist/audit/index.mjs +0 -200
- package/dist/audit/index.mjs.map +0 -1
- package/dist/auth/index.d.mts +0 -86
- package/dist/auth/index.d.ts +0 -86
- package/dist/auth/index.js +0 -210
- package/dist/auth/index.js.map +0 -1
- package/dist/auth/index.mjs +0 -198
- package/dist/auth/index.mjs.map +0 -1
- package/dist/button-1dWvP9Ib.d.mts +0 -30
- package/dist/button-1dWvP9Ib.d.ts +0 -30
- package/dist/calendar-2QzdEo1z.d.mts +0 -20
- package/dist/calendar-2QzdEo1z.d.ts +0 -20
- package/dist/code-generation/index.d.mts +0 -30
- package/dist/code-generation/index.d.ts +0 -30
- package/dist/code-generation/index.js +0 -31
- package/dist/code-generation/index.js.map +0 -1
- package/dist/code-generation/index.mjs +0 -28
- package/dist/code-generation/index.mjs.map +0 -1
- package/dist/configs/index.d.mts +0 -175
- package/dist/configs/index.d.ts +0 -175
- package/dist/configs/index.js +0 -254
- package/dist/configs/index.js.map +0 -1
- package/dist/configs/index.mjs +0 -233
- package/dist/configs/index.mjs.map +0 -1
- package/dist/crud/index.d.mts +0 -646
- package/dist/crud/index.d.ts +0 -646
- package/dist/crud/index.js +0 -11772
- package/dist/crud/index.js.map +0 -1
- package/dist/crud/index.mjs +0 -11665
- package/dist/crud/index.mjs.map +0 -1
- package/dist/crud/server.d.mts +0 -20
- package/dist/crud/server.d.ts +0 -20
- package/dist/crud/server.js +0 -123
- package/dist/crud/server.js.map +0 -1
- package/dist/crud/server.mjs +0 -120
- package/dist/crud/server.mjs.map +0 -1
- package/dist/data-table-skeleton-12NA8Mjx.d.mts +0 -39
- package/dist/data-table-skeleton-12NA8Mjx.d.ts +0 -39
- package/dist/dialog-bKfjZMTd.d.mts +0 -22
- package/dist/dialog-bKfjZMTd.d.ts +0 -22
- package/dist/dynamic-icon-DrGIiu2N.d.mts +0 -10
- package/dist/dynamic-icon-DrGIiu2N.d.ts +0 -10
- package/dist/home/index.d.mts +0 -269
- package/dist/home/index.d.ts +0 -269
- package/dist/home/index.js +0 -1678
- package/dist/home/index.js.map +0 -1
- package/dist/home/index.mjs +0 -1635
- package/dist/home/index.mjs.map +0 -1
- package/dist/hooks/index.d.mts +0 -7
- package/dist/hooks/index.d.ts +0 -7
- package/dist/hooks/index.js +0 -8316
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/index.mjs +0 -8255
- package/dist/hooks/index.mjs.map +0 -1
- package/dist/index-50hpiPrV.d.ts +0 -116
- package/dist/index-B9zQVEVi.d.mts +0 -116
- package/dist/index.d.mts +0 -5
- package/dist/index.d.ts +0 -5
- package/dist/index.js +0 -123
- package/dist/index.js.map +0 -1
- package/dist/index.mjs +0 -118
- package/dist/index.mjs.map +0 -1
- package/dist/infrastructure/index.d.mts +0 -423
- package/dist/infrastructure/index.d.ts +0 -423
- package/dist/infrastructure/index.js +0 -633
- package/dist/infrastructure/index.js.map +0 -1
- package/dist/infrastructure/index.mjs +0 -619
- package/dist/infrastructure/index.mjs.map +0 -1
- package/dist/label-DWTEkNPo.d.ts +0 -226
- package/dist/label-LPpdcoBx.d.mts +0 -226
- package/dist/layout/index.d.mts +0 -48
- package/dist/layout/index.d.ts +0 -48
- package/dist/layout/index.js +0 -117
- package/dist/layout/index.js.map +0 -1
- package/dist/layout/index.mjs +0 -90
- package/dist/layout/index.mjs.map +0 -1
- package/dist/navigation/index.d.mts +0 -16
- package/dist/navigation/index.d.ts +0 -16
- package/dist/navigation/index.js +0 -53
- package/dist/navigation/index.js.map +0 -1
- package/dist/navigation/index.mjs +0 -50
- package/dist/navigation/index.mjs.map +0 -1
- package/dist/notification/index.d.mts +0 -105
- package/dist/notification/index.d.ts +0 -105
- package/dist/notification/index.js +0 -278
- package/dist/notification/index.js.map +0 -1
- package/dist/notification/index.mjs +0 -274
- package/dist/notification/index.mjs.map +0 -1
- package/dist/organization/index.d.mts +0 -99
- package/dist/organization/index.d.ts +0 -99
- package/dist/organization/index.js +0 -360
- package/dist/organization/index.js.map +0 -1
- package/dist/organization/index.mjs +0 -352
- package/dist/organization/index.mjs.map +0 -1
- package/dist/plugin/index.d.mts +0 -83
- package/dist/plugin/index.d.ts +0 -83
- package/dist/plugin/index.js +0 -86
- package/dist/plugin/index.js.map +0 -1
- package/dist/plugin/index.mjs +0 -84
- package/dist/plugin/index.mjs.map +0 -1
- package/dist/providers/index.d.mts +0 -25
- package/dist/providers/index.d.ts +0 -25
- package/dist/providers/index.js +0 -84
- package/dist/providers/index.js.map +0 -1
- package/dist/providers/index.mjs +0 -77
- package/dist/providers/index.mjs.map +0 -1
- package/dist/rbac/index.d.mts +0 -226
- package/dist/rbac/index.d.ts +0 -226
- package/dist/rbac/index.js +0 -4784
- package/dist/rbac/index.js.map +0 -1
- package/dist/rbac/index.mjs +0 -4722
- package/dist/rbac/index.mjs.map +0 -1
- package/dist/rbac/permissions.d.mts +0 -26
- package/dist/rbac/permissions.d.ts +0 -26
- package/dist/rbac/permissions.js +0 -94
- package/dist/rbac/permissions.js.map +0 -1
- package/dist/rbac/permissions.mjs +0 -90
- package/dist/rbac/permissions.mjs.map +0 -1
- package/dist/rbac/server.d.mts +0 -1
- package/dist/rbac/server.d.ts +0 -1
- package/dist/rbac/server.js +0 -128
- package/dist/rbac/server.js.map +0 -1
- package/dist/rbac/server.mjs +0 -124
- package/dist/rbac/server.mjs.map +0 -1
- package/dist/schemas/index.d.mts +0 -1257
- package/dist/schemas/index.d.ts +0 -1257
- package/dist/schemas/index.js +0 -572
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/index.mjs +0 -523
- package/dist/schemas/index.mjs.map +0 -1
- package/dist/server-QuYCTa89.d.mts +0 -83
- package/dist/server-QuYCTa89.d.ts +0 -83
- package/dist/sonner-C74GlRDQ.d.mts +0 -71
- package/dist/sonner-C74GlRDQ.d.ts +0 -71
- package/dist/status-BOXZgIqX.d.mts +0 -12
- package/dist/status-BOXZgIqX.d.ts +0 -12
- package/dist/system/index.d.mts +0 -77
- package/dist/system/index.d.ts +0 -77
- package/dist/system/index.js +0 -102
- package/dist/system/index.js.map +0 -1
- package/dist/system/index.mjs +0 -100
- package/dist/system/index.mjs.map +0 -1
- package/dist/tabs-C6FfBwPY.d.mts +0 -18
- package/dist/tabs-C6FfBwPY.d.ts +0 -18
- package/dist/tenant-provider-B8eC_Wpb.d.mts +0 -27
- package/dist/tenant-provider-B8eC_Wpb.d.ts +0 -27
- package/dist/types/index.d.mts +0 -469
- package/dist/types/index.d.ts +0 -469
- package/dist/types/index.js +0 -25
- package/dist/types/index.js.map +0 -1
- package/dist/types/index.mjs +0 -21
- package/dist/types/index.mjs.map +0 -1
- package/dist/ui/auth.d.mts +0 -39
- package/dist/ui/auth.d.ts +0 -39
- package/dist/ui/auth.js +0 -4941
- package/dist/ui/auth.js.map +0 -1
- package/dist/ui/auth.mjs +0 -4896
- package/dist/ui/auth.mjs.map +0 -1
- package/dist/ui/crud.d.mts +0 -2
- package/dist/ui/crud.d.ts +0 -2
- package/dist/ui/crud.js +0 -4
- package/dist/ui/crud.js.map +0 -1
- package/dist/ui/crud.mjs +0 -3
- package/dist/ui/crud.mjs.map +0 -1
- package/dist/ui/data-display.d.mts +0 -596
- package/dist/ui/data-display.d.ts +0 -596
- package/dist/ui/data-display.js +0 -5307
- package/dist/ui/data-display.js.map +0 -1
- package/dist/ui/data-display.mjs +0 -5212
- package/dist/ui/data-display.mjs.map +0 -1
- package/dist/ui/feedback.d.mts +0 -55
- package/dist/ui/feedback.d.ts +0 -55
- package/dist/ui/feedback.js +0 -2608
- package/dist/ui/feedback.js.map +0 -1
- package/dist/ui/feedback.mjs +0 -2526
- package/dist/ui/feedback.mjs.map +0 -1
- package/dist/ui/forms.d.mts +0 -309
- package/dist/ui/forms.d.ts +0 -309
- package/dist/ui/forms.js +0 -4656
- package/dist/ui/forms.js.map +0 -1
- package/dist/ui/forms.mjs +0 -4571
- package/dist/ui/forms.mjs.map +0 -1
- package/dist/ui/index.d.mts +0 -331
- package/dist/ui/index.d.ts +0 -331
- package/dist/ui/index.js +0 -16953
- package/dist/ui/index.js.map +0 -1
- package/dist/ui/index.mjs +0 -16598
- package/dist/ui/index.mjs.map +0 -1
- package/dist/ui/primitives/client.d.mts +0 -61
- package/dist/ui/primitives/client.d.ts +0 -61
- package/dist/ui/primitives/client.js +0 -3408
- package/dist/ui/primitives/client.js.map +0 -1
- package/dist/ui/primitives/client.mjs +0 -3256
- package/dist/ui/primitives/client.mjs.map +0 -1
- package/dist/ui/primitives.d.mts +0 -113
- package/dist/ui/primitives.d.ts +0 -113
- package/dist/ui/primitives.js +0 -3356
- package/dist/ui/primitives.js.map +0 -1
- package/dist/ui/primitives.mjs +0 -3227
- package/dist/ui/primitives.mjs.map +0 -1
- package/dist/user/index.d.mts +0 -228
- package/dist/user/index.d.ts +0 -228
- package/dist/user/index.js +0 -4306
- package/dist/user/index.js.map +0 -1
- package/dist/user/index.mjs +0 -4260
- package/dist/user/index.mjs.map +0 -1
- package/dist/utils/index.d.mts +0 -205
- package/dist/utils/index.d.ts +0 -205
- package/dist/utils/index.js +0 -574
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/index.mjs +0 -514
- package/dist/utils/index.mjs.map +0 -1
- package/dist/workflow/index.d.mts +0 -40
- package/dist/workflow/index.d.ts +0 -40
- package/dist/workflow/index.js +0 -3710
- package/dist/workflow/index.js.map +0 -1
- package/dist/workflow/index.mjs +0 -3677
- package/dist/workflow/index.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/infrastructure/logger/logger.ts","../../src/infrastructure/cache/cache.ts","../../src/infrastructure/cache/cache-manager.ts","../../src/infrastructure/event-bus/event-bus.ts","../../src/infrastructure/cron/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AA,KAAU,IAAA,IACV,SAAA,IAAa,KAAA,IACb,QAAA,IAAY,KAAA,IACZ,OAAQ,KAAA,CAAmB,MAAA,KAAW,QAAA;AAE1C","file":"index.mjs","sourcesContent":["import type { Logger, LoggerOptions, LogContext, LogLevel } from \"./types\";\n\nconst LOG_LEVELS: Record<LogLevel, number> = {\n trace: 0,\n debug: 1,\n info: 2,\n warn: 3,\n error: 4,\n};\n\nfunction getLogLevel(): LogLevel {\n const envLevel = process.env.LOG_LEVEL?.toLowerCase() as LogLevel;\n if (envLevel && LOG_LEVELS[envLevel] !== undefined) {\n return envLevel;\n }\n return process.env.NODE_ENV === \"production\" ? \"info\" : \"debug\";\n}\n\nfunction formatMessage(\n level: LogLevel,\n name: string,\n message: string,\n context?: LogContext,\n): string {\n const timestamp = new Date().toISOString();\n const contextStr = context ? ` ${JSON.stringify(context)}` : \"\";\n return `${timestamp} [${level.toUpperCase()}] [${name}] ${message}${contextStr}`;\n}\n\nfunction shouldLog(level: LogLevel, minLevel: LogLevel): boolean {\n return LOG_LEVELS[level] >= LOG_LEVELS[minLevel];\n}\n\nclass ConsoleLogger implements Logger {\n private name: string;\n private level: LogLevel;\n\n constructor(options: LoggerOptions = {}) {\n this.name = options.name || \"App\";\n this.level = options.level || getLogLevel();\n }\n\n trace(message: string, context?: LogContext): void {\n if (shouldLog(\"trace\", this.level)) {\n console.log(formatMessage(\"trace\", this.name, message, context));\n }\n }\n\n debug(message: string, context?: LogContext): void {\n if (shouldLog(\"debug\", this.level)) {\n console.log(formatMessage(\"debug\", this.name, message, context));\n }\n }\n\n info(message: string, context?: LogContext): void {\n if (shouldLog(\"info\", this.level)) {\n console.info(formatMessage(\"info\", this.name, message, context));\n }\n }\n\n warn(message: string, context?: LogContext): void {\n if (shouldLog(\"warn\", this.level)) {\n console.warn(formatMessage(\"warn\", this.name, message, context));\n }\n }\n\n error(message: string, context?: LogContext): void {\n if (shouldLog(\"error\", this.level)) {\n console.error(formatMessage(\"error\", this.name, message, context));\n }\n }\n}\n\n/**\n * Create a logger instance with the given name/options\n *\n * @example\n * ```typescript\n * import { createLogger } from '@goerp/core/infrastructure';\n *\n * const logger = createLogger('OrderService');\n * logger.info('Order created', { orderId: '123' });\n * logger.error('Payment failed', { error: err.message });\n * ```\n */\nexport function createLogger(\n nameOrOptions: string | LoggerOptions = {},\n): Logger {\n const options =\n typeof nameOrOptions === \"string\" ? { name: nameOrOptions } : nameOrOptions;\n\n return new ConsoleLogger(options);\n}\n\n// Default app logger\nexport const logger = createLogger(\"App\");\n","import type { Cache, CacheOptions } from \"./types\";\n\ninterface CacheEntry<T> {\n value: T;\n expireAt: number | null;\n}\n\n/**\n * Simple in-memory cache implementation\n */\nexport class MemoryCache implements Cache {\n private store = new Map<string, CacheEntry<unknown>>();\n private name: string;\n private defaultTtl: number;\n private maxSize: number;\n private prefix: string;\n\n constructor(options: CacheOptions & { prefix?: string }) {\n this.name = options.name;\n this.defaultTtl = options.ttl || 3600;\n this.maxSize = options.max || 1000;\n this.prefix = options.prefix || \"\";\n }\n\n private getFullKey(key: string): string {\n return this.prefix\n ? `${this.prefix}:${this.name}:${key}`\n : `${this.name}:${key}`;\n }\n\n private isExpired(entry: CacheEntry<unknown>): boolean {\n if (entry.expireAt === null) return false;\n return Date.now() > entry.expireAt;\n }\n\n private cleanup(): void {\n for (const [key, entry] of this.store.entries()) {\n if (this.isExpired(entry)) {\n this.store.delete(key);\n }\n }\n }\n\n async get<T>(key: string): Promise<T | undefined> {\n const fullKey = this.getFullKey(key);\n const entry = this.store.get(fullKey);\n\n if (!entry) return undefined;\n\n if (this.isExpired(entry)) {\n this.store.delete(fullKey);\n return undefined;\n }\n\n return entry.value as T;\n }\n\n async set<T>(key: string, value: T, ttl?: number): Promise<void> {\n const fullKey = this.getFullKey(key);\n const ttlSeconds = ttl ?? this.defaultTtl;\n\n // Enforce max size\n if (this.store.size >= this.maxSize) {\n this.cleanup();\n // If still full, remove oldest\n if (this.store.size >= this.maxSize) {\n const firstKey = this.store.keys().next().value;\n if (firstKey) this.store.delete(firstKey);\n }\n }\n\n this.store.set(fullKey, {\n value,\n expireAt: ttlSeconds > 0 ? Date.now() + ttlSeconds * 1000 : null,\n });\n }\n\n async del(key: string): Promise<void> {\n const fullKey = this.getFullKey(key);\n this.store.delete(fullKey);\n }\n\n async has(key: string): Promise<boolean> {\n const value = await this.get(key);\n return value !== undefined;\n }\n\n async reset(): Promise<void> {\n // Only clear keys for this cache (by prefix)\n const prefix = this.getFullKey(\"\");\n for (const key of this.store.keys()) {\n if (key.startsWith(prefix)) {\n this.store.delete(key);\n }\n }\n }\n\n async keys(): Promise<string[]> {\n this.cleanup();\n const prefix = this.getFullKey(\"\");\n const result: string[] = [];\n\n for (const key of this.store.keys()) {\n if (key.startsWith(prefix)) {\n result.push(key.slice(prefix.length));\n }\n }\n\n return result;\n }\n\n /** Get cache info for admin dashboard */\n getInfo(): { name: string; ttl: number; maxSize: number } {\n return {\n name: this.name,\n ttl: this.defaultTtl,\n maxSize: this.maxSize,\n };\n }\n}\n","import type {\n Cache,\n CacheManager as ICacheManager,\n CacheManagerOptions,\n CacheOptions,\n} from \"./types\";\nimport { MemoryCache } from \"./cache\";\n\n/**\n * CacheManager - manages multiple cache instances\n *\n * @example\n * ```typescript\n * import { cacheManager } from '@goerp/core/infrastructure';\n *\n * const userCache = cacheManager.create({ name: 'users', ttl: 3600 });\n * await userCache.set('user:123', userData);\n * const user = await userCache.get('user:123');\n * ```\n */\nclass CacheManagerImpl implements ICacheManager {\n private caches = new Map<string, Cache>();\n private options: CacheManagerOptions;\n\n constructor(options: CacheManagerOptions = {}) {\n this.options = {\n defaultTtl: options.defaultTtl || 3600,\n prefix: options.prefix || \"\",\n };\n }\n\n create(options: CacheOptions): Cache {\n const existing = this.caches.get(options.name);\n if (existing) {\n return existing;\n }\n\n const cache = new MemoryCache({\n ...options,\n ttl: options.ttl || this.options.defaultTtl,\n prefix: this.options.prefix,\n });\n\n this.caches.set(options.name, cache);\n return cache;\n }\n\n get(name: string): Cache | undefined {\n return this.caches.get(name);\n }\n\n async flushAll(): Promise<void> {\n const promises: Promise<void>[] = [];\n for (const cache of this.caches.values()) {\n promises.push(cache.reset());\n }\n await Promise.all(promises);\n }\n\n /** Get all cache names */\n getAllCaches(): string[] {\n return Array.from(this.caches.keys());\n }\n\n /** Get stats for all caches (for admin dashboard) */\n async getStats(): Promise<\n Array<{ name: string; itemCount: number; ttl: number }>\n > {\n const stats: Array<{ name: string; itemCount: number; ttl: number }> = [];\n\n for (const [name, cache] of this.caches.entries()) {\n const keys = await cache.keys();\n stats.push({\n name,\n itemCount: keys.length,\n ttl: (cache as MemoryCache).getInfo().ttl,\n });\n }\n\n return stats;\n }\n\n /** Clear a specific cache by name */\n async clearCache(name: string): Promise<boolean> {\n const cache = this.caches.get(name);\n if (cache) {\n await cache.reset();\n return true;\n }\n return false;\n }\n}\n\n// Singleton instance pattern stable across hot-reloads\nconst globalForCache = globalThis as unknown as {\n coreCacheManager: CacheManagerImpl | undefined;\n};\n\nexport const cacheManager =\n globalForCache.coreCacheManager ?? new CacheManagerImpl();\n\nif (process.env.NODE_ENV !== \"production\") {\n globalForCache.coreCacheManager = cacheManager;\n}\n\n// Export class for testing\nexport { CacheManagerImpl };\n","import type {\n EventBus as IEventBus,\n EventHandler,\n EventSubscription,\n} from \"./types\";\nimport { createLogger } from \"../logger\";\n\nconst logger = createLogger(\"EventBus\");\n\n/**\n * Simple in-memory event bus for pub/sub pattern\n *\n * @example\n * ```typescript\n * import { eventBus } from '@goerp/core/infrastructure';\n *\n * // Subscribe\n * eventBus.on('order.created', async ({ orderId }) => {\n * await notificationService.notify(orderId);\n * });\n *\n * // Publish\n * eventBus.emit('order.created', { orderId: '123' });\n *\n * // Async emit (wait for handlers)\n * await eventBus.emitAsync('order.approved', { orderId: '123' });\n * ```\n */\nclass EventBusImpl implements IEventBus {\n private handlers = new Map<string, Set<EventHandler<unknown>>>();\n private onceHandlers = new Map<string, Set<EventHandler<unknown>>>();\n\n on<T>(event: string, handler: EventHandler<T>): EventSubscription {\n if (!this.handlers.has(event)) {\n this.handlers.set(event, new Set());\n }\n this.handlers.get(event)!.add(handler as EventHandler<unknown>);\n\n logger.debug(`Subscribed to event: ${event}`);\n\n return {\n unsubscribe: () => {\n this.handlers.get(event)?.delete(handler as EventHandler<unknown>);\n },\n };\n }\n\n once<T>(event: string, handler: EventHandler<T>): EventSubscription {\n if (!this.onceHandlers.has(event)) {\n this.onceHandlers.set(event, new Set());\n }\n this.onceHandlers.get(event)!.add(handler as EventHandler<unknown>);\n\n return {\n unsubscribe: () => {\n this.onceHandlers.get(event)?.delete(handler as EventHandler<unknown>);\n },\n };\n }\n\n emit<T>(event: string, data: T): void {\n logger.debug(`Emitting event: ${event}`);\n\n const handlers = this.handlers.get(event);\n const onceHandlers = this.onceHandlers.get(event);\n\n if (handlers) {\n for (const handler of handlers) {\n try {\n handler(data);\n } catch (error) {\n logger.error(`Error in event handler for ${event}`, {\n error: String(error),\n });\n }\n }\n }\n\n if (onceHandlers) {\n for (const handler of onceHandlers) {\n try {\n handler(data);\n } catch (error) {\n logger.error(`Error in once handler for ${event}`, {\n error: String(error),\n });\n }\n }\n this.onceHandlers.delete(event);\n }\n }\n\n async emitAsync<T>(event: string, data: T): Promise<void> {\n logger.debug(`Emitting async event: ${event}`);\n\n const handlers = this.handlers.get(event);\n const onceHandlers = this.onceHandlers.get(event);\n const promises: Promise<void>[] = [];\n\n if (handlers) {\n for (const handler of handlers) {\n promises.push(\n Promise.resolve(handler(data)).catch((error) => {\n logger.error(`Error in async handler for ${event}`, {\n error: String(error),\n });\n }),\n );\n }\n }\n\n if (onceHandlers) {\n for (const handler of onceHandlers) {\n promises.push(\n Promise.resolve(handler(data)).catch((error) => {\n logger.error(`Error in async once handler for ${event}`, {\n error: String(error),\n });\n }),\n );\n }\n this.onceHandlers.delete(event);\n }\n\n await Promise.all(promises);\n }\n\n off(event: string): void {\n this.handlers.delete(event);\n this.onceHandlers.delete(event);\n logger.debug(`Removed all handlers for event: ${event}`);\n }\n\n removeAllListeners(): void {\n this.handlers.clear();\n this.onceHandlers.clear();\n logger.debug(\"Removed all event listeners\");\n }\n}\n\n// Singleton instance\nexport const eventBus = new EventBusImpl();\n\n// Export class for testing\nexport { EventBusImpl };\n","import type {\n CronJob,\n CronJobManager as ICronJobManager,\n CronJobOptions,\n} from \"./types\";\nimport { createLogger } from \"../logger\";\n\nconst logger = createLogger(\"CronJobManager\");\n\n/**\n * Simple interval-based cron job (no external dependencies)\n * Supports basic cron expressions: minute, hour, day, month, weekday\n */\nclass SimpleCronJob implements CronJob {\n name: string;\n cronTime: string;\n private onTick: () => void | Promise<void>;\n private intervalId: NodeJS.Timeout | null = null;\n private running = false;\n private intervalMs: number;\n\n constructor(options: CronJobOptions) {\n this.name = options.name;\n this.cronTime = options.cronTime;\n this.onTick = options.onTick;\n this.intervalMs = this.parseInterval(options.cronTime);\n\n if (options.start) {\n this.start();\n }\n }\n\n /**\n * Parse simple cron expressions to interval\n * Supports:\n * - '* * * * *' - every minute\n * - '0 * * * *' - every hour\n * - '0 0 * * *' - every day at midnight\n * - Also supports simple intervals: '5m', '1h', '1d'\n */\n private parseInterval(cronTime: string): number {\n // Simple interval format: 5m, 1h, 1d\n const simpleMatch = cronTime.match(/^(\\d+)([smhd])$/);\n if (simpleMatch) {\n const value = parseInt(simpleMatch[1], 10);\n const unit = simpleMatch[2];\n switch (unit) {\n case \"s\":\n return value * 1000;\n case \"m\":\n return value * 60 * 1000;\n case \"h\":\n return value * 60 * 60 * 1000;\n case \"d\":\n return value * 24 * 60 * 60 * 1000;\n }\n }\n\n // Parse cron expression\n const parts = cronTime.split(\" \");\n if (parts.length >= 5) {\n const [minute, hour, dayOfMonth, ,] = parts;\n\n // Every minute\n if (minute === \"*\" && hour === \"*\") {\n return 60 * 1000; // 1 minute\n }\n\n // Every hour (minute = 0)\n if (minute !== \"*\" && hour === \"*\") {\n return 60 * 60 * 1000; // 1 hour\n }\n\n // Every day (minute and hour specified)\n if (minute !== \"*\" && hour !== \"*\" && dayOfMonth === \"*\") {\n return 24 * 60 * 60 * 1000; // 1 day\n }\n }\n\n // Default: every minute\n logger.warn(\n `Could not parse cron expression \"${cronTime}\", defaulting to every minute`,\n );\n return 60 * 1000;\n }\n\n start(): void {\n if (this.running) return;\n\n logger.info(`Starting cron job: ${this.name}`, {\n interval: `${this.intervalMs}ms`,\n });\n\n this.running = true;\n this.intervalId = setInterval(async () => {\n try {\n await this.onTick();\n } catch (error) {\n logger.error(`Cron job \"${this.name}\" failed`, {\n error: String(error),\n });\n }\n }, this.intervalMs);\n }\n\n stop(): void {\n if (!this.running || !this.intervalId) return;\n\n logger.info(`Stopping cron job: ${this.name}`);\n clearInterval(this.intervalId);\n this.intervalId = null;\n this.running = false;\n }\n\n isRunning(): boolean {\n return this.running;\n }\n\n nextDate(): Date | null {\n if (!this.running) return null;\n return new Date(Date.now() + this.intervalMs);\n }\n}\n\n/**\n * CronJobManager - manages scheduled tasks\n *\n * @example\n * ```typescript\n * import { cronJobManager } from '@goerp/core/infrastructure';\n *\n * // Add a job that runs every hour\n * cronJobManager.addJob({\n * name: 'cleanup-expired-tokens',\n * cronTime: '1h', // or '0 * * * *'\n * onTick: async () => {\n * await db.token.deleteMany({ where: { expiredAt: { lt: new Date() } } });\n * },\n * start: true\n * });\n *\n * // Stop all jobs on shutdown\n * cronJobManager.stopAll();\n * ```\n */\nclass CronJobManagerImpl implements ICronJobManager {\n private jobs = new Map<string, CronJob>();\n\n addJob(options: CronJobOptions): CronJob {\n if (this.jobs.has(options.name)) {\n logger.warn(`Job \"${options.name}\" already exists, removing old one`);\n this.removeJob(options.name);\n }\n\n const job = new SimpleCronJob(options);\n this.jobs.set(options.name, job);\n\n logger.info(`Added cron job: ${options.name}`, {\n cronTime: options.cronTime,\n });\n return job;\n }\n\n removeJob(name: string): void {\n const job = this.jobs.get(name);\n if (job) {\n job.stop();\n this.jobs.delete(name);\n logger.info(`Removed cron job: ${name}`);\n }\n }\n\n getJob(name: string): CronJob | undefined {\n return this.jobs.get(name);\n }\n\n getAllJobs(): CronJob[] {\n return Array.from(this.jobs.values());\n }\n\n startAll(): void {\n for (const job of this.jobs.values()) {\n job.start();\n }\n logger.info(`Started ${this.jobs.size} cron jobs`);\n }\n\n stopAll(): void {\n for (const job of this.jobs.values()) {\n job.stop();\n }\n logger.info(`Stopped ${this.jobs.size} cron jobs`);\n }\n\n /** Get info for all jobs (for admin dashboard) */\n getJobsInfo(): Array<{\n name: string;\n cronTime: string;\n isRunning: boolean;\n nextDate: Date | null;\n }> {\n const info: Array<{\n name: string;\n cronTime: string;\n isRunning: boolean;\n nextDate: Date | null;\n }> = [];\n\n for (const job of this.jobs.values()) {\n info.push({\n name: job.name,\n cronTime: job.cronTime,\n isRunning: job.isRunning(),\n nextDate: job.nextDate(),\n });\n }\n\n return info;\n }\n\n /** Toggle a job on/off */\n toggleJob(name: string): boolean {\n const job = this.jobs.get(name);\n if (!job) return false;\n\n if (job.isRunning()) {\n job.stop();\n } else {\n job.start();\n }\n return true;\n }\n}\n\n// Singleton instance\nexport const cronJobManager = new CronJobManagerImpl();\n\n// Export classes for testing\nexport { CronJobManagerImpl, SimpleCronJob };\n","/**\n * @goerp/core - Abstract API Service Layer\n * Inspired by Plane's APIService pattern (packages/services/src/api.service.ts)\n *\n * Provides a centralized HTTP client base class for all domain services.\n * Features:\n * - Centralized error handling & 401 redirect\n * - Request/Response interceptors\n * - Type-safe CRUD methods\n * - Automatic retry logic (configurable)\n *\n * @example\n * ```typescript\n * class CustomerService extends APIService {\n * constructor() { super('/api/sales/customers') }\n *\n * async list(filters?: CustomerFilters) {\n * return this.get<PaginatedResponse<Customer>>('/', { params: filters })\n * }\n *\n * async getById(id: string) {\n * return this.get<Customer>(`/${id}`)\n * }\n *\n * async create(data: CreateCustomerDTO) {\n * return this.post<Customer>('/', data)\n * }\n * }\n * ```\n */\n\n// ============================================================\n// Types\n// ============================================================\n\nexport interface APIRequestConfig {\n params?: Record<string, unknown>\n headers?: Record<string, string>\n signal?: AbortSignal\n /** Override default timeout (ms) */\n timeout?: number\n}\n\nexport interface APIResponse<T = unknown> {\n data: T\n status: number\n ok: boolean\n}\n\nexport interface APIError {\n message: string\n status: number\n code?: string\n details?: unknown\n}\n\nexport interface APIServiceOptions {\n /** Called when a 401 response is received */\n onUnauthorized?: () => void\n /** Called before each request (e.g., for logging) */\n onRequest?: (method: string, url: string) => void\n /** Called after each response (e.g., for logging) */\n onResponse?: (method: string, url: string, status: number) => void\n /** Called on any error */\n onError?: (error: APIError) => void\n /** Default timeout in ms (default: 30000) */\n timeout?: number\n /** Default headers to include in every request */\n defaultHeaders?: Record<string, string>\n}\n\n// ============================================================\n// APIService Base Class\n// ============================================================\n\n/**\n * Abstract base class for making HTTP requests using fetch API.\n * All domain services (CustomerService, OrderService, etc.) should extend this class.\n *\n * Unlike Plane's axios-based approach, we use native fetch() for Next.js compatibility\n * (better SSR support, no extra dependency, works with Server Components).\n */\nexport abstract class APIService {\n protected readonly baseURL: string\n private readonly options: APIServiceOptions\n\n constructor(baseURL: string, options: APIServiceOptions = {}) {\n this.baseURL = baseURL\n this.options = options\n }\n\n // --------------------------------------------------------\n // Core HTTP Methods\n // --------------------------------------------------------\n\n /**\n * Makes a GET request to the specified endpoint\n */\n protected async get<T = unknown>(\n endpoint: string = \"\",\n config: APIRequestConfig = {}\n ): Promise<T> {\n const url = this.buildURL(endpoint, config.params)\n return this.request<T>(\"GET\", url, undefined, config)\n }\n\n /**\n * Makes a POST request with JSON body\n */\n protected async post<T = unknown>(\n endpoint: string = \"\",\n data?: unknown,\n config: APIRequestConfig = {}\n ): Promise<T> {\n const url = this.buildURL(endpoint)\n return this.request<T>(\"POST\", url, data, config)\n }\n\n /**\n * Makes a PUT request with JSON body\n */\n protected async put<T = unknown>(\n endpoint: string = \"\",\n data?: unknown,\n config: APIRequestConfig = {}\n ): Promise<T> {\n const url = this.buildURL(endpoint)\n return this.request<T>(\"PUT\", url, data, config)\n }\n\n /**\n * Makes a PATCH request with JSON body\n */\n protected async patch<T = unknown>(\n endpoint: string = \"\",\n data?: unknown,\n config: APIRequestConfig = {}\n ): Promise<T> {\n const url = this.buildURL(endpoint)\n return this.request<T>(\"PATCH\", url, data, config)\n }\n\n /**\n * Makes a DELETE request\n */\n protected async delete<T = unknown>(\n endpoint: string = \"\",\n data?: unknown,\n config: APIRequestConfig = {}\n ): Promise<T> {\n const url = this.buildURL(endpoint)\n return this.request<T>(\"DELETE\", url, data, config)\n }\n\n // --------------------------------------------------------\n // Internal Helpers\n // --------------------------------------------------------\n\n /**\n * Build full URL with query params\n */\n private buildURL(endpoint: string, params?: Record<string, unknown>): string {\n const url = `${this.baseURL}${endpoint}`\n if (!params || Object.keys(params).length === 0) return url\n\n const searchParams = new URLSearchParams()\n for (const [key, value] of Object.entries(params)) {\n if (value !== undefined && value !== null && value !== \"\") {\n searchParams.append(key, String(value))\n }\n }\n\n const queryString = searchParams.toString()\n return queryString ? `${url}?${queryString}` : url\n }\n\n /**\n * Core request method — all HTTP methods funnel through here.\n * Handles: headers, body, timeout, error handling, 401 redirect.\n */\n private async request<T>(\n method: string,\n url: string,\n data?: unknown,\n config: APIRequestConfig = {}\n ): Promise<T> {\n // Notify interceptor\n this.options.onRequest?.(method, url)\n\n const headers: Record<string, string> = {\n \"Content-Type\": \"application/json\",\n ...this.options.defaultHeaders,\n ...config.headers,\n }\n\n const fetchOptions: RequestInit = {\n method,\n headers,\n credentials: \"include\", // Send cookies (same as axios withCredentials)\n signal: config.signal,\n }\n\n // Attach body for non-GET methods\n if (data !== undefined && method !== \"GET\") {\n fetchOptions.body = JSON.stringify(data)\n }\n\n try {\n const response = await fetch(url, fetchOptions)\n\n // Notify response interceptor\n this.options.onResponse?.(method, url, response.status)\n\n // Handle 401 — Centralized unauthorized redirect\n if (response.status === 401) {\n const error: APIError = {\n message: \"Unauthorized\",\n status: 401,\n code: \"UNAUTHORIZED\",\n }\n this.options.onUnauthorized?.()\n this.options.onError?.(error)\n throw error\n }\n\n // Handle other error statuses\n if (!response.ok) {\n let errorBody: unknown\n try {\n errorBody = await response.json()\n } catch {\n errorBody = await response.text()\n }\n\n const error: APIError = {\n message:\n typeof errorBody === \"object\" && errorBody !== null && \"message\" in errorBody\n ? String((errorBody as Record<string, unknown>).message)\n : `HTTP Error ${response.status}`,\n status: response.status,\n code:\n typeof errorBody === \"object\" && errorBody !== null && \"code\" in errorBody\n ? String((errorBody as Record<string, unknown>).code)\n : undefined,\n details: errorBody,\n }\n this.options.onError?.(error)\n throw error\n }\n\n // Handle empty responses (204 No Content)\n if (response.status === 204) {\n return undefined as T\n }\n\n // Parse JSON response\n const responseData = await response.json()\n return responseData as T\n } catch (error) {\n // Re-throw APIError as-is\n if (this.isAPIError(error)) {\n throw error\n }\n\n // Wrap network/timeout errors\n const apiError: APIError = {\n message: error instanceof Error ? error.message : \"Network error\",\n status: 0,\n code: \"NETWORK_ERROR\",\n }\n this.options.onError?.(apiError)\n throw apiError\n }\n }\n\n /**\n * Type guard for APIError\n */\n private isAPIError(error: unknown): error is APIError {\n return (\n typeof error === \"object\" &&\n error !== null &&\n \"message\" in error &&\n \"status\" in error\n )\n }\n}\n\n// ============================================================\n// Pre-configured Service Factory\n// ============================================================\n\n/**\n * Default options for client-side services.\n * Handles 401 redirect to login page automatically.\n */\nexport const defaultClientOptions: APIServiceOptions = {\n onUnauthorized: () => {\n if (typeof window !== \"undefined\") {\n const currentPath = window.location.pathname\n window.location.replace(`/login?next_path=${encodeURIComponent(currentPath)}`)\n }\n },\n}\n\n/**\n * Helper to check if an error is an APIError\n */\nexport function isAPIError(error: unknown): error is APIError {\n return (\n typeof error === \"object\" &&\n error !== null &&\n \"message\" in error &&\n \"status\" in error &&\n typeof (error as APIError).status === \"number\"\n )\n}\n"]}
|
package/dist/label-DWTEkNPo.d.ts
DELETED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentProps, ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
4
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
6
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
|
-
import { a as ButtonProps } from './button-1dWvP9Ib.js';
|
|
8
|
-
import { VariantProps } from 'class-variance-authority';
|
|
9
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
10
|
-
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
11
|
-
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
12
|
-
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
13
|
-
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
14
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
15
|
-
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
16
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
17
|
-
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
18
|
-
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
19
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
20
|
-
|
|
21
|
-
interface CheckboxProps extends ComponentProps<typeof CheckboxPrimitive.Root> {
|
|
22
|
-
}
|
|
23
|
-
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
-
|
|
25
|
-
declare function DropdownMenu({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
26
|
-
declare function DropdownMenuPortal({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
27
|
-
declare function DropdownMenuTrigger({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
28
|
-
declare function DropdownMenuGroup({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
29
|
-
declare function DropdownMenuRadioGroup({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
30
|
-
declare function DropdownMenuSub({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
31
|
-
type DropdownMenuSubTriggerProps = ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
32
|
-
inset?: boolean;
|
|
33
|
-
};
|
|
34
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: DropdownMenuSubTriggerProps): react_jsx_runtime.JSX.Element;
|
|
35
|
-
declare function DropdownMenuSubContent({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
36
|
-
declare function DropdownMenuContent({ className, sideOffset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
37
|
-
declare function DropdownMenuItem({ className, inset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
38
|
-
inset?: boolean;
|
|
39
|
-
}): react_jsx_runtime.JSX.Element;
|
|
40
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
41
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
42
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
43
|
-
inset?: boolean;
|
|
44
|
-
}): react_jsx_runtime.JSX.Element;
|
|
45
|
-
declare function DropdownMenuSeparator({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
46
|
-
declare function DropdownMenuShortcut({ className, ...props }: ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
47
|
-
|
|
48
|
-
declare function TooltipProvider({ delayDuration, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
|
|
49
|
-
declare function Tooltip({ ...props }: ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
50
|
-
declare function TooltipTrigger({ className, ...props }: ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
51
|
-
declare function TooltipContent({ className, sideOffset, ...props }: ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
52
|
-
|
|
53
|
-
type SidebarContext = {
|
|
54
|
-
state: "expanded" | "collapsed";
|
|
55
|
-
open: boolean;
|
|
56
|
-
setOpen: (open: boolean) => void;
|
|
57
|
-
openMobile: boolean;
|
|
58
|
-
setOpenMobile: (open: boolean) => void;
|
|
59
|
-
isMobile: boolean;
|
|
60
|
-
toggleSidebar: () => void;
|
|
61
|
-
hoverOpen: boolean;
|
|
62
|
-
setHoverOpen: (open: boolean) => void;
|
|
63
|
-
isHoverExpanded: boolean;
|
|
64
|
-
};
|
|
65
|
-
declare const SidebarContext: React.Context<SidebarContext | null>;
|
|
66
|
-
declare function useSidebar(): SidebarContext;
|
|
67
|
-
declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
68
|
-
defaultOpen?: boolean;
|
|
69
|
-
open?: boolean;
|
|
70
|
-
onOpenChange?: (open: boolean) => void;
|
|
71
|
-
storageKey?: string;
|
|
72
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
-
declare const Sidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
74
|
-
side?: "left" | "right";
|
|
75
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
76
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
77
|
-
hoverExpandEnabled?: boolean;
|
|
78
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
79
|
-
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
80
|
-
declare const SidebarRail: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
81
|
-
declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
-
declare const SidebarInput: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
83
|
-
declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
84
|
-
declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
-
declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
86
|
-
declare const SidebarContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
87
|
-
declare const SidebarGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
88
|
-
declare const SidebarGroupLabel: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
89
|
-
asChild?: boolean;
|
|
90
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
-
declare const SidebarGroupAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
92
|
-
asChild?: boolean;
|
|
93
|
-
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
94
|
-
declare const SidebarGroupContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
-
declare const SidebarMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
96
|
-
declare const SidebarMenuItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
97
|
-
declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
98
|
-
asChild?: boolean;
|
|
99
|
-
isActive?: boolean;
|
|
100
|
-
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
101
|
-
} & VariantProps<(props?: ({
|
|
102
|
-
variant?: "default" | "outline" | null | undefined;
|
|
103
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
104
|
-
isActive?: boolean | null | undefined;
|
|
105
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
106
|
-
declare const SidebarMenuAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
107
|
-
asChild?: boolean;
|
|
108
|
-
showOnHover?: boolean;
|
|
109
|
-
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
110
|
-
declare const SidebarMenuBadge: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
111
|
-
declare const SidebarMenuSkeleton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
112
|
-
showIcon?: boolean;
|
|
113
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
114
|
-
declare const SidebarMenuSub: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
115
|
-
declare const SidebarMenuSubItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
116
|
-
declare const SidebarMenuSubButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
117
|
-
asChild?: boolean;
|
|
118
|
-
size?: "sm" | "md";
|
|
119
|
-
isActive?: boolean;
|
|
120
|
-
}, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
121
|
-
|
|
122
|
-
type ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & Pick<ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>, "orientation">;
|
|
123
|
-
declare function ScrollArea({ orientation, className, children, ...props }: ScrollAreaProps): react_jsx_runtime.JSX.Element;
|
|
124
|
-
interface ScrollBarProps extends ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar> {
|
|
125
|
-
}
|
|
126
|
-
declare function ScrollBar({ className, orientation, ...props }: ScrollBarProps): react_jsx_runtime.JSX.Element;
|
|
127
|
-
|
|
128
|
-
declare function ResizablePanelGroup({ className, ...props }: ComponentProps<typeof ResizablePrimitive.PanelGroup>): react_jsx_runtime.JSX.Element;
|
|
129
|
-
declare function ResizablePanel({ ...props }: ComponentProps<typeof ResizablePrimitive.Panel>): react_jsx_runtime.JSX.Element;
|
|
130
|
-
type ResizableHandleProps = ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
131
|
-
withHandle?: boolean;
|
|
132
|
-
};
|
|
133
|
-
declare function ResizableHandle({ withHandle, className, ...props }: ResizableHandleProps): react_jsx_runtime.JSX.Element;
|
|
134
|
-
|
|
135
|
-
declare function Slider({ className, ...props }: ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
136
|
-
|
|
137
|
-
interface SwitchProps extends ComponentProps<typeof SwitchPrimitives.Root> {
|
|
138
|
-
}
|
|
139
|
-
declare function Switch({ className, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
140
|
-
|
|
141
|
-
declare function Select({ ...props }: ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
142
|
-
declare function SelectGroup({ ...props }: ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
143
|
-
declare function SelectValue({ ...props }: ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime.JSX.Element;
|
|
144
|
-
type SelectTriggerProps = ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
145
|
-
size?: "sm" | "default";
|
|
146
|
-
};
|
|
147
|
-
declare function SelectTrigger({ className, children, ...props }: SelectTriggerProps): react_jsx_runtime.JSX.Element;
|
|
148
|
-
declare function SelectScrollUpButton({ className, ...props }: ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
149
|
-
declare function SelectScrollDownButton({ className, ...props }: ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
150
|
-
declare function SelectContent({ className, children, position, ...props }: ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
151
|
-
declare function SelectLabel({ className, ...props }: ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
|
|
152
|
-
declare function SelectItem({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
153
|
-
declare function SelectSeparator({ className, ...props }: ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
154
|
-
|
|
155
|
-
declare function MenubarMenu({ ...props }: ComponentProps<typeof MenubarPrimitive.Menu>): react_jsx_runtime.JSX.Element;
|
|
156
|
-
declare function MenubarGroup({ ...props }: ComponentProps<typeof MenubarPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
157
|
-
declare function MenubarPortal({ ...props }: ComponentProps<typeof MenubarPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
158
|
-
declare function MenubarRadioGroup({ ...props }: ComponentProps<typeof MenubarPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
159
|
-
declare function Menubar({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
160
|
-
declare function MenubarTrigger({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
161
|
-
declare function MenubarSubTrigger({ className, inset, children, ...props }: ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
|
|
162
|
-
inset?: boolean;
|
|
163
|
-
}): react_jsx_runtime.JSX.Element;
|
|
164
|
-
declare function MenubarSub({ ...props }: ComponentProps<typeof MenubarPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
165
|
-
declare function MenubarSubContent({ className, ...props }: ComponentProps<typeof MenubarPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
166
|
-
declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: ComponentProps<typeof MenubarPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
167
|
-
type MenubarItemProps = ComponentProps<typeof MenubarPrimitive.Item> & {
|
|
168
|
-
inset?: boolean;
|
|
169
|
-
variant?: "default" | "destructive";
|
|
170
|
-
};
|
|
171
|
-
declare function MenubarItem({ className, inset, variant, ...props }: MenubarItemProps): react_jsx_runtime.JSX.Element;
|
|
172
|
-
declare function MenubarCheckboxItem({ className, children, checked, ...props }: ComponentProps<typeof MenubarPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
173
|
-
declare function MenubarRadioItem({ className, children, ...props }: ComponentProps<typeof MenubarPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
174
|
-
type MenubarLabelProps = ComponentProps<typeof MenubarPrimitive.Label> & {
|
|
175
|
-
inset?: boolean;
|
|
176
|
-
};
|
|
177
|
-
declare function MenubarLabel({ className, inset, ...props }: MenubarLabelProps): react_jsx_runtime.JSX.Element;
|
|
178
|
-
declare function MenubarSeparator({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
179
|
-
declare function MenubarShortcut({ className, ...props }: ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
180
|
-
|
|
181
|
-
type NavigationMenuProps = ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
182
|
-
viewport?: boolean;
|
|
183
|
-
};
|
|
184
|
-
declare function NavigationMenu({ className, children, viewport, ...props }: NavigationMenuProps): react_jsx_runtime.JSX.Element;
|
|
185
|
-
declare function NavigationMenuList({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
186
|
-
declare function NavigationMenuItem({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
187
|
-
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
188
|
-
declare function NavigationMenuTrigger({ className, children, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
189
|
-
declare function NavigationMenuContent({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
190
|
-
declare function NavigationMenuLink({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Link>): react_jsx_runtime.JSX.Element;
|
|
191
|
-
declare function NavigationMenuViewport({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Viewport>): react_jsx_runtime.JSX.Element;
|
|
192
|
-
declare function NavigationMenuIndicator({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Indicator>): react_jsx_runtime.JSX.Element;
|
|
193
|
-
|
|
194
|
-
declare const toggleVariants: (props?: ({
|
|
195
|
-
variant?: "default" | "outline" | null | undefined;
|
|
196
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
197
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
198
|
-
declare function Toggle({ className, variant, size, ...props }: ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
199
|
-
|
|
200
|
-
type ToggleGroupProps = ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>;
|
|
201
|
-
declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
|
|
202
|
-
type ToggleGroupItemProps = ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>;
|
|
203
|
-
declare function ToggleGroupItem({ className, children, variant, size, ...props }: ToggleGroupItemProps): react_jsx_runtime.JSX.Element;
|
|
204
|
-
|
|
205
|
-
interface ComboboxOption {
|
|
206
|
-
value: string | number | boolean;
|
|
207
|
-
label: string;
|
|
208
|
-
}
|
|
209
|
-
interface ComboboxProps {
|
|
210
|
-
options: ComboboxOption[];
|
|
211
|
-
value?: string | number | boolean;
|
|
212
|
-
onValueChange?: (value: string | number | boolean | undefined) => void;
|
|
213
|
-
placeholder?: string;
|
|
214
|
-
searchPlaceholder?: string;
|
|
215
|
-
emptyText?: string;
|
|
216
|
-
disabled?: boolean;
|
|
217
|
-
className?: string;
|
|
218
|
-
id?: string;
|
|
219
|
-
}
|
|
220
|
-
declare function Combobox({ options, value, onValueChange, placeholder, searchPlaceholder, emptyText, disabled, className, id, }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
221
|
-
|
|
222
|
-
interface LabelProps extends ComponentProps<typeof LabelPrimitive.Root> {
|
|
223
|
-
}
|
|
224
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
225
|
-
|
|
226
|
-
export { SelectGroup as $, MenubarRadioItem as A, MenubarSeparator as B, Checkbox as C, DropdownMenu as D, MenubarShortcut as E, MenubarSub as F, MenubarSubContent as G, MenubarSubTrigger as H, MenubarTrigger as I, NavigationMenuContent as J, NavigationMenuIndicator as K, Label as L, Menubar as M, NavigationMenu as N, NavigationMenuItem as O, NavigationMenuLink as P, NavigationMenuList as Q, NavigationMenuTrigger as R, NavigationMenuViewport as S, ResizableHandle as T, ResizablePanel as U, ResizablePanelGroup as V, ScrollArea as W, ScrollBar as X, type ScrollBarProps as Y, Select as Z, SelectContent as _, type CheckboxProps as a, SelectItem as a0, SelectLabel as a1, SelectScrollDownButton as a2, SelectScrollUpButton as a3, SelectSeparator as a4, SelectTrigger as a5, SelectValue as a6, Sidebar as a7, SidebarContent as a8, SidebarFooter as a9, Tooltip as aA, TooltipContent as aB, TooltipProvider as aC, TooltipTrigger as aD, navigationMenuTriggerStyle as aE, toggleVariants as aF, useSidebar as aG, SidebarGroup as aa, SidebarGroupAction as ab, SidebarGroupContent as ac, SidebarGroupLabel as ad, SidebarHeader as ae, SidebarInput as af, SidebarInset as ag, SidebarMenu as ah, SidebarMenuAction as ai, SidebarMenuBadge as aj, SidebarMenuButton as ak, SidebarMenuItem as al, SidebarMenuSkeleton as am, SidebarMenuSub as an, SidebarMenuSubButton as ao, SidebarMenuSubItem as ap, SidebarProvider as aq, SidebarRail as ar, SidebarSeparator as as, SidebarTrigger as at, Slider as au, Switch as av, type SwitchProps as aw, Toggle as ax, ToggleGroup as ay, ToggleGroupItem as az, Combobox as b, type ComboboxOption as c, DropdownMenuCheckboxItem as d, DropdownMenuContent as e, DropdownMenuGroup as f, DropdownMenuItem as g, DropdownMenuLabel as h, DropdownMenuPortal as i, DropdownMenuRadioGroup as j, DropdownMenuRadioItem as k, DropdownMenuSeparator as l, DropdownMenuShortcut as m, DropdownMenuSub as n, DropdownMenuSubContent as o, DropdownMenuSubTrigger as p, DropdownMenuTrigger as q, type LabelProps as r, MenubarCheckboxItem as s, MenubarContent as t, MenubarGroup as u, MenubarItem as v, MenubarLabel as w, MenubarMenu as x, MenubarPortal as y, MenubarRadioGroup as z };
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentProps, ComponentPropsWithoutRef } from 'react';
|
|
3
|
-
import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
|
|
4
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
-
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
6
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
|
-
import { a as ButtonProps } from './button-1dWvP9Ib.mjs';
|
|
8
|
-
import { VariantProps } from 'class-variance-authority';
|
|
9
|
-
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
10
|
-
import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
|
|
11
|
-
import * as ResizablePrimitive from 'react-resizable-panels';
|
|
12
|
-
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
13
|
-
import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
14
|
-
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
15
|
-
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
16
|
-
import * as NavigationMenuPrimitive from '@radix-ui/react-navigation-menu';
|
|
17
|
-
import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
|
|
18
|
-
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
|
19
|
-
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
20
|
-
|
|
21
|
-
interface CheckboxProps extends ComponentProps<typeof CheckboxPrimitive.Root> {
|
|
22
|
-
}
|
|
23
|
-
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
24
|
-
|
|
25
|
-
declare function DropdownMenu({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
26
|
-
declare function DropdownMenuPortal({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
27
|
-
declare function DropdownMenuTrigger({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
28
|
-
declare function DropdownMenuGroup({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
29
|
-
declare function DropdownMenuRadioGroup({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
30
|
-
declare function DropdownMenuSub({ ...props }: ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
31
|
-
type DropdownMenuSubTriggerProps = ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
|
|
32
|
-
inset?: boolean;
|
|
33
|
-
};
|
|
34
|
-
declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: DropdownMenuSubTriggerProps): react_jsx_runtime.JSX.Element;
|
|
35
|
-
declare function DropdownMenuSubContent({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
36
|
-
declare function DropdownMenuContent({ className, sideOffset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
37
|
-
declare function DropdownMenuItem({ className, inset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Item> & {
|
|
38
|
-
inset?: boolean;
|
|
39
|
-
}): react_jsx_runtime.JSX.Element;
|
|
40
|
-
declare function DropdownMenuCheckboxItem({ className, children, checked, ...props }: ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
41
|
-
declare function DropdownMenuRadioItem({ className, children, ...props }: ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
42
|
-
declare function DropdownMenuLabel({ className, inset, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Label> & {
|
|
43
|
-
inset?: boolean;
|
|
44
|
-
}): react_jsx_runtime.JSX.Element;
|
|
45
|
-
declare function DropdownMenuSeparator({ className, ...props }: ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
46
|
-
declare function DropdownMenuShortcut({ className, ...props }: ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
47
|
-
|
|
48
|
-
declare function TooltipProvider({ delayDuration, ...props }: ComponentProps<typeof TooltipPrimitive.Provider>): react_jsx_runtime.JSX.Element;
|
|
49
|
-
declare function Tooltip({ ...props }: ComponentProps<typeof TooltipPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
50
|
-
declare function TooltipTrigger({ className, ...props }: ComponentProps<typeof TooltipPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
51
|
-
declare function TooltipContent({ className, sideOffset, ...props }: ComponentProps<typeof TooltipPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
52
|
-
|
|
53
|
-
type SidebarContext = {
|
|
54
|
-
state: "expanded" | "collapsed";
|
|
55
|
-
open: boolean;
|
|
56
|
-
setOpen: (open: boolean) => void;
|
|
57
|
-
openMobile: boolean;
|
|
58
|
-
setOpenMobile: (open: boolean) => void;
|
|
59
|
-
isMobile: boolean;
|
|
60
|
-
toggleSidebar: () => void;
|
|
61
|
-
hoverOpen: boolean;
|
|
62
|
-
setHoverOpen: (open: boolean) => void;
|
|
63
|
-
isHoverExpanded: boolean;
|
|
64
|
-
};
|
|
65
|
-
declare const SidebarContext: React.Context<SidebarContext | null>;
|
|
66
|
-
declare function useSidebar(): SidebarContext;
|
|
67
|
-
declare const SidebarProvider: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
68
|
-
defaultOpen?: boolean;
|
|
69
|
-
open?: boolean;
|
|
70
|
-
onOpenChange?: (open: boolean) => void;
|
|
71
|
-
storageKey?: string;
|
|
72
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
73
|
-
declare const Sidebar: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
74
|
-
side?: "left" | "right";
|
|
75
|
-
variant?: "sidebar" | "floating" | "inset";
|
|
76
|
-
collapsible?: "offcanvas" | "icon" | "none";
|
|
77
|
-
hoverExpandEnabled?: boolean;
|
|
78
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
79
|
-
declare const SidebarTrigger: React.ForwardRefExoticComponent<Omit<ButtonProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
80
|
-
declare const SidebarRail: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
81
|
-
declare const SidebarInset: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
82
|
-
declare const SidebarInput: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
83
|
-
declare const SidebarHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
84
|
-
declare const SidebarFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
85
|
-
declare const SidebarSeparator: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
86
|
-
declare const SidebarContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
87
|
-
declare const SidebarGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
88
|
-
declare const SidebarGroupLabel: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
89
|
-
asChild?: boolean;
|
|
90
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
91
|
-
declare const SidebarGroupAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
92
|
-
asChild?: boolean;
|
|
93
|
-
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
94
|
-
declare const SidebarGroupContent: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
95
|
-
declare const SidebarMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
96
|
-
declare const SidebarMenuItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
97
|
-
declare const SidebarMenuButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
98
|
-
asChild?: boolean;
|
|
99
|
-
isActive?: boolean;
|
|
100
|
-
tooltip?: string | React.ComponentProps<typeof TooltipContent>;
|
|
101
|
-
} & VariantProps<(props?: ({
|
|
102
|
-
variant?: "default" | "outline" | null | undefined;
|
|
103
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
104
|
-
isActive?: boolean | null | undefined;
|
|
105
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
106
|
-
declare const SidebarMenuAction: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
107
|
-
asChild?: boolean;
|
|
108
|
-
showOnHover?: boolean;
|
|
109
|
-
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
110
|
-
declare const SidebarMenuBadge: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
111
|
-
declare const SidebarMenuSkeleton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
112
|
-
showIcon?: boolean;
|
|
113
|
-
}, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
114
|
-
declare const SidebarMenuSub: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
115
|
-
declare const SidebarMenuSubItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
116
|
-
declare const SidebarMenuSubButton: React.ForwardRefExoticComponent<Omit<React.ClassAttributes<HTMLAnchorElement> & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
117
|
-
asChild?: boolean;
|
|
118
|
-
size?: "sm" | "md";
|
|
119
|
-
isActive?: boolean;
|
|
120
|
-
}, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
|
|
121
|
-
|
|
122
|
-
type ScrollAreaProps = ComponentProps<typeof ScrollAreaPrimitive.Root> & Pick<ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar>, "orientation">;
|
|
123
|
-
declare function ScrollArea({ orientation, className, children, ...props }: ScrollAreaProps): react_jsx_runtime.JSX.Element;
|
|
124
|
-
interface ScrollBarProps extends ComponentProps<typeof ScrollAreaPrimitive.ScrollAreaScrollbar> {
|
|
125
|
-
}
|
|
126
|
-
declare function ScrollBar({ className, orientation, ...props }: ScrollBarProps): react_jsx_runtime.JSX.Element;
|
|
127
|
-
|
|
128
|
-
declare function ResizablePanelGroup({ className, ...props }: ComponentProps<typeof ResizablePrimitive.PanelGroup>): react_jsx_runtime.JSX.Element;
|
|
129
|
-
declare function ResizablePanel({ ...props }: ComponentProps<typeof ResizablePrimitive.Panel>): react_jsx_runtime.JSX.Element;
|
|
130
|
-
type ResizableHandleProps = ComponentProps<typeof ResizablePrimitive.PanelResizeHandle> & {
|
|
131
|
-
withHandle?: boolean;
|
|
132
|
-
};
|
|
133
|
-
declare function ResizableHandle({ withHandle, className, ...props }: ResizableHandleProps): react_jsx_runtime.JSX.Element;
|
|
134
|
-
|
|
135
|
-
declare function Slider({ className, ...props }: ComponentProps<typeof SliderPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
136
|
-
|
|
137
|
-
interface SwitchProps extends ComponentProps<typeof SwitchPrimitives.Root> {
|
|
138
|
-
}
|
|
139
|
-
declare function Switch({ className, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
|
|
140
|
-
|
|
141
|
-
declare function Select({ ...props }: ComponentProps<typeof SelectPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
142
|
-
declare function SelectGroup({ ...props }: ComponentProps<typeof SelectPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
143
|
-
declare function SelectValue({ ...props }: ComponentProps<typeof SelectPrimitive.Value>): react_jsx_runtime.JSX.Element;
|
|
144
|
-
type SelectTriggerProps = ComponentProps<typeof SelectPrimitive.Trigger> & {
|
|
145
|
-
size?: "sm" | "default";
|
|
146
|
-
};
|
|
147
|
-
declare function SelectTrigger({ className, children, ...props }: SelectTriggerProps): react_jsx_runtime.JSX.Element;
|
|
148
|
-
declare function SelectScrollUpButton({ className, ...props }: ComponentProps<typeof SelectPrimitive.ScrollUpButton>): react_jsx_runtime.JSX.Element;
|
|
149
|
-
declare function SelectScrollDownButton({ className, ...props }: ComponentProps<typeof SelectPrimitive.ScrollDownButton>): react_jsx_runtime.JSX.Element;
|
|
150
|
-
declare function SelectContent({ className, children, position, ...props }: ComponentProps<typeof SelectPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
151
|
-
declare function SelectLabel({ className, ...props }: ComponentProps<typeof SelectPrimitive.Label>): react_jsx_runtime.JSX.Element;
|
|
152
|
-
declare function SelectItem({ className, children, ...props }: ComponentProps<typeof SelectPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
153
|
-
declare function SelectSeparator({ className, ...props }: ComponentProps<typeof SelectPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
154
|
-
|
|
155
|
-
declare function MenubarMenu({ ...props }: ComponentProps<typeof MenubarPrimitive.Menu>): react_jsx_runtime.JSX.Element;
|
|
156
|
-
declare function MenubarGroup({ ...props }: ComponentProps<typeof MenubarPrimitive.Group>): react_jsx_runtime.JSX.Element;
|
|
157
|
-
declare function MenubarPortal({ ...props }: ComponentProps<typeof MenubarPrimitive.Portal>): react_jsx_runtime.JSX.Element;
|
|
158
|
-
declare function MenubarRadioGroup({ ...props }: ComponentProps<typeof MenubarPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
|
|
159
|
-
declare function Menubar({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Root>): react_jsx_runtime.JSX.Element;
|
|
160
|
-
declare function MenubarTrigger({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
161
|
-
declare function MenubarSubTrigger({ className, inset, children, ...props }: ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
|
|
162
|
-
inset?: boolean;
|
|
163
|
-
}): react_jsx_runtime.JSX.Element;
|
|
164
|
-
declare function MenubarSub({ ...props }: ComponentProps<typeof MenubarPrimitive.Sub>): react_jsx_runtime.JSX.Element;
|
|
165
|
-
declare function MenubarSubContent({ className, ...props }: ComponentProps<typeof MenubarPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
|
|
166
|
-
declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: ComponentProps<typeof MenubarPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
167
|
-
type MenubarItemProps = ComponentProps<typeof MenubarPrimitive.Item> & {
|
|
168
|
-
inset?: boolean;
|
|
169
|
-
variant?: "default" | "destructive";
|
|
170
|
-
};
|
|
171
|
-
declare function MenubarItem({ className, inset, variant, ...props }: MenubarItemProps): react_jsx_runtime.JSX.Element;
|
|
172
|
-
declare function MenubarCheckboxItem({ className, children, checked, ...props }: ComponentProps<typeof MenubarPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
|
|
173
|
-
declare function MenubarRadioItem({ className, children, ...props }: ComponentProps<typeof MenubarPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
|
|
174
|
-
type MenubarLabelProps = ComponentProps<typeof MenubarPrimitive.Label> & {
|
|
175
|
-
inset?: boolean;
|
|
176
|
-
};
|
|
177
|
-
declare function MenubarLabel({ className, inset, ...props }: MenubarLabelProps): react_jsx_runtime.JSX.Element;
|
|
178
|
-
declare function MenubarSeparator({ className, ...props }: ComponentProps<typeof MenubarPrimitive.Separator>): react_jsx_runtime.JSX.Element;
|
|
179
|
-
declare function MenubarShortcut({ className, ...props }: ComponentProps<"span">): react_jsx_runtime.JSX.Element;
|
|
180
|
-
|
|
181
|
-
type NavigationMenuProps = ComponentProps<typeof NavigationMenuPrimitive.Root> & {
|
|
182
|
-
viewport?: boolean;
|
|
183
|
-
};
|
|
184
|
-
declare function NavigationMenu({ className, children, viewport, ...props }: NavigationMenuProps): react_jsx_runtime.JSX.Element;
|
|
185
|
-
declare function NavigationMenuList({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.List>): react_jsx_runtime.JSX.Element;
|
|
186
|
-
declare function NavigationMenuItem({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Item>): react_jsx_runtime.JSX.Element;
|
|
187
|
-
declare const navigationMenuTriggerStyle: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
188
|
-
declare function NavigationMenuTrigger({ className, children, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
|
|
189
|
-
declare function NavigationMenuContent({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
|
|
190
|
-
declare function NavigationMenuLink({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Link>): react_jsx_runtime.JSX.Element;
|
|
191
|
-
declare function NavigationMenuViewport({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Viewport>): react_jsx_runtime.JSX.Element;
|
|
192
|
-
declare function NavigationMenuIndicator({ className, ...props }: ComponentProps<typeof NavigationMenuPrimitive.Indicator>): react_jsx_runtime.JSX.Element;
|
|
193
|
-
|
|
194
|
-
declare const toggleVariants: (props?: ({
|
|
195
|
-
variant?: "default" | "outline" | null | undefined;
|
|
196
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
197
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
198
|
-
declare function Toggle({ className, variant, size, ...props }: ComponentProps<typeof TogglePrimitive.Root> & VariantProps<typeof toggleVariants>): react_jsx_runtime.JSX.Element;
|
|
199
|
-
|
|
200
|
-
type ToggleGroupProps = ComponentProps<typeof ToggleGroupPrimitive.Root> & VariantProps<typeof toggleVariants>;
|
|
201
|
-
declare function ToggleGroup({ className, variant, size, children, ...props }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
|
|
202
|
-
type ToggleGroupItemProps = ComponentPropsWithoutRef<typeof ToggleGroupPrimitive.Item> & VariantProps<typeof toggleVariants>;
|
|
203
|
-
declare function ToggleGroupItem({ className, children, variant, size, ...props }: ToggleGroupItemProps): react_jsx_runtime.JSX.Element;
|
|
204
|
-
|
|
205
|
-
interface ComboboxOption {
|
|
206
|
-
value: string | number | boolean;
|
|
207
|
-
label: string;
|
|
208
|
-
}
|
|
209
|
-
interface ComboboxProps {
|
|
210
|
-
options: ComboboxOption[];
|
|
211
|
-
value?: string | number | boolean;
|
|
212
|
-
onValueChange?: (value: string | number | boolean | undefined) => void;
|
|
213
|
-
placeholder?: string;
|
|
214
|
-
searchPlaceholder?: string;
|
|
215
|
-
emptyText?: string;
|
|
216
|
-
disabled?: boolean;
|
|
217
|
-
className?: string;
|
|
218
|
-
id?: string;
|
|
219
|
-
}
|
|
220
|
-
declare function Combobox({ options, value, onValueChange, placeholder, searchPlaceholder, emptyText, disabled, className, id, }: ComboboxProps): react_jsx_runtime.JSX.Element;
|
|
221
|
-
|
|
222
|
-
interface LabelProps extends ComponentProps<typeof LabelPrimitive.Root> {
|
|
223
|
-
}
|
|
224
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelProps, "ref"> & React.RefAttributes<HTMLLabelElement>>;
|
|
225
|
-
|
|
226
|
-
export { SelectGroup as $, MenubarRadioItem as A, MenubarSeparator as B, Checkbox as C, DropdownMenu as D, MenubarShortcut as E, MenubarSub as F, MenubarSubContent as G, MenubarSubTrigger as H, MenubarTrigger as I, NavigationMenuContent as J, NavigationMenuIndicator as K, Label as L, Menubar as M, NavigationMenu as N, NavigationMenuItem as O, NavigationMenuLink as P, NavigationMenuList as Q, NavigationMenuTrigger as R, NavigationMenuViewport as S, ResizableHandle as T, ResizablePanel as U, ResizablePanelGroup as V, ScrollArea as W, ScrollBar as X, type ScrollBarProps as Y, Select as Z, SelectContent as _, type CheckboxProps as a, SelectItem as a0, SelectLabel as a1, SelectScrollDownButton as a2, SelectScrollUpButton as a3, SelectSeparator as a4, SelectTrigger as a5, SelectValue as a6, Sidebar as a7, SidebarContent as a8, SidebarFooter as a9, Tooltip as aA, TooltipContent as aB, TooltipProvider as aC, TooltipTrigger as aD, navigationMenuTriggerStyle as aE, toggleVariants as aF, useSidebar as aG, SidebarGroup as aa, SidebarGroupAction as ab, SidebarGroupContent as ac, SidebarGroupLabel as ad, SidebarHeader as ae, SidebarInput as af, SidebarInset as ag, SidebarMenu as ah, SidebarMenuAction as ai, SidebarMenuBadge as aj, SidebarMenuButton as ak, SidebarMenuItem as al, SidebarMenuSkeleton as am, SidebarMenuSub as an, SidebarMenuSubButton as ao, SidebarMenuSubItem as ap, SidebarProvider as aq, SidebarRail as ar, SidebarSeparator as as, SidebarTrigger as at, Slider as au, Switch as av, type SwitchProps as aw, Toggle as ax, ToggleGroup as ay, ToggleGroupItem as az, Combobox as b, type ComboboxOption as c, DropdownMenuCheckboxItem as d, DropdownMenuContent as e, DropdownMenuGroup as f, DropdownMenuItem as g, DropdownMenuLabel as h, DropdownMenuPortal as i, DropdownMenuRadioGroup as j, DropdownMenuRadioItem as k, DropdownMenuSeparator as l, DropdownMenuShortcut as m, DropdownMenuSub as n, DropdownMenuSubContent as o, DropdownMenuSubTrigger as p, DropdownMenuTrigger as q, type LabelProps as r, MenubarCheckboxItem as s, MenubarContent as t, MenubarGroup as u, MenubarItem as v, MenubarLabel as w, MenubarMenu as x, MenubarPortal as y, MenubarRadioGroup as z };
|