spine-framework 0.3.125 → 0.3.126
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/.framework/cli/commands/agents.ts +35 -37
- package/.framework/cli/commands/auth.ts +35 -34
- package/.framework/cli/commands/create-app.ts +104 -40
- package/.framework/cli/commands/dev.ts +104 -69
- package/.framework/cli/commands/doctor.ts +169 -97
- package/.framework/cli/commands/generate.ts +82 -160
- package/.framework/cli/commands/init.ts +72 -34
- package/.framework/cli/commands/install-app.ts +260 -125
- package/.framework/cli/commands/items.ts +33 -44
- package/.framework/cli/commands/migrate.ts +122 -40
- package/.framework/cli/commands/migrations.ts +33 -40
- package/.framework/cli/commands/pipelines.ts +31 -39
- package/.framework/cli/commands/status.ts +47 -23
- package/.framework/cli/commands/system.ts +47 -37
- package/.framework/cli/commands/test.ts +112 -68
- package/.framework/cli/commands/validate-app.ts +215 -121
- package/.framework/cli/context.ts +112 -130
- package/.framework/cli/env-loader.ts +47 -18
- package/.framework/cli/index.ts +81 -42
- package/.framework/docs/runtime-types.md +1024 -0
- package/.framework/functions/_shared/agent-runner.ts +1296 -961
- package/.framework/functions/_shared/app-manifest.ts +82 -68
- package/.framework/functions/_shared/audit.ts +135 -83
- package/.framework/functions/_shared/{cil-state.ts → cil.ts} +147 -54
- package/.framework/functions/_shared/db.ts +80 -126
- package/.framework/functions/_shared/hash-api-key.ts +63 -0
- package/.framework/functions/_shared/index.ts +222 -347
- package/.framework/functions/_shared/kb.ts +319 -0
- package/.framework/functions/_shared/llm.ts +92 -0
- package/.framework/functions/_shared/logging.ts +288 -0
- package/.framework/functions/_shared/middleware.ts +329 -365
- package/.framework/functions/_shared/outcomes.ts +36 -0
- package/.framework/functions/_shared/permissions.ts +359 -643
- package/.framework/functions/_shared/pipeline-runner.ts +243 -316
- package/.framework/functions/_shared/principal.ts +376 -468
- package/.framework/functions/_shared/resolve-credentials.ts +102 -0
- package/.framework/functions/_shared/resolve-ids.ts +162 -14
- package/.framework/functions/_shared/retry-deliveries.ts +104 -0
- package/.framework/functions/_shared/schema-utils.ts +611 -373
- package/.framework/functions/_shared/testing.ts +207 -137
- package/.framework/functions/_shared/tracing.ts +276 -0
- package/.framework/functions/_shared/trigger-engine.ts +159 -211
- package/.framework/functions/_shared/webhook-registration.ts +95 -81
- package/.framework/functions/_shared/webhook-registry.ts +153 -75
- package/.framework/functions/account-nodes.ts +31 -53
- package/.framework/functions/adapters/generic-webhook-inbound.ts +56 -0
- package/.framework/functions/adapters/generic-webhook-outbound.ts +43 -0
- package/.framework/functions/adapters/openai-outbound.ts +40 -0
- package/.framework/functions/admin-data.ts +687 -533
- package/.framework/functions/admin-funnel.ts +31 -20
- package/.framework/functions/admin-install-funnel.ts +47 -28
- package/.framework/functions/admin-signals.ts +47 -29
- package/.framework/functions/ai-agents.ts +122 -147
- package/.framework/functions/ai-interactions.ts +180 -90
- package/.framework/functions/api-keys.ts +250 -192
- package/.framework/functions/apps.ts +203 -197
- package/.framework/functions/auth.ts +98 -91
- package/.framework/functions/cil-agent-ingest.ts +773 -0
- package/.framework/functions/cil-agent.ts +592 -0
- package/.framework/functions/cil-callmap.ts +1227 -0
- package/.framework/functions/cil-config.ts +583 -0
- package/.framework/functions/cil-context.ts +445 -0
- package/.framework/functions/cil-doc.ts +1752 -0
- package/.framework/functions/cil-embeddings.ts +1202 -0
- package/.framework/functions/cil-graph.ts +585 -0
- package/.framework/functions/cil-ingest.ts +2416 -0
- package/.framework/functions/cil-pipeline.ts +318 -0
- package/.framework/functions/cil-project.ts +499 -0
- package/.framework/functions/cil-validate.ts +469 -0
- package/.framework/functions/debug-auth.ts +73 -53
- package/.framework/functions/deliveries.ts +117 -0
- package/.framework/functions/embeddings.ts +528 -516
- package/.framework/functions/eval-harness.ts +158 -106
- package/.framework/functions/integration-outbound.ts +311 -0
- package/.framework/functions/integration-routes.ts +240 -466
- package/.framework/functions/integrations.ts +132 -140
- package/.framework/functions/invites.ts +401 -201
- package/.framework/functions/item-progress.ts +113 -53
- package/.framework/functions/kb.ts +28 -0
- package/.framework/functions/logs.ts +239 -222
- package/.framework/functions/observability.ts +308 -259
- package/.framework/functions/pipeline-executions.ts +179 -235
- package/.framework/functions/pipelines.ts +163 -205
- package/.framework/functions/prompt-configs.ts +109 -156
- package/.framework/functions/roles.ts +97 -147
- package/.framework/functions/system-cron.ts +132 -218
- package/.framework/functions/system.ts +112 -52
- package/.framework/functions/tests.ts +32 -28
- package/.framework/functions/timers.ts +162 -210
- package/.framework/functions/triggers.ts +282 -346
- package/.framework/functions/types.ts +283 -400
- package/.framework/migrations/001_core_schema.sql +630 -0
- package/.framework/migrations/002_core_rls_and_functions.sql +532 -0
- package/.framework/migrations/{003_system_data.sql → 003_core_system_data.sql} +26 -153
- package/.framework/migrations/004_core_rpc_and_broker.sql +421 -0
- package/.framework/migrations/005_core_observability.sql +598 -0
- package/.framework/migrations/006_security_hardening_rls.sql +97 -0
- package/.framework/migrations/007_kb_article_list.sql +237 -0
- package/.framework/migrations/008_items_target.sql +8 -0
- package/.framework/migrations/009_roles_slug_unique.sql +11 -0
- package/.framework/public/spine.config.json +91 -0
- package/.framework/scripts/app-install-cli.ts +112 -98
- package/.framework/src/App.tsx +67 -20
- package/.framework/src/apps/admin/index.tsx +97 -27
- package/.framework/src/components/AppWrapper.tsx +50 -11
- package/.framework/src/components/CustomAppLoader.tsx +131 -22
- package/.framework/src/components/admin/AdminListPage.tsx +75 -8
- package/.framework/src/components/admin/AdminSidebar.tsx +148 -36
- package/.framework/src/components/admin/AdminStatsCard.tsx +48 -29
- package/.framework/src/components/admin/PageInstructions.tsx +49 -0
- package/.framework/src/components/admin/SortableTableHeader.tsx +49 -2
- package/.framework/src/components/app-shell/GenericAppShell.tsx +69 -11
- package/.framework/src/components/app-shell/GenericDetailPage.tsx +55 -10
- package/.framework/src/components/app-shell/GenericListPage.tsx +76 -9
- package/.framework/src/components/app-sidebar.tsx +50 -3
- package/.framework/src/components/auth/ProtectedRoute.tsx +53 -45
- package/.framework/src/components/kb/KBArticleEditor.tsx +409 -0
- package/.framework/src/components/kb/KBArticleList.tsx +557 -0
- package/.framework/src/components/layout/AppShell.tsx +54 -16
- package/.framework/src/components/layout/Header.tsx +50 -38
- package/.framework/src/components/layout/Layout.tsx +48 -32
- package/.framework/src/components/layout/Sidebar.tsx +167 -16
- package/.framework/src/components/runtime/DataDetailHeader.tsx +33 -1
- package/.framework/src/components/runtime/DataDetailPage.tsx +289 -4
- package/.framework/src/components/runtime/DataFilters.tsx +78 -1
- package/.framework/src/components/runtime/DataHeader.tsx +32 -29
- package/.framework/src/components/runtime/DataListPage.tsx +161 -2
- package/.framework/src/components/runtime/DataStats.tsx +48 -1
- package/.framework/src/components/runtime/DataTable.tsx +153 -1
- package/.framework/src/components/runtime/SchemaDetailForm.tsx +77 -46
- package/.framework/src/components/runtime/index.ts +16 -9
- package/.framework/src/components/search-form.tsx +33 -1
- package/.framework/src/components/shared/AgentView.tsx +48 -51
- package/.framework/src/components/shared/FieldRenderer.tsx +84 -67
- package/.framework/src/components/shared/InviteManager.tsx +113 -52
- package/.framework/src/components/shared/MemberList.tsx +182 -0
- package/.framework/src/components/shared/SchemaFields.tsx +96 -78
- package/.framework/src/components/ui/DataTable.tsx +86 -56
- package/.framework/src/components/ui/Form.tsx +188 -109
- package/.framework/src/components/ui/ItemCard.tsx +86 -58
- package/.framework/src/components/ui/ItemListView.tsx +88 -61
- package/.framework/src/components/ui/LoadingSpinner.tsx +52 -27
- package/.framework/src/components/ui/Modal.tsx +81 -4
- package/.framework/src/components/ui/RichTextEditor.tsx +101 -9
- package/.framework/src/components/ui/accordion.tsx +97 -5
- package/.framework/src/components/ui/alert-dialog.tsx +225 -13
- package/.framework/src/components/ui/alert.tsx +113 -6
- package/.framework/src/components/ui/aspect-ratio.tsx +49 -2
- package/.framework/src/components/ui/avatar.tsx +129 -7
- package/.framework/src/components/ui/badge.tsx +65 -3
- package/.framework/src/components/ui/breadcrumb.tsx +145 -8
- package/.framework/src/components/ui/button-group.tsx +81 -4
- package/.framework/src/components/ui/button.tsx +49 -2
- package/.framework/src/components/ui/calendar.tsx +65 -3
- package/.framework/src/components/ui/card.tsx +145 -8
- package/.framework/src/components/ui/carousel.tsx +129 -7
- package/.framework/src/components/ui/chart.tsx +161 -10
- package/.framework/src/components/ui/checkbox.tsx +49 -2
- package/.framework/src/components/ui/collapsible.tsx +81 -5
- package/.framework/src/components/ui/combobox.tsx +305 -20
- package/.framework/src/components/ui/command.tsx +177 -11
- package/.framework/src/components/ui/context-menu.tsx +273 -17
- package/.framework/src/components/ui/dialog.tsx +209 -27
- package/.framework/src/components/ui/direction.tsx +64 -4
- package/.framework/src/components/ui/drawer.tsx +193 -12
- package/.framework/src/components/ui/dropdown-menu.tsx +273 -18
- package/.framework/src/components/ui/empty.tsx +145 -9
- package/.framework/src/components/ui/field.tsx +209 -14
- package/.framework/src/components/ui/hover-card.tsx +81 -4
- package/.framework/src/components/ui/input-group.tsx +162 -10
- package/.framework/src/components/ui/input-otp.tsx +98 -5
- package/.framework/src/components/ui/input.tsx +49 -2
- package/.framework/src/components/ui/item.tsx +225 -13
- package/.framework/src/components/ui/kbd.tsx +65 -3
- package/.framework/src/components/ui/label.tsx +49 -2
- package/.framework/src/components/ui/menubar.tsx +289 -17
- package/.framework/src/components/ui/native-select.tsx +97 -5
- package/.framework/src/components/ui/navigation-menu.tsx +177 -10
- package/.framework/src/components/ui/pagination.tsx +161 -9
- package/.framework/src/components/ui/popover.tsx +145 -8
- package/.framework/src/components/ui/progress.tsx +49 -2
- package/.framework/src/components/ui/radio-group.tsx +65 -3
- package/.framework/src/components/ui/resizable.tsx +82 -4
- package/.framework/src/components/ui/scroll-area.tsx +65 -3
- package/.framework/src/components/ui/select.tsx +193 -11
- package/.framework/src/components/ui/separator.tsx +49 -2
- package/.framework/src/components/ui/sheet.tsx +193 -11
- package/.framework/src/components/ui/sidebar.tsx +481 -38
- package/.framework/src/components/ui/skeleton.tsx +49 -2
- package/.framework/src/components/ui/slider.tsx +49 -2
- package/.framework/src/components/ui/sonner.tsx +49 -2
- package/.framework/src/components/ui/spinner.tsx +49 -2
- package/.framework/src/components/ui/switch.tsx +49 -2
- package/.framework/src/components/ui/table-primitives.tsx +160 -33
- package/.framework/src/components/ui/table.tsx +161 -9
- package/.framework/src/components/ui/tabs.tsx +113 -6
- package/.framework/src/components/ui/textarea.tsx +49 -2
- package/.framework/src/components/ui/toggle-group.tsx +81 -4
- package/.framework/src/components/ui/toggle.tsx +65 -3
- package/.framework/src/components/ui/tooltip.tsx +97 -5
- package/.framework/src/contexts/AppContext.tsx +129 -45
- package/.framework/src/contexts/AuthContext.tsx +173 -145
- package/.framework/src/hooks/use-mobile.ts +48 -2
- package/.framework/src/hooks/useApi.ts +208 -159
- package/.framework/src/hooks/useAppPath.ts +32 -23
- package/.framework/src/hooks/useApps.ts +51 -20
- package/.framework/src/hooks/useEntityList.ts +32 -78
- package/.framework/src/hooks/useEntityRecord.ts +35 -96
- package/.framework/src/hooks/useForm.ts +32 -92
- package/.framework/src/hooks/useListSchema.ts +49 -78
- package/.framework/src/hooks/useSchemaRecord.ts +114 -105
- package/.framework/src/lib/api.ts +192 -115
- package/.framework/src/lib/supabase.ts +98 -64
- package/.framework/src/lib/utils.ts +287 -151
- package/.framework/src/main.tsx +49 -3
- package/.framework/src/pages/DashboardPage.tsx +52 -29
- package/.framework/src/pages/NotFoundPage.tsx +32 -10
- package/.framework/src/pages/SetupPage.tsx +32 -12
- package/.framework/src/pages/admin/AIAgentDetailPage.tsx +119 -10
- package/.framework/src/pages/admin/AIAgentsPage.tsx +48 -19
- package/.framework/src/pages/admin/APIKeyDetailPage.tsx +187 -17
- package/.framework/src/pages/admin/APIKeysPage.tsx +98 -22
- package/.framework/src/pages/admin/AlertsConfigPage.tsx +113 -26
- package/.framework/src/pages/admin/AppDetailPage.tsx +125 -8
- package/.framework/src/pages/admin/AppsPage.tsx +49 -2
- package/.framework/src/pages/admin/DeliveriesPage.tsx +196 -0
- package/.framework/src/pages/admin/DesignedPage.tsx +32 -18
- package/.framework/src/pages/admin/EmbeddingDetailPage.tsx +215 -484
- package/.framework/src/pages/admin/EmbeddingsPage.tsx +116 -319
- package/.framework/src/pages/admin/ExtendedShadcnTestPage.tsx +34 -9
- package/.framework/src/pages/admin/IncrementalShadcnTestPage.tsx +34 -9
- package/.framework/src/pages/admin/IntegratedDashboard.tsx +32 -16
- package/.framework/src/pages/admin/IntegrationDetailPage.tsx +183 -26
- package/.framework/src/pages/admin/IntegrationsPage.tsx +48 -19
- package/.framework/src/pages/admin/InvitesPage.tsx +48 -14
- package/.framework/src/pages/admin/LogsPage.tsx +422 -75
- package/.framework/src/pages/admin/MinimalShadcnTestPage.tsx +34 -9
- package/.framework/src/pages/admin/ObservabilityDashboard.tsx +113 -24
- package/.framework/src/pages/admin/PipelineDetailPage.tsx +206 -34
- package/.framework/src/pages/admin/PipelineExecutionsPage.tsx +50 -17
- package/.framework/src/pages/admin/PipelinesPage.tsx +160 -21
- package/.framework/src/pages/admin/PromptConfigDetailPage.tsx +378 -88
- package/.framework/src/pages/admin/PromptConfigsPage.tsx +125 -16
- package/.framework/src/pages/admin/ProperlyDesignedPage.tsx +49 -10
- package/.framework/src/pages/admin/RoleDetailPage.tsx +130 -10
- package/.framework/src/pages/admin/RolesPage.tsx +171 -18
- package/.framework/src/pages/admin/SelectTestPage.tsx +34 -9
- package/.framework/src/pages/admin/ShadcnTestPage.tsx +49 -11
- package/.framework/src/pages/admin/SimpleDashboard.tsx +49 -10
- package/.framework/src/pages/admin/TestRunDetailPage.tsx +49 -4
- package/.framework/src/pages/admin/TestingDashboard.tsx +98 -28
- package/.framework/src/pages/admin/TimerDetailPage.tsx +143 -33
- package/.framework/src/pages/admin/TimersPage.tsx +48 -20
- package/.framework/src/pages/admin/TriggerDetailPage.tsx +118 -30
- package/.framework/src/pages/admin/TriggersPage.tsx +64 -19
- package/.framework/src/pages/admin/TypeDetailPage.tsx +138 -15
- package/.framework/src/pages/admin/TypesPage.tsx +48 -20
- package/.framework/src/pages/admin/cil/CILAgentPage.tsx +465 -0
- package/.framework/src/pages/admin/cil/CILChunkDetailPage.tsx +787 -0
- package/.framework/src/pages/admin/cil/CILDashboardPage.tsx +699 -0
- package/.framework/src/pages/admin/cil/CILFileListPage.tsx +647 -0
- package/.framework/src/pages/admin/cil/CILGraphPage.tsx +616 -0
- package/.framework/src/pages/admin/cil/CILIngestionPage.tsx +1402 -0
- package/.framework/src/pages/admin/cil/CILProjectsPage.tsx +614 -0
- package/.framework/src/pages/admin/cil/CILSearchPage.tsx +571 -0
- package/.framework/src/pages/admin/cil/FlexiblePipelinePage.tsx +731 -0
- package/.framework/src/pages/admin/kb/KBAdminPage.tsx +64 -0
- package/.framework/src/pages/auth/AuthConfirmPage.tsx +52 -51
- package/.framework/src/pages/auth/ForgotPasswordPage.tsx +31 -22
- package/.framework/src/pages/auth/LoginPage.tsx +50 -23
- package/.framework/src/pages/auth/PendingApprovalPage.tsx +31 -15
- package/.framework/src/pages/auth/RegisterPage.tsx +281 -317
- package/.framework/src/pages/spine-framework/APIPage.tsx +33 -0
- package/.framework/src/pages/spine-framework/CLIPage.tsx +33 -0
- package/.framework/src/types/auth.ts +128 -71
- package/.framework/src/types/types.ts +373 -157
- package/custom/.devin/skills/spine-workbench-discovery/SKILL.md +39 -0
- package/custom/.devin/skills/spine-workbench-idea/SKILL.md +36 -0
- package/custom/.devin/skills/spine-workbench-implement/SKILL.md +46 -0
- package/custom/.devin/skills/spine-workbench-initiative/SKILL.md +28 -0
- package/custom/.devin/skills/spine-workbench-plan/SKILL.md +38 -0
- package/docs/README.md +9 -130
- package/netlify.toml +3 -3
- package/package.json +13 -25
- package/scripts/kb-ingest-docs.ts +203 -0
- package/spine.config.json +65 -4
- package/.framework/migrations/001_schema.sql +0 -425
- package/.framework/migrations/002_rls_and_functions.sql +0 -763
- package/.framework/migrations/004_enhancements.sql +0 -43
- package/.framework/migrations/005_auth_user_trigger.sql +0 -105
- package/.framework/migrations/006_fix_current_actor_id.sql +0 -21
- package/.framework/migrations/016_invites.sql +0 -27
- package/.framework/migrations/017_fix_get_account_apps.sql +0 -78
- package/.framework/migrations/018_apps_required_roles.sql +0 -17
- package/.framework/migrations/019_triggers_unique_constraint.sql +0 -13
- package/.framework/migrations/020_get_account_apps_role_filter.sql +0 -117
- package/.framework/migrations/021_app_domains.sql +0 -112
- package/.framework/migrations/022_route_prefix_domain_unique.sql +0 -21
- package/.framework/migrations/023_match_embeddings_rpc.sql +0 -78
- package/.framework/migrations/024_messages_account_id.sql +0 -9
- package/.framework/migrations/025_retype_threads_messages.sql +0 -240
- package/.framework/migrations/026_fix_rls_policies.sql +0 -47
- package/.framework/migrations/027_embedding_lifecycle.sql +0 -176
- package/.framework/migrations/028_fix_message_data_permissions.sql +0 -49
- package/.framework/migrations/029_tighten_support_triage_prompt.sql +0 -41
- package/.framework/migrations/030_messages_updated_by.sql +0 -6
- package/.framework/migrations/031_seed_upsert_constraints.sql +0 -35
- package/docs/APPS.md +0 -232
- package/docs/ARCHITECTURE.md +0 -246
- package/docs/INSTALL.md +0 -155
- package/docs/design-schema-spec.md +0 -1837
- package/docs/dev-guides/01-create-an-app.md +0 -183
- package/docs/dev-guides/02-create-a-function.md +0 -178
- package/docs/dev-guides/03-create-a-component.md +0 -178
- package/docs/dev-guides/04-webhook-handlers.md +0 -129
- package/docs/dev-guides/05-testing.md +0 -168
- package/docs/dev-guides/README.md +0 -40
- package/docs/npm-packages-plan.md +0 -288
- package/docs/spine-core--api-reference.md +0 -822
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
// CIL[BEGIN chunk_id="input_group_module_header_1783796064" type="module_header" identity="imports" parent="none"]
|
|
12
|
+
// CIL[DOC-MACRO purpose="Import dependencies for input group components"]
|
|
13
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Import React, CVA, utilities, and UI components"]
|
|
14
|
+
// CIL[DOC-CONTEXT module="input-group" layer="ui_components" related_files="[\"custom/apps/cortex/pages/operations/OperationsDashboard.tsx\",\".framework/src/components/ui/dialog.tsx\",\".framework/src/pages/admin/TypeDetailPage.tsx\",\".framework/functions/_shared/principal.ts\",\".framework/functions/_shared/schema-utils.ts\",\"\\\"]"]
|
|
15
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="imported modules" errors="none" side_effects="module imports"]
|
|
16
|
+
// CIL[DOC-MICRO logic_summary="Imports all dependencies for input group component system" notable_decisions="[]"]
|
|
17
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
18
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
19
|
+
// CIL[DOC-AUDIENCE audience="developer"]
|
|
20
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: custom/apps/cortex/pages/operations/OperationsDashboard.tsx, .framework/src/components/ui/dialog.tsx, .framework/src/pages/admin/TypeDetailPage.tsx, .framework/functions/_shared/principal.ts, .framework/functions/_shared/schema-utils.ts, \."]
|
|
21
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
22
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
23
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
24
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
25
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
1
26
|
import * as React from "react"
|
|
2
27
|
import { cva, type VariantProps } from "class-variance-authority"
|
|
3
28
|
|
|
@@ -5,7 +30,21 @@ import { cn } from "@/lib/utils"
|
|
|
5
30
|
import { Button } from "@/components/ui/button"
|
|
6
31
|
import { Input } from "@/components/ui/input"
|
|
7
32
|
import { Textarea } from "@/components/ui/textarea"
|
|
8
|
-
|
|
33
|
+
// CIL[END chunk_id="input_group_module_header_1783796064"]
|
|
34
|
+
// CIL[BEGIN chunk_id="input_group_inputgroup_1783796064" type="function" identity="inputgroup" parent="none"]
|
|
35
|
+
// CIL[DOC-MACRO purpose="Render main input group container"]
|
|
36
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create styled container for input group elements"]
|
|
37
|
+
// CIL[DOC-CONTEXT module="input-group" layer="ui_components" related_files="[\"custom/apps/portal/pages/ContentPage.tsx\",\".framework/src/pages/admin/RolesPage.tsx\",\"custom/apps/cortex/functions/custom_cil-embeddings.ts\",\"\\\"]"]
|
|
38
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="styled input group container" errors="none" side_effects="renders DOM element"]
|
|
39
|
+
// CIL[DOC-MICRO logic_summary="Creates flex container with comprehensive styling for input groups" notable_decisions="[]"]
|
|
40
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
41
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
42
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: custom/apps/portal/pages/ContentPage.tsx, .framework/src/pages/admin/RolesPage.tsx, custom/apps/cortex/functions/custom_cil-embeddings.ts, \."]
|
|
43
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
44
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
45
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
46
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
47
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
9
48
|
function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
|
|
10
49
|
return (
|
|
11
50
|
<div
|
|
@@ -19,7 +58,21 @@ function InputGroup({ className, ...props }: React.ComponentProps<"div">) {
|
|
|
19
58
|
/>
|
|
20
59
|
)
|
|
21
60
|
}
|
|
22
|
-
|
|
61
|
+
// CIL[END chunk_id="input_group_inputgroup_1783796064"]
|
|
62
|
+
// CIL[BEGIN chunk_id="input_group_inputgroupaddonvariants_1783796064" type="cva" identity="inputgroupaddonvariants" parent="none"]
|
|
63
|
+
// CIL[DOC-MACRO purpose="Define style variants for input group addons"]
|
|
64
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create CVA configuration for addon positioning"]
|
|
65
|
+
// CIL[DOC-CONTEXT module="input-group" layer="ui_components" related_files="[\".framework/functions/_shared/principal.ts\",\".framework/functions/_shared/schema-utils.ts\",\".framework/src/pages/admin/TypeDetailPage.tsx\",\".framework/src/pages/admin/IntegrationsPage.tsx\",\"custom/apps/cortex/pages/operations/OperationsDashboard.tsx\",\"\\\"]"]
|
|
66
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="CVA variant configuration" errors="none" side_effects="defines styling variants"]
|
|
67
|
+
// CIL[DOC-MICRO logic_summary="Defines alignment variants for input group addon positioning" notable_decisions="[]"]
|
|
68
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
69
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
70
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/_shared/principal.ts, .framework/functions/_shared/schema-utils.ts, .framework/src/pages/admin/TypeDetailPage.tsx, .framework/src/pages/admin/IntegrationsPage.tsx, custom/apps/cortex/pages/operations/OperationsDashboard.tsx, \."]
|
|
71
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
72
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
73
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
74
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
75
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
23
76
|
const inputGroupAddonVariants = cva(
|
|
24
77
|
"flex h-auto cursor-text items-center justify-center gap-1 py-2 text-xs/relaxed font-medium text-muted-foreground select-none group-data-[disabled=true]/input-group:opacity-50 **:data-[slot=kbd]:rounded-[calc(var(--radius-sm)-2px)] **:data-[slot=kbd]:bg-muted-foreground/10 **:data-[slot=kbd]:px-1 **:data-[slot=kbd]:text-[0.625rem] [&>svg:not([class*='size-'])]:size-3.5",
|
|
25
78
|
{
|
|
@@ -40,7 +93,21 @@ const inputGroupAddonVariants = cva(
|
|
|
40
93
|
},
|
|
41
94
|
}
|
|
42
95
|
)
|
|
43
|
-
|
|
96
|
+
// CIL[END chunk_id="input_group_inputgroupaddonvariants_1783796064"]
|
|
97
|
+
// CIL[BEGIN chunk_id="input_group_inputgroupaddon_1783796064" type="function" identity="inputgroupaddon" parent="none"]
|
|
98
|
+
// CIL[DOC-MACRO purpose="Render addon container for input groups"]
|
|
99
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create addon wrapper with positioning and focus handling"]
|
|
100
|
+
// CIL[DOC-CONTEXT module="input-group" layer="ui_components" related_files="[\"custom/apps/portal/pages/ContentPage.tsx\",\".framework/src/pages/admin/TypeDetailPage.tsx\",\".framework/functions/_shared/principal.ts\",\"custom/apps/cortex/pages/operations/OperationsDashboard.tsx\",\".framework/functions/_shared/schema-utils.ts\",\"\\\"]"]
|
|
101
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="styled addon container" errors="none" side_effects="renders DOM element"]
|
|
102
|
+
// CIL[DOC-MICRO logic_summary="Creates addon container with auto-focus on click and alignment" notable_decisions="[]"]
|
|
103
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
104
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
105
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: custom/apps/portal/pages/ContentPage.tsx, .framework/src/pages/admin/TypeDetailPage.tsx, .framework/functions/_shared/principal.ts, custom/apps/cortex/pages/operations/OperationsDashboard.tsx, .framework/functions/_shared/schema-utils.ts, \."]
|
|
106
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
107
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
108
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
109
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
110
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
44
111
|
function InputGroupAddon({
|
|
45
112
|
className,
|
|
46
113
|
align = "inline-start",
|
|
@@ -62,7 +129,21 @@ function InputGroupAddon({
|
|
|
62
129
|
/>
|
|
63
130
|
)
|
|
64
131
|
}
|
|
65
|
-
|
|
132
|
+
// CIL[END chunk_id="input_group_inputgroupaddon_1783796064"]
|
|
133
|
+
// CIL[BEGIN chunk_id="input_group_inputgroupbuttonvariants_1783796064" type="cva" identity="inputgroupbuttonvariants" parent="none"]
|
|
134
|
+
// CIL[DOC-MACRO purpose="Define style variants for input group buttons"]
|
|
135
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create CVA configuration for button sizing"]
|
|
136
|
+
// CIL[DOC-CONTEXT module="input-group" layer="ui_components" related_files="[\".framework/functions/_shared/principal.ts\",\".framework/functions/_shared/schema-utils.ts\",\".framework/src/pages/admin/TypeDetailPage.tsx\",\".framework/src/pages/admin/IntegrationsPage.tsx\",\"custom/apps/cortex/pages/operations/OperationsDashboard.tsx\",\"\\\"]"]
|
|
137
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="CVA variant configuration" errors="none" side_effects="defines styling variants"]
|
|
138
|
+
// CIL[DOC-MICRO logic_summary="Defines size variants for input group button components" notable_decisions="[]"]
|
|
139
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
140
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
141
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: .framework/functions/_shared/principal.ts, .framework/functions/_shared/schema-utils.ts, .framework/src/pages/admin/TypeDetailPage.tsx, .framework/src/pages/admin/IntegrationsPage.tsx, custom/apps/cortex/pages/operations/OperationsDashboard.tsx, \."]
|
|
142
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
143
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
144
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
145
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
146
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
66
147
|
const inputGroupButtonVariants = cva(
|
|
67
148
|
"flex items-center gap-2 rounded-md text-xs/relaxed shadow-none",
|
|
68
149
|
{
|
|
@@ -77,9 +158,23 @@ const inputGroupButtonVariants = cva(
|
|
|
77
158
|
defaultVariants: {
|
|
78
159
|
size: "xs",
|
|
79
160
|
},
|
|
80
|
-
|
|
161
|
+
|
|
81
162
|
)
|
|
82
|
-
|
|
163
|
+
// CIL[END chunk_id="input_group_inputgroupbuttonvariants_1783796064"]
|
|
164
|
+
// CIL[BEGIN chunk_id="input_group_inputgroupbutton_1783796064" type="function" identity="inputgroupbutton" parent="none"]
|
|
165
|
+
// CIL[DOC-MACRO purpose="Render button for input groups"]
|
|
166
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create styled button component for input group actions"]
|
|
167
|
+
// CIL[DOC-CONTEXT module="input-group" layer="ui_components" related_files="[]"]
|
|
168
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="styled button" errors="none" side_effects="renders DOM element"]
|
|
169
|
+
// CIL[DOC-MICRO logic_summary="Creates button with custom sizing for input group integration" notable_decisions="[]"]
|
|
170
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
171
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
172
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: none."]
|
|
173
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
174
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
175
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
176
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
177
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
83
178
|
function InputGroupButton({
|
|
84
179
|
className,
|
|
85
180
|
type = "button",
|
|
@@ -98,7 +193,21 @@ function InputGroupButton({
|
|
|
98
193
|
/>
|
|
99
194
|
)
|
|
100
195
|
}
|
|
101
|
-
|
|
196
|
+
// CIL[END chunk_id="input_group_inputgroupbutton_1783796064"]
|
|
197
|
+
// CIL[BEGIN chunk_id="input_group_inputgrouptext_1783796064" type="function" identity="inputgrouptext" parent="none"]
|
|
198
|
+
// CIL[DOC-MACRO purpose="Render text element for input groups"]
|
|
199
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create styled text component for input group labels"]
|
|
200
|
+
// CIL[DOC-CONTEXT module="input-group" layer="ui_components" related_files="[]"]
|
|
201
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="styled text element" errors="none" side_effects="renders DOM element"]
|
|
202
|
+
// CIL[DOC-MICRO logic_summary="Creates muted text element with icon support for input groups" notable_decisions="[]"]
|
|
203
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
204
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
205
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: none."]
|
|
206
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
207
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
208
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
209
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
210
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
102
211
|
function InputGroupText({ className, ...props }: React.ComponentProps<"span">) {
|
|
103
212
|
return (
|
|
104
213
|
<span
|
|
@@ -110,7 +219,21 @@ function InputGroupText({ className, ...props }: React.ComponentProps<"span">) {
|
|
|
110
219
|
/>
|
|
111
220
|
)
|
|
112
221
|
}
|
|
113
|
-
|
|
222
|
+
// CIL[END chunk_id="input_group_inputgrouptext_1783796064"]
|
|
223
|
+
// CIL[BEGIN chunk_id="input_group_inputgroupinput_1783796064" type="function" identity="inputgroupinput" parent="none"]
|
|
224
|
+
// CIL[DOC-MACRO purpose="Render input element for input groups"]
|
|
225
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create styled input component for input group integration"]
|
|
226
|
+
// CIL[DOC-CONTEXT module="input-group" layer="ui_components" related_files="[]"]
|
|
227
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="styled input element" errors="none" side_effects="renders DOM element"]
|
|
228
|
+
// CIL[DOC-MICRO logic_summary="Creates input element with group-specific styling and borders" notable_decisions="[]"]
|
|
229
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
230
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
231
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: none."]
|
|
232
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
233
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
234
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
235
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
236
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
114
237
|
function InputGroupInput({
|
|
115
238
|
className,
|
|
116
239
|
...props
|
|
@@ -126,7 +249,21 @@ function InputGroupInput({
|
|
|
126
249
|
/>
|
|
127
250
|
)
|
|
128
251
|
}
|
|
129
|
-
|
|
252
|
+
// CIL[END chunk_id="input_group_inputgroupinput_1783796064"]
|
|
253
|
+
// CIL[BEGIN chunk_id="input_group_inputgrouptextarea_1783796064" type="function" identity="inputgrouptextarea" parent="none"]
|
|
254
|
+
// CIL[DOC-MACRO purpose="Render textarea element for input groups"]
|
|
255
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create styled textarea component for input group integration"]
|
|
256
|
+
// CIL[DOC-CONTEXT module="input-group" layer="ui_components" related_files="[]"]
|
|
257
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="styled textarea element" errors="none" side_effects="renders DOM element"]
|
|
258
|
+
// CIL[DOC-MICRO logic_summary="Creates textarea element with group-specific styling and borders" notable_decisions="[]"]
|
|
259
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
260
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
261
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: none."]
|
|
262
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
263
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
264
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
265
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
266
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
130
267
|
function InputGroupTextarea({
|
|
131
268
|
className,
|
|
132
269
|
...props
|
|
@@ -142,7 +279,21 @@ function InputGroupTextarea({
|
|
|
142
279
|
/>
|
|
143
280
|
)
|
|
144
281
|
}
|
|
145
|
-
|
|
282
|
+
// CIL[END chunk_id="input_group_inputgrouptextarea_1783796064"]
|
|
283
|
+
// CIL[BEGIN chunk_id="input_group_exports_1783796064" type="exports" identity="exports" parent="none"]
|
|
284
|
+
// CIL[DOC-MACRO purpose="Export input group components for public use"]
|
|
285
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Export all input group-related components"]
|
|
286
|
+
// CIL[DOC-CONTEXT module="input-group" layer="ui_components" related_files="[]"]
|
|
287
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="exported components" errors="none" side_effects="module exports"]
|
|
288
|
+
// CIL[DOC-MICRO logic_summary="Exports comprehensive input group component system for consumption" notable_decisions="[]"]
|
|
289
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
290
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
291
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: none."]
|
|
292
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
293
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
294
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
295
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
296
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
146
297
|
export {
|
|
147
298
|
InputGroup,
|
|
148
299
|
InputGroupAddon,
|
|
@@ -151,3 +302,4 @@ export {
|
|
|
151
302
|
InputGroupInput,
|
|
152
303
|
InputGroupTextarea,
|
|
153
304
|
}
|
|
305
|
+
// CIL[END chunk_id="input_group_exports_1783796064"]
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
// CIL[END chunk_id="input_otp_inputotpseparator_1783796064"]
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
// CIL[BEGIN chunk_id="input_otp_module_header_1783796064" type="module_header" identity="imports" parent="none"]
|
|
9
|
+
// CIL[DOC-MACRO purpose="Import dependencies for OTP input components"]
|
|
10
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Import React, OTP library, utilities, and icons"]
|
|
11
|
+
// CIL[DOC-CONTEXT module="input-otp" layer="ui_components" related_files="[\"custom/apps/cortex/pages/operations/OperationsDashboard.tsx\",\".framework/src/components/layout/Sidebar.tsx\",\".framework/src/components/ui/dialog.tsx\",\".framework/src/pages/admin/TypeDetailPage.tsx\",\".framework/functions/_shared/principal.ts\",\"\\\"]"]
|
|
12
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="imported modules" errors="none" side_effects="module imports"]
|
|
13
|
+
// CIL[DOC-MICRO logic_summary="Imports all dependencies for OTP input component system" notable_decisions="[]"]
|
|
14
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
15
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
16
|
+
// CIL[DOC-AUDIENCE audience="developer"]
|
|
17
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: custom/apps/cortex/pages/operations/OperationsDashboard.tsx, .framework/src/components/layout/Sidebar.tsx, .framework/src/components/ui/dialog.tsx, .framework/src/pages/admin/TypeDetailPage.tsx, .framework/functions/_shared/principal.ts, \."]
|
|
18
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
19
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
20
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
21
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
22
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
1
23
|
"use client"
|
|
2
24
|
|
|
3
25
|
import * as React from "react"
|
|
@@ -5,7 +27,21 @@ import { OTPInput, OTPInputContext } from "input-otp"
|
|
|
5
27
|
|
|
6
28
|
import { cn } from "@/lib/utils"
|
|
7
29
|
import { MinusIcon } from "lucide-react"
|
|
8
|
-
|
|
30
|
+
// CIL[END chunk_id="input_otp_module_header_1783796064"]
|
|
31
|
+
// CIL[BEGIN chunk_id="input_otp_inputotp_1783796064" type="function" identity="inputotp" parent="none"]
|
|
32
|
+
// CIL[DOC-MACRO purpose="Render main OTP input container"]
|
|
33
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create styled OTP input root element"]
|
|
34
|
+
// CIL[DOC-CONTEXT module="input-otp" layer="ui_components" related_files="[\"custom/apps/portal/pages/ContentPage.tsx\",\".framework/src/pages/admin/RolesPage.tsx\",\"custom/apps/cortex/functions/custom_cil-embeddings.ts\",\"\\\"]"]
|
|
35
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="styled OTP container" errors="none" side_effects="renders DOM element"]
|
|
36
|
+
// CIL[DOC-MICRO logic_summary="Creates OTP input container with flex layout and disabled states" notable_decisions="[]"]
|
|
37
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
38
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
39
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: custom/apps/portal/pages/ContentPage.tsx, .framework/src/pages/admin/RolesPage.tsx, custom/apps/cortex/functions/custom_cil-embeddings.ts, \."]
|
|
40
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
41
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
42
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
43
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
44
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
9
45
|
function InputOTP({
|
|
10
46
|
className,
|
|
11
47
|
containerClassName,
|
|
@@ -26,7 +62,21 @@ function InputOTP({
|
|
|
26
62
|
/>
|
|
27
63
|
)
|
|
28
64
|
}
|
|
29
|
-
|
|
65
|
+
// CIL[END chunk_id="input_otp_inputotp_1783796064"]
|
|
66
|
+
// CIL[BEGIN chunk_id="input_otp_inputotpgroup_1783796064" type="function" identity="inputotpgroup" parent="none"]
|
|
67
|
+
// CIL[DOC-MACRO purpose="Render OTP input group container"]
|
|
68
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create container for grouping OTP input slots"]
|
|
69
|
+
// CIL[DOC-CONTEXT module="input-otp" layer="ui_components" related_files="[\"custom/apps/portal/pages/ContentPage.tsx\",\".framework/src/pages/admin/RolesPage.tsx\",\"custom/apps/cortex/functions/custom_cil-embeddings.ts\",\"\\\"]"]
|
|
70
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="styled group container" errors="none" side_effects="renders DOM element"]
|
|
71
|
+
// CIL[DOC-MICRO logic_summary="Creates flex container for OTP input slots with error states" notable_decisions="[]"]
|
|
72
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
73
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
74
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: custom/apps/portal/pages/ContentPage.tsx, .framework/src/pages/admin/RolesPage.tsx, custom/apps/cortex/functions/custom_cil-embeddings.ts, \."]
|
|
75
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
76
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
77
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
78
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
79
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
30
80
|
function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">) {
|
|
31
81
|
return (
|
|
32
82
|
<div
|
|
@@ -39,7 +89,21 @@ function InputOTPGroup({ className, ...props }: React.ComponentProps<"div">) {
|
|
|
39
89
|
/>
|
|
40
90
|
)
|
|
41
91
|
}
|
|
42
|
-
|
|
92
|
+
// CIL[END chunk_id="input_otp_inputotpgroup_1783796064"]
|
|
93
|
+
// CIL[BEGIN chunk_id="input_otp_inputotpslot_1783796064" type="function" identity="inputotpslot" parent="none"]
|
|
94
|
+
// CIL[DOC-MACRO purpose="Render individual OTP input slot"]
|
|
95
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create single character input slot with caret"]
|
|
96
|
+
// CIL[DOC-CONTEXT module="input-otp" layer="ui_components" related_files="[\"custom/apps/portal/pages/ContentPage.tsx\",\".framework/src/pages/admin/RolesPage.tsx\",\"custom/apps/cortex/functions/custom_cil-embeddings.ts\",\"\\\"]"]
|
|
97
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="styled input slot" errors="none" side_effects="renders DOM element"]
|
|
98
|
+
// CIL[DOC-MICRO logic_summary="Creates individual OTP slot with character display and animated caret" notable_decisions="[]"]
|
|
99
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
100
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
101
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: custom/apps/portal/pages/ContentPage.tsx, .framework/src/pages/admin/RolesPage.tsx, custom/apps/cortex/functions/custom_cil-embeddings.ts, \."]
|
|
102
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
103
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
104
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
105
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
106
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
43
107
|
function InputOTPSlot({
|
|
44
108
|
index,
|
|
45
109
|
className,
|
|
@@ -69,7 +133,21 @@ function InputOTPSlot({
|
|
|
69
133
|
</div>
|
|
70
134
|
)
|
|
71
135
|
}
|
|
72
|
-
|
|
136
|
+
// CIL[END chunk_id="input_otp_inputotpslot_1783796064"]
|
|
137
|
+
// CIL[BEGIN chunk_id="input_otp_inputotpseparator_1783796064" type="function" identity="InputOTPSeparator" parent="none"]
|
|
138
|
+
// CIL[DOC-MACRO purpose="Render separator between OTP input slots"]
|
|
139
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create visual separator for OTP input groups"]
|
|
140
|
+
// CIL[DOC-CONTEXT module="input-otp" layer="ui_components" related_files="[\"custom/apps/portal/pages/ContentPage.tsx\",\".framework/src/pages/admin/RolesPage.tsx\",\"custom/apps/cortex/functions/custom_cil-embeddings.ts\",\"\\\"]"]
|
|
141
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="styled separator" errors="none" side_effects="renders DOM element"]
|
|
142
|
+
// CIL[DOC-MICRO logic_summary="Creates separator with minus icon between OTP input groups" notable_decisions="[]"]
|
|
143
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
144
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
145
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: custom/apps/portal/pages/ContentPage.tsx, .framework/src/pages/admin/RolesPage.tsx, custom/apps/cortex/functions/custom_cil-embeddings.ts, \."]
|
|
146
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
147
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
148
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
149
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
150
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
73
151
|
function InputOTPSeparator({ ...props }: React.ComponentProps<"div">) {
|
|
74
152
|
return (
|
|
75
153
|
<div
|
|
@@ -83,5 +161,20 @@ function InputOTPSeparator({ ...props }: React.ComponentProps<"div">) {
|
|
|
83
161
|
</div>
|
|
84
162
|
)
|
|
85
163
|
}
|
|
86
|
-
|
|
164
|
+
// CIL[END chunk_id="input_otp_inputotpseparator_1783796064"]
|
|
165
|
+
// CIL[BEGIN chunk_id="input_otp_exports_1783796064" type="exports" identity="exports" parent="none"]
|
|
166
|
+
// CIL[DOC-MACRO purpose="Export OTP input components for public use"]
|
|
167
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Export all OTP input-related components"]
|
|
168
|
+
// CIL[DOC-CONTEXT module="input-otp" layer="ui_components" related_files="[]"]
|
|
169
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="exported components" errors="none" side_effects="module exports"]
|
|
170
|
+
// CIL[DOC-MICRO logic_summary="Exports comprehensive OTP input component system for consumption" notable_decisions="[]"]
|
|
171
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
172
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
173
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: none."]
|
|
174
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
175
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
176
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
177
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
178
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
87
179
|
export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator }
|
|
180
|
+
// CIL[END chunk_id="input_otp_exports_1783796064"]
|
|
@@ -1,7 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// CIL[BEGIN chunk_id="input_module_header_1783796064" type="module_header" identity="module_header" parent="none"]
|
|
5
|
+
// CIL[DOC-MACRO purpose="Import dependencies for input component"]
|
|
6
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Import React and utility functions"]
|
|
7
|
+
// CIL[DOC-CONTEXT module="input" layer="ui_components" related_files="[\".framework/src/components/ui/dialog.tsx\",\".framework/src/components/ui/table-primitives.tsx\",\"custom/apps/cortex/pages/operations/OperationsDashboard.tsx\",\"custom/apps/portal/pages/ContentPage.tsx\",\"\\\"]"]
|
|
8
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="imported modules" errors="none" side_effects="module imports"]
|
|
9
|
+
// CIL[DOC-MICRO logic_summary="Imports React and cn utility for input component" notable_decisions="[]"]
|
|
10
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
11
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
12
|
+
// CIL[DOC-AUDIENCE audience="developer"]
|
|
13
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: .framework/src/components/ui/dialog.tsx, .framework/src/components/ui/table-primitives.tsx, custom/apps/cortex/pages/operations/OperationsDashboard.tsx, custom/apps/portal/pages/ContentPage.tsx, \."]
|
|
14
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
15
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
16
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
17
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
18
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
1
19
|
import * as React from "react"
|
|
2
20
|
|
|
3
21
|
import { cn } from "@/lib/utils"
|
|
4
|
-
|
|
22
|
+
// CIL[END chunk_id="input_module_header_1783796064"]
|
|
23
|
+
// CIL[BEGIN chunk_id="input_input_1783796064" type="function" identity="Input" parent="none"]
|
|
24
|
+
// CIL[DOC-MACRO purpose="Render styled input component"]
|
|
25
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Create flexible input element with comprehensive styling"]
|
|
26
|
+
// CIL[DOC-CONTEXT module="input" layer="ui_components" related_files="[\".framework/src/components/ui/dialog.tsx\",\".framework/src/components/ui/table-primitives.tsx\",\"custom/apps/portal/pages/ContentPage.tsx\",\".framework/src/pages/admin/RolesPage.tsx\",\"\\\"]"]
|
|
27
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="styled input element" errors="none" side_effects="renders DOM element"]
|
|
28
|
+
// CIL[DOC-MICRO logic_summary="Creates input element with extensive styling for forms and UI" notable_decisions="[]"]
|
|
29
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
30
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
31
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: .framework/src/components/ui/dialog.tsx, .framework/src/components/ui/table-primitives.tsx, custom/apps/portal/pages/ContentPage.tsx, .framework/src/pages/admin/RolesPage.tsx, \."]
|
|
32
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
33
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
34
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
35
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
36
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
5
37
|
function Input({ className, type, ...props }: React.ComponentProps<"input">) {
|
|
6
38
|
return (
|
|
7
39
|
<input
|
|
@@ -15,5 +47,20 @@ function Input({ className, type, ...props }: React.ComponentProps<"input">) {
|
|
|
15
47
|
/>
|
|
16
48
|
)
|
|
17
49
|
}
|
|
18
|
-
|
|
50
|
+
// CIL[END chunk_id="input_input_1783796064"]
|
|
51
|
+
// CIL[BEGIN chunk_id="input_exports_1783796064" type="exports" identity="exports" parent="none"]
|
|
52
|
+
// CIL[DOC-MACRO purpose="Export input component for public use"]
|
|
53
|
+
// CIL[DOC-RESPONSIBILITY responsibility="Export Input component"]
|
|
54
|
+
// CIL[DOC-CONTEXT module="input" layer="ui_components" related_files="[\".framework/src/components/ui/dialog.tsx\",\".framework/src/components/ui/table-primitives.tsx\",\"custom/apps/portal/pages/ContentPage.tsx\",\".framework/src/pages/admin/TypeDetailPage.tsx\",\"\\\"]"]
|
|
55
|
+
// CIL[DOC-CONTRACT inputs="none" outputs="exported component" errors="none" side_effects="module exports"]
|
|
56
|
+
// CIL[DOC-MICRO logic_summary="Exports input component for consumption" notable_decisions="[]"]
|
|
57
|
+
// CIL[DOC-CONFIDENCE pass="second" score="0.95" flags="none"]
|
|
58
|
+
// CIL[DOC-STABILITY stability="stable"]
|
|
59
|
+
// CIL[DOC-VECTOR type="context" content="Layer: ui_components. Direct callers: 0. Direct calls: 0. Related files: .framework/src/components/ui/dialog.tsx, .framework/src/components/ui/table-primitives.tsx, custom/apps/portal/pages/ContentPage.tsx, .framework/src/pages/admin/TypeDetailPage.tsx, \."]
|
|
60
|
+
// CIL[DOC-VECTOR type="blast_radius" content="Direct callers: 0. Total affected: 0."]
|
|
61
|
+
// CIL[DOC-VECTOR type="configuration" content="No configuration dependencies."]
|
|
62
|
+
// CIL[DOC-VECTOR type="constraint" content="No test paths identified."]
|
|
63
|
+
// CIL[DOC-VECTOR type="implementation_pattern" content="" status="pending_human_input"]
|
|
64
|
+
// CIL[DOC-VECTOR type="user_journey" content="" status="pending_human_input"]
|
|
19
65
|
export { Input }
|
|
66
|
+
// CIL[END chunk_id="input_exports_1783796064"]
|