@20baht/ui 0.1.2 → 0.3.0

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/dist/react.d.ts CHANGED
@@ -1,555 +1,364 @@
1
1
  import { default as React } from 'react';
2
- import { FeatureFlags, FieldDescriptor, FieldOption, FormDefinition, NestedData, Registry, WorkflowDefinition, ReferencePage, ReferenceQuery, SavedFilter } from '@20baht/engine';
3
- import { AccordionItem, TreeNode, CalendarEvent, CalendarMark, CalendarView, AvatarSize, BadgeTone, ButtonSize, ButtonVariant, MenuItem, PopoverPlacement, TabItem, CellRenderer, ColumnMap, RowMenu, TableVariant, ChartDatePoint, ChartFormat, ChartGroup, ChartMarker, ChartSeries, CodeVariant, Crumb, FilterVariant, ListItem, MeterKind, MeterThresholds, FactItem, ChoiceOption, ModalPlacement, ModalSize, CardAccent, ProgressRingTone, FieldReferenceLookup, ReferenceOption, SwipeAction, TimelineItem, CommentEntry, EditColumn, EditRow, NotificationItem } from './components/primitives/index.js';
4
- import { BahtFormOptions } from './components/baht-form.js';
5
- import { ShellNavItem } from './components/primitives/baht-app-shell.js';
6
- import { ChainStep } from './components/primitives/baht-approval-chain.js';
7
- import { FilterField, FilterValue } from './components/primitives/baht-filter-builder.js';
8
- import { WizardStep } from './components/primitives/baht-wizard.js';
9
- interface BackLabelAttr {
10
- 'back-label'?: string;
11
- }
12
- interface BackLinkAttrs extends BackLabelAttr {
13
- 'back-href'?: string;
14
- }
2
+ import { BahtAccordion } from './components/primitives/baht-accordion.js';
3
+ import { BahtAlert } from './components/primitives/baht-alert.js';
4
+ import { BahtAppShell } from './components/primitives/baht-app-shell.js';
5
+ import { BahtApprovalChain } from './components/primitives/baht-approval-chain.js';
6
+ import { BahtAvatar } from './components/primitives/baht-avatar.js';
7
+ import { BahtBadge } from './components/primitives/baht-badge.js';
8
+ import { BahtBarChart } from './components/primitives/baht-bar-chart.js';
9
+ import { BahtBreadcrumbs } from './components/primitives/baht-breadcrumbs.js';
10
+ import { BahtButton } from './components/primitives/baht-button.js';
11
+ import { BahtCalendar } from './components/primitives/baht-calendar.js';
12
+ import { BahtCard } from './components/primitives/baht-card.js';
13
+ import { BahtCatalogCard } from './components/primitives/baht-catalog-card.js';
14
+ import { BahtCheckbox } from './components/primitives/baht-checkbox.js';
15
+ import { BahtChoiceGroup } from './components/primitives/baht-choice-group.js';
16
+ import { BahtCode } from './components/primitives/baht-code.js';
17
+ import { BahtColumnPicker } from './components/primitives/baht-column-picker.js';
18
+ import { BahtComments } from './components/primitives/baht-comments.js';
19
+ import { BahtCurrency } from './components/primitives/baht-currency.js';
20
+ import { BahtDatepicker } from './components/primitives/baht-datepicker.js';
21
+ import { BahtDonutChart } from './components/primitives/baht-donut-chart.js';
22
+ import { BahtEditTable } from './components/primitives/baht-edit-table.js';
23
+ import { BahtEmptyState } from './components/primitives/baht-empty-state.js';
24
+ import { BahtErrorState } from './components/primitives/baht-error-state.js';
25
+ import { BahtFacts } from './components/primitives/baht-facts.js';
26
+ import { BahtFieldset } from './components/primitives/baht-fieldset.js';
27
+ import { BahtFile } from './components/primitives/baht-file.js';
28
+ import { BahtFilter } from './components/primitives/baht-filter.js';
29
+ import { BahtFilterBuilder } from './components/primitives/baht-filter-builder.js';
30
+ import { BahtForm } from './components/baht-form.js';
31
+ import { BahtHeatmap } from './components/primitives/baht-heatmap.js';
32
+ import { BahtInput } from './components/primitives/baht-input.js';
33
+ import { BahtKeyvalueEditor } from './components/primitives/baht-keyvalue-editor.js';
34
+ import { BahtLineChart } from './components/primitives/baht-line-chart.js';
35
+ import { BahtLink } from './components/primitives/baht-link.js';
36
+ import { BahtList } from './components/primitives/baht-list.js';
37
+ import { BahtLoadingOverlay } from './components/primitives/baht-loading-overlay.js';
38
+ import { BahtMarkdown } from './components/primitives/baht-markdown.js';
39
+ import { BahtMarkdownView } from './components/primitives/baht-markdown-view.js';
40
+ import { BahtMenu } from './components/primitives/baht-menu.js';
41
+ import { BahtMeter } from './components/primitives/baht-meter.js';
42
+ import { BahtModal } from './components/primitives/baht-modal.js';
43
+ import { BahtMultiselect } from './components/primitives/baht-multiselect.js';
44
+ import { BahtNotificationBell } from './components/primitives/baht-notification-bell.js';
45
+ import { BahtNumber } from './components/primitives/baht-number.js';
46
+ import { BahtOrderBox } from './components/primitives/baht-order-box.js';
47
+ import { BahtOtp } from './components/primitives/baht-otp.js';
48
+ import { BahtPageHeader } from './components/primitives/baht-page-header.js';
49
+ import { BahtPagination } from './components/primitives/baht-pagination.js';
50
+ import { BahtPopover } from './components/primitives/baht-popover.js';
51
+ import { BahtProgress } from './components/primitives/baht-progress.js';
52
+ import { BahtProgressRing } from './components/primitives/baht-progress-ring.js';
53
+ import { BahtRadio } from './components/primitives/baht-radio.js';
54
+ import { BahtRange } from './components/primitives/baht-range.js';
55
+ import { BahtRating } from './components/primitives/baht-rating.js';
56
+ import { BahtRecordBar } from './components/primitives/baht-record-bar.js';
57
+ import { BahtReferenceDialog } from './components/primitives/baht-reference-dialog.js';
58
+ import { BahtReferencePicker } from './components/primitives/baht-reference-picker.js';
59
+ import { BahtRepeater } from './components/primitives/baht-repeater.js';
60
+ import { BahtRuleBuilder } from './components/primitives/baht-rule-builder.js';
61
+ import { BahtSavedFilters } from './components/primitives/baht-saved-filters.js';
62
+ import { BahtSearch } from './components/primitives/baht-search.js';
63
+ import { BahtSection } from './components/primitives/baht-section.js';
64
+ import { BahtSectionHeader } from './components/primitives/baht-section-header.js';
65
+ import { BahtSelect } from './components/primitives/baht-select.js';
66
+ import { BahtSkeleton } from './components/primitives/baht-skeleton.js';
67
+ import { BahtSparkline } from './components/primitives/baht-sparkline.js';
68
+ import { BahtSpinner } from './components/primitives/baht-spinner.js';
69
+ import { BahtSplitButton } from './components/primitives/baht-split-button.js';
70
+ import { BahtStat } from './components/primitives/baht-stat.js';
71
+ import { BahtStatChart } from './components/primitives/baht-stat-chart.js';
72
+ import { BahtSteps } from './components/primitives/baht-steps.js';
73
+ import { BahtSwipeRow } from './components/primitives/baht-swipe-row.js';
74
+ import { BahtTable } from './components/primitives/baht-table.js';
75
+ import { BahtTabs } from './components/primitives/baht-tabs.js';
76
+ import { BahtTags } from './components/primitives/baht-tags.js';
77
+ import { BahtText } from './components/primitives/baht-text.js';
78
+ import { BahtTextarea } from './components/primitives/baht-textarea.js';
79
+ import { BahtThemeToggle } from './components/primitives/baht-theme-toggle.js';
80
+ import { BahtTimeline } from './components/primitives/baht-timeline.js';
81
+ import { BahtToast } from './components/primitives/baht-toast.js';
82
+ import { BahtToggle } from './components/primitives/baht-toggle.js';
83
+ import { BahtTooltip } from './components/primitives/baht-tooltip.js';
84
+ import { BahtTree } from './components/primitives/baht-tree.js';
85
+ import { BahtTypeahead } from './components/primitives/baht-typeahead.js';
86
+ import { BahtUpload } from './components/primitives/baht-upload.js';
87
+ import { BahtWizard } from './components/primitives/baht-wizard.js';
88
+ import { BahtWorkflow } from './components/baht-workflow.js';
89
+ /** The props named, each optional and typed as the element's own property. */
90
+ type Props<E, K extends keyof E> = {
91
+ [P in K]?: E[P];
92
+ };
15
93
  /**
16
- * Base attributes shared by every custom element (style, event handlers, …).
17
- * `class` is included alongside React's `className` — web-component users often
18
- * reach for the plain HTML attribute, and both work on custom elements.
94
+ * An element's JSX props: its own first, then every HTML attribute and event handler it does not
95
+ * redefine. `class` is included alongside React's `className`: web-component users often reach
96
+ * for the plain HTML attribute, and both work on custom elements. `ref` is typed
97
+ * `HTMLElement`, so a ref of the element class and a ref of an app's own narrower type both fit.
19
98
  */
20
- type WC<Props = object> = React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement> & {
99
+ type WC<P> = P & Omit<React.HTMLAttributes<HTMLElement>, keyof P> & React.ClassAttributes<HTMLElement> & {
21
100
  class?: string;
22
- } & Props, HTMLElement>;
23
- /** `empty-message`: what an element shows with nothing to list. */
24
- type EmptyMessage = Pick<ChartCommon, 'empty-message'>;
25
- /** Shared props of every chart element (all extend BahtChartBase). */
26
- interface ChartCommon {
27
- 'empty-message'?: string;
28
- loading?: boolean;
29
- 'show-table'?: boolean;
30
- format?: ChartFormat;
31
- currency?: string;
32
- }
33
- /** Shared props of the form-field primitives (all extend BahtFieldBase). */
34
- interface FieldProps {
35
- field?: FieldDescriptor;
36
- value?: unknown;
37
- disabled?: boolean;
38
- readonly?: boolean;
39
- required?: boolean;
40
- error?: string | null;
41
- }
101
+ };
42
102
  declare module 'react' {
43
103
  namespace JSX {
44
104
  interface IntrinsicElements {
45
- 'baht-form': WC<{
46
- form?: FormDefinition;
47
- value?: Record<string, unknown>;
48
- registry?: Registry;
49
- options?: BahtFormOptions;
50
- view?: string;
51
- flags?: FeatureFlags;
52
- }>;
53
- 'baht-workflow': WC<{
54
- workflow?: WorkflowDefinition;
55
- value?: NestedData;
56
- registry?: Registry;
57
- flags?: FeatureFlags;
58
- 'validate-gate'?: boolean;
59
- 'show-steps'?: boolean;
60
- 'next-label'?: string;
61
- 'submit-label'?: string;
62
- 'back-label'?: string;
63
- 'show-back'?: boolean;
64
- }>;
65
- 'baht-input': WC<FieldProps>;
66
- 'baht-textarea': WC<FieldProps>;
67
- 'baht-markdown': WC<FieldProps & {
68
- uploader?: NonNullable<Registry['uploaders']>[string];
69
- allowImage?: (href: string) => boolean;
70
- }>;
71
- 'baht-markdown-view': WC<{
72
- source?: string;
73
- allowImage?: (href: string) => boolean;
74
- }>;
75
- 'baht-number': WC<FieldProps>;
76
- 'baht-currency': WC<FieldProps>;
77
- 'baht-select': WC<FieldProps>;
78
- 'baht-multiselect': WC<FieldProps>;
79
- 'baht-tags': WC<FieldProps>;
80
- 'baht-checkbox': WC<FieldProps>;
81
- 'baht-radio': WC<FieldProps>;
82
- 'baht-toggle': WC<FieldProps>;
83
- 'baht-datepicker': WC<FieldProps>;
84
- 'baht-file': WC<FieldProps>;
85
- 'baht-repeater': WC<FieldProps>;
86
- 'baht-text': WC<{
87
- field?: FieldDescriptor;
88
- }>;
89
- 'baht-button': WC<{
90
- variant?: ButtonVariant;
91
- size?: ButtonSize;
92
- disabled?: boolean;
93
- loading?: boolean;
94
- 'loading-label'?: string;
95
- type?: 'button' | 'submit';
96
- label?: string;
97
- icon?: string;
98
- 'icon-only'?: boolean;
99
- shortcut?: string;
100
- 'tooltip-position'?: 'top' | 'bottom';
101
- }>;
102
- 'baht-menu': WC<{
103
- items?: MenuItem[];
104
- 'trigger-label'?: string;
105
- icon?: string;
106
- label?: string;
107
- variant?: 'ghost' | 'secondary';
108
- size?: 'sm' | 'md';
109
- align?: 'start' | 'end';
110
- disabled?: boolean;
111
- heading?: string;
112
- }>;
113
- 'baht-tabs': WC<{
114
- tabs?: TabItem[];
115
- value?: string;
116
- label?: string;
117
- variant?: 'line' | 'pill';
118
- activation?: 'automatic' | 'manual';
119
- }>;
120
- 'baht-popover': WC<{
121
- open?: boolean;
122
- label?: string;
123
- placement?: PopoverPlacement;
124
- }>;
125
- 'baht-theme-toggle': WC<{
126
- theme?: 'light' | 'dark';
127
- default?: 'light' | 'dark' | 'system';
128
- target?: string;
129
- 'storage-key'?: string;
130
- }>;
131
- 'baht-split-button': WC<{
132
- label?: string;
133
- variant?: ButtonVariant;
134
- size?: ButtonSize;
135
- disabled?: boolean;
136
- shortcut?: string;
137
- items?: MenuItem[];
138
- align?: 'start' | 'end';
139
- 'menu-label'?: string;
140
- }>;
141
- 'baht-badge': WC<{
142
- tone?: BadgeTone;
143
- label?: string;
144
- dot?: boolean;
145
- busy?: boolean;
146
- }>;
147
- 'baht-avatar': WC<{
148
- label?: string;
149
- initials?: string;
150
- size?: AvatarSize;
151
- }>;
152
- 'baht-card': WC<{
153
- heading?: string;
154
- subtitle?: string;
155
- hero?: boolean;
156
- accent?: CardAccent;
157
- level?: number;
158
- }>;
159
- 'baht-alert': WC<{
160
- tone?: 'info' | 'success' | 'warning' | 'danger';
161
- heading?: string;
162
- message?: string;
163
- dismissible?: boolean;
164
- }>;
165
- 'baht-code': WC<{
166
- variant?: CodeVariant;
167
- code?: string;
168
- }>;
169
- 'baht-link': WC<{
170
- href?: string;
171
- label?: string;
172
- external?: boolean;
173
- }>;
174
- 'baht-spinner': WC<{
175
- size?: 'sm' | 'md' | 'lg';
176
- label?: string;
177
- }>;
178
- 'baht-skeleton': WC<{
179
- variant?: 'rect' | 'text' | 'circle';
180
- width?: string;
181
- height?: string;
182
- }>;
183
- 'baht-tooltip': WC<{
184
- text?: string;
185
- position?: 'top' | 'bottom' | 'left' | 'right';
186
- }>;
187
- 'baht-fieldset': WC<{
188
- legend?: string;
189
- disabled?: boolean;
190
- }>;
191
- 'baht-table': WC<{
192
- items?: Record<string, unknown>[];
193
- columns?: ColumnMap;
194
- renderers?: Record<string, CellRenderer>;
195
- visibleColumns?: string[];
196
- 'column-picker'?: boolean;
197
- variant?: TableVariant;
198
- filterable?: boolean;
199
- filter?: FilterValue;
200
- savedFilters?: SavedFilter[] | null;
201
- loading?: boolean;
202
- error?: boolean;
203
- 'error-message'?: string;
204
- 'empty-message'?: string;
205
- 'show-index'?: boolean;
206
- 'index-offset'?: number;
207
- 'skeleton-rows'?: number;
208
- 'row-key'?: string;
209
- clickable?: boolean;
210
- 'row-actions'?: boolean;
211
- rowMenu?: RowMenu | null;
212
- page?: number;
213
- 'total-pages'?: number;
214
- 'always-paginate'?: boolean;
215
- 'cursor-mode'?: boolean;
216
- 'has-next'?: boolean;
217
- 'has-prev'?: boolean;
218
- }>;
219
- 'baht-list': WC<{
220
- items?: ListItem[];
221
- loading?: boolean;
222
- error?: boolean;
223
- 'error-message'?: string;
224
- 'empty-message'?: string;
225
- 'skeleton-rows'?: number;
226
- clickable?: boolean;
227
- }>;
228
- 'baht-accordion': WC<{
229
- items?: AccordionItem[];
230
- multiple?: boolean;
231
- }>;
232
- 'baht-tree': WC<EmptyMessage & {
233
- items?: TreeNode[];
234
- selected?: string | null;
235
- collapsed?: boolean;
236
- label?: string;
237
- }>;
238
- 'baht-calendar': WC<{
239
- view?: CalendarView;
240
- date?: string;
241
- events?: CalendarEvent[];
242
- marks?: CalendarMark[];
243
- label?: string;
244
- today?: string;
245
- 'week-start'?: number;
246
- locale?: string;
247
- 'first-hour'?: number;
248
- }>;
249
- 'baht-timeline': WC<{
250
- items?: TimelineItem[];
251
- }>;
252
- 'baht-comments': WC<EmptyMessage & {
253
- entries?: CommentEntry[];
254
- 'allow-internal'?: boolean;
255
- placeholder?: string;
256
- 'internal-label'?: string;
257
- busy?: boolean;
258
- }>;
259
- 'baht-notification-bell': WC<EmptyMessage & {
260
- items?: NotificationItem[];
261
- count?: number;
262
- label?: string;
263
- 'all-href'?: string;
264
- 'all-label'?: string;
265
- }>;
266
- 'baht-edit-table': WC<{
267
- columns?: EditColumn[];
268
- rows?: EditRow[];
269
- 'row-key'?: string;
270
- addable?: boolean;
271
- removable?: boolean;
272
- label?: string;
273
- }>;
274
- 'baht-rule-builder': WC<{
275
- workflow?: WorkflowDefinition | null;
276
- }>;
277
- 'baht-breadcrumbs': WC<{
278
- items?: Crumb[];
279
- separator?: string;
280
- }>;
281
- 'baht-app-shell': WC<{
282
- brand?: string;
283
- 'brand-sub'?: string;
284
- 'brand-href'?: string;
285
- context?: string;
286
- items?: ShellNavItem[];
287
- value?: string;
288
- filterable?: boolean;
289
- label?: string;
290
- }>;
291
- 'baht-approval-chain': WC<{
292
- heading?: string;
293
- steps?: ChainStep[];
294
- }>;
295
- 'baht-catalog-card': WC<{
296
- heading?: string;
297
- description?: string;
298
- image?: string;
299
- href?: string;
300
- }>;
301
- 'baht-filter-builder': WC<{
302
- fields?: FilterField[];
303
- value?: FilterValue;
304
- }>;
305
- 'baht-order-box': WC<{
306
- heading?: string;
307
- label?: string;
308
- disabled?: boolean;
309
- }>;
310
- 'baht-page-header': WC<BackLinkAttrs & {
311
- heading?: string;
312
- description?: string;
313
- eyebrow?: string;
314
- size?: 'md' | 'lg';
315
- 'art-position'?: 'end' | 'start';
316
- }>;
317
- 'baht-section-header': WC<{
318
- heading?: string;
319
- description?: string;
320
- level?: 2 | 3 | 4;
321
- }>;
322
- 'baht-facts': WC<{
323
- items?: FactItem[];
324
- }>;
325
- 'baht-choice-group': WC<{
326
- options?: ChoiceOption[];
327
- value?: string;
328
- label?: string;
329
- disabled?: boolean;
330
- }>;
331
- 'baht-search': WC<{
332
- value?: string;
333
- placeholder?: string;
334
- label?: string;
335
- debounce?: number;
336
- disabled?: boolean;
337
- }>;
338
- 'baht-record-bar': WC<BackLinkAttrs & {
339
- lines?: string[];
340
- sticky?: boolean | string;
341
- }>;
342
- 'baht-wizard': WC<BackLabelAttr & {
343
- steps?: WizardStep[];
344
- value?: string;
345
- variant?: 'chevron' | 'tabs';
346
- validateStep?: (key: string) => boolean | Promise<boolean>;
347
- 'next-label'?: string;
348
- 'finish-label'?: string;
349
- busy?: boolean;
350
- }>;
351
- 'baht-reference-dialog': WC<{
352
- open?: boolean;
353
- heading?: string;
354
- columns?: FilterField[];
355
- lister?: ((query: ReferenceQuery) => ReferencePage | Promise<ReferencePage>) | null;
356
- selected?: string;
357
- walk?: ColumnMap | null;
358
- savedColumns?: string[] | null;
359
- savedFilters?: SavedFilter[] | null;
360
- }>;
361
- 'baht-saved-filters': WC<{
362
- filters?: SavedFilter[];
363
- current?: FilterValue;
364
- fields?: FilterField[];
365
- }>;
366
- 'baht-column-picker': WC<{
367
- open?: boolean;
368
- columns?: ColumnMap;
369
- selected?: string[];
370
- }>;
371
- 'baht-steps': WC<{
372
- steps?: string[];
373
- current?: number;
374
- variant?: 'default' | 'sidebar' | 'chevron' | 'compact';
375
- 'show-done'?: boolean;
376
- }>;
377
- 'baht-filter': WC<{
378
- options?: FieldOption[];
379
- selected?: string[];
380
- multiple?: boolean;
381
- disabled?: boolean;
382
- variant?: FilterVariant;
383
- label?: string;
384
- }>;
385
- 'baht-swipe-row': WC<{
386
- actions?: SwipeAction[];
387
- open?: boolean;
388
- label?: string;
389
- }>;
390
- 'baht-pagination': WC<{
391
- page?: number;
392
- 'total-pages'?: number;
393
- variant?: 'numbered' | 'compact' | 'cursor';
394
- siblings?: number;
395
- 'has-next'?: boolean;
396
- 'has-prev'?: boolean;
397
- }>;
398
- 'baht-progress': WC<{
399
- value?: number | null;
400
- tone?: 'primary' | 'success' | 'warning' | 'danger';
401
- 'show-label'?: boolean;
402
- label?: string;
403
- }>;
404
- 'baht-progress-ring': WC<{
405
- value?: number;
406
- tone?: ProgressRingTone;
407
- label?: string;
408
- size?: number;
409
- }>;
410
- /** standalone props, or FieldProps when used as a `type: 'range'` field */
411
- 'baht-range': WC<FieldProps & {
412
- value?: unknown;
413
- min?: number;
414
- max?: number;
415
- step?: number;
416
- label?: string;
417
- disabled?: boolean;
418
- 'show-value'?: boolean;
419
- }>;
420
- /** standalone props, or FieldProps when used as a `type: 'rating'` field */
421
- 'baht-rating': WC<FieldProps & {
422
- value?: unknown;
423
- max?: number;
424
- label?: string;
425
- }>;
426
- 'baht-otp': WC<{
427
- length?: number;
428
- value?: string;
429
- disabled?: boolean;
430
- mode?: 'numeric' | 'text';
431
- }>;
432
- 'baht-stat-chart': WC<{
433
- total?: number;
434
- label?: string;
435
- color?: string;
436
- }>;
437
- 'baht-stat': WC<{
438
- label?: string;
439
- value?: number;
440
- format?: ChartFormat;
441
- currency?: string;
442
- delta?: number | null;
443
- 'delta-kind'?: 'abs' | 'pct';
444
- 'delta-label'?: string;
445
- 'up-is-good'?: boolean;
446
- trend?: number[];
447
- size?: 'md' | 'hero';
448
- icon?: string;
449
- }>;
450
- 'baht-sparkline': WC<{
451
- values?: number[];
452
- width?: number;
453
- height?: number;
454
- 'accent-last'?: boolean;
455
- color?: string;
456
- label?: string;
457
- }>;
458
- 'baht-donut-chart': WC<ChartCommon & {
459
- groups?: ChartGroup[];
460
- total?: number | null;
461
- color?: string;
462
- 'center-label'?: string;
463
- 'other-label'?: string;
464
- }>;
465
- 'baht-bar-chart': WC<ChartCommon & {
466
- groups?: ChartGroup[];
467
- series?: ChartSeries[];
468
- categories?: string[];
469
- orientation?: 'horizontal' | 'vertical';
470
- stacked?: boolean;
471
- compare?: number[];
472
- markers?: ChartMarker[];
473
- 'label-values'?: 'ends' | 'none';
474
- emphasis?: number | null;
475
- color?: string;
476
- label?: string;
477
- }>;
478
- 'baht-line-chart': WC<ChartCommon & {
479
- series?: ChartSeries[];
480
- categories?: string[];
481
- area?: boolean;
482
- markers?: ChartMarker[];
483
- forecast?: number;
484
- baseline?: number | null;
485
- 'label-values'?: 'ends' | 'none';
486
- label?: string;
487
- }>;
488
- 'baht-heatmap': WC<ChartCommon & {
489
- values?: ChartDatePoint[];
490
- from?: string;
491
- to?: string;
492
- 'less-label'?: string;
493
- 'more-label'?: string;
494
- 'zero-label'?: string;
495
- 'show-values'?: boolean;
496
- label?: string;
497
- }>;
498
- 'baht-meter': WC<{
499
- value?: number;
500
- max?: number;
501
- label?: string;
502
- format?: ChartFormat;
503
- currency?: string;
504
- thresholds?: MeterThresholds;
505
- expected?: number | null;
506
- kind?: MeterKind;
507
- 'over-label'?: string;
508
- 'near-label'?: string;
509
- 'at-label'?: string;
510
- }>;
511
- 'baht-empty-state': WC<{
512
- icon?: string;
513
- message?: string;
514
- hint?: string;
515
- }>;
516
- 'baht-error-state': WC<{
517
- icon?: string;
518
- heading?: string;
519
- message?: string;
520
- 'retry-label'?: string;
521
- }>;
522
- 'baht-keyvalue-editor': WC<{
523
- value?: Record<string, unknown>;
524
- 'key-placeholder'?: string;
525
- 'value-placeholder'?: string;
526
- 'add-label'?: string;
527
- disabled?: boolean;
528
- }>;
529
- /** standalone props, or FieldProps + `lookup` when used as a `type: 'reference'` field */
530
- 'baht-reference-picker': WC<FieldProps & {
531
- value?: unknown;
532
- lookup?: FieldReferenceLookup | null;
533
- display?: string;
534
- placeholder?: string;
535
- disabled?: boolean;
536
- invalid?: boolean;
537
- href?: string;
538
- 'lookup-label'?: string;
539
- debounce?: number;
540
- fetcher?: (term: string) => Promise<ReferenceOption[]>;
541
- }>;
542
- 'baht-modal': WC<{
543
- open?: boolean;
544
- heading?: string;
545
- description?: string;
546
- placement?: ModalPlacement;
547
- size?: ModalSize;
548
- 'show-close'?: boolean;
549
- 'close-on-scrim'?: boolean;
550
- }>;
551
- 'baht-toast': WC<{
552
- duration?: number;
105
+ 'baht-accordion': WC<Props<BahtAccordion, 'items' | 'multiple'>>;
106
+ 'baht-alert': WC<Props<BahtAlert, 'tone' | 'heading' | 'message' | 'dismissible'>>;
107
+ 'baht-app-shell': WC<Props<BahtAppShell, 'brand' | 'brandSub' | 'brandHref' | 'context' | 'items' | 'value' | 'filterable' | 'label' | 'collapsedGroups' | 'scrollMode'> & {
108
+ 'brand-sub'?: BahtAppShell['brandSub'];
109
+ 'brand-href'?: BahtAppShell['brandHref'];
110
+ 'scroll'?: BahtAppShell['scrollMode'];
111
+ }>;
112
+ 'baht-approval-chain': WC<Props<BahtApprovalChain, 'heading' | 'steps'>>;
113
+ 'baht-avatar': WC<Props<BahtAvatar, 'label' | 'initials' | 'size'>>;
114
+ 'baht-badge': WC<Props<BahtBadge, 'tone' | 'label' | 'dot' | 'busy'>>;
115
+ 'baht-bar-chart': WC<Props<BahtBarChart, 'groups' | 'series' | 'categories' | 'orientation' | 'stacked' | 'compare' | 'compareLabel' | 'markers' | 'labelValues' | 'emphasis' | 'color' | 'label' | 'emptyMessage' | 'loading' | 'showTable' | 'format' | 'currency'> & {
116
+ 'compare-label'?: BahtBarChart['compareLabel'];
117
+ 'label-values'?: BahtBarChart['labelValues'];
118
+ 'empty-message'?: BahtBarChart['emptyMessage'];
119
+ 'show-table'?: BahtBarChart['showTable'];
120
+ }>;
121
+ 'baht-breadcrumbs': WC<Props<BahtBreadcrumbs, 'items' | 'separator'>>;
122
+ 'baht-button': WC<Props<BahtButton, 'variant' | 'size' | 'disabled' | 'loading' | 'loadingLabel' | 'type' | 'label' | 'icon' | 'iconOnly' | 'hostAriaLabel' | 'shortcut' | 'tooltipPosition'> & {
123
+ 'loading-label'?: BahtButton['loadingLabel'];
124
+ 'icon-only'?: BahtButton['iconOnly'];
125
+ 'aria-label'?: BahtButton['hostAriaLabel'];
126
+ 'tooltip-position'?: BahtButton['tooltipPosition'];
127
+ }>;
128
+ 'baht-calendar': WC<Props<BahtCalendar, 'view' | 'date' | 'events' | 'marks' | 'label' | 'today' | 'weekStart' | 'locale' | 'firstHour'> & {
129
+ 'week-start'?: BahtCalendar['weekStart'];
130
+ 'first-hour'?: BahtCalendar['firstHour'];
131
+ }>;
132
+ 'baht-card': WC<Props<BahtCard, 'heading' | 'subtitle' | 'hero' | 'accent' | 'level'>>;
133
+ 'baht-catalog-card': WC<Props<BahtCatalogCard, 'heading' | 'description' | 'image' | 'href' | 'layout' | 'level'>>;
134
+ 'baht-checkbox': WC<Props<BahtCheckbox, 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
135
+ 'show-optional'?: BahtCheckbox['showOptional'];
136
+ }>;
137
+ 'baht-choice-group': WC<Props<BahtChoiceGroup, 'options' | 'value' | 'label' | 'disabled'>>;
138
+ 'baht-code': WC<Props<BahtCode, 'variant' | 'code'>>;
139
+ 'baht-column-picker': WC<Props<BahtColumnPicker, 'open' | 'columns' | 'selected'>>;
140
+ 'baht-comments': WC<Props<BahtComments, 'entries' | 'allowInternal' | 'placeholder' | 'internalLabel' | 'emptyMessage' | 'busy'> & {
141
+ 'allow-internal'?: BahtComments['allowInternal'];
142
+ 'internal-label'?: BahtComments['internalLabel'];
143
+ 'empty-message'?: BahtComments['emptyMessage'];
144
+ }>;
145
+ 'baht-currency': WC<Props<BahtCurrency, 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
146
+ 'show-optional'?: BahtCurrency['showOptional'];
147
+ }>;
148
+ 'baht-datepicker': WC<Props<BahtDatepicker, 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
149
+ 'show-optional'?: BahtDatepicker['showOptional'];
150
+ }>;
151
+ 'baht-donut-chart': WC<Props<BahtDonutChart, 'groups' | 'total' | 'color' | 'centerLabel' | 'otherLabel' | 'emptyMessage' | 'loading' | 'showTable' | 'format' | 'currency'> & {
152
+ 'center-label'?: BahtDonutChart['centerLabel'];
153
+ 'other-label'?: BahtDonutChart['otherLabel'];
154
+ 'empty-message'?: BahtDonutChart['emptyMessage'];
155
+ 'show-table'?: BahtDonutChart['showTable'];
156
+ }>;
157
+ 'baht-edit-table': WC<Props<BahtEditTable, 'columns' | 'rows' | 'rowKey' | 'addable' | 'removable' | 'label'> & {
158
+ 'row-key'?: BahtEditTable['rowKey'];
159
+ }>;
160
+ 'baht-empty-state': WC<Props<BahtEmptyState, 'icon' | 'message' | 'hint'>>;
161
+ 'baht-error-state': WC<Props<BahtErrorState, 'icon' | 'heading' | 'message' | 'retryLabel'> & {
162
+ 'retry-label'?: BahtErrorState['retryLabel'];
163
+ }>;
164
+ 'baht-facts': WC<Props<BahtFacts, 'items'>>;
165
+ 'baht-fieldset': WC<Props<BahtFieldset, 'legend' | 'help' | 'disabled'>>;
166
+ 'baht-file': WC<Props<BahtFile, 'uploader' | 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
167
+ 'show-optional'?: BahtFile['showOptional'];
168
+ }>;
169
+ 'baht-filter': WC<Props<BahtFilter, 'options' | 'selected' | 'variant' | 'multiple' | 'disabled' | 'label'>>;
170
+ 'baht-filter-builder': WC<Props<BahtFilterBuilder, 'fields' | 'value'>>;
171
+ 'baht-form': WC<Props<BahtForm, 'form' | 'value' | 'registry' | 'showOptional' | 'options' | 'fieldStates' | 'view' | 'flags' | 'tab' | 'readonly' | 'submitOnEnter' | 'busy'> & {
172
+ 'show-optional'?: BahtForm['showOptional'];
173
+ 'submit-on-enter'?: BahtForm['submitOnEnter'];
174
+ }>;
175
+ 'baht-heatmap': WC<Props<BahtHeatmap, 'values' | 'from' | 'to' | 'lessLabel' | 'moreLabel' | 'zeroLabel' | 'showValues' | 'label' | 'emptyMessage' | 'loading' | 'showTable' | 'format' | 'currency'> & {
176
+ 'less-label'?: BahtHeatmap['lessLabel'];
177
+ 'more-label'?: BahtHeatmap['moreLabel'];
178
+ 'zero-label'?: BahtHeatmap['zeroLabel'];
179
+ 'show-values'?: BahtHeatmap['showValues'];
180
+ 'empty-message'?: BahtHeatmap['emptyMessage'];
181
+ 'show-table'?: BahtHeatmap['showTable'];
182
+ }>;
183
+ 'baht-input': WC<Props<BahtInput, 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
184
+ 'show-optional'?: BahtInput['showOptional'];
185
+ }>;
186
+ 'baht-keyvalue-editor': WC<Props<BahtKeyvalueEditor, 'value' | 'keyPlaceholder' | 'valuePlaceholder' | 'add_label' | 'disabled'> & {
187
+ 'key-placeholder'?: BahtKeyvalueEditor['keyPlaceholder'];
188
+ 'value-placeholder'?: BahtKeyvalueEditor['valuePlaceholder'];
189
+ 'add-label'?: BahtKeyvalueEditor['add_label'];
190
+ }>;
191
+ 'baht-line-chart': WC<Props<BahtLineChart, 'series' | 'categories' | 'area' | 'markers' | 'forecast' | 'baseline' | 'labelValues' | 'label' | 'emptyMessage' | 'loading' | 'showTable' | 'format' | 'currency'> & {
192
+ 'label-values'?: BahtLineChart['labelValues'];
193
+ 'empty-message'?: BahtLineChart['emptyMessage'];
194
+ 'show-table'?: BahtLineChart['showTable'];
195
+ }>;
196
+ 'baht-link': WC<Props<BahtLink, 'href' | 'label' | 'external' | 'externalHint'> & {
197
+ 'external-hint'?: BahtLink['externalHint'];
198
+ }>;
199
+ 'baht-list': WC<Props<BahtList, 'items' | 'loading' | 'error' | 'errorMessage' | 'emptyMessage' | 'skeletonRows' | 'clickable'> & {
200
+ 'error-message'?: BahtList['errorMessage'];
201
+ 'empty-message'?: BahtList['emptyMessage'];
202
+ 'skeleton-rows'?: BahtList['skeletonRows'];
203
+ }>;
204
+ 'baht-loading-overlay': WC<Props<BahtLoadingOverlay, 'open' | 'label'>>;
205
+ 'baht-markdown': WC<Props<BahtMarkdown, 'uploader' | 'allowImage' | 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
206
+ 'show-optional'?: BahtMarkdown['showOptional'];
207
+ }>;
208
+ 'baht-markdown-view': WC<Props<BahtMarkdownView, 'source' | 'allowImage'>>;
209
+ 'baht-menu': WC<Props<BahtMenu, 'items' | 'triggerLabel' | 'icon' | 'label' | 'variant' | 'size' | 'align' | 'disabled' | 'heading'> & {
210
+ 'trigger-label'?: BahtMenu['triggerLabel'];
211
+ }>;
212
+ 'baht-meter': WC<Props<BahtMeter, 'value' | 'max' | 'label' | 'format' | 'currency' | 'thresholds' | 'expected' | 'kind' | 'overLabel' | 'atLabel' | 'nearLabel'> & {
213
+ 'over-label'?: BahtMeter['overLabel'];
214
+ 'at-label'?: BahtMeter['atLabel'];
215
+ 'near-label'?: BahtMeter['nearLabel'];
216
+ }>;
217
+ 'baht-modal': WC<Props<BahtModal, 'open' | 'heading' | 'description' | 'showClose' | 'placement' | 'size' | 'closeOnScrim'> & {
218
+ 'show-close'?: BahtModal['showClose'];
219
+ 'close-on-scrim'?: BahtModal['closeOnScrim'];
220
+ }>;
221
+ 'baht-multiselect': WC<Props<BahtMultiselect, 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
222
+ 'show-optional'?: BahtMultiselect['showOptional'];
223
+ }>;
224
+ 'baht-notification-bell': WC<Props<BahtNotificationBell, 'items' | 'count' | 'label' | 'emptyMessage' | 'allHref' | 'allLabel'> & {
225
+ 'empty-message'?: BahtNotificationBell['emptyMessage'];
226
+ 'all-href'?: BahtNotificationBell['allHref'];
227
+ 'all-label'?: BahtNotificationBell['allLabel'];
228
+ }>;
229
+ 'baht-number': WC<Props<BahtNumber, 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
230
+ 'show-optional'?: BahtNumber['showOptional'];
231
+ }>;
232
+ 'baht-order-box': WC<Props<BahtOrderBox, 'heading' | 'label' | 'disabled'>>;
233
+ 'baht-otp': WC<Props<BahtOtp, 'length' | 'value' | 'disabled' | 'mode' | 'label'>>;
234
+ 'baht-page-header': WC<Props<BahtPageHeader, 'heading' | 'description' | 'eyebrow' | 'backLabel' | 'backHref' | 'size' | 'artPosition'> & {
235
+ 'back-label'?: BahtPageHeader['backLabel'];
236
+ 'back-href'?: BahtPageHeader['backHref'];
237
+ 'art-position'?: BahtPageHeader['artPosition'];
238
+ }>;
239
+ 'baht-pagination': WC<Props<BahtPagination, 'page' | 'totalPages' | 'variant' | 'siblings' | 'hasNext' | 'hasPrev'> & {
240
+ 'total-pages'?: BahtPagination['totalPages'];
241
+ 'has-next'?: BahtPagination['hasNext'];
242
+ 'has-prev'?: BahtPagination['hasPrev'];
243
+ }>;
244
+ 'baht-popover': WC<Props<BahtPopover, 'open' | 'label' | 'placement'>>;
245
+ 'baht-progress': WC<Props<BahtProgress, 'value' | 'tone' | 'showLabel' | 'label'> & {
246
+ 'show-label'?: BahtProgress['showLabel'];
247
+ }>;
248
+ 'baht-progress-ring': WC<Props<BahtProgressRing, 'value' | 'tone' | 'label' | 'size'>>;
249
+ 'baht-radio': WC<Props<BahtRadio, 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
250
+ 'show-optional'?: BahtRadio['showOptional'];
251
+ }>;
252
+ 'baht-range': WC<Props<BahtRange, 'value' | 'min' | 'max' | 'step' | 'label' | 'showValue' | 'field' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
253
+ 'show-value'?: BahtRange['showValue'];
254
+ 'show-optional'?: BahtRange['showOptional'];
255
+ }>;
256
+ 'baht-rating': WC<Props<BahtRating, 'value' | 'max' | 'label' | 'field' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
257
+ 'show-optional'?: BahtRating['showOptional'];
258
+ }>;
259
+ 'baht-record-bar': WC<Props<BahtRecordBar, 'lines' | 'backHref' | 'backLabel' | 'sticky'> & {
260
+ 'back-href'?: BahtRecordBar['backHref'];
261
+ 'back-label'?: BahtRecordBar['backLabel'];
262
+ }>;
263
+ 'baht-reference-dialog': WC<Props<BahtReferenceDialog, 'open' | 'heading' | 'columns' | 'lister' | 'selected' | 'walk' | 'savedColumns' | 'savedFilters'>>;
264
+ 'baht-reference-picker': WC<Props<BahtReferencePicker, 'label' | 'value' | 'display' | 'placeholder' | 'invalid' | 'href' | 'lookupLabel' | 'debounce' | 'fetcher' | 'lookup' | 'field' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error'> & {
265
+ 'lookup-label'?: BahtReferencePicker['lookupLabel'];
266
+ 'show-optional'?: BahtReferencePicker['showOptional'];
267
+ }>;
268
+ 'baht-repeater': WC<Props<BahtRepeater, 'rowErrors' | 'rowStates' | 'rowLookup' | 'registry' | 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
269
+ 'show-optional'?: BahtRepeater['showOptional'];
270
+ }>;
271
+ 'baht-rule-builder': WC<Props<BahtRuleBuilder, 'workflow'>>;
272
+ 'baht-saved-filters': WC<Props<BahtSavedFilters, 'filters' | 'current' | 'fields'>>;
273
+ 'baht-search': WC<Props<BahtSearch, 'value' | 'placeholder' | 'label' | 'debounce' | 'disabled'>>;
274
+ 'baht-section': WC<Props<BahtSection, 'field' | 'collapsed'>>;
275
+ 'baht-section-header': WC<Props<BahtSectionHeader, 'heading' | 'description' | 'level'>>;
276
+ 'baht-select': WC<Props<BahtSelect, 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
277
+ 'show-optional'?: BahtSelect['showOptional'];
278
+ }>;
279
+ 'baht-skeleton': WC<Props<BahtSkeleton, 'variant' | 'width' | 'height'>>;
280
+ 'baht-sparkline': WC<Props<BahtSparkline, 'values' | 'width' | 'height' | 'accentLast' | 'color' | 'label'> & {
281
+ 'accent-last'?: BahtSparkline['accentLast'];
282
+ }>;
283
+ 'baht-spinner': WC<Props<BahtSpinner, 'size' | 'label'>>;
284
+ 'baht-split-button': WC<Props<BahtSplitButton, 'label' | 'variant' | 'size' | 'disabled' | 'shortcut' | 'items' | 'align' | 'menuLabel'> & {
285
+ 'menu-label'?: BahtSplitButton['menuLabel'];
286
+ }>;
287
+ 'baht-stat': WC<Props<BahtStat, 'label' | 'value' | 'format' | 'currency' | 'delta' | 'deltaKind' | 'deltaLabel' | 'upIsGood' | 'trend' | 'size' | 'icon' | 'previous' | 'deltaTone'> & {
288
+ 'delta-kind'?: BahtStat['deltaKind'];
289
+ 'delta-label'?: BahtStat['deltaLabel'];
290
+ 'up-is-good'?: BahtStat['upIsGood'];
291
+ 'delta-tone'?: BahtStat['deltaTone'];
292
+ }>;
293
+ 'baht-stat-chart': WC<Props<BahtStatChart, 'total' | 'label' | 'color'>>;
294
+ 'baht-steps': WC<Props<BahtSteps, 'steps' | 'current' | 'variant' | 'showDone'> & {
295
+ 'show-done'?: BahtSteps['showDone'];
296
+ }>;
297
+ 'baht-swipe-row': WC<Props<BahtSwipeRow, 'actions' | 'open' | 'label'>>;
298
+ 'baht-table': WC<Props<BahtTable, 'items' | 'columns' | 'loading' | 'error' | 'errorMessage' | 'emptyMessage' | 'showIndex' | 'indexOffset' | 'skeletonRows' | 'rowKey' | 'clickable' | 'renderers' | 'visibleColumns' | 'groupBy' | 'groupLabel' | 'groupCollapsible' | 'groupCollapsed' | 'hideHeader' | 'columnPicker' | 'variant' | 'total' | 'selectable' | 'selected' | 'sortable' | 'sort' | 'filterable' | 'filter' | 'savedFilters' | 'rowActions' | 'rowMenu' | 'page' | 'totalPages' | 'alwaysPaginate' | 'cursorMode' | 'hasNext' | 'hasPrev'> & {
299
+ 'error-message'?: BahtTable['errorMessage'];
300
+ 'empty-message'?: BahtTable['emptyMessage'];
301
+ 'show-index'?: BahtTable['showIndex'];
302
+ 'index-offset'?: BahtTable['indexOffset'];
303
+ 'skeleton-rows'?: BahtTable['skeletonRows'];
304
+ 'row-key'?: BahtTable['rowKey'];
305
+ 'group-by'?: BahtTable['groupBy'];
306
+ 'group-collapsible'?: BahtTable['groupCollapsible'];
307
+ 'group-collapsed'?: BahtTable['groupCollapsed'];
308
+ 'hide-header'?: BahtTable['hideHeader'];
309
+ 'column-picker'?: BahtTable['columnPicker'];
310
+ 'row-actions'?: BahtTable['rowActions'];
311
+ 'total-pages'?: BahtTable['totalPages'];
312
+ 'always-paginate'?: BahtTable['alwaysPaginate'];
313
+ 'cursor-mode'?: BahtTable['cursorMode'];
314
+ 'has-next'?: BahtTable['hasNext'];
315
+ 'has-prev'?: BahtTable['hasPrev'];
316
+ }>;
317
+ 'baht-tabs': WC<Props<BahtTabs, 'tabs' | 'value' | 'label' | 'activation' | 'variant'>>;
318
+ 'baht-tags': WC<Props<BahtTags, 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
319
+ 'show-optional'?: BahtTags['showOptional'];
320
+ }>;
321
+ 'baht-text': WC<Props<BahtText, 'field'>>;
322
+ 'baht-textarea': WC<Props<BahtTextarea, 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
323
+ 'show-optional'?: BahtTextarea['showOptional'];
324
+ }>;
325
+ 'baht-theme-toggle': WC<Props<BahtThemeToggle, 'theme' | 'default' | 'target' | 'storageKey'> & {
326
+ 'storage-key'?: BahtThemeToggle['storageKey'];
327
+ }>;
328
+ 'baht-timeline': WC<Props<BahtTimeline, 'items'>>;
329
+ 'baht-toast': WC<Props<BahtToast, 'duration'>>;
330
+ 'baht-toggle': WC<Props<BahtToggle, 'field' | 'value' | 'disabled' | 'readonly' | 'required' | 'showOptional' | 'error' | 'debounce'> & {
331
+ 'show-optional'?: BahtToggle['showOptional'];
332
+ }>;
333
+ 'baht-tooltip': WC<Props<BahtTooltip, 'text' | 'position'>>;
334
+ 'baht-tree': WC<Props<BahtTree, 'items' | 'selected' | 'collapsed' | 'label' | 'emptyMessage'> & {
335
+ 'empty-message'?: BahtTree['emptyMessage'];
336
+ }>;
337
+ 'baht-typeahead': WC<Props<BahtTypeahead, 'label' | 'value' | 'placeholder' | 'disabled' | 'invalid' | 'options' | 'fetcher' | 'debounce' | 'minChars' | 'maxItems' | 'freeText' | 'autocomplete'> & {
338
+ 'min-chars'?: BahtTypeahead['minChars'];
339
+ 'max-items'?: BahtTypeahead['maxItems'];
340
+ 'free-text'?: BahtTypeahead['freeText'];
341
+ }>;
342
+ 'baht-upload': WC<Props<BahtUpload, 'url' | 'method' | 'fieldName' | 'responseKey' | 'headers' | 'withCredentials' | 'value' | 'label' | 'hint' | 'accept' | 'multiple' | 'maxSize' | 'disabled' | 'required' | 'error'> & {
343
+ 'field-name'?: BahtUpload['fieldName'];
344
+ 'response-key'?: BahtUpload['responseKey'];
345
+ 'with-credentials'?: BahtUpload['withCredentials'];
346
+ 'max-size'?: BahtUpload['maxSize'];
347
+ }>;
348
+ 'baht-wizard': WC<Props<BahtWizard, 'steps' | 'value' | 'variant' | 'validateStep' | 'backLabel' | 'nextLabel' | 'finishLabel' | 'busy'> & {
349
+ 'back-label'?: BahtWizard['backLabel'];
350
+ 'next-label'?: BahtWizard['nextLabel'];
351
+ 'finish-label'?: BahtWizard['finishLabel'];
352
+ }>;
353
+ 'baht-workflow': WC<Props<BahtWorkflow, 'workflow' | 'value' | 'registry' | 'validateGate' | 'nextLabel' | 'submitLabel' | 'backLabel' | 'showBack' | 'chrome' | 'submitOnEnter' | 'busy' | 'flags' | 'debounce' | 'showSteps' | 'stepsVariant'> & {
354
+ 'validate-gate'?: BahtWorkflow['validateGate'];
355
+ 'next-label'?: BahtWorkflow['nextLabel'];
356
+ 'submit-label'?: BahtWorkflow['submitLabel'];
357
+ 'back-label'?: BahtWorkflow['backLabel'];
358
+ 'show-back'?: BahtWorkflow['showBack'];
359
+ 'submit-on-enter'?: BahtWorkflow['submitOnEnter'];
360
+ 'show-steps'?: BahtWorkflow['showSteps'];
361
+ 'steps-variant'?: BahtWorkflow['stepsVariant'];
553
362
  }>;
554
363
  }
555
364
  }