@1interface/widgets 0.1.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/Chart.web-DQzthytj.js +1 -0
- package/dist/GoogleMapsComponent-CtYLbyvO.js +1 -0
- package/dist/Markdown.web-vx2MyFJ8.js +1 -0
- package/dist/OpenStreetMapComponent-BWRPzQtp.js +1 -0
- package/dist/constants-D8-vgQM1.js +1 -0
- package/dist/index-DvAx4AnX.js +1 -0
- package/dist/index.d.ts +2556 -0
- package/dist/index.mjs +1 -0
- package/dist/widgets.css +1 -0
- package/native/WidgetErrorBoundary.js +1 -0
- package/native/WidgetRenderer.js +36 -0
- package/native/WidgetRenderer.native.js +1 -0
- package/native/assets/image-placeholder.png +0 -0
- package/native/compat/FormContext.js +1 -0
- package/native/compat/WidgetStateContext.js +1 -0
- package/native/compat/WidgetThemeContext.js +1 -0
- package/native/components/BackgroundFill.js +1 -0
- package/native/components/Badge.js +1 -0
- package/native/components/BasicRoot.js +1 -0
- package/native/components/Box.js +1 -0
- package/native/components/Button.js +1 -0
- package/native/components/Card.js +1 -0
- package/native/components/Chart.js +1 -0
- package/native/components/ChartWidget.js +1 -0
- package/native/components/Checkbox.js +1 -0
- package/native/components/DatePicker.js +1 -0
- package/native/components/DatePicker.native.js +1 -0
- package/native/components/Divider.js +1 -0
- package/native/components/FileUploadRequest.js +1 -0
- package/native/components/Form.js +1 -0
- package/native/components/GlassSurface.js +1 -0
- package/native/components/Icon.js +1 -0
- package/native/components/Image.js +1 -0
- package/native/components/Input.js +1 -0
- package/native/components/ListView.js +1 -0
- package/native/components/Map/index.js +1 -0
- package/native/components/Map/index.native.js +1 -0
- package/native/components/Map/native/CalloutContent.js +1 -0
- package/native/components/Map/native/MapWebView.js +132 -0
- package/native/components/Map/native/NativeMapDisplay.js +1 -0
- package/native/components/Map/native/NativeMapInput.js +3 -0
- package/native/components/Map/native/NativeSearchOverlay.js +1 -0
- package/native/components/Map/shared/getLng.js +1 -0
- package/native/components/Map/shared/nominatim.js +1 -0
- package/native/components/Map/shared/partitionOverlays.js +1 -0
- package/native/components/Map/shared/types.js +0 -0
- package/native/components/Map/web/UserLocationContext.js +1 -0
- package/native/components/Map/web/adapters/GoogleMapsComponent.js +1 -0
- package/native/components/Map/web/adapters/OpenStreetMapComponent.js +1 -0
- package/native/components/Map/web/adapters/google.js +1 -0
- package/native/components/Map/web/adapters/index.js +1 -0
- package/native/components/Map/web/adapters/openstreetmap.js +1 -0
- package/native/components/Map/web/components/AdvancedMapMarker.js +1 -0
- package/native/components/Map/web/components/DataMarkerPopupContent.js +1 -0
- package/native/components/Map/web/components/GoogleInfoWindowTheme.js +15 -0
- package/native/components/Map/web/components/LeafletPopupTheme.js +8 -0
- package/native/components/Map/web/components/MapInputShell.js +1 -0
- package/native/components/Map/web/components/MapSearchOverlay.js +1 -0
- package/native/components/Map/web/components/MapSelectionIndicator.js +1 -0
- package/native/components/Map/web/components/MapShell.js +1 -0
- package/native/components/Map/web/components/MapSkeleton.js +1 -0
- package/native/components/Map/web/components/PopupContent.js +1 -0
- package/native/components/Map/web/components/SafeMapContainer.js +1 -0
- package/native/components/Map/web/components/SearchMarkerPopupContent.js +1 -0
- package/native/components/Map/web/constants.js +1 -0
- package/native/components/Map/web/hooks/useDirectionsUrl.js +1 -0
- package/native/components/Map/web/hooks/useMapFeatures.js +1 -0
- package/native/components/Map/web/hooks/useMapInput.js +3 -0
- package/native/components/Map/web/mapConfig.js +1 -0
- package/native/components/Map/web/mapRenderer.js +1 -0
- package/native/components/Map/web/services/google/googlePlaces.js +1 -0
- package/native/components/Map/web/services/index.js +1 -0
- package/native/components/Map/web/services/nominatim.js +1 -0
- package/native/components/Map/web/types.js +1 -0
- package/native/components/Map/web/utils/partitionOverlays.js +1 -0
- package/native/components/Map/web/utils.js +1 -0
- package/native/components/MapWidget.js +1 -0
- package/native/components/MapWidget.native.js +1 -0
- package/native/components/Markdown.js +3 -0
- package/native/components/MarkdownWidget.js +1 -0
- package/native/components/MediaDownloadButton.native.js +1 -0
- package/native/components/Placeholder.js +1 -0
- package/native/components/RadioGroup.js +1 -0
- package/native/components/Select.js +1 -0
- package/native/components/Spacer.js +1 -0
- package/native/components/Text.js +1 -0
- package/native/components/Textarea.js +1 -0
- package/native/components/Transition.js +1 -0
- package/native/components/Video.js +1 -0
- package/native/components/index.js +1 -0
- package/native/config.js +1 -0
- package/native/constants/validation.js +1 -0
- package/native/icons/icon-map.js +1 -0
- package/native/index.js +1 -0
- package/native/lib/utils.js +1 -0
- package/native/runtime/index.js +1 -0
- package/native/runtime/layoutContext.js +1 -0
- package/native/runtime/render.js +1 -0
- package/native/schema/action-types.js +1 -0
- package/native/schema/branding-types.js +0 -0
- package/native/schema/index.js +1 -0
- package/native/schema/widget-types.js +1 -0
- package/native/state/context.js +1 -0
- package/native/state/index.js +1 -0
- package/native/state/reducer.js +1 -0
- package/native/theme/ThemeContext.js +1 -0
- package/native/theme/defaults.js +1 -0
- package/native/theme/index.js +1 -0
- package/native/theme/resolveBranding.js +1 -0
- package/native/theme/style.js +1 -0
- package/native/theme/stylePipeline.js +1 -0
- package/native/theme/tokens.js +1 -0
- package/native/theme/variants.js +1 -0
- package/native/utils/formValidation.js +1 -0
- package/native/utils/formValidation.native.js +1 -0
- package/native/utils/formValidationCore.js +1 -0
- package/native/utils/safeRender.js +1 -0
- package/native/utils/widgetUtils.js +1 -0
- package/package.json +110 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2556 @@
|
|
|
1
|
+
import { Component } from 'react';
|
|
2
|
+
import { Context } from 'react';
|
|
3
|
+
import { default as default_2 } from 'react';
|
|
4
|
+
import { Dispatch } from 'react';
|
|
5
|
+
import { ErrorInfo } from 'react';
|
|
6
|
+
import { ImageStyle } from '../../react-native-web';
|
|
7
|
+
import { JSX } from 'react';
|
|
8
|
+
import { JSXElementConstructor } from 'react';
|
|
9
|
+
import { ReactElement } from 'react';
|
|
10
|
+
import { ReactNode } from 'react';
|
|
11
|
+
import { ReactPortal } from 'react';
|
|
12
|
+
import { TextStyle } from '../../react-native-web';
|
|
13
|
+
import { ViewStyle } from '../../react-native-web';
|
|
14
|
+
|
|
15
|
+
export declare const ACTION_TYPES: {
|
|
16
|
+
readonly URL: "url";
|
|
17
|
+
readonly TABS: "tabs";
|
|
18
|
+
readonly DATA_CHECKBOX: "data-checkbox";
|
|
19
|
+
readonly DATA_SELECT: "data-select";
|
|
20
|
+
readonly QUANTITY_CHANGE: "quantity.change";
|
|
21
|
+
readonly UPLOAD_SELECT: "upload.select";
|
|
22
|
+
readonly UPLOAD_REMOVE: "upload.remove";
|
|
23
|
+
readonly UPLOAD_ERROR: "upload.error";
|
|
24
|
+
readonly REPLY: "reply";
|
|
25
|
+
readonly REPLY_TEMPLATE: "reply-template";
|
|
26
|
+
readonly UPLOAD_SUBMIT: "upload.submit";
|
|
27
|
+
readonly ORDER_SUBMIT: "order.submit";
|
|
28
|
+
readonly MODE_CHANGE: "mode-change";
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export declare interface ActionConfig {
|
|
32
|
+
type: string;
|
|
33
|
+
payload?: Record<string, unknown>;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export declare type ActionHandler = (action: any, formData?: any, isConsumer?: boolean) => void;
|
|
37
|
+
|
|
38
|
+
declare type ActionHandler_2 = (action: ActionConfig,
|
|
39
|
+
e?: unknown,
|
|
40
|
+
isLoader?: unknown) => void;
|
|
41
|
+
|
|
42
|
+
export declare const ActionHandlerContext: Context<((action: any, formData?: any, isConsumer?: boolean) => void) | null>;
|
|
43
|
+
|
|
44
|
+
export declare type Alignment = (typeof ALIGNMENTS)[keyof typeof ALIGNMENTS];
|
|
45
|
+
|
|
46
|
+
export declare const ALIGNMENTS: {
|
|
47
|
+
readonly start: "start";
|
|
48
|
+
readonly center: "center";
|
|
49
|
+
readonly end: "end";
|
|
50
|
+
readonly baseline: "baseline";
|
|
51
|
+
readonly stretch: "stretch";
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
declare type AnyWidget = WidgetComponent | WidgetRoot;
|
|
55
|
+
|
|
56
|
+
export declare type AreaSeries = {
|
|
57
|
+
type: typeof SERIES_TYPES.area;
|
|
58
|
+
label?: string;
|
|
59
|
+
dataKey: string;
|
|
60
|
+
color?: ColorValue;
|
|
61
|
+
curveType?: CurveType;
|
|
62
|
+
stack?: string;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export declare function Badge(p: ResolvedBadge): JSX.Element;
|
|
66
|
+
|
|
67
|
+
declare type Badge_2 = BadgeProps;
|
|
68
|
+
|
|
69
|
+
export declare const BADGE_COLORS: {
|
|
70
|
+
readonly primary: "primary";
|
|
71
|
+
readonly secondary: "secondary";
|
|
72
|
+
readonly success: "success";
|
|
73
|
+
readonly danger: "danger";
|
|
74
|
+
readonly warning: "warning";
|
|
75
|
+
readonly info: "info";
|
|
76
|
+
readonly discovery: "discovery";
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export declare const BADGE_SIZES: {
|
|
80
|
+
readonly sm: "sm";
|
|
81
|
+
readonly md: "md";
|
|
82
|
+
readonly lg: "lg";
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export declare const BADGE_VARIANTS: {
|
|
86
|
+
readonly solid: "solid";
|
|
87
|
+
readonly soft: "soft";
|
|
88
|
+
readonly outline: "outline";
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export declare type BadgeColor = (typeof BADGE_COLORS)[keyof typeof BADGE_COLORS];
|
|
92
|
+
|
|
93
|
+
export declare type BadgeProps = {
|
|
94
|
+
type: "Badge";
|
|
95
|
+
key?: string;
|
|
96
|
+
id?: string;
|
|
97
|
+
label: string;
|
|
98
|
+
color?: BadgeColor;
|
|
99
|
+
variant?: BadgeVariant;
|
|
100
|
+
size?: BadgeSize;
|
|
101
|
+
pill?: boolean;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export declare type BadgeSize = (typeof BADGE_SIZES)[keyof typeof BADGE_SIZES];
|
|
105
|
+
|
|
106
|
+
export declare type BadgeVariant = (typeof BADGE_VARIANTS)[keyof typeof BADGE_VARIANTS];
|
|
107
|
+
|
|
108
|
+
declare type BadgeVariantKey = "solid" | "soft" | "outline";
|
|
109
|
+
|
|
110
|
+
export declare type BarSeries = {
|
|
111
|
+
type: typeof SERIES_TYPES.bar;
|
|
112
|
+
label?: string;
|
|
113
|
+
dataKey: string;
|
|
114
|
+
color?: ColorValue;
|
|
115
|
+
stack?: string;
|
|
116
|
+
};
|
|
117
|
+
|
|
118
|
+
declare const BASE_TOKENS: {
|
|
119
|
+
readonly spacingUnit: 3;
|
|
120
|
+
readonly space: {
|
|
121
|
+
readonly 0: 0;
|
|
122
|
+
readonly 2: 2;
|
|
123
|
+
readonly 4: 4;
|
|
124
|
+
readonly 6: 6;
|
|
125
|
+
readonly 8: 8;
|
|
126
|
+
readonly 10: 10;
|
|
127
|
+
readonly 12: 12;
|
|
128
|
+
readonly 14: 14;
|
|
129
|
+
readonly 16: 16;
|
|
130
|
+
readonly 20: 20;
|
|
131
|
+
readonly 24: 24;
|
|
132
|
+
readonly 32: 32;
|
|
133
|
+
};
|
|
134
|
+
readonly radius: {
|
|
135
|
+
readonly none: 0;
|
|
136
|
+
readonly "2xs": 2;
|
|
137
|
+
readonly xs: 4;
|
|
138
|
+
readonly sm: 6;
|
|
139
|
+
readonly md: 8;
|
|
140
|
+
readonly lg: 10;
|
|
141
|
+
readonly xl: 12;
|
|
142
|
+
readonly "2xl": 16;
|
|
143
|
+
readonly "3xl": 20;
|
|
144
|
+
readonly "4xl": 24;
|
|
145
|
+
readonly pill: 9999;
|
|
146
|
+
};
|
|
147
|
+
readonly font: {
|
|
148
|
+
readonly family: "System";
|
|
149
|
+
readonly monoFamily: "monospace";
|
|
150
|
+
readonly baseSize: 14;
|
|
151
|
+
readonly weight: {
|
|
152
|
+
readonly normal: "400";
|
|
153
|
+
readonly medium: "500";
|
|
154
|
+
readonly semibold: "600";
|
|
155
|
+
readonly bold: "700";
|
|
156
|
+
};
|
|
157
|
+
readonly size: {
|
|
158
|
+
readonly text: {
|
|
159
|
+
readonly xs: 12;
|
|
160
|
+
readonly sm: 14;
|
|
161
|
+
readonly md: 16;
|
|
162
|
+
readonly lg: 18;
|
|
163
|
+
readonly xl: 20;
|
|
164
|
+
readonly "2xl": 24;
|
|
165
|
+
readonly "3xl": 32;
|
|
166
|
+
readonly "2xs": 10;
|
|
167
|
+
};
|
|
168
|
+
readonly title: {
|
|
169
|
+
readonly sm: 18;
|
|
170
|
+
readonly md: 20;
|
|
171
|
+
readonly lg: 24;
|
|
172
|
+
readonly xl: 32;
|
|
173
|
+
readonly "2xl": 36;
|
|
174
|
+
readonly "3xl": 48;
|
|
175
|
+
readonly "4xl": 60;
|
|
176
|
+
readonly "5xl": 72;
|
|
177
|
+
};
|
|
178
|
+
readonly caption: {
|
|
179
|
+
readonly sm: 14;
|
|
180
|
+
readonly md: 16;
|
|
181
|
+
readonly lg: 18;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
readonly color: {
|
|
186
|
+
readonly surface: "#FFFFFF";
|
|
187
|
+
readonly surfaceAlt: "#F4F4F5";
|
|
188
|
+
readonly surfaceTertiary: "#F3F3F3";
|
|
189
|
+
readonly text: "#1A1A1A";
|
|
190
|
+
readonly textMuted: "#6B6B6B";
|
|
191
|
+
readonly textFaint: "#9B9B9B";
|
|
192
|
+
readonly placeholder: "#9B9B9B";
|
|
193
|
+
readonly border: "rgba(0,0,0,0.1)";
|
|
194
|
+
readonly borderInput: "rgba(0,0,0,0.1)";
|
|
195
|
+
readonly transparent: "transparent";
|
|
196
|
+
readonly primary: StatusColorTriplet;
|
|
197
|
+
readonly secondary: StatusColorTriplet;
|
|
198
|
+
readonly success: StatusColorTriplet;
|
|
199
|
+
readonly danger: StatusColorTriplet;
|
|
200
|
+
readonly warning: StatusColorTriplet;
|
|
201
|
+
readonly info: StatusColorTriplet;
|
|
202
|
+
readonly discovery: StatusColorTriplet;
|
|
203
|
+
};
|
|
204
|
+
readonly control: {
|
|
205
|
+
readonly size: {
|
|
206
|
+
readonly "3xs": {
|
|
207
|
+
readonly h: 22;
|
|
208
|
+
readonly padH: 6;
|
|
209
|
+
readonly font: 12;
|
|
210
|
+
readonly gap: 3;
|
|
211
|
+
readonly iconPx: 12;
|
|
212
|
+
readonly radiusScale: 0.375;
|
|
213
|
+
};
|
|
214
|
+
readonly "2xs": {
|
|
215
|
+
readonly h: 24;
|
|
216
|
+
readonly padH: 8;
|
|
217
|
+
readonly font: 12;
|
|
218
|
+
readonly gap: 4;
|
|
219
|
+
readonly iconPx: 12;
|
|
220
|
+
readonly radiusScale: 0.375;
|
|
221
|
+
};
|
|
222
|
+
readonly xs: {
|
|
223
|
+
readonly h: 26;
|
|
224
|
+
readonly padH: 8;
|
|
225
|
+
readonly font: 14;
|
|
226
|
+
readonly gap: 4;
|
|
227
|
+
readonly iconPx: 14;
|
|
228
|
+
readonly radiusScale: 0.375;
|
|
229
|
+
};
|
|
230
|
+
readonly sm: {
|
|
231
|
+
readonly h: 28;
|
|
232
|
+
readonly padH: 10;
|
|
233
|
+
readonly font: 14;
|
|
234
|
+
readonly gap: 4;
|
|
235
|
+
readonly iconPx: 16;
|
|
236
|
+
readonly radiusScale: 0.375;
|
|
237
|
+
};
|
|
238
|
+
readonly md: {
|
|
239
|
+
readonly h: 32;
|
|
240
|
+
readonly padH: 12;
|
|
241
|
+
readonly font: 14;
|
|
242
|
+
readonly gap: 6;
|
|
243
|
+
readonly iconPx: 18;
|
|
244
|
+
readonly radiusScale: 0.5;
|
|
245
|
+
};
|
|
246
|
+
readonly lg: {
|
|
247
|
+
readonly h: 36;
|
|
248
|
+
readonly padH: 12;
|
|
249
|
+
readonly font: 14;
|
|
250
|
+
readonly gap: 6;
|
|
251
|
+
readonly iconPx: 20;
|
|
252
|
+
readonly radiusScale: 0.5;
|
|
253
|
+
};
|
|
254
|
+
readonly xl: {
|
|
255
|
+
readonly h: 40;
|
|
256
|
+
readonly padH: 14;
|
|
257
|
+
readonly font: 16;
|
|
258
|
+
readonly gap: 6;
|
|
259
|
+
readonly iconPx: 22;
|
|
260
|
+
readonly radiusScale: 0.625;
|
|
261
|
+
};
|
|
262
|
+
readonly "2xl": {
|
|
263
|
+
readonly h: 44;
|
|
264
|
+
readonly padH: 16;
|
|
265
|
+
readonly font: 16;
|
|
266
|
+
readonly gap: 6;
|
|
267
|
+
readonly iconPx: 24;
|
|
268
|
+
readonly radiusScale: 0.625;
|
|
269
|
+
};
|
|
270
|
+
readonly "3xl": {
|
|
271
|
+
readonly h: 48;
|
|
272
|
+
readonly padH: 16;
|
|
273
|
+
readonly font: 16;
|
|
274
|
+
readonly gap: 6;
|
|
275
|
+
readonly iconPx: 24;
|
|
276
|
+
readonly radiusScale: 0.625;
|
|
277
|
+
};
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
readonly badge: {
|
|
281
|
+
readonly size: {
|
|
282
|
+
readonly sm: {
|
|
283
|
+
readonly padH: 5;
|
|
284
|
+
readonly font: 12;
|
|
285
|
+
readonly lineHeight: 20;
|
|
286
|
+
readonly radiusScale: 0.25;
|
|
287
|
+
};
|
|
288
|
+
readonly md: {
|
|
289
|
+
readonly padH: 6;
|
|
290
|
+
readonly font: 14;
|
|
291
|
+
readonly lineHeight: 22;
|
|
292
|
+
readonly radiusScale: 0.25;
|
|
293
|
+
};
|
|
294
|
+
readonly lg: {
|
|
295
|
+
readonly padH: 8;
|
|
296
|
+
readonly font: 14;
|
|
297
|
+
readonly lineHeight: 24;
|
|
298
|
+
readonly radiusScale: 0.375;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
readonly gap: 4;
|
|
302
|
+
readonly fontWeight: "600";
|
|
303
|
+
};
|
|
304
|
+
readonly card: {
|
|
305
|
+
readonly size: {
|
|
306
|
+
readonly sm: 400;
|
|
307
|
+
readonly md: 448;
|
|
308
|
+
readonly lg: 800;
|
|
309
|
+
readonly full: 9999;
|
|
310
|
+
};
|
|
311
|
+
readonly defaultPadPx: 16;
|
|
312
|
+
readonly contentGap: 12;
|
|
313
|
+
readonly actionRowGap: 8;
|
|
314
|
+
readonly shellGap: 12;
|
|
315
|
+
readonly actionButtonSize: "lg";
|
|
316
|
+
};
|
|
317
|
+
readonly icon: {
|
|
318
|
+
readonly size: {
|
|
319
|
+
readonly xs: 14;
|
|
320
|
+
readonly sm: 16;
|
|
321
|
+
readonly md: 18;
|
|
322
|
+
readonly lg: 20;
|
|
323
|
+
readonly xl: 22;
|
|
324
|
+
readonly "2xl": 24;
|
|
325
|
+
readonly "3xl": 26;
|
|
326
|
+
readonly button: 18;
|
|
327
|
+
};
|
|
328
|
+
readonly wrapperPad: 6;
|
|
329
|
+
readonly wrapperRoundingPct: 0.2;
|
|
330
|
+
};
|
|
331
|
+
readonly ui: {
|
|
332
|
+
readonly disabledOpacity: 0.5;
|
|
333
|
+
readonly pressedOpacity: 0.85;
|
|
334
|
+
readonly pressedOverlayAlpha: 0.04;
|
|
335
|
+
readonly hairlineAlpha: 0.1;
|
|
336
|
+
readonly hairlineBorder: number;
|
|
337
|
+
readonly cardBorderWidth: number;
|
|
338
|
+
};
|
|
339
|
+
readonly button: {
|
|
340
|
+
readonly alwaysPill: false;
|
|
341
|
+
};
|
|
342
|
+
readonly checkbox: {
|
|
343
|
+
readonly size: 18;
|
|
344
|
+
readonly borderWidth: 1.5;
|
|
345
|
+
readonly radius: 4;
|
|
346
|
+
readonly tick: {
|
|
347
|
+
readonly fontSize: 12;
|
|
348
|
+
readonly lineHeight: 14;
|
|
349
|
+
readonly weight: "700";
|
|
350
|
+
};
|
|
351
|
+
readonly rowGap: 8;
|
|
352
|
+
};
|
|
353
|
+
readonly radio: {
|
|
354
|
+
readonly ring: 20;
|
|
355
|
+
readonly ringBorder: 2;
|
|
356
|
+
readonly dot: 10;
|
|
357
|
+
readonly rowGap: 8;
|
|
358
|
+
readonly groupGap: 12;
|
|
359
|
+
};
|
|
360
|
+
readonly counter: {
|
|
361
|
+
readonly btn: 32;
|
|
362
|
+
readonly btnRadius: 8;
|
|
363
|
+
readonly glyph: {
|
|
364
|
+
readonly fontSize: 20;
|
|
365
|
+
readonly lineHeight: 22;
|
|
366
|
+
readonly weight: "400";
|
|
367
|
+
};
|
|
368
|
+
readonly valueMinWidth: 24;
|
|
369
|
+
readonly rowGap: 8;
|
|
370
|
+
};
|
|
371
|
+
readonly modal: {
|
|
372
|
+
readonly backdrop: "rgba(0,0,0,0.4)";
|
|
373
|
+
readonly sheetMaxHeight: "60%";
|
|
374
|
+
readonly sheetTopRadius: 16;
|
|
375
|
+
readonly sheetPadV: 4;
|
|
376
|
+
readonly optionPadV: 12;
|
|
377
|
+
readonly optionPadH: 16;
|
|
378
|
+
};
|
|
379
|
+
readonly overlay: {
|
|
380
|
+
readonly video: "rgba(0,0,0,0.15)";
|
|
381
|
+
readonly videoDefaultH: 200;
|
|
382
|
+
};
|
|
383
|
+
readonly glass: {
|
|
384
|
+
readonly fallbackBg: "rgba(255,255,255,0.04)";
|
|
385
|
+
readonly fallbackBorder: "rgba(255,255,255,0.10)";
|
|
386
|
+
readonly fallbackBorderWidth: 0.5;
|
|
387
|
+
readonly webFilter: "blur(40px) saturate(1.3) brightness(1.1)";
|
|
388
|
+
readonly nativeIntensity: 28;
|
|
389
|
+
readonly nativeTint: {
|
|
390
|
+
readonly dark: "systemUltraThinMaterialDark";
|
|
391
|
+
readonly light: "systemUltraThinMaterialLight";
|
|
392
|
+
};
|
|
393
|
+
readonly androidTint: {
|
|
394
|
+
readonly dark: "dark";
|
|
395
|
+
readonly light: "light";
|
|
396
|
+
};
|
|
397
|
+
readonly androidBlurMethod: "dimezisBlurView";
|
|
398
|
+
};
|
|
399
|
+
readonly placeholder: {
|
|
400
|
+
readonly padding: 16;
|
|
401
|
+
readonly minHeight: 80;
|
|
402
|
+
readonly innerGap: 4;
|
|
403
|
+
readonly borderWidth: 1;
|
|
404
|
+
readonly label: {
|
|
405
|
+
readonly fontSize: 13;
|
|
406
|
+
readonly weight: "600";
|
|
407
|
+
};
|
|
408
|
+
readonly note: {
|
|
409
|
+
readonly fontSize: 11;
|
|
410
|
+
};
|
|
411
|
+
};
|
|
412
|
+
readonly fileUpload: {
|
|
413
|
+
readonly rowGap: 12;
|
|
414
|
+
readonly padV: 10;
|
|
415
|
+
readonly padH: 14;
|
|
416
|
+
readonly colGap: 2;
|
|
417
|
+
readonly label: {
|
|
418
|
+
readonly fontSize: 14;
|
|
419
|
+
readonly weight: "500";
|
|
420
|
+
};
|
|
421
|
+
readonly hint: {
|
|
422
|
+
readonly fontSize: 11;
|
|
423
|
+
};
|
|
424
|
+
};
|
|
425
|
+
readonly banner: {
|
|
426
|
+
readonly padV: 8;
|
|
427
|
+
readonly padH: 12;
|
|
428
|
+
readonly gap: 6;
|
|
429
|
+
readonly defaultTextSize: "sm";
|
|
430
|
+
};
|
|
431
|
+
readonly listItem: {
|
|
432
|
+
readonly gap: 4;
|
|
433
|
+
readonly padV: 8;
|
|
434
|
+
};
|
|
435
|
+
readonly text: {
|
|
436
|
+
readonly captionOpacity: 0.9;
|
|
437
|
+
readonly titleLetterSpacing: -0.1;
|
|
438
|
+
readonly requiredMarker: {
|
|
439
|
+
readonly marginLeft: 4;
|
|
440
|
+
};
|
|
441
|
+
};
|
|
442
|
+
readonly layout: {
|
|
443
|
+
readonly button: {
|
|
444
|
+
readonly base: {
|
|
445
|
+
readonly alignSelf: "flex-start";
|
|
446
|
+
readonly flexDirection: "row";
|
|
447
|
+
readonly alignItems: "center";
|
|
448
|
+
readonly justifyContent: "center";
|
|
449
|
+
};
|
|
450
|
+
readonly block: {
|
|
451
|
+
readonly width: string;
|
|
452
|
+
readonly alignSelf: "stretch";
|
|
453
|
+
readonly flexShrink: 1;
|
|
454
|
+
} | {
|
|
455
|
+
readonly flex: number;
|
|
456
|
+
readonly alignSelf: "stretch";
|
|
457
|
+
readonly flexShrink: 1;
|
|
458
|
+
};
|
|
459
|
+
};
|
|
460
|
+
readonly badge: {
|
|
461
|
+
readonly pill: {
|
|
462
|
+
readonly flexDirection: "row";
|
|
463
|
+
readonly alignItems: "center";
|
|
464
|
+
readonly justifyContent: "center";
|
|
465
|
+
};
|
|
466
|
+
};
|
|
467
|
+
readonly card: {
|
|
468
|
+
readonly shell: {
|
|
469
|
+
readonly width: "100%";
|
|
470
|
+
readonly flexShrink: 0;
|
|
471
|
+
};
|
|
472
|
+
readonly wrapper: {
|
|
473
|
+
readonly width: "100%";
|
|
474
|
+
readonly overflow: "hidden";
|
|
475
|
+
};
|
|
476
|
+
readonly banner: {
|
|
477
|
+
readonly flexDirection: "row";
|
|
478
|
+
readonly alignItems: "center";
|
|
479
|
+
};
|
|
480
|
+
readonly actionRow: {
|
|
481
|
+
readonly flexDirection: "row";
|
|
482
|
+
readonly flexWrap: "wrap";
|
|
483
|
+
readonly justifyContent: "flex-start";
|
|
484
|
+
readonly alignItems: "center";
|
|
485
|
+
readonly width: "100%";
|
|
486
|
+
readonly flexShrink: 0;
|
|
487
|
+
};
|
|
488
|
+
};
|
|
489
|
+
readonly checkbox: {
|
|
490
|
+
readonly row: {
|
|
491
|
+
readonly flexDirection: "row";
|
|
492
|
+
readonly alignItems: "center";
|
|
493
|
+
};
|
|
494
|
+
readonly box: {
|
|
495
|
+
readonly alignItems: "center";
|
|
496
|
+
readonly justifyContent: "center";
|
|
497
|
+
};
|
|
498
|
+
};
|
|
499
|
+
readonly radio: {
|
|
500
|
+
readonly row: {
|
|
501
|
+
readonly flexDirection: "row";
|
|
502
|
+
readonly alignItems: "center";
|
|
503
|
+
};
|
|
504
|
+
readonly ring: {
|
|
505
|
+
readonly alignItems: "center";
|
|
506
|
+
readonly justifyContent: "center";
|
|
507
|
+
};
|
|
508
|
+
readonly group: {
|
|
509
|
+
readonly flexWrap: "wrap";
|
|
510
|
+
};
|
|
511
|
+
};
|
|
512
|
+
readonly counter: {
|
|
513
|
+
readonly row: {
|
|
514
|
+
readonly flexDirection: "row";
|
|
515
|
+
readonly alignItems: "center";
|
|
516
|
+
};
|
|
517
|
+
readonly btn: {
|
|
518
|
+
readonly alignItems: "center";
|
|
519
|
+
readonly justifyContent: "center";
|
|
520
|
+
};
|
|
521
|
+
readonly valueText: {
|
|
522
|
+
readonly textAlign: "center";
|
|
523
|
+
};
|
|
524
|
+
};
|
|
525
|
+
readonly input: {
|
|
526
|
+
readonly wrap: {
|
|
527
|
+
readonly justifyContent: "center";
|
|
528
|
+
};
|
|
529
|
+
readonly field: {
|
|
530
|
+
readonly flex: 1;
|
|
531
|
+
};
|
|
532
|
+
};
|
|
533
|
+
readonly select: {
|
|
534
|
+
readonly backdrop: {
|
|
535
|
+
readonly flex: 1;
|
|
536
|
+
readonly justifyContent: "flex-end";
|
|
537
|
+
};
|
|
538
|
+
readonly trigger: {
|
|
539
|
+
readonly flexDirection: "row";
|
|
540
|
+
readonly alignItems: "center";
|
|
541
|
+
readonly justifyContent: "space-between";
|
|
542
|
+
};
|
|
543
|
+
readonly block: {
|
|
544
|
+
readonly alignSelf: "stretch";
|
|
545
|
+
};
|
|
546
|
+
readonly sheetList: {
|
|
547
|
+
readonly flexGrow: 0;
|
|
548
|
+
};
|
|
549
|
+
readonly option: {
|
|
550
|
+
readonly flexDirection: "row";
|
|
551
|
+
readonly alignItems: "center";
|
|
552
|
+
readonly justifyContent: "space-between";
|
|
553
|
+
};
|
|
554
|
+
readonly label: {
|
|
555
|
+
readonly flex: 1;
|
|
556
|
+
};
|
|
557
|
+
};
|
|
558
|
+
readonly textarea: {
|
|
559
|
+
readonly input: {
|
|
560
|
+
readonly textAlignVertical: "top";
|
|
561
|
+
};
|
|
562
|
+
};
|
|
563
|
+
readonly datePicker: {
|
|
564
|
+
readonly input: {
|
|
565
|
+
readonly flex: 1;
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
readonly label: {
|
|
569
|
+
readonly row: {
|
|
570
|
+
readonly flexDirection: "row";
|
|
571
|
+
readonly alignItems: "center";
|
|
572
|
+
readonly marginBottom: 4;
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
readonly fileUpload: {
|
|
576
|
+
readonly row: {
|
|
577
|
+
readonly flexDirection: "row";
|
|
578
|
+
readonly alignItems: "center";
|
|
579
|
+
};
|
|
580
|
+
readonly col: {
|
|
581
|
+
readonly flex: 1;
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
readonly placeholder: {
|
|
585
|
+
readonly wrap: {
|
|
586
|
+
readonly borderStyle: "dashed";
|
|
587
|
+
readonly alignItems: "center";
|
|
588
|
+
readonly justifyContent: "center";
|
|
589
|
+
};
|
|
590
|
+
};
|
|
591
|
+
readonly video: {
|
|
592
|
+
readonly wrap: {
|
|
593
|
+
readonly overflow: "hidden";
|
|
594
|
+
readonly alignItems: "center";
|
|
595
|
+
readonly justifyContent: "center";
|
|
596
|
+
};
|
|
597
|
+
readonly overlay: {
|
|
598
|
+
readonly alignItems: "center";
|
|
599
|
+
readonly justifyContent: "center";
|
|
600
|
+
};
|
|
601
|
+
};
|
|
602
|
+
readonly icon: {
|
|
603
|
+
readonly wrapper: {
|
|
604
|
+
readonly alignItems: "center";
|
|
605
|
+
readonly justifyContent: "center";
|
|
606
|
+
readonly flexShrink: 0;
|
|
607
|
+
};
|
|
608
|
+
};
|
|
609
|
+
readonly image: {
|
|
610
|
+
readonly base: {
|
|
611
|
+
readonly backgroundColor: "transparent";
|
|
612
|
+
};
|
|
613
|
+
readonly placeholder: {
|
|
614
|
+
readonly alignItems: "center";
|
|
615
|
+
readonly justifyContent: "center";
|
|
616
|
+
};
|
|
617
|
+
};
|
|
618
|
+
readonly divider: {
|
|
619
|
+
readonly base: {
|
|
620
|
+
readonly alignSelf: "stretch";
|
|
621
|
+
};
|
|
622
|
+
};
|
|
623
|
+
readonly spacer: {
|
|
624
|
+
readonly base: {
|
|
625
|
+
readonly flex: 1;
|
|
626
|
+
};
|
|
627
|
+
};
|
|
628
|
+
readonly listItem: {
|
|
629
|
+
readonly row: {
|
|
630
|
+
readonly flexDirection: "row";
|
|
631
|
+
readonly alignSelf: "stretch";
|
|
632
|
+
};
|
|
633
|
+
};
|
|
634
|
+
readonly backgroundFill: {
|
|
635
|
+
readonly imageWrap: {
|
|
636
|
+
readonly overflow: "hidden";
|
|
637
|
+
};
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
export declare type BaseTextProps = {
|
|
643
|
+
value: string;
|
|
644
|
+
color?: ColorValue;
|
|
645
|
+
weight?: FontWeight;
|
|
646
|
+
textAlign?: TextAlign;
|
|
647
|
+
truncate?: boolean;
|
|
648
|
+
maxLines?: number;
|
|
649
|
+
};
|
|
650
|
+
|
|
651
|
+
export declare function BasicRoot(p: ResolvedBasic & {
|
|
652
|
+
children?: ReactNode;
|
|
653
|
+
}): JSX.Element;
|
|
654
|
+
|
|
655
|
+
declare type BasicRoot_2 = BasicRootProps;
|
|
656
|
+
|
|
657
|
+
export declare type BasicRootProps = {
|
|
658
|
+
type: "Basic";
|
|
659
|
+
key?: string;
|
|
660
|
+
id?: string;
|
|
661
|
+
children: (WidgetComponent | WidgetRoot)[];
|
|
662
|
+
theme?: ThemeModeOverride;
|
|
663
|
+
direction?: Direction;
|
|
664
|
+
} & Pick<BoxBaseProps, "gap" | "padding" | "align" | "justify">;
|
|
665
|
+
|
|
666
|
+
export declare type BlockProps = {
|
|
667
|
+
height?: number | string;
|
|
668
|
+
width?: number | string;
|
|
669
|
+
size?: number | string;
|
|
670
|
+
minHeight?: number | string;
|
|
671
|
+
minWidth?: number | string;
|
|
672
|
+
minSize?: number | string;
|
|
673
|
+
maxHeight?: number | string;
|
|
674
|
+
maxWidth?: number | string;
|
|
675
|
+
maxSize?: number | string;
|
|
676
|
+
aspectRatio?: number | string;
|
|
677
|
+
radius?: RadiusValue;
|
|
678
|
+
margin?: number | string | Spacing;
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
export declare type Border = {
|
|
682
|
+
size: number;
|
|
683
|
+
color?: ColorValue;
|
|
684
|
+
style?: BorderStyle;
|
|
685
|
+
};
|
|
686
|
+
|
|
687
|
+
export declare const BORDER_STYLES: {
|
|
688
|
+
readonly solid: "solid";
|
|
689
|
+
readonly dashed: "dashed";
|
|
690
|
+
readonly dotted: "dotted";
|
|
691
|
+
readonly double: "double";
|
|
692
|
+
readonly groove: "groove";
|
|
693
|
+
readonly ridge: "ridge";
|
|
694
|
+
readonly inset: "inset";
|
|
695
|
+
readonly outset: "outset";
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
export declare type Borders = {
|
|
699
|
+
top?: number | Border;
|
|
700
|
+
right?: number | Border;
|
|
701
|
+
bottom?: number | Border;
|
|
702
|
+
left?: number | Border;
|
|
703
|
+
x?: number | Border;
|
|
704
|
+
y?: number | Border;
|
|
705
|
+
};
|
|
706
|
+
|
|
707
|
+
declare interface BorderSpec {
|
|
708
|
+
style: "none" | "solid" | "dashed" | "dotted";
|
|
709
|
+
color: string;
|
|
710
|
+
opacity: number;
|
|
711
|
+
width: string;
|
|
712
|
+
radius: string;
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
export declare type BorderStyle = (typeof BORDER_STYLES)[keyof typeof BORDER_STYLES];
|
|
716
|
+
|
|
717
|
+
export declare type BorderValue = number | Border | Borders;
|
|
718
|
+
|
|
719
|
+
export declare function Box(p: ResolvedBox & {
|
|
720
|
+
children?: ReactNode;
|
|
721
|
+
}): JSX.Element;
|
|
722
|
+
|
|
723
|
+
declare type Box_2 = BoxProps;
|
|
724
|
+
|
|
725
|
+
export declare type BoxBaseProps = {
|
|
726
|
+
children?: WidgetComponent[];
|
|
727
|
+
align?: Alignment;
|
|
728
|
+
alignSelf?: Alignment;
|
|
729
|
+
justify?: Justification;
|
|
730
|
+
wrap?: WrapMode;
|
|
731
|
+
flex?: number | string;
|
|
732
|
+
gap?: number | string;
|
|
733
|
+
padding?: number | string | Spacing;
|
|
734
|
+
border?: BorderValue;
|
|
735
|
+
background?: ColorValue;
|
|
736
|
+
tint?: Tint;
|
|
737
|
+
scrollable?: boolean;
|
|
738
|
+
whiteSpace?: string;
|
|
739
|
+
hyphens?: string;
|
|
740
|
+
overflowWrap?: string;
|
|
741
|
+
wordBreak?: string;
|
|
742
|
+
tabId?: string;
|
|
743
|
+
activeId?: string;
|
|
744
|
+
onClickAction?: ActionConfig;
|
|
745
|
+
} & BlockProps;
|
|
746
|
+
|
|
747
|
+
export declare type BoxProps = {
|
|
748
|
+
type: "Box";
|
|
749
|
+
key?: string;
|
|
750
|
+
id?: string;
|
|
751
|
+
direction?: Direction;
|
|
752
|
+
} & BoxBaseProps;
|
|
753
|
+
|
|
754
|
+
export declare interface BrandingConfig {
|
|
755
|
+
start_screen?: {
|
|
756
|
+
mode?: string;
|
|
757
|
+
greeting_message?: string | null;
|
|
758
|
+
input_placeholder?: string;
|
|
759
|
+
};
|
|
760
|
+
typography: {
|
|
761
|
+
font_family: string;
|
|
762
|
+
font_family_mono?: string;
|
|
763
|
+
font_size: string | number;
|
|
764
|
+
};
|
|
765
|
+
corner_radius: "pill" | "rounded" | "sharp" | string;
|
|
766
|
+
themes: {
|
|
767
|
+
light: ThemeSpec;
|
|
768
|
+
dark?: ThemeSpec;
|
|
769
|
+
};
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
export declare function Button(p: ResolvedButton): JSX.Element;
|
|
773
|
+
|
|
774
|
+
declare type Button_2 = ButtonProps;
|
|
775
|
+
|
|
776
|
+
export declare const BUTTON_COLORS: {
|
|
777
|
+
readonly primary: "primary";
|
|
778
|
+
readonly secondary: "secondary";
|
|
779
|
+
readonly info: "info";
|
|
780
|
+
readonly discovery: "discovery";
|
|
781
|
+
readonly success: "success";
|
|
782
|
+
readonly caution: "caution";
|
|
783
|
+
readonly warning: "warning";
|
|
784
|
+
readonly danger: "danger";
|
|
785
|
+
};
|
|
786
|
+
|
|
787
|
+
export declare const BUTTON_ICON_SIZES: {
|
|
788
|
+
readonly sm: "sm";
|
|
789
|
+
readonly md: "md";
|
|
790
|
+
readonly lg: "lg";
|
|
791
|
+
readonly xl: "xl";
|
|
792
|
+
readonly "2xl": "2xl";
|
|
793
|
+
};
|
|
794
|
+
|
|
795
|
+
export declare const BUTTON_STYLE_SHORTHANDS: {
|
|
796
|
+
readonly primary: "primary";
|
|
797
|
+
readonly secondary: "secondary";
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
export declare type ButtonColor = (typeof BUTTON_COLORS)[keyof typeof BUTTON_COLORS];
|
|
801
|
+
|
|
802
|
+
export declare type ButtonIconSize = (typeof BUTTON_ICON_SIZES)[keyof typeof BUTTON_ICON_SIZES];
|
|
803
|
+
|
|
804
|
+
export declare type ButtonProps = {
|
|
805
|
+
type: "Button";
|
|
806
|
+
key?: string;
|
|
807
|
+
id?: string;
|
|
808
|
+
submit?: boolean;
|
|
809
|
+
label?: string;
|
|
810
|
+
onClickAction?: ActionConfig;
|
|
811
|
+
iconStart?: WidgetIcon;
|
|
812
|
+
iconEnd?: WidgetIcon;
|
|
813
|
+
style?: ButtonStyleShorthand;
|
|
814
|
+
iconSize?: ButtonIconSize;
|
|
815
|
+
color?: ButtonColor;
|
|
816
|
+
variant?: ControlVariant;
|
|
817
|
+
size?: ControlSize;
|
|
818
|
+
pill?: boolean;
|
|
819
|
+
radius?: RadiusValue | number | string;
|
|
820
|
+
uniform?: boolean;
|
|
821
|
+
block?: boolean;
|
|
822
|
+
width?: number | string;
|
|
823
|
+
disabled?: boolean;
|
|
824
|
+
loader?: boolean;
|
|
825
|
+
isActive?: boolean;
|
|
826
|
+
activeId?: string;
|
|
827
|
+
tabId?: string;
|
|
828
|
+
};
|
|
829
|
+
|
|
830
|
+
export declare type ButtonStyleShorthand = (typeof BUTTON_STYLE_SHORTHANDS)[keyof typeof BUTTON_STYLE_SHORTHANDS];
|
|
831
|
+
|
|
832
|
+
declare type ButtonVariantKey = "solid" | "soft" | "outline" | "ghost" | "tabs";
|
|
833
|
+
|
|
834
|
+
export declare function Caption(p: ResolvedCaption): JSX.Element;
|
|
835
|
+
|
|
836
|
+
declare type Caption_2 = CaptionProps;
|
|
837
|
+
|
|
838
|
+
export declare const CAPTION_SIZES: {
|
|
839
|
+
readonly sm: "sm";
|
|
840
|
+
readonly md: "md";
|
|
841
|
+
readonly lg: "lg";
|
|
842
|
+
};
|
|
843
|
+
|
|
844
|
+
export declare type CaptionProps = {
|
|
845
|
+
type: "Caption";
|
|
846
|
+
key?: string;
|
|
847
|
+
id?: string;
|
|
848
|
+
size?: CaptionSize;
|
|
849
|
+
} & BaseTextProps;
|
|
850
|
+
|
|
851
|
+
export declare type CaptionSize = (typeof CAPTION_SIZES)[keyof typeof CAPTION_SIZES];
|
|
852
|
+
|
|
853
|
+
export declare function Card(p: ResolvedCard & {
|
|
854
|
+
children?: ReactNode;
|
|
855
|
+
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | JSX.Element | null | undefined;
|
|
856
|
+
|
|
857
|
+
declare type Card_2 = CardProps;
|
|
858
|
+
|
|
859
|
+
export declare const CARD_SIZES: {
|
|
860
|
+
readonly sm: "sm";
|
|
861
|
+
readonly md: "md";
|
|
862
|
+
readonly lg: "lg";
|
|
863
|
+
readonly full: "full";
|
|
864
|
+
};
|
|
865
|
+
|
|
866
|
+
export declare type CardAction = {
|
|
867
|
+
label: string;
|
|
868
|
+
action: ActionConfig;
|
|
869
|
+
};
|
|
870
|
+
|
|
871
|
+
export declare type CardProps = {
|
|
872
|
+
type: "Card";
|
|
873
|
+
key?: string;
|
|
874
|
+
id?: string;
|
|
875
|
+
asForm?: boolean;
|
|
876
|
+
children: WidgetComponent[];
|
|
877
|
+
background?: ColorValue;
|
|
878
|
+
size?: CardSize;
|
|
879
|
+
padding?: number | string | Spacing;
|
|
880
|
+
status?: WidgetStatus;
|
|
881
|
+
collapsed?: boolean;
|
|
882
|
+
confirm?: CardAction;
|
|
883
|
+
cancel?: CardAction;
|
|
884
|
+
theme?: ThemeModeOverride;
|
|
885
|
+
border?: BorderValue;
|
|
886
|
+
borderRadius?: string;
|
|
887
|
+
borderColor?: string;
|
|
888
|
+
tint?: Tint;
|
|
889
|
+
};
|
|
890
|
+
|
|
891
|
+
export declare type CardSize = (typeof CARD_SIZES)[keyof typeof CARD_SIZES];
|
|
892
|
+
|
|
893
|
+
export declare function Chart(props: ChartProps_2): default_2.JSX.Element;
|
|
894
|
+
|
|
895
|
+
declare type Chart_2 = ChartProps;
|
|
896
|
+
|
|
897
|
+
export declare type ChartProps = {
|
|
898
|
+
type: "Chart";
|
|
899
|
+
key?: string;
|
|
900
|
+
id?: string;
|
|
901
|
+
data: Record<string, number | string>[];
|
|
902
|
+
series: Series[];
|
|
903
|
+
xAxis: XAxisConfig;
|
|
904
|
+
showYAxis?: boolean;
|
|
905
|
+
showLegend?: boolean;
|
|
906
|
+
barGap?: number;
|
|
907
|
+
barCategoryGap?: number;
|
|
908
|
+
flex?: number | string;
|
|
909
|
+
} & BlockProps;
|
|
910
|
+
|
|
911
|
+
declare type ChartProps_2 = Chart_2;
|
|
912
|
+
|
|
913
|
+
export declare function Checkbox(p: Checkbox_2): JSX.Element;
|
|
914
|
+
|
|
915
|
+
declare type Checkbox_2 = CheckboxProps;
|
|
916
|
+
|
|
917
|
+
export declare type CheckboxProps = {
|
|
918
|
+
type: "Checkbox";
|
|
919
|
+
key?: string;
|
|
920
|
+
id?: string;
|
|
921
|
+
name: string;
|
|
922
|
+
label?: string;
|
|
923
|
+
defaultChecked?: boolean;
|
|
924
|
+
onChangeAction?: ActionConfig;
|
|
925
|
+
disabled?: boolean;
|
|
926
|
+
required?: boolean;
|
|
927
|
+
};
|
|
928
|
+
|
|
929
|
+
export declare function Col(p: BoxBaseProps & {
|
|
930
|
+
children?: ReactNode;
|
|
931
|
+
}): JSX.Element;
|
|
932
|
+
|
|
933
|
+
declare type Col_2 = ColProps;
|
|
934
|
+
|
|
935
|
+
export declare type ColorValue = string | ThemeColor;
|
|
936
|
+
|
|
937
|
+
export declare type ColProps = {
|
|
938
|
+
type: "Col";
|
|
939
|
+
key?: string;
|
|
940
|
+
id?: string;
|
|
941
|
+
} & BoxBaseProps;
|
|
942
|
+
|
|
943
|
+
export declare function configureMap(_config: MapConfig): void;
|
|
944
|
+
|
|
945
|
+
export declare const CONSUMER_ACTIONS: Set<string>;
|
|
946
|
+
|
|
947
|
+
export declare interface ConsumerAction {
|
|
948
|
+
type: string;
|
|
949
|
+
payload: Record<string, unknown>;
|
|
950
|
+
state: Record<string, unknown>;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export declare const CONTROL_SIZES: {
|
|
954
|
+
readonly "3xs": "3xs";
|
|
955
|
+
readonly "2xs": "2xs";
|
|
956
|
+
readonly xs: "xs";
|
|
957
|
+
readonly sm: "sm";
|
|
958
|
+
readonly md: "md";
|
|
959
|
+
readonly lg: "lg";
|
|
960
|
+
readonly xl: "xl";
|
|
961
|
+
readonly "2xl": "2xl";
|
|
962
|
+
readonly "3xl": "3xl";
|
|
963
|
+
};
|
|
964
|
+
|
|
965
|
+
export declare const CONTROL_VARIANTS: {
|
|
966
|
+
readonly solid: "solid";
|
|
967
|
+
readonly soft: "soft";
|
|
968
|
+
readonly outline: "outline";
|
|
969
|
+
readonly ghost: "ghost";
|
|
970
|
+
readonly tabs: "tabs";
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
export declare type ControlSize = (typeof CONTROL_SIZES)[keyof typeof CONTROL_SIZES];
|
|
974
|
+
|
|
975
|
+
declare type ControlSizeKey = keyof typeof BASE_TOKENS.control.size;
|
|
976
|
+
|
|
977
|
+
export declare type ControlVariant = (typeof CONTROL_VARIANTS)[keyof typeof CONTROL_VARIANTS];
|
|
978
|
+
|
|
979
|
+
export declare interface CoreValidationError {
|
|
980
|
+
name: string;
|
|
981
|
+
message: string;
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
export declare interface CoreValidationResult {
|
|
985
|
+
valid: boolean;
|
|
986
|
+
errors: CoreValidationError[];
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
export declare const CURVE_TYPES: {
|
|
990
|
+
readonly basis: "basis";
|
|
991
|
+
readonly basisClosed: "basisClosed";
|
|
992
|
+
readonly basisOpen: "basisOpen";
|
|
993
|
+
readonly bumpX: "bumpX";
|
|
994
|
+
readonly bumpY: "bumpY";
|
|
995
|
+
readonly bump: "bump";
|
|
996
|
+
readonly linear: "linear";
|
|
997
|
+
readonly linearClosed: "linearClosed";
|
|
998
|
+
readonly natural: "natural";
|
|
999
|
+
readonly monotoneX: "monotoneX";
|
|
1000
|
+
readonly monotoneY: "monotoneY";
|
|
1001
|
+
readonly monotone: "monotone";
|
|
1002
|
+
readonly step: "step";
|
|
1003
|
+
readonly stepBefore: "stepBefore";
|
|
1004
|
+
readonly stepAfter: "stepAfter";
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
export declare type CurveType = (typeof CURVE_TYPES)[keyof typeof CURVE_TYPES];
|
|
1008
|
+
|
|
1009
|
+
export declare function DatePicker(p: ResolvedDatePicker): JSX.Element;
|
|
1010
|
+
|
|
1011
|
+
declare type DatePicker_2 = DatePickerProps;
|
|
1012
|
+
|
|
1013
|
+
export declare type DatePickerProps = {
|
|
1014
|
+
type: "DatePicker";
|
|
1015
|
+
key?: string;
|
|
1016
|
+
id?: string;
|
|
1017
|
+
name: string;
|
|
1018
|
+
onChangeAction?: ActionConfig;
|
|
1019
|
+
placeholder?: string;
|
|
1020
|
+
defaultValue?: string;
|
|
1021
|
+
min?: string;
|
|
1022
|
+
max?: string;
|
|
1023
|
+
variant?: ControlVariant;
|
|
1024
|
+
size?: ControlSize;
|
|
1025
|
+
side?: PopoverSide;
|
|
1026
|
+
align?: PopoverAlign;
|
|
1027
|
+
pill?: boolean;
|
|
1028
|
+
block?: boolean;
|
|
1029
|
+
clearable?: boolean;
|
|
1030
|
+
required?: boolean;
|
|
1031
|
+
disabled?: boolean;
|
|
1032
|
+
};
|
|
1033
|
+
|
|
1034
|
+
export declare type DeepPartial<T> = {
|
|
1035
|
+
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
export declare const DEFAULT_CONFIG: RendererConfig;
|
|
1039
|
+
|
|
1040
|
+
declare const defaults: {
|
|
1041
|
+
readonly Button: {
|
|
1042
|
+
readonly size: ControlSizeKey;
|
|
1043
|
+
readonly variant: "solid";
|
|
1044
|
+
readonly color: StatusColorKey;
|
|
1045
|
+
readonly pill: true;
|
|
1046
|
+
};
|
|
1047
|
+
readonly Input: {
|
|
1048
|
+
readonly size: ControlSizeKey;
|
|
1049
|
+
readonly variant: "soft";
|
|
1050
|
+
readonly inputType: "text";
|
|
1051
|
+
};
|
|
1052
|
+
readonly Select: {
|
|
1053
|
+
readonly size: ControlSizeKey;
|
|
1054
|
+
readonly variant: "soft";
|
|
1055
|
+
};
|
|
1056
|
+
readonly Textarea: {
|
|
1057
|
+
readonly size: ControlSizeKey;
|
|
1058
|
+
readonly variant: "soft";
|
|
1059
|
+
readonly rows: 3;
|
|
1060
|
+
};
|
|
1061
|
+
readonly DatePicker: {
|
|
1062
|
+
readonly size: ControlSizeKey;
|
|
1063
|
+
readonly variant: "soft";
|
|
1064
|
+
};
|
|
1065
|
+
readonly Badge: {
|
|
1066
|
+
readonly size: "md";
|
|
1067
|
+
readonly variant: "soft";
|
|
1068
|
+
readonly color: "secondary";
|
|
1069
|
+
readonly pill: true;
|
|
1070
|
+
};
|
|
1071
|
+
readonly Card: {
|
|
1072
|
+
readonly size: "md";
|
|
1073
|
+
};
|
|
1074
|
+
readonly Text: {
|
|
1075
|
+
readonly size: "md";
|
|
1076
|
+
readonly weight: "normal";
|
|
1077
|
+
};
|
|
1078
|
+
readonly Title: {
|
|
1079
|
+
readonly size: "lg";
|
|
1080
|
+
readonly weight: "semibold";
|
|
1081
|
+
};
|
|
1082
|
+
readonly Caption: {
|
|
1083
|
+
readonly size: "sm";
|
|
1084
|
+
readonly weight: "normal";
|
|
1085
|
+
};
|
|
1086
|
+
readonly Label: {
|
|
1087
|
+
readonly size: "md";
|
|
1088
|
+
readonly weight: "medium";
|
|
1089
|
+
};
|
|
1090
|
+
readonly Icon: {
|
|
1091
|
+
readonly size: "md";
|
|
1092
|
+
};
|
|
1093
|
+
readonly Box: {
|
|
1094
|
+
readonly direction: "col";
|
|
1095
|
+
};
|
|
1096
|
+
readonly Row: {};
|
|
1097
|
+
readonly Col: {};
|
|
1098
|
+
readonly Basic: {
|
|
1099
|
+
readonly direction: "col";
|
|
1100
|
+
};
|
|
1101
|
+
readonly ListView: {};
|
|
1102
|
+
readonly ListViewItem: {};
|
|
1103
|
+
readonly Spacer: {};
|
|
1104
|
+
readonly Divider: {};
|
|
1105
|
+
readonly Transition: {};
|
|
1106
|
+
readonly Image: {};
|
|
1107
|
+
readonly Video: {};
|
|
1108
|
+
readonly Form: {
|
|
1109
|
+
readonly direction: "col";
|
|
1110
|
+
};
|
|
1111
|
+
readonly Checkbox: {};
|
|
1112
|
+
readonly RadioGroup: {
|
|
1113
|
+
readonly direction: "col";
|
|
1114
|
+
};
|
|
1115
|
+
readonly FileUploadRequest: {};
|
|
1116
|
+
};
|
|
1117
|
+
|
|
1118
|
+
export declare type Direction = (typeof DIRECTIONS)[keyof typeof DIRECTIONS];
|
|
1119
|
+
|
|
1120
|
+
export declare const DIRECTIONS: {
|
|
1121
|
+
readonly row: "row";
|
|
1122
|
+
readonly col: "col";
|
|
1123
|
+
};
|
|
1124
|
+
|
|
1125
|
+
export declare function Divider(p: Divider_2): JSX.Element;
|
|
1126
|
+
|
|
1127
|
+
declare type Divider_2 = DividerProps;
|
|
1128
|
+
|
|
1129
|
+
export declare type DividerProps = {
|
|
1130
|
+
type: "Divider";
|
|
1131
|
+
key?: string;
|
|
1132
|
+
id?: string;
|
|
1133
|
+
color?: ColorValue;
|
|
1134
|
+
size?: number | string;
|
|
1135
|
+
spacing?: number | string;
|
|
1136
|
+
flush?: boolean;
|
|
1137
|
+
};
|
|
1138
|
+
|
|
1139
|
+
export declare interface FieldDescriptor {
|
|
1140
|
+
name: string;
|
|
1141
|
+
value: string;
|
|
1142
|
+
type: string;
|
|
1143
|
+
required: boolean;
|
|
1144
|
+
checked?: boolean;
|
|
1145
|
+
pattern?: string;
|
|
1146
|
+
dataPattern?: string;
|
|
1147
|
+
}
|
|
1148
|
+
|
|
1149
|
+
declare interface FileUploadEntry {
|
|
1150
|
+
file?: unknown;
|
|
1151
|
+
fileName?: string | null;
|
|
1152
|
+
uploaded?: boolean;
|
|
1153
|
+
loading?: boolean;
|
|
1154
|
+
error?: string | null;
|
|
1155
|
+
}
|
|
1156
|
+
|
|
1157
|
+
export declare function FileUploadRequest(p: FileUploadRequest_2): JSX.Element;
|
|
1158
|
+
|
|
1159
|
+
declare type FileUploadRequest_2 = FileUploadRequestProps;
|
|
1160
|
+
|
|
1161
|
+
export declare type FileUploadRequestProps = {
|
|
1162
|
+
type: "FileUploadRequest";
|
|
1163
|
+
key?: string;
|
|
1164
|
+
label: string;
|
|
1165
|
+
fileRequestId: string;
|
|
1166
|
+
icon: string;
|
|
1167
|
+
messageId?: string;
|
|
1168
|
+
maxFileSize?: number;
|
|
1169
|
+
allowedFileExtensions?: string[];
|
|
1170
|
+
uploaded?: boolean;
|
|
1171
|
+
fileName?: string | null;
|
|
1172
|
+
error?: string | null;
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1175
|
+
export declare const FIT_MODES: {
|
|
1176
|
+
readonly cover: "cover";
|
|
1177
|
+
readonly contain: "contain";
|
|
1178
|
+
readonly fill: "fill";
|
|
1179
|
+
readonly "scale-down": "scale-down";
|
|
1180
|
+
readonly none: "none";
|
|
1181
|
+
};
|
|
1182
|
+
|
|
1183
|
+
export declare type FitMode = (typeof FIT_MODES)[keyof typeof FIT_MODES];
|
|
1184
|
+
|
|
1185
|
+
export declare const FONT_WEIGHTS: {
|
|
1186
|
+
readonly normal: "normal";
|
|
1187
|
+
readonly medium: "medium";
|
|
1188
|
+
readonly semibold: "semibold";
|
|
1189
|
+
readonly bold: "bold";
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
export declare type FontWeight = (typeof FONT_WEIGHTS)[keyof typeof FONT_WEIGHTS];
|
|
1193
|
+
|
|
1194
|
+
export declare function Form(p: ResolvedForm & {
|
|
1195
|
+
children?: ReactNode;
|
|
1196
|
+
}): JSX.Element;
|
|
1197
|
+
|
|
1198
|
+
declare type Form_2 = FormProps;
|
|
1199
|
+
|
|
1200
|
+
export declare function formatOrderItems(fields: Record<string, string | number>): string;
|
|
1201
|
+
|
|
1202
|
+
export declare const FormContext: Context<FormContextValue_2 | null>;
|
|
1203
|
+
|
|
1204
|
+
export declare interface FormContextValue {
|
|
1205
|
+
submit: (() => void) | undefined;
|
|
1206
|
+
registerRequired: (name: string, required: boolean) => void;
|
|
1207
|
+
isRequired: (name: string) => boolean;
|
|
1208
|
+
}
|
|
1209
|
+
|
|
1210
|
+
declare interface FormContextValue_2 {
|
|
1211
|
+
submit: () => void;
|
|
1212
|
+
validate: () => boolean;
|
|
1213
|
+
formFields: Record<string, string>;
|
|
1214
|
+
registerRequired: (name: string, required: boolean, tabId?: string, type?: string, pattern?: string) => void;
|
|
1215
|
+
isRequired: (name: string) => boolean;
|
|
1216
|
+
validationErrors: Record<string, string>;
|
|
1217
|
+
setValidationErrors: (errors: Record<string, string>) => void;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
export declare type FormProps = {
|
|
1221
|
+
type: "Form";
|
|
1222
|
+
key?: string;
|
|
1223
|
+
id?: string;
|
|
1224
|
+
onSubmitAction?: ActionConfig;
|
|
1225
|
+
direction?: Direction;
|
|
1226
|
+
} & BoxBaseProps;
|
|
1227
|
+
|
|
1228
|
+
export declare const GUTTER_SIZES: {
|
|
1229
|
+
readonly "2xs": "2xs";
|
|
1230
|
+
readonly xs: "xs";
|
|
1231
|
+
readonly sm: "sm";
|
|
1232
|
+
readonly md: "md";
|
|
1233
|
+
readonly lg: "lg";
|
|
1234
|
+
readonly xl: "xl";
|
|
1235
|
+
};
|
|
1236
|
+
|
|
1237
|
+
export declare type GutterSize = (typeof GUTTER_SIZES)[keyof typeof GUTTER_SIZES];
|
|
1238
|
+
|
|
1239
|
+
export declare function Icon({ name, size, color, backgroundColor, background, }: IconProps_2): JSX.Element | null;
|
|
1240
|
+
|
|
1241
|
+
declare type Icon_2 = IconProps;
|
|
1242
|
+
|
|
1243
|
+
export declare const ICON_SIZES: {
|
|
1244
|
+
readonly xs: "xs";
|
|
1245
|
+
readonly sm: "sm";
|
|
1246
|
+
readonly md: "md";
|
|
1247
|
+
readonly lg: "lg";
|
|
1248
|
+
readonly xl: "xl";
|
|
1249
|
+
readonly "2xl": "2xl";
|
|
1250
|
+
readonly "3xl": "3xl";
|
|
1251
|
+
readonly button: "button";
|
|
1252
|
+
};
|
|
1253
|
+
|
|
1254
|
+
export declare type IconProps = {
|
|
1255
|
+
type: "Icon";
|
|
1256
|
+
key?: string;
|
|
1257
|
+
id?: string;
|
|
1258
|
+
name: WidgetIcon;
|
|
1259
|
+
color?: ColorValue;
|
|
1260
|
+
size?: IconSize;
|
|
1261
|
+
backgroundColor?: ColorValue;
|
|
1262
|
+
background?: ColorValue;
|
|
1263
|
+
};
|
|
1264
|
+
|
|
1265
|
+
declare interface IconProps_2 {
|
|
1266
|
+
name: string;
|
|
1267
|
+
size?: IconSizeKey;
|
|
1268
|
+
color?: string | ThemeColor;
|
|
1269
|
+
backgroundColor?: string | ThemeColor;
|
|
1270
|
+
background?: string | ThemeColor;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
export declare type IconSize = (typeof ICON_SIZES)[keyof typeof ICON_SIZES];
|
|
1274
|
+
|
|
1275
|
+
declare type IconSizeKey = keyof typeof BASE_TOKENS.icon.size;
|
|
1276
|
+
|
|
1277
|
+
declare function Image_2(p: Image_3): JSX.Element;
|
|
1278
|
+
export { Image_2 as Image }
|
|
1279
|
+
|
|
1280
|
+
declare type Image_3 = ImageProps;
|
|
1281
|
+
|
|
1282
|
+
export declare const IMAGE_POSITIONS: {
|
|
1283
|
+
readonly "top left": "top left";
|
|
1284
|
+
readonly top: "top";
|
|
1285
|
+
readonly "top right": "top right";
|
|
1286
|
+
readonly left: "left";
|
|
1287
|
+
readonly center: "center";
|
|
1288
|
+
readonly right: "right";
|
|
1289
|
+
readonly "bottom left": "bottom left";
|
|
1290
|
+
readonly bottom: "bottom";
|
|
1291
|
+
readonly "bottom right": "bottom right";
|
|
1292
|
+
};
|
|
1293
|
+
|
|
1294
|
+
export declare type ImagePosition = (typeof IMAGE_POSITIONS)[keyof typeof IMAGE_POSITIONS];
|
|
1295
|
+
|
|
1296
|
+
export declare type ImageProps = {
|
|
1297
|
+
type: "Image";
|
|
1298
|
+
key?: string;
|
|
1299
|
+
id?: string;
|
|
1300
|
+
src: string;
|
|
1301
|
+
alt?: string;
|
|
1302
|
+
frame?: boolean;
|
|
1303
|
+
fit?: FitMode;
|
|
1304
|
+
position?: ImagePosition;
|
|
1305
|
+
flush?: boolean;
|
|
1306
|
+
} & BlockProps;
|
|
1307
|
+
|
|
1308
|
+
export declare function Input(p: ResolvedInput): JSX.Element;
|
|
1309
|
+
|
|
1310
|
+
declare type Input_2 = InputProps;
|
|
1311
|
+
|
|
1312
|
+
export declare const INPUT_TYPES: {
|
|
1313
|
+
readonly number: "number";
|
|
1314
|
+
readonly email: "email";
|
|
1315
|
+
readonly text: "text";
|
|
1316
|
+
readonly password: "password";
|
|
1317
|
+
readonly tel: "tel";
|
|
1318
|
+
readonly url: "url";
|
|
1319
|
+
readonly card_number: "card_number";
|
|
1320
|
+
readonly month_year: "month_year";
|
|
1321
|
+
readonly cvc: "cvc";
|
|
1322
|
+
readonly counter: "counter";
|
|
1323
|
+
};
|
|
1324
|
+
|
|
1325
|
+
export declare const INPUT_VARIANTS: {
|
|
1326
|
+
readonly soft: "soft";
|
|
1327
|
+
readonly outline: "outline";
|
|
1328
|
+
};
|
|
1329
|
+
|
|
1330
|
+
export declare type InputProps = {
|
|
1331
|
+
type: "Input";
|
|
1332
|
+
key?: string;
|
|
1333
|
+
id?: string;
|
|
1334
|
+
name: string;
|
|
1335
|
+
inputType?: InputType;
|
|
1336
|
+
defaultValue?: string;
|
|
1337
|
+
required?: boolean;
|
|
1338
|
+
pattern?: string;
|
|
1339
|
+
placeholder?: string;
|
|
1340
|
+
allowAutofillExtensions?: boolean;
|
|
1341
|
+
autoSelect?: boolean;
|
|
1342
|
+
autoFocus?: boolean;
|
|
1343
|
+
disabled?: boolean;
|
|
1344
|
+
variant?: InputVariant;
|
|
1345
|
+
size?: ControlSize;
|
|
1346
|
+
gutterSize?: GutterSize;
|
|
1347
|
+
pill?: boolean;
|
|
1348
|
+
onChangeAction?: ActionConfig;
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1351
|
+
export declare type InputType = (typeof INPUT_TYPES)[keyof typeof INPUT_TYPES];
|
|
1352
|
+
|
|
1353
|
+
export declare type InputVariant = (typeof INPUT_VARIANTS)[keyof typeof INPUT_VARIANTS];
|
|
1354
|
+
|
|
1355
|
+
declare type InputVariantKey = "soft" | "outline" | "ghost";
|
|
1356
|
+
|
|
1357
|
+
export declare type Justification = (typeof JUSTIFICATIONS)[keyof typeof JUSTIFICATIONS];
|
|
1358
|
+
|
|
1359
|
+
export declare const JUSTIFICATIONS: {
|
|
1360
|
+
readonly start: "start";
|
|
1361
|
+
readonly center: "center";
|
|
1362
|
+
readonly end: "end";
|
|
1363
|
+
readonly between: "between";
|
|
1364
|
+
readonly around: "around";
|
|
1365
|
+
readonly evenly: "evenly";
|
|
1366
|
+
readonly stretch: "stretch";
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
export declare function Label(p: ResolvedLabel): JSX.Element;
|
|
1370
|
+
|
|
1371
|
+
declare type Label_2 = LabelProps;
|
|
1372
|
+
|
|
1373
|
+
export declare type LabelProps = {
|
|
1374
|
+
type: "Label";
|
|
1375
|
+
key?: string;
|
|
1376
|
+
id?: string;
|
|
1377
|
+
value: string;
|
|
1378
|
+
fieldName: string;
|
|
1379
|
+
size?: TextSize;
|
|
1380
|
+
weight?: FontWeight;
|
|
1381
|
+
textAlign?: TextAlign;
|
|
1382
|
+
color?: ColorValue;
|
|
1383
|
+
};
|
|
1384
|
+
|
|
1385
|
+
export declare const LIMIT_AUTO: "auto";
|
|
1386
|
+
|
|
1387
|
+
export declare type LineSeries = {
|
|
1388
|
+
type: typeof SERIES_TYPES.line;
|
|
1389
|
+
label?: string;
|
|
1390
|
+
dataKey: string;
|
|
1391
|
+
color?: ColorValue;
|
|
1392
|
+
curveType?: CurveType;
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
export declare function ListView(p: ListView_2 & {
|
|
1396
|
+
children?: ReactNode;
|
|
1397
|
+
}): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | JSX.Element | null | undefined;
|
|
1398
|
+
|
|
1399
|
+
declare type ListView_2 = ListViewProps;
|
|
1400
|
+
|
|
1401
|
+
export declare function ListViewItem(p: ListViewItem_2 & {
|
|
1402
|
+
children?: ReactNode;
|
|
1403
|
+
stretchTallest?: boolean;
|
|
1404
|
+
}): ReactElement<unknown, string | JSXElementConstructor<any>>;
|
|
1405
|
+
|
|
1406
|
+
declare type ListViewItem_2 = ListViewItemProps;
|
|
1407
|
+
|
|
1408
|
+
export declare type ListViewItemProps = {
|
|
1409
|
+
type: "ListViewItem";
|
|
1410
|
+
key?: string;
|
|
1411
|
+
id?: string;
|
|
1412
|
+
children: WidgetComponent[];
|
|
1413
|
+
onClickAction?: ActionConfig;
|
|
1414
|
+
gap?: number | string;
|
|
1415
|
+
align?: Alignment;
|
|
1416
|
+
props?: Record<string, unknown>;
|
|
1417
|
+
width?: number | string;
|
|
1418
|
+
height?: number | string;
|
|
1419
|
+
minWidth?: number | string;
|
|
1420
|
+
minHeight?: number | string;
|
|
1421
|
+
overflow?: string;
|
|
1422
|
+
backgroundColor?: string;
|
|
1423
|
+
background?: string;
|
|
1424
|
+
border?: BorderValue;
|
|
1425
|
+
radius?: RadiusValue | number | string;
|
|
1426
|
+
};
|
|
1427
|
+
|
|
1428
|
+
export declare type ListViewProps = {
|
|
1429
|
+
type: "ListView";
|
|
1430
|
+
key?: string;
|
|
1431
|
+
id?: string;
|
|
1432
|
+
children: ListViewItem_2[];
|
|
1433
|
+
limit?: number | typeof LIMIT_AUTO;
|
|
1434
|
+
status?: WidgetStatus;
|
|
1435
|
+
theme?: ThemeModeOverride;
|
|
1436
|
+
direction?: Direction;
|
|
1437
|
+
gap?: number | string;
|
|
1438
|
+
scrollable?: boolean;
|
|
1439
|
+
maxWidth?: number | string;
|
|
1440
|
+
width?: number | string;
|
|
1441
|
+
backgroundColor?: ColorValue;
|
|
1442
|
+
border?: BorderValue;
|
|
1443
|
+
borderRadius?: string;
|
|
1444
|
+
borderColor?: string;
|
|
1445
|
+
tint?: Tint;
|
|
1446
|
+
background?: ColorValue;
|
|
1447
|
+
padding?: number | string | Spacing;
|
|
1448
|
+
showScrollIndicator?: boolean;
|
|
1449
|
+
tabId?: string;
|
|
1450
|
+
isActive?: string;
|
|
1451
|
+
activeId?: string;
|
|
1452
|
+
};
|
|
1453
|
+
|
|
1454
|
+
export declare interface LocationCoordinates {
|
|
1455
|
+
lat: number;
|
|
1456
|
+
lng: number;
|
|
1457
|
+
}
|
|
1458
|
+
|
|
1459
|
+
export declare const MAP_MODES: {
|
|
1460
|
+
readonly display: "display";
|
|
1461
|
+
readonly input: "input";
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
export declare type MapCircle = MapCircleProps;
|
|
1465
|
+
|
|
1466
|
+
export declare type MapCircleProps = {
|
|
1467
|
+
type: "MapCircle";
|
|
1468
|
+
key?: string;
|
|
1469
|
+
id?: string;
|
|
1470
|
+
center: MapCoordinate;
|
|
1471
|
+
radius: number;
|
|
1472
|
+
color?: string;
|
|
1473
|
+
fillColor?: string;
|
|
1474
|
+
fillOpacity?: number;
|
|
1475
|
+
weight?: number;
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
export declare interface MapConfig {
|
|
1479
|
+
provider?: string;
|
|
1480
|
+
googleMapsApiKey?: string;
|
|
1481
|
+
googleMapsMapId?: string;
|
|
1482
|
+
thunderforestApiKey?: string;
|
|
1483
|
+
}
|
|
1484
|
+
|
|
1485
|
+
export declare type MapCoordinate = {
|
|
1486
|
+
lat: number;
|
|
1487
|
+
long?: number;
|
|
1488
|
+
lng?: number;
|
|
1489
|
+
};
|
|
1490
|
+
|
|
1491
|
+
export declare type MapMarker = MapMarkerProps;
|
|
1492
|
+
|
|
1493
|
+
export declare type MapMarkerProps = {
|
|
1494
|
+
type: "MapMarker";
|
|
1495
|
+
key?: string;
|
|
1496
|
+
id?: string;
|
|
1497
|
+
position: MapCoordinate;
|
|
1498
|
+
label?: string;
|
|
1499
|
+
icon?: string;
|
|
1500
|
+
color?: string;
|
|
1501
|
+
onClickAction?: ActionConfig;
|
|
1502
|
+
};
|
|
1503
|
+
|
|
1504
|
+
export declare type MapMode = (typeof MAP_MODES)[keyof typeof MAP_MODES];
|
|
1505
|
+
|
|
1506
|
+
export declare type MapOverlay = MapMarker | MapPolyline | MapCircle | MapPolygon;
|
|
1507
|
+
|
|
1508
|
+
export declare type MapPolygon = MapPolygonProps;
|
|
1509
|
+
|
|
1510
|
+
export declare type MapPolygonProps = {
|
|
1511
|
+
type: "MapPolygon";
|
|
1512
|
+
key?: string;
|
|
1513
|
+
id?: string;
|
|
1514
|
+
path: MapCoordinate[];
|
|
1515
|
+
color?: string;
|
|
1516
|
+
fillColor?: string;
|
|
1517
|
+
fillOpacity?: number;
|
|
1518
|
+
weight?: number;
|
|
1519
|
+
};
|
|
1520
|
+
|
|
1521
|
+
export declare type MapPolyline = MapPolylineProps;
|
|
1522
|
+
|
|
1523
|
+
export declare type MapPolylineProps = {
|
|
1524
|
+
type: "MapPolyline";
|
|
1525
|
+
key?: string;
|
|
1526
|
+
id?: string;
|
|
1527
|
+
path: MapCoordinate[];
|
|
1528
|
+
color?: string;
|
|
1529
|
+
weight?: number;
|
|
1530
|
+
opacity?: number;
|
|
1531
|
+
dashed?: boolean;
|
|
1532
|
+
};
|
|
1533
|
+
|
|
1534
|
+
export declare type MapWidget = MapWidgetProps;
|
|
1535
|
+
|
|
1536
|
+
export declare type MapWidgetProps = {
|
|
1537
|
+
type: "Map";
|
|
1538
|
+
key?: string;
|
|
1539
|
+
id?: string;
|
|
1540
|
+
mode?: MapMode;
|
|
1541
|
+
name?: string;
|
|
1542
|
+
center?: MapCoordinate;
|
|
1543
|
+
height: string;
|
|
1544
|
+
width: string;
|
|
1545
|
+
zoom?: number;
|
|
1546
|
+
children?: MapOverlay[];
|
|
1547
|
+
allowSearch?: boolean;
|
|
1548
|
+
};
|
|
1549
|
+
|
|
1550
|
+
export declare function Markdown(props: MarkdownProps_2): default_2.JSX.Element;
|
|
1551
|
+
|
|
1552
|
+
declare type Markdown_2 = MarkdownProps;
|
|
1553
|
+
|
|
1554
|
+
export declare type MarkdownProps = {
|
|
1555
|
+
type: "Markdown";
|
|
1556
|
+
key?: string;
|
|
1557
|
+
id?: string;
|
|
1558
|
+
value: string;
|
|
1559
|
+
streaming?: boolean;
|
|
1560
|
+
};
|
|
1561
|
+
|
|
1562
|
+
declare type MarkdownProps_2 = Markdown_2;
|
|
1563
|
+
|
|
1564
|
+
export declare function markRequiredLabels(form: HTMLFormElement | null): void;
|
|
1565
|
+
|
|
1566
|
+
export declare function mergeConfig(overrides?: DeepPartial<RendererConfig>): RendererConfig;
|
|
1567
|
+
|
|
1568
|
+
export declare type OnConsumerAction = (action: ConsumerAction) => void;
|
|
1569
|
+
|
|
1570
|
+
export declare const POPOVER_ALIGNS: {
|
|
1571
|
+
readonly start: "start";
|
|
1572
|
+
readonly center: "center";
|
|
1573
|
+
readonly end: "end";
|
|
1574
|
+
};
|
|
1575
|
+
|
|
1576
|
+
export declare const POPOVER_SIDES: {
|
|
1577
|
+
readonly top: "top";
|
|
1578
|
+
readonly bottom: "bottom";
|
|
1579
|
+
readonly left: "left";
|
|
1580
|
+
readonly right: "right";
|
|
1581
|
+
};
|
|
1582
|
+
|
|
1583
|
+
export declare type PopoverAlign = (typeof POPOVER_ALIGNS)[keyof typeof POPOVER_ALIGNS];
|
|
1584
|
+
|
|
1585
|
+
export declare type PopoverSide = (typeof POPOVER_SIDES)[keyof typeof POPOVER_SIDES];
|
|
1586
|
+
|
|
1587
|
+
export declare const PRELOAD_MODES: {
|
|
1588
|
+
readonly auto: "auto";
|
|
1589
|
+
readonly metadata: "metadata";
|
|
1590
|
+
readonly none: "none";
|
|
1591
|
+
};
|
|
1592
|
+
|
|
1593
|
+
export declare type PreloadMode = (typeof PRELOAD_MODES)[keyof typeof PRELOAD_MODES];
|
|
1594
|
+
|
|
1595
|
+
declare interface Props {
|
|
1596
|
+
children: ReactNode;
|
|
1597
|
+
fallback?: ReactNode;
|
|
1598
|
+
onError?: (error: Error, info: ErrorInfo) => void;
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
export declare function RadioGroup(p: ResolvedRadioGroup): JSX.Element;
|
|
1602
|
+
|
|
1603
|
+
declare type RadioGroup_2 = RadioGroupProps;
|
|
1604
|
+
|
|
1605
|
+
export declare type RadioGroupProps = {
|
|
1606
|
+
type: "RadioGroup";
|
|
1607
|
+
key?: string;
|
|
1608
|
+
id?: string;
|
|
1609
|
+
name: string;
|
|
1610
|
+
options?: {
|
|
1611
|
+
label: string;
|
|
1612
|
+
value: string;
|
|
1613
|
+
disabled?: boolean;
|
|
1614
|
+
}[];
|
|
1615
|
+
ariaLabel?: string;
|
|
1616
|
+
onChangeAction?: ActionConfig;
|
|
1617
|
+
defaultValue?: string;
|
|
1618
|
+
direction?: Direction;
|
|
1619
|
+
disabled?: boolean;
|
|
1620
|
+
required?: boolean;
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
export declare const RADIUS_VALUES: {
|
|
1624
|
+
readonly "2xs": "2xs";
|
|
1625
|
+
readonly xs: "xs";
|
|
1626
|
+
readonly sm: "sm";
|
|
1627
|
+
readonly md: "md";
|
|
1628
|
+
readonly lg: "lg";
|
|
1629
|
+
readonly xl: "xl";
|
|
1630
|
+
readonly "2xl": "2xl";
|
|
1631
|
+
readonly "3xl": "3xl";
|
|
1632
|
+
readonly "4xl": "4xl";
|
|
1633
|
+
readonly full: "full";
|
|
1634
|
+
readonly "100%": "100%";
|
|
1635
|
+
readonly none: "none";
|
|
1636
|
+
};
|
|
1637
|
+
|
|
1638
|
+
export declare type RadiusValue = (typeof RADIUS_VALUES)[keyof typeof RADIUS_VALUES];
|
|
1639
|
+
|
|
1640
|
+
export declare const REDUCER_ACTIONS: {
|
|
1641
|
+
readonly TOGGLE_CHECKBOX: "TOGGLE_CHECKBOX";
|
|
1642
|
+
readonly SET_CHECKBOX_DATA: "SET_CHECKBOX_DATA";
|
|
1643
|
+
readonly CLEAR_SELECTIONS: "CLEAR_SELECTIONS";
|
|
1644
|
+
readonly SET_SELECTED_CATEGORY: "SET_SELECTED_CATEGORY";
|
|
1645
|
+
readonly TOGGLE_QUANTITY: "TOGGLE_QUANTITY";
|
|
1646
|
+
readonly UPLOAD_FILE: "UPLOAD_FILE";
|
|
1647
|
+
readonly REMOVE_FILE: "REMOVE_FILE";
|
|
1648
|
+
readonly SET_UPLOAD_ERROR: "SET_UPLOAD_ERROR";
|
|
1649
|
+
readonly RESET_UPLOADS: "RESET_UPLOADS";
|
|
1650
|
+
readonly SET_FORM_FIELD: "SET_FORM_FIELD";
|
|
1651
|
+
};
|
|
1652
|
+
|
|
1653
|
+
export declare interface RendererConfig {
|
|
1654
|
+
scroll: {
|
|
1655
|
+
allowOrthogonalAxis: boolean;
|
|
1656
|
+
forbidSameAxis: boolean;
|
|
1657
|
+
};
|
|
1658
|
+
animation: {
|
|
1659
|
+
transitionDurationMs: number;
|
|
1660
|
+
};
|
|
1661
|
+
fileUpload: {
|
|
1662
|
+
maxSizeBytes: number;
|
|
1663
|
+
allowedExtensions: string[];
|
|
1664
|
+
};
|
|
1665
|
+
template: {
|
|
1666
|
+
dataSelectToken: string;
|
|
1667
|
+
dataCheckboxToken: string;
|
|
1668
|
+
dataInputToken: string;
|
|
1669
|
+
dataFieldPattern: RegExp;
|
|
1670
|
+
formPlaceholderPattern: RegExp;
|
|
1671
|
+
};
|
|
1672
|
+
platform: {
|
|
1673
|
+
monoFontFamily: string;
|
|
1674
|
+
};
|
|
1675
|
+
}
|
|
1676
|
+
|
|
1677
|
+
export declare function renderWidget(widget: AnyWidget): React.ReactElement;
|
|
1678
|
+
|
|
1679
|
+
declare type Resolved<Schema, Defaulted extends object> = Omit<Schema, keyof Defaulted> & {
|
|
1680
|
+
[K in Extract<keyof Defaulted, keyof Schema>]-?: NonNullable<Schema[K]>;
|
|
1681
|
+
};
|
|
1682
|
+
|
|
1683
|
+
declare type ResolvedBadge = Resolved<Badge_2, typeof defaults.Badge>;
|
|
1684
|
+
|
|
1685
|
+
declare type ResolvedBasic = Resolved<BasicRoot_2, typeof defaults.Basic>;
|
|
1686
|
+
|
|
1687
|
+
declare type ResolvedBox = Resolved<Box_2, typeof defaults.Box>;
|
|
1688
|
+
|
|
1689
|
+
declare type ResolvedButton = Resolved<Button_2, typeof defaults.Button>;
|
|
1690
|
+
|
|
1691
|
+
declare type ResolvedCaption = Resolved<Caption_2, typeof defaults.Caption>;
|
|
1692
|
+
|
|
1693
|
+
declare type ResolvedCard = Resolved<Card_2, typeof defaults.Card>;
|
|
1694
|
+
|
|
1695
|
+
declare type ResolvedDatePicker = Resolved<DatePicker_2, typeof defaults.DatePicker>;
|
|
1696
|
+
|
|
1697
|
+
declare type ResolvedForm = Resolved<Form_2, typeof defaults.Form>;
|
|
1698
|
+
|
|
1699
|
+
declare type ResolvedInput = Resolved<Input_2, typeof defaults.Input>;
|
|
1700
|
+
|
|
1701
|
+
declare type ResolvedLabel = Resolved<Label_2, typeof defaults.Label>;
|
|
1702
|
+
|
|
1703
|
+
declare type ResolvedRadioGroup = Resolved<RadioGroup_2, typeof defaults.RadioGroup>;
|
|
1704
|
+
|
|
1705
|
+
declare type ResolvedSelect = Resolved<Select_2, typeof defaults.Select>;
|
|
1706
|
+
|
|
1707
|
+
declare type ResolvedText = Resolved<Text_3, typeof defaults.Text>;
|
|
1708
|
+
|
|
1709
|
+
declare type ResolvedTextarea = Resolved<Textarea_2, typeof defaults.Textarea>;
|
|
1710
|
+
|
|
1711
|
+
declare type ResolvedTitle = Resolved<Title_2, typeof defaults.Title>;
|
|
1712
|
+
|
|
1713
|
+
export declare function resolveTemplate(templateText: string, state: {
|
|
1714
|
+
checkboxes?: {
|
|
1715
|
+
selected?: string[];
|
|
1716
|
+
};
|
|
1717
|
+
formFields?: Record<string, string>;
|
|
1718
|
+
}, payload?: Record<string, unknown>, config?: RendererConfig): string;
|
|
1719
|
+
|
|
1720
|
+
export declare function Row(p: BoxBaseProps & {
|
|
1721
|
+
children?: ReactNode;
|
|
1722
|
+
}): JSX.Element;
|
|
1723
|
+
|
|
1724
|
+
declare type Row_2 = RowProps;
|
|
1725
|
+
|
|
1726
|
+
export declare type RowProps = {
|
|
1727
|
+
type: "Row";
|
|
1728
|
+
key?: string;
|
|
1729
|
+
id?: string;
|
|
1730
|
+
} & BoxBaseProps;
|
|
1731
|
+
|
|
1732
|
+
export declare function safeRenderWidget(widget: WidgetComponent | WidgetRoot): default_2.ReactElement;
|
|
1733
|
+
|
|
1734
|
+
export declare function Select(p: ResolvedSelect): JSX.Element;
|
|
1735
|
+
|
|
1736
|
+
declare type Select_2 = SelectProps;
|
|
1737
|
+
|
|
1738
|
+
export declare type SelectProps = {
|
|
1739
|
+
type: "Select";
|
|
1740
|
+
key?: string;
|
|
1741
|
+
id?: string;
|
|
1742
|
+
name: string;
|
|
1743
|
+
options: {
|
|
1744
|
+
value: string;
|
|
1745
|
+
label: string;
|
|
1746
|
+
}[];
|
|
1747
|
+
onChangeAction?: ActionConfig;
|
|
1748
|
+
placeholder?: string;
|
|
1749
|
+
defaultValue?: string;
|
|
1750
|
+
variant?: ControlVariant;
|
|
1751
|
+
size?: ControlSize;
|
|
1752
|
+
pill?: boolean;
|
|
1753
|
+
block?: boolean;
|
|
1754
|
+
clearable?: boolean;
|
|
1755
|
+
required?: boolean;
|
|
1756
|
+
disabled?: boolean;
|
|
1757
|
+
color?: ColorValue;
|
|
1758
|
+
};
|
|
1759
|
+
|
|
1760
|
+
export declare const SELF_CONTAINED_ACTIONS: Set<string>;
|
|
1761
|
+
|
|
1762
|
+
export declare type Series = BarSeries | AreaSeries | LineSeries;
|
|
1763
|
+
|
|
1764
|
+
export declare const SERIES_TYPES: {
|
|
1765
|
+
readonly bar: "bar";
|
|
1766
|
+
readonly area: "area";
|
|
1767
|
+
readonly line: "line";
|
|
1768
|
+
};
|
|
1769
|
+
|
|
1770
|
+
export declare type SeriesType = (typeof SERIES_TYPES)[keyof typeof SERIES_TYPES];
|
|
1771
|
+
|
|
1772
|
+
export declare function Spacer(p: Spacer_2): JSX.Element;
|
|
1773
|
+
|
|
1774
|
+
declare type Spacer_2 = SpacerProps;
|
|
1775
|
+
|
|
1776
|
+
export declare type SpacerProps = {
|
|
1777
|
+
type: "Spacer";
|
|
1778
|
+
key?: string;
|
|
1779
|
+
id?: string;
|
|
1780
|
+
minSize?: number | string;
|
|
1781
|
+
};
|
|
1782
|
+
|
|
1783
|
+
export declare type Spacing = {
|
|
1784
|
+
top?: number | string;
|
|
1785
|
+
right?: number | string;
|
|
1786
|
+
bottom?: number | string;
|
|
1787
|
+
left?: number | string;
|
|
1788
|
+
x?: number | string;
|
|
1789
|
+
y?: number | string;
|
|
1790
|
+
};
|
|
1791
|
+
|
|
1792
|
+
declare interface State {
|
|
1793
|
+
error: Error | null;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
declare type StatusColorKey = "primary" | "secondary" | "success" | "danger" | "warning" | "info" | "discovery";
|
|
1797
|
+
|
|
1798
|
+
declare interface StatusColorTriplet {
|
|
1799
|
+
solid: string;
|
|
1800
|
+
bg: string;
|
|
1801
|
+
text: string;
|
|
1802
|
+
}
|
|
1803
|
+
|
|
1804
|
+
export declare interface StatusThemeVariant {
|
|
1805
|
+
solid: string;
|
|
1806
|
+
background: string;
|
|
1807
|
+
text: string;
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
declare interface SurfaceSpec {
|
|
1811
|
+
background: string;
|
|
1812
|
+
text_color?: string;
|
|
1813
|
+
placeholder_color?: string;
|
|
1814
|
+
border?: BorderSpec;
|
|
1815
|
+
headings_color?: string;
|
|
1816
|
+
text_content_color?: string;
|
|
1817
|
+
icon_color?: string;
|
|
1818
|
+
profile_text_color?: string;
|
|
1819
|
+
group_background?: string;
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
declare interface SurfaceStyle {
|
|
1823
|
+
bg: string;
|
|
1824
|
+
fg: string;
|
|
1825
|
+
border: string;
|
|
1826
|
+
borderWidth: number;
|
|
1827
|
+
}
|
|
1828
|
+
|
|
1829
|
+
declare function Text_2(p: ResolvedText): JSX.Element;
|
|
1830
|
+
export { Text_2 as Text }
|
|
1831
|
+
|
|
1832
|
+
declare type Text_3 = TextProps;
|
|
1833
|
+
|
|
1834
|
+
export declare const TEXT_ALIGNS: {
|
|
1835
|
+
readonly start: "start";
|
|
1836
|
+
readonly center: "center";
|
|
1837
|
+
readonly end: "end";
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
export declare const TEXT_SIZES: {
|
|
1841
|
+
readonly "2xs": "2xs";
|
|
1842
|
+
readonly xs: "xs";
|
|
1843
|
+
readonly sm: "sm";
|
|
1844
|
+
readonly md: "md";
|
|
1845
|
+
readonly lg: "lg";
|
|
1846
|
+
readonly xl: "xl";
|
|
1847
|
+
readonly "2xl": "2xl";
|
|
1848
|
+
readonly "3xl": "3xl";
|
|
1849
|
+
};
|
|
1850
|
+
|
|
1851
|
+
export declare type TextAlign = (typeof TEXT_ALIGNS)[keyof typeof TEXT_ALIGNS];
|
|
1852
|
+
|
|
1853
|
+
export declare function Textarea(p: ResolvedTextarea): JSX.Element;
|
|
1854
|
+
|
|
1855
|
+
declare type Textarea_2 = TextareaProps;
|
|
1856
|
+
|
|
1857
|
+
export declare type TextareaProps = {
|
|
1858
|
+
type: "Textarea";
|
|
1859
|
+
key?: string;
|
|
1860
|
+
id?: string;
|
|
1861
|
+
name: string;
|
|
1862
|
+
defaultValue?: string;
|
|
1863
|
+
required?: boolean;
|
|
1864
|
+
pattern?: string;
|
|
1865
|
+
placeholder?: string;
|
|
1866
|
+
autoSelect?: boolean;
|
|
1867
|
+
autoFocus?: boolean;
|
|
1868
|
+
disabled?: boolean;
|
|
1869
|
+
variant?: InputVariant;
|
|
1870
|
+
size?: ControlSize;
|
|
1871
|
+
gutterSize?: GutterSize;
|
|
1872
|
+
rows?: number;
|
|
1873
|
+
autoResize?: boolean;
|
|
1874
|
+
maxRows?: number;
|
|
1875
|
+
allowAutofillExtensions?: boolean;
|
|
1876
|
+
};
|
|
1877
|
+
|
|
1878
|
+
export declare type TextProps = {
|
|
1879
|
+
type: "Text";
|
|
1880
|
+
key?: string;
|
|
1881
|
+
id?: string;
|
|
1882
|
+
value: string;
|
|
1883
|
+
streaming?: boolean;
|
|
1884
|
+
italic?: boolean;
|
|
1885
|
+
lineThrough?: boolean;
|
|
1886
|
+
width?: number | string;
|
|
1887
|
+
size?: TextSize;
|
|
1888
|
+
minLines?: number;
|
|
1889
|
+
editable?: false | {
|
|
1890
|
+
name: string;
|
|
1891
|
+
autoFocus?: boolean;
|
|
1892
|
+
autoSelect?: boolean;
|
|
1893
|
+
autoComplete?: string;
|
|
1894
|
+
allowAutofillExtensions?: boolean;
|
|
1895
|
+
pattern?: string;
|
|
1896
|
+
placeholder?: string;
|
|
1897
|
+
required?: boolean;
|
|
1898
|
+
};
|
|
1899
|
+
} & BaseTextProps;
|
|
1900
|
+
|
|
1901
|
+
export declare type TextSize = (typeof TEXT_SIZES)[keyof typeof TEXT_SIZES];
|
|
1902
|
+
|
|
1903
|
+
declare interface Theme {
|
|
1904
|
+
tokens: Tokens;
|
|
1905
|
+
variants: Variants;
|
|
1906
|
+
mode: ThemeMode;
|
|
1907
|
+
config: RendererConfig;
|
|
1908
|
+
branding?: BrandingConfig | WidgetBrandingStyles;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
export declare const THEME_MODES: {
|
|
1912
|
+
readonly light: "light";
|
|
1913
|
+
readonly dark: "dark";
|
|
1914
|
+
};
|
|
1915
|
+
|
|
1916
|
+
export declare type ThemeColor = {
|
|
1917
|
+
dark: string;
|
|
1918
|
+
light: string;
|
|
1919
|
+
};
|
|
1920
|
+
|
|
1921
|
+
export declare type ThemeMode = "light" | "dark";
|
|
1922
|
+
|
|
1923
|
+
export declare type ThemeModeOverride = (typeof THEME_MODES)[keyof typeof THEME_MODES];
|
|
1924
|
+
|
|
1925
|
+
declare function ThemeProvider({ branding, mode, config, children, }: ThemeProviderProps): JSX.Element;
|
|
1926
|
+
|
|
1927
|
+
declare interface ThemeProviderProps {
|
|
1928
|
+
branding?: BrandingConfig | WidgetBrandingStyles;
|
|
1929
|
+
mode?: ThemeMode;
|
|
1930
|
+
config?: RendererConfig;
|
|
1931
|
+
children: ReactNode;
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
declare interface ThemeSpec {
|
|
1935
|
+
accent: {
|
|
1936
|
+
primary: string;
|
|
1937
|
+
};
|
|
1938
|
+
surface: {
|
|
1939
|
+
chat?: {
|
|
1940
|
+
background: string;
|
|
1941
|
+
};
|
|
1942
|
+
input?: SurfaceSpec;
|
|
1943
|
+
widget?: {
|
|
1944
|
+
background: string;
|
|
1945
|
+
border?: BorderSpec;
|
|
1946
|
+
};
|
|
1947
|
+
user_message?: SurfaceSpec;
|
|
1948
|
+
side_menu?: SurfaceSpec;
|
|
1949
|
+
settings?: {
|
|
1950
|
+
group_background?: string;
|
|
1951
|
+
};
|
|
1952
|
+
};
|
|
1953
|
+
text: {
|
|
1954
|
+
primary: string;
|
|
1955
|
+
secondary: string;
|
|
1956
|
+
tertiary: string;
|
|
1957
|
+
};
|
|
1958
|
+
status: {
|
|
1959
|
+
primary: StatusThemeVariant;
|
|
1960
|
+
secondary: StatusThemeVariant;
|
|
1961
|
+
success: StatusThemeVariant;
|
|
1962
|
+
danger: StatusThemeVariant;
|
|
1963
|
+
warning: StatusThemeVariant;
|
|
1964
|
+
info?: StatusThemeVariant;
|
|
1965
|
+
discovery?: StatusThemeVariant;
|
|
1966
|
+
};
|
|
1967
|
+
}
|
|
1968
|
+
|
|
1969
|
+
export declare type Tint = (typeof TINTS)[keyof typeof TINTS];
|
|
1970
|
+
|
|
1971
|
+
export declare const TINTS: {
|
|
1972
|
+
readonly clear: "clear";
|
|
1973
|
+
};
|
|
1974
|
+
|
|
1975
|
+
export declare function Title(p: ResolvedTitle): JSX.Element;
|
|
1976
|
+
|
|
1977
|
+
declare type Title_2 = TitleProps;
|
|
1978
|
+
|
|
1979
|
+
export declare const TITLE_SIZES: {
|
|
1980
|
+
readonly sm: "sm";
|
|
1981
|
+
readonly md: "md";
|
|
1982
|
+
readonly lg: "lg";
|
|
1983
|
+
readonly xl: "xl";
|
|
1984
|
+
readonly "2xl": "2xl";
|
|
1985
|
+
readonly "3xl": "3xl";
|
|
1986
|
+
readonly "4xl": "4xl";
|
|
1987
|
+
readonly "5xl": "5xl";
|
|
1988
|
+
};
|
|
1989
|
+
|
|
1990
|
+
export declare type TitleProps = {
|
|
1991
|
+
type: "Title";
|
|
1992
|
+
key?: string;
|
|
1993
|
+
id?: string;
|
|
1994
|
+
size?: TitleSize;
|
|
1995
|
+
} & BaseTextProps;
|
|
1996
|
+
|
|
1997
|
+
export declare type TitleSize = (typeof TITLE_SIZES)[keyof typeof TITLE_SIZES];
|
|
1998
|
+
|
|
1999
|
+
declare interface Tokens {
|
|
2000
|
+
spacingUnit: number;
|
|
2001
|
+
space: Record<keyof typeof BASE_TOKENS.space, number>;
|
|
2002
|
+
radius: Record<keyof typeof BASE_TOKENS.radius, number>;
|
|
2003
|
+
font: {
|
|
2004
|
+
family: string;
|
|
2005
|
+
monoFamily: string;
|
|
2006
|
+
baseSize: number;
|
|
2007
|
+
weight: {
|
|
2008
|
+
normal: "400";
|
|
2009
|
+
medium: "500";
|
|
2010
|
+
semibold: "600";
|
|
2011
|
+
bold: "700";
|
|
2012
|
+
};
|
|
2013
|
+
size: {
|
|
2014
|
+
text: Record<keyof typeof BASE_TOKENS.font.size.text, number>;
|
|
2015
|
+
title: Record<keyof typeof BASE_TOKENS.font.size.title, number>;
|
|
2016
|
+
caption: Record<keyof typeof BASE_TOKENS.font.size.caption, number>;
|
|
2017
|
+
};
|
|
2018
|
+
};
|
|
2019
|
+
color: {
|
|
2020
|
+
surface: string;
|
|
2021
|
+
surfaceAlt: string;
|
|
2022
|
+
surfaceTertiary: string;
|
|
2023
|
+
text: string;
|
|
2024
|
+
textMuted: string;
|
|
2025
|
+
textFaint: string;
|
|
2026
|
+
placeholder: string;
|
|
2027
|
+
border: string;
|
|
2028
|
+
borderInput: string;
|
|
2029
|
+
transparent: "transparent";
|
|
2030
|
+
primary: StatusColorTriplet;
|
|
2031
|
+
secondary: StatusColorTriplet;
|
|
2032
|
+
success: StatusColorTriplet;
|
|
2033
|
+
danger: StatusColorTriplet;
|
|
2034
|
+
warning: StatusColorTriplet;
|
|
2035
|
+
info: StatusColorTriplet;
|
|
2036
|
+
discovery: StatusColorTriplet;
|
|
2037
|
+
};
|
|
2038
|
+
control: {
|
|
2039
|
+
size: Record<keyof typeof BASE_TOKENS.control.size, {
|
|
2040
|
+
h: number;
|
|
2041
|
+
padH: number;
|
|
2042
|
+
font: number;
|
|
2043
|
+
gap: number;
|
|
2044
|
+
iconPx: number;
|
|
2045
|
+
radiusScale: number;
|
|
2046
|
+
}>;
|
|
2047
|
+
};
|
|
2048
|
+
badge: {
|
|
2049
|
+
size: Record<keyof typeof BASE_TOKENS.badge.size, {
|
|
2050
|
+
padH: number;
|
|
2051
|
+
font: number;
|
|
2052
|
+
lineHeight: number;
|
|
2053
|
+
radiusScale: number;
|
|
2054
|
+
}>;
|
|
2055
|
+
gap: number;
|
|
2056
|
+
fontWeight: "600";
|
|
2057
|
+
};
|
|
2058
|
+
card: {
|
|
2059
|
+
size: Record<keyof typeof BASE_TOKENS.card.size, number>;
|
|
2060
|
+
defaultPadPx: number;
|
|
2061
|
+
contentGap: number;
|
|
2062
|
+
actionRowGap: number;
|
|
2063
|
+
shellGap: number;
|
|
2064
|
+
actionButtonSize: "lg";
|
|
2065
|
+
};
|
|
2066
|
+
icon: {
|
|
2067
|
+
size: Record<keyof typeof BASE_TOKENS.icon.size, number>;
|
|
2068
|
+
wrapperPad: number;
|
|
2069
|
+
wrapperRoundingPct: number;
|
|
2070
|
+
};
|
|
2071
|
+
ui: {
|
|
2072
|
+
disabledOpacity: number;
|
|
2073
|
+
pressedOpacity: number;
|
|
2074
|
+
pressedOverlayAlpha: number;
|
|
2075
|
+
hairlineAlpha: number;
|
|
2076
|
+
hairlineBorder: number;
|
|
2077
|
+
cardBorderWidth: number;
|
|
2078
|
+
};
|
|
2079
|
+
button: {
|
|
2080
|
+
alwaysPill: boolean;
|
|
2081
|
+
};
|
|
2082
|
+
checkbox: {
|
|
2083
|
+
size: number;
|
|
2084
|
+
borderWidth: number;
|
|
2085
|
+
radius: number;
|
|
2086
|
+
tick: {
|
|
2087
|
+
fontSize: number;
|
|
2088
|
+
lineHeight: number;
|
|
2089
|
+
weight: "700";
|
|
2090
|
+
};
|
|
2091
|
+
rowGap: number;
|
|
2092
|
+
};
|
|
2093
|
+
radio: {
|
|
2094
|
+
ring: number;
|
|
2095
|
+
ringBorder: number;
|
|
2096
|
+
dot: number;
|
|
2097
|
+
rowGap: number;
|
|
2098
|
+
groupGap: number;
|
|
2099
|
+
};
|
|
2100
|
+
counter: {
|
|
2101
|
+
btn: number;
|
|
2102
|
+
btnRadius: number;
|
|
2103
|
+
glyph: {
|
|
2104
|
+
fontSize: number;
|
|
2105
|
+
lineHeight: number;
|
|
2106
|
+
weight: "600";
|
|
2107
|
+
};
|
|
2108
|
+
valueMinWidth: number;
|
|
2109
|
+
rowGap: number;
|
|
2110
|
+
};
|
|
2111
|
+
modal: {
|
|
2112
|
+
backdrop: string;
|
|
2113
|
+
sheetMaxHeight: "60%";
|
|
2114
|
+
sheetTopRadius: number;
|
|
2115
|
+
sheetPadV: number;
|
|
2116
|
+
optionPadV: number;
|
|
2117
|
+
optionPadH: number;
|
|
2118
|
+
};
|
|
2119
|
+
overlay: {
|
|
2120
|
+
video: string;
|
|
2121
|
+
videoDefaultH: number;
|
|
2122
|
+
};
|
|
2123
|
+
glass: {
|
|
2124
|
+
fallbackBg: string;
|
|
2125
|
+
fallbackBorder: string;
|
|
2126
|
+
fallbackBorderWidth: number;
|
|
2127
|
+
webFilter: string;
|
|
2128
|
+
nativeIntensity: number;
|
|
2129
|
+
nativeTint: {
|
|
2130
|
+
dark: string;
|
|
2131
|
+
light: string;
|
|
2132
|
+
};
|
|
2133
|
+
androidTint: {
|
|
2134
|
+
dark: string;
|
|
2135
|
+
light: string;
|
|
2136
|
+
};
|
|
2137
|
+
androidBlurMethod: string;
|
|
2138
|
+
};
|
|
2139
|
+
placeholder: {
|
|
2140
|
+
padding: number;
|
|
2141
|
+
minHeight: number;
|
|
2142
|
+
innerGap: number;
|
|
2143
|
+
borderWidth: number;
|
|
2144
|
+
label: {
|
|
2145
|
+
fontSize: number;
|
|
2146
|
+
weight: "600";
|
|
2147
|
+
};
|
|
2148
|
+
note: {
|
|
2149
|
+
fontSize: number;
|
|
2150
|
+
};
|
|
2151
|
+
};
|
|
2152
|
+
fileUpload: {
|
|
2153
|
+
rowGap: number;
|
|
2154
|
+
padV: number;
|
|
2155
|
+
padH: number;
|
|
2156
|
+
colGap: number;
|
|
2157
|
+
label: {
|
|
2158
|
+
fontSize: number;
|
|
2159
|
+
weight: "500";
|
|
2160
|
+
};
|
|
2161
|
+
hint: {
|
|
2162
|
+
fontSize: number;
|
|
2163
|
+
};
|
|
2164
|
+
};
|
|
2165
|
+
banner: {
|
|
2166
|
+
padV: number;
|
|
2167
|
+
padH: number;
|
|
2168
|
+
gap: number;
|
|
2169
|
+
defaultTextSize: "sm";
|
|
2170
|
+
};
|
|
2171
|
+
listItem: {
|
|
2172
|
+
gap: number;
|
|
2173
|
+
padV: number;
|
|
2174
|
+
};
|
|
2175
|
+
text: {
|
|
2176
|
+
captionOpacity: number;
|
|
2177
|
+
titleLetterSpacing: number;
|
|
2178
|
+
requiredMarker: {
|
|
2179
|
+
marginLeft: number;
|
|
2180
|
+
};
|
|
2181
|
+
};
|
|
2182
|
+
layout: {
|
|
2183
|
+
button: {
|
|
2184
|
+
base: ViewStyle;
|
|
2185
|
+
block: ViewStyle;
|
|
2186
|
+
};
|
|
2187
|
+
badge: {
|
|
2188
|
+
pill: ViewStyle;
|
|
2189
|
+
};
|
|
2190
|
+
card: {
|
|
2191
|
+
shell: ViewStyle;
|
|
2192
|
+
wrapper: ViewStyle;
|
|
2193
|
+
banner: ViewStyle;
|
|
2194
|
+
actionRow: ViewStyle;
|
|
2195
|
+
};
|
|
2196
|
+
checkbox: {
|
|
2197
|
+
row: ViewStyle;
|
|
2198
|
+
box: ViewStyle;
|
|
2199
|
+
};
|
|
2200
|
+
radio: {
|
|
2201
|
+
row: ViewStyle;
|
|
2202
|
+
ring: ViewStyle;
|
|
2203
|
+
group: ViewStyle;
|
|
2204
|
+
};
|
|
2205
|
+
counter: {
|
|
2206
|
+
row: ViewStyle;
|
|
2207
|
+
btn: ViewStyle;
|
|
2208
|
+
valueText: TextStyle;
|
|
2209
|
+
};
|
|
2210
|
+
input: {
|
|
2211
|
+
wrap: ViewStyle;
|
|
2212
|
+
field: TextStyle;
|
|
2213
|
+
};
|
|
2214
|
+
select: {
|
|
2215
|
+
backdrop: ViewStyle;
|
|
2216
|
+
trigger: ViewStyle;
|
|
2217
|
+
block: ViewStyle;
|
|
2218
|
+
sheetList: ViewStyle;
|
|
2219
|
+
option: ViewStyle;
|
|
2220
|
+
label: TextStyle;
|
|
2221
|
+
};
|
|
2222
|
+
textarea: {
|
|
2223
|
+
input: TextStyle;
|
|
2224
|
+
};
|
|
2225
|
+
datePicker: {
|
|
2226
|
+
input: TextStyle;
|
|
2227
|
+
};
|
|
2228
|
+
label: {
|
|
2229
|
+
row: ViewStyle;
|
|
2230
|
+
};
|
|
2231
|
+
fileUpload: {
|
|
2232
|
+
row: ViewStyle;
|
|
2233
|
+
col: ViewStyle;
|
|
2234
|
+
};
|
|
2235
|
+
placeholder: {
|
|
2236
|
+
wrap: ViewStyle;
|
|
2237
|
+
};
|
|
2238
|
+
video: {
|
|
2239
|
+
wrap: ViewStyle;
|
|
2240
|
+
overlay: ViewStyle;
|
|
2241
|
+
};
|
|
2242
|
+
icon: {
|
|
2243
|
+
wrapper: ViewStyle;
|
|
2244
|
+
};
|
|
2245
|
+
image: {
|
|
2246
|
+
base: ImageStyle;
|
|
2247
|
+
placeholder: ViewStyle;
|
|
2248
|
+
};
|
|
2249
|
+
divider: {
|
|
2250
|
+
base: ViewStyle;
|
|
2251
|
+
};
|
|
2252
|
+
spacer: {
|
|
2253
|
+
base: ViewStyle;
|
|
2254
|
+
};
|
|
2255
|
+
listItem: {
|
|
2256
|
+
row: ViewStyle;
|
|
2257
|
+
};
|
|
2258
|
+
backgroundFill: {
|
|
2259
|
+
imageWrap: ViewStyle;
|
|
2260
|
+
};
|
|
2261
|
+
};
|
|
2262
|
+
}
|
|
2263
|
+
|
|
2264
|
+
export declare function Transition({ children }: {
|
|
2265
|
+
children?: ReactNode;
|
|
2266
|
+
}): JSX.Element;
|
|
2267
|
+
|
|
2268
|
+
declare type Transition_2 = TransitionProps;
|
|
2269
|
+
|
|
2270
|
+
export declare type TransitionProps = {
|
|
2271
|
+
type: "Transition";
|
|
2272
|
+
key?: string;
|
|
2273
|
+
id?: string;
|
|
2274
|
+
children: WidgetComponent;
|
|
2275
|
+
};
|
|
2276
|
+
|
|
2277
|
+
declare function useActionHandler(): ActionHandler_2;
|
|
2278
|
+
export { useActionHandler as defaultActionHandler }
|
|
2279
|
+
export { useActionHandler as useAction }
|
|
2280
|
+
export { useActionHandler }
|
|
2281
|
+
|
|
2282
|
+
export declare function useFileUploadState(fileRequestId: string): FileUploadEntry;
|
|
2283
|
+
|
|
2284
|
+
export declare function useFormContext(): FormContextValue | null;
|
|
2285
|
+
|
|
2286
|
+
export declare function useMessageId(): string | undefined;
|
|
2287
|
+
|
|
2288
|
+
export declare function useSelectedCategory(): string | undefined;
|
|
2289
|
+
|
|
2290
|
+
export declare function useTheme(): Theme;
|
|
2291
|
+
|
|
2292
|
+
export declare function useTokens(): Tokens;
|
|
2293
|
+
|
|
2294
|
+
export declare function useVariants(): Variants;
|
|
2295
|
+
|
|
2296
|
+
export declare function useWidgetDispatch(): Dispatch<WidgetStateAction>;
|
|
2297
|
+
|
|
2298
|
+
export declare function useWidgetState(): WidgetInternalState;
|
|
2299
|
+
|
|
2300
|
+
export declare const useWidgetTheme: () => ThemeMode;
|
|
2301
|
+
|
|
2302
|
+
export declare function validateFields(fields: FieldDescriptor[]): CoreValidationResult;
|
|
2303
|
+
|
|
2304
|
+
export declare function validateForm(form: HTMLFormElement): ValidationResult;
|
|
2305
|
+
|
|
2306
|
+
export declare type ValidationError = {
|
|
2307
|
+
name: string;
|
|
2308
|
+
element: HTMLElement;
|
|
2309
|
+
message: string;
|
|
2310
|
+
};
|
|
2311
|
+
|
|
2312
|
+
export declare type ValidationResult = {
|
|
2313
|
+
valid: boolean;
|
|
2314
|
+
errors: ValidationError[];
|
|
2315
|
+
firstInvalidStepId?: string;
|
|
2316
|
+
};
|
|
2317
|
+
|
|
2318
|
+
declare interface Variants {
|
|
2319
|
+
button: Record<ButtonVariantKey, Record<StatusColorKey, SurfaceStyle>>;
|
|
2320
|
+
input: Record<InputVariantKey, SurfaceStyle>;
|
|
2321
|
+
badge: Record<BadgeVariantKey, Record<StatusColorKey, SurfaceStyle>>;
|
|
2322
|
+
card: {
|
|
2323
|
+
default: SurfaceStyle;
|
|
2324
|
+
};
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
export declare function Video(p: Video_2): JSX.Element;
|
|
2328
|
+
|
|
2329
|
+
declare type Video_2 = VideoProps;
|
|
2330
|
+
|
|
2331
|
+
export declare type VideoProps = {
|
|
2332
|
+
type: "Video";
|
|
2333
|
+
key?: string;
|
|
2334
|
+
id?: string;
|
|
2335
|
+
src: string;
|
|
2336
|
+
poster?: string;
|
|
2337
|
+
fit?: FitMode;
|
|
2338
|
+
position?: ImagePosition;
|
|
2339
|
+
controls?: boolean;
|
|
2340
|
+
autoPlay?: boolean;
|
|
2341
|
+
loop?: boolean;
|
|
2342
|
+
muted?: boolean;
|
|
2343
|
+
playsInline?: boolean;
|
|
2344
|
+
preload?: PreloadMode;
|
|
2345
|
+
downloadable?: boolean;
|
|
2346
|
+
flush?: boolean;
|
|
2347
|
+
} & BlockProps;
|
|
2348
|
+
|
|
2349
|
+
export declare const WIDGET_TYPES: {
|
|
2350
|
+
readonly Basic: "Basic";
|
|
2351
|
+
readonly Card: "Card";
|
|
2352
|
+
readonly ListView: "ListView";
|
|
2353
|
+
readonly ListViewItem: "ListViewItem";
|
|
2354
|
+
readonly Box: "Box";
|
|
2355
|
+
readonly Row: "Row";
|
|
2356
|
+
readonly Col: "Col";
|
|
2357
|
+
readonly Form: "Form";
|
|
2358
|
+
readonly Spacer: "Spacer";
|
|
2359
|
+
readonly Divider: "Divider";
|
|
2360
|
+
readonly Transition: "Transition";
|
|
2361
|
+
readonly Title: "Title";
|
|
2362
|
+
readonly Caption: "Caption";
|
|
2363
|
+
readonly Text: "Text";
|
|
2364
|
+
readonly Markdown: "Markdown";
|
|
2365
|
+
readonly Badge: "Badge";
|
|
2366
|
+
readonly Icon: "Icon";
|
|
2367
|
+
readonly Image: "Image";
|
|
2368
|
+
readonly Video: "Video";
|
|
2369
|
+
readonly Button: "Button";
|
|
2370
|
+
readonly Input: "Input";
|
|
2371
|
+
readonly Textarea: "Textarea";
|
|
2372
|
+
readonly Select: "Select";
|
|
2373
|
+
readonly DatePicker: "DatePicker";
|
|
2374
|
+
readonly Checkbox: "Checkbox";
|
|
2375
|
+
readonly RadioGroup: "RadioGroup";
|
|
2376
|
+
readonly Label: "Label";
|
|
2377
|
+
readonly Chart: "Chart";
|
|
2378
|
+
readonly FileUploadRequest: "FileUploadRequest";
|
|
2379
|
+
readonly Map: "Map";
|
|
2380
|
+
readonly MapMarker: "MapMarker";
|
|
2381
|
+
readonly MapPolyline: "MapPolyline";
|
|
2382
|
+
readonly MapCircle: "MapCircle";
|
|
2383
|
+
readonly MapPolygon: "MapPolygon";
|
|
2384
|
+
};
|
|
2385
|
+
|
|
2386
|
+
export declare interface WidgetBrandingStyles {
|
|
2387
|
+
widgetBg: string;
|
|
2388
|
+
inputBgColor: string;
|
|
2389
|
+
widgetBorderStyle: "none" | "solid" | "dashed" | "dotted";
|
|
2390
|
+
widgetBorderColor: string;
|
|
2391
|
+
widgetBorderWidth: string;
|
|
2392
|
+
widgetBorderOpacity: number;
|
|
2393
|
+
inputBorderStyle: "none" | "solid" | "dashed" | "dotted";
|
|
2394
|
+
inputBorderColor: string;
|
|
2395
|
+
inputBorderWidth: string;
|
|
2396
|
+
inputBorderOpacity: number;
|
|
2397
|
+
primaryText: string;
|
|
2398
|
+
secondaryText: string;
|
|
2399
|
+
tertiaryText: string;
|
|
2400
|
+
placeholderColor: string;
|
|
2401
|
+
statusPrimary: StatusThemeVariant;
|
|
2402
|
+
statusSecondary: StatusThemeVariant;
|
|
2403
|
+
statusSuccess: StatusThemeVariant;
|
|
2404
|
+
statusDanger: StatusThemeVariant;
|
|
2405
|
+
statusWarning: StatusThemeVariant;
|
|
2406
|
+
statusInfo: StatusThemeVariant;
|
|
2407
|
+
statusDiscovery: StatusThemeVariant;
|
|
2408
|
+
fontFamily: string;
|
|
2409
|
+
fontSize: number;
|
|
2410
|
+
borderRadius: number;
|
|
2411
|
+
cornerRadiusMode: "pill" | "rounded" | "sharp";
|
|
2412
|
+
}
|
|
2413
|
+
|
|
2414
|
+
export declare type WidgetComponent = Text_3 | Title_2 | Caption_2 | Badge_2 | Markdown_2 | Box_2 | Row_2 | Col_2 | Divider_2 | Icon_2 | Image_3 | Video_2 | Button_2 | Checkbox_2 | Chart_2 | Spacer_2 | Select_2 | DatePicker_2 | Form_2 | Input_2 | Label_2 | RadioGroup_2 | Textarea_2 | Transition_2 | ListViewItem_2 | FileUploadRequest_2 | MapWidget | MapMarker | MapPolyline | MapCircle | MapPolygon;
|
|
2415
|
+
|
|
2416
|
+
export declare class WidgetErrorBoundary extends Component<Props, State> {
|
|
2417
|
+
state: State;
|
|
2418
|
+
static getDerivedStateFromError(error: Error): State;
|
|
2419
|
+
componentDidCatch(error: Error, info: ErrorInfo): void;
|
|
2420
|
+
render(): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | ReactPortal | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | JSX.Element | null | undefined;
|
|
2421
|
+
}
|
|
2422
|
+
|
|
2423
|
+
export declare type WidgetIcon = string;
|
|
2424
|
+
|
|
2425
|
+
export declare interface WidgetInternalState {
|
|
2426
|
+
fileUpload: {
|
|
2427
|
+
files: Record<string, FileUploadEntry>;
|
|
2428
|
+
loading: boolean;
|
|
2429
|
+
error: string | null;
|
|
2430
|
+
};
|
|
2431
|
+
checkboxes: {
|
|
2432
|
+
selected: string[];
|
|
2433
|
+
disabled: string[];
|
|
2434
|
+
maxSelection: number;
|
|
2435
|
+
};
|
|
2436
|
+
quantities: Record<string, number>;
|
|
2437
|
+
selectedCategory?: string;
|
|
2438
|
+
formFields: Record<string, string>;
|
|
2439
|
+
}
|
|
2440
|
+
|
|
2441
|
+
export declare function WidgetRenderer({ widget, branding, brandingStyles, theme, messageId, onConsumerAction, config, errorFallback, userLocation, }: WidgetRendererProps): default_2.JSX.Element | null;
|
|
2442
|
+
|
|
2443
|
+
export declare interface WidgetRendererProps {
|
|
2444
|
+
widget: WidgetRoot | WidgetComponent | null;
|
|
2445
|
+
branding?: BrandingConfig | WidgetBrandingStyles;
|
|
2446
|
+
brandingStyles?: WidgetBrandingStyles;
|
|
2447
|
+
theme?: ThemeMode;
|
|
2448
|
+
messageId?: string;
|
|
2449
|
+
onConsumerAction?: (action: ConsumerAction) => void;
|
|
2450
|
+
config?: DeepPartial<RendererConfig>;
|
|
2451
|
+
errorFallback?: ReactNode;
|
|
2452
|
+
userLocation?: LocationCoordinates | null;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
export declare type WidgetRoot = Card_2 | ListView_2 | BasicRoot_2;
|
|
2456
|
+
|
|
2457
|
+
export declare type WidgetState = WidgetInternalState;
|
|
2458
|
+
|
|
2459
|
+
declare type WidgetStateAction = {
|
|
2460
|
+
type: typeof REDUCER_ACTIONS.TOGGLE_CHECKBOX;
|
|
2461
|
+
payload: {
|
|
2462
|
+
data: string;
|
|
2463
|
+
};
|
|
2464
|
+
} | {
|
|
2465
|
+
type: typeof REDUCER_ACTIONS.SET_CHECKBOX_DATA;
|
|
2466
|
+
payload: {
|
|
2467
|
+
data: string;
|
|
2468
|
+
checked: boolean;
|
|
2469
|
+
};
|
|
2470
|
+
} | {
|
|
2471
|
+
type: typeof REDUCER_ACTIONS.CLEAR_SELECTIONS;
|
|
2472
|
+
} | {
|
|
2473
|
+
type: typeof REDUCER_ACTIONS.SET_SELECTED_CATEGORY;
|
|
2474
|
+
payload: {
|
|
2475
|
+
id: string;
|
|
2476
|
+
};
|
|
2477
|
+
} | {
|
|
2478
|
+
type: typeof REDUCER_ACTIONS.TOGGLE_QUANTITY;
|
|
2479
|
+
payload: {
|
|
2480
|
+
id: string;
|
|
2481
|
+
delta: number;
|
|
2482
|
+
};
|
|
2483
|
+
} | {
|
|
2484
|
+
type: typeof REDUCER_ACTIONS.UPLOAD_FILE;
|
|
2485
|
+
payload: {
|
|
2486
|
+
requestId: string;
|
|
2487
|
+
file: unknown;
|
|
2488
|
+
};
|
|
2489
|
+
} | {
|
|
2490
|
+
type: typeof REDUCER_ACTIONS.REMOVE_FILE;
|
|
2491
|
+
payload: {
|
|
2492
|
+
requestId: string;
|
|
2493
|
+
};
|
|
2494
|
+
} | {
|
|
2495
|
+
type: typeof REDUCER_ACTIONS.SET_UPLOAD_ERROR;
|
|
2496
|
+
payload: {
|
|
2497
|
+
requestId: string;
|
|
2498
|
+
error: string | null;
|
|
2499
|
+
};
|
|
2500
|
+
} | {
|
|
2501
|
+
type: typeof REDUCER_ACTIONS.RESET_UPLOADS;
|
|
2502
|
+
} | {
|
|
2503
|
+
type: typeof REDUCER_ACTIONS.SET_FORM_FIELD;
|
|
2504
|
+
payload: {
|
|
2505
|
+
name: string;
|
|
2506
|
+
value: string;
|
|
2507
|
+
};
|
|
2508
|
+
};
|
|
2509
|
+
|
|
2510
|
+
export declare function WidgetStateManager({ messageId, children, onConsumerAction, }: WidgetStateManagerProps_2): JSX.Element;
|
|
2511
|
+
|
|
2512
|
+
export declare type WidgetStateManagerProps = {
|
|
2513
|
+
messageId?: string;
|
|
2514
|
+
onConsumerAction?: (action: any) => void;
|
|
2515
|
+
children?: ReactNode;
|
|
2516
|
+
};
|
|
2517
|
+
|
|
2518
|
+
declare interface WidgetStateManagerProps_2 {
|
|
2519
|
+
messageId?: string;
|
|
2520
|
+
children: ReactNode;
|
|
2521
|
+
onConsumerAction?: OnConsumerAction;
|
|
2522
|
+
}
|
|
2523
|
+
|
|
2524
|
+
export declare const WidgetStateProvider: typeof WidgetStateManager;
|
|
2525
|
+
|
|
2526
|
+
export declare type WidgetStateProviderProps = WidgetStateManagerProps;
|
|
2527
|
+
|
|
2528
|
+
export declare type WidgetStatus = {
|
|
2529
|
+
text: string;
|
|
2530
|
+
favicon?: string;
|
|
2531
|
+
frame?: boolean;
|
|
2532
|
+
icon?: WidgetIcon;
|
|
2533
|
+
textSize?: TextSize;
|
|
2534
|
+
};
|
|
2535
|
+
|
|
2536
|
+
export declare type WidgetTheme = "light" | "dark" | string;
|
|
2537
|
+
|
|
2538
|
+
export declare const WidgetThemeProvider: typeof ThemeProvider;
|
|
2539
|
+
|
|
2540
|
+
export declare type WidgetType = (typeof WIDGET_TYPES)[keyof typeof WIDGET_TYPES];
|
|
2541
|
+
|
|
2542
|
+
export declare const WRAP_MODES: {
|
|
2543
|
+
readonly nowrap: "nowrap";
|
|
2544
|
+
readonly wrap: "wrap";
|
|
2545
|
+
readonly "wrap-reverse": "wrap-reverse";
|
|
2546
|
+
};
|
|
2547
|
+
|
|
2548
|
+
export declare type WrapMode = (typeof WRAP_MODES)[keyof typeof WRAP_MODES];
|
|
2549
|
+
|
|
2550
|
+
export declare type XAxisConfig = {
|
|
2551
|
+
dataKey: string;
|
|
2552
|
+
hide?: boolean;
|
|
2553
|
+
labels?: Record<string | number, string>;
|
|
2554
|
+
};
|
|
2555
|
+
|
|
2556
|
+
export { }
|