@sikka/hawa 0.1.45 → 0.1.46
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/index.d.mts +3 -741
- package/dist/index.d.ts +3 -741
- package/dist/index.js +22 -6176
- package/dist/index.mjs +22 -6292
- package/package.json +1 -1
- package/src/elements/index.ts +54 -54
package/dist/index.d.mts
CHANGED
|
@@ -1,747 +1,9 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import React__default, { FC, ChangeEvent, ReactElement, ReactNode, RefObject, PropsWithRef, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
import { BaseEditor } from 'slate';
|
|
4
|
-
import { ReactEditor } from 'slate-react';
|
|
5
1
|
import * as class_variance_authority_dist_types from 'class-variance-authority/dist/types';
|
|
2
|
+
import * as React from 'react';
|
|
6
3
|
import { VariantProps } from 'class-variance-authority';
|
|
7
4
|
|
|
8
|
-
type THawaSnackBar = {
|
|
9
|
-
severity: "info" | "warning" | "error" | "success" | "none";
|
|
10
|
-
title: string;
|
|
11
|
-
description: string;
|
|
12
|
-
onCloseSnakbar?: () => void;
|
|
13
|
-
duration?: number;
|
|
14
|
-
position?: "top-left" | "top-center" | "top-right" | "bottom-right" | "bottom-center" | "bottom-left";
|
|
15
|
-
actions?: [
|
|
16
|
-
{
|
|
17
|
-
icon?: any;
|
|
18
|
-
label: string;
|
|
19
|
-
onClick: any;
|
|
20
|
-
variant: "contained" | "outlined";
|
|
21
|
-
}
|
|
22
|
-
];
|
|
23
|
-
};
|
|
24
|
-
declare const HawaSnackbar: FC<THawaSnackBar>;
|
|
25
|
-
|
|
26
|
-
type SwitchTypes = {
|
|
27
|
-
text?: any;
|
|
28
|
-
size?: "small" | "normal" | "large";
|
|
29
|
-
};
|
|
30
|
-
declare const HawaSwitch: FC<SwitchTypes>;
|
|
31
|
-
|
|
32
|
-
type TCheckBoxTypes = {
|
|
33
|
-
centered?: boolean;
|
|
34
|
-
label?: any;
|
|
35
|
-
helperText?: any;
|
|
36
|
-
id: string;
|
|
37
|
-
onChange?: (e: any) => void;
|
|
38
|
-
val?: boolean;
|
|
39
|
-
};
|
|
40
|
-
declare const HawaCheckbox: FC<TCheckBoxTypes>;
|
|
41
|
-
|
|
42
|
-
type PanelTabsTypes = {
|
|
43
|
-
defaultValue: any;
|
|
44
|
-
options: [{
|
|
45
|
-
label: string;
|
|
46
|
-
value: string;
|
|
47
|
-
}];
|
|
48
|
-
lang: any;
|
|
49
|
-
handleChange: any;
|
|
50
|
-
location: any;
|
|
51
|
-
};
|
|
52
|
-
declare const HawaPanelTabs: FC<PanelTabsTypes>;
|
|
53
|
-
|
|
54
|
-
type TChipTypes = {
|
|
55
|
-
/** The text inside the chip */
|
|
56
|
-
label: string;
|
|
57
|
-
/** The small icon before the chip label */
|
|
58
|
-
icon?: JSX.Element;
|
|
59
|
-
/** The color of the chip, must be a tailwind color */
|
|
60
|
-
color?: string;
|
|
61
|
-
/** The size of the chip */
|
|
62
|
-
size?: "small" | "normal" | "large";
|
|
63
|
-
/** Enable/Disable the dot before the label of the chip */
|
|
64
|
-
dot?: boolean;
|
|
65
|
-
/** Red/Green dot next to the label of the chip indicating online/offline or available/unavailable */
|
|
66
|
-
dotType?: "available" | "unavailable";
|
|
67
|
-
};
|
|
68
|
-
declare const HawaChip: FC<TChipTypes>;
|
|
69
|
-
|
|
70
|
-
type IconCountTypes = {
|
|
71
|
-
/** The icon of the counter */
|
|
72
|
-
icon: JSX.Element;
|
|
73
|
-
/** The text next to the icon */
|
|
74
|
-
count?: string;
|
|
75
|
-
};
|
|
76
|
-
declare const HawaIconCount: FC<IconCountTypes>;
|
|
77
|
-
|
|
78
|
-
type SettingsRowTypes = {
|
|
79
|
-
settingsLabel: string;
|
|
80
|
-
settingsType: "text" | "radio" | "boolean" | "color" | "range" | "select";
|
|
81
|
-
settingsDescription?: string;
|
|
82
|
-
radioProps: {
|
|
83
|
-
defaultValue: any;
|
|
84
|
-
onChangeTab: any;
|
|
85
|
-
options: [{
|
|
86
|
-
label: string;
|
|
87
|
-
value: any;
|
|
88
|
-
}];
|
|
89
|
-
};
|
|
90
|
-
colorProps: {
|
|
91
|
-
color?: any;
|
|
92
|
-
handleChange?: any;
|
|
93
|
-
};
|
|
94
|
-
rangeProps: {
|
|
95
|
-
min?: any;
|
|
96
|
-
max?: any;
|
|
97
|
-
};
|
|
98
|
-
switchProps: {
|
|
99
|
-
size: "small" | "normal" | "large";
|
|
100
|
-
};
|
|
101
|
-
selectProps: {
|
|
102
|
-
label?: string;
|
|
103
|
-
options?: any[any];
|
|
104
|
-
isCreatable?: boolean;
|
|
105
|
-
isClearable?: boolean;
|
|
106
|
-
isMulti?: boolean;
|
|
107
|
-
isSearchable?: boolean;
|
|
108
|
-
onChange?: any;
|
|
109
|
-
helperText?: any;
|
|
110
|
-
onInputChange?: any;
|
|
111
|
-
native?: any;
|
|
112
|
-
fullWidth?: any;
|
|
113
|
-
value?: any;
|
|
114
|
-
children?: any;
|
|
115
|
-
getOptionLabel?: any;
|
|
116
|
-
disabled?: boolean;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
declare const HawaSettingsRow: FC<SettingsRowTypes>;
|
|
120
|
-
|
|
121
|
-
type SelectTypes = {
|
|
122
|
-
label?: string;
|
|
123
|
-
options?: {
|
|
124
|
-
value: any;
|
|
125
|
-
label: any;
|
|
126
|
-
}[];
|
|
127
|
-
isCreatable?: boolean;
|
|
128
|
-
isClearable?: boolean;
|
|
129
|
-
isMulti?: boolean;
|
|
130
|
-
isSearchable?: boolean;
|
|
131
|
-
onChange?: any;
|
|
132
|
-
helperText?: any;
|
|
133
|
-
onInputChange?: any;
|
|
134
|
-
native?: any;
|
|
135
|
-
width?: "full" | "small";
|
|
136
|
-
value?: any;
|
|
137
|
-
children?: any;
|
|
138
|
-
getOptionLabel?: any;
|
|
139
|
-
disabled?: boolean;
|
|
140
|
-
};
|
|
141
|
-
declare const HawaSelect: FC<SelectTypes>;
|
|
142
|
-
|
|
143
|
-
type RangeTypes = {
|
|
144
|
-
value?: any;
|
|
145
|
-
handleChange?: any;
|
|
146
|
-
startElement?: any;
|
|
147
|
-
endElement?: any;
|
|
148
|
-
label?: string;
|
|
149
|
-
min?: any;
|
|
150
|
-
max?: any;
|
|
151
|
-
};
|
|
152
|
-
declare const HawaRange: FC<RangeTypes>;
|
|
153
|
-
|
|
154
|
-
type TypographyTypes = {
|
|
155
|
-
children: any;
|
|
156
|
-
align?: any;
|
|
157
|
-
};
|
|
158
|
-
declare const HawaTypography: FC<TypographyTypes>;
|
|
159
|
-
|
|
160
|
-
type AlertTypes = {
|
|
161
|
-
severity: "info" | "warning" | "error" | "success";
|
|
162
|
-
/** The title of the alert placed above the text of the alert. Can be used alone */
|
|
163
|
-
title?: any;
|
|
164
|
-
/** The text of the alert placed below the title of the alert. Can be used alone */
|
|
165
|
-
text: any;
|
|
166
|
-
/** The duration for the alert to stay on the screen */
|
|
167
|
-
duration?: number;
|
|
168
|
-
variant?: "normal" | "solid" | "top-accent" | "left-accent" | "right-accent" | "bottom-accent";
|
|
169
|
-
direction?: "rtl" | "ltr";
|
|
170
|
-
actions?: [
|
|
171
|
-
{
|
|
172
|
-
label: string;
|
|
173
|
-
onClick: any;
|
|
174
|
-
variant: "outline" | "link" | "default" | "destructive" | "secondary" | "ghost";
|
|
175
|
-
}
|
|
176
|
-
];
|
|
177
|
-
persistant?: boolean;
|
|
178
|
-
icon?: any;
|
|
179
|
-
};
|
|
180
|
-
declare const HawaAlert: React__default.FunctionComponent<AlertTypes>;
|
|
181
|
-
|
|
182
|
-
type RowTypes = {
|
|
183
|
-
hidden: boolean;
|
|
184
|
-
value: any;
|
|
185
|
-
suffix?: any;
|
|
186
|
-
};
|
|
187
|
-
type ColTypes = {
|
|
188
|
-
hidden: boolean;
|
|
189
|
-
value: any;
|
|
190
|
-
sortable?: boolean;
|
|
191
|
-
};
|
|
192
|
-
type TableTypes = {
|
|
193
|
-
pagination?: boolean;
|
|
194
|
-
columns: ColTypes[];
|
|
195
|
-
actions?: ActionItems[][];
|
|
196
|
-
direction?: "rtl" | "ltr";
|
|
197
|
-
rows?: RowTypes[][];
|
|
198
|
-
handleActionClick?: any;
|
|
199
|
-
end?: any;
|
|
200
|
-
size?: "normal" | "small";
|
|
201
|
-
highlightFirst?: boolean;
|
|
202
|
-
bodyColor?: string;
|
|
203
|
-
headerColor?: string;
|
|
204
|
-
clickable?: boolean;
|
|
205
|
-
texts?: {
|
|
206
|
-
actions?: string;
|
|
207
|
-
noData?: any;
|
|
208
|
-
items?: string;
|
|
209
|
-
page?: string;
|
|
210
|
-
filter?: string;
|
|
211
|
-
};
|
|
212
|
-
bordersWidth?: string;
|
|
213
|
-
onActionClicked?: any;
|
|
214
|
-
headerTools?: boolean;
|
|
215
|
-
borders?: "all" | "cols" | "rows" | "outer" | "inner";
|
|
216
|
-
};
|
|
217
|
-
type ActionItems = {
|
|
218
|
-
icon?: JSX.Element;
|
|
219
|
-
label: string;
|
|
220
|
-
action?: (e: any) => void;
|
|
221
|
-
isButton?: boolean;
|
|
222
|
-
element?: any;
|
|
223
|
-
};
|
|
224
|
-
declare const HawaTable: FC<TableTypes>;
|
|
225
|
-
|
|
226
|
-
type ColorPickerTypes = {
|
|
227
|
-
/** The hex code for the color */
|
|
228
|
-
color?: any;
|
|
229
|
-
/** Fires everytime the color changes */
|
|
230
|
-
handleChange?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
231
|
-
};
|
|
232
|
-
declare const HawaColorPicker: FC<ColorPickerTypes>;
|
|
233
|
-
|
|
234
|
-
type SearchBarTypes = {};
|
|
235
|
-
declare const HawaSearchBar: FC<SearchBarTypes>;
|
|
236
|
-
|
|
237
|
-
type AccordionTypes = {
|
|
238
|
-
/** The title of the clickable accordion bar */
|
|
239
|
-
title: string;
|
|
240
|
-
/** The content inside the accordion to be visible once the bar is clicked */
|
|
241
|
-
content: any;
|
|
242
|
-
/** The index of each accordion, must be unique for each usage of this component */
|
|
243
|
-
index: any;
|
|
244
|
-
};
|
|
245
|
-
declare const HawaAccordion: FC<AccordionTypes>;
|
|
246
|
-
|
|
247
|
-
type HawaPhoneInputTypes = {
|
|
248
|
-
preferredCountry?: any;
|
|
249
|
-
helperText?: any;
|
|
250
|
-
label?: string;
|
|
251
|
-
value?: any;
|
|
252
|
-
country?: any;
|
|
253
|
-
handleChange?: any;
|
|
254
|
-
};
|
|
255
|
-
declare const HawaPhoneInput: FC<HawaPhoneInputTypes>;
|
|
256
|
-
|
|
257
|
-
type THawaToolTip = {
|
|
258
|
-
children?: ReactElement;
|
|
259
|
-
content?: string;
|
|
260
|
-
btnHovered?: any;
|
|
261
|
-
buttonRef?: any;
|
|
262
|
-
direction?: "rtl" | "ltr";
|
|
263
|
-
size?: "normal" | "small" | "large";
|
|
264
|
-
position?: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
265
|
-
};
|
|
266
|
-
declare const HawaTooltip: FC<THawaToolTip>;
|
|
267
|
-
|
|
268
|
-
type TabsTypes$1 = {
|
|
269
|
-
options?: any;
|
|
270
|
-
onChangeTab?: (option: any) => void;
|
|
271
|
-
defaultValue?: any;
|
|
272
|
-
orientation?: "horizontal" | "vertical";
|
|
273
|
-
direction?: "rtl" | "ltr";
|
|
274
|
-
marginBetween?: any;
|
|
275
|
-
width?: "full" | "normal";
|
|
276
|
-
pill?: boolean;
|
|
277
|
-
};
|
|
278
|
-
declare const HawaTabs: FC<TabsTypes$1>;
|
|
279
|
-
|
|
280
|
-
type ModalTypes = {
|
|
281
|
-
/** * The boolean to open and close the modal */
|
|
282
|
-
open: boolean;
|
|
283
|
-
/** * The title of the modal, it will appear in the header of the modal */
|
|
284
|
-
title: string;
|
|
285
|
-
/**
|
|
286
|
-
* a function that's triggered when the modal is closed either by the clicking the close button or outside the modal.
|
|
287
|
-
* @returns void
|
|
288
|
-
*/
|
|
289
|
-
onClose: () => void;
|
|
290
|
-
/** * Boolean to enable/disable closing the modal upon clicking outside the modal */
|
|
291
|
-
closeOnClickOutside?: boolean;
|
|
292
|
-
/** * The id of the modal */
|
|
293
|
-
modalID?: string;
|
|
294
|
-
children: ReactElement;
|
|
295
|
-
/** * The array of actions for the modal, it will appear in the footer of the modal */
|
|
296
|
-
actions: any;
|
|
297
|
-
};
|
|
298
|
-
declare const HawaModal: FC<ModalTypes>;
|
|
299
|
-
|
|
300
|
-
interface TMenuTypes$1 {
|
|
301
|
-
menuItems: MenuItems[][];
|
|
302
|
-
withHeader?: boolean;
|
|
303
|
-
headerTitle?: string;
|
|
304
|
-
headerSubtitle?: string;
|
|
305
|
-
direction?: "rtl" | "ltr";
|
|
306
|
-
anchor?: any;
|
|
307
|
-
children?: ReactNode;
|
|
308
|
-
position?: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
309
|
-
onClickOutside?: any;
|
|
310
|
-
actionedItem?: any;
|
|
311
|
-
size?: "small" | "normal" | "large";
|
|
312
|
-
}
|
|
313
|
-
type MenuItems = {
|
|
314
|
-
icon?: JSX.Element;
|
|
315
|
-
disabled?: boolean;
|
|
316
|
-
label: string;
|
|
317
|
-
action?: (e: any) => void;
|
|
318
|
-
isButton?: boolean;
|
|
319
|
-
element?: any;
|
|
320
|
-
};
|
|
321
|
-
declare const HawaMenu: FC<TMenuTypes$1>;
|
|
322
|
-
|
|
323
|
-
interface TMenuTypes {
|
|
324
|
-
children?: any;
|
|
325
|
-
direction?: "rtl" | "ltr";
|
|
326
|
-
}
|
|
327
|
-
declare const HawaDropdownMenu: FC<TMenuTypes>;
|
|
328
|
-
|
|
329
|
-
type CopyRightsTypes = {
|
|
330
|
-
/** A text used as the version of the app, for example: v1.0.0 */
|
|
331
|
-
version?: string;
|
|
332
|
-
/** Credit to the creator of the app, for example: Sikka Software */
|
|
333
|
-
credits?: string;
|
|
334
|
-
/** The URL of the logo in the copyrights */
|
|
335
|
-
logoURL?: string;
|
|
336
|
-
/** Enable/Disable the existance of the logo */
|
|
337
|
-
withLogo?: boolean;
|
|
338
|
-
/** Fires when the logo is clicked, usually goes to the website of the creator of the app */
|
|
339
|
-
onLogoClicked?: any;
|
|
340
|
-
};
|
|
341
|
-
declare const HawaCopyrights: FC<CopyRightsTypes>;
|
|
342
|
-
|
|
343
|
-
type THawaTimeline = {
|
|
344
|
-
steps: any[any];
|
|
345
|
-
currentStep: any;
|
|
346
|
-
orientation: "vertical" | "horizontal";
|
|
347
|
-
};
|
|
348
|
-
declare const HawaStepper: FC<THawaTimeline>;
|
|
349
|
-
|
|
350
|
-
type StatTypes = {
|
|
351
|
-
label?: string;
|
|
352
|
-
color?: string;
|
|
353
|
-
number?: string;
|
|
354
|
-
helperText?: string;
|
|
355
|
-
icon?: any;
|
|
356
|
-
variant?: "default" | "plain" | "contained" | "outlined" | "brutalist" | "dropshadow";
|
|
357
|
-
width?: "full" | "min" | "normal";
|
|
358
|
-
isLoading?: boolean;
|
|
359
|
-
handleClick?: () => void;
|
|
360
|
-
};
|
|
361
|
-
declare const HawaStats: FC<StatTypes>;
|
|
362
|
-
|
|
363
|
-
type CodeBlockTypes = {
|
|
364
|
-
color?: "dark" | "light";
|
|
365
|
-
language?: string;
|
|
366
|
-
width?: "full" | "md" | "sm";
|
|
367
|
-
tabs?: TabsTypes[];
|
|
368
|
-
fileName?: string;
|
|
369
|
-
code?: string;
|
|
370
|
-
};
|
|
371
|
-
type TabsTypes = {
|
|
372
|
-
title: string;
|
|
373
|
-
code: string;
|
|
374
|
-
};
|
|
375
|
-
declare const HawaCodeBlock: FC<CodeBlockTypes>;
|
|
376
|
-
|
|
377
|
-
type LoadingTypes = {
|
|
378
|
-
size?: "button" | "sm" | "normal" | "lg" | "xl";
|
|
379
|
-
design?: "spinner" | "dots-bounce" | "dots-pulse" | "pulse" | "spinner-dots";
|
|
380
|
-
color?: any;
|
|
381
|
-
};
|
|
382
|
-
declare const HawaLoading: FC<LoadingTypes>;
|
|
383
|
-
|
|
384
|
-
type RadioTypes = {
|
|
385
|
-
orientation?: "vertical" | "horizontal";
|
|
386
|
-
design?: "default" | "tabs" | "cards" | "bordered";
|
|
387
|
-
options?: {
|
|
388
|
-
value: any;
|
|
389
|
-
label: any;
|
|
390
|
-
disabled?: any;
|
|
391
|
-
sublabel?: any;
|
|
392
|
-
icon?: any;
|
|
393
|
-
}[];
|
|
394
|
-
width?: "default" | "full";
|
|
395
|
-
onChangeTab?: any;
|
|
396
|
-
defaultValue?: any;
|
|
397
|
-
};
|
|
398
|
-
declare const HawaRadio: FC<RadioTypes>;
|
|
399
|
-
|
|
400
|
-
type DatepickerTypes = {};
|
|
401
|
-
declare const HawaDatepicker: FC<DatepickerTypes>;
|
|
402
|
-
|
|
403
|
-
type DragDropImagesTypes = {
|
|
404
|
-
/** The text label above the component. Consistant with the other form input fields */
|
|
405
|
-
label?: string;
|
|
406
|
-
files: [File];
|
|
407
|
-
setFiles: any;
|
|
408
|
-
setDeletedFiles: any;
|
|
409
|
-
maxFiles: number;
|
|
410
|
-
accept: string;
|
|
411
|
-
onAcceptedFiles: any;
|
|
412
|
-
showPreview: any;
|
|
413
|
-
onDeleteFile: any;
|
|
414
|
-
onClearFiles: any;
|
|
415
|
-
maxSize: number;
|
|
416
|
-
errorMessages: string;
|
|
417
|
-
/** The translation object, use this to replace the default text with any translated text you want.*/
|
|
418
|
-
texts: {
|
|
419
|
-
errorUploading: any;
|
|
420
|
-
clickHereToUpload: any;
|
|
421
|
-
maxFileSize: any;
|
|
422
|
-
tooManyFiles: any;
|
|
423
|
-
fileTooLarge: any;
|
|
424
|
-
acceptedFileTypes: any;
|
|
425
|
-
invalidFileType: any;
|
|
426
|
-
};
|
|
427
|
-
};
|
|
428
|
-
declare const DragDropImages: React__default.FunctionComponent<DragDropImagesTypes>;
|
|
429
|
-
|
|
430
|
-
type DraggableCardTypes = {
|
|
431
|
-
children: ReactElement;
|
|
432
|
-
};
|
|
433
|
-
declare const DraggableCard: FC<DraggableCardTypes>;
|
|
434
|
-
|
|
435
|
-
type SubsectionListTypes = {
|
|
436
|
-
align?: any;
|
|
437
|
-
subsections: [
|
|
438
|
-
{
|
|
439
|
-
title: string;
|
|
440
|
-
sections: [
|
|
441
|
-
{
|
|
442
|
-
label: string;
|
|
443
|
-
action: () => void;
|
|
444
|
-
icon?: any;
|
|
445
|
-
value?: any;
|
|
446
|
-
}
|
|
447
|
-
];
|
|
448
|
-
}
|
|
449
|
-
];
|
|
450
|
-
};
|
|
451
|
-
declare const SubsectionList: FC<SubsectionListTypes>;
|
|
452
|
-
|
|
453
|
-
type UsageCardTypes = {
|
|
454
|
-
tooltip?: any;
|
|
455
|
-
title: any;
|
|
456
|
-
percent: any;
|
|
457
|
-
currentUsage: any;
|
|
458
|
-
};
|
|
459
|
-
declare const UsageCard: FC<UsageCardTypes>;
|
|
460
|
-
|
|
461
|
-
type InvoiceAccordionTypes = {
|
|
462
|
-
products: {
|
|
463
|
-
usage?: string;
|
|
464
|
-
price?: string;
|
|
465
|
-
amount?: string;
|
|
466
|
-
plan?: string;
|
|
467
|
-
}[];
|
|
468
|
-
texts: {
|
|
469
|
-
total: string;
|
|
470
|
-
plan: string;
|
|
471
|
-
usage: string;
|
|
472
|
-
amount: string;
|
|
473
|
-
price: string;
|
|
474
|
-
};
|
|
475
|
-
invoiceTitle: string;
|
|
476
|
-
invoiceSubtitle: string;
|
|
477
|
-
invoiceDescription?: string;
|
|
478
|
-
invoiceActions?: {
|
|
479
|
-
icon?: JSX.Element;
|
|
480
|
-
label: string;
|
|
481
|
-
action?: (e: any) => void;
|
|
482
|
-
isButton?: boolean;
|
|
483
|
-
element?: any;
|
|
484
|
-
}[][];
|
|
485
|
-
total: any;
|
|
486
|
-
direction?: "rtl" | "ltr";
|
|
487
|
-
status?: "paid" | "pending" | "overdue";
|
|
488
|
-
};
|
|
489
|
-
declare const InvoiceAccordion: FC<InvoiceAccordionTypes>;
|
|
490
|
-
|
|
491
|
-
type ComponentTypes$4 = {
|
|
492
|
-
title?: string;
|
|
493
|
-
question: string;
|
|
494
|
-
options?: [];
|
|
495
|
-
texts?: {
|
|
496
|
-
least: string;
|
|
497
|
-
most: string;
|
|
498
|
-
};
|
|
499
|
-
position?: "bottom-right" | "bottom-left";
|
|
500
|
-
onOptionClicked?: (option: any) => void;
|
|
501
|
-
};
|
|
502
|
-
declare const UserFeedback: FC<ComponentTypes$4>;
|
|
503
|
-
|
|
504
|
-
type Item = {
|
|
505
|
-
label?: string;
|
|
506
|
-
icon?: JSX.Element;
|
|
507
|
-
};
|
|
508
|
-
type ComponentTypes$3 = {
|
|
509
|
-
items: Item[];
|
|
510
|
-
index?: number;
|
|
511
|
-
arrowSize?: number;
|
|
512
|
-
labelSize?: "small" | "medium" | "big";
|
|
513
|
-
};
|
|
514
|
-
declare const ArrowCarousel: FC<ComponentTypes$3>;
|
|
515
|
-
|
|
516
|
-
type ComponentTypes$2 = {
|
|
517
|
-
rtl?: "enabled" | "disabled" | "auto";
|
|
518
|
-
onSubmit?: (content: string, stylings: {
|
|
519
|
-
type: keyof typeof stylers;
|
|
520
|
-
start: number;
|
|
521
|
-
finish: number;
|
|
522
|
-
}[]) => void;
|
|
523
|
-
};
|
|
524
|
-
declare const stylers: {
|
|
525
|
-
bold: {
|
|
526
|
-
css: string;
|
|
527
|
-
content: string;
|
|
528
|
-
};
|
|
529
|
-
italic: {
|
|
530
|
-
id: string;
|
|
531
|
-
css: string;
|
|
532
|
-
content: string;
|
|
533
|
-
};
|
|
534
|
-
under: {
|
|
535
|
-
id: string;
|
|
536
|
-
css: string;
|
|
537
|
-
content: string;
|
|
538
|
-
};
|
|
539
|
-
strike: {
|
|
540
|
-
id: string;
|
|
541
|
-
css: string;
|
|
542
|
-
content: string;
|
|
543
|
-
};
|
|
544
|
-
};
|
|
545
|
-
declare const FloatingComment: React__default.FunctionComponent<ComponentTypes$2>;
|
|
546
|
-
|
|
547
|
-
type CustomElement = {
|
|
548
|
-
type: "paragraph";
|
|
549
|
-
children: CustomText[];
|
|
550
|
-
};
|
|
551
|
-
type CustomText = {
|
|
552
|
-
text: string;
|
|
553
|
-
};
|
|
554
|
-
declare module "slate" {
|
|
555
|
-
interface CustomTypes {
|
|
556
|
-
Editor: BaseEditor & ReactEditor;
|
|
557
|
-
Element: CustomElement;
|
|
558
|
-
Text: CustomText;
|
|
559
|
-
}
|
|
560
|
-
}
|
|
561
|
-
declare const FloatingCommentSlate: () => React__default.JSX.Element;
|
|
562
|
-
|
|
563
|
-
type ComponentTypes$1 = {};
|
|
564
|
-
declare const FloatingCommentExec: React__default.FC<ComponentTypes$1>;
|
|
565
|
-
|
|
566
|
-
type ComponentTypes = {
|
|
567
|
-
paddingX?: number;
|
|
568
|
-
paddingY?: number;
|
|
569
|
-
paddingThreshold?: number;
|
|
570
|
-
corner?: "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
571
|
-
anchor: RefObject<HTMLInputElement>;
|
|
572
|
-
};
|
|
573
|
-
declare const BackToTop: FC<ComponentTypes>;
|
|
574
|
-
|
|
575
|
-
type InlineCodeTypes = {
|
|
576
|
-
text: string;
|
|
577
|
-
};
|
|
578
|
-
declare const HawaInlineCode: FC<InlineCodeTypes>;
|
|
579
|
-
|
|
580
|
-
type TimelineTypes = {
|
|
581
|
-
title: any;
|
|
582
|
-
steps: StepTypes[];
|
|
583
|
-
};
|
|
584
|
-
type StepTypes = {
|
|
585
|
-
date: string;
|
|
586
|
-
title: string;
|
|
587
|
-
description?: string;
|
|
588
|
-
actions?: any;
|
|
589
|
-
};
|
|
590
|
-
declare const Timeline: FC<TimelineTypes>;
|
|
591
|
-
|
|
592
|
-
type TextFieldTypes = {
|
|
593
|
-
margin?: "none" | "normal" | "large";
|
|
594
|
-
width?: "small" | "normal" | "full";
|
|
595
|
-
/** The label of the input field */
|
|
596
|
-
label?: any;
|
|
597
|
-
/** Disable/Enable multiple line text input field */
|
|
598
|
-
multiline?: boolean;
|
|
599
|
-
/** The small red text under the input field to show validation or a hint. */
|
|
600
|
-
helpertext?: any;
|
|
601
|
-
/** The value of the input field */
|
|
602
|
-
value?: any;
|
|
603
|
-
props?: PropsWithRef<"input">;
|
|
604
|
-
/** The type of input field. Same as the types of <input/> component */
|
|
605
|
-
type?: any;
|
|
606
|
-
/** The placeholder of the input field */
|
|
607
|
-
placeholder?: any;
|
|
608
|
-
defaultValue?: any;
|
|
609
|
-
name?: any;
|
|
610
|
-
inputProps?: any;
|
|
611
|
-
onChange?: any;
|
|
612
|
-
ref?: any;
|
|
613
|
-
/** The icon inside the input field */
|
|
614
|
-
icon?: any;
|
|
615
|
-
/** Boolean to enable/disable editing the input field and using it as a text field */
|
|
616
|
-
preview?: boolean;
|
|
617
|
-
autoComplete?: any;
|
|
618
|
-
maxLength?: any;
|
|
619
|
-
};
|
|
620
|
-
declare const HawaTextField: FC<TextFieldTypes>;
|
|
621
|
-
|
|
622
|
-
type PinInputTypes = {
|
|
623
|
-
label?: string;
|
|
624
|
-
icon?: JSX.Element;
|
|
625
|
-
digits: number;
|
|
626
|
-
width?: "normal" | "full";
|
|
627
|
-
getPins?: any;
|
|
628
|
-
};
|
|
629
|
-
declare const HawaPinInput: FC<PinInputTypes>;
|
|
630
|
-
|
|
631
|
-
interface ItemCardTypes {
|
|
632
|
-
headerActions?: THeaderActions[][];
|
|
633
|
-
header?: any;
|
|
634
|
-
content?: any;
|
|
635
|
-
/** a URL for the image of the card */
|
|
636
|
-
cardImage?: string;
|
|
637
|
-
/** a function that fires when the card is clicked anywhere */
|
|
638
|
-
onCardClick?: any;
|
|
639
|
-
/** a React node with HawaIconCount children to have counters at the bottom of the card */
|
|
640
|
-
counts?: JSX.Element;
|
|
641
|
-
/** The action buttons on the bottom right of the card */
|
|
642
|
-
actions?: JSX.Element;
|
|
643
|
-
/** The orientation of the card */
|
|
644
|
-
orientation?: "horizontal" | "vertical";
|
|
645
|
-
/** Enabling this blurs the image on hover and shows an action button */
|
|
646
|
-
clickableImage?: boolean;
|
|
647
|
-
/** The function of the action button on the image of the card */
|
|
648
|
-
clickableImageAction?: () => void;
|
|
649
|
-
/** The text of the action button on the image of the card */
|
|
650
|
-
clickableImageActionText: string;
|
|
651
|
-
/** The icon of the action button on the image of the card */
|
|
652
|
-
clickableImageActionIcon?: any;
|
|
653
|
-
}
|
|
654
|
-
type THeaderActions = {
|
|
655
|
-
icon?: JSX.Element;
|
|
656
|
-
label: string;
|
|
657
|
-
action?: (e: any) => void;
|
|
658
|
-
isButton?: boolean;
|
|
659
|
-
};
|
|
660
|
-
declare const HawaItemCard: FC<ItemCardTypes>;
|
|
661
|
-
|
|
662
|
-
type PricingCardTypes = {
|
|
663
|
-
direction?: "rtl" | "ltr";
|
|
664
|
-
features: [{
|
|
665
|
-
included: boolean;
|
|
666
|
-
text: string;
|
|
667
|
-
}];
|
|
668
|
-
price: number;
|
|
669
|
-
texts: {
|
|
670
|
-
title: string;
|
|
671
|
-
subtitle: string;
|
|
672
|
-
buttonText: string;
|
|
673
|
-
cycleText: string;
|
|
674
|
-
currencyText: string;
|
|
675
|
-
};
|
|
676
|
-
onPlanClicked?: () => void;
|
|
677
|
-
currentPlan?: boolean;
|
|
678
|
-
size: "small" | "medium" | "large";
|
|
679
|
-
};
|
|
680
|
-
declare const HawaPricingCard: FC<PricingCardTypes>;
|
|
681
|
-
|
|
682
|
-
type AdCardTypes = {
|
|
683
|
-
orientation: "vertical" | "horizontal";
|
|
684
|
-
title: string;
|
|
685
|
-
description: string;
|
|
686
|
-
imageURL: string;
|
|
687
|
-
handleHide: any;
|
|
688
|
-
};
|
|
689
|
-
declare const HawaAdCard: FC<AdCardTypes>;
|
|
690
|
-
|
|
691
|
-
type LandingCardTypes = {
|
|
692
|
-
orientation: "vertical" | "horizontal";
|
|
693
|
-
title: string;
|
|
694
|
-
description: string;
|
|
695
|
-
imageURL: string;
|
|
696
|
-
handleHide: any;
|
|
697
|
-
texts?: {
|
|
698
|
-
titleTip?: string;
|
|
699
|
-
title?: string;
|
|
700
|
-
description?: string;
|
|
701
|
-
linkText?: string;
|
|
702
|
-
};
|
|
703
|
-
buttonLink?: string;
|
|
704
|
-
className?: any;
|
|
705
|
-
};
|
|
706
|
-
declare const HawaLandingCard: FC<LandingCardTypes>;
|
|
707
|
-
|
|
708
|
-
interface ButtonProps$1 extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
709
|
-
variant?: "contained" | "outlined";
|
|
710
|
-
feedback?: string;
|
|
711
|
-
tooltipDirection?: "rtl" | "ltr";
|
|
712
|
-
color?: "default" | "primary" | "secondary" | "light" | "dark";
|
|
713
|
-
width?: "full" | "normal" | "half";
|
|
714
|
-
size?: "xs" | "small" | "medium" | "large" | "noPadding" | "full" | "icon";
|
|
715
|
-
margins?: "none" | "1" | "2" | "3" | "4";
|
|
716
|
-
tooltip?: string;
|
|
717
|
-
tooltipSize?: "normal" | "small" | "large";
|
|
718
|
-
tooltipPosition?: "left-top" | "left-bottom" | "right-top" | "right-bottom" | "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
719
|
-
startIcon?: any;
|
|
720
|
-
endIcon?: any;
|
|
721
|
-
isLoading?: boolean;
|
|
722
|
-
badge?: any;
|
|
723
|
-
edgeCorner?: any;
|
|
724
|
-
disabled?: boolean;
|
|
725
|
-
}
|
|
726
|
-
declare const HawaButton: FC<ButtonProps$1>;
|
|
727
|
-
|
|
728
|
-
type StoreButtonsTypes = {
|
|
729
|
-
store: "apple" | "google";
|
|
730
|
-
mode: "dark" | "light";
|
|
731
|
-
};
|
|
732
|
-
declare const HawaStoreButtons: FC<StoreButtonsTypes>;
|
|
733
|
-
|
|
734
|
-
type LogoButtonTypes = {
|
|
735
|
-
lang?: any;
|
|
736
|
-
logo?: "google" | "github" | "twitter" | "wallet" | "googlepay" | "applepay" | "stcpay" | "visa/master" | "paypal" | "mada";
|
|
737
|
-
onClick?: any;
|
|
738
|
-
buttonText?: any;
|
|
739
|
-
direction?: "rtl" | "ltr";
|
|
740
|
-
};
|
|
741
|
-
declare const HawaLogoButton: FC<LogoButtonTypes>;
|
|
742
|
-
|
|
743
5
|
declare const buttonVariants: (props?: {
|
|
744
|
-
variant?: "link" | "default" | "
|
|
6
|
+
variant?: "link" | "default" | "light" | "destructive" | "outline" | "secondary" | "ghost";
|
|
745
7
|
size?: "sm" | "lg" | "xl" | "default" | "xs" | "icon" | "smallIcon";
|
|
746
8
|
} & class_variance_authority_dist_types.ClassProp) => string;
|
|
747
9
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
@@ -750,4 +12,4 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, Var
|
|
|
750
12
|
}
|
|
751
13
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
752
14
|
|
|
753
|
-
export {
|
|
15
|
+
export { Button, ButtonProps, buttonVariants };
|