TidalUI

Import wizard preview

Prepare a file mapping, review parsed rows, and emit an import plan without executing an import.

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add @tidal-pro/import-wizard

Import components/ui/tidal.css, components/ui/import-wizard.css. Wrap installed components in tidal-scope.

Preview

Import wizard component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/import-wizard.css";
import{TidalImportWizard}from"./components/ui/import-wizard";
export default(p:Parameters<typeof TidalImportWizard>[0])=><div className="tidal-scope"><TidalImportWizard {...p}/></div>;

API and props

TidalImportWizard.fields (required)
ReadonlyArray<TidalColumnField>

Required fields value accepted by this exported component.

TidalImportWizard.fileAdapter (required)
ReactNode

Required file adapter value accepted by this exported component.

TidalImportWizard.mapping (required)
Readonly<Record<string, string | undefined>>

Required mapping value accepted by this exported component.

TidalImportWizard.onMappingChange (required)
(next: Record<string, string | undefined>, fieldId: string, event: React.ChangeEvent<HTMLSelectElement>) => void

Callback invoked when the mapping change interaction is proposed.

TidalImportWizard.onStepChange (required)
(next: TidalImportStep, event: React.MouseEvent<HTMLButtonElement>) => void

Callback invoked when the step change interaction is proposed.

TidalImportWizard.preview (required)
TidalImportPreview

Required preview value accepted by this exported component.

TidalImportWizard.sources (required)
ReadonlyArray<TidalColumnSource>

Required sources value accepted by this exported component.

TidalImportWizard.step (required)
TidalImportStep

Required step value accepted by this exported component.

TidalImportWizard.title (required)
ReactNode

Required title value accepted by this exported component.

TidalImportWizard.cancelButtonProps
NativeButtonProps | undefined

Optional cancel button props value accepted by this exported component.

TidalImportWizard.cancelButtonRef
Ref<HTMLButtonElement> | undefined

Optional cancel button ref value accepted by this exported component.

TidalImportWizard.cancelStep
TidalImportStep | undefined

Optional cancel step value accepted by this exported component.

TidalImportWizard.canContinue
boolean | undefined

Optional can continue value accepted by this exported component.

TidalImportWizard.description
ReactNode

Optional description value accepted by this exported component.

TidalImportWizard.downloadButtonProps
NativeButtonProps | undefined

Optional download button props value accepted by this exported component.

TidalImportWizard.downloadButtonRef
Ref<HTMLButtonElement> | undefined

Optional download button ref value accepted by this exported component.

TidalImportWizard.file
TidalImportFileSummary | undefined

Optional file value accepted by this exported component.

TidalImportWizard.fileError
ReactNode

Optional file error value accepted by this exported component.

TidalImportWizard.formProps
(Omit<Omit<DetailedHTMLProps<FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>, "ref">, "aria-disabled" | "children" | "dangerouslySetInnerHTML" | "onSubmit"> & { onSubmit?: (event: FormEvent<HTMLFormElement>) => void; }) | undefined

Optional form props value accepted by this exported component.

TidalImportWizard.formRef
Ref<HTMLFormElement> | undefined

Optional form ref value accepted by this exported component.

TidalImportWizard.headingLevel
2 | 3 | 4 | 5 | 6 | undefined

Optional heading level value accepted by this exported component.

TidalImportWizard.labels
Partial<{ file: string; mapping: string; review: string; progress: string; result: string; previous: string; next: string; prepare: string; cancel: string; downloadErrors: string; rowIssue: string; noColumns: string; validFileRequired: string; selectedFile: string; noFile: string; }> | undefined

Optional labels value accepted by this exported component.

TidalImportWizard.mappingErrors
Readonly<Record<string, ReactNode>> | undefined

Optional mapping errors value accepted by this exported component.

TidalImportWizard.nextButtonProps
NativeButtonProps | undefined

Optional next button props value accepted by this exported component.

TidalImportWizard.nextButtonRef
Ref<HTMLButtonElement> | undefined

Optional next button ref value accepted by this exported component.

TidalImportWizard.onCancelProgress
((event: React.MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the cancel progress interaction is proposed.

TidalImportWizard.onDownloadErrorRows
((event: React.MouseEvent<HTMLButtonElement>) => void) | undefined

Callback invoked when the download error rows interaction is proposed.

TidalImportWizard.onImportPlan
((plan: TidalImportPlan, event: FormEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the import plan interaction is proposed.

TidalImportWizard.persistentFields
ReadonlyArray<{ name: string; value: string; }> | undefined

Optional persistent fields value accepted by this exported component.

TidalImportWizard.planStep
TidalImportStep | undefined

Optional plan step value accepted by this exported component.

TidalImportWizard.previousButtonProps
NativeButtonProps | undefined

Optional previous button props value accepted by this exported component.

TidalImportWizard.previousButtonRef
Ref<HTMLButtonElement> | undefined

Optional previous button ref value accepted by this exported component.

TidalImportWizard.progress
TidalImportProgress | undefined

Optional progress value accepted by this exported component.

TidalImportWizard.result
ReactNode

Optional result value accepted by this exported component.

TidalImportWizard.submitButtonProps
NativeButtonProps | undefined

Optional submit button props value accepted by this exported component.

TidalImportWizard.submitButtonRef
Ref<HTMLButtonElement> | undefined

Optional submit button ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas