Skip to main content

@svatah/yam-ui

The Yam design system: React components on Radix primitives, every one of them named and id'd (REQ-ADE-12)

  • Source: packages/ui · README: packages/ui/README.md
  • Not published: built and used inside this repository, and no release puts it on a registry.
  • Version 0.1.0 · Apache-2.0 · not published

Exports

ExportKindSignature
Alertfunctionexport function Alert(props: AlertProps): React.JSX.ElementThe alert the mockups draw for a failed load or a missing runtime.
AlertPropsinterfaceexport interface AlertProps
AskOverlayfunctionexport function AskOverlay(props:An action asking for the one thing it declared it needs (TV-06).
AUTOMATION_ID_FORMvariableAUTOMATION_ID_FORM = ID_FORMThe id form, exported so the app and the TUI can check their own ids.
Buttonfunctionexport function Button(props: ButtonProps): React.JSX.ElementA button.
ButtonPropsinterfaceexport interface ButtonProps extends Named
Checkboxfunctionexport function Checkbox(props: CheckboxProps): React.JSX.ElementA labelled checkbox.
Chipfunctionexport function Chip(A neutral chip: a fact, not a status. "page: all", "step 5 only".
Chooserfunctionexport function Chooser(props: SelectProps): React.JSX.ElementA chooser, on Radix's Select.
Columninterfaceexport interface Column<Row>
CommandPalettefunctionexport function CommandPalette(props: PaletteProps): React.JSX.Element
ComponentSheetfunctionexport function ComponentSheet(): React.JSX.ElementThe whole sheet: every component, both themes, on one page.
Fieldfunctionexport function Field(props: FieldProps): React.JSX.ElementA labelled text field.
FieldPropsinterfaceexport interface FieldProps extends Named
InspectorSectionfunctionexport function InspectorSection(One section of the right inspector: a heading and its rows.
Kbdfunctionexport function Kbd(A key, drawn the way the mockups draw one. Decorative by default.
KeyValuesfunctionexport function KeyValues(The inspector's key–value grid: Compiles at, Target, Binding.
Logfunctionexport function Log(props:A tail that follows, and says when it has stopped following.
LogLineinterfaceexport interface LogLine
ModeStripfunctionexport function ModeStrip<Mode extends string>(props:The mode strip (REQ-ADE-14).
Namedinterfaceexport interface NamedEverything interactive takes these two, and neither is optional.
NAMED_COMPONENTSvariableNAMED_COMPONENTS = [Every component that takes a label and an id, by name.
PalettePropsinterfaceexport interface PaletteProps
PaletteRowinterfaceexport interface PaletteRowOne row of the palette, as the app and yam ui both build it.
PickerOverlayfunctionexport function PickerOverlay(props:"Point at it in the application", as a state rather than a mode of the app.
Pillfunctionexport function Pill(props: PillProps): React.JSX.ElementA status pill: a word, in a colour, with the colour's glyph if asked.
PillPropsinterfaceexport interface PillProps
PORTAL_HOST_IDvariablePORTAL_HOST_ID = "sv-portal-host"The id of the element every overlay in the app is portalled into.
portalHostfunctionexport function portalHost(): HTMLElement | undefined
RailItemfunctionexport function RailItem(props: RailItemProps): React.JSX.ElementOne row of the left rail.
RailItemPropsinterfaceexport interface RailItemProps extends Named
requireNamedfunctionexport function requireNamed(component: string, named: Partial<Named>): stringThrow, in development, when a control has no name or no id.
SelectOptioninterfaceexport interface SelectOption
SelectPropsinterfaceexport interface SelectProps extends Named
Splitfunctionexport function Split(props:Two panes and a handle between them.
Tablefunctionexport function Table<Row>(props: TableProps<Row>): React.JSX.ElementA table with a caption that is its accessible name.
TablePropsinterfaceexport interface TableProps<Row> extends Named
TabsPropsinterfaceexport interface TabsProps extends Named
TabStripfunctionexport function TabStrip(props: TabsProps): React.JSX.ElementA tab strip, on Radix's Tabs: roving focus, arrow keys, the right roles.
Toastfunctionexport function Toast(props:What just happened, over the frame rather than pushing it (TV-A03).
Treefunctionexport function Tree(props: TreeProps): React.JSX.ElementA semantic tree, which is what a snapshot is.
TreeNodeinterfaceexport interface TreeNode
TreePropsinterfaceexport interface TreeProps
UnnamedControlErrorclassexport class UnnamedControlError extends Error