@photonhealth/react 0.0.0-stage → 2.0.0-rc.1
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.
- package/LICENSE +15 -0
- package/README.md +84 -2
- package/dist/adapters/index.d.ts +2 -0
- package/dist/adapters/index.d.ts.map +1 -0
- package/dist/adapters/index.js +2 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/tailwind.d.ts +3 -0
- package/dist/adapters/tailwind.d.ts.map +1 -0
- package/dist/adapters/tailwind.js +123 -0
- package/dist/adapters/tailwind.js.map +1 -0
- package/dist/components/ChangeList.d.ts +21 -0
- package/dist/components/ChangeList.d.ts.map +1 -0
- package/dist/components/ChangeList.js +40 -0
- package/dist/components/ChangeList.js.map +1 -0
- package/dist/components/PhotonOrder.d.ts +46 -0
- package/dist/components/PhotonOrder.d.ts.map +1 -0
- package/dist/components/PhotonOrder.js +270 -0
- package/dist/components/PhotonOrder.js.map +1 -0
- package/dist/components/PhotonPatient.d.ts +48 -0
- package/dist/components/PhotonPatient.d.ts.map +1 -0
- package/dist/components/PhotonPatient.js +83 -0
- package/dist/components/PhotonPatient.js.map +1 -0
- package/dist/components/PhotonPrescription.d.ts +43 -0
- package/dist/components/PhotonPrescription.d.ts.map +1 -0
- package/dist/components/PhotonPrescription.js +364 -0
- package/dist/components/PhotonPrescription.js.map +1 -0
- package/dist/components/ScreeningAlerts.d.ts +6 -0
- package/dist/components/ScreeningAlerts.d.ts.map +1 -0
- package/dist/components/ScreeningAlerts.js +11 -0
- package/dist/components/ScreeningAlerts.js.map +1 -0
- package/dist/components/SignedIn.d.ts +12 -0
- package/dist/components/SignedIn.d.ts.map +1 -0
- package/dist/components/SignedIn.js +84 -0
- package/dist/components/SignedIn.js.map +1 -0
- package/dist/components/TreatmentPicker.d.ts +45 -0
- package/dist/components/TreatmentPicker.d.ts.map +1 -0
- package/dist/components/TreatmentPicker.js +279 -0
- package/dist/components/TreatmentPicker.js.map +1 -0
- package/dist/components/activity.d.ts +7 -0
- package/dist/components/activity.d.ts.map +1 -0
- package/dist/components/activity.js +24 -0
- package/dist/components/activity.js.map +1 -0
- package/dist/components/display.d.ts +90 -0
- package/dist/components/display.d.ts.map +1 -0
- package/dist/components/display.js +223 -0
- package/dist/components/display.js.map +1 -0
- package/dist/components/flow.d.ts +35 -0
- package/dist/components/flow.d.ts.map +1 -0
- package/dist/components/flow.js +53 -0
- package/dist/components/flow.js.map +1 -0
- package/dist/components/format.d.ts +26 -0
- package/dist/components/format.d.ts.map +1 -0
- package/dist/components/format.js +61 -0
- package/dist/components/format.js.map +1 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +6 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/open.d.ts +47 -0
- package/dist/components/open.d.ts.map +1 -0
- package/dist/components/open.js +73 -0
- package/dist/components/open.js.map +1 -0
- package/dist/components/patient/Benefits.d.ts +25 -0
- package/dist/components/patient/Benefits.d.ts.map +1 -0
- package/dist/components/patient/Benefits.js +47 -0
- package/dist/components/patient/Benefits.js.map +1 -0
- package/dist/components/patient/Clinical.d.ts +55 -0
- package/dist/components/patient/Clinical.d.ts.map +1 -0
- package/dist/components/patient/Clinical.js +117 -0
- package/dist/components/patient/Clinical.js.map +1 -0
- package/dist/components/patient/IntakeForm.d.ts +10 -0
- package/dist/components/patient/IntakeForm.d.ts.map +1 -0
- package/dist/components/patient/IntakeForm.js +324 -0
- package/dist/components/patient/IntakeForm.js.map +1 -0
- package/dist/components/patient/Summary.d.ts +48 -0
- package/dist/components/patient/Summary.d.ts.map +1 -0
- package/dist/components/patient/Summary.js +80 -0
- package/dist/components/patient/Summary.js.map +1 -0
- package/dist/components/patient/fields.d.ts +43 -0
- package/dist/components/patient/fields.d.ts.map +1 -0
- package/dist/components/patient/fields.js +71 -0
- package/dist/components/patient/fields.js.map +1 -0
- package/dist/components/patient/query.d.ts +23 -0
- package/dist/components/patient/query.d.ts.map +1 -0
- package/dist/components/patient/query.js +65 -0
- package/dist/components/patient/query.js.map +1 -0
- package/dist/components/search.d.ts +154 -0
- package/dist/components/search.d.ts.map +1 -0
- package/dist/components/search.js +295 -0
- package/dist/components/search.js.map +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +5 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useLatestCallback.d.ts +7 -0
- package/dist/hooks/useLatestCallback.d.ts.map +1 -0
- package/dist/hooks/useLatestCallback.js +14 -0
- package/dist/hooks/useLatestCallback.js.map +1 -0
- package/dist/hooks/useLive.d.ts +15 -0
- package/dist/hooks/useLive.d.ts.map +1 -0
- package/dist/hooks/useLive.js +6 -0
- package/dist/hooks/useLive.js.map +1 -0
- package/dist/hooks/useOnChange.d.ts +11 -0
- package/dist/hooks/useOnChange.d.ts.map +1 -0
- package/dist/hooks/useOnChange.js +28 -0
- package/dist/hooks/useOnChange.js.map +1 -0
- package/dist/hooks/useSession.d.ts +7 -0
- package/dist/hooks/useSession.d.ts.map +1 -0
- package/dist/hooks/useSession.js +10 -0
- package/dist/hooks/useSession.js.map +1 -0
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -0
- package/dist/index.js.map +1 -0
- package/dist/primitives/PhotonProvider.d.ts +58 -0
- package/dist/primitives/PhotonProvider.d.ts.map +1 -0
- package/dist/primitives/PhotonProvider.js +91 -0
- package/dist/primitives/PhotonProvider.js.map +1 -0
- package/dist/primitives/defaults.d.ts +3 -0
- package/dist/primitives/defaults.d.ts.map +1 -0
- package/dist/primitives/defaults.js +67 -0
- package/dist/primitives/defaults.js.map +1 -0
- package/dist/primitives/icons.d.ts +6 -0
- package/dist/primitives/icons.d.ts.map +1 -0
- package/dist/primitives/icons.js +6 -0
- package/dist/primitives/icons.js.map +1 -0
- package/dist/primitives/index.d.ts +5 -0
- package/dist/primitives/index.d.ts.map +1 -0
- package/dist/primitives/index.js +5 -0
- package/dist/primitives/index.js.map +1 -0
- package/dist/primitives/select.d.ts +7 -0
- package/dist/primitives/select.d.ts.map +1 -0
- package/dist/primitives/select.js +16 -0
- package/dist/primitives/select.js.map +1 -0
- package/dist/primitives/types.d.ts +276 -0
- package/dist/primitives/types.d.ts.map +1 -0
- package/dist/primitives/types.js +3 -0
- package/dist/primitives/types.js.map +1 -0
- package/dist/styles.css +611 -0
- package/dist/test-utils/contract.d.ts +17 -0
- package/dist/test-utils/contract.d.ts.map +1 -0
- package/dist/test-utils/contract.js +261 -0
- package/dist/test-utils/contract.js.map +1 -0
- package/package.json +74 -4
- package/src/adapters/index.ts +1 -0
- package/src/adapters/tailwind.tsx +544 -0
- package/src/components/ChangeList.tsx +85 -0
- package/src/components/PhotonOrder.tsx +493 -0
- package/src/components/PhotonPatient.tsx +184 -0
- package/src/components/PhotonPrescription.tsx +605 -0
- package/src/components/ScreeningAlerts.tsx +28 -0
- package/src/components/SignedIn.tsx +144 -0
- package/src/components/TreatmentPicker.tsx +350 -0
- package/src/components/activity.ts +23 -0
- package/src/components/display.ts +278 -0
- package/src/components/flow.ts +67 -0
- package/src/components/format.ts +73 -0
- package/src/components/index.ts +5 -0
- package/src/components/open.ts +100 -0
- package/src/components/patient/Benefits.tsx +125 -0
- package/src/components/patient/Clinical.tsx +210 -0
- package/src/components/patient/IntakeForm.tsx +532 -0
- package/src/components/patient/Summary.tsx +310 -0
- package/src/components/patient/fields.tsx +144 -0
- package/src/components/patient/query.ts +77 -0
- package/src/components/search.tsx +377 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/useLatestCallback.ts +16 -0
- package/src/hooks/useLive.ts +21 -0
- package/src/hooks/useOnChange.ts +34 -0
- package/src/hooks/useSession.ts +11 -0
- package/src/index.ts +19 -0
- package/src/primitives/PhotonProvider.tsx +153 -0
- package/src/primitives/defaults.tsx +409 -0
- package/src/primitives/icons.tsx +37 -0
- package/src/primitives/index.ts +4 -0
- package/src/primitives/select.ts +15 -0
- package/src/primitives/types.ts +276 -0
- package/src/styles.css +611 -0
- package/src/test-utils/contract.tsx +410 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
ButtonHTMLAttributes,
|
|
3
|
+
InputHTMLAttributes,
|
|
4
|
+
KeyboardEvent,
|
|
5
|
+
ReactNode,
|
|
6
|
+
TextareaHTMLAttributes,
|
|
7
|
+
} from "react";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* The building blocks Photon Rx components render with. This is the whole
|
|
11
|
+
* surface a host must supply to make the cards look like *their* app —
|
|
12
|
+
* map each to your own design system (MUI, shadcn, Chakra, Photon, …), or use
|
|
13
|
+
* the unstyled defaults, which inherit the page's fonts and colours.
|
|
14
|
+
*
|
|
15
|
+
* Props are deliberately small and semantic. Don't add a prop here because one
|
|
16
|
+
* design system has it; add it because a Photon Rx component needs it.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
export type Tone = "neutral" | "info" | "success" | "warning" | "critical";
|
|
20
|
+
/** Abstract spacing steps; each implementation maps them to its own scale. */
|
|
21
|
+
export type Gap = "1" | "2" | "3" | "4" | "6";
|
|
22
|
+
|
|
23
|
+
export interface StackProps {
|
|
24
|
+
gap?: Gap;
|
|
25
|
+
align?: "start" | "center" | "end" | "stretch";
|
|
26
|
+
children?: ReactNode;
|
|
27
|
+
}
|
|
28
|
+
export interface RowProps {
|
|
29
|
+
gap?: Gap;
|
|
30
|
+
align?: "start" | "center" | "end";
|
|
31
|
+
justify?: "start" | "between" | "end";
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
}
|
|
34
|
+
export interface GridProps {
|
|
35
|
+
/** Minimum column width, e.g. "140px" — columns auto-fit. */
|
|
36
|
+
min?: string;
|
|
37
|
+
gap?: Gap;
|
|
38
|
+
children?: ReactNode;
|
|
39
|
+
}
|
|
40
|
+
export interface ContainerProps {
|
|
41
|
+
as?: "div" | "main" | "section";
|
|
42
|
+
children?: ReactNode;
|
|
43
|
+
}
|
|
44
|
+
export interface PageHeaderProps {
|
|
45
|
+
title: ReactNode;
|
|
46
|
+
description?: ReactNode;
|
|
47
|
+
}
|
|
48
|
+
export interface TextProps {
|
|
49
|
+
tone?: "default" | "secondary" | "tertiary";
|
|
50
|
+
children?: ReactNode;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface CardProps {
|
|
54
|
+
/** Separate header / body / footer with rules. */
|
|
55
|
+
divided?: boolean;
|
|
56
|
+
children?: ReactNode;
|
|
57
|
+
}
|
|
58
|
+
export interface CardHeaderProps {
|
|
59
|
+
title: ReactNode;
|
|
60
|
+
description?: ReactNode;
|
|
61
|
+
/** Right-aligned control or status. */
|
|
62
|
+
action?: ReactNode;
|
|
63
|
+
}
|
|
64
|
+
/** A card's footer: actions on the right; `start` (e.g. a Spinner with what's happening) on the left. */
|
|
65
|
+
export interface CardFooterProps {
|
|
66
|
+
start?: ReactNode;
|
|
67
|
+
children?: ReactNode;
|
|
68
|
+
}
|
|
69
|
+
/** A small spinner with a visible label saying what's happening ("Searching…", "Saving…"). role="status". */
|
|
70
|
+
export interface SpinnerProps {
|
|
71
|
+
label: string;
|
|
72
|
+
}
|
|
73
|
+
export interface CardSectionProps {
|
|
74
|
+
children?: ReactNode;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Contract for every implementation: `type` defaults to "button" (only an explicit type="submit"
|
|
79
|
+
* submits a form), and `loading` disables the button so actions like Sign & send can't double-fire.
|
|
80
|
+
*/
|
|
81
|
+
/**
|
|
82
|
+
* Variants follow the Photon design system: `primary` is the main action — at most ONE on the page at a
|
|
83
|
+
* time; `secondary` (accent outline) for other actions; `ghost` (the DS "tertiary": accent text) for
|
|
84
|
+
* low-emphasis actions, links and icon buttons.
|
|
85
|
+
*/
|
|
86
|
+
export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
87
|
+
variant?: "primary" | "secondary" | "ghost" | "danger";
|
|
88
|
+
size?: "sm" | "md" | "lg";
|
|
89
|
+
loading?: boolean;
|
|
90
|
+
/** `critical`: a ghost button drawn in the critical colour — e.g. the trash icon that removes a line. */
|
|
91
|
+
tone?: "critical";
|
|
92
|
+
/**
|
|
93
|
+
* An icon before the label ("+ Add another prescription"); with no children it's an icon-only button
|
|
94
|
+
* (give it an aria-label). Each implementation draws the icon at its own scale.
|
|
95
|
+
*/
|
|
96
|
+
icon?: "add" | "close" | "edit" | "trash" | "check";
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
interface FieldProps {
|
|
100
|
+
label?: string;
|
|
101
|
+
helper?: string;
|
|
102
|
+
invalid?: boolean;
|
|
103
|
+
errorMessage?: string;
|
|
104
|
+
}
|
|
105
|
+
export type InputProps = FieldProps &
|
|
106
|
+
InputHTMLAttributes<HTMLInputElement> & {
|
|
107
|
+
/** Work is in flight for this field (e.g. its value is being searched): show a spinner in the field, set aria-busy. */
|
|
108
|
+
loading?: boolean;
|
|
109
|
+
};
|
|
110
|
+
export type TextareaProps = FieldProps & TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
111
|
+
|
|
112
|
+
export interface CheckboxProps {
|
|
113
|
+
label: string;
|
|
114
|
+
checked: boolean;
|
|
115
|
+
onChange: (checked: boolean) => void;
|
|
116
|
+
disabled?: boolean;
|
|
117
|
+
}
|
|
118
|
+
/** One of a list, in a dropdown. Enter on the closed field opens it (as ↓ or a click does). */
|
|
119
|
+
export interface SelectProps<T extends string> {
|
|
120
|
+
label: string;
|
|
121
|
+
options: { value: T; label: string }[];
|
|
122
|
+
value: T | null;
|
|
123
|
+
onChange: (value: T) => void;
|
|
124
|
+
placeholder?: string;
|
|
125
|
+
helper?: string;
|
|
126
|
+
disabled?: boolean;
|
|
127
|
+
/** As on a field: the answer is wrong or missing, and `errorMessage` says so under it. */
|
|
128
|
+
invalid?: boolean;
|
|
129
|
+
errorMessage?: string;
|
|
130
|
+
}
|
|
131
|
+
export interface RadioGroupProps<T extends string> {
|
|
132
|
+
label: string;
|
|
133
|
+
options: { value: T; label: string }[];
|
|
134
|
+
value: T | null;
|
|
135
|
+
onChange: (value: T) => void;
|
|
136
|
+
horizontal?: boolean;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
/** A list of options to pick one from (e.g. the server's drug matches). Labels can be long — they wrap. */
|
|
140
|
+
export interface ChoiceListProps {
|
|
141
|
+
/** Names the list for assistive tech. */
|
|
142
|
+
label: string;
|
|
143
|
+
/** `meta`: short secondary text on the label's line (e.g. a date of birth); `description` goes below it. */
|
|
144
|
+
choices: { key: string; label: string; meta?: string; description?: string }[];
|
|
145
|
+
onChoose: (key: string) => void;
|
|
146
|
+
disabled?: boolean;
|
|
147
|
+
/** The choice just picked, while its call runs: drawn selected (the accent, as keyboard focus is) and aria-busy. */
|
|
148
|
+
pendingKey?: string | null;
|
|
149
|
+
/**
|
|
150
|
+
* A way out of the list, after the choices — "Add new patient" under the patients who matched. The same
|
|
151
|
+
* row and width as a choice so the keys run straight through it, but no border until it has focus: it
|
|
152
|
+
* isn't one of them, and it shouldn't look like one until it's where you are.
|
|
153
|
+
*/
|
|
154
|
+
action?: { label: string; icon?: "add"; onChoose: () => void };
|
|
155
|
+
/**
|
|
156
|
+
* Set (even to null) when the list belongs to a field that keeps the cursor — a search box with
|
|
157
|
+
* suggestions under it. The list is then a `listbox` of `option`s that never take focus, and this is the
|
|
158
|
+
* one drawn as where the keys are; the field moves it and says so with `aria-activedescendant`. Left
|
|
159
|
+
* undefined, the choices are buttons the keys move between, which is every other list.
|
|
160
|
+
*/
|
|
161
|
+
activeKey?: string | null;
|
|
162
|
+
/** With `activeKey`: each option's DOM id is `<id>-<key>`, so the field can point at the active one. */
|
|
163
|
+
id?: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/** The key `activeKey` takes when the keys are on the `action` row rather than one of the choices. */
|
|
167
|
+
export const CHOICE_ACTION = "__action";
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* Options to pick from, one open at a time (e.g. the drugs matching what was typed). `label` names the
|
|
171
|
+
* list for assistive tech — not shown: the field that searched says what it's for. The `activeKey` row is open — not a button — and shows `children` (its details);
|
|
172
|
+
* closed rows are buttons with a chevron. A `direct` row has no details: it's the choice itself, so it's a
|
|
173
|
+
* button with no chevron, open or not (open, it's drawn as the active row). A `loading` row (its choice is being
|
|
174
|
+
* saved) shows a spinner top right, where the chevron goes — on an open row too — and is aria-busy. `activeSelected` marks the open
|
|
175
|
+
* row as the one the keys act on (accent outline); open but not selected reads as a plain row. The list
|
|
176
|
+
* itself is a tab stop with no focus ring of its own (the selected row shows focus) and passes key presses
|
|
177
|
+
* to `onKeyDown`, so its shortcuts work once it has focus.
|
|
178
|
+
*/
|
|
179
|
+
export interface OptionListProps {
|
|
180
|
+
label: string;
|
|
181
|
+
options: {
|
|
182
|
+
key: string;
|
|
183
|
+
label: string;
|
|
184
|
+
description?: string;
|
|
185
|
+
ariaLabel?: string;
|
|
186
|
+
direct?: boolean;
|
|
187
|
+
loading?: boolean;
|
|
188
|
+
}[];
|
|
189
|
+
activeKey: string | null;
|
|
190
|
+
activeSelected?: boolean;
|
|
191
|
+
onSelect: (key: string) => void;
|
|
192
|
+
onKeyDown?: (event: KeyboardEvent<HTMLElement>) => void;
|
|
193
|
+
disabled?: boolean;
|
|
194
|
+
children?: ReactNode;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* The view's primary action (e.g. Send), right-aligned under the content, in normal flow. Never fixed or
|
|
199
|
+
* pinned here: placing it on a page (a sticky bottom bar on a phone, a dialog's footer) is the host app's
|
|
200
|
+
* call, made in its own adapter.
|
|
201
|
+
*/
|
|
202
|
+
export interface ActionBarProps {
|
|
203
|
+
children?: ReactNode;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* A row of chips with one selected (e.g. a drug's forms, or its strengths). Each chip is a button with
|
|
208
|
+
* aria-pressed; `label` is shown above the chips and names the group. `detail` is secondary text inside
|
|
209
|
+
* a chip ("1 mg/mL"). A `muted` chip is drawn greyed — it doesn't go with what's picked elsewhere — but is still
|
|
210
|
+
* pickable (not disabled).
|
|
211
|
+
* Every chip in a group is the same width (a partial last row too), sized for thumbs in a narrow container.
|
|
212
|
+
*/
|
|
213
|
+
export interface ToggleGroupProps {
|
|
214
|
+
label: string;
|
|
215
|
+
options: { value: string; label: string; detail?: string; ariaLabel?: string; muted?: boolean }[];
|
|
216
|
+
value: string | null;
|
|
217
|
+
onChange: (value: string) => void;
|
|
218
|
+
disabled?: boolean;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export interface AlertProps {
|
|
222
|
+
tone?: Tone;
|
|
223
|
+
title: ReactNode;
|
|
224
|
+
description?: ReactNode;
|
|
225
|
+
onDismiss?: () => void;
|
|
226
|
+
}
|
|
227
|
+
export interface BadgeProps {
|
|
228
|
+
tone?: Tone;
|
|
229
|
+
children: ReactNode;
|
|
230
|
+
/** A small icon before the label, e.g. a check on "Signed". */
|
|
231
|
+
icon?: "check";
|
|
232
|
+
/** Makes the chip removable: renders a remove control labelled `removeLabel`. */
|
|
233
|
+
onRemove?: () => void;
|
|
234
|
+
/** Accessible name for the remove control, e.g. "Remove Penicillin". */
|
|
235
|
+
removeLabel?: string;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* A chevron row that shows or hides a section (e.g. the patient's clinical lists). The whole
|
|
240
|
+
* `summary` is the toggle; it carries aria-expanded, and `children` render only while open.
|
|
241
|
+
*/
|
|
242
|
+
export interface DisclosureProps {
|
|
243
|
+
summary: ReactNode;
|
|
244
|
+
open: boolean;
|
|
245
|
+
onOpenChange: (open: boolean) => void;
|
|
246
|
+
children?: ReactNode;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
type C<P> = (props: P) => ReactNode;
|
|
250
|
+
|
|
251
|
+
export interface PhotonComponents {
|
|
252
|
+
Stack: C<StackProps>;
|
|
253
|
+
Row: C<RowProps>;
|
|
254
|
+
Grid: C<GridProps>;
|
|
255
|
+
Container: C<ContainerProps>;
|
|
256
|
+
PageHeader: C<PageHeaderProps>;
|
|
257
|
+
Text: C<TextProps>;
|
|
258
|
+
Card: C<CardProps>;
|
|
259
|
+
CardHeader: C<CardHeaderProps>;
|
|
260
|
+
CardBody: C<CardSectionProps>;
|
|
261
|
+
CardFooter: C<CardFooterProps>;
|
|
262
|
+
Button: C<ButtonProps>;
|
|
263
|
+
Input: C<InputProps>;
|
|
264
|
+
Textarea: C<TextareaProps>;
|
|
265
|
+
Checkbox: C<CheckboxProps>;
|
|
266
|
+
Select: <T extends string>(props: SelectProps<T>) => ReactNode;
|
|
267
|
+
RadioGroup: <T extends string>(props: RadioGroupProps<T>) => ReactNode;
|
|
268
|
+
ChoiceList: C<ChoiceListProps>;
|
|
269
|
+
OptionList: C<OptionListProps>;
|
|
270
|
+
ActionBar: C<ActionBarProps>;
|
|
271
|
+
ToggleGroup: C<ToggleGroupProps>;
|
|
272
|
+
Alert: C<AlertProps>;
|
|
273
|
+
Badge: C<BadgeProps>;
|
|
274
|
+
Disclosure: C<DisclosureProps>;
|
|
275
|
+
Spinner: C<SpinnerProps>;
|
|
276
|
+
}
|