@mmb-digital/design-system-web 0.1.18 → 0.1.19
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.cjs.js +67 -74
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +143 -128
- package/dist/index.esm.js +76 -83
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
import React, { ReactNode, FC, ReactElement, SyntheticEvent, RefAttributes, HTMLInputTypeAttribute, MouseEvent, HTMLAttributes } from 'react';
|
|
2
|
-
import { ColorScheme as ColorScheme$1 } from '@/util/colorScheme';
|
|
3
|
-
import { ModalProps as ModalProps$1 } from '@/components/modal/modal/modal.types';
|
|
4
|
-
import { TooltipFloatingElement as TooltipFloatingElement$1, TooltipParentElement as TooltipParentElement$1, TooltipPlacement as TooltipPlacement$1 } from '@/components/tooltip/tooltip.types';
|
|
5
|
-
import { FormattedMessageTypes as FormattedMessageTypes$1 } from '@/components/formatted/message';
|
|
1
|
+
import React, { ReactNode, FC, ReactElement, SyntheticEvent, RefAttributes, FocusEvent, ChangeEvent, PropsWithChildren, HTMLInputTypeAttribute, MouseEvent, HTMLAttributes } from 'react';
|
|
6
2
|
import { MessageDescriptor } from 'react-intl';
|
|
7
|
-
import { TooltipFloatingElement as TooltipFloatingElement$2 } from '@/components/tooltip';
|
|
8
|
-
import { CalculatorResultBoxProps as CalculatorResultBoxProps$1 } from '@/components/calculator/calculatorResult/calculatorResultBox/calculatorResultBox.types';
|
|
9
|
-
import { CalculatorResultValues as CalculatorResultValues$1 } from '@/components/calculator/calculatorResult/calculatorResult.types';
|
|
10
|
-
import { MediaType as MediaType$1 } from '@/media';
|
|
11
3
|
import { PrimitiveType } from 'intl-messageformat';
|
|
12
4
|
import { ReactDatePickerProps } from 'react-datepicker';
|
|
13
|
-
import { CheckboxBaseProps } from '@/components/formElement/checkbox/checkboxBase';
|
|
14
|
-
import { RadioButtonLabel as RadioButtonLabel$1 } from '@/components/formElement/radio';
|
|
15
5
|
import { FieldValues, Control, FieldPath } from 'react-hook-form';
|
|
16
6
|
import { Options, Props, PropsValue, SingleValue as SingleValue$1 } from 'react-select';
|
|
17
|
-
import { MinMaxLabels as MinMaxLabels$1, SliderStepType as SliderStepType$1, SliderSteps as SliderSteps$1 } from '@/components/slider/slider/slider.types';
|
|
18
|
-
import { ColorScheme as ColorScheme$2, ChooseColor as ChooseColor$1 } from '@/util/colorScheme/colorScheme.types';
|
|
19
7
|
|
|
20
8
|
declare enum ButtonStyle {
|
|
21
9
|
PRIMARY = "primary",
|
|
@@ -119,13 +107,28 @@ declare const TableHeadData: FC<TableProps>;
|
|
|
119
107
|
|
|
120
108
|
declare const TableRow: FC<TableProps>;
|
|
121
109
|
|
|
110
|
+
declare enum ColorScheme {
|
|
111
|
+
dark = "dark",
|
|
112
|
+
light = "light"
|
|
113
|
+
}
|
|
114
|
+
interface ColorSchemeObject<Dark extends string = string, Light extends string = string> {
|
|
115
|
+
dark: Dark;
|
|
116
|
+
light: Light;
|
|
117
|
+
}
|
|
118
|
+
type ChooseColor = <Dark extends string = string, Light extends string = string>(colorSchemeObject: ColorSchemeObject<Dark, Light>) => Dark | Light;
|
|
119
|
+
type GetColor = <Dark extends string = string, Light extends string = string>(colorScheme: ColorScheme, colorSchemeObject: ColorSchemeObject<Dark, Light>) => Dark | Light;
|
|
120
|
+
|
|
121
|
+
declare const useColorScheme: (colorScheme: ColorScheme) => ChooseColor;
|
|
122
|
+
|
|
123
|
+
declare const getColor: GetColor;
|
|
124
|
+
|
|
122
125
|
declare enum TabsVariant {
|
|
123
126
|
primary = "primary",
|
|
124
127
|
secondary = "secondary",
|
|
125
128
|
tertiary = "tertiary"
|
|
126
129
|
}
|
|
127
130
|
interface TabsItemProps {
|
|
128
|
-
colorScheme: ColorScheme
|
|
131
|
+
colorScheme: ColorScheme;
|
|
129
132
|
icon?: ReactNode;
|
|
130
133
|
id: string;
|
|
131
134
|
isActive?: boolean;
|
|
@@ -134,7 +137,7 @@ interface TabsItemProps {
|
|
|
134
137
|
variant: TabsVariant;
|
|
135
138
|
}
|
|
136
139
|
interface TabsProps {
|
|
137
|
-
colorScheme?: ColorScheme
|
|
140
|
+
colorScheme?: ColorScheme;
|
|
138
141
|
defaultActiveStep?: number;
|
|
139
142
|
steps: TabsItemProps[];
|
|
140
143
|
variant: TabsVariant;
|
|
@@ -157,7 +160,7 @@ declare enum IconProductVariant {
|
|
|
157
160
|
default = "default"
|
|
158
161
|
}
|
|
159
162
|
interface IconProductProps {
|
|
160
|
-
readonly colorScheme?: ColorScheme
|
|
163
|
+
readonly colorScheme?: ColorScheme;
|
|
161
164
|
readonly size: IconProductSize;
|
|
162
165
|
readonly type: IconProductType;
|
|
163
166
|
readonly variant?: IconProductVariant | undefined;
|
|
@@ -187,7 +190,7 @@ declare enum IconSystemSize {
|
|
|
187
190
|
small = "small"
|
|
188
191
|
}
|
|
189
192
|
interface IconSystemProps {
|
|
190
|
-
readonly colorScheme?: ColorScheme
|
|
193
|
+
readonly colorScheme?: ColorScheme;
|
|
191
194
|
readonly fill?: string;
|
|
192
195
|
readonly size: IconSystemSize;
|
|
193
196
|
readonly stroke?: string;
|
|
@@ -196,8 +199,6 @@ interface IconSystemProps {
|
|
|
196
199
|
|
|
197
200
|
declare const IconSystem: React.FC<IconSystemProps>;
|
|
198
201
|
|
|
199
|
-
declare const Modal: React.FC<ModalProps$1>;
|
|
200
|
-
|
|
201
202
|
type ModalOnClose = (reasonForClosing: ReasonForClosing) => void;
|
|
202
203
|
interface ModalProps {
|
|
203
204
|
readonly children: ReactElement | string;
|
|
@@ -213,23 +214,7 @@ declare enum ReasonForClosing {
|
|
|
213
214
|
OVERLAY = "overlay"
|
|
214
215
|
}
|
|
215
216
|
|
|
216
|
-
|
|
217
|
-
readonly colorScheme?: ColorScheme$1;
|
|
218
|
-
readonly floatingElement: TooltipFloatingElement$1;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
declare const TooltipInfo: React.FC<TooltipInfoProps>;
|
|
222
|
-
|
|
223
|
-
interface TooltipGeneralProps {
|
|
224
|
-
readonly colorScheme: ColorScheme$1;
|
|
225
|
-
readonly floatingElement: TooltipFloatingElement$1;
|
|
226
|
-
readonly onClose?: (() => void) | undefined;
|
|
227
|
-
readonly onOpen?: (() => void) | undefined;
|
|
228
|
-
readonly parentElement: TooltipParentElement$1;
|
|
229
|
-
readonly placement?: TooltipPlacement$1 | undefined;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
declare const TooltipGeneral: React.FC<TooltipGeneralProps>;
|
|
217
|
+
declare const Modal: React.FC<ModalProps>;
|
|
233
218
|
|
|
234
219
|
interface TooltipParentElementProps extends Record<string, unknown> {
|
|
235
220
|
ref: (node: Element | null) => void;
|
|
@@ -250,24 +235,58 @@ declare enum TooltipInfoDisplayMethod {
|
|
|
250
235
|
WITH_NBSP = "withNbsp"
|
|
251
236
|
}
|
|
252
237
|
|
|
238
|
+
interface TooltipInfoProps {
|
|
239
|
+
readonly colorScheme?: ColorScheme;
|
|
240
|
+
readonly floatingElement: TooltipFloatingElement;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
declare const TooltipInfo: React.FC<TooltipInfoProps>;
|
|
244
|
+
|
|
245
|
+
interface TooltipGeneralProps {
|
|
246
|
+
readonly colorScheme: ColorScheme;
|
|
247
|
+
readonly floatingElement: TooltipFloatingElement;
|
|
248
|
+
readonly onClose?: (() => void) | undefined;
|
|
249
|
+
readonly onOpen?: (() => void) | undefined;
|
|
250
|
+
readonly parentElement: TooltipParentElement;
|
|
251
|
+
readonly placement?: TooltipPlacement | undefined;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
declare const TooltipGeneral: React.FC<TooltipGeneralProps>;
|
|
255
|
+
|
|
256
|
+
interface FormattedMessageTypes extends MessageDescriptor {
|
|
257
|
+
values?: Record<string, PrimitiveType>;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
type FormattedMessageProps = FormattedMessageTypes;
|
|
261
|
+
|
|
262
|
+
declare const FormattedMessage: React.FC<FormattedMessageProps>;
|
|
263
|
+
|
|
264
|
+
type FormattedHtmlMessageProps = FormattedMessageTypes;
|
|
265
|
+
|
|
266
|
+
declare const FormattedHtmlMessage: React.FC<FormattedHtmlMessageProps>;
|
|
267
|
+
|
|
268
|
+
type IsMessageDisplayableHookReturnFunction = (messageDescriptor: MessageDescriptor) => boolean;
|
|
269
|
+
|
|
270
|
+
declare const useIsMessageDisplayable: () => IsMessageDisplayableHookReturnFunction;
|
|
271
|
+
|
|
253
272
|
interface TooltipInfoDisplayableCheckProps {
|
|
254
|
-
body: FormattedMessageTypes
|
|
255
|
-
colorScheme?: ColorScheme
|
|
273
|
+
body: FormattedMessageTypes;
|
|
274
|
+
colorScheme?: ColorScheme;
|
|
256
275
|
displayMethod: TooltipInfoDisplayMethod;
|
|
257
|
-
title?: FormattedMessageTypes
|
|
276
|
+
title?: FormattedMessageTypes | undefined;
|
|
258
277
|
}
|
|
259
278
|
|
|
260
279
|
declare const TooltipInfoDisplayableCheck: React.FC<TooltipInfoDisplayableCheckProps>;
|
|
261
280
|
|
|
262
281
|
interface TooltipInfoConditionalProps {
|
|
263
|
-
colorScheme?: ColorScheme
|
|
282
|
+
colorScheme?: ColorScheme;
|
|
264
283
|
displayMethod: TooltipInfoDisplayMethod;
|
|
265
284
|
floatingElement?: Partial<TooltipFloatingElement> | undefined;
|
|
266
285
|
}
|
|
267
286
|
|
|
268
287
|
declare const TooltipInfoConditional: React.FC<TooltipInfoConditionalProps>;
|
|
269
288
|
|
|
270
|
-
type CreateTooltipFloatingElementHookReturnFunction = (body: FormattedMessageTypes
|
|
289
|
+
type CreateTooltipFloatingElementHookReturnFunction = (body: FormattedMessageTypes, title?: MessageDescriptor | undefined) => TooltipFloatingElement | undefined;
|
|
271
290
|
|
|
272
291
|
declare const useCreateTooltipFloatingElement: () => CreateTooltipFloatingElementHookReturnFunction;
|
|
273
292
|
|
|
@@ -280,7 +299,7 @@ interface CalculatorResultBodyItem {
|
|
|
280
299
|
left: {
|
|
281
300
|
element: ReactElement | string;
|
|
282
301
|
tooltip?: {
|
|
283
|
-
floatingElement: TooltipFloatingElement
|
|
302
|
+
floatingElement: TooltipFloatingElement;
|
|
284
303
|
} | undefined;
|
|
285
304
|
};
|
|
286
305
|
right: {
|
|
@@ -305,34 +324,39 @@ interface CalculatorResultProps extends CalculatorResultValues {
|
|
|
305
324
|
*/
|
|
306
325
|
declare const CalculatorResult: React.FC<CalculatorResultProps>;
|
|
307
326
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
327
|
+
declare enum MediaType {
|
|
328
|
+
desktop = "desktop",
|
|
329
|
+
mobile = "mobile"
|
|
330
|
+
}
|
|
312
331
|
|
|
313
332
|
interface CalculatorResultBoxModal {
|
|
314
333
|
content: ReactElement | string;
|
|
315
334
|
text: ReactElement | string;
|
|
316
335
|
}
|
|
317
|
-
interface CalculatorResultBoxProps extends CalculatorResultValues
|
|
336
|
+
interface CalculatorResultBoxProps extends CalculatorResultValues {
|
|
318
337
|
description?: ReactElement | string;
|
|
319
|
-
mediaType: MediaType
|
|
338
|
+
mediaType: MediaType;
|
|
320
339
|
modal: CalculatorResultBoxModal | undefined;
|
|
321
340
|
}
|
|
322
341
|
|
|
342
|
+
/**
|
|
343
|
+
* If you just want CalculatorResult without text below it, consider using CalculatorResult
|
|
344
|
+
*/
|
|
345
|
+
declare const CalculatorResultBox: React.FC<CalculatorResultBoxProps>;
|
|
346
|
+
|
|
323
347
|
declare enum LoaderSize {
|
|
324
348
|
LG = "lg",
|
|
325
349
|
SM = "sm"
|
|
326
350
|
}
|
|
327
351
|
interface LoaderProps {
|
|
328
|
-
colorScheme: ColorScheme
|
|
352
|
+
colorScheme: ColorScheme;
|
|
329
353
|
loaderSize: LoaderSize;
|
|
330
354
|
}
|
|
331
355
|
|
|
332
356
|
declare const Loader: React.FC<LoaderProps>;
|
|
333
357
|
|
|
334
358
|
interface LoaderOverlayBoxProps {
|
|
335
|
-
colorScheme: ColorScheme
|
|
359
|
+
colorScheme: ColorScheme;
|
|
336
360
|
loaderSize: LoaderSize;
|
|
337
361
|
}
|
|
338
362
|
|
|
@@ -354,22 +378,6 @@ interface UseFormatPercentageTypeParam {
|
|
|
354
378
|
type UseFormatPercentage = (param: UseFormatPercentageTypeParam) => string;
|
|
355
379
|
declare const useFormattedPercentage: () => UseFormatPercentage;
|
|
356
380
|
|
|
357
|
-
interface FormattedMessageTypes extends MessageDescriptor {
|
|
358
|
-
values?: Record<string, PrimitiveType>;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
type FormattedMessageProps = FormattedMessageTypes;
|
|
362
|
-
|
|
363
|
-
declare const FormattedMessage: React.FC<FormattedMessageProps>;
|
|
364
|
-
|
|
365
|
-
type FormattedHtmlMessageProps = FormattedMessageTypes;
|
|
366
|
-
|
|
367
|
-
declare const FormattedHtmlMessage: React.FC<FormattedHtmlMessageProps>;
|
|
368
|
-
|
|
369
|
-
type IsMessageDisplayableHookReturnFunction = (messageDescriptor: MessageDescriptor) => boolean;
|
|
370
|
-
|
|
371
|
-
declare const useIsMessageDisplayable: () => IsMessageDisplayableHookReturnFunction;
|
|
372
|
-
|
|
373
381
|
interface FormattedAmountProps {
|
|
374
382
|
readonly amount: number;
|
|
375
383
|
readonly currency?: string;
|
|
@@ -400,13 +408,22 @@ interface DatePickerProps extends Omit<ReactDatePickerProps, 'calendarContainer'
|
|
|
400
408
|
|
|
401
409
|
declare const DatePicker: (props: DatePickerProps) => React.JSX.Element;
|
|
402
410
|
|
|
411
|
+
interface CheckboxBaseProps extends RefAttributes<HTMLInputElement> {
|
|
412
|
+
readonly disabled?: boolean | undefined;
|
|
413
|
+
readonly id?: string | undefined;
|
|
414
|
+
readonly isError?: boolean | undefined;
|
|
415
|
+
readonly name: string;
|
|
416
|
+
readonly onBlur?: ((event: React.FocusEvent<HTMLInputElement>) => Promise<boolean | void>) | undefined;
|
|
417
|
+
readonly onChange?: ((event: React.ChangeEvent<HTMLInputElement>) => Promise<boolean | void>) | undefined;
|
|
418
|
+
}
|
|
419
|
+
|
|
403
420
|
declare enum CheckboxPosition {
|
|
404
421
|
left = "left",
|
|
405
422
|
right = "right"
|
|
406
423
|
}
|
|
407
424
|
interface CheckboxLabel {
|
|
408
425
|
readonly label: React.ReactElement | string;
|
|
409
|
-
readonly tooltip?: TooltipFloatingElement
|
|
426
|
+
readonly tooltip?: TooltipFloatingElement | undefined;
|
|
410
427
|
}
|
|
411
428
|
interface CheckboxProps extends CheckboxBaseProps {
|
|
412
429
|
readonly errorMessage?: React.ReactElement | string | undefined;
|
|
@@ -416,6 +433,39 @@ interface CheckboxProps extends CheckboxBaseProps {
|
|
|
416
433
|
|
|
417
434
|
declare const Checkbox: React.FC<CheckboxProps>;
|
|
418
435
|
|
|
436
|
+
declare enum InputSize {
|
|
437
|
+
MD = "md",
|
|
438
|
+
XL = "xl"
|
|
439
|
+
}
|
|
440
|
+
declare enum TextAlign {
|
|
441
|
+
center = "center",
|
|
442
|
+
left = "left",
|
|
443
|
+
right = "right"
|
|
444
|
+
}
|
|
445
|
+
interface FieldWrapperValues {
|
|
446
|
+
errorMessage?: ReactNode | string;
|
|
447
|
+
hasError?: boolean;
|
|
448
|
+
hintText?: ReactNode | string;
|
|
449
|
+
id?: string;
|
|
450
|
+
label?: ReactNode | string;
|
|
451
|
+
tooltip?: TooltipFloatingElement;
|
|
452
|
+
}
|
|
453
|
+
interface InputProps {
|
|
454
|
+
disabled?: boolean;
|
|
455
|
+
halfWidth?: boolean;
|
|
456
|
+
maxLength?: number;
|
|
457
|
+
name: string;
|
|
458
|
+
onBlur?: ((event: FocusEvent<HTMLInputElement>) => Promise<boolean | void>) | undefined;
|
|
459
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>) => Promise<boolean | void>) | undefined;
|
|
460
|
+
size: InputSize;
|
|
461
|
+
value?: string;
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
interface FieldWrapperProps extends FieldWrapperValues, PropsWithChildren {
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
declare const FieldWrapper: FC<FieldWrapperProps>;
|
|
468
|
+
|
|
419
469
|
interface RadioGeneralProps extends RefAttributes<HTMLInputElement> {
|
|
420
470
|
readonly disabled?: boolean;
|
|
421
471
|
readonly id?: string | undefined;
|
|
@@ -428,7 +478,7 @@ interface RadioGeneralProps extends RefAttributes<HTMLInputElement> {
|
|
|
428
478
|
|
|
429
479
|
interface RadioLabel {
|
|
430
480
|
readonly label: React.ReactElement | string;
|
|
431
|
-
readonly tooltip?: TooltipFloatingElement
|
|
481
|
+
readonly tooltip?: TooltipFloatingElement | undefined;
|
|
432
482
|
}
|
|
433
483
|
declare enum RadioPosition {
|
|
434
484
|
left = "left",
|
|
@@ -455,11 +505,11 @@ declare const RadioButton: React.FC<RadioButtonProps>;
|
|
|
455
505
|
|
|
456
506
|
interface RadioButtonsHorizontalLabel {
|
|
457
507
|
readonly element: React.ReactElement | string;
|
|
458
|
-
readonly tooltip?: TooltipFloatingElement
|
|
508
|
+
readonly tooltip?: TooltipFloatingElement | undefined;
|
|
459
509
|
}
|
|
460
510
|
interface RadioButtonsHorizontalItem {
|
|
461
511
|
id?: string | undefined;
|
|
462
|
-
label: RadioButtonLabel
|
|
512
|
+
label: RadioButtonLabel;
|
|
463
513
|
value: string;
|
|
464
514
|
}
|
|
465
515
|
interface RadioButtonsHorizontalProps {
|
|
@@ -510,32 +560,6 @@ interface ToggleProps {
|
|
|
510
560
|
*/
|
|
511
561
|
declare const Toggle: FC<ToggleProps>;
|
|
512
562
|
|
|
513
|
-
declare enum InputSize {
|
|
514
|
-
MD = "md",
|
|
515
|
-
XL = "xl"
|
|
516
|
-
}
|
|
517
|
-
declare enum TextAlign {
|
|
518
|
-
center = "center",
|
|
519
|
-
left = "left",
|
|
520
|
-
right = "right"
|
|
521
|
-
}
|
|
522
|
-
interface InputProps {
|
|
523
|
-
disabled?: boolean;
|
|
524
|
-
errorMessage?: ReactNode | string;
|
|
525
|
-
halfWidth?: boolean;
|
|
526
|
-
hasError?: boolean;
|
|
527
|
-
hintText?: ReactNode | string;
|
|
528
|
-
id?: string | undefined;
|
|
529
|
-
label?: ReactNode | string;
|
|
530
|
-
maxLength?: number;
|
|
531
|
-
name: string;
|
|
532
|
-
onBlur?: ((event: React.FocusEvent<HTMLInputElement>) => Promise<boolean | void>) | undefined;
|
|
533
|
-
onChange?: ((event: React.ChangeEvent<HTMLInputElement>) => Promise<boolean | void>) | undefined;
|
|
534
|
-
size: InputSize;
|
|
535
|
-
tooltip?: TooltipFloatingElement$2 | undefined;
|
|
536
|
-
value?: string;
|
|
537
|
-
}
|
|
538
|
-
|
|
539
563
|
interface InputBaseProps extends RefAttributes<HTMLInputElement> {
|
|
540
564
|
button?: ReactNode;
|
|
541
565
|
colorInput?: string | undefined;
|
|
@@ -563,25 +587,25 @@ interface InputLabelProps {
|
|
|
563
587
|
hasError?: boolean;
|
|
564
588
|
id?: string;
|
|
565
589
|
label?: ReactNode | string;
|
|
566
|
-
tooltip?: TooltipFloatingElement
|
|
590
|
+
tooltip?: TooltipFloatingElement;
|
|
567
591
|
}
|
|
568
592
|
|
|
569
593
|
declare const InputLabel: FC<InputLabelProps>;
|
|
570
594
|
|
|
571
|
-
interface EmailInputProps extends InputProps {
|
|
595
|
+
interface EmailInputProps extends InputProps, FieldWrapperValues {
|
|
572
596
|
placeholder?: string;
|
|
573
597
|
}
|
|
574
598
|
|
|
575
599
|
declare const EmailInput: FC<EmailInputProps>;
|
|
576
600
|
|
|
577
|
-
interface PhoneInputProps extends InputProps {
|
|
601
|
+
interface PhoneInputProps extends FieldWrapperValues, InputProps {
|
|
578
602
|
placeholder?: string;
|
|
579
603
|
prefix?: string;
|
|
580
604
|
}
|
|
581
605
|
|
|
582
606
|
declare const PhoneInput: FC<PhoneInputProps>;
|
|
583
607
|
|
|
584
|
-
interface SearchInputProps extends InputProps {
|
|
608
|
+
interface SearchInputProps extends FieldWrapperValues, InputProps {
|
|
585
609
|
buttonAction?: () => void;
|
|
586
610
|
buttonText?: ReactNode | string;
|
|
587
611
|
placeholder?: string;
|
|
@@ -591,7 +615,7 @@ declare const SearchInput: FC<SearchInputProps>;
|
|
|
591
615
|
|
|
592
616
|
interface SliderInputLabel {
|
|
593
617
|
element: ReactNode | string;
|
|
594
|
-
tooltip?: TooltipFloatingElement
|
|
618
|
+
tooltip?: TooltipFloatingElement | undefined;
|
|
595
619
|
}
|
|
596
620
|
interface SliderInputMinMax {
|
|
597
621
|
max: number;
|
|
@@ -603,33 +627,44 @@ interface SliderInputProps extends RefAttributes<HTMLInputElement> {
|
|
|
603
627
|
id?: string | undefined;
|
|
604
628
|
isInputHidden?: boolean | undefined;
|
|
605
629
|
label: SliderInputLabel;
|
|
606
|
-
mediaType: MediaType
|
|
630
|
+
mediaType: MediaType;
|
|
607
631
|
minMax: SliderInputMinMax;
|
|
608
|
-
minMaxLabels: MinMaxLabels
|
|
632
|
+
minMaxLabels: MinMaxLabels | undefined;
|
|
609
633
|
name: string;
|
|
610
634
|
onBlur?: ((event: React.FocusEvent<HTMLInputElement>) => Promise<boolean | void>) | undefined;
|
|
611
635
|
onChange?: ((event: React.ChangeEvent<HTMLInputElement>) => Promise<boolean | void>) | undefined;
|
|
612
636
|
prefix?: ReactNode | string | undefined;
|
|
613
|
-
stepType: SliderStepType
|
|
614
|
-
steps: SliderSteps
|
|
637
|
+
stepType: SliderStepType;
|
|
638
|
+
steps: SliderSteps;
|
|
615
639
|
suffix?: ReactNode | string | undefined;
|
|
616
640
|
}
|
|
617
641
|
|
|
618
642
|
declare const SliderInput: React.FC<SliderInputProps>;
|
|
619
643
|
|
|
620
|
-
interface TextInputProps extends InputProps {
|
|
644
|
+
interface TextInputProps extends FieldWrapperValues, InputProps {
|
|
621
645
|
placeholder?: string;
|
|
622
646
|
}
|
|
623
647
|
|
|
624
648
|
declare const TextInput: FC<TextInputProps>;
|
|
625
649
|
|
|
626
|
-
interface TrailingTextInputProps extends InputProps {
|
|
650
|
+
interface TrailingTextInputProps extends InputProps, FieldWrapperValues {
|
|
627
651
|
placeholder?: string;
|
|
628
652
|
suffix?: ReactNode | string;
|
|
629
653
|
}
|
|
630
654
|
|
|
631
655
|
declare const TrailingTextInput: FC<TrailingTextInputProps>;
|
|
632
656
|
|
|
657
|
+
interface TextAreaProps extends RefAttributes<HTMLTextAreaElement>, FieldWrapperValues {
|
|
658
|
+
hasError?: boolean;
|
|
659
|
+
onBlur?: ((event: FocusEvent<HTMLTextAreaElement>) => Promise<boolean | void>) | undefined;
|
|
660
|
+
onChange?: ((event: ChangeEvent<HTMLInputElement>) => Promise<boolean | void>) | undefined;
|
|
661
|
+
placeholder?: string;
|
|
662
|
+
rows?: number;
|
|
663
|
+
value?: string;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
declare const TextArea: FC<TextAreaProps>;
|
|
667
|
+
|
|
633
668
|
declare enum TypographyVariant {
|
|
634
669
|
H1 = "h1",
|
|
635
670
|
H2 = "h2",
|
|
@@ -693,26 +728,6 @@ type StackProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
693
728
|
|
|
694
729
|
declare const Stack: React.FC<StackProps>;
|
|
695
730
|
|
|
696
|
-
declare enum MediaType {
|
|
697
|
-
desktop = "desktop",
|
|
698
|
-
mobile = "mobile"
|
|
699
|
-
}
|
|
700
|
-
|
|
701
|
-
declare const useColorScheme: (colorScheme: ColorScheme$2) => ChooseColor$1;
|
|
702
|
-
|
|
703
|
-
declare enum ColorScheme {
|
|
704
|
-
dark = "dark",
|
|
705
|
-
light = "light"
|
|
706
|
-
}
|
|
707
|
-
interface ColorSchemeObject<Dark extends string = string, Light extends string = string> {
|
|
708
|
-
dark: Dark;
|
|
709
|
-
light: Light;
|
|
710
|
-
}
|
|
711
|
-
type ChooseColor = <Dark extends string = string, Light extends string = string>(colorSchemeObject: ColorSchemeObject<Dark, Light>) => Dark | Light;
|
|
712
|
-
type GetColor = <Dark extends string = string, Light extends string = string>(colorScheme: ColorScheme, colorSchemeObject: ColorSchemeObject<Dark, Light>) => Dark | Light;
|
|
713
|
-
|
|
714
|
-
declare const getColor: GetColor;
|
|
715
|
-
|
|
716
731
|
declare const theme: {
|
|
717
732
|
palette: {
|
|
718
733
|
gold100: string;
|
|
@@ -1241,4 +1256,4 @@ declare const theme: {
|
|
|
1241
1256
|
};
|
|
1242
1257
|
};
|
|
1243
1258
|
|
|
1244
|
-
export { Button, type ButtonProps, ButtonSize, ButtonStyle, ButtonType, CalculatorResult, CalculatorResultBox, type CalculatorResultBoxModal, type CalculatorResultBoxProps, type CalculatorResultProps, Checkbox, type CheckboxLabel, CheckboxPosition, type CheckboxProps, type ChooseColor, ColorScheme, type ColorSchemeObject, DatePicker, type DatePickerProps, EmailInput, type EmailInputProps, _default as FormattedAmount, FormattedHtmlMessage, type FormattedHtmlMessageProps, FormattedMessage, type FormattedMessageProps, type FormattedMessageTypes, _default$1 as FormattedPercentage, GapSize, type GetColor, IconProduct, IconProductSize, IconProductType, IconSystem, IconSystemSize, IconSystemType, TooltipInfoConditional as InfoConditional, Infobox, type InfoboxProps, InfoboxSize, InfoboxVariant, InputBase, type InputBaseProps, InputLabel, type InputLabelProps, InputSize, Loader, LoaderOverlayBox, type LoaderOverlayBoxProps, type LoaderProps, LoaderSize, MediaType, Modal, type ModalOnClose, type ModalProps, PhoneInput, type PhoneInputProps, Radio, type RadioBaseWithLabelProps, RadioButton, type RadioButtonLabel, type RadioButtonProps, RadioButtonsHorizontal, type RadioButtonsHorizontalItem, type RadioButtonsHorizontalLabel, type RadioButtonsHorizontalProps, type RadioLabel, RadioPosition, ReasonForClosing, SearchInput, type SearchInputProps, Select, SelectBase, type SelectOption, type SelectProps, type SingleValue, Slider, type SliderBreakpoint, SliderInput, type SliderInputLabel, type SliderInputMinMax, type SliderInputProps, type SliderProps, SliderStepType, type SliderSteps, Stack, StackDirection, type StackProps, Table, TableBody, TableData, TableHead, TableHeadData, TableRow, TableVariant, Tabs, TabsItem, TextInput, type TextInputProps, Toggle, type ToggleProps, type TooltipFloatingElement, TooltipGeneral, type TooltipGeneralProps, TooltipInfo, type TooltipInfoConditionalProps, TooltipInfoDisplayMethod, TooltipInfoDisplayableCheck, type TooltipInfoDisplayableCheckProps, type TooltipInfoProps, type TooltipParentElement, type TooltipParentElementProps, TooltipPlacement, TrailingTextInput, type TrailingTextInputProps, Typography, type TypographyProps, TypographyTextAlign, TypographyVariant, TypographyWeight, getColor, theme, useColorScheme, useCreateTooltipFloatingElement, useFormatAmount, useFormattedPercentage, useIsMessageDisplayable };
|
|
1259
|
+
export { Button, type ButtonProps, ButtonSize, ButtonStyle, ButtonType, CalculatorResult, CalculatorResultBox, type CalculatorResultBoxModal, type CalculatorResultBoxProps, type CalculatorResultProps, Checkbox, type CheckboxLabel, CheckboxPosition, type CheckboxProps, type ChooseColor, ColorScheme, type ColorSchemeObject, DatePicker, type DatePickerProps, EmailInput, type EmailInputProps, FieldWrapper, type FieldWrapperValues, _default as FormattedAmount, FormattedHtmlMessage, type FormattedHtmlMessageProps, FormattedMessage, type FormattedMessageProps, type FormattedMessageTypes, _default$1 as FormattedPercentage, GapSize, type GetColor, IconProduct, IconProductSize, IconProductType, IconSystem, IconSystemSize, IconSystemType, TooltipInfoConditional as InfoConditional, Infobox, type InfoboxProps, InfoboxSize, InfoboxVariant, InputBase, type InputBaseProps, InputLabel, type InputLabelProps, InputSize, Loader, LoaderOverlayBox, type LoaderOverlayBoxProps, type LoaderProps, LoaderSize, MediaType, Modal, type ModalOnClose, type ModalProps, PhoneInput, type PhoneInputProps, Radio, type RadioBaseWithLabelProps, RadioButton, type RadioButtonLabel, type RadioButtonProps, RadioButtonsHorizontal, type RadioButtonsHorizontalItem, type RadioButtonsHorizontalLabel, type RadioButtonsHorizontalProps, type RadioLabel, RadioPosition, ReasonForClosing, SearchInput, type SearchInputProps, Select, SelectBase, type SelectOption, type SelectProps, type SingleValue, Slider, type SliderBreakpoint, SliderInput, type SliderInputLabel, type SliderInputMinMax, type SliderInputProps, type SliderProps, SliderStepType, type SliderSteps, Stack, StackDirection, type StackProps, Table, TableBody, TableData, TableHead, TableHeadData, TableRow, TableVariant, Tabs, TabsItem, TextArea, type TextAreaProps, TextInput, type TextInputProps, Toggle, type ToggleProps, type TooltipFloatingElement, TooltipGeneral, type TooltipGeneralProps, TooltipInfo, type TooltipInfoConditionalProps, TooltipInfoDisplayMethod, TooltipInfoDisplayableCheck, type TooltipInfoDisplayableCheckProps, type TooltipInfoProps, type TooltipParentElement, type TooltipParentElementProps, TooltipPlacement, TrailingTextInput, type TrailingTextInputProps, Typography, type TypographyProps, TypographyTextAlign, TypographyVariant, TypographyWeight, getColor, theme, useColorScheme, useCreateTooltipFloatingElement, useFormatAmount, useFormattedPercentage, useIsMessageDisplayable };
|