@20baht/ui 0.1.2 → 0.2.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/components/baht-form.js +30 -28
- package/dist/components/define.js +1 -1
- package/dist/components/primitives/baht-repeater.d.ts +7 -1
- package/dist/components/primitives/baht-repeater.js +68 -65
- package/dist/components/primitives/tag-map.d.ts +13 -2
- package/dist/components/primitives/tag-map.js +21 -32
- package/dist/custom-elements.json +43 -4
- package/dist/react.d.ts +354 -545
- package/dist/register.d.ts +10 -10
- package/dist/register.js +10 -10
- package/dist/ssr.js +1 -1
- package/dist/web-types.json +6 -1
- package/package.json +3 -2
package/dist/react.d.ts
CHANGED
|
@@ -1,555 +1,364 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
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
|
-
*
|
|
17
|
-
* `class` is included alongside React's `className
|
|
18
|
-
*
|
|
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<
|
|
99
|
+
type WC<P> = P & Omit<React.HTMLAttributes<HTMLElement>, keyof P> & React.ClassAttributes<HTMLElement> & {
|
|
21
100
|
class?: string;
|
|
22
|
-
}
|
|
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-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
'baht-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
'
|
|
59
|
-
'show-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
'
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
'baht-
|
|
78
|
-
'baht-
|
|
79
|
-
'baht-
|
|
80
|
-
'baht-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
'baht-
|
|
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
|
-
label?:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
'
|
|
130
|
-
}>;
|
|
131
|
-
'baht-
|
|
132
|
-
label?:
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}>;
|
|
152
|
-
'baht-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
}>;
|
|
169
|
-
'baht-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
'baht-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
'
|
|
206
|
-
'
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
'
|
|
218
|
-
}>;
|
|
219
|
-
'baht-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
'
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
'baht-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
'
|
|
246
|
-
|
|
247
|
-
'
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
'
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
'
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
'baht-
|
|
275
|
-
|
|
276
|
-
}>;
|
|
277
|
-
'baht-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
'
|
|
284
|
-
'
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
label?:
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
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
|
}
|