index.ts 698 Bytes
// Widget registry for the @rjsf form renderer.
// Maps widget identifiers used in uiSchema to their React components.

import type { RegistryWidgetsType } from '@rjsf/utils'
import { PartnerPicker } from './PartnerPicker'
import { ItemPicker } from './ItemPicker'
import { UomSelector } from './UomSelector'
import { LocationPicker } from './LocationPicker'
import { MoneyInput } from './MoneyInput'
import { QuantityInput } from './QuantityInput'

export const vibeWidgets: RegistryWidgetsType = {
  'partner-picker': PartnerPicker,
  'item-picker': ItemPicker,
  'uom-selector': UomSelector,
  'location-picker': LocationPicker,
  'money-input': MoneyInput,
  'quantity-input': QuantityInput,
}