@alneas/appkit-react 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +53 -0
- package/README.md +85 -15
- package/consumer-ai/SKILL.md +12 -0
- package/consumer-ai/api-index.json +103754 -0
- package/consumer-ai/package-context.json +409 -0
- package/dist/ai/action/ExecutionHistory.cjs.map +1 -1
- package/dist/ai/action/ExecutionHistory.d.cts +32 -2
- package/dist/ai/action/ExecutionHistory.d.ts +32 -2
- package/dist/ai/action/ExecutionHistory.js.map +1 -1
- package/dist/ai/action/ScreenActionContext.cjs.map +1 -1
- package/dist/ai/action/ScreenActionContext.d.cts +15 -2
- package/dist/ai/action/ScreenActionContext.d.ts +15 -2
- package/dist/ai/action/ScreenActionContext.js.map +1 -1
- package/dist/ai/action/context.cjs.map +1 -1
- package/dist/ai/action/context.d.cts +19 -3
- package/dist/ai/action/context.d.ts +19 -3
- package/dist/ai/action/context.js.map +1 -1
- package/dist/ai/action/types.d.cts +35 -3
- package/dist/ai/action/types.d.ts +35 -3
- package/dist/ai/action/use-execution-session.cjs.map +1 -1
- package/dist/ai/action/use-execution-session.d.cts +17 -1
- package/dist/ai/action/use-execution-session.d.ts +17 -1
- package/dist/ai/action/use-execution-session.js.map +1 -1
- package/dist/ai/action/use-screen-action-registry.cjs.map +1 -1
- package/dist/ai/action/use-screen-action-registry.d.cts +77 -8
- package/dist/ai/action/use-screen-action-registry.d.ts +77 -8
- package/dist/ai/action/use-screen-action-registry.js.map +1 -1
- package/dist/ai/action/use-screen-action.cjs.map +1 -1
- package/dist/ai/action/use-screen-action.d.cts +23 -6
- package/dist/ai/action/use-screen-action.d.ts +23 -6
- package/dist/ai/action/use-screen-action.js.map +1 -1
- package/dist/ai/action/use-screen-context.cjs.map +1 -1
- package/dist/ai/action/use-screen-context.d.cts +42 -5
- package/dist/ai/action/use-screen-context.d.ts +42 -5
- package/dist/ai/action/use-screen-context.js.map +1 -1
- package/dist/ai/ai-chat/transport.cjs.map +1 -1
- package/dist/ai/ai-chat/transport.d.cts +35 -8
- package/dist/ai/ai-chat/transport.d.ts +35 -8
- package/dist/ai/ai-chat/transport.js.map +1 -1
- package/dist/ai/generative-ui/GenerativeUIRenderer.cjs.map +1 -1
- package/dist/ai/generative-ui/GenerativeUIRenderer.d.cts +21 -3
- package/dist/ai/generative-ui/GenerativeUIRenderer.d.ts +21 -3
- package/dist/ai/generative-ui/GenerativeUIRenderer.js.map +1 -1
- package/dist/ai/generative-ui/error-boundary.cjs.map +1 -1
- package/dist/ai/generative-ui/error-boundary.d.cts +98 -2
- package/dist/ai/generative-ui/error-boundary.d.ts +98 -2
- package/dist/ai/generative-ui/error-boundary.js.map +1 -1
- package/dist/ai/generative-ui/registry.cjs.map +1 -1
- package/dist/ai/generative-ui/registry.d.cts +96 -7
- package/dist/ai/generative-ui/registry.d.ts +96 -7
- package/dist/ai/generative-ui/registry.js.map +1 -1
- package/dist/ai/proposal/ProposalFieldReview.cjs.map +1 -1
- package/dist/ai/proposal/ProposalFieldReview.d.cts +170 -8
- package/dist/ai/proposal/ProposalFieldReview.d.ts +170 -8
- package/dist/ai/proposal/ProposalFieldReview.js.map +1 -1
- package/dist/ai/proposal/types.d.cts +97 -26
- package/dist/ai/proposal/types.d.ts +97 -26
- package/dist/ai/proposal/use-proposal-batch-review.cjs.map +1 -1
- package/dist/ai/proposal/use-proposal-batch-review.d.cts +133 -7
- package/dist/ai/proposal/use-proposal-batch-review.d.ts +133 -7
- package/dist/ai/proposal/use-proposal-batch-review.js.map +1 -1
- package/dist/ai/proposal/use-proposal-review.cjs.map +1 -1
- package/dist/ai/proposal/use-proposal-review.d.cts +47 -5
- package/dist/ai/proposal/use-proposal-review.d.ts +47 -5
- package/dist/ai/proposal/use-proposal-review.js.map +1 -1
- package/dist/avatar.svg +1 -0
- package/dist/consumer-ai/SKILL.md +6 -0
- package/dist/consumer-ai/api-index.json +103754 -0
- package/dist/consumer-ai/package-context.json +5 -3
- package/dist/mockServiceWorker.js +361 -0
- package/dist/styles.css +1 -1
- package/dist/tools/components/auth/AuthForms.cjs.map +1 -1
- package/dist/tools/components/auth/AuthForms.d.cts +131 -81
- package/dist/tools/components/auth/AuthForms.d.ts +131 -81
- package/dist/tools/components/auth/AuthForms.js.map +1 -1
- package/dist/tools/components/auth/AuthGuard.cjs.map +1 -1
- package/dist/tools/components/auth/AuthGuard.d.cts +31 -4
- package/dist/tools/components/auth/AuthGuard.d.ts +31 -4
- package/dist/tools/components/auth/AuthGuard.js.map +1 -1
- package/dist/tools/components/auth/AuthProvider.cjs.map +1 -1
- package/dist/tools/components/auth/AuthProvider.d.cts +39 -42
- package/dist/tools/components/auth/AuthProvider.d.ts +39 -42
- package/dist/tools/components/auth/AuthProvider.js.map +1 -1
- package/dist/tools/components/auth/ProtectedRoute.cjs.map +1 -1
- package/dist/tools/components/auth/ProtectedRoute.d.cts +75 -60
- package/dist/tools/components/auth/ProtectedRoute.d.ts +75 -60
- package/dist/tools/components/auth/ProtectedRoute.js.map +1 -1
- package/dist/tools/components/auth/SignInButton.cjs.map +1 -1
- package/dist/tools/components/auth/SignInButton.d.cts +26 -18
- package/dist/tools/components/auth/SignInButton.d.ts +26 -18
- package/dist/tools/components/auth/SignInButton.js.map +1 -1
- package/dist/tools/components/auth/UserProfileProvider.cjs.map +1 -1
- package/dist/tools/components/auth/UserProfileProvider.d.cts +48 -20
- package/dist/tools/components/auth/UserProfileProvider.d.ts +48 -20
- package/dist/tools/components/auth/UserProfileProvider.js.map +1 -1
- package/dist/tools/components/auth/adapters/better-auth-adapter.cjs.map +1 -1
- package/dist/tools/components/auth/adapters/better-auth-adapter.d.cts +371 -51
- package/dist/tools/components/auth/adapters/better-auth-adapter.d.ts +371 -51
- package/dist/tools/components/auth/adapters/better-auth-adapter.js.map +1 -1
- package/dist/tools/components/auth/adapters/mock-adapter.cjs.map +1 -1
- package/dist/tools/components/auth/adapters/mock-adapter.d.cts +149 -28
- package/dist/tools/components/auth/adapters/mock-adapter.d.ts +149 -28
- package/dist/tools/components/auth/adapters/mock-adapter.js.map +1 -1
- package/dist/tools/components/auth/auth-session.cjs.map +1 -1
- package/dist/tools/components/auth/auth-session.d.cts +147 -1
- package/dist/tools/components/auth/auth-session.d.ts +147 -1
- package/dist/tools/components/auth/auth-session.js.map +1 -1
- package/dist/tools/components/auth/session-cache.cjs.map +1 -1
- package/dist/tools/components/auth/session-cache.d.cts +88 -24
- package/dist/tools/components/auth/session-cache.d.ts +88 -24
- package/dist/tools/components/auth/session-cache.js.map +1 -1
- package/dist/tools/components/auth/types.cjs.map +1 -1
- package/dist/tools/components/auth/types.d.cts +329 -106
- package/dist/tools/components/auth/types.d.ts +329 -106
- package/dist/tools/components/auth/types.js.map +1 -1
- package/dist/tools/components/auth/useAuth.cjs.map +1 -1
- package/dist/tools/components/auth/useAuth.d.cts +110 -17
- package/dist/tools/components/auth/useAuth.d.ts +110 -17
- package/dist/tools/components/auth/useAuth.js.map +1 -1
- package/dist/tools/components/auth/useAuthGuard.cjs.map +1 -1
- package/dist/tools/components/auth/useAuthGuard.d.cts +49 -38
- package/dist/tools/components/auth/useAuthGuard.d.ts +49 -38
- package/dist/tools/components/auth/useAuthGuard.js.map +1 -1
- package/dist/tools/components/auth/useRoleCheck.cjs.map +1 -1
- package/dist/tools/components/auth/useRoleCheck.d.cts +48 -1
- package/dist/tools/components/auth/useRoleCheck.d.ts +48 -1
- package/dist/tools/components/auth/useRoleCheck.js.map +1 -1
- package/dist/tools/components/auth/useUserProfile.cjs.map +1 -1
- package/dist/tools/components/auth/useUserProfile.d.cts +66 -1
- package/dist/tools/components/auth/useUserProfile.d.ts +66 -1
- package/dist/tools/components/auth/useUserProfile.js.map +1 -1
- package/dist/tools/components/barcode/BarcodeGenerator.cjs.map +1 -1
- package/dist/tools/components/barcode/BarcodeGenerator.d.cts +32 -18
- package/dist/tools/components/barcode/BarcodeGenerator.d.ts +32 -18
- package/dist/tools/components/barcode/BarcodeGenerator.js.map +1 -1
- package/dist/tools/components/barcode/QRCodeGenerator.cjs +1 -1
- package/dist/tools/components/barcode/QRCodeGenerator.cjs.map +1 -1
- package/dist/tools/components/barcode/QRCodeGenerator.d.cts +20 -13
- package/dist/tools/components/barcode/QRCodeGenerator.d.ts +20 -13
- package/dist/tools/components/barcode/QRCodeGenerator.js +1 -1
- package/dist/tools/components/barcode/QRCodeGenerator.js.map +1 -1
- package/dist/tools/components/barcode/QRCodeScanner.cjs.map +1 -1
- package/dist/tools/components/barcode/QRCodeScanner.d.cts +32 -1
- package/dist/tools/components/barcode/QRCodeScanner.d.ts +32 -1
- package/dist/tools/components/barcode/QRCodeScanner.js.map +1 -1
- package/dist/tools/components/calendar/ResourceCalendar.cjs.map +1 -1
- package/dist/tools/components/calendar/ResourceCalendar.d.cts +17 -42
- package/dist/tools/components/calendar/ResourceCalendar.d.ts +17 -42
- package/dist/tools/components/calendar/ResourceCalendar.js.map +1 -1
- package/dist/tools/components/calendar/views/ResourceView.cjs +1 -1
- package/dist/tools/components/calendar/views/ResourceView.cjs.map +1 -1
- package/dist/tools/components/calendar/views/ResourceView.js +2 -2
- package/dist/tools/components/calendar/views/ResourceView.js.map +1 -1
- package/dist/tools/components/chart/ComposedChart.cjs.map +1 -1
- package/dist/tools/components/chart/ComposedChart.d.cts +54 -1
- package/dist/tools/components/chart/ComposedChart.d.ts +54 -1
- package/dist/tools/components/chart/ComposedChart.js.map +1 -1
- package/dist/tools/components/chart/SimpleAreaChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimpleAreaChart.d.cts +41 -1
- package/dist/tools/components/chart/SimpleAreaChart.d.ts +41 -1
- package/dist/tools/components/chart/SimpleAreaChart.js.map +1 -1
- package/dist/tools/components/chart/SimpleBarChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimpleBarChart.d.cts +34 -24
- package/dist/tools/components/chart/SimpleBarChart.d.ts +34 -24
- package/dist/tools/components/chart/SimpleBarChart.js.map +1 -1
- package/dist/tools/components/chart/SimpleLineChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimpleLineChart.d.cts +31 -28
- package/dist/tools/components/chart/SimpleLineChart.d.ts +31 -28
- package/dist/tools/components/chart/SimpleLineChart.js.map +1 -1
- package/dist/tools/components/chart/SimplePieChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimplePieChart.d.cts +28 -22
- package/dist/tools/components/chart/SimplePieChart.d.ts +28 -22
- package/dist/tools/components/chart/SimplePieChart.js.map +1 -1
- package/dist/tools/components/chart/SimpleRadarChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimpleRadarChart.d.cts +38 -1
- package/dist/tools/components/chart/SimpleRadarChart.d.ts +38 -1
- package/dist/tools/components/chart/SimpleRadarChart.js.map +1 -1
- package/dist/tools/components/chart/SimpleScatterChart.cjs.map +1 -1
- package/dist/tools/components/chart/SimpleScatterChart.d.cts +44 -1
- package/dist/tools/components/chart/SimpleScatterChart.d.ts +44 -1
- package/dist/tools/components/chart/SimpleScatterChart.js.map +1 -1
- package/dist/tools/components/chart/StackedBarChart.cjs.map +1 -1
- package/dist/tools/components/chart/StackedBarChart.d.cts +38 -1
- package/dist/tools/components/chart/StackedBarChart.d.ts +38 -1
- package/dist/tools/components/chart/StackedBarChart.js.map +1 -1
- package/dist/tools/components/data-table/data-table.cjs +1 -1
- package/dist/tools/components/data-table/data-table.cjs.map +1 -1
- package/dist/tools/components/data-table/data-table.js +286 -263
- package/dist/tools/components/data-table/data-table.js.map +1 -1
- package/dist/tools/components/data-table/table-utils.cjs.map +1 -1
- package/dist/tools/components/data-table/table-utils.d.cts +45 -35
- package/dist/tools/components/data-table/table-utils.d.ts +45 -35
- package/dist/tools/components/data-table/table-utils.js.map +1 -1
- package/dist/tools/components/editable-table/editable-table.cjs +1 -1
- package/dist/tools/components/editable-table/editable-table.cjs.map +1 -1
- package/dist/tools/components/editable-table/editable-table.js +15 -2
- package/dist/tools/components/editable-table/editable-table.js.map +1 -1
- package/dist/tools/components/error/ErrorDialog.cjs +1 -1
- package/dist/tools/components/error/ErrorDialog.cjs.map +1 -1
- package/dist/tools/components/error/ErrorDialog.js +1 -1
- package/dist/tools/components/error/ErrorDialog.js.map +1 -1
- package/dist/tools/components/error/ErrorInline.cjs +1 -1
- package/dist/tools/components/error/ErrorInline.cjs.map +1 -1
- package/dist/tools/components/error/ErrorInline.js +1 -1
- package/dist/tools/components/error/ErrorInline.js.map +1 -1
- package/dist/tools/components/error/ErrorNotification.cjs +1 -1
- package/dist/tools/components/error/ErrorNotification.cjs.map +1 -1
- package/dist/tools/components/error/ErrorNotification.js +10 -10
- package/dist/tools/components/error/ErrorNotification.js.map +1 -1
- package/dist/tools/components/file-browser/FilePreview.cjs +1 -1
- package/dist/tools/components/file-browser/FilePreview.cjs.map +1 -1
- package/dist/tools/components/file-browser/FilePreview.js +28 -26
- package/dist/tools/components/file-browser/FilePreview.js.map +1 -1
- package/dist/tools/components/filter/filter.cjs.map +1 -1
- package/dist/tools/components/filter/filter.d.cts +23 -34
- package/dist/tools/components/filter/filter.d.ts +23 -34
- package/dist/tools/components/filter/filter.js.map +1 -1
- package/dist/tools/components/form/EnhancedDetailPage.cjs.map +1 -1
- package/dist/tools/components/form/EnhancedDetailPage.d.cts +47 -42
- package/dist/tools/components/form/EnhancedDetailPage.d.ts +47 -42
- package/dist/tools/components/form/EnhancedDetailPage.js.map +1 -1
- package/dist/tools/components/form/form-grid.cjs.map +1 -1
- package/dist/tools/components/form/form-grid.d.cts +44 -22
- package/dist/tools/components/form/form-grid.d.ts +44 -22
- package/dist/tools/components/form/form-grid.js.map +1 -1
- package/dist/tools/components/gantt/GanttChart.cjs +1 -1
- package/dist/tools/components/gantt/GanttChart.cjs.map +1 -1
- package/dist/tools/components/gantt/GanttChart.d.cts +20 -1
- package/dist/tools/components/gantt/GanttChart.d.ts +20 -1
- package/dist/tools/components/gantt/GanttChart.js +3 -0
- package/dist/tools/components/gantt/GanttChart.js.map +1 -1
- package/dist/tools/components/gantt/components/GanttTaskBar.cjs +1 -1
- package/dist/tools/components/gantt/components/GanttTaskBar.cjs.map +1 -1
- package/dist/tools/components/gantt/components/GanttTaskBar.js +2 -1
- package/dist/tools/components/gantt/components/GanttTaskBar.js.map +1 -1
- package/dist/tools/components/header/header.cjs +1 -1
- package/dist/tools/components/header/header.cjs.map +1 -1
- package/dist/tools/components/header/header.d.cts +103 -40
- package/dist/tools/components/header/header.d.ts +103 -40
- package/dist/tools/components/header/header.js +1 -1
- package/dist/tools/components/header/header.js.map +1 -1
- package/dist/tools/components/i18n/LanguageSwitcher.cjs.map +1 -1
- package/dist/tools/components/i18n/LanguageSwitcher.d.cts +18 -14
- package/dist/tools/components/i18n/LanguageSwitcher.d.ts +18 -14
- package/dist/tools/components/i18n/LanguageSwitcher.js.map +1 -1
- package/dist/tools/components/kanban/KanbanBoard.cjs +1 -1
- package/dist/tools/components/kanban/KanbanBoard.cjs.map +1 -1
- package/dist/tools/components/kanban/KanbanBoard.d.cts +16 -34
- package/dist/tools/components/kanban/KanbanBoard.d.ts +16 -34
- package/dist/tools/components/kanban/KanbanBoard.js +3 -0
- package/dist/tools/components/kanban/KanbanBoard.js.map +1 -1
- package/dist/tools/components/kanban/KanbanColumn.cjs +1 -1
- package/dist/tools/components/kanban/KanbanColumn.cjs.map +1 -1
- package/dist/tools/components/kanban/KanbanColumn.js +1 -1
- package/dist/tools/components/kanban/KanbanColumn.js.map +1 -1
- package/dist/tools/components/kanban/kanban-compound.cjs +1 -1
- package/dist/tools/components/kanban/kanban-compound.cjs.map +1 -1
- package/dist/tools/components/kanban/kanban-compound.js +4 -1
- package/dist/tools/components/kanban/kanban-compound.js.map +1 -1
- package/dist/tools/components/kanban/kanban-primitives.cjs +1 -1
- package/dist/tools/components/kanban/kanban-primitives.cjs.map +1 -1
- package/dist/tools/components/kanban/kanban-primitives.js +0 -1
- package/dist/tools/components/kanban/kanban-primitives.js.map +1 -1
- package/dist/tools/components/priority-queue/PriorityCard.cjs +1 -1
- package/dist/tools/components/priority-queue/PriorityCard.cjs.map +1 -1
- package/dist/tools/components/priority-queue/PriorityCard.js +3 -1
- package/dist/tools/components/priority-queue/PriorityCard.js.map +1 -1
- package/dist/tools/components/sidebar/SmartSidebar.cjs.map +1 -1
- package/dist/tools/components/sidebar/SmartSidebar.d.cts +41 -43
- package/dist/tools/components/sidebar/SmartSidebar.d.ts +41 -43
- package/dist/tools/components/sidebar/SmartSidebar.js.map +1 -1
- package/dist/tools/components/splash/SplashScreen.cjs.map +1 -1
- package/dist/tools/components/splash/SplashScreen.d.cts +43 -68
- package/dist/tools/components/splash/SplashScreen.d.ts +43 -68
- package/dist/tools/components/splash/SplashScreen.js.map +1 -1
- package/dist/tools/components/workflow/WorkflowStatusPanel.cjs +1 -1
- package/dist/tools/components/workflow/WorkflowStatusPanel.cjs.map +1 -1
- package/dist/tools/components/workflow/WorkflowStatusPanel.js +2 -2
- package/dist/tools/components/workflow/WorkflowStatusPanel.js.map +1 -1
- package/dist/tools/lib/data-access/data-access-context.cjs.map +1 -1
- package/dist/tools/lib/data-access/data-access-context.d.cts +15 -6
- package/dist/tools/lib/data-access/data-access-context.d.ts +15 -6
- package/dist/tools/lib/data-access/data-access-context.js.map +1 -1
- package/dist/tools/lib/data-access/react-query-provider.cjs.map +1 -1
- package/dist/tools/lib/data-access/react-query-provider.d.cts +19 -2
- package/dist/tools/lib/data-access/react-query-provider.d.ts +19 -2
- package/dist/tools/lib/data-access/react-query-provider.js.map +1 -1
- package/dist/tools/lib/data-access/react-query.cjs.map +1 -1
- package/dist/tools/lib/data-access/react-query.d.cts +365 -90
- package/dist/tools/lib/data-access/react-query.d.ts +365 -90
- package/dist/tools/lib/data-access/react-query.js.map +1 -1
- package/dist/tools/lib/error/AppError.cjs.map +1 -1
- package/dist/tools/lib/error/AppError.d.cts +157 -63
- package/dist/tools/lib/error/AppError.d.ts +157 -63
- package/dist/tools/lib/error/AppError.js.map +1 -1
- package/dist/tools/lib/hooks/useAsyncWithTimeout.cjs.map +1 -1
- package/dist/tools/lib/hooks/useAsyncWithTimeout.d.cts +79 -26
- package/dist/tools/lib/hooks/useAsyncWithTimeout.d.ts +79 -26
- package/dist/tools/lib/hooks/useAsyncWithTimeout.js.map +1 -1
- package/dist/tools/lib/hooks/useError.cjs.map +1 -1
- package/dist/tools/lib/hooks/useError.d.cts +51 -16
- package/dist/tools/lib/hooks/useError.d.ts +51 -16
- package/dist/tools/lib/hooks/useError.js.map +1 -1
- package/dist/tools/lib/schema/ajv.cjs +1 -1
- package/dist/tools/lib/schema/ajv.cjs.map +1 -1
- package/dist/tools/lib/schema/ajv.d.cts +19 -8
- package/dist/tools/lib/schema/ajv.d.ts +19 -8
- package/dist/tools/lib/schema/ajv.js +2 -1
- package/dist/tools/lib/schema/ajv.js.map +1 -1
- package/dist/tools/lib/state/error-store.cjs.map +1 -1
- package/dist/tools/lib/state/error-store.d.cts +61 -10
- package/dist/tools/lib/state/error-store.d.ts +61 -10
- package/dist/tools/lib/state/error-store.js.map +1 -1
- package/dist/tools/lib/state/store-factory.cjs.map +1 -1
- package/dist/tools/lib/state/store-factory.d.cts +25 -4
- package/dist/tools/lib/state/store-factory.d.ts +25 -4
- package/dist/tools/lib/state/store-factory.js.map +1 -1
- package/dist/tools/lib/state/ui-store.cjs.map +1 -1
- package/dist/tools/lib/state/ui-store.d.cts +39 -0
- package/dist/tools/lib/state/ui-store.d.ts +39 -0
- package/dist/tools/lib/state/ui-store.js.map +1 -1
- package/dist/ui/components/theme/theme-context.cjs.map +1 -1
- package/dist/ui/components/theme/theme-context.d.cts +171 -1
- package/dist/ui/components/theme/theme-context.d.ts +171 -1
- package/dist/ui/components/theme/theme-context.js.map +1 -1
- package/dist/ui/components/theme/theme-provider.cjs.map +1 -1
- package/dist/ui/components/theme/theme-provider.d.cts +31 -19
- package/dist/ui/components/theme/theme-provider.d.ts +31 -19
- package/dist/ui/components/theme/theme-provider.js.map +1 -1
- package/dist/ui/components/theme/theme-script.cjs.map +1 -1
- package/dist/ui/components/theme/theme-script.d.cts +16 -1
- package/dist/ui/components/theme/theme-script.d.ts +16 -1
- package/dist/ui/components/theme/theme-script.js.map +1 -1
- package/dist/ui/components/theme/theme-switcher.cjs +1 -1
- package/dist/ui/components/theme/theme-switcher.cjs.map +1 -1
- package/dist/ui/components/theme/theme-switcher.d.cts +82 -13
- package/dist/ui/components/theme/theme-switcher.d.ts +82 -13
- package/dist/ui/components/theme/theme-switcher.js +8 -0
- package/dist/ui/components/theme/theme-switcher.js.map +1 -1
- package/dist/ui/components/ui/accordion.cjs.map +1 -1
- package/dist/ui/components/ui/accordion.d.cts +60 -0
- package/dist/ui/components/ui/accordion.d.ts +60 -0
- package/dist/ui/components/ui/accordion.js.map +1 -1
- package/dist/ui/components/ui/adjustable-pane.cjs.map +1 -1
- package/dist/ui/components/ui/adjustable-pane.d.cts +44 -26
- package/dist/ui/components/ui/adjustable-pane.d.ts +44 -26
- package/dist/ui/components/ui/adjustable-pane.js.map +1 -1
- package/dist/ui/components/ui/alert-dialog.cjs.map +1 -1
- package/dist/ui/components/ui/alert-dialog.d.cts +179 -2
- package/dist/ui/components/ui/alert-dialog.d.ts +179 -2
- package/dist/ui/components/ui/alert-dialog.js.map +1 -1
- package/dist/ui/components/ui/alert.cjs.map +1 -1
- package/dist/ui/components/ui/alert.d.cts +52 -4
- package/dist/ui/components/ui/alert.d.ts +52 -4
- package/dist/ui/components/ui/alert.js.map +1 -1
- package/dist/ui/components/ui/aspect-ratio.cjs.map +1 -1
- package/dist/ui/components/ui/aspect-ratio.d.cts +16 -1
- package/dist/ui/components/ui/aspect-ratio.d.ts +16 -1
- package/dist/ui/components/ui/aspect-ratio.js.map +1 -1
- package/dist/ui/components/ui/avatar.cjs.map +1 -1
- package/dist/ui/components/ui/avatar.d.cts +87 -3
- package/dist/ui/components/ui/avatar.d.ts +87 -3
- package/dist/ui/components/ui/avatar.js.map +1 -1
- package/dist/ui/components/ui/badge-components.cjs.map +1 -1
- package/dist/ui/components/ui/badge-components.d.cts +13 -1
- package/dist/ui/components/ui/badge-components.d.ts +13 -1
- package/dist/ui/components/ui/badge-components.js.map +1 -1
- package/dist/ui/components/ui/badge-variants.cjs.map +1 -1
- package/dist/ui/components/ui/badge-variants.d.cts +15 -0
- package/dist/ui/components/ui/badge-variants.d.ts +15 -0
- package/dist/ui/components/ui/badge-variants.js.map +1 -1
- package/dist/ui/components/ui/breadcrumb.cjs.map +1 -1
- package/dist/ui/components/ui/breadcrumb.d.cts +91 -7
- package/dist/ui/components/ui/breadcrumb.d.ts +91 -7
- package/dist/ui/components/ui/breadcrumb.js.map +1 -1
- package/dist/ui/components/ui/button-components.cjs.map +1 -1
- package/dist/ui/components/ui/button-components.d.cts +18 -6
- package/dist/ui/components/ui/button-components.d.ts +18 -6
- package/dist/ui/components/ui/button-components.js.map +1 -1
- package/dist/ui/components/ui/button-group-components.cjs.map +1 -1
- package/dist/ui/components/ui/button-group-components.d.cts +39 -3
- package/dist/ui/components/ui/button-group-components.d.ts +39 -3
- package/dist/ui/components/ui/button-group-components.js.map +1 -1
- package/dist/ui/components/ui/button-group-variants.cjs.map +1 -1
- package/dist/ui/components/ui/button-group-variants.d.cts +15 -0
- package/dist/ui/components/ui/button-group-variants.d.ts +15 -0
- package/dist/ui/components/ui/button-group-variants.js.map +1 -1
- package/dist/ui/components/ui/button-variants.cjs.map +1 -1
- package/dist/ui/components/ui/button-variants.d.cts +13 -2
- package/dist/ui/components/ui/button-variants.d.ts +13 -2
- package/dist/ui/components/ui/button-variants.js.map +1 -1
- package/dist/ui/components/ui/card.cjs.map +1 -1
- package/dist/ui/components/ui/card.d.cts +106 -2
- package/dist/ui/components/ui/card.d.ts +106 -2
- package/dist/ui/components/ui/card.js.map +1 -1
- package/dist/ui/components/ui/checkbox-group.cjs.map +1 -1
- package/dist/ui/components/ui/checkbox-group.d.cts +13 -1
- package/dist/ui/components/ui/checkbox-group.d.ts +13 -1
- package/dist/ui/components/ui/checkbox-group.js.map +1 -1
- package/dist/ui/components/ui/checkbox.cjs.map +1 -1
- package/dist/ui/components/ui/checkbox.d.cts +17 -6
- package/dist/ui/components/ui/checkbox.d.ts +17 -6
- package/dist/ui/components/ui/checkbox.js.map +1 -1
- package/dist/ui/components/ui/collapsible.cjs.map +1 -1
- package/dist/ui/components/ui/collapsible.d.cts +39 -3
- package/dist/ui/components/ui/collapsible.d.ts +39 -3
- package/dist/ui/components/ui/collapsible.js.map +1 -1
- package/dist/ui/components/ui/combobox-components.cjs.map +1 -1
- package/dist/ui/components/ui/combobox-components.d.cts +209 -14
- package/dist/ui/components/ui/combobox-components.d.ts +209 -14
- package/dist/ui/components/ui/combobox-components.js.map +1 -1
- package/dist/ui/components/ui/combobox-hooks.cjs.map +1 -1
- package/dist/ui/components/ui/combobox-hooks.d.cts +13 -1
- package/dist/ui/components/ui/combobox-hooks.d.ts +13 -1
- package/dist/ui/components/ui/combobox-hooks.js.map +1 -1
- package/dist/ui/components/ui/command.cjs.map +1 -1
- package/dist/ui/components/ui/command.d.cts +132 -9
- package/dist/ui/components/ui/command.d.ts +132 -9
- package/dist/ui/components/ui/command.js.map +1 -1
- package/dist/ui/components/ui/context-menu.cjs.map +1 -1
- package/dist/ui/components/ui/context-menu.d.cts +233 -2
- package/dist/ui/components/ui/context-menu.d.ts +233 -2
- package/dist/ui/components/ui/context-menu.js.map +1 -1
- package/dist/ui/components/ui/dialog.cjs.map +1 -1
- package/dist/ui/components/ui/dialog.d.cts +157 -5
- package/dist/ui/components/ui/dialog.d.ts +157 -5
- package/dist/ui/components/ui/dialog.js.map +1 -1
- package/dist/ui/components/ui/drawer.cjs.map +1 -1
- package/dist/ui/components/ui/drawer.d.cts +130 -10
- package/dist/ui/components/ui/drawer.d.ts +130 -10
- package/dist/ui/components/ui/drawer.js.map +1 -1
- package/dist/ui/components/ui/dropdown-menu.cjs.map +1 -1
- package/dist/ui/components/ui/dropdown-menu.d.cts +225 -6
- package/dist/ui/components/ui/dropdown-menu.d.ts +225 -6
- package/dist/ui/components/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/components/ui/empty.cjs.map +1 -1
- package/dist/ui/components/ui/empty.d.cts +78 -6
- package/dist/ui/components/ui/empty.d.ts +78 -6
- package/dist/ui/components/ui/empty.js.map +1 -1
- package/dist/ui/components/ui/field.cjs.map +1 -1
- package/dist/ui/components/ui/field.d.cts +180 -6
- package/dist/ui/components/ui/field.d.ts +180 -6
- package/dist/ui/components/ui/field.js.map +1 -1
- package/dist/ui/components/ui/file-icon.cjs.map +1 -1
- package/dist/ui/components/ui/file-icon.d.cts +32 -4
- package/dist/ui/components/ui/file-icon.d.ts +32 -4
- package/dist/ui/components/ui/file-icon.js.map +1 -1
- package/dist/ui/components/ui/hover-card.cjs.map +1 -1
- package/dist/ui/components/ui/hover-card.d.cts +39 -3
- package/dist/ui/components/ui/hover-card.d.ts +39 -3
- package/dist/ui/components/ui/hover-card.js.map +1 -1
- package/dist/ui/components/ui/input-group.cjs.map +1 -1
- package/dist/ui/components/ui/input-group.d.cts +84 -6
- package/dist/ui/components/ui/input-group.d.ts +84 -6
- package/dist/ui/components/ui/input-group.js.map +1 -1
- package/dist/ui/components/ui/input-otp.cjs.map +1 -1
- package/dist/ui/components/ui/input-otp.d.cts +58 -4
- package/dist/ui/components/ui/input-otp.d.ts +58 -4
- package/dist/ui/components/ui/input-otp.js.map +1 -1
- package/dist/ui/components/ui/input.cjs.map +1 -1
- package/dist/ui/components/ui/input.d.cts +18 -10
- package/dist/ui/components/ui/input.d.ts +18 -10
- package/dist/ui/components/ui/input.js.map +1 -1
- package/dist/ui/components/ui/item.cjs.map +1 -1
- package/dist/ui/components/ui/item.d.cts +130 -10
- package/dist/ui/components/ui/item.d.ts +130 -10
- package/dist/ui/components/ui/item.js.map +1 -1
- package/dist/ui/components/ui/kbd.cjs.map +1 -1
- package/dist/ui/components/ui/kbd.d.cts +26 -2
- package/dist/ui/components/ui/kbd.d.ts +26 -2
- package/dist/ui/components/ui/kbd.js.map +1 -1
- package/dist/ui/components/ui/label.cjs.map +1 -1
- package/dist/ui/components/ui/label.d.cts +15 -0
- package/dist/ui/components/ui/label.d.ts +15 -0
- package/dist/ui/components/ui/label.js.map +1 -1
- package/dist/ui/components/ui/layout.cjs +1 -1
- package/dist/ui/components/ui/layout.cjs.map +1 -1
- package/dist/ui/components/ui/layout.d.cts +45 -11
- package/dist/ui/components/ui/layout.d.ts +45 -11
- package/dist/ui/components/ui/layout.js +22 -20
- package/dist/ui/components/ui/layout.js.map +1 -1
- package/dist/ui/components/ui/menubar.cjs.map +1 -1
- package/dist/ui/components/ui/menubar.d.cts +220 -16
- package/dist/ui/components/ui/menubar.d.ts +220 -16
- package/dist/ui/components/ui/menubar.js.map +1 -1
- package/dist/ui/components/ui/meter.cjs.map +1 -1
- package/dist/ui/components/ui/meter.d.cts +52 -4
- package/dist/ui/components/ui/meter.d.ts +52 -4
- package/dist/ui/components/ui/meter.js.map +1 -1
- package/dist/ui/components/ui/mobile-form-variants.cjs.map +1 -1
- package/dist/ui/components/ui/mobile-form-variants.d.cts +30 -0
- package/dist/ui/components/ui/mobile-form-variants.d.ts +30 -0
- package/dist/ui/components/ui/mobile-form-variants.js.map +1 -1
- package/dist/ui/components/ui/mobile-form.cjs.map +1 -1
- package/dist/ui/components/ui/mobile-form.d.cts +186 -9
- package/dist/ui/components/ui/mobile-form.d.ts +186 -9
- package/dist/ui/components/ui/mobile-form.js.map +1 -1
- package/dist/ui/components/ui/navigation-menu-components.cjs.map +1 -1
- package/dist/ui/components/ui/navigation-menu-components.d.cts +104 -8
- package/dist/ui/components/ui/navigation-menu-components.d.ts +104 -8
- package/dist/ui/components/ui/navigation-menu-components.js.map +1 -1
- package/dist/ui/components/ui/navigation-menu-variants.cjs.map +1 -1
- package/dist/ui/components/ui/navigation-menu-variants.d.cts +15 -0
- package/dist/ui/components/ui/navigation-menu-variants.d.ts +15 -0
- package/dist/ui/components/ui/navigation-menu-variants.js.map +1 -1
- package/dist/ui/components/ui/number-field.cjs.map +1 -1
- package/dist/ui/components/ui/number-field.d.cts +78 -6
- package/dist/ui/components/ui/number-field.d.ts +78 -6
- package/dist/ui/components/ui/number-field.js.map +1 -1
- package/dist/ui/components/ui/pagination.cjs.map +1 -1
- package/dist/ui/components/ui/pagination.d.cts +99 -7
- package/dist/ui/components/ui/pagination.d.ts +99 -7
- package/dist/ui/components/ui/pagination.js.map +1 -1
- package/dist/ui/components/ui/password-input.cjs.map +1 -1
- package/dist/ui/components/ui/password-input.d.cts +10 -7
- package/dist/ui/components/ui/password-input.d.ts +10 -7
- package/dist/ui/components/ui/password-input.js.map +1 -1
- package/dist/ui/components/ui/popover.cjs.map +1 -1
- package/dist/ui/components/ui/popover.d.cts +86 -2
- package/dist/ui/components/ui/popover.d.ts +86 -2
- package/dist/ui/components/ui/popover.js.map +1 -1
- package/dist/ui/components/ui/progress.cjs.map +1 -1
- package/dist/ui/components/ui/progress.d.cts +72 -2
- package/dist/ui/components/ui/progress.d.ts +72 -2
- package/dist/ui/components/ui/progress.js.map +1 -1
- package/dist/ui/components/ui/radio-card.cjs.map +1 -1
- package/dist/ui/components/ui/radio-card.d.cts +32 -4
- package/dist/ui/components/ui/radio-card.d.ts +32 -4
- package/dist/ui/components/ui/radio-card.js.map +1 -1
- package/dist/ui/components/ui/radio-group.cjs.map +1 -1
- package/dist/ui/components/ui/radio-group.d.cts +28 -2
- package/dist/ui/components/ui/radio-group.d.ts +28 -2
- package/dist/ui/components/ui/radio-group.js.map +1 -1
- package/dist/ui/components/ui/resizable.cjs.map +1 -1
- package/dist/ui/components/ui/resizable.d.cts +42 -3
- package/dist/ui/components/ui/resizable.d.ts +42 -3
- package/dist/ui/components/ui/resizable.js.map +1 -1
- package/dist/ui/components/ui/responsive-list.cjs.map +1 -1
- package/dist/ui/components/ui/responsive-list.d.cts +176 -13
- package/dist/ui/components/ui/responsive-list.d.ts +176 -13
- package/dist/ui/components/ui/responsive-list.js.map +1 -1
- package/dist/ui/components/ui/scroll-area.cjs.map +1 -1
- package/dist/ui/components/ui/scroll-area.d.cts +28 -1
- package/dist/ui/components/ui/scroll-area.d.ts +28 -1
- package/dist/ui/components/ui/scroll-area.js.map +1 -1
- package/dist/ui/components/ui/searchable-select-input.cjs.map +1 -1
- package/dist/ui/components/ui/searchable-select-input.d.cts +199 -49
- package/dist/ui/components/ui/searchable-select-input.d.ts +199 -49
- package/dist/ui/components/ui/searchable-select-input.js.map +1 -1
- package/dist/ui/components/ui/select.cjs.map +1 -1
- package/dist/ui/components/ui/select.d.cts +205 -40
- package/dist/ui/components/ui/select.d.ts +205 -40
- package/dist/ui/components/ui/select.js.map +1 -1
- package/dist/ui/components/ui/separator.cjs.map +1 -1
- package/dist/ui/components/ui/separator.d.cts +13 -2
- package/dist/ui/components/ui/separator.d.ts +13 -2
- package/dist/ui/components/ui/separator.js.map +1 -1
- package/dist/ui/components/ui/sheet.cjs.map +1 -1
- package/dist/ui/components/ui/sheet.d.cts +128 -3
- package/dist/ui/components/ui/sheet.d.ts +128 -3
- package/dist/ui/components/ui/sheet.js.map +1 -1
- package/dist/ui/components/ui/skeleton.cjs.map +1 -1
- package/dist/ui/components/ui/skeleton.d.cts +13 -1
- package/dist/ui/components/ui/skeleton.d.ts +13 -1
- package/dist/ui/components/ui/skeleton.js.map +1 -1
- package/dist/ui/components/ui/slider.cjs.map +1 -1
- package/dist/ui/components/ui/slider.d.cts +13 -7
- package/dist/ui/components/ui/slider.d.ts +13 -7
- package/dist/ui/components/ui/slider.js.map +1 -1
- package/dist/ui/components/ui/spinner.cjs.map +1 -1
- package/dist/ui/components/ui/spinner.d.cts +13 -1
- package/dist/ui/components/ui/spinner.d.ts +13 -1
- package/dist/ui/components/ui/spinner.js.map +1 -1
- package/dist/ui/components/ui/switch.cjs.map +1 -1
- package/dist/ui/components/ui/switch.d.cts +26 -0
- package/dist/ui/components/ui/switch.d.ts +26 -0
- package/dist/ui/components/ui/switch.js.map +1 -1
- package/dist/ui/components/ui/table.cjs.map +1 -1
- package/dist/ui/components/ui/table.d.cts +118 -2
- package/dist/ui/components/ui/table.d.ts +118 -2
- package/dist/ui/components/ui/table.js.map +1 -1
- package/dist/ui/components/ui/tabs-components.cjs.map +1 -1
- package/dist/ui/components/ui/tabs-components.d.cts +52 -5
- package/dist/ui/components/ui/tabs-components.d.ts +52 -5
- package/dist/ui/components/ui/tabs-components.js.map +1 -1
- package/dist/ui/components/ui/tabs-variants.cjs.map +1 -1
- package/dist/ui/components/ui/tabs-variants.d.cts +15 -0
- package/dist/ui/components/ui/tabs-variants.d.ts +15 -0
- package/dist/ui/components/ui/tabs-variants.js.map +1 -1
- package/dist/ui/components/ui/textarea.cjs.map +1 -1
- package/dist/ui/components/ui/textarea.d.cts +23 -0
- package/dist/ui/components/ui/textarea.d.ts +23 -0
- package/dist/ui/components/ui/textarea.js.map +1 -1
- package/dist/ui/components/ui/toast.cjs.map +1 -1
- package/dist/ui/components/ui/toast.d.cts +136 -0
- package/dist/ui/components/ui/toast.d.ts +136 -0
- package/dist/ui/components/ui/toast.js.map +1 -1
- package/dist/ui/components/ui/toaster.cjs.map +1 -1
- package/dist/ui/components/ui/toaster.d.cts +12 -3
- package/dist/ui/components/ui/toaster.d.ts +12 -3
- package/dist/ui/components/ui/toaster.js.map +1 -1
- package/dist/ui/components/ui/toggle-components.cjs.map +1 -1
- package/dist/ui/components/ui/toggle-components.d.cts +15 -0
- package/dist/ui/components/ui/toggle-components.d.ts +15 -0
- package/dist/ui/components/ui/toggle-components.js.map +1 -1
- package/dist/ui/components/ui/toggle-group.cjs.map +1 -1
- package/dist/ui/components/ui/toggle-group.d.cts +33 -0
- package/dist/ui/components/ui/toggle-group.d.ts +33 -0
- package/dist/ui/components/ui/toggle-group.js.map +1 -1
- package/dist/ui/components/ui/toggle-variants.cjs.map +1 -1
- package/dist/ui/components/ui/toggle-variants.d.cts +15 -0
- package/dist/ui/components/ui/toggle-variants.d.ts +15 -0
- package/dist/ui/components/ui/toggle-variants.js.map +1 -1
- package/dist/ui/components/ui/toolbar.cjs.map +1 -1
- package/dist/ui/components/ui/toolbar.d.cts +94 -7
- package/dist/ui/components/ui/toolbar.d.ts +94 -7
- package/dist/ui/components/ui/toolbar.js.map +1 -1
- package/dist/ui/components/ui/tooltip.cjs.map +1 -1
- package/dist/ui/components/ui/tooltip.d.cts +54 -3
- package/dist/ui/components/ui/tooltip.d.ts +54 -3
- package/dist/ui/components/ui/tooltip.js.map +1 -1
- package/dist/ui/lib/hooks/use-gps.cjs.map +1 -1
- package/dist/ui/lib/hooks/use-gps.d.cts +29 -4
- package/dist/ui/lib/hooks/use-gps.d.ts +29 -4
- package/dist/ui/lib/hooks/use-gps.js.map +1 -1
- package/dist/ui/lib/hooks/use-is-client.cjs.map +1 -1
- package/dist/ui/lib/hooks/use-is-client.d.cts +11 -2
- package/dist/ui/lib/hooks/use-is-client.d.ts +11 -2
- package/dist/ui/lib/hooks/use-is-client.js.map +1 -1
- package/dist/ui/lib/hooks/use-keyboard-shortcut.cjs.map +1 -1
- package/dist/ui/lib/hooks/use-keyboard-shortcut.d.cts +48 -18
- package/dist/ui/lib/hooks/use-keyboard-shortcut.d.ts +48 -18
- package/dist/ui/lib/hooks/use-keyboard-shortcut.js.map +1 -1
- package/dist/ui/lib/hooks/use-mobile.cjs.map +1 -1
- package/dist/ui/lib/hooks/use-mobile.d.cts +11 -3
- package/dist/ui/lib/hooks/use-mobile.d.ts +11 -3
- package/dist/ui/lib/hooks/use-mobile.js.map +1 -1
- package/dist/ui/lib/hooks/use-toast.cjs.map +1 -1
- package/dist/ui/lib/hooks/use-toast.d.cts +184 -15
- package/dist/ui/lib/hooks/use-toast.d.ts +184 -15
- package/dist/ui/lib/hooks/use-toast.js.map +1 -1
- package/dist/ui/lib/ime-utils.cjs.map +1 -1
- package/dist/ui/lib/ime-utils.d.cts +40 -13
- package/dist/ui/lib/ime-utils.d.ts +40 -13
- package/dist/ui/lib/ime-utils.js.map +1 -1
- package/dist/ui/lib/utils.cjs.map +1 -1
- package/dist/ui/lib/utils.d.cts +9 -6
- package/dist/ui/lib/utils.d.ts +9 -6
- package/dist/ui/lib/utils.js.map +1 -1
- package/docs/ai.md +34 -1
- package/docs/exports.md +5 -1
- package/docs/index.md +89 -16
- package/docs/migration.md +268 -0
- package/docs/request-form.md +4 -1
- package/docs/tools.md +4 -1
- package/docs/ui.md +4 -1
- package/llms-full.txt +499 -36
- package/llms.txt +4 -0
- package/package.json +35 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","names":["SelectPrimitive","React","React$1","Select$1","Select","SelectGroup","props","cn","className","SelectValue","SelectTrigger","testId","size","children","ChevronDownIcon","SelectContent","SelectScrollUpButton","SelectScrollDownButton","SelectLabel","SelectItem","CheckIcon","SelectSeparator","ChevronUpIcon","SelectInput","ariaLabel","ariaLabelledBy","value","defaultValue","icon","options","opt","option"],"sources":["../../../../src/ui/components/ui/select.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Select as SelectPrimitive } from '@base-ui/react/select';\nimport { ChevronDownIcon, CheckIcon, ChevronUpIcon } from 'lucide-react';\n\nimport { cn } from '../../lib/utils';\n\n/**\n * Select Component\n * セレクトコンポーネント\n */\nconst Select = SelectPrimitive.Root;\n\n/**\n * 選択肢をグループ化するためのコンポーネント。\n */\nfunction SelectGroup({ className, ...props }: SelectPrimitive.Group.Props) {\n return (\n <SelectPrimitive.Group\n data-slot='select-group'\n className={cn('scroll-my-1 p-1', className)}\n {...props}\n />\n );\n}\n\n/**\n * トリガー内に現在選択されている値やプレースホルダーを表示するコンポーネント。\n */\nfunction SelectValue({\n className,\n children,\n ...props\n}: SelectPrimitive.Value.Props & { placeholder?: string }) {\n return (\n <SelectPrimitive.Value\n data-slot='select-value'\n className={cn('flex flex-1 text-left line-clamp-1', className)}\n {...props}\n >\n {children}\n </SelectPrimitive.Value>\n );\n}\n\ninterface SelectTriggerProps extends SelectPrimitive.Trigger.Props {\n size?: 'sm' | 'default';\n testId?: string;\n}\n\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n SelectTriggerProps\n>(({ className, size = 'default', children, testId, ...props }, ref) => {\n return (\n <SelectPrimitive.Trigger\n ref={ref}\n data-slot='select-trigger'\n data-testid={testId}\n data-size={size}\n className={cn(\n \"border-input data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-lg border bg-background py-2 pr-2 pl-2.5 text-sm transition-colors select-none focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon\n render={<ChevronDownIcon className='text-muted-foreground size-4 pointer-events-none' />}\n />\n </SelectPrimitive.Trigger>\n );\n});\nSelectTrigger.displayName = 'SelectTrigger';\n\n/**\n * 選択肢のリストを格納するドロップダウンポップアップコンテナ。\n */\nfunction SelectContent({\n className,\n children,\n side = 'bottom',\n sideOffset = 4,\n align = 'center',\n alignOffset = 0,\n alignItemWithTrigger = true,\n ...props\n}: SelectPrimitive.Popup.Props &\n Pick<\n SelectPrimitive.Positioner.Props,\n 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'\n >) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Positioner\n side={side}\n sideOffset={sideOffset}\n align={align}\n alignOffset={alignOffset}\n alignItemWithTrigger={alignItemWithTrigger}\n className='isolate z-50'\n >\n <SelectPrimitive.Popup\n data-slot='select-content'\n className={cn(\n 'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-36 rounded-lg shadow-md ring-1 duration-100 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto',\n className,\n )}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.List>{children}</SelectPrimitive.List>\n <SelectScrollDownButton />\n </SelectPrimitive.Popup>\n </SelectPrimitive.Positioner>\n </SelectPrimitive.Portal>\n );\n}\n\n/**\n * グループのタイトルや見出しを表すラベルコンポーネント。\n */\nfunction SelectLabel({ className, ...props }: SelectPrimitive.GroupLabel.Props) {\n return (\n <SelectPrimitive.GroupLabel\n data-slot='select-label'\n className={cn('text-muted-foreground px-1.5 py-1 text-xs', className)}\n {...props}\n />\n );\n}\n\ninterface SelectItemProps extends SelectPrimitive.Item.Props {\n testId?: string;\n}\n\n/**\n * ドロップダウンリスト内の個々の選択肢アイテム。\n */\nfunction SelectItem({ className, children, testId, ...props }: SelectItemProps) {\n return (\n <SelectPrimitive.Item\n data-slot='select-item'\n data-testid={testId}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n >\n <SelectPrimitive.ItemText className='flex flex-1 gap-2 shrink-0 whitespace-nowrap'>\n {children}\n </SelectPrimitive.ItemText>\n <SelectPrimitive.ItemIndicator\n render={\n <span className='pointer-events-none absolute right-2 flex size-4 items-center justify-center' />\n }\n >\n <CheckIcon className='pointer-events-none' />\n </SelectPrimitive.ItemIndicator>\n </SelectPrimitive.Item>\n );\n}\n\n/**\n * アイテムやグループを区切るためのセパレーター(区切り線)。\n */\nfunction SelectSeparator({ className, ...props }: SelectPrimitive.Separator.Props) {\n return (\n <SelectPrimitive.Separator\n data-slot='select-separator'\n className={cn('bg-border -mx-1 my-1 h-px pointer-events-none', className)}\n {...props}\n />\n );\n}\n\n/**\n * リストが長い場合に、上方向にスクロールするためのインジケーターボタン。\n */\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpArrow>) {\n // Note: ScrollUpArrow implementation differs in Base UI depending on version.\n // erp uses SelectPrimitive.ScrollUpArrow directly.\n return (\n <SelectPrimitive.ScrollUpArrow\n data-slot='select-scroll-up-button'\n className={cn(\n \"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 top-0 w-full\",\n className,\n )}\n {...props}\n >\n <ChevronUpIcon />\n </SelectPrimitive.ScrollUpArrow>\n );\n}\n\n/**\n * リストが長い場合に、下方向にスクロールするためのインジケーターボタン。\n */\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownArrow>) {\n return (\n <SelectPrimitive.ScrollDownArrow\n data-slot='select-scroll-down-button'\n className={cn(\n \"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 bottom-0 w-full\",\n className,\n )}\n {...props}\n >\n <ChevronDownIcon />\n </SelectPrimitive.ScrollDownArrow>\n );\n}\n\n/**\n * セレクトボックスの選択肢を表すインターフェースです。\n */\nexport interface SelectOption {\n /** 表示されるラベルテキストまたは要素 */\n label: React.ReactNode;\n /** 選択時に使用される値 */\n value: string;\n /** 選択肢を無効化するかどうか */\n disabled?: boolean;\n}\n\n/**\n * SelectInputコンポーネントのプロパティです。\n */\nexport interface SelectInputProps extends React.ComponentProps<typeof SelectPrimitive.Root> {\n /** Accessible name applied to the interactive trigger. */\n 'aria-label'?: string;\n /** ID of the label for the interactive trigger. */\n 'aria-labelledby'?: string;\n /** 選択肢の配列 */\n options: SelectOption[];\n /** 未選択時に表示されるプレースホルダーテキスト */\n placeholder?: string;\n /** 追加のCSSクラス名 */\n className?: string;\n /** テスト用のID */\n testId?: string;\n /** コンポーネントのサイズ */\n size?: 'default' | 'sm';\n /** 左側に表示するカスタムアイコン要素 */\n icon?: React.ReactNode;\n}\n\n/**\n * シンプルで使いやすいセレクトボックスラッパーコンポーネントです。\n *\n * 内部で `Select`, `SelectTrigger`, `SelectValue`, `SelectContent`, `SelectItem` などの\n * 複雑な構造を隠蔽し、`options` を渡すだけで完結するように設計されています。\n * 単一の検索機能を持たないシンプルなドロップダウンが必要な場合に最適です。\n *\n * `React.forwardRef` に対応しているため、`react-hook-form` の `Controller` と直接組み合わせて使用できます。\n *\n * @example\n * ```tsx\n * <SelectInput\n * value={sortBy}\n * onValueChange={setSortBy}\n * options={[\n * { label: \"日付順\", value: \"date\" },\n * { label: \"名前順\", value: \"name\" }\n * ]}\n * placeholder=\"並び替え...\"\n * />\n * ```\n */\nconst SelectInput = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Root>,\n SelectInputProps\n>(\n (\n {\n options,\n placeholder,\n className,\n testId,\n size = 'default',\n icon,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n value,\n defaultValue,\n onValueChange,\n disabled,\n name,\n required,\n open,\n defaultOpen,\n onOpenChange,\n ...props\n },\n ref,\n ) => {\n return (\n <Select\n value={value !== undefined ? value : defaultValue !== undefined ? undefined : null}\n defaultValue={defaultValue}\n onValueChange={onValueChange}\n disabled={disabled}\n name={name}\n required={required}\n open={open}\n defaultOpen={defaultOpen}\n onOpenChange={onOpenChange}\n {...props}\n >\n <SelectTrigger ref={ref} className={className} testId={testId} size={size} aria-label={ariaLabel} aria-labelledby={ariaLabelledBy}>\n {icon}\n <SelectValue placeholder={placeholder}>\n {value !== undefined && value !== null\n ? (options.find((opt) => String(opt.value) === String(value))?.label ??\n (typeof value === 'string' || typeof value === 'number' ? String(value) : null))\n : undefined}\n </SelectValue>\n </SelectTrigger>\n <SelectContent>\n {options.map((option) => (\n <SelectItem key={option.value} value={option.value} disabled={option.disabled}>\n {option.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n );\n },\n);\n\nSelectInput.displayName = 'SelectInput';\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n SelectInput,\n};\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"select.js","names":["SelectPrimitive","React","React$1","Select$1","Select","SelectGroup","props","cn","className","SelectValue","SelectTrigger","testId","size","children","ChevronDownIcon","SelectContent","SelectScrollUpButton","SelectScrollDownButton","SelectLabel","SelectItem","CheckIcon","SelectSeparator","ChevronUpIcon","SelectInput","ariaLabel","ariaLabelledBy","value","defaultValue","icon","options","opt","option"],"sources":["../../../../src/ui/components/ui/select.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Select as SelectPrimitive } from '@base-ui/react/select';\nimport { ChevronDownIcon, CheckIcon, ChevronUpIcon } from 'lucide-react';\n\nimport { cn } from '../../lib/utils';\n\n/**\n * Coordinates a Base UI single or multiple selection popup.\n * @typeParam Value - Option value shape inferred from root props and selection callbacks.\n * @typeParam Multiple - Whether selection uses an array; extends boolean | undefined and defaults to false.\n * @param props - Inherited primitive configuration, children and controlled/default state; the upstream prop type remains authoritative.\n * @returns The rendered Select composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compound parts require Select context; GroupLabel belongs in a Group. Content supplies portal, positioner, List and scroll arrows. SelectInput className/testId/size and accessible labels target the trigger; remaining root props target Select. size defaults to default. If both value and defaultValue are absent, SelectInput passes controlled null; use defaultValue for upstream uncontrolled state. Controlled values are matched to option labels by String(value), with string/number fallback.\n * @example\n * ```tsx\n * import { SelectInput } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<SelectInput aria-label=\"Sort order\" defaultValue=\"date\" options={[{ value: \"date\", label: \"Date\" }, { value: \"name\", label: \"Name\" }]} placeholder=\"Choose order\" />);\n * }\n * ```\n */\nconst Select = SelectPrimitive.Root;\n\n/**\n * Groups related select options.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SelectGroup composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compound parts require Select context; GroupLabel belongs in a Group. Content supplies portal, positioner, List and scroll arrows. SelectInput className/testId/size and accessible labels target the trigger; remaining root props target Select. size defaults to default. If both value and defaultValue are absent, SelectInput passes controlled null; use defaultValue for upstream uncontrolled state. Controlled values are matched to option labels by String(value), with string/number fallback.\n * @example\n * ```tsx\n * import { SelectInput } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<SelectInput aria-label=\"Sort order\" defaultValue=\"date\" options={[{ value: \"date\", label: \"Date\" }, { value: \"name\", label: \"Name\" }]} placeholder=\"Choose order\" />);\n * }\n * ```\n */\nfunction SelectGroup({ className, ...props }: SelectPrimitive.Group.Props) {\n return (\n <SelectPrimitive.Group\n data-slot='select-group'\n className={cn('scroll-my-1 p-1', className)}\n {...props}\n />\n );\n}\n\n/**\n * Displays the current selection or an upstream placeholder inside a trigger.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SelectValue composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compound parts require Select context; GroupLabel belongs in a Group. Content supplies portal, positioner, List and scroll arrows. SelectInput className/testId/size and accessible labels target the trigger; remaining root props target Select. size defaults to default. If both value and defaultValue are absent, SelectInput passes controlled null; use defaultValue for upstream uncontrolled state. Controlled values are matched to option labels by String(value), with string/number fallback.\n * @example\n * ```tsx\n * import { SelectInput } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<SelectInput aria-label=\"Sort order\" defaultValue=\"date\" options={[{ value: \"date\", label: \"Date\" }, { value: \"name\", label: \"Name\" }]} placeholder=\"Choose order\" />);\n * }\n * ```\n */\nfunction SelectValue({\n className,\n children,\n ...props\n}: SelectPrimitive.Value.Props & { /**\n * Text displayed while no value is selected/entered; omitted means no placeholder.\n */\n/**\n * Text displayed while no value is selected/entered; omitted means no placeholder.\n */\nplaceholder?: string }) {\n return (\n <SelectPrimitive.Value\n data-slot='select-value'\n className={cn('flex flex-1 text-left line-clamp-1', className)}\n {...props}\n >\n {children}\n </SelectPrimitive.Value>\n );\n}\n\n/**\n * Base UI trigger props with Appkit sizing and test selector.\n * @remarks Inherited native or primitive props keep their upstream types and behavior; this declaration documents only the wrapper-owned options.\n * @see SelectTrigger\n */\ninterface SelectTriggerProps extends SelectPrimitive.Trigger.Props {\n /**\n * Visual size preset; defaults to default unless the owning component states otherwise.\n */\n size?: 'sm' | 'default';\n /**\n * Stable data-testid assigned to the rendered control/container; omitted means no selector.\n */\n testId?: string;\n}\n\n/**\n * Renders the select opener with a trailing chevron and optional test ID.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling. Wrapper defaults: size='default'.\n * @returns The rendered SelectTrigger composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compound parts require Select context; GroupLabel belongs in a Group. Content supplies portal, positioner, List and scroll arrows. SelectInput className/testId/size and accessible labels target the trigger; remaining root props target Select. size defaults to default. If both value and defaultValue are absent, SelectInput passes controlled null; use defaultValue for upstream uncontrolled state. Controlled values are matched to option labels by String(value), with string/number fallback. The ref prop forwards to the rendered control or container declared by the component ref type.\n * @example\n * ```tsx\n * import { SelectInput } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<SelectInput aria-label=\"Sort order\" defaultValue=\"date\" options={[{ value: \"date\", label: \"Date\" }, { value: \"name\", label: \"Name\" }]} placeholder=\"Choose order\" />);\n * }\n * ```\n */\nconst SelectTrigger = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Trigger>,\n SelectTriggerProps\n>(({ className, size = 'default', children, testId, ...props }, ref) => {\n return (\n <SelectPrimitive.Trigger\n ref={ref}\n data-slot='select-trigger'\n data-testid={testId}\n data-size={size}\n className={cn(\n \"border-input data-[placeholder]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 gap-1.5 rounded-lg border bg-background py-2 pr-2 pl-2.5 text-sm transition-colors select-none focus-visible:ring-[3px] aria-invalid:ring-[3px] data-[size=default]:h-8 data-[size=sm]:h-7 data-[size=sm]:rounded-[min(var(--radius-md),10px)] *:data-[slot=select-value]:flex *:data-[slot=select-value]:gap-1.5 [&_svg:not([class*='size-'])]:size-4 flex w-fit items-center justify-between whitespace-nowrap outline-none disabled:cursor-not-allowed disabled:opacity-50 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n >\n {children}\n <SelectPrimitive.Icon\n render={<ChevronDownIcon className='text-muted-foreground size-4 pointer-events-none' />}\n />\n </SelectPrimitive.Trigger>\n );\n});\nSelectTrigger.displayName = 'SelectTrigger';\n\n/**\n * Portals the positioned option popup with a list and scroll controls.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling. Wrapper defaults: side='bottom', sideOffset=4, align='center', alignOffset=0, alignItemWithTrigger=true.\n * @returns The rendered SelectContent composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compound parts require Select context; GroupLabel belongs in a Group. Content supplies portal, positioner, List and scroll arrows. SelectInput className/testId/size and accessible labels target the trigger; remaining root props target Select. size defaults to default. If both value and defaultValue are absent, SelectInput passes controlled null; use defaultValue for upstream uncontrolled state. Controlled values are matched to option labels by String(value), with string/number fallback.\n * @example\n * ```tsx\n * import { SelectInput } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<SelectInput aria-label=\"Sort order\" defaultValue=\"date\" options={[{ value: \"date\", label: \"Date\" }, { value: \"name\", label: \"Name\" }]} placeholder=\"Choose order\" />);\n * }\n * ```\n */\nfunction SelectContent({\n className,\n children,\n side = 'bottom',\n sideOffset = 4,\n align = 'center',\n alignOffset = 0,\n alignItemWithTrigger = true,\n ...props\n}: SelectPrimitive.Popup.Props &\n Pick<\n SelectPrimitive.Positioner.Props,\n 'align' | 'alignOffset' | 'side' | 'sideOffset' | 'alignItemWithTrigger'\n >) {\n return (\n <SelectPrimitive.Portal>\n <SelectPrimitive.Positioner\n side={side}\n sideOffset={sideOffset}\n align={align}\n alignOffset={alignOffset}\n alignItemWithTrigger={alignItemWithTrigger}\n className='isolate z-50'\n >\n <SelectPrimitive.Popup\n data-slot='select-content'\n className={cn(\n 'bg-popover text-popover-foreground data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 data-closed:zoom-out-95 data-open:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 ring-foreground/10 min-w-36 rounded-lg shadow-md ring-1 duration-100 relative isolate z-50 max-h-(--available-height) w-(--anchor-width) origin-(--transform-origin) overflow-x-hidden overflow-y-auto',\n className,\n )}\n {...props}\n >\n <SelectScrollUpButton />\n <SelectPrimitive.List>{children}</SelectPrimitive.List>\n <SelectScrollDownButton />\n </SelectPrimitive.Popup>\n </SelectPrimitive.Positioner>\n </SelectPrimitive.Portal>\n );\n}\n\n/**\n * Provides the label for a select option group.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SelectLabel composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compound parts require Select context; GroupLabel belongs in a Group. Content supplies portal, positioner, List and scroll arrows. SelectInput className/testId/size and accessible labels target the trigger; remaining root props target Select. size defaults to default. If both value and defaultValue are absent, SelectInput passes controlled null; use defaultValue for upstream uncontrolled state. Controlled values are matched to option labels by String(value), with string/number fallback.\n * @example\n * ```tsx\n * import { SelectInput } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<SelectInput aria-label=\"Sort order\" defaultValue=\"date\" options={[{ value: \"date\", label: \"Date\" }, { value: \"name\", label: \"Name\" }]} placeholder=\"Choose order\" />);\n * }\n * ```\n */\nfunction SelectLabel({ className, ...props }: SelectPrimitive.GroupLabel.Props) {\n return (\n <SelectPrimitive.GroupLabel\n data-slot='select-label'\n className={cn('text-muted-foreground px-1.5 py-1 text-xs', className)}\n {...props}\n />\n );\n}\n\n/**\n * Base UI option props with a stable selector for the option element.\n * @remarks Inherited native or primitive props keep their upstream types and behavior; this declaration documents only the wrapper-owned options.\n * @see SelectItem\n */\ninterface SelectItemProps extends SelectPrimitive.Item.Props {\n /**\n * Stable data-testid assigned to the rendered control/container; omitted means no selector.\n */\n testId?: string;\n}\n\n/**\n * Renders an option with selected-state checkmark and optional test ID.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SelectItem composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compound parts require Select context; GroupLabel belongs in a Group. Content supplies portal, positioner, List and scroll arrows. SelectInput className/testId/size and accessible labels target the trigger; remaining root props target Select. size defaults to default. If both value and defaultValue are absent, SelectInput passes controlled null; use defaultValue for upstream uncontrolled state. Controlled values are matched to option labels by String(value), with string/number fallback.\n * @example\n * ```tsx\n * import { SelectInput } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<SelectInput aria-label=\"Sort order\" defaultValue=\"date\" options={[{ value: \"date\", label: \"Date\" }, { value: \"name\", label: \"Name\" }]} placeholder=\"Choose order\" />);\n * }\n * ```\n */\nfunction SelectItem({ className, children, testId, ...props }: SelectItemProps) {\n return (\n <SelectPrimitive.Item\n data-slot='select-item'\n data-testid={testId}\n className={cn(\n \"focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground gap-1.5 rounded-md py-1 pr-8 pl-1.5 text-sm [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2 relative flex w-full cursor-default items-center outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0\",\n className,\n )}\n {...props}\n >\n <SelectPrimitive.ItemText className='flex flex-1 gap-2 shrink-0 whitespace-nowrap'>\n {children}\n </SelectPrimitive.ItemText>\n <SelectPrimitive.ItemIndicator\n render={\n <span className='pointer-events-none absolute right-2 flex size-4 items-center justify-center' />\n }\n >\n <CheckIcon className='pointer-events-none' />\n </SelectPrimitive.ItemIndicator>\n </SelectPrimitive.Item>\n );\n}\n\n/**\n * Draws a noninteractive divider between option groups.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SelectSeparator composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compound parts require Select context; GroupLabel belongs in a Group. Content supplies portal, positioner, List and scroll arrows. SelectInput className/testId/size and accessible labels target the trigger; remaining root props target Select. size defaults to default. If both value and defaultValue are absent, SelectInput passes controlled null; use defaultValue for upstream uncontrolled state. Controlled values are matched to option labels by String(value), with string/number fallback.\n * @example\n * ```tsx\n * import { SelectInput } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<SelectInput aria-label=\"Sort order\" defaultValue=\"date\" options={[{ value: \"date\", label: \"Date\" }, { value: \"name\", label: \"Name\" }]} placeholder=\"Choose order\" />);\n * }\n * ```\n */\nfunction SelectSeparator({ className, ...props }: SelectPrimitive.Separator.Props) {\n return (\n <SelectPrimitive.Separator\n data-slot='select-separator'\n className={cn('bg-border -mx-1 my-1 h-px pointer-events-none', className)}\n {...props}\n />\n );\n}\n\n/**\n * Renders the upstream upward-scroll control with an up chevron.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SelectScrollUpButton composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compound parts require Select context; GroupLabel belongs in a Group. Content supplies portal, positioner, List and scroll arrows. SelectInput className/testId/size and accessible labels target the trigger; remaining root props target Select. size defaults to default. If both value and defaultValue are absent, SelectInput passes controlled null; use defaultValue for upstream uncontrolled state. Controlled values are matched to option labels by String(value), with string/number fallback. children are replaced by the fixed scroll chevron.\n * @example\n * ```tsx\n * import { SelectInput } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<SelectInput aria-label=\"Sort order\" defaultValue=\"date\" options={[{ value: \"date\", label: \"Date\" }, { value: \"name\", label: \"Name\" }]} placeholder=\"Choose order\" />);\n * }\n * ```\n */\nfunction SelectScrollUpButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollUpArrow>) {\n // Note: ScrollUpArrow implementation differs in Base UI depending on version.\n // erp uses SelectPrimitive.ScrollUpArrow directly.\n return (\n <SelectPrimitive.ScrollUpArrow\n data-slot='select-scroll-up-button'\n className={cn(\n \"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 top-0 w-full\",\n className,\n )}\n {...props}\n >\n <ChevronUpIcon />\n </SelectPrimitive.ScrollUpArrow>\n );\n}\n\n/**\n * Renders the upstream downward-scroll control with a down chevron.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SelectScrollDownButton composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compound parts require Select context; GroupLabel belongs in a Group. Content supplies portal, positioner, List and scroll arrows. SelectInput className/testId/size and accessible labels target the trigger; remaining root props target Select. size defaults to default. If both value and defaultValue are absent, SelectInput passes controlled null; use defaultValue for upstream uncontrolled state. Controlled values are matched to option labels by String(value), with string/number fallback. children are replaced by the fixed scroll chevron.\n * @example\n * ```tsx\n * import { SelectInput } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<SelectInput aria-label=\"Sort order\" defaultValue=\"date\" options={[{ value: \"date\", label: \"Date\" }, { value: \"name\", label: \"Name\" }]} placeholder=\"Choose order\" />);\n * }\n * ```\n */\nfunction SelectScrollDownButton({\n className,\n ...props\n}: React.ComponentProps<typeof SelectPrimitive.ScrollDownArrow>) {\n return (\n <SelectPrimitive.ScrollDownArrow\n data-slot='select-scroll-down-button'\n className={cn(\n \"bg-popover z-10 flex cursor-default items-center justify-center py-1 [&_svg:not([class*='size-'])]:size-4 bottom-0 w-full\",\n className,\n )}\n {...props}\n >\n <ChevronDownIcon />\n </SelectPrimitive.ScrollDownArrow>\n );\n}\n\n/**\n * Display content, string value and disabled state for a SelectInput option.\n * @remarks Inherited native or primitive props keep their upstream types and behavior; this declaration documents only the wrapper-owned options.\n * @see SelectInput\n */\nexport interface SelectOption {\n /**\n * Visible React content for this option.\n */\n label: React.ReactNode;\n /**\n * Unique string identity passed to selection callbacks.\n */\n value: string;\n /**\n * Prevents option selection when true; omitted means enabled.\n */\n disabled?: boolean;\n}\n\n/**\n * Base UI root props with option data and trigger presentation/accessibility settings.\n * @remarks Inherited native or primitive props keep their upstream types and behavior; this declaration documents only the wrapper-owned options.\n * @see SelectInput\n */\nexport interface SelectInputProps extends React.ComponentProps<typeof SelectPrimitive.Root> {\n /**\n * Accessible name applied to the interactive trigger.\n */\n 'aria-label'?: string;\n /**\n * Space-separated element IDs that label the interactive trigger.\n */\n 'aria-labelledby'?: string;\n /**\n * Options in popup order; labels are also resolved for controlled values.\n */\n options: SelectOption[];\n /**\n * Text displayed while no value is selected/entered; omitted means no placeholder.\n */\n placeholder?: string;\n /**\n * Additional classes on the interactive SelectTrigger.\n */\n className?: string;\n /**\n * data-testid on the SelectTrigger; no per-option IDs are synthesized.\n */\n testId?: string;\n /**\n * Trigger size; defaults to default.\n */\n size?: 'default' | 'sm';\n /**\n * Optional content before SelectValue inside the trigger.\n */\n icon?: React.ReactNode;\n}\n\n/**\n * Builds a complete select from an options array and forwards its ref to the trigger.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling. Wrapper defaults: size='default'.\n * @returns The rendered SelectInput composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compound parts require Select context; GroupLabel belongs in a Group. Content supplies portal, positioner, List and scroll arrows. SelectInput className/testId/size and accessible labels target the trigger; remaining root props target Select. size defaults to default. If both value and defaultValue are absent, SelectInput passes controlled null; use defaultValue for upstream uncontrolled state. Controlled values are matched to option labels by String(value), with string/number fallback. The ref prop forwards to the rendered control or container declared by the component ref type.\n * @example\n * ```tsx\n * import { SelectInput } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<SelectInput aria-label=\"Sort order\" defaultValue=\"date\" options={[{ value: \"date\", label: \"Date\" }, { value: \"name\", label: \"Name\" }]} placeholder=\"Choose order\" />);\n * }\n * ```\n */\nconst SelectInput = React.forwardRef<\n React.ElementRef<typeof SelectPrimitive.Root>,\n SelectInputProps\n>(\n (\n {\n options,\n placeholder,\n className,\n testId,\n size = 'default',\n icon,\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledBy,\n value,\n defaultValue,\n onValueChange,\n disabled,\n name,\n required,\n open,\n defaultOpen,\n onOpenChange,\n ...props\n },\n ref,\n ) => {\n return (\n <Select\n value={value !== undefined ? value : defaultValue !== undefined ? undefined : null}\n defaultValue={defaultValue}\n onValueChange={onValueChange}\n disabled={disabled}\n name={name}\n required={required}\n open={open}\n defaultOpen={defaultOpen}\n onOpenChange={onOpenChange}\n {...props}\n >\n <SelectTrigger ref={ref} className={className} testId={testId} size={size} aria-label={ariaLabel} aria-labelledby={ariaLabelledBy}>\n {icon}\n <SelectValue placeholder={placeholder}>\n {value !== undefined && value !== null\n ? (options.find((opt) => String(opt.value) === String(value))?.label ??\n (typeof value === 'string' || typeof value === 'number' ? String(value) : null))\n : undefined}\n </SelectValue>\n </SelectTrigger>\n <SelectContent>\n {options.map((option) => (\n <SelectItem key={option.value} value={option.value} disabled={option.disabled}>\n {option.label}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n );\n },\n);\n\nSelectInput.displayName = 'SelectInput';\n\nexport {\n Select,\n SelectContent,\n SelectGroup,\n SelectItem,\n SelectLabel,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n SelectInput,\n};\n"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.cjs","names":["React","SeparatorPrimitive","cn","require_runtime","require_ui_lib_utils","react_jsx_runtime","react","_base_ui_react_separator","Separator","props","className"],"sources":["../../../../src/ui/components/ui/separator.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Separator as SeparatorPrimitive } from '@base-ui/react/separator';\n\nimport { cn } from '../../lib/utils';\n\n/**\n * Separator
|
|
1
|
+
{"version":3,"file":"separator.cjs","names":["React","SeparatorPrimitive","cn","require_runtime","require_ui_lib_utils","react_jsx_runtime","react","_base_ui_react_separator","Separator","props","className"],"sources":["../../../../src/ui/components/ui/separator.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Separator as SeparatorPrimitive } from '@base-ui/react/separator';\n\nimport { cn } from '../../lib/utils';\n\n/**\n * Renders a styled horizontal or vertical Base UI separator.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling. Wrapper defaults: orientation='horizontal'.\n * @returns The rendered Separator composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. orientation defaults to horizontal; vertical separators stretch within their layout parent. Base UI owns separator semantics and the native/primitive prop type remains authoritative. The ref prop forwards to the rendered control or container declared by the component ref type.\n * @example\n * ```tsx\n * import { Separator } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<div><p>First section</p><Separator /><p>Second section</p></div>);\n * }\n * ```\n */\nconst Separator = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive>\n>(({ className, orientation = 'horizontal', ...props }, ref) => (\n <SeparatorPrimitive\n ref={ref}\n data-slot='separator'\n orientation={orientation}\n className={cn(\n 'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch',\n className,\n )}\n {...props}\n />\n));\nSeparator.displayName = SeparatorPrimitive.displayName;\n\nexport { Separator };\n"],"mappings":"A,6RAoBA,IAAMQ,EAAYR,EAAM,YAGrB,CAAE,YAAW,cAAc,aAAc,GAAGS,GAAS,KACtD,EAAAJ,EAAA,IAAA,CAACJ,EAAAA,UAAD,CACO,MACL,YAAU,YACG,cACb,UAAWC,EAAAA,GACT,uKACAQ,CACF,EACA,GAAID,CACL,CAAA,CACF,EACD,EAAU,YAAcR,EAAAA,UAAmB,Y"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Renders a styled horizontal or vertical Base UI separator.
|
|
4
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling. Wrapper defaults: orientation='horizontal'.
|
|
5
|
+
* @returns The rendered Separator composition.
|
|
6
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. orientation defaults to horizontal; vertical separators stretch within their layout parent. Base UI owns separator semantics and the native/primitive prop type remains authoritative. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import { Separator } from '@alneas/appkit-react/ui';
|
|
10
|
+
* import '@alneas/appkit-react/styles';
|
|
11
|
+
*
|
|
12
|
+
* export function Example() {
|
|
13
|
+
* return (<div><p>First section</p><Separator /><p>Second section</p></div>);
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
5
16
|
*/
|
|
6
17
|
declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
18
|
export { Separator };
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
3
|
+
* Renders a styled horizontal or vertical Base UI separator.
|
|
4
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling. Wrapper defaults: orientation='horizontal'.
|
|
5
|
+
* @returns The rendered Separator composition.
|
|
6
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. orientation defaults to horizontal; vertical separators stretch within their layout parent. Base UI owns separator semantics and the native/primitive prop type remains authoritative. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* import { Separator } from '@alneas/appkit-react/ui';
|
|
10
|
+
* import '@alneas/appkit-react/styles';
|
|
11
|
+
*
|
|
12
|
+
* export function Example() {
|
|
13
|
+
* return (<div><p>First section</p><Separator /><p>Second section</p></div>);
|
|
14
|
+
* }
|
|
15
|
+
* ```
|
|
5
16
|
*/
|
|
6
17
|
declare const Separator: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
7
18
|
export { Separator };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"separator.js","names":["React","SeparatorPrimitive","React$1","Separator$1","Separator","props","cn","className"],"sources":["../../../../src/ui/components/ui/separator.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Separator as SeparatorPrimitive } from '@base-ui/react/separator';\n\nimport { cn } from '../../lib/utils';\n\n/**\n * Separator
|
|
1
|
+
{"version":3,"file":"separator.js","names":["React","SeparatorPrimitive","React$1","Separator$1","Separator","props","cn","className"],"sources":["../../../../src/ui/components/ui/separator.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Separator as SeparatorPrimitive } from '@base-ui/react/separator';\n\nimport { cn } from '../../lib/utils';\n\n/**\n * Renders a styled horizontal or vertical Base UI separator.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling. Wrapper defaults: orientation='horizontal'.\n * @returns The rendered Separator composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. orientation defaults to horizontal; vertical separators stretch within their layout parent. Base UI owns separator semantics and the native/primitive prop type remains authoritative. The ref prop forwards to the rendered control or container declared by the component ref type.\n * @example\n * ```tsx\n * import { Separator } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<div><p>First section</p><Separator /><p>Second section</p></div>);\n * }\n * ```\n */\nconst Separator = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof SeparatorPrimitive>\n>(({ className, orientation = 'horizontal', ...props }, ref) => (\n <SeparatorPrimitive\n ref={ref}\n data-slot='separator'\n orientation={orientation}\n className={cn(\n 'bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px data-[orientation=vertical]:self-stretch',\n className,\n )}\n {...props}\n />\n));\nSeparator.displayName = SeparatorPrimitive.displayName;\n\nexport { Separator };\n"],"mappings":";;;;;;AAoBA,IAAMI,IAAYJ,EAAM,YAGrB,EAAE,cAAW,iBAAc,cAAc,GAAGK,KAAS,MACtD,kBAACJ,GAAD;CACO;CACL,aAAU;CACG;CACb,WAAWK,EACT,wKACAC,CACF;CACA,GAAIF;AACL,CAAA,CACF;AACD,EAAU,cAAcJ,EAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.cjs","names":["SheetPrimitive","cn","React","Button","XIcon","require_runtime","require_ui_lib_utils","require_ui_components_ui_button_components","react_jsx_runtime","react","lucide_react","_base_ui_react_dialog","Sheet","props","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","className","SheetContent","testId","side","children","showCloseButton","SheetHeader","SheetFooter","SheetTitle","SheetDescription"],"sources":["../../../../src/ui/components/ui/sheet.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Dialog as SheetPrimitive } from '@base-ui/react/dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from '../../lib/utils';\nimport { Button } from '../../components/ui/button';\n\n/**\n * 画面の端からスライドインして表示されるサイドパネルのルートコンポーネント。\n */\nfunction Sheet({ ...props }: SheetPrimitive.Root.Props) {\n return <SheetPrimitive.Root data-slot='sheet' {...props} />;\n}\n\n/**\n * シートパネルを開くためのトリガーボタン。\n */\nfunction SheetTrigger({\n children,\n ...props\n}: SheetPrimitive.Trigger.Props) {\n return (\n <SheetPrimitive.Trigger\n data-slot='sheet-trigger'\n {...props}\n >\n {children}\n </SheetPrimitive.Trigger>\n );\n}\n\n/**\n * シートパネルを閉じるためのボタンまたはトリガー。\n */\nfunction SheetClose({ ...props }: SheetPrimitive.Close.Props) {\n return <SheetPrimitive.Close data-slot='sheet-close' {...props} />;\n}\n\nfunction SheetPortal({ ...props }: SheetPrimitive.Portal.Props) {\n return <SheetPrimitive.Portal data-slot='sheet-portal' {...props} />;\n}\n\nfunction SheetOverlay({ className, ...props }: SheetPrimitive.Backdrop.Props) {\n return (\n <SheetPrimitive.Backdrop\n data-slot='sheet-overlay'\n className={cn(\n 'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50',\n className,\n )}\n {...props}\n />\n );\n}\n\ninterface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Popup> {\n side?: 'top' | 'right' | 'bottom' | 'left';\n showCloseButton?: boolean;\n testId?: string;\n}\n\nconst SheetContent = React.forwardRef<HTMLDivElement, SheetContentProps>(\n ({ className, children, side = 'right', showCloseButton = true, testId, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Popup\n ref={ref}\n data-slot='sheet-content'\n data-testid={testId}\n data-side={side}\n className={cn(\n 'bg-background fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg',\n // Explicit animation classes from properties\n side === 'right' &&\n 'inset-y-0 right-0 h-full w-3/4 border-l data-open:animate-in data-closed:animate-out data-open:slide-in-from-right data-closed:slide-out-to-right data-open:ease-out data-closed:ease-in duration-300 sm:max-w-sm',\n side === 'left' &&\n 'inset-y-0 left-0 h-full w-3/4 border-r data-open:animate-in data-closed:animate-out data-open:slide-in-from-left data-closed:slide-out-to-left data-open:ease-out data-closed:ease-in duration-300 sm:max-w-sm',\n side === 'top' &&\n 'inset-x-0 top-0 h-auto border-b data-open:animate-in data-closed:animate-out data-open:slide-in-from-top data-closed:slide-out-to-top data-open:ease-out data-closed:ease-in duration-300',\n side === 'bottom' &&\n 'inset-x-0 bottom-0 h-auto border-t data-open:animate-in data-closed:animate-out data-open:slide-in-from-bottom data-closed:slide-out-to-bottom data-open:ease-out data-closed:ease-in duration-300',\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <SheetPrimitive.Close\n data-slot='sheet-close'\n render={<Button variant='ghost' className='absolute top-3 right-3' size='icon-sm' />}\n >\n <XIcon />\n <span className='sr-only'>Close</span>\n </SheetPrimitive.Close>\n )}\n </SheetPrimitive.Popup>\n </SheetPortal>\n ),\n);\nSheetContent.displayName = SheetPrimitive.Popup.displayName;\n\nconst SheetHeader = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot='sheet-header'\n className={cn('gap-0.5 p-4 flex flex-col', className)}\n {...props}\n />\n ),\n);\nSheetHeader.displayName = 'SheetHeader';\n\nconst SheetFooter = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot='sheet-footer'\n className={cn('gap-2 p-4 mt-auto flex flex-col', className)}\n {...props}\n />\n ),\n);\nSheetFooter.displayName = 'SheetFooter';\n\nconst SheetTitle = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n data-slot='sheet-title'\n className={cn('text-foreground text-base font-medium', className)}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\nconst SheetDescription = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n data-slot='sheet-description'\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n"],"mappings":"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"}
|
|
1
|
+
{"version":3,"file":"sheet.cjs","names":["SheetPrimitive","cn","React","Button","XIcon","require_runtime","require_ui_lib_utils","require_ui_components_ui_button_components","react_jsx_runtime","react","lucide_react","_base_ui_react_dialog","Sheet","props","SheetTrigger","SheetClose","SheetPortal","SheetOverlay","className","SheetContent","testId","side","children","showCloseButton","SheetHeader","SheetFooter","SheetTitle","SheetDescription"],"sources":["../../../../src/ui/components/ui/sheet.tsx"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { Dialog as SheetPrimitive } from '@base-ui/react/dialog';\nimport { XIcon } from 'lucide-react';\n\nimport { cn } from '../../lib/utils';\nimport { Button } from '../../components/ui/button';\n\n/**\n * Coordinates open state and interaction context for the popup.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered Sheet composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider.\n * @example\n * ```tsx\n * import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);\n * }\n * ```\n */\nfunction Sheet({ ...props }: SheetPrimitive.Root.Props) {\n return <SheetPrimitive.Root data-slot='sheet' {...props} />;\n}\n\n/**\n * Renders the control that requests opening its popup.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SheetTrigger composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider.\n * @example\n * ```tsx\n * import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);\n * }\n * ```\n */\nfunction SheetTrigger({\n children,\n ...props\n}: SheetPrimitive.Trigger.Props) {\n return (\n <SheetPrimitive.Trigger\n data-slot='sheet-trigger'\n {...props}\n >\n {children}\n </SheetPrimitive.Trigger>\n );\n}\n\n/**\n * Renders a control that requests closing its popup.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SheetClose composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider.\n * @example\n * ```tsx\n * import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);\n * }\n * ```\n */\nfunction SheetClose({ ...props }: SheetPrimitive.Close.Props) {\n return <SheetPrimitive.Close data-slot='sheet-close' {...props} />;\n}\n\nfunction SheetPortal({ ...props }: SheetPrimitive.Portal.Props) {\n return <SheetPrimitive.Portal data-slot='sheet-portal' {...props} />;\n}\n\nfunction SheetOverlay({ className, ...props }: SheetPrimitive.Backdrop.Props) {\n return (\n <SheetPrimitive.Backdrop\n data-slot='sheet-overlay'\n className={cn(\n 'data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 bg-black/10 duration-100 data-ending-style:opacity-0 data-starting-style:opacity-0 supports-backdrop-filter:backdrop-blur-xs fixed inset-0 z-50',\n className,\n )}\n {...props}\n />\n );\n}\n\n/**\n * Base UI popup props with drawer edge, close-control and test-selector settings.\n * @remarks Inherited native or primitive props keep their upstream types and behavior; this declaration documents only the wrapper-owned options.\n * @see SheetContent\n */\ninterface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Popup> {\n /**\n * Edge from which the sheet enters; defaults to right.\n */\n side?: 'top' | 'right' | 'bottom' | 'left';\n /**\n * Shows the built-in close button; defaults to true.\n */\n showCloseButton?: boolean;\n /**\n * data-testid on the sheet popup only; the built-in close control does not receive a derived test ID.\n */\n testId?: string;\n}\n\n/**\n * Portals the popup and its positioning/backdrop composition.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling. Wrapper defaults: side='right', showCloseButton=true.\n * @returns The rendered SheetContent composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.\n * @example\n * ```tsx\n * import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);\n * }\n * ```\n */\nconst SheetContent = React.forwardRef<HTMLDivElement, SheetContentProps>(\n ({ className, children, side = 'right', showCloseButton = true, testId, ...props }, ref) => (\n <SheetPortal>\n <SheetOverlay />\n <SheetPrimitive.Popup\n ref={ref}\n data-slot='sheet-content'\n data-testid={testId}\n data-side={side}\n className={cn(\n 'bg-background fixed z-50 flex flex-col gap-4 bg-clip-padding text-sm shadow-lg',\n // Explicit animation classes from properties\n side === 'right' &&\n 'inset-y-0 right-0 h-full w-3/4 border-l data-open:animate-in data-closed:animate-out data-open:slide-in-from-right data-closed:slide-out-to-right data-open:ease-out data-closed:ease-in duration-300 sm:max-w-sm',\n side === 'left' &&\n 'inset-y-0 left-0 h-full w-3/4 border-r data-open:animate-in data-closed:animate-out data-open:slide-in-from-left data-closed:slide-out-to-left data-open:ease-out data-closed:ease-in duration-300 sm:max-w-sm',\n side === 'top' &&\n 'inset-x-0 top-0 h-auto border-b data-open:animate-in data-closed:animate-out data-open:slide-in-from-top data-closed:slide-out-to-top data-open:ease-out data-closed:ease-in duration-300',\n side === 'bottom' &&\n 'inset-x-0 bottom-0 h-auto border-t data-open:animate-in data-closed:animate-out data-open:slide-in-from-bottom data-closed:slide-out-to-bottom data-open:ease-out data-closed:ease-in duration-300',\n className,\n )}\n {...props}\n >\n {children}\n {showCloseButton && (\n <SheetPrimitive.Close\n data-slot='sheet-close'\n render={<Button variant='ghost' className='absolute top-3 right-3' size='icon-sm' />}\n >\n <XIcon />\n <span className='sr-only'>Close</span>\n </SheetPrimitive.Close>\n )}\n </SheetPrimitive.Popup>\n </SheetPortal>\n ),\n);\nSheetContent.displayName = SheetPrimitive.Popup.displayName;\n\n/**\n * Groups popup heading and explanatory content.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SheetHeader composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.\n * @example\n * ```tsx\n * import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);\n * }\n * ```\n */\nconst SheetHeader = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot='sheet-header'\n className={cn('gap-0.5 p-4 flex flex-col', className)}\n {...props}\n />\n ),\n);\nSheetHeader.displayName = 'SheetHeader';\n\n/**\n * Lays out popup actions below its content.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SheetFooter composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.\n * @example\n * ```tsx\n * import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);\n * }\n * ```\n */\nconst SheetFooter = React.forwardRef<HTMLDivElement, React.ComponentPropsWithoutRef<'div'>>(\n ({ className, ...props }, ref) => (\n <div\n ref={ref}\n data-slot='sheet-footer'\n className={cn('gap-2 p-4 mt-auto flex flex-col', className)}\n {...props}\n />\n ),\n);\nSheetFooter.displayName = 'SheetFooter';\n\n/**\n * Provides the accessible title of the associated popup.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SheetTitle composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.\n * @example\n * ```tsx\n * import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);\n * }\n * ```\n */\nconst SheetTitle = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Title>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Title>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Title\n ref={ref}\n data-slot='sheet-title'\n className={cn('text-foreground text-base font-medium', className)}\n {...props}\n />\n));\nSheetTitle.displayName = SheetPrimitive.Title.displayName;\n\n/**\n * Provides the accessible explanatory text of the associated popup.\n * @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.\n * @returns The rendered SheetDescription composition.\n * @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.\n * @example\n * ```tsx\n * import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';\n * import '@alneas/appkit-react/styles';\n *\n * export function Example() {\n * return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);\n * }\n * ```\n */\nconst SheetDescription = React.forwardRef<\n React.ComponentRef<typeof SheetPrimitive.Description>,\n React.ComponentPropsWithoutRef<typeof SheetPrimitive.Description>\n>(({ className, ...props }, ref) => (\n <SheetPrimitive.Description\n ref={ref}\n data-slot='sheet-description'\n className={cn('text-muted-foreground text-sm', className)}\n {...props}\n />\n));\nSheetDescription.displayName = SheetPrimitive.Description.displayName;\n\nexport {\n Sheet,\n SheetTrigger,\n SheetClose,\n SheetContent,\n SheetHeader,\n SheetFooter,\n SheetTitle,\n SheetDescription,\n};\n"],"mappings":"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"}
|
|
@@ -1,25 +1,150 @@
|
|
|
1
1
|
import { Dialog as SheetPrimitive } from '@base-ui/react/dialog';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Coordinates open state and interaction context for the popup.
|
|
5
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
6
|
+
* @returns The rendered Sheet composition.
|
|
7
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider.
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
11
|
+
* import '@alneas/appkit-react/styles';
|
|
12
|
+
*
|
|
13
|
+
* export function Example() {
|
|
14
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
5
17
|
*/
|
|
6
18
|
declare function Sheet({ ...props }: SheetPrimitive.Root.Props): React.JSX.Element;
|
|
7
19
|
/**
|
|
8
|
-
*
|
|
20
|
+
* Renders the control that requests opening its popup.
|
|
21
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
22
|
+
* @returns The rendered SheetTrigger composition.
|
|
23
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider.
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
27
|
+
* import '@alneas/appkit-react/styles';
|
|
28
|
+
*
|
|
29
|
+
* export function Example() {
|
|
30
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
9
33
|
*/
|
|
10
34
|
declare function SheetTrigger({ children, ...props }: SheetPrimitive.Trigger.Props): React.JSX.Element;
|
|
11
35
|
/**
|
|
12
|
-
*
|
|
36
|
+
* Renders a control that requests closing its popup.
|
|
37
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
38
|
+
* @returns The rendered SheetClose composition.
|
|
39
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider.
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
43
|
+
* import '@alneas/appkit-react/styles';
|
|
44
|
+
*
|
|
45
|
+
* export function Example() {
|
|
46
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
13
49
|
*/
|
|
14
50
|
declare function SheetClose({ ...props }: SheetPrimitive.Close.Props): React.JSX.Element;
|
|
51
|
+
/**
|
|
52
|
+
* Base UI popup props with drawer edge, close-control and test-selector settings.
|
|
53
|
+
* @remarks Inherited native or primitive props keep their upstream types and behavior; this declaration documents only the wrapper-owned options.
|
|
54
|
+
* @see SheetContent
|
|
55
|
+
*/
|
|
15
56
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Popup> {
|
|
57
|
+
/**
|
|
58
|
+
* Edge from which the sheet enters; defaults to right.
|
|
59
|
+
*/
|
|
16
60
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
61
|
+
/**
|
|
62
|
+
* Shows the built-in close button; defaults to true.
|
|
63
|
+
*/
|
|
17
64
|
showCloseButton?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* data-testid on the sheet popup only; the built-in close control does not receive a derived test ID.
|
|
67
|
+
*/
|
|
18
68
|
testId?: string;
|
|
19
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Portals the popup and its positioning/backdrop composition.
|
|
72
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling. Wrapper defaults: side='right', showCloseButton=true.
|
|
73
|
+
* @returns The rendered SheetContent composition.
|
|
74
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
75
|
+
* @example
|
|
76
|
+
* ```tsx
|
|
77
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
78
|
+
* import '@alneas/appkit-react/styles';
|
|
79
|
+
*
|
|
80
|
+
* export function Example() {
|
|
81
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
82
|
+
* }
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
20
85
|
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
86
|
+
/**
|
|
87
|
+
* Groups popup heading and explanatory content.
|
|
88
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
89
|
+
* @returns The rendered SheetHeader composition.
|
|
90
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
91
|
+
* @example
|
|
92
|
+
* ```tsx
|
|
93
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
94
|
+
* import '@alneas/appkit-react/styles';
|
|
95
|
+
*
|
|
96
|
+
* export function Example() {
|
|
97
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
98
|
+
* }
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
21
101
|
declare const SheetHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
102
|
+
/**
|
|
103
|
+
* Lays out popup actions below its content.
|
|
104
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
105
|
+
* @returns The rendered SheetFooter composition.
|
|
106
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
107
|
+
* @example
|
|
108
|
+
* ```tsx
|
|
109
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
110
|
+
* import '@alneas/appkit-react/styles';
|
|
111
|
+
*
|
|
112
|
+
* export function Example() {
|
|
113
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
114
|
+
* }
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
22
117
|
declare const SheetFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
118
|
+
/**
|
|
119
|
+
* Provides the accessible title of the associated popup.
|
|
120
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
121
|
+
* @returns The rendered SheetTitle composition.
|
|
122
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
123
|
+
* @example
|
|
124
|
+
* ```tsx
|
|
125
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
126
|
+
* import '@alneas/appkit-react/styles';
|
|
127
|
+
*
|
|
128
|
+
* export function Example() {
|
|
129
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
130
|
+
* }
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
23
133
|
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AlertDialogTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
134
|
+
/**
|
|
135
|
+
* Provides the accessible explanatory text of the associated popup.
|
|
136
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
137
|
+
* @returns The rendered SheetDescription composition.
|
|
138
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
139
|
+
* @example
|
|
140
|
+
* ```tsx
|
|
141
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
142
|
+
* import '@alneas/appkit-react/styles';
|
|
143
|
+
*
|
|
144
|
+
* export function Example() {
|
|
145
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
146
|
+
* }
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
24
149
|
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AlertDialogDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
150
|
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|
|
@@ -1,25 +1,150 @@
|
|
|
1
1
|
import { Dialog as SheetPrimitive } from '@base-ui/react/dialog';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Coordinates open state and interaction context for the popup.
|
|
5
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
6
|
+
* @returns The rendered Sheet composition.
|
|
7
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider.
|
|
8
|
+
* @example
|
|
9
|
+
* ```tsx
|
|
10
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
11
|
+
* import '@alneas/appkit-react/styles';
|
|
12
|
+
*
|
|
13
|
+
* export function Example() {
|
|
14
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
5
17
|
*/
|
|
6
18
|
declare function Sheet({ ...props }: SheetPrimitive.Root.Props): React.JSX.Element;
|
|
7
19
|
/**
|
|
8
|
-
*
|
|
20
|
+
* Renders the control that requests opening its popup.
|
|
21
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
22
|
+
* @returns The rendered SheetTrigger composition.
|
|
23
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider.
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
27
|
+
* import '@alneas/appkit-react/styles';
|
|
28
|
+
*
|
|
29
|
+
* export function Example() {
|
|
30
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
9
33
|
*/
|
|
10
34
|
declare function SheetTrigger({ children, ...props }: SheetPrimitive.Trigger.Props): React.JSX.Element;
|
|
11
35
|
/**
|
|
12
|
-
*
|
|
36
|
+
* Renders a control that requests closing its popup.
|
|
37
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
38
|
+
* @returns The rendered SheetClose composition.
|
|
39
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider.
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
43
|
+
* import '@alneas/appkit-react/styles';
|
|
44
|
+
*
|
|
45
|
+
* export function Example() {
|
|
46
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
47
|
+
* }
|
|
48
|
+
* ```
|
|
13
49
|
*/
|
|
14
50
|
declare function SheetClose({ ...props }: SheetPrimitive.Close.Props): React.JSX.Element;
|
|
51
|
+
/**
|
|
52
|
+
* Base UI popup props with drawer edge, close-control and test-selector settings.
|
|
53
|
+
* @remarks Inherited native or primitive props keep their upstream types and behavior; this declaration documents only the wrapper-owned options.
|
|
54
|
+
* @see SheetContent
|
|
55
|
+
*/
|
|
15
56
|
interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Popup> {
|
|
57
|
+
/**
|
|
58
|
+
* Edge from which the sheet enters; defaults to right.
|
|
59
|
+
*/
|
|
16
60
|
side?: 'top' | 'right' | 'bottom' | 'left';
|
|
61
|
+
/**
|
|
62
|
+
* Shows the built-in close button; defaults to true.
|
|
63
|
+
*/
|
|
17
64
|
showCloseButton?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* data-testid on the sheet popup only; the built-in close control does not receive a derived test ID.
|
|
67
|
+
*/
|
|
18
68
|
testId?: string;
|
|
19
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* Portals the popup and its positioning/backdrop composition.
|
|
72
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling. Wrapper defaults: side='right', showCloseButton=true.
|
|
73
|
+
* @returns The rendered SheetContent composition.
|
|
74
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
75
|
+
* @example
|
|
76
|
+
* ```tsx
|
|
77
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
78
|
+
* import '@alneas/appkit-react/styles';
|
|
79
|
+
*
|
|
80
|
+
* export function Example() {
|
|
81
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
82
|
+
* }
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
20
85
|
declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
86
|
+
/**
|
|
87
|
+
* Groups popup heading and explanatory content.
|
|
88
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
89
|
+
* @returns The rendered SheetHeader composition.
|
|
90
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
91
|
+
* @example
|
|
92
|
+
* ```tsx
|
|
93
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
94
|
+
* import '@alneas/appkit-react/styles';
|
|
95
|
+
*
|
|
96
|
+
* export function Example() {
|
|
97
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
98
|
+
* }
|
|
99
|
+
* ```
|
|
100
|
+
*/
|
|
21
101
|
declare const SheetHeader: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
102
|
+
/**
|
|
103
|
+
* Lays out popup actions below its content.
|
|
104
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
105
|
+
* @returns The rendered SheetFooter composition.
|
|
106
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
107
|
+
* @example
|
|
108
|
+
* ```tsx
|
|
109
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
110
|
+
* import '@alneas/appkit-react/styles';
|
|
111
|
+
*
|
|
112
|
+
* export function Example() {
|
|
113
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
114
|
+
* }
|
|
115
|
+
* ```
|
|
116
|
+
*/
|
|
22
117
|
declare const SheetFooter: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
118
|
+
/**
|
|
119
|
+
* Provides the accessible title of the associated popup.
|
|
120
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
121
|
+
* @returns The rendered SheetTitle composition.
|
|
122
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
123
|
+
* @example
|
|
124
|
+
* ```tsx
|
|
125
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
126
|
+
* import '@alneas/appkit-react/styles';
|
|
127
|
+
*
|
|
128
|
+
* export function Example() {
|
|
129
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
130
|
+
* }
|
|
131
|
+
* ```
|
|
132
|
+
*/
|
|
23
133
|
declare const SheetTitle: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AlertDialogTitleProps, "ref"> & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
134
|
+
/**
|
|
135
|
+
* Provides the accessible explanatory text of the associated popup.
|
|
136
|
+
* @param props - Component attributes and children accepted by the declared Base UI or native prop type; className customizes wrapper styling.
|
|
137
|
+
* @returns The rendered SheetDescription composition.
|
|
138
|
+
* @remarks Import @alneas/appkit-react/styles in the rendering host. Compose trigger, content, title and description inside Sheet; the underlying primitive owns open state and focus. Content supplies its own portal and backdrop. Separate lower-level exports support custom compositions, without requiring an application-level popup provider. The ref prop forwards to the rendered control or container declared by the component ref type.
|
|
139
|
+
* @example
|
|
140
|
+
* ```tsx
|
|
141
|
+
* import { Sheet, SheetTrigger, SheetContent, SheetTitle, SheetDescription } from '@alneas/appkit-react/ui';
|
|
142
|
+
* import '@alneas/appkit-react/styles';
|
|
143
|
+
*
|
|
144
|
+
* export function Example() {
|
|
145
|
+
* return (<Sheet><SheetTrigger>Open details</SheetTrigger><SheetContent><SheetTitle>Details</SheetTitle><SheetDescription>Project information</SheetDescription></SheetContent></Sheet>);
|
|
146
|
+
* }
|
|
147
|
+
* ```
|
|
148
|
+
*/
|
|
24
149
|
declare const SheetDescription: React.ForwardRefExoticComponent<Omit<Omit<import('@base-ui/react').AlertDialogDescriptionProps, "ref"> & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
25
150
|
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, };
|