File size: 5,369 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
import { AccordionAnatomy } from "./accordion"
import { ActionBarAnatomy } from "./action-bar"
import { AlertAnatomy } from "./alert"
import { AspectRatioAnatomy } from "./aspect-ratio"
import { AvatarAnatomy } from "./avatar"
import { BadgeAnatomy } from "./badge"
import { BlockquoteAnatomy } from "./blockquote"
import { BoxAnatomy } from "./box"
import { BreadcrumbAnatomy } from "./breadcrumb"
import { ButtonAnatomy } from "./button"
import { CardAnatomy } from "./card"
import { CenterAnatomy } from "./center"
import { CheckboxAnatomy } from "./checkbox"
import { CheckboxCardAnatomy } from "./checkbox-card"
import { ClipboardAnatomy } from "./clipboard"
import { CloseButtonAnatomy } from "./close-button"
import { CodeAnatomy } from "./code"
import { DataListAnatomy } from "./data-list"
import { DialogAnatomy } from "./dialog"
import { DrawerAnatomy } from "./drawer"
import { EditableAnatomy } from "./editable"
import { EmptyStateAnatomy } from "./empty-state"
import { FileUploadAnatomy } from "./file-upload"
import { FlexAnatomy } from "./flex"
import { FloatAnatomy } from "./float"
import { ForAnatomy } from "./for"
import { FormatByteAnatomy } from "./format-byte"
import { FormatNumberAnatomy } from "./format-number"
import { GridAnatomy } from "./grid"
import { HeadingAnatomy } from "./heading"
import { HighlightAnatomy } from "./highlight"
import { IconAnatomy } from "./icon"
import { ImageAnatomy } from "./image"
import { InputAnatomy } from "./input"
import { KbdAnatomy } from "./kbd"
import { LinkAnatomy } from "./link"
import { ListAnatomy } from "./list"
import { LocaleProviderAnatomy } from "./locale-provider"
import { MenuAnatomy } from "./menu"
import { NumberInputAnatomy } from "./number-input"
import { PaginationAnatomy } from "./pagination"
import { PasswordInputAnatomy } from "./password-input"
import { PinInputAnatomy } from "./pin-input"
import { PopoverAnatomy } from "./popover"
import { PortalAnatomy } from "./portal"
import { ProgressAnatomy } from "./progress"
import { ProgressCircleAnatomy } from "./progress-circle"
import { ProseAnatomy } from "./prose"
import { RadioAnatomy } from "./radio"
import { RadioCardAnatomy } from "./radio-card"
import { RatingAnatomy } from "./rating"
import { SegmentedControlAnatomy } from "./segmented-control"
import { SelectAnatomy } from "./select"
import { SeparatorAnatomy } from "./separator"
import { ShowAnatomy } from "./show"
import { SkeletonAnatomy } from "./skeleton"
import { SliderAnatomy } from "./slider"
import { SpinnerAnatomy } from "./spinner"
import { StackAnatomy } from "./stack"
import { StatAnatomy } from "./stat"
import { StatusAnatomy } from "./status"
import { StepsAnatomy } from "./steps"
import { SwitchAnatomy } from "./switch"
import { TableAnatomy } from "./table"
import { TabsAnatomy } from "./tabs"
import { TagAnatomy } from "./tag"
import { TextAnatomy } from "./text"
import { TextareaAnatomy } from "./textarea"
import { TimelineAnatomy } from "./timeline"
import { ToastAnatomy } from "./toast"
import { TooltipAnatomy } from "./tooltip"
import { VisuallyHiddenAnatomy } from "./visually-hidden"

export const allComponents = {
  blockquote: BlockquoteAnatomy,
  "empty-state": EmptyStateAnatomy,
  portal: PortalAnatomy,
  "checkbox-card": CheckboxCardAnatomy,
  "action-bar": ActionBarAnatomy,
  box: BoxAnatomy,
  "data-list": DataListAnatomy,
  select: SelectAnatomy,
  menu: MenuAnatomy,
  editable: EditableAnatomy,
  pagination: PaginationAnatomy,
  tag: TagAnatomy,
  table: TableAnatomy,
  code: CodeAnatomy,
  skeleton: SkeletonAnatomy,
  card: CardAnatomy,
  textarea: TextareaAnatomy,
  "file-upload": FileUploadAnatomy,
  clipboard: ClipboardAnatomy,
  list: ListAnatomy,
  separator: SeparatorAnatomy,
  stack: StackAnatomy,
  "segmented-control": SegmentedControlAnatomy,
  timeline: TimelineAnatomy,
  rating: RatingAnatomy,
  prose: ProseAnatomy,
  heading: HeadingAnatomy,
  text: TextAnatomy,
  link: LinkAnatomy,
  center: CenterAnatomy,
  "close-button": CloseButtonAnatomy,
  show: ShowAnatomy,
  icon: IconAnatomy,
  image: ImageAnatomy,
  for: ForAnatomy,
  kbd: KbdAnatomy,
  drawer: DrawerAnatomy,
  dialog: DialogAnatomy,
  flex: FlexAnatomy,
  grid: GridAnatomy,
  "locale-provider": LocaleProviderAnatomy,
  highlight: HighlightAnatomy,
  "format-number": FormatNumberAnatomy,
  "format-byte": FormatByteAnatomy,
  stat: StatAnatomy,
  status: StatusAnatomy,
  steps: StepsAnatomy,
  breadcrumb: BreadcrumbAnatomy,
  accordion: AccordionAnatomy,
  "visually-hidden": VisuallyHiddenAnatomy,
  tabs: TabsAnatomy,
  toast: ToastAnatomy,
  spinner: SpinnerAnatomy,
  "password-input": PasswordInputAnatomy,
  popover: PopoverAnatomy,
  tooltip: TooltipAnatomy,
  slider: SliderAnatomy,
  float: FloatAnatomy,
  radio: RadioAnatomy,
  "radio-card": RadioCardAnatomy,
  progress: ProgressAnatomy,
  "progress-circle": ProgressCircleAnatomy,
  "aspect-ratio": AspectRatioAnatomy,
  alert: AlertAnatomy,
  avatar: AvatarAnatomy,
  badge: BadgeAnatomy,
  "number-input": NumberInputAnatomy,
  input: InputAnatomy,
  "pin-input": PinInputAnatomy,
  switch: SwitchAnatomy,
  checkbox: CheckboxAnatomy,
  button: ButtonAnatomy,
}

export type ComponentAnatomyName = keyof typeof allComponents

export function getComponent(name: ComponentAnatomyName | (string & {})) {
  return Reflect.get(allComponents, name)
}