@gntik-ai/blocks 0.11.0 → 0.13.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 (189) hide show
  1. package/dist/index.d.ts +1501 -1232
  2. package/dist/index.js +1891 -840
  3. package/dist/index.js.map +1 -1
  4. package/package.json +6 -6
  5. package/src/ai/EvaluationScorecard/EvaluationScorecard.test.tsx +10 -0
  6. package/src/ai/EvaluationScorecard/EvaluationScorecard.tsx +2 -1
  7. package/src/ai/PromptEditor/PromptEditor.tsx +2 -2
  8. package/src/ai/PromptEditor/examples/controlled-variables.tsx +1 -1
  9. package/src/ai/TokenCostCard/TokenCostCard.test.tsx +10 -0
  10. package/src/ai/TokenCostCard/TokenCostCard.tsx +2 -1
  11. package/src/ai/TraceWaterfall/TraceWaterfall.tsx +2 -2
  12. package/src/auth/ForgotPasswordForm/ForgotPasswordForm.test.tsx +6 -0
  13. package/src/auth/ForgotPasswordForm/ForgotPasswordForm.tsx +4 -1
  14. package/src/auth/ForgotPasswordForm/block.meta.ts +1 -1
  15. package/src/auth/ForgotPasswordForm/examples/LargeFields.tsx +6 -0
  16. package/src/auth/MfaChallenge/MfaChallenge.test.tsx +9 -0
  17. package/src/auth/MfaChallenge/MfaChallenge.tsx +5 -2
  18. package/src/auth/MfaChallenge/block.meta.ts +1 -1
  19. package/src/auth/MfaChallenge/examples/LargeFields.tsx +6 -0
  20. package/src/auth/ResetPasswordForm/ResetPasswordForm.test.tsx +7 -0
  21. package/src/auth/ResetPasswordForm/ResetPasswordForm.tsx +5 -3
  22. package/src/auth/ResetPasswordForm/block.meta.ts +1 -1
  23. package/src/auth/ResetPasswordForm/examples/LargeFields.tsx +6 -0
  24. package/src/auth/SignInForm/SignInForm.test.tsx +7 -0
  25. package/src/auth/SignInForm/SignInForm.tsx +5 -1
  26. package/src/auth/SignInForm/block.meta.ts +1 -1
  27. package/src/auth/SignInForm/examples/LargeFields.tsx +6 -0
  28. package/src/auth/SignUpForm/SignUpForm.test.tsx +22 -0
  29. package/src/auth/SignUpForm/SignUpForm.tsx +7 -1
  30. package/src/auth/SignUpForm/block.meta.ts +1 -1
  31. package/src/auth/SignUpForm/examples/LargeFields.tsx +6 -0
  32. package/src/auth/__snapshots__/field-size.test.tsx.snap +11 -0
  33. package/src/auth/field-size.test.tsx +21 -0
  34. package/src/auth/large-examples.test.tsx +30 -0
  35. package/src/auth/shared.tsx +7 -2
  36. package/src/billing/PaymentMethodCard/PaymentMethodCard.tsx +1 -1
  37. package/src/billing/PlanCard/PlanCard.baseline.test.tsx +3 -2
  38. package/src/billing/PlanCard/__snapshots__/PlanCard.baseline.test.tsx.snap +2 -2
  39. package/src/billing/PlanDefinitionCard/examples/Compact.tsx +1 -4
  40. package/src/billing/PlanDefinitionCard/examples/Full.tsx +1 -4
  41. package/src/builders/CodePanel/CodePanel.test.tsx +11 -0
  42. package/src/builders/CodePanel/CodePanel.tsx +4 -3
  43. package/src/builders/FlowBuilder/FlowBuilder.tsx +4 -19
  44. package/src/builders/FlowBuilder/parts.tsx +4 -4
  45. package/src/builders/LogViewer/LogViewer.follow.test.tsx +29 -0
  46. package/src/builders/LogViewer/LogViewer.test.tsx +24 -0
  47. package/src/builders/LogViewer/LogViewer.tsx +67 -20
  48. package/src/builders/LogViewer/block.meta.ts +2 -1
  49. package/src/builders/LogViewer/examples/Spanish.tsx +2 -1
  50. package/src/data-display/ActivityFeed/ActivityFeed.tsx +1 -1
  51. package/src/data-display/ChartCard/ChartCard.tsx +2 -2
  52. package/src/data-display/ChartCard/examples/ContainerPanel.tsx +16 -0
  53. package/src/data-display/CommentThread/CommentThread.test.tsx +70 -1
  54. package/src/data-display/CommentThread/CommentThread.tsx +22 -6
  55. package/src/data-display/CommentThread/block.meta.ts +1 -1
  56. package/src/data-display/CommentThread/examples/RenderedBody.tsx +20 -0
  57. package/src/data-display/DescriptionListCard/DescriptionListCard.test.tsx +24 -1
  58. package/src/data-display/DescriptionListCard/DescriptionListCard.tsx +14 -20
  59. package/src/data-display/DescriptionListCard/block.meta.ts +2 -1
  60. package/src/data-display/DescriptionListCard/examples/Spanish.tsx +2 -1
  61. package/src/data-display/KpiRow/KpiRow.doc.ts +14 -0
  62. package/src/data-display/KpiRow/KpiRow.test.tsx +11 -0
  63. package/src/data-display/KpiRow/KpiRow.tsx +72 -55
  64. package/src/data-display/KpiRow/examples/ContainerPanel.tsx +47 -0
  65. package/src/data-display/ResourceCardGrid/ResourceCardGrid.doc.ts +19 -0
  66. package/src/data-display/ResourceCardGrid/ResourceCardGrid.test.tsx +13 -0
  67. package/src/data-display/ResourceCardGrid/ResourceCardGrid.tsx +49 -40
  68. package/src/data-display/ResourceCardGrid/examples/ContainerPanel.tsx +18 -0
  69. package/src/data-display/StatusTimeline/StatusTimeline.tsx +1 -1
  70. package/src/feedback/EmptyStates/EmptyStates.test.tsx +42 -0
  71. package/src/feedback/EmptyStates/EmptyStates.tsx +5 -3
  72. package/src/feedback/EmptyStates/block.meta.ts +1 -1
  73. package/src/feedback/EmptyStates/examples/HiddenAction.tsx +13 -0
  74. package/src/feedback/ErrorPanel/ErrorPanel.tsx +13 -15
  75. package/src/forms/CreateApiKeyDialog/CreateApiKeyDialog.lifecycle.test.tsx +123 -0
  76. package/src/forms/CreateApiKeyDialog/CreateApiKeyDialog.tsx +128 -139
  77. package/src/forms/CreateApiKeyDialog/block.meta.ts +12 -1
  78. package/src/forms/FileUploadPanel/FileUploadPanel.controlled.test.tsx +482 -0
  79. package/src/forms/FileUploadPanel/FileUploadPanel.drag.test.tsx +60 -0
  80. package/src/forms/FileUploadPanel/FileUploadPanel.lifecycle.test.tsx +165 -0
  81. package/src/forms/FileUploadPanel/FileUploadPanel.tsx +267 -69
  82. package/src/forms/FileUploadPanel/block.meta.ts +5 -1
  83. package/src/forms/FileUploadPanel/examples/AutoCancel.tsx +38 -0
  84. package/src/forms/FileUploadPanel/examples/Labels.tsx +1 -1
  85. package/src/forms/FileUploadPanel/examples/ManualForm.tsx +36 -0
  86. package/src/forms/FileUploadPanel/fixtures.ts +31 -16
  87. package/src/forms/FileUploadPanel/simulate-upload.test.ts +24 -0
  88. package/src/forms/FormSection/FormSection.test.tsx +11 -0
  89. package/src/forms/FormSection/FormSection.tsx +20 -22
  90. package/src/forms/FormSection/block.meta.ts +1 -1
  91. package/src/forms/FormSection/examples/ContainerPanel.tsx +16 -0
  92. package/src/forms/InviteMembersDialog/InviteMembersDialog.lifecycle.test.tsx +80 -0
  93. package/src/forms/InviteMembersDialog/InviteMembersDialog.tsx +90 -109
  94. package/src/forms/InviteMembersDialog/block.meta.ts +1 -1
  95. package/src/forms/ValidationSummary/ValidationSummary.tsx +1 -4
  96. package/src/hooks/index.ts +2 -0
  97. package/src/hooks/useTableData.integration.test.tsx +89 -0
  98. package/src/hooks/useTableData.test.tsx +613 -0
  99. package/src/hooks/useTableData.ts +377 -0
  100. package/src/index.ts +1 -0
  101. package/src/marketing/ComparisonTable/ComparisonTable.tsx +2 -2
  102. package/src/marketing/FeatureGrid/FeatureGrid.tsx +1 -1
  103. package/src/marketing/LogoCloud/LogoCloud.doc.ts +13 -0
  104. package/src/marketing/LogoCloud/LogoCloud.test.tsx +155 -0
  105. package/src/marketing/LogoCloud/LogoCloud.tsx +89 -0
  106. package/src/marketing/LogoCloud/block.meta.ts +10 -0
  107. package/src/marketing/LogoCloud/examples/CaptionStart.tsx +6 -0
  108. package/src/marketing/LogoCloud/examples/Custom.tsx +25 -0
  109. package/src/marketing/LogoCloud/examples/Empty.tsx +6 -0
  110. package/src/marketing/LogoCloud/examples/Grid.tsx +13 -0
  111. package/src/marketing/LogoCloud/examples/Row.tsx +6 -0
  112. package/src/marketing/LogoCloud/examples/UnderHero.tsx +13 -0
  113. package/src/marketing/LogoCloud/fixtures.ts +23 -0
  114. package/src/marketing/PricingTable/PricingTable.tsx +1 -1
  115. package/src/marketing/SiteFooter/SiteFooter.doc.ts +18 -0
  116. package/src/marketing/SiteFooter/SiteFooter.test.tsx +236 -0
  117. package/src/marketing/SiteFooter/SiteFooter.tsx +160 -0
  118. package/src/marketing/SiteFooter/block.meta.ts +10 -0
  119. package/src/marketing/SiteFooter/examples/Centered.tsx +15 -0
  120. package/src/marketing/SiteFooter/examples/Columns.tsx +15 -0
  121. package/src/marketing/SiteFooter/examples/Custom.tsx +35 -0
  122. package/src/marketing/SiteFooter/examples/Empty.tsx +6 -0
  123. package/src/marketing/SiteFooter/examples/Simple.tsx +14 -0
  124. package/src/marketing/SiteFooter/fixtures.ts +36 -0
  125. package/src/marketing/index.ts +6 -0
  126. package/src/page-chrome/PageHeader/EditableTitle.test.tsx +26 -0
  127. package/src/page-chrome/PageHeader/PageHeader.tsx +4 -4
  128. package/src/page-chrome/PageHeader/block.meta.ts +1 -1
  129. package/src/page-chrome/PageHeader/examples/ContainerPanel.tsx +16 -0
  130. package/src/page-chrome/PageHeader/examples/EditableTitle.tsx +23 -0
  131. package/src/page-chrome/PageToolbar/PageToolbar.test.tsx +3 -1
  132. package/src/page-chrome/PageToolbar/PageToolbar.tsx +2 -2
  133. package/src/page-chrome/StickyActionBar/StickyActionBar.tsx +1 -1
  134. package/src/scheduling/AgendaList/AgendaList.tsx +39 -15
  135. package/src/scheduling/AgendaList/AgendaListZone.test.tsx +38 -0
  136. package/src/scheduling/AgendaList/block.meta.ts +1 -1
  137. package/src/scheduling/AgendaList/examples/TimeZone.tsx +28 -0
  138. package/src/scheduling/MonthCalendar/MonthCalendar.tsx +51 -40
  139. package/src/scheduling/MonthCalendar/MonthCalendarZone.test.tsx +44 -0
  140. package/src/scheduling/MonthCalendar/block.meta.ts +1 -1
  141. package/src/scheduling/MonthCalendar/examples/TimeZone.tsx +28 -0
  142. package/src/scheduling/WeekCalendar/WeekCalendar.tsx +37 -28
  143. package/src/scheduling/WeekCalendar/WeekCalendarZone.test.tsx +41 -0
  144. package/src/scheduling/WeekCalendar/block.meta.ts +1 -1
  145. package/src/scheduling/WeekCalendar/examples/TimeZone.tsx +28 -0
  146. package/src/scheduling/shared/CalendarHeader.tsx +26 -1
  147. package/src/scheduling/shared/dates.ts +102 -58
  148. package/src/scheduling/shared/events.ts +2 -2
  149. package/src/shell/AppSidebar/AppSidebar.context.test.tsx +175 -0
  150. package/src/shell/AppSidebar/AppSidebar.doc.ts +29 -0
  151. package/src/shell/AppSidebar/AppSidebar.tsx +97 -25
  152. package/src/shell/AppSidebar/block.meta.ts +1 -1
  153. package/src/shell/GlobalSearch/GlobalSearch.test.tsx +1 -0
  154. package/src/shell/GlobalSearch/GlobalSearch.tsx +1 -1
  155. package/src/tables/DataTable/DataTable.cursor-example.test.tsx +67 -0
  156. package/src/tables/DataTable/DataTable.export.test.tsx +511 -0
  157. package/src/tables/DataTable/DataTable.inline-edit-focus.test.tsx +32 -0
  158. package/src/tables/DataTable/DataTable.layout.test.tsx +6 -5
  159. package/src/tables/DataTable/DataTable.link-actions.test.tsx +18 -0
  160. package/src/tables/DataTable/DataTable.server-pagination.test.tsx +328 -14
  161. package/src/tables/DataTable/DataTable.test.tsx +85 -1
  162. package/src/tables/DataTable/DataTable.tsx +108 -14
  163. package/src/tables/DataTable/block.meta.ts +11 -1
  164. package/src/tables/DataTable/column-sizing.ts +2 -2
  165. package/src/tables/DataTable/data-table-props.ts +29 -1
  166. package/src/tables/DataTable/data-table-row.tsx +2 -2
  167. package/src/tables/DataTable/data-table-utils.ts +4 -0
  168. package/src/tables/DataTable/editable-cell.tsx +20 -79
  169. package/src/tables/DataTable/examples/csv-export.tsx +74 -0
  170. package/src/tables/DataTable/examples/cursor-load-more.tsx +87 -0
  171. package/src/tables/DataTable/examples/server-pagination.tsx +47 -40
  172. package/src/tables/DataTable/export-menu.tsx +58 -0
  173. package/src/tables/DataTable/header-cell.tsx +1 -1
  174. package/src/tables/DataTable/labels.ts +7 -0
  175. package/src/tables/DataTable/resize-handle.tsx +2 -2
  176. package/src/tables/DataTable/use-table-export.ts +117 -0
  177. package/src/tables/FilterBar/FilterBar.test.tsx +12 -0
  178. package/src/tables/FilterBar/FilterBar.tsx +5 -7
  179. package/src/team/ProfileHeader/ProfileHeader.picker.test.tsx +34 -0
  180. package/src/team/ProfileHeader/ProfileHeader.test.tsx +2 -2
  181. package/src/team/ProfileHeader/ProfileHeader.tsx +17 -24
  182. package/src/team/ProfileHeader/block.meta.ts +1 -1
  183. package/src/test/OptInDefaults.test.tsx +10 -1
  184. package/src/test/clipboard-fallback.test.tsx +49 -0
  185. package/src/test/copy-examples.test.tsx +29 -0
  186. package/src/test/copy-feedback.test.tsx +166 -0
  187. package/src/test/fixtures/opt-in-defaults.json +5 -5
  188. package/src/test/without-forced-colors.test.ts +44 -0
  189. 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.13.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.13.0",
44
44
  "lucide-react": "^1.48.0"
45
45
  },
46
46
  "devDependencies": {
@@ -30,6 +30,16 @@ describe('EvaluationScorecard', () => {
30
30
  ]);
31
31
  });
32
32
 
33
+ it('pressing the active filter keeps it active', async () => {
34
+ const user = userEvent.setup();
35
+ render(<EvaluationScorecard />);
36
+ const regressions = screen.getByRole('button', { name: /Regressions/ });
37
+ await user.click(regressions);
38
+ await user.click(regressions);
39
+ expect(regressions).toHaveAttribute('aria-pressed', 'true');
40
+ expect(bodyRows()).toHaveLength(2);
41
+ });
42
+
33
43
  it('shows an empty row when nothing regressed', async () => {
34
44
  const user = userEvent.setup();
35
45
  render(<EvaluationScorecard rows={[]} />);
@@ -145,8 +145,9 @@ export function EvaluationScorecard({
145
145
  <ToggleGroup
146
146
  aria-label="Show datasets"
147
147
  size="sm"
148
+ disallowEmptySelection
148
149
  value={[filter]}
149
- onValueChange={(v) => v[0] && setFilter(v[0] as 'all' | 'regressions')}
150
+ onValueChange={(v) => setFilter(v[0] as 'all' | 'regressions')}
150
151
  >
151
152
  <Toggle value="all">
152
153
  All <span className="font-mono text-[10.5px] opacity-70">{rows.length}</span>
@@ -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>
@@ -23,6 +23,16 @@ describe('TokenCostCard', () => {
23
23
  expect(screen.getByRole('meter', { name: 'Budget' })).toHaveAttribute('aria-valuetext', '$431.75 of $500.00');
24
24
  });
25
25
 
26
+ it('pressing the active period keeps it active', async () => {
27
+ const user = userEvent.setup();
28
+ render(<TokenCostCard />);
29
+ const d30 = screen.getByRole('button', { name: '30d' });
30
+ await user.click(d30);
31
+ await user.click(d30);
32
+ expect(d30).toHaveAttribute('aria-pressed', 'true');
33
+ expect(screen.getByText('$431.75')).toBeInTheDocument();
34
+ });
35
+
26
36
  it('reports overspend and hides the switch for a single period', () => {
27
37
  render(
28
38
  <TokenCostCard
@@ -68,8 +68,9 @@ export function TokenCostCard({
68
68
  <ToggleGroup
69
69
  aria-label="Period"
70
70
  size="sm"
71
+ disallowEmptySelection
71
72
  value={[period.id]}
72
- onValueChange={(v) => v[0] && setPeriodId(v[0])}
73
+ onValueChange={(v) => setPeriodId(v[0] as string)}
73
74
  >
74
75
  {periods.map((p) => (
75
76
  <Toggle key={p.id} value={p.id}>
@@ -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
+ }