@gntik-ai/blocks 0.11.0 → 0.12.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.
Files changed (182) hide show
  1. package/dist/index.d.ts +1501 -1232
  2. package/dist/index.js +1884 -836
  3. package/dist/index.js.map +1 -1
  4. package/package.json +6 -6
  5. package/src/ai/PromptEditor/PromptEditor.tsx +2 -2
  6. package/src/ai/PromptEditor/examples/controlled-variables.tsx +1 -1
  7. package/src/ai/TraceWaterfall/TraceWaterfall.tsx +2 -2
  8. package/src/auth/ForgotPasswordForm/ForgotPasswordForm.test.tsx +6 -0
  9. package/src/auth/ForgotPasswordForm/ForgotPasswordForm.tsx +4 -1
  10. package/src/auth/ForgotPasswordForm/block.meta.ts +1 -1
  11. package/src/auth/ForgotPasswordForm/examples/LargeFields.tsx +6 -0
  12. package/src/auth/MfaChallenge/MfaChallenge.test.tsx +9 -0
  13. package/src/auth/MfaChallenge/MfaChallenge.tsx +5 -2
  14. package/src/auth/MfaChallenge/block.meta.ts +1 -1
  15. package/src/auth/MfaChallenge/examples/LargeFields.tsx +6 -0
  16. package/src/auth/ResetPasswordForm/ResetPasswordForm.test.tsx +7 -0
  17. package/src/auth/ResetPasswordForm/ResetPasswordForm.tsx +5 -3
  18. package/src/auth/ResetPasswordForm/block.meta.ts +1 -1
  19. package/src/auth/ResetPasswordForm/examples/LargeFields.tsx +6 -0
  20. package/src/auth/SignInForm/SignInForm.test.tsx +7 -0
  21. package/src/auth/SignInForm/SignInForm.tsx +5 -1
  22. package/src/auth/SignInForm/block.meta.ts +1 -1
  23. package/src/auth/SignInForm/examples/LargeFields.tsx +6 -0
  24. package/src/auth/SignUpForm/SignUpForm.test.tsx +22 -0
  25. package/src/auth/SignUpForm/SignUpForm.tsx +7 -1
  26. package/src/auth/SignUpForm/block.meta.ts +1 -1
  27. package/src/auth/SignUpForm/examples/LargeFields.tsx +6 -0
  28. package/src/auth/__snapshots__/field-size.test.tsx.snap +11 -0
  29. package/src/auth/field-size.test.tsx +21 -0
  30. package/src/auth/large-examples.test.tsx +30 -0
  31. package/src/auth/shared.tsx +7 -2
  32. package/src/billing/PaymentMethodCard/PaymentMethodCard.tsx +1 -1
  33. package/src/billing/PlanCard/PlanCard.baseline.test.tsx +3 -2
  34. package/src/billing/PlanCard/__snapshots__/PlanCard.baseline.test.tsx.snap +2 -2
  35. package/src/billing/PlanDefinitionCard/examples/Compact.tsx +1 -4
  36. package/src/billing/PlanDefinitionCard/examples/Full.tsx +1 -4
  37. package/src/builders/CodePanel/CodePanel.tsx +2 -2
  38. package/src/builders/FlowBuilder/FlowBuilder.tsx +4 -19
  39. package/src/builders/FlowBuilder/parts.tsx +4 -4
  40. package/src/builders/LogViewer/LogViewer.follow.test.tsx +29 -0
  41. package/src/builders/LogViewer/LogViewer.test.tsx +24 -0
  42. package/src/builders/LogViewer/LogViewer.tsx +67 -20
  43. package/src/builders/LogViewer/block.meta.ts +2 -1
  44. package/src/builders/LogViewer/examples/Spanish.tsx +2 -1
  45. package/src/data-display/ActivityFeed/ActivityFeed.tsx +1 -1
  46. package/src/data-display/ChartCard/ChartCard.tsx +2 -2
  47. package/src/data-display/ChartCard/examples/ContainerPanel.tsx +16 -0
  48. package/src/data-display/CommentThread/CommentThread.test.tsx +70 -1
  49. package/src/data-display/CommentThread/CommentThread.tsx +22 -6
  50. package/src/data-display/CommentThread/block.meta.ts +1 -1
  51. package/src/data-display/CommentThread/examples/RenderedBody.tsx +20 -0
  52. package/src/data-display/DescriptionListCard/DescriptionListCard.test.tsx +24 -1
  53. package/src/data-display/DescriptionListCard/DescriptionListCard.tsx +14 -20
  54. package/src/data-display/DescriptionListCard/block.meta.ts +2 -1
  55. package/src/data-display/DescriptionListCard/examples/Spanish.tsx +2 -1
  56. package/src/data-display/KpiRow/KpiRow.doc.ts +14 -0
  57. package/src/data-display/KpiRow/KpiRow.test.tsx +11 -0
  58. package/src/data-display/KpiRow/KpiRow.tsx +72 -55
  59. package/src/data-display/KpiRow/examples/ContainerPanel.tsx +47 -0
  60. package/src/data-display/ResourceCardGrid/ResourceCardGrid.doc.ts +19 -0
  61. package/src/data-display/ResourceCardGrid/ResourceCardGrid.test.tsx +13 -0
  62. package/src/data-display/ResourceCardGrid/ResourceCardGrid.tsx +49 -40
  63. package/src/data-display/ResourceCardGrid/examples/ContainerPanel.tsx +18 -0
  64. package/src/data-display/StatusTimeline/StatusTimeline.tsx +1 -1
  65. package/src/feedback/EmptyStates/EmptyStates.test.tsx +42 -0
  66. package/src/feedback/EmptyStates/EmptyStates.tsx +5 -3
  67. package/src/feedback/EmptyStates/block.meta.ts +1 -1
  68. package/src/feedback/EmptyStates/examples/HiddenAction.tsx +13 -0
  69. package/src/feedback/ErrorPanel/ErrorPanel.tsx +13 -15
  70. package/src/forms/CreateApiKeyDialog/CreateApiKeyDialog.lifecycle.test.tsx +123 -0
  71. package/src/forms/CreateApiKeyDialog/CreateApiKeyDialog.tsx +128 -139
  72. package/src/forms/CreateApiKeyDialog/block.meta.ts +12 -1
  73. package/src/forms/FileUploadPanel/FileUploadPanel.controlled.test.tsx +482 -0
  74. package/src/forms/FileUploadPanel/FileUploadPanel.drag.test.tsx +60 -0
  75. package/src/forms/FileUploadPanel/FileUploadPanel.lifecycle.test.tsx +165 -0
  76. package/src/forms/FileUploadPanel/FileUploadPanel.tsx +267 -69
  77. package/src/forms/FileUploadPanel/block.meta.ts +5 -1
  78. package/src/forms/FileUploadPanel/examples/AutoCancel.tsx +38 -0
  79. package/src/forms/FileUploadPanel/examples/Labels.tsx +1 -1
  80. package/src/forms/FileUploadPanel/examples/ManualForm.tsx +36 -0
  81. package/src/forms/FileUploadPanel/fixtures.ts +31 -16
  82. package/src/forms/FileUploadPanel/simulate-upload.test.ts +24 -0
  83. package/src/forms/FormSection/FormSection.test.tsx +11 -0
  84. package/src/forms/FormSection/FormSection.tsx +20 -22
  85. package/src/forms/FormSection/block.meta.ts +1 -1
  86. package/src/forms/FormSection/examples/ContainerPanel.tsx +16 -0
  87. package/src/forms/InviteMembersDialog/InviteMembersDialog.lifecycle.test.tsx +80 -0
  88. package/src/forms/InviteMembersDialog/InviteMembersDialog.tsx +90 -109
  89. package/src/forms/InviteMembersDialog/block.meta.ts +1 -1
  90. package/src/forms/ValidationSummary/ValidationSummary.tsx +1 -4
  91. package/src/hooks/index.ts +2 -0
  92. package/src/hooks/useTableData.integration.test.tsx +89 -0
  93. package/src/hooks/useTableData.test.tsx +613 -0
  94. package/src/hooks/useTableData.ts +377 -0
  95. package/src/index.ts +1 -0
  96. package/src/marketing/ComparisonTable/ComparisonTable.tsx +2 -2
  97. package/src/marketing/FeatureGrid/FeatureGrid.tsx +1 -1
  98. package/src/marketing/LogoCloud/LogoCloud.doc.ts +13 -0
  99. package/src/marketing/LogoCloud/LogoCloud.test.tsx +155 -0
  100. package/src/marketing/LogoCloud/LogoCloud.tsx +89 -0
  101. package/src/marketing/LogoCloud/block.meta.ts +10 -0
  102. package/src/marketing/LogoCloud/examples/CaptionStart.tsx +6 -0
  103. package/src/marketing/LogoCloud/examples/Custom.tsx +25 -0
  104. package/src/marketing/LogoCloud/examples/Empty.tsx +6 -0
  105. package/src/marketing/LogoCloud/examples/Grid.tsx +13 -0
  106. package/src/marketing/LogoCloud/examples/Row.tsx +6 -0
  107. package/src/marketing/LogoCloud/examples/UnderHero.tsx +13 -0
  108. package/src/marketing/LogoCloud/fixtures.ts +23 -0
  109. package/src/marketing/PricingTable/PricingTable.tsx +1 -1
  110. package/src/marketing/SiteFooter/SiteFooter.doc.ts +18 -0
  111. package/src/marketing/SiteFooter/SiteFooter.test.tsx +236 -0
  112. package/src/marketing/SiteFooter/SiteFooter.tsx +160 -0
  113. package/src/marketing/SiteFooter/block.meta.ts +10 -0
  114. package/src/marketing/SiteFooter/examples/Centered.tsx +15 -0
  115. package/src/marketing/SiteFooter/examples/Columns.tsx +15 -0
  116. package/src/marketing/SiteFooter/examples/Custom.tsx +35 -0
  117. package/src/marketing/SiteFooter/examples/Empty.tsx +6 -0
  118. package/src/marketing/SiteFooter/examples/Simple.tsx +14 -0
  119. package/src/marketing/SiteFooter/fixtures.ts +36 -0
  120. package/src/marketing/index.ts +6 -0
  121. package/src/page-chrome/PageHeader/EditableTitle.test.tsx +26 -0
  122. package/src/page-chrome/PageHeader/PageHeader.tsx +4 -4
  123. package/src/page-chrome/PageHeader/block.meta.ts +1 -1
  124. package/src/page-chrome/PageHeader/examples/ContainerPanel.tsx +16 -0
  125. package/src/page-chrome/PageHeader/examples/EditableTitle.tsx +23 -0
  126. package/src/page-chrome/StickyActionBar/StickyActionBar.tsx +1 -1
  127. package/src/scheduling/AgendaList/AgendaList.tsx +39 -15
  128. package/src/scheduling/AgendaList/AgendaListZone.test.tsx +38 -0
  129. package/src/scheduling/AgendaList/block.meta.ts +1 -1
  130. package/src/scheduling/AgendaList/examples/TimeZone.tsx +28 -0
  131. package/src/scheduling/MonthCalendar/MonthCalendar.tsx +51 -40
  132. package/src/scheduling/MonthCalendar/MonthCalendarZone.test.tsx +44 -0
  133. package/src/scheduling/MonthCalendar/block.meta.ts +1 -1
  134. package/src/scheduling/MonthCalendar/examples/TimeZone.tsx +28 -0
  135. package/src/scheduling/WeekCalendar/WeekCalendar.tsx +37 -28
  136. package/src/scheduling/WeekCalendar/WeekCalendarZone.test.tsx +41 -0
  137. package/src/scheduling/WeekCalendar/block.meta.ts +1 -1
  138. package/src/scheduling/WeekCalendar/examples/TimeZone.tsx +28 -0
  139. package/src/scheduling/shared/CalendarHeader.tsx +26 -1
  140. package/src/scheduling/shared/dates.ts +102 -58
  141. package/src/scheduling/shared/events.ts +2 -2
  142. package/src/shell/AppSidebar/AppSidebar.context.test.tsx +175 -0
  143. package/src/shell/AppSidebar/AppSidebar.doc.ts +29 -0
  144. package/src/shell/AppSidebar/AppSidebar.tsx +97 -25
  145. package/src/shell/AppSidebar/block.meta.ts +1 -1
  146. package/src/shell/GlobalSearch/GlobalSearch.test.tsx +1 -0
  147. package/src/shell/GlobalSearch/GlobalSearch.tsx +1 -1
  148. package/src/tables/DataTable/DataTable.cursor-example.test.tsx +67 -0
  149. package/src/tables/DataTable/DataTable.export.test.tsx +511 -0
  150. package/src/tables/DataTable/DataTable.inline-edit-focus.test.tsx +32 -0
  151. package/src/tables/DataTable/DataTable.layout.test.tsx +6 -5
  152. package/src/tables/DataTable/DataTable.link-actions.test.tsx +18 -0
  153. package/src/tables/DataTable/DataTable.server-pagination.test.tsx +328 -14
  154. package/src/tables/DataTable/DataTable.test.tsx +85 -1
  155. package/src/tables/DataTable/DataTable.tsx +108 -14
  156. package/src/tables/DataTable/block.meta.ts +11 -1
  157. package/src/tables/DataTable/column-sizing.ts +2 -2
  158. package/src/tables/DataTable/data-table-props.ts +29 -1
  159. package/src/tables/DataTable/data-table-row.tsx +2 -2
  160. package/src/tables/DataTable/data-table-utils.ts +4 -0
  161. package/src/tables/DataTable/editable-cell.tsx +20 -79
  162. package/src/tables/DataTable/examples/csv-export.tsx +74 -0
  163. package/src/tables/DataTable/examples/cursor-load-more.tsx +87 -0
  164. package/src/tables/DataTable/examples/server-pagination.tsx +47 -40
  165. package/src/tables/DataTable/export-menu.tsx +58 -0
  166. package/src/tables/DataTable/header-cell.tsx +1 -1
  167. package/src/tables/DataTable/labels.ts +7 -0
  168. package/src/tables/DataTable/resize-handle.tsx +2 -2
  169. package/src/tables/DataTable/use-table-export.ts +117 -0
  170. package/src/tables/FilterBar/FilterBar.test.tsx +12 -0
  171. package/src/tables/FilterBar/FilterBar.tsx +5 -7
  172. package/src/team/ProfileHeader/ProfileHeader.picker.test.tsx +34 -0
  173. package/src/team/ProfileHeader/ProfileHeader.test.tsx +2 -2
  174. package/src/team/ProfileHeader/ProfileHeader.tsx +17 -24
  175. package/src/team/ProfileHeader/block.meta.ts +1 -1
  176. package/src/test/OptInDefaults.test.tsx +10 -1
  177. package/src/test/clipboard-fallback.test.tsx +49 -0
  178. package/src/test/copy-examples.test.tsx +29 -0
  179. package/src/test/copy-feedback.test.tsx +166 -0
  180. package/src/test/fixtures/opt-in-defaults.json +5 -5
  181. package/src/test/without-forced-colors.test.ts +44 -0
  182. package/src/test/without-forced-colors.ts +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gntik-ai/blocks",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "description": "gntik-ui blocks: page chrome, data display, tables, forms, feedback, billing, team and builder sections composed from @gntik-ai/ui.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -35,12 +35,12 @@
35
35
  "react-dom": "^19.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@gntik-ai/charts": "0.11.0",
39
- "@gntik-ai/editor": "0.11.0",
40
- "@gntik-ai/flow": "0.11.0",
38
+ "@gntik-ai/charts": "0.12.0",
39
+ "@gntik-ai/editor": "0.12.0",
40
+ "@gntik-ai/flow": "0.12.0",
41
41
  "@gntik-ai/icons": "0.5.0",
42
- "@gntik-ai/tokens": "0.3.0",
43
- "@gntik-ai/ui": "0.11.0",
42
+ "@gntik-ai/tokens": "0.4.0",
43
+ "@gntik-ai/ui": "0.12.0",
44
44
  "lucide-react": "^1.48.0"
45
45
  },
46
46
  "devDependencies": {
@@ -132,7 +132,7 @@ export function PromptEditor({
132
132
  </div>
133
133
  <div className="flex flex-col gap-5 border-t border-border bg-secondary/20 p-4 md:border-t-0 md:border-s">
134
134
  <div>
135
- <SubTag className="text-[12px] font-semibold tracking-wide text-muted-foreground uppercase">
135
+ <SubTag className="text-[12px] font-semibold tracking-wide text-muted-foreground label-case">
136
136
  Variables
137
137
  </SubTag>
138
138
  {variables.length === 0 ? (
@@ -168,7 +168,7 @@ export function PromptEditor({
168
168
  )}
169
169
  </div>
170
170
  <div className="flex flex-col gap-4">
171
- <SubTag className="text-[12px] font-semibold tracking-wide text-muted-foreground uppercase">
171
+ <SubTag className="text-[12px] font-semibold tracking-wide text-muted-foreground label-case">
172
172
  Parameters
173
173
  </SubTag>
174
174
  <Slider
@@ -13,7 +13,7 @@ export default function ControlledVariablesPromptEditor() {
13
13
  <button
14
14
  type="button"
15
15
  onClick={() => setVariables((prev) => ({ ...prev, ticket: 'Cannot reset my password' }))}
16
- className="self-start text-[12.5px] text-primary-text underline underline-offset-2 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring"
16
+ className="self-start text-[12.5px] text-primary-text underline underline-offset-2 focus-ring"
17
17
  >
18
18
  Fill from sample ticket
19
19
  </button>
@@ -212,7 +212,7 @@ export function TraceWaterfall({
212
212
  aria-expanded={open}
213
213
  aria-label={t(open ? 'common.collapseItem' : 'common.expandItem', { label: span.name })}
214
214
  onClick={() => setOpen(span.id, !open)}
215
- className="absolute top-1/2 z-10 grid size-6 -translate-y-1/2 place-items-center rounded text-muted-foreground hover:bg-secondary hover:text-foreground focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring"
215
+ className="absolute top-1/2 z-raised grid size-6 -translate-y-1/2 place-items-center rounded text-muted-foreground hover:bg-secondary hover:text-foreground focus-ring"
216
216
  style={{ insetInlineStart: indent - 4 }}
217
217
  >
218
218
  <ChevronRight
@@ -240,7 +240,7 @@ export function TraceWaterfall({
240
240
  onKeyDown={(e) => onKeyDown(e, index)}
241
241
  className={cn(
242
242
  'grid h-8 w-full grid-cols-[minmax(0,2fr)_minmax(0,3fr)] items-center pe-3 text-start hover:bg-secondary/50',
243
- 'focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-focus-ring',
243
+ 'focus-ring-inset',
244
244
  isSelected && 'bg-primary/8 hover:bg-primary/12',
245
245
  )}
246
246
  >
@@ -6,6 +6,12 @@ import { expectNoAxeViolations } from '../../test/a11y';
6
6
  import { ForgotPasswordForm, type ForgotPasswordFormRef } from './ForgotPasswordForm';
7
7
 
8
8
  describe('ForgotPasswordForm', () => {
9
+ it('matches the large recovery identifier to the submit button', () => {
10
+ render(<ForgotPasswordForm fieldSize="lg" />);
11
+ expect(screen.getByLabelText('Email').parentElement).toHaveClass('h-11');
12
+ expect(document.querySelector('button[type="submit"]')).toHaveClass('h-11');
13
+ });
14
+
9
15
  it('can hide or replace inbox copy and both resend actions', () => {
10
16
  const { rerender } = render(
11
17
  <ForgotPasswordForm defaultSent sentTitle={null} sentDescription={null} sentStatus={null} resendActions={null} />,
@@ -11,6 +11,7 @@ import {
11
11
  type AuthValidationMessages,
12
12
  type AuthFormAccessibilityProps,
13
13
  type AuthHeaderProps,
14
+ type AuthFieldSizeProps,
14
15
  } from '../shared';
15
16
 
16
17
  export interface ForgotPasswordFormRef {
@@ -35,7 +36,7 @@ export interface ForgotPasswordFormLabels extends Required<Omit<AuthValidationMe
35
36
  submit: string;
36
37
  }
37
38
 
38
- export interface ForgotPasswordFormProps extends AuthFormAccessibilityProps {
39
+ export interface ForgotPasswordFormProps extends AuthFormAccessibilityProps, AuthFieldSizeProps {
39
40
  labels?: Partial<ForgotPasswordFormLabels>;
40
41
  /** React 19 ref for focus after a server response; available in the request state. */
41
42
  ref?: Ref<ForgotPasswordFormRef>;
@@ -67,6 +68,7 @@ export interface ForgotPasswordFormProps extends AuthFormAccessibilityProps {
67
68
  /** Request a reset link by email, then a "check your inbox" state with resend and a way back. */
68
69
  export function ForgotPasswordForm({
69
70
  labels,
71
+ fieldSize = 'auto',
70
72
  identifier,
71
73
  messages,
72
74
  ref,
@@ -217,6 +219,7 @@ export function ForgotPasswordForm({
217
219
  <Field invalid={emailInvalid || fieldInvalid?.identifier === true}>
218
220
  <FieldLabel>{identifier?.label ?? labels?.identifierLabel ?? t('forgotPassword.identifierLabel')}</FieldLabel>
219
221
  <Input
222
+ size={fieldSize}
220
223
  ref={identifierInput}
221
224
  aria-describedby={fieldInvalid?.identifier ? feedbackId : undefined}
222
225
  type={identifier?.type ?? 'email'}
@@ -6,7 +6,7 @@ export const meta: BlockMeta = {
6
6
  family: 'auth',
7
7
  status: 'stable',
8
8
  description:
9
- 'Email (default) or username-or-email password recovery; onSubmit receives the trimmed identifier. Supports identifier (type, autoComplete, label, help/helpId, placeholder, minLength/maxLength), messages (identifierRequired/identifierInvalid/identifierTooShort/passwordRequired), and React 19 ref.focus. The kit owns inline validation and focuses the first invalid field; consumers supply messages, not a second inline validator. Server errors use error + fieldInvalid + feedbackId; aria-describedby describes the form, while flagged inputs also retain their help and error ids. headingLevel (h1/h2/h3/null) suppresses the heading without losing the form name; aria-label/aria-labelledby override the default name. ref.focus accepts identifier. title/description and sentTitle/sentDescription configure request and sent copy; sentTitle, sentDescription, sentStatus and resendActions accept null to hide inbox copy, announcements and resend/change-identifier actions. Preview: forgot-password-form--username-or-email. Optional labels?: Partial<ForgotPasswordFormLabels> overrides built-in copy; explicit props and validation messages win, then labels, then I18nProvider (en/es). No provider preserves English; fixtures and caller content stay unchanged. Interactive preview: /preview.html?kind=block&id=forgot-password-form--labels.',
9
+ 'Email (default) or username-or-email password recovery; onSubmit receives the trimmed identifier. Supports identifier (type, autoComplete, label, help/helpId, placeholder, minLength/maxLength), messages (identifierRequired/identifierInvalid/identifierTooShort/passwordRequired), and React 19 ref.focus. The kit owns inline validation and focuses the first invalid field; consumers supply messages, not a second inline validator. Server errors use error + fieldInvalid + feedbackId; aria-describedby describes the form, while flagged inputs also retain their help and error ids. headingLevel (h1/h2/h3/null) suppresses the heading without losing the form name; aria-label/aria-labelledby override the default name. ref.focus accepts identifier. title/description and sentTitle/sentDescription configure request and sent copy; sentTitle, sentDescription, sentStatus and resendActions accept null to hide inbox copy, announcements and resend/change-identifier actions. Preview: forgot-password-form--username-or-email. Optional labels?: Partial<ForgotPasswordFormLabels> overrides built-in copy; explicit props and validation messages win, then labels, then I18nProvider (en/es). No provider preserves English; fixtures and caller content stay unchanged. Interactive preview: /preview.html?kind=block&id=forgot-password-form--labels. Optional fieldSize: auto (default, follows density) or lg (44px fields matching the submit button). Preview: forgot-password-form--large-fields.',
10
10
  labels: [
11
11
  { key: 'formLabel', type: 'string', state: 'Default content and accessible names' },
12
12
  { key: 'eyebrow', type: 'string', state: 'Default content and accessible names' },
@@ -0,0 +1,6 @@
1
+ import { ForgotPasswordForm } from '../ForgotPasswordForm';
2
+
3
+ /** /preview.html?kind=block&id=forgot-password-form--large-fields */
4
+ export default function LargeFields() {
5
+ return <ForgotPasswordForm fieldSize="lg" />;
6
+ }
@@ -4,6 +4,15 @@ import { expectNoAxeViolations } from '../../test/a11y';
4
4
  import { MfaChallenge } from './MfaChallenge';
5
5
 
6
6
  describe('MfaChallenge', () => {
7
+ it('uses 44px OTP slots and a large backup field', async () => {
8
+ render(<MfaChallenge fieldSize="lg" />);
9
+ expect(screen.getAllByRole('textbox')).toHaveLength(6);
10
+ screen.getAllByRole('textbox').forEach((slot) => expect(slot).toHaveClass('h-11'));
11
+ await userEvent.click(screen.getByRole('button', { name: 'Use a backup code' }));
12
+ expect(screen.getByLabelText('Backup code').parentElement).toHaveClass('h-11');
13
+ expect(screen.getByRole('button', { name: 'Verify' })).toHaveClass('h-11');
14
+ });
15
+
7
16
  it('renders the code step with a resend countdown', async () => {
8
17
  const { container } = render(<MfaChallenge destination="a•••@example.com" onResend={() => {}} />);
9
18
  expect(screen.getByText(/sent a 6-digit code to a•••@example.com/)).toBeInTheDocument();
@@ -11,7 +11,7 @@ import {
11
11
  cn,
12
12
  } from '@gntik-ai/ui';
13
13
  import { useEffect, useState, type ReactNode } from 'react';
14
- import { AuthHeader, authFormClass, useAsyncSubmit } from '../shared';
14
+ import { AuthHeader, authFormClass, useAsyncSubmit, type AuthFieldSizeProps } from '../shared';
15
15
 
16
16
  export type MfaMethod = 'code' | 'backup';
17
17
 
@@ -38,7 +38,7 @@ export interface MfaChallengeLabels {
38
38
  fallbackError: string;
39
39
  }
40
40
 
41
- export interface MfaChallengeProps {
41
+ export interface MfaChallengeProps extends AuthFieldSizeProps {
42
42
  labels?: Partial<MfaChallengeLabels>;
43
43
  /** Verifies the code. A returned promise shows the loading state; a rejection shows in the alert. */
44
44
  onVerify?: (code: string, method: MfaMethod) => void | Promise<void>;
@@ -67,6 +67,7 @@ export interface MfaChallengeProps {
67
67
  */
68
68
  export function MfaChallenge({
69
69
  labels,
70
+ fieldSize = 'auto',
70
71
  onVerify,
71
72
  onResend,
72
73
  resendCooldown = 30,
@@ -148,6 +149,7 @@ export function MfaChallenge({
148
149
  <Field invalid={invalid}>
149
150
  <FieldLabel>{labels?.codeLabel ?? t('mfaChallenge.codeLabel')}</FieldLabel>
150
151
  <OtpInput
152
+ size={fieldSize === 'lg' ? 'md' : undefined}
151
153
  length={length}
152
154
  value={code}
153
155
  onValueChange={setCode}
@@ -164,6 +166,7 @@ export function MfaChallenge({
164
166
  <Field invalid={invalid}>
165
167
  <FieldLabel>{labels?.backupLabel ?? t('mfaChallenge.backupLabel')}</FieldLabel>
166
168
  <Input
169
+ size={fieldSize}
167
170
  value={backup}
168
171
  onValueChange={setBackup}
169
172
  placeholder={labels?.backupPlaceholder ?? t('mfaChallenge.backupPlaceholder')}
@@ -6,7 +6,7 @@ export const meta: BlockMeta = {
6
6
  family: 'auth',
7
7
  status: 'stable',
8
8
  description:
9
- 'Second-factor step with a one-time code (auto-submit), a backup-code mode and resend with a countdown. Optional labels?: Partial<MfaChallengeLabels> overrides built-in copy; explicit props and validation messages win, then labels, then I18nProvider (en/es). No provider preserves English; fixtures and caller content stay unchanged. Interactive preview: /preview.html?kind=block&id=mfa-challenge--labels.',
9
+ 'Second-factor step with a one-time code (auto-submit), a backup-code mode and resend with a countdown. Optional labels?: Partial<MfaChallengeLabels> overrides built-in copy; explicit props and validation messages win, then labels, then I18nProvider (en/es). No provider preserves English; fixtures and caller content stay unchanged. Interactive preview: /preview.html?kind=block&id=mfa-challenge--labels. Optional fieldSize: auto (default, follows density) or lg (44px fields matching the submit button). Preview: mfa-challenge--large-fields. Large OTP slots use the existing md step (44px); backup-code inputs use lg.',
10
10
  labels: [
11
11
  { key: 'eyebrow', type: 'string', state: 'Default content and accessible names' },
12
12
  { key: 'title', type: 'string', state: 'Default content and accessible names' },
@@ -0,0 +1,6 @@
1
+ import { MfaChallenge } from '../MfaChallenge';
2
+
3
+ /** /preview.html?kind=block&id=mfa-challenge--large-fields */
4
+ export default function LargeFields() {
5
+ return <MfaChallenge fieldSize="lg" />;
6
+ }
@@ -4,6 +4,13 @@ import { expectNoAxeViolations } from '../../test/a11y';
4
4
  import { ResetPasswordForm } from './ResetPasswordForm';
5
5
 
6
6
  describe('ResetPasswordForm', () => {
7
+ it('matches both large password fields to the submit button', () => {
8
+ render(<ResetPasswordForm fieldSize="lg" />);
9
+ expect(screen.getByLabelText('New password').parentElement).toHaveClass('h-11');
10
+ expect(screen.getByLabelText('Confirm password').parentElement).toHaveClass('h-11');
11
+ expect(document.querySelector('button[type="submit"]')).toHaveClass('h-11');
12
+ });
13
+
7
14
  it('renders the form', async () => {
8
15
  const { container } = render(<ResetPasswordForm />);
9
16
  expect(screen.getByRole('form', { name: 'Set a new password' })).toBeInTheDocument();
@@ -1,7 +1,7 @@
1
1
  import { useI18n, Alert, Button, Field, FieldError, FieldLabel, PasswordInput, cn } from '@gntik-ai/ui';
2
2
  import { CircleCheck } from '@gntik-ai/icons';
3
3
  import { useState, type ReactNode } from 'react';
4
- import { AuthHeader, authFormClass, useAsyncSubmit } from '../shared';
4
+ import { AuthHeader, authFormClass, useAsyncSubmit, type AuthFieldSizeProps } from '../shared';
5
5
 
6
6
  export interface ResetPasswordFormLabels {
7
7
  eyebrow: string;
@@ -19,7 +19,7 @@ export interface ResetPasswordFormLabels {
19
19
  fallbackError: string;
20
20
  }
21
21
 
22
- export interface ResetPasswordFormProps {
22
+ export interface ResetPasswordFormProps extends AuthFieldSizeProps {
23
23
  labels?: Partial<ResetPasswordFormLabels>;
24
24
  /** Saves the new password. A returned promise shows the loading state; a rejection shows in the alert. */
25
25
  onSubmit?: (password: string) => void | Promise<void>;
@@ -34,6 +34,7 @@ export interface ResetPasswordFormProps {
34
34
  /** New password + confirmation with length and mismatch validation, then a success state. */
35
35
  export function ResetPasswordForm({
36
36
  labels,
37
+ fieldSize = 'auto',
37
38
  onSubmit,
38
39
  error: errorProp,
39
40
  minPasswordLength = 8,
@@ -99,7 +100,7 @@ export function ResetPasswordForm({
99
100
  {alert && <Alert tone="destructive" description={alert} />}
100
101
  <Field invalid={passwordInvalid}>
101
102
  <FieldLabel>{labels?.newPassword ?? t('resetPassword.newPassword')}</FieldLabel>
102
- <PasswordInput showStrength value={password} onValueChange={setPassword} required />
103
+ <PasswordInput size={fieldSize} showStrength value={password} onValueChange={setPassword} required />
103
104
  <FieldError match={passwordInvalid}>
104
105
  {labels?.passwordTooShort?.(minPasswordLength) ??
105
106
  t('resetPassword.passwordTooShort', { minimum: minPasswordLength })}
@@ -108,6 +109,7 @@ export function ResetPasswordForm({
108
109
  <Field invalid={confirmInvalid}>
109
110
  <FieldLabel>{labels?.confirmPassword ?? t('resetPassword.confirmPassword')}</FieldLabel>
110
111
  <PasswordInput
112
+ size={fieldSize}
111
113
  autoComplete="new-password"
112
114
  value={confirm}
113
115
  onValueChange={setConfirm}
@@ -6,7 +6,7 @@ export const meta: BlockMeta = {
6
6
  family: 'auth',
7
7
  status: 'stable',
8
8
  description:
9
- 'New password with a strength meter and a confirmation field with mismatch validation, then a success state. Optional labels?: Partial<ResetPasswordFormLabels> overrides built-in copy; explicit props and validation messages win, then labels, then I18nProvider (en/es). No provider preserves English; fixtures and caller content stay unchanged. Interactive preview: /preview.html?kind=block&id=reset-password-form--labels.',
9
+ 'New password with a strength meter and a confirmation field with mismatch validation, then a success state. Optional labels?: Partial<ResetPasswordFormLabels> overrides built-in copy; explicit props and validation messages win, then labels, then I18nProvider (en/es). No provider preserves English; fixtures and caller content stay unchanged. Interactive preview: /preview.html?kind=block&id=reset-password-form--labels. Optional fieldSize: auto (default, follows density) or lg (44px fields matching the submit button). Preview: reset-password-form--large-fields.',
10
10
  labels: [
11
11
  { key: 'eyebrow', type: 'string', state: 'Default content and accessible names' },
12
12
  { key: 'title', type: 'string', state: 'Default content and accessible names' },
@@ -0,0 +1,6 @@
1
+ import { ResetPasswordForm } from '../ResetPasswordForm';
2
+
3
+ /** /preview.html?kind=block&id=reset-password-form--large-fields */
4
+ export default function LargeFields() {
5
+ return <ResetPasswordForm fieldSize="lg" />;
6
+ }
@@ -6,6 +6,13 @@ import { expectNoAxeViolations } from '../../test/a11y';
6
6
  import { SignInForm, type SignInFormRef } from './SignInForm';
7
7
 
8
8
  describe('SignInForm', () => {
9
+ it('matches large identifier and password fields to the submit button', () => {
10
+ render(<SignInForm fieldSize="lg" sso={null} />);
11
+ expect(screen.getByLabelText('Email').parentElement).toHaveClass('h-11');
12
+ expect(screen.getByLabelText('Password').parentElement).toHaveClass('h-11');
13
+ expect(screen.getByRole('button', { name: 'Sign in' })).toHaveClass('h-11');
14
+ });
15
+
9
16
  it('can hide or replace the sign-up prompt alongside the SSO slot', () => {
10
17
  const { rerender } = render(<SignInForm sso={null} signUpPrompt={null} />);
11
18
  expect(screen.queryByText(/New here/)).not.toBeInTheDocument();
@@ -25,6 +25,7 @@ import {
25
25
  type AuthValidationMessages,
26
26
  type AuthFormAccessibilityProps,
27
27
  type AuthHeaderProps,
28
+ type AuthFieldSizeProps,
28
29
  } from '../shared';
29
30
 
30
31
  export interface SignInValues {
@@ -57,7 +58,7 @@ export interface SignInFormLabels extends Required<AuthValidationMessages> {
57
58
  fallbackError: string;
58
59
  }
59
60
 
60
- export interface SignInFormProps extends AuthFormAccessibilityProps {
61
+ export interface SignInFormProps extends AuthFormAccessibilityProps, AuthFieldSizeProps {
61
62
  labels?: Partial<SignInFormLabels>;
62
63
  /** React 19 ref for focus after a server response. */
63
64
  ref?: Ref<SignInFormRef>;
@@ -100,6 +101,7 @@ const linkHandler = (fn?: () => void) =>
100
101
  /** Email + password sign-in with remember me, forgot-password link, SSO slot, error alert and loading. */
101
102
  export function SignInForm({
102
103
  labels,
104
+ fieldSize = 'auto',
103
105
  identifier,
104
106
  messages,
105
107
  passwordHelp,
@@ -186,6 +188,7 @@ export function SignInForm({
186
188
  <Field invalid={emailInvalid || fieldInvalid?.identifier === true}>
187
189
  <FieldLabel>{identifier?.label ?? labels?.identifierLabel ?? t('signIn.identifierLabel')}</FieldLabel>
188
190
  <Input
191
+ size={fieldSize}
189
192
  ref={identifierInput}
190
193
  aria-describedby={fieldInvalid?.identifier ? feedbackId : undefined}
191
194
  type={identifier?.type ?? 'email'}
@@ -211,6 +214,7 @@ export function SignInForm({
211
214
  </Link>
212
215
  </div>
213
216
  <PasswordInput
217
+ size={fieldSize}
214
218
  ref={passwordInput}
215
219
  aria-describedby={fieldInvalid?.password ? feedbackId : undefined}
216
220
  leadingIcon={Lock}
@@ -6,7 +6,7 @@ export const meta: BlockMeta = {
6
6
  family: 'auth',
7
7
  status: 'stable',
8
8
  description:
9
- 'Email (default) or text identifier and password sign-in. Supports identifier (type, autoComplete, label, help/helpId, placeholder, minLength/maxLength), messages (identifierRequired/identifierInvalid/identifierTooShort/passwordRequired), and React 19 ref.focus. The kit owns inline validation and focuses the first invalid field; consumers supply messages, not a second inline validator. Server errors use error + fieldInvalid + feedbackId; aria-describedby describes the form, while flagged inputs also retain their help and error ids. headingLevel (h1/h2/h3/null) suppresses the heading without losing the form name; aria-label/aria-labelledby override the default name. passwordHelp/passwordHelpId describe the password. Text submissions add values.identifier and retain values.email; email-mode payloads are unchanged. sso and signUpPrompt accept replacements or null. Preview: sign-in-form--username. Optional labels?: Partial<SignInFormLabels> overrides built-in copy; explicit props and validation messages win, then labels, then I18nProvider (en/es). No provider preserves English; fixtures and caller content stay unchanged. Interactive preview: /preview.html?kind=block&id=sign-in-form--labels.',
9
+ 'Email (default) or text identifier and password sign-in. Supports identifier (type, autoComplete, label, help/helpId, placeholder, minLength/maxLength), messages (identifierRequired/identifierInvalid/identifierTooShort/passwordRequired), and React 19 ref.focus. The kit owns inline validation and focuses the first invalid field; consumers supply messages, not a second inline validator. Server errors use error + fieldInvalid + feedbackId; aria-describedby describes the form, while flagged inputs also retain their help and error ids. headingLevel (h1/h2/h3/null) suppresses the heading without losing the form name; aria-label/aria-labelledby override the default name. passwordHelp/passwordHelpId describe the password. Text submissions add values.identifier and retain values.email; email-mode payloads are unchanged. sso and signUpPrompt accept replacements or null. Preview: sign-in-form--username. Optional labels?: Partial<SignInFormLabels> overrides built-in copy; explicit props and validation messages win, then labels, then I18nProvider (en/es). No provider preserves English; fixtures and caller content stay unchanged. Interactive preview: /preview.html?kind=block&id=sign-in-form--labels. Optional fieldSize: auto (default, follows density) or lg (44px fields matching the submit button). Preview: sign-in-form--large-fields.',
10
10
  labels: [
11
11
  { key: 'eyebrow', type: 'string', state: 'Default content and accessible names' },
12
12
  { key: 'title', type: 'string', state: 'Default content and accessible names' },
@@ -0,0 +1,6 @@
1
+ import { SignInForm } from '../SignInForm';
2
+
3
+ /** /preview.html?kind=block&id=sign-in-form--large-fields */
4
+ export default function LargeFields() {
5
+ return <SignInForm fieldSize="lg" />;
6
+ }
@@ -4,6 +4,28 @@ import { expectNoAxeViolations } from '../../test/a11y';
4
4
  import { SignUpForm } from './SignUpForm';
5
5
 
6
6
  describe('SignUpForm', () => {
7
+ it('sizes default and configured sign-up fields to match the large submit button', () => {
8
+ const { container, rerender } = render(<SignUpForm fieldSize="lg" sso={null} />);
9
+ const expectLargeFields = () => {
10
+ const fields = container.querySelectorAll('input:not([type="checkbox"])');
11
+ expect(fields).toHaveLength(3);
12
+ fields.forEach((field) => expect(field.parentElement).toHaveClass('h-11'));
13
+ expect(screen.getByRole('button', { name: 'Create account' })).toHaveClass('h-11');
14
+ };
15
+ expectLargeFields();
16
+ rerender(
17
+ <SignUpForm
18
+ fieldSize="lg"
19
+ fields={[
20
+ { id: 'username', label: 'Username' },
21
+ { id: 'email', label: 'Email', type: 'email' },
22
+ ]}
23
+ sso={null}
24
+ />,
25
+ );
26
+ expectLargeFields();
27
+ });
28
+
7
29
  it('renders the default form', async () => {
8
30
  const { container } = render(<SignUpForm />);
9
31
  expect(screen.getByRole('form', { name: 'Create account' })).toBeInTheDocument();
@@ -20,6 +20,7 @@ import { SsoButtons } from '../SsoButtons/SsoButtons';
20
20
  import {
21
21
  AuthDivider,
22
22
  AuthHeader,
23
+ type AuthFieldSizeProps,
23
24
  EMAIL_RE,
24
25
  authFormClass,
25
26
  authSignUpFieldError,
@@ -63,7 +64,7 @@ export interface SignUpFormLabels extends AuthSignUpFieldLabels {
63
64
  emailInvalid: string;
64
65
  }
65
66
 
66
- export interface SignUpFormProps {
67
+ export interface SignUpFormProps extends AuthFieldSizeProps {
67
68
  labels?: Partial<SignUpFormLabels>;
68
69
  /** Ordered text/email inputs before Password. Omit to keep the default fields and payload. */
69
70
  fields?: readonly AuthSignUpField[];
@@ -97,6 +98,7 @@ export interface SignUpFormProps {
97
98
  /** Account creation: name, work email, password with a strength meter and a required terms checkbox. */
98
99
  export function SignUpForm({
99
100
  labels,
101
+ fieldSize = 'auto',
100
102
  fields,
101
103
  messages,
102
104
  unavailable,
@@ -227,6 +229,7 @@ export function SignUpForm({
227
229
  <Field key={field.id} invalid={invalid}>
228
230
  <FieldLabel>{field.label}</FieldLabel>
229
231
  <Input
232
+ size={fieldSize}
230
233
  id={`${fieldPrefix}-field-${field.id}`}
231
234
  type={field.type ?? 'text'}
232
235
  autoComplete={field.autoComplete}
@@ -245,6 +248,7 @@ export function SignUpForm({
245
248
  <Field invalid={nameInvalid}>
246
249
  <FieldLabel>{labels?.name ?? t('signUp.name')}</FieldLabel>
247
250
  <Input
251
+ size={fieldSize}
248
252
  leadingIcon={User}
249
253
  autoComplete="name"
250
254
  placeholder={labels?.namePlaceholder ?? t('signUp.namePlaceholder')}
@@ -257,6 +261,7 @@ export function SignUpForm({
257
261
  <Field invalid={emailInvalid}>
258
262
  <FieldLabel>{labels?.email ?? t('signUp.email')}</FieldLabel>
259
263
  <Input
264
+ size={fieldSize}
260
265
  type="email"
261
266
  leadingIcon={Mail}
262
267
  autoComplete="email"
@@ -272,6 +277,7 @@ export function SignUpForm({
272
277
  <Field invalid={passwordInvalid}>
273
278
  <FieldLabel>{labels?.password ?? t('signUp.password')}</FieldLabel>
274
279
  <PasswordInput
280
+ size={fieldSize}
275
281
  id={fields !== undefined ? passwordId : undefined}
276
282
  showStrength
277
283
  strength={password.length > 0 && password.length < minPasswordLength ? 0 : undefined}
@@ -6,7 +6,7 @@ export const meta: BlockMeta = {
6
6
  family: 'auth',
7
7
  status: 'stable',
8
8
  description:
9
- 'Account creation with default name/email fields or ordered text/email fields (values.fields), a password strength meter and required consent (terms=false opts out). minPasswordLength defaults to 8 and drives length validation and the insufficient-length meter; optional passwordHelp can receive the minimum. Configured fields support help, required, autoComplete and validation messages, with a linked validation summary on invalid submit. policyLoading renders skeletons without a form; unavailable replaces the form with consumer title, message and optional action. loading remains submitting; error is form-level feedback. Examples: custom-fields, no-terms, unavailable, loading, submitting and error. Optional labels?: Partial<SignUpFormLabels> overrides built-in copy; explicit props and validation messages win, then labels, then I18nProvider (en/es). No provider preserves English; fixtures and caller content stay unchanged. Interactive preview: /preview.html?kind=block&id=sign-up-form--labels.',
9
+ 'Account creation with default name/email fields or ordered text/email fields (values.fields), a password strength meter and required consent (terms=false opts out). minPasswordLength defaults to 8 and drives length validation and the insufficient-length meter; optional passwordHelp can receive the minimum. Configured fields support help, required, autoComplete and validation messages, with a linked validation summary on invalid submit. policyLoading renders skeletons without a form; unavailable replaces the form with consumer title, message and optional action. loading remains submitting; error is form-level feedback. Examples: custom-fields, no-terms, unavailable, loading, submitting and error. Optional labels?: Partial<SignUpFormLabels> overrides built-in copy; explicit props and validation messages win, then labels, then I18nProvider (en/es). No provider preserves English; fixtures and caller content stay unchanged. Interactive preview: /preview.html?kind=block&id=sign-up-form--labels. Optional fieldSize: auto (default, follows density) or lg (44px fields matching the submit button). Preview: sign-up-form--large-fields.',
10
10
  labels: [
11
11
  { key: 'eyebrow', type: 'string', state: 'Default content and accessible names' },
12
12
  { key: 'title', type: 'string', state: 'Default content and accessible names' },
@@ -0,0 +1,6 @@
1
+ import { SignUpForm } from '../SignUpForm';
2
+
3
+ /** /preview.html?kind=block&id=sign-up-form--large-fields */
4
+ export default function LargeFields() {
5
+ return <SignUpForm fieldSize="lg" />;
6
+ }
@@ -0,0 +1,11 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`auth default markup > ForgotPasswordForm retains its default markup 1`] = `"<div class="w-full max-w-[392px]"><div class="mb-6"><p class="mb-2.5 font-mono text-[11px] tracking-[0.2em] text-primary-text label-case">Account recovery</p><h1 class="text-[24px] font-semibold tracking-tight text-balance text-foreground sm:text-[27px]">Forgot your password?</h1><p class="mt-2 text-[14px] leading-relaxed text-pretty text-muted-foreground">Enter the email you sign in with and we&#x27;ll send you a reset link.</p></div><form noValidate="" aria-label="Reset password request" class="flex flex-col gap-4"><div class="flex min-w-0 flex-col gap-2"><label id="base-ui-_R_1q_" for="base-ui-_R_a_" class="inline-flex items-center gap-0.5 text-[13px] font-medium text-foreground data-disabled:cursor-disabled">Email</label><div class="flex w-full min-w-0 items-center rounded-md border border-border bg-background text-foreground shadow-sm transition-colors motion-reduce:transition-none has-[input:focus-visible]:border-primary/60 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-focus-ring data-invalid:border-destructive/70 has-[input[data-invalid]]:border-destructive/70 has-[input[aria-invalid=true]]:border-destructive/70 has-[input:disabled]:cursor-disabled has-[input:disabled]:bg-secondary/50 has-[input:disabled]:text-muted-foreground has-[input:read-only]:bg-secondary/40 h-control gap-tight px-field text-[13px]"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail pointer-events-none shrink-0 text-muted-foreground" aria-hidden="true"><path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path><rect x="2" y="4" width="20" height="16" rx="2"></rect></svg><input id="base-ui-_R_a_" type="email" autoComplete="email" placeholder="name@company.com" required="" class="h-full w-full min-w-0 bg-transparent text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-disabled disabled:text-muted-foreground read-only:text-muted-foreground text-[13px]" value=""/></div></div><button type="submit" tabindex="0" class="inline-flex shrink-0 items-center justify-center font-semibold whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 bg-primary text-primary-foreground shadow-sm not-data-[disabled]:hover:bg-primary/90 h-11 gap-2 px-5 text-[14.5px] rounded-lg mt-2 w-full">Send reset link</button></form><p class="mt-7 text-center"><a href="#" class="cursor-interactive rounded-sm font-medium underline-offset-4 transition-colors focus-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 text-muted-foreground hover:text-foreground underline decoration-current/40 hover:decoration-current inline-flex items-center gap-1.5 text-[13px]"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-arrow-left rtl:-scale-x-100" aria-hidden="true"><path d="m12 19-7-7 7-7"></path><path d="M19 12H5"></path></svg>Back to sign in</a></p></div>"`;
4
+
5
+ exports[`auth default markup > MfaChallenge retains its default markup 1`] = `"<div class="w-full max-w-[392px]"><div class="mb-6"><p class="mb-2.5 font-mono text-[11px] tracking-[0.2em] text-primary-text label-case">Two-step verification</p><h1 class="text-[24px] font-semibold tracking-tight text-balance text-foreground sm:text-[27px]">Enter your verification code</h1><p class="mt-2 text-[14px] leading-relaxed text-pretty text-muted-foreground">Open your authenticator app and enter the 6-digit code.</p></div><form noValidate="" aria-label="Verify your identity" class="flex flex-col gap-5"><div class="flex min-w-0 flex-col gap-2"><label id="base-ui-_R_3i_" for="base-ui-_R_i_" class="inline-flex items-center gap-0.5 text-[13px] font-medium text-foreground data-disabled:cursor-disabled">Verification code</label><div role="group" class="group/otp flex w-fit items-center gap-2 data-disabled:cursor-disabled"><input data-length="6" id="base-ui-_R_i_" type="text" inputMode="numeric" autoComplete="one-time-code" autoCorrect="off" spellCheck="false" enterKeyHint="next" maxLength="6" tabindex="0" pattern="\\d{1}" class="m-0 rounded-md border border-border bg-background p-0 text-center font-mono font-medium text-foreground shadow-sm caret-primary uppercase transition-colors motion-reduce:transition-none focus-visible:border-primary/60 focus-ring focus:outline-none data-filled:border-muted-foreground/40 data-invalid:border-destructive/70 group-data-invalid/otp:border-destructive/70 disabled:cursor-disabled disabled:bg-secondary/50 disabled:text-muted-foreground read-only:bg-secondary/40 h-11 w-10 text-[17px]" value=""/><input data-length="6" id="base-ui-_R_i_-2" type="text" inputMode="numeric" autoComplete="off" autoCorrect="off" spellCheck="false" enterKeyHint="next" tabindex="-1" pattern="\\d{1}" aria-label="Character 2 of 6" class="m-0 rounded-md border border-border bg-background p-0 text-center font-mono font-medium text-foreground shadow-sm caret-primary uppercase transition-colors motion-reduce:transition-none focus-visible:border-primary/60 focus-ring focus:outline-none data-filled:border-muted-foreground/40 data-invalid:border-destructive/70 group-data-invalid/otp:border-destructive/70 disabled:cursor-disabled disabled:bg-secondary/50 disabled:text-muted-foreground read-only:bg-secondary/40 h-11 w-10 text-[17px]" value=""/><input data-length="6" id="base-ui-_R_i_-3" type="text" inputMode="numeric" autoComplete="off" autoCorrect="off" spellCheck="false" enterKeyHint="next" tabindex="-1" pattern="\\d{1}" aria-label="Character 3 of 6" class="m-0 rounded-md border border-border bg-background p-0 text-center font-mono font-medium text-foreground shadow-sm caret-primary uppercase transition-colors motion-reduce:transition-none focus-visible:border-primary/60 focus-ring focus:outline-none data-filled:border-muted-foreground/40 data-invalid:border-destructive/70 group-data-invalid/otp:border-destructive/70 disabled:cursor-disabled disabled:bg-secondary/50 disabled:text-muted-foreground read-only:bg-secondary/40 h-11 w-10 text-[17px]" value=""/><div data-orientation="horizontal" role="separator" aria-orientation="horizontal" class="h-px w-2.5 shrink-0 rounded-full bg-muted-foreground/50"></div><input data-length="6" id="base-ui-_R_i_-4" type="text" inputMode="numeric" autoComplete="off" autoCorrect="off" spellCheck="false" enterKeyHint="next" tabindex="-1" pattern="\\d{1}" aria-label="Character 4 of 6" class="m-0 rounded-md border border-border bg-background p-0 text-center font-mono font-medium text-foreground shadow-sm caret-primary uppercase transition-colors motion-reduce:transition-none focus-visible:border-primary/60 focus-ring focus:outline-none data-filled:border-muted-foreground/40 data-invalid:border-destructive/70 group-data-invalid/otp:border-destructive/70 disabled:cursor-disabled disabled:bg-secondary/50 disabled:text-muted-foreground read-only:bg-secondary/40 h-11 w-10 text-[17px]" value=""/><input data-length="6" id="base-ui-_R_i_-5" type="text" inputMode="numeric" autoComplete="off" autoCorrect="off" spellCheck="false" enterKeyHint="next" tabindex="-1" pattern="\\d{1}" aria-label="Character 5 of 6" class="m-0 rounded-md border border-border bg-background p-0 text-center font-mono font-medium text-foreground shadow-sm caret-primary uppercase transition-colors motion-reduce:transition-none focus-visible:border-primary/60 focus-ring focus:outline-none data-filled:border-muted-foreground/40 data-invalid:border-destructive/70 group-data-invalid/otp:border-destructive/70 disabled:cursor-disabled disabled:bg-secondary/50 disabled:text-muted-foreground read-only:bg-secondary/40 h-11 w-10 text-[17px]" value=""/><input data-length="6" id="base-ui-_R_i_-6" type="text" inputMode="numeric" autoComplete="off" autoCorrect="off" spellCheck="false" enterKeyHint="done" tabindex="-1" pattern="\\d{1}" aria-label="Character 6 of 6" class="m-0 rounded-md border border-border bg-background p-0 text-center font-mono font-medium text-foreground shadow-sm caret-primary uppercase transition-colors motion-reduce:transition-none focus-visible:border-primary/60 focus-ring focus:outline-none data-filled:border-muted-foreground/40 data-invalid:border-destructive/70 group-data-invalid/otp:border-destructive/70 disabled:cursor-disabled disabled:bg-secondary/50 disabled:text-muted-foreground read-only:bg-secondary/40 h-11 w-10 text-[17px]" value=""/></div><input type="text" id="base-ui-_R_i_-hidden-input" autoComplete="one-time-code" inputMode="numeric" minLength="6" maxLength="6" pattern="\\d{6}" aria-hidden="true" tabindex="-1" style="clip-path:inset(50%);overflow:hidden;white-space:nowrap;border:0;padding:0;width:1px;height:1px;margin:0;position:fixed;top:0;left:0" value=""/></div><button type="submit" tabindex="0" class="inline-flex shrink-0 items-center justify-center font-semibold whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 bg-primary text-primary-foreground shadow-sm not-data-[disabled]:hover:bg-primary/90 h-11 gap-2 px-5 text-[14.5px] rounded-lg w-full">Verify</button></form><div class="mt-6 flex flex-wrap items-center justify-between gap-3 text-[13px]"><button type="button" tabindex="0" aria-pressed="false" class="inline-flex shrink-0 items-center justify-center font-semibold whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 text-muted-foreground not-data-[disabled]:hover:bg-secondary/70 not-data-[disabled]:hover:text-foreground h-8 gap-1.5 px-3 text-[12.5px] rounded-md">Use a backup code</button></div><span role="status" class="sr-only"></span></div>"`;
6
+
7
+ exports[`auth default markup > ResetPasswordForm retains its default markup 1`] = `"<div class="w-full max-w-[392px]"><div class="mb-6"><p class="mb-2.5 font-mono text-[11px] tracking-[0.2em] text-primary-text label-case">Account recovery</p><h1 class="text-[24px] font-semibold tracking-tight text-balance text-foreground sm:text-[27px]">Set a new password</h1><p class="mt-2 text-[14px] leading-relaxed text-pretty text-muted-foreground">Use at least 8 characters. Avoid passwords you use elsewhere.</p></div><form noValidate="" aria-label="Set a new password" class="flex flex-col gap-4"><div class="flex min-w-0 flex-col gap-2"><label id="base-ui-_R_3a_" for="base-ui-_R_a_" class="inline-flex items-center gap-0.5 text-[13px] font-medium text-foreground data-disabled:cursor-disabled">New password</label><div class="flex min-w-0 flex-col gap-2"><div class="flex w-full min-w-0 items-center rounded-md border border-border bg-background text-foreground shadow-sm transition-colors motion-reduce:transition-none has-[input:focus-visible]:border-primary/60 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-focus-ring data-invalid:border-destructive/70 has-[input[data-invalid]]:border-destructive/70 has-[input[aria-invalid=true]]:border-destructive/70 has-[input:disabled]:cursor-disabled has-[input:disabled]:bg-secondary/50 has-[input:disabled]:text-muted-foreground has-[input:read-only]:bg-secondary/40 h-control gap-tight px-field text-[13px] pe-1"><input id="base-ui-_R_a_" required="" type="password" autoComplete="new-password" class="h-full w-full min-w-0 bg-transparent text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-disabled disabled:text-muted-foreground read-only:text-muted-foreground text-[13px]" value=""/><span class="flex shrink-0 items-center text-muted-foreground select-none"><button type="button" tabindex="0" aria-label="Show password" aria-pressed="false" class="inline-flex items-center justify-center font-semibold whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 text-muted-foreground not-data-[disabled]:hover:bg-secondary/70 not-data-[disabled]:hover:text-foreground gap-1.5 text-[12.5px] rounded-md px-0 size-7 shrink-0"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-eye" aria-hidden="true"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></div><div class="flex flex-col gap-1.5"><div class="grid grid-cols-4 gap-1" aria-hidden="true"><span class="h-1 rounded-full bg-secondary transition-colors motion-reduce:transition-none"></span><span class="h-1 rounded-full bg-secondary transition-colors motion-reduce:transition-none"></span><span class="h-1 rounded-full bg-secondary transition-colors motion-reduce:transition-none"></span><span class="h-1 rounded-full bg-secondary transition-colors motion-reduce:transition-none"></span></div><p id="_R_5a_" class="text-[12px] leading-4 text-muted-foreground">Use 12+ characters with a mix of letters, numbers and symbols.</p></div></div></div><div class="flex min-w-0 flex-col gap-2"><label id="base-ui-_R_3e_" for="base-ui-_R_e_" class="inline-flex items-center gap-0.5 text-[13px] font-medium text-foreground data-disabled:cursor-disabled">Confirm password</label><div class="flex w-full min-w-0 items-center rounded-md border border-border bg-background text-foreground shadow-sm transition-colors motion-reduce:transition-none has-[input:focus-visible]:border-primary/60 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-focus-ring data-invalid:border-destructive/70 has-[input[data-invalid]]:border-destructive/70 has-[input[aria-invalid=true]]:border-destructive/70 has-[input:disabled]:cursor-disabled has-[input:disabled]:bg-secondary/50 has-[input:disabled]:text-muted-foreground has-[input:read-only]:bg-secondary/40 h-control gap-tight px-field text-[13px] pe-1"><input id="base-ui-_R_e_" autoComplete="new-password" required="" type="password" class="h-full w-full min-w-0 bg-transparent text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-disabled disabled:text-muted-foreground read-only:text-muted-foreground text-[13px]" value=""/><span class="flex shrink-0 items-center text-muted-foreground select-none"><button type="button" tabindex="0" aria-label="Show password" aria-pressed="false" class="inline-flex items-center justify-center font-semibold whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 text-muted-foreground not-data-[disabled]:hover:bg-secondary/70 not-data-[disabled]:hover:text-foreground gap-1.5 text-[12.5px] rounded-md px-0 size-7 shrink-0"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-eye" aria-hidden="true"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></div></div><button type="submit" tabindex="0" class="inline-flex shrink-0 items-center justify-center font-semibold whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 bg-primary text-primary-foreground shadow-sm not-data-[disabled]:hover:bg-primary/90 h-11 gap-2 px-5 text-[14.5px] rounded-lg mt-2 w-full">Update password</button></form></div>"`;
8
+
9
+ exports[`auth default markup > SignInForm retains its default markup 1`] = `"<div class="w-full max-w-[392px]"><div class="mb-6"><p class="mb-2.5 font-mono text-[11px] tracking-[0.2em] text-primary-text label-case">Secure access</p><h1 class="text-[24px] font-semibold tracking-tight text-balance text-foreground sm:text-[27px]">Sign in to your workspace</h1><p class="mt-2 text-[14px] leading-relaxed text-pretty text-muted-foreground">Use your work email to continue.</p></div><form noValidate="" aria-label="Sign in" class="flex flex-col gap-4"><div class="flex min-w-0 flex-col gap-2"><label id="base-ui-_R_6i_" for="base-ui-_R_i_" class="inline-flex items-center gap-0.5 text-[13px] font-medium text-foreground data-disabled:cursor-disabled">Email</label><div class="flex w-full min-w-0 items-center rounded-md border border-border bg-background text-foreground shadow-sm transition-colors motion-reduce:transition-none has-[input:focus-visible]:border-primary/60 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-focus-ring data-invalid:border-destructive/70 has-[input[data-invalid]]:border-destructive/70 has-[input[aria-invalid=true]]:border-destructive/70 has-[input:disabled]:cursor-disabled has-[input:disabled]:bg-secondary/50 has-[input:disabled]:text-muted-foreground has-[input:read-only]:bg-secondary/40 h-control gap-tight px-field text-[13px]"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail pointer-events-none shrink-0 text-muted-foreground" aria-hidden="true"><path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path><rect x="2" y="4" width="20" height="16" rx="2"></rect></svg><input id="base-ui-_R_i_" type="email" autoComplete="email" placeholder="name@company.com" required="" class="h-full w-full min-w-0 bg-transparent text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-disabled disabled:text-muted-foreground read-only:text-muted-foreground text-[13px]" value=""/></div></div><div class="flex min-w-0 flex-col gap-2"><div class="flex items-center justify-between gap-3"><label id="base-ui-_R_16q_" for="base-ui-_R_q_" class="inline-flex items-center gap-0.5 text-[13px] font-medium text-foreground data-disabled:cursor-disabled">Password</label><a href="#" class="cursor-interactive rounded-sm font-medium underline-offset-4 transition-colors focus-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 text-primary-text underline decoration-current/40 hover:decoration-current text-[12.5px]">Forgot password?</a></div><div class="flex w-full min-w-0 items-center rounded-md border border-border bg-background text-foreground shadow-sm transition-colors motion-reduce:transition-none has-[input:focus-visible]:border-primary/60 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-focus-ring data-invalid:border-destructive/70 has-[input[data-invalid]]:border-destructive/70 has-[input[aria-invalid=true]]:border-destructive/70 has-[input:disabled]:cursor-disabled has-[input:disabled]:bg-secondary/50 has-[input:disabled]:text-muted-foreground has-[input:read-only]:bg-secondary/40 h-control gap-tight px-field text-[13px] pe-1"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-lock pointer-events-none shrink-0 text-muted-foreground" aria-hidden="true"><rect width="18" height="11" x="3" y="11" rx="2" ry="2"></rect><path d="M7 11V7a5 5 0 0 1 10 0v4"></path></svg><input id="base-ui-_R_q_" required="" type="password" autoComplete="current-password" class="h-full w-full min-w-0 bg-transparent text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-disabled disabled:text-muted-foreground read-only:text-muted-foreground text-[13px]" value=""/><span class="flex shrink-0 items-center text-muted-foreground select-none"><button type="button" tabindex="0" aria-label="Show password" aria-pressed="false" class="inline-flex items-center justify-center font-semibold whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 text-muted-foreground not-data-[disabled]:hover:bg-secondary/70 not-data-[disabled]:hover:text-foreground gap-1.5 text-[12.5px] rounded-md px-0 size-7 shrink-0"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-eye" aria-hidden="true"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></div></div><div class="grid grid-cols-[auto_1fr] items-start gap-x-3 gap-y-0.5"><label class="col-span-2 grid cursor-interactive grid-cols-subgrid items-start has-[[data-disabled]]:cursor-disabled has-[[data-disabled]]:opacity-70"><span data-checked="" role="checkbox" tabindex="0" id="base-ui-_R_n2_" aria-checked="true" class="inline-flex size-[18px] shrink-0 cursor-interactive items-center justify-center rounded-[5px] border border-border bg-background text-primary-foreground transition-colors motion-reduce:transition-none hover:border-muted-foreground/50 data-checked:border-primary data-checked:bg-primary data-indeterminate:border-primary data-indeterminate:bg-primary data-invalid:border-destructive/70 focus-ring data-disabled:cursor-disabled data-disabled:opacity-50 mt-px"><span data-checked="" class="flex items-center justify-center data-unchecked:hidden"><svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.6" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-check" aria-hidden="true"><path d="M20 6 9 17l-5-5"></path></svg></span></span><input id="base-ui-_R_n2H1_" style="clip-path:inset(50%);overflow:hidden;white-space:nowrap;border:0;padding:0;width:1px;height:1px;margin:0;position:fixed;top:0;left:0" tabindex="-1" type="checkbox" aria-hidden="true" checked=""/><span class="text-[13px] leading-5 font-medium text-foreground select-none">Keep me signed in</span></label></div><button type="submit" tabindex="0" class="inline-flex shrink-0 items-center justify-center font-semibold whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 bg-primary text-primary-foreground shadow-sm not-data-[disabled]:hover:bg-primary/90 h-11 gap-2 px-5 text-[14.5px] rounded-lg mt-2 w-full">Sign in</button></form><div class="my-6 flex items-center gap-3" role="presentation"><span class="h-px flex-1 bg-border"></span><span class="font-mono text-[10.5px] font-semibold tracking-[0.2em] text-muted-foreground label-case">Or continue with</span><span class="h-px flex-1 bg-border"></span></div><div role="group" aria-label="Single sign-on" class="grid gap-2.5"><button type="button" tabindex="0" class="inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 border border-border bg-card text-foreground shadow-sm not-data-[disabled]:hover:bg-secondary/70 h-11 gap-2 px-5 rounded-lg w-full text-[13.5px] font-medium"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-building-complex lucide-building-2" aria-hidden="true"><path d="M10 12h4"></path><path d="M10 8h4"></path><path d="M14 21v-3a2 2 0 0 0-4 0v3"></path><path d="M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2"></path><path d="M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16"></path></svg>Continue with SSO</button><button type="button" tabindex="0" class="inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 border border-border bg-card text-foreground shadow-sm not-data-[disabled]:hover:bg-secondary/70 h-11 gap-2 px-5 rounded-lg w-full text-[13.5px] font-medium"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-globe" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"></path><path d="M2 12h20"></path></svg>Continue with Google</button><button type="button" tabindex="0" class="inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 border border-border bg-card text-foreground shadow-sm not-data-[disabled]:hover:bg-secondary/70 h-11 gap-2 px-5 rounded-lg w-full text-[13.5px] font-medium"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-key-round" aria-hidden="true"><path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"></path><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"></circle></svg>Continue with a passkey</button></div><p class="mt-7 text-center text-[13px] text-muted-foreground">New here? <a href="#" class="cursor-interactive rounded-sm font-medium underline-offset-4 transition-colors focus-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 text-primary-text underline decoration-current/40 hover:decoration-current">Create an account</a></p></div>"`;
10
+
11
+ exports[`auth default markup > SignUpForm retains its default markup 1`] = `"<div class="w-full max-w-[392px]"><div class="mb-6"><p class="mb-2.5 font-mono text-[11px] tracking-[0.2em] text-primary-text label-case">Get started</p><h1 class="text-[24px] font-semibold tracking-tight text-balance text-foreground sm:text-[27px]">Create your account</h1><p class="mt-2 text-[14px] leading-relaxed text-pretty text-muted-foreground">Set up a workspace for your team in a couple of minutes.</p></div><form noValidate="" aria-label="Create account" class="flex flex-col gap-4"><div class="flex min-w-0 flex-col gap-2"><label id="base-ui-_R_1ll_" for="base-ui-_R_5l_" class="inline-flex items-center gap-0.5 text-[13px] font-medium text-foreground data-disabled:cursor-disabled">Full name</label><div class="flex w-full min-w-0 items-center rounded-md border border-border bg-background text-foreground shadow-sm transition-colors motion-reduce:transition-none has-[input:focus-visible]:border-primary/60 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-focus-ring data-invalid:border-destructive/70 has-[input[data-invalid]]:border-destructive/70 has-[input[aria-invalid=true]]:border-destructive/70 has-[input:disabled]:cursor-disabled has-[input:disabled]:bg-secondary/50 has-[input:disabled]:text-muted-foreground has-[input:read-only]:bg-secondary/40 h-control gap-tight px-field text-[13px]"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-user pointer-events-none shrink-0 text-muted-foreground" aria-hidden="true"><path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2"></path><circle cx="12" cy="7" r="4"></circle></svg><input id="base-ui-_R_5l_" autoComplete="name" placeholder="Avery Collins" required="" class="h-full w-full min-w-0 bg-transparent text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-disabled disabled:text-muted-foreground read-only:text-muted-foreground text-[13px]" value=""/></div></div><div class="flex min-w-0 flex-col gap-2"><label id="base-ui-_R_1pl_" for="base-ui-_R_9l_" class="inline-flex items-center gap-0.5 text-[13px] font-medium text-foreground data-disabled:cursor-disabled">Work email</label><div class="flex w-full min-w-0 items-center rounded-md border border-border bg-background text-foreground shadow-sm transition-colors motion-reduce:transition-none has-[input:focus-visible]:border-primary/60 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-focus-ring data-invalid:border-destructive/70 has-[input[data-invalid]]:border-destructive/70 has-[input[aria-invalid=true]]:border-destructive/70 has-[input:disabled]:cursor-disabled has-[input:disabled]:bg-secondary/50 has-[input:disabled]:text-muted-foreground has-[input:read-only]:bg-secondary/40 h-control gap-tight px-field text-[13px]"><svg xmlns="http://www.w3.org/2000/svg" width="15" height="15" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-mail pointer-events-none shrink-0 text-muted-foreground" aria-hidden="true"><path d="m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7"></path><rect x="2" y="4" width="20" height="16" rx="2"></rect></svg><input id="base-ui-_R_9l_" type="email" autoComplete="email" placeholder="name@company.com" required="" class="h-full w-full min-w-0 bg-transparent text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-disabled disabled:text-muted-foreground read-only:text-muted-foreground text-[13px]" value=""/></div></div><div class="flex min-w-0 flex-col gap-2"><label id="base-ui-_R_e5_" for="base-ui-_R_25_" class="inline-flex items-center gap-0.5 text-[13px] font-medium text-foreground data-disabled:cursor-disabled">Password</label><div class="flex min-w-0 flex-col gap-2"><div class="flex w-full min-w-0 items-center rounded-md border border-border bg-background text-foreground shadow-sm transition-colors motion-reduce:transition-none has-[input:focus-visible]:border-primary/60 has-[input:focus-visible]:outline-2 has-[input:focus-visible]:outline-offset-2 has-[input:focus-visible]:outline-focus-ring data-invalid:border-destructive/70 has-[input[data-invalid]]:border-destructive/70 has-[input[aria-invalid=true]]:border-destructive/70 has-[input:disabled]:cursor-disabled has-[input:disabled]:bg-secondary/50 has-[input:disabled]:text-muted-foreground has-[input:read-only]:bg-secondary/40 h-control gap-tight px-field text-[13px] pe-1"><input id="base-ui-_R_25_" required="" type="password" autoComplete="new-password" class="h-full w-full min-w-0 bg-transparent text-foreground outline-none placeholder:text-muted-foreground disabled:cursor-disabled disabled:text-muted-foreground read-only:text-muted-foreground text-[13px]" value=""/><span class="flex shrink-0 items-center text-muted-foreground select-none"><button type="button" tabindex="0" aria-label="Show password" aria-pressed="false" class="inline-flex items-center justify-center font-semibold whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 text-muted-foreground not-data-[disabled]:hover:bg-secondary/70 not-data-[disabled]:hover:text-foreground gap-1.5 text-[12.5px] rounded-md px-0 size-7 shrink-0"><svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-eye" aria-hidden="true"><path d="M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0"></path><circle cx="12" cy="12" r="3"></circle></svg></button></span></div><div class="flex flex-col gap-1.5"><div class="grid grid-cols-4 gap-1" aria-hidden="true"><span class="h-1 rounded-full bg-secondary transition-colors motion-reduce:transition-none"></span><span class="h-1 rounded-full bg-secondary transition-colors motion-reduce:transition-none"></span><span class="h-1 rounded-full bg-secondary transition-colors motion-reduce:transition-none"></span><span class="h-1 rounded-full bg-secondary transition-colors motion-reduce:transition-none"></span></div><p id="_R_m5_" class="text-[12px] leading-4 text-muted-foreground">Use 12+ characters with a mix of letters, numbers and symbols.</p></div></div></div><div><div class="grid grid-cols-[auto_1fr] items-start gap-x-3 gap-y-0.5"><label class="col-span-2 grid cursor-interactive grid-cols-subgrid items-start has-[[data-disabled]]:cursor-disabled has-[[data-disabled]]:opacity-70"><span data-unchecked="" role="checkbox" tabindex="0" id="base-ui-_R_5ml_" aria-checked="false" class="inline-flex size-[18px] shrink-0 cursor-interactive items-center justify-center rounded-[5px] border border-border bg-background text-primary-foreground transition-colors motion-reduce:transition-none hover:border-muted-foreground/50 data-checked:border-primary data-checked:bg-primary data-indeterminate:border-primary data-indeterminate:bg-primary data-invalid:border-destructive/70 focus-ring data-disabled:cursor-disabled data-disabled:opacity-50 mt-px"></span><input id="base-ui-_R_5mlH1_" style="clip-path:inset(50%);overflow:hidden;white-space:nowrap;border:0;padding:0;width:1px;height:1px;margin:0;position:fixed;top:0;left:0" tabindex="-1" type="checkbox" aria-hidden="true"/><span class="text-[13px] leading-5 font-medium text-foreground select-none">I agree to the <a href="#" class="cursor-interactive rounded-sm font-medium underline-offset-4 transition-colors focus-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 text-primary-text underline decoration-current/40 hover:decoration-current">Terms</a> and <a href="#" class="cursor-interactive rounded-sm font-medium underline-offset-4 transition-colors focus-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 text-primary-text underline decoration-current/40 hover:decoration-current">Privacy Policy</a>.</span></label></div></div><button type="submit" tabindex="0" class="inline-flex shrink-0 items-center justify-center font-semibold whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 bg-primary text-primary-foreground shadow-sm not-data-[disabled]:hover:bg-primary/90 h-11 gap-2 px-5 text-[14.5px] rounded-lg mt-2 w-full">Create account</button></form><div class="my-6 flex items-center gap-3" role="presentation"><span class="h-px flex-1 bg-border"></span><span class="font-mono text-[10.5px] font-semibold tracking-[0.2em] text-muted-foreground label-case">Or sign up with</span><span class="h-px flex-1 bg-border"></span></div><div role="group" aria-label="Single sign-on" class="grid gap-2.5"><button type="button" tabindex="0" class="inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 border border-border bg-card text-foreground shadow-sm not-data-[disabled]:hover:bg-secondary/70 h-11 gap-2 px-5 rounded-lg w-full text-[13.5px] font-medium"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-building-complex lucide-building-2" aria-hidden="true"><path d="M10 12h4"></path><path d="M10 8h4"></path><path d="M14 21v-3a2 2 0 0 0-4 0v3"></path><path d="M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2"></path><path d="M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16"></path></svg>Continue with SSO</button><button type="button" tabindex="0" class="inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 border border-border bg-card text-foreground shadow-sm not-data-[disabled]:hover:bg-secondary/70 h-11 gap-2 px-5 rounded-lg w-full text-[13.5px] font-medium"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-globe" aria-hidden="true"><circle cx="12" cy="12" r="10"></circle><path d="M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"></path><path d="M2 12h20"></path></svg>Continue with Google</button><button type="button" tabindex="0" class="inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-colors select-none cursor-interactive focus-ring data-[disabled]:cursor-disabled data-[disabled]:opacity-50 border border-border bg-card text-foreground shadow-sm not-data-[disabled]:hover:bg-secondary/70 h-11 gap-2 px-5 rounded-lg w-full text-[13.5px] font-medium"><svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-key-round" aria-hidden="true"><path d="M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z"></path><circle cx="16.5" cy="7.5" r=".5" fill="currentColor"></circle></svg>Continue with a passkey</button></div><p class="mt-7 text-center text-[13px] text-muted-foreground">Already have an account? <a href="#" class="cursor-interactive rounded-sm font-medium underline-offset-4 transition-colors focus-ring aria-disabled:pointer-events-none aria-disabled:opacity-50 text-primary-text underline decoration-current/40 hover:decoration-current">Sign in</a></p></div>"`;