Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions packages/demo/src/States.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,17 @@ const mockFields: DiscoveredField[] = [
// `switch` is deliberately first — UnifiedAuthForm sorts it to the bottom,
// so this proves the sort behavior works.
const mockMFAOptions: MFAOption[] = [
{ type: "switch", description: "Pick a different verification method" },
{
type: "switch",
label: "Try another way",
description: "Pick a different verification method",
},
{ type: "sms", target: "•••• 4242" },
{ type: "totp", description: "Use your authenticator app" },
{
type: "totp",
label: "Get a verification code from the Google Authenticator app",
description: "Use your authenticator app",
},
{ type: "push", target: "iPhone 15 Pro" },
];

Expand Down
13 changes: 9 additions & 4 deletions packages/managed-auth-react/src/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -373,10 +373,10 @@
justify-content: center;
gap: 8px;
padding: 0 1rem;
height: 3rem;
min-height: 3rem;
Comment thread
masnwilliams marked this conversation as resolved.
line-height: 1.2;
white-space: nowrap;
text-align: center;
overflow-wrap: anywhere;
}

.kma-button:focus-visible {
Expand All @@ -398,7 +398,7 @@
/* Slightly shorter primary button used inside forms — matches the
previous hosted-ui form submit (`h-11` = 44px). */
.kma-button--sm {
height: 2.75rem;
min-height: 2.75rem;
}

.kma-button--primary {
Expand Down Expand Up @@ -494,11 +494,16 @@

.kma-sso-button {
width: 100%;
height: 2.75rem;
min-height: 2.75rem;
padding: 0.5rem 1rem;
font-size: var(--kma-font-size-lg);
gap: 12px;
}

.kma-sso-button__label {
min-width: 0;
}

.kma-sso-button__icon {
display: inline-flex;
align-items: center;
Expand Down
6 changes: 6 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"buildCommand": "bun run --filter @onkernel/managed-auth-react build && cd packages/demo && bun run build",
Comment thread
masnwilliams marked this conversation as resolved.
"outputDirectory": "packages/demo/dist",
"framework": "vite",
"installCommand": "bun install"
}
Loading