@mmb-digital/ds-lilly 0.3.18 → 0.4.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/ds-lilly.d.ts +2498 -0
- package/dist/ds-lilly.js +61 -26
- package/dist/types/src/components/Components/Card/Card.d.ts +1 -1
- package/dist/types/src/components/Components/Tooltip/Tooltip.d.ts +1 -1
- package/dist/types/src/components/Form/FormField/FormField.d.ts +1 -1
- package/dist/types/src/components/Form/FormGroup2/FormGroup2.d.ts +1 -1
- package/dist/types/src/components/Form/Radio2/Radio2.d.ts +1 -1
- package/dist/types/src/components/Form/Toggle/Toggle.d.ts +1 -1
- package/dist/types/src/components/Navigation/Menu/_elements_/MenuItem.d.ts +1 -1
- package/dist/types/src/hocs/index.d.ts +1 -1
- package/dist/types/src/hocs/withDisabledTooltip.d.ts +7 -3
- package/dist/types/src/utils/classBinder.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,2498 @@
|
|
|
1
|
+
/// <reference types="css-modules" />
|
|
2
|
+
/// <reference types="react" />
|
|
3
|
+
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { Component } from 'react';
|
|
6
|
+
import { Config } from 'react-popper-tooltip';
|
|
7
|
+
import { Context } from 'react';
|
|
8
|
+
import { ElementType } from 'react';
|
|
9
|
+
import flatpickr from 'flatpickr';
|
|
10
|
+
import { FocusEventHandler } from 'react';
|
|
11
|
+
import { FunctionComponent } from 'react';
|
|
12
|
+
import { GetMenuPropsOptions } from 'downshift';
|
|
13
|
+
import { GetPropsCommonOptions } from 'downshift';
|
|
14
|
+
import { KeyboardEvent as KeyboardEvent_2 } from 'react';
|
|
15
|
+
import { default as React_2 } from 'react';
|
|
16
|
+
import * as React_3 from 'react';
|
|
17
|
+
import { ReactElement } from 'react';
|
|
18
|
+
import { ReactNode } from 'react';
|
|
19
|
+
import { ReactText } from 'react';
|
|
20
|
+
import { RefObject } from 'react';
|
|
21
|
+
import { SyntheticEvent } from 'react';
|
|
22
|
+
import { TriggerType } from 'react-popper-tooltip';
|
|
23
|
+
import { XAxisProps } from 'recharts';
|
|
24
|
+
import { YAxisProps } from 'recharts';
|
|
25
|
+
|
|
26
|
+
export declare const Alert: ({ alertRef, children, closeButtonAriaLabel, iconBackgroundColor, iconName, isLarge, onClose, testId, theme, title, type }: AlertPropsType) => JSX.Element;
|
|
27
|
+
|
|
28
|
+
export declare interface AlertPropsType extends ComponentPropsType {
|
|
29
|
+
/** Element Ref */
|
|
30
|
+
alertRef?: RefObject<HTMLDivElement>;
|
|
31
|
+
/** Children to be rendered in the main container. */
|
|
32
|
+
children?: ReactNode;
|
|
33
|
+
/** Aria label for close button */
|
|
34
|
+
closeButtonAriaLabel?: string | ReactElement;
|
|
35
|
+
/** Icon name. */
|
|
36
|
+
iconName?: IconNameType;
|
|
37
|
+
/** Icon background color. */
|
|
38
|
+
iconBackgroundColor?: BackgroundColorType;
|
|
39
|
+
/** Define if you want bigger paddings. */
|
|
40
|
+
isLarge?: boolean;
|
|
41
|
+
/** Action handler for close button */
|
|
42
|
+
onClose?: () => void;
|
|
43
|
+
/** Alert main title. */
|
|
44
|
+
title?: ReactNode;
|
|
45
|
+
/** Color type of alert. */
|
|
46
|
+
type?: 'error' | 'warning' | 'info' | 'success';
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
declare type AlignItemsType = 'stretch' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'start' | 'end' | 'unset';
|
|
50
|
+
|
|
51
|
+
export declare type AmountSizeType = 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge';
|
|
52
|
+
|
|
53
|
+
export declare const AmountWithUnit: ({ amount, isBold, isInline, locale, maximumFractionDigits, minimumFractionDigits, size, testId, theme, unitAfter, unitBefore, unitTheme }: AmountWithUnitPropsType) => JSX.Element;
|
|
54
|
+
|
|
55
|
+
export declare interface AmountWithUnitPropsType extends ComponentPropsType {
|
|
56
|
+
/** Amount of money. */
|
|
57
|
+
amount: number;
|
|
58
|
+
/** Specify custom unit identifier before `amount` value. */
|
|
59
|
+
unitBefore?: string;
|
|
60
|
+
/** Specify custom unit identifier after `amount` value. */
|
|
61
|
+
unitAfter?: string;
|
|
62
|
+
/** Css theme for unit */
|
|
63
|
+
unitTheme?: Theme;
|
|
64
|
+
/** Define if you need amount to be `bold` */
|
|
65
|
+
isBold?: boolean;
|
|
66
|
+
/** Define if component is rendered `inline` */
|
|
67
|
+
isInline?: boolean;
|
|
68
|
+
/** Specify custom locale variant for number formatting if needed. Use Unicode locale identifier. For more info see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat */
|
|
69
|
+
locale?: string;
|
|
70
|
+
/** The maximum number of fraction digits to use. Possible values are from 0 to 20; the default is the larger of minimumFractionDigits and 2; */
|
|
71
|
+
maximumFractionDigits?: number;
|
|
72
|
+
/** The minimum number of fraction digits to use. Possible values are from 0 to 20; the default is 0; */
|
|
73
|
+
minimumFractionDigits?: number;
|
|
74
|
+
/** Size of component. */
|
|
75
|
+
size?: AmountSizeType;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export declare const App: ({ children, isHeaderFixed, isMenuMainFixed, testId, theme }: AppPropsType) => JSX.Element;
|
|
79
|
+
|
|
80
|
+
export declare const AppContent: ({ children, testId, theme }: AppContentPropsType) => JSX.Element;
|
|
81
|
+
|
|
82
|
+
export declare interface AppContentPropsType extends ComponentPropsType {
|
|
83
|
+
/** Children to be rendered in the main container. */
|
|
84
|
+
children?: React_2.ReactNode;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export declare const AppMain: ({ children, isCentered, testId, theme }: AppMainPropsType) => JSX.Element;
|
|
88
|
+
|
|
89
|
+
export declare interface AppMainPropsType extends ComponentPropsType {
|
|
90
|
+
/** Children to be rendered in the main container. */
|
|
91
|
+
children?: React_2.ReactNode;
|
|
92
|
+
/** Whether the main element is centered. Default is not centered. */
|
|
93
|
+
isCentered?: boolean;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export declare interface AppPropsType extends ComponentPropsType {
|
|
97
|
+
/** Children to be rendered in the main container. */
|
|
98
|
+
children?: React_2.ReactNode;
|
|
99
|
+
/** Change layout if fixed Header is used */
|
|
100
|
+
isHeaderFixed?: boolean;
|
|
101
|
+
/** Change layout if fixed main menu is used */
|
|
102
|
+
isMenuMainFixed?: boolean;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export declare const AreaChart: ({ customArea, data, legend, lines, testId, theme, tooltip, xAxis, yAxis }: AreaChartPropsType) => JSX.Element;
|
|
106
|
+
|
|
107
|
+
export declare interface AreaChartPropsType extends ComponentPropsType {
|
|
108
|
+
/** Settings for your custom area. */
|
|
109
|
+
customArea?: {
|
|
110
|
+
content: ReactNode;
|
|
111
|
+
theme?: ComponentPropsType;
|
|
112
|
+
};
|
|
113
|
+
/** The source data, in which each element is an object. */
|
|
114
|
+
data: any[];
|
|
115
|
+
/** Set if you want to show graph legend. */
|
|
116
|
+
legend?: boolean;
|
|
117
|
+
/** Define what graph lines you want to be drawn. `key` is equal to dataKey you want to use on `Y` axis */
|
|
118
|
+
lines: {
|
|
119
|
+
[key: string]: LineType;
|
|
120
|
+
};
|
|
121
|
+
/** Custom formaters for tooltip data. */
|
|
122
|
+
tooltip?: {
|
|
123
|
+
labelFormatter?: (label: string) => ReactNode;
|
|
124
|
+
formatter?: (value: string) => ReactNode;
|
|
125
|
+
};
|
|
126
|
+
/** X axis settings. For more information refer to [Recharts docs](https://recharts.org/en-US/api/XAxis) */
|
|
127
|
+
xAxis?: XAxisProps;
|
|
128
|
+
/** Y axis settings. For more information refer to [Recharts docs](https://recharts.org/en-US/api/YAxis) */
|
|
129
|
+
yAxis?: {
|
|
130
|
+
interval?: YAxisProps['interval'];
|
|
131
|
+
domain?: {
|
|
132
|
+
min?: number;
|
|
133
|
+
max?: number;
|
|
134
|
+
};
|
|
135
|
+
orientation?: YAxisProps['orientation'];
|
|
136
|
+
tickFormatter?: YAxisProps['tickFormatter'];
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
declare type AreaTypeType = 'basis' | 'basisClosed' | 'basisOpen' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter';
|
|
141
|
+
|
|
142
|
+
export declare const Autocomplete: ({ disabledTooltip, dropdownTheme, error, hasAlwaysValue, hasFullWidthOptions, help, inputAutocomplete, isCreatable, isDisabled, items, label, labelTooltip, messages, name, onBlur, onChange, onCreate, placeholder, testId, theme, value: outerValue }: AutocompletePropsType) => JSX.Element;
|
|
143
|
+
|
|
144
|
+
export declare const Autocomplete2: ({ asyncDelayMilliseconds, canAlwaysCreateNewItem, disabledTooltip, displayDetails, dropdownTheme, emptyValueLabel, error, filterMinimumLength, hasFullWidthOptions, help, isDisabled, isLazyLoaded, isLoading, items: inputItems, label, labelTooltip, loadItems, loadMoreItems, name, messages, newItemMinimumLength, onBlur, onChange, onCreateNewItem, onFocus, placeholder, testId, theme, value }: Autocomplete2PropsType) => JSX.Element;
|
|
145
|
+
|
|
146
|
+
export declare interface Autocomplete2PropsType extends FormField2PropsType {
|
|
147
|
+
/** A delay before async loadItems is called after user stops typing */
|
|
148
|
+
asyncDelayMilliseconds?: number;
|
|
149
|
+
/** A flag whether option to create new item should be rendered always (true) or only on empty result (false, default) */
|
|
150
|
+
canAlwaysCreateNewItem?: boolean;
|
|
151
|
+
/** Displays additional information for selected option. (perex, amount) */
|
|
152
|
+
displayDetails?: boolean;
|
|
153
|
+
/** Custom theme for dropdown items. */
|
|
154
|
+
dropdownTheme?: Theme;
|
|
155
|
+
/** label of empty value */
|
|
156
|
+
emptyValueLabel?: string;
|
|
157
|
+
/** Minimum filter length to enable filtering */
|
|
158
|
+
filterMinimumLength?: number;
|
|
159
|
+
/** Sets if list of options has same width as select element. */
|
|
160
|
+
hasFullWidthOptions?: boolean;
|
|
161
|
+
/** List of options to select. */
|
|
162
|
+
items?: ItemType[] | CategorisedItemType[];
|
|
163
|
+
/** A flag whether items are lazy loaded (on focus) */
|
|
164
|
+
isLazyLoaded?: boolean;
|
|
165
|
+
/** Set loading state to dropdown trigger. */
|
|
166
|
+
isLoading?: boolean;
|
|
167
|
+
/** Async callback to load items */
|
|
168
|
+
loadItems?: (query?: string) => Promise<ItemType[] | CategorisedItemType[]>;
|
|
169
|
+
/** Async callback to load more items */
|
|
170
|
+
loadMoreItems?: (query?: string) => Promise<ItemType[] | CategorisedItemType[]>;
|
|
171
|
+
/** Messages for inner texts */
|
|
172
|
+
messages: {
|
|
173
|
+
/** Loading items */
|
|
174
|
+
loadingItems?: ReactNode;
|
|
175
|
+
/** Loading more items (next page) */
|
|
176
|
+
loadingMoreItems?: ReactNode;
|
|
177
|
+
/** Nothing found */
|
|
178
|
+
nohingFound?: ReactNode;
|
|
179
|
+
/** Type min. chars to start searching */
|
|
180
|
+
typeToFilter?: ReactNode;
|
|
181
|
+
/** Create item prefix */
|
|
182
|
+
createItem?: ReactNode;
|
|
183
|
+
};
|
|
184
|
+
/** Minimum length of new item */
|
|
185
|
+
newItemMinimumLength?: number;
|
|
186
|
+
/** A callback to create new item */
|
|
187
|
+
onCreateNewItem?: (value?: string) => void;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export declare interface AutocompletePropsType extends FormField2PropsType {
|
|
191
|
+
/** Custom theme for dropdown items. */
|
|
192
|
+
dropdownTheme?: Theme;
|
|
193
|
+
/** If `true` then autocomplete will prefill 1st found item after leaving field. */
|
|
194
|
+
hasAlwaysValue?: boolean;
|
|
195
|
+
/** Sets if list of options has same width as select element. */
|
|
196
|
+
hasFullWidthOptions?: boolean;
|
|
197
|
+
/** Turning on/off browser autocomplete for input. */
|
|
198
|
+
inputAutocomplete?: boolean;
|
|
199
|
+
/** Flag `true` if you want to display creatable item. */
|
|
200
|
+
isCreatable?: boolean;
|
|
201
|
+
/** List of options to select. */
|
|
202
|
+
items: ItemType[] | CategorisedItemType[];
|
|
203
|
+
/** Messages for inner texts. */
|
|
204
|
+
messages: {
|
|
205
|
+
/** Text for *create* button. */
|
|
206
|
+
create?: ReactNode;
|
|
207
|
+
/** Hidden text for accessibility. Plurals based on number. */
|
|
208
|
+
resultsFound: {
|
|
209
|
+
1: ReactNode;
|
|
210
|
+
2: ReactNode;
|
|
211
|
+
5: ReactNode;
|
|
212
|
+
};
|
|
213
|
+
/** Text when no results are whispered. */
|
|
214
|
+
noResults: ReactNode;
|
|
215
|
+
};
|
|
216
|
+
/** Handler for value change. It will return matching item (if exists) as a second parameter. */
|
|
217
|
+
onChange?: (value: string | number | boolean | null, item?: ItemType) => void;
|
|
218
|
+
/** Handler function called when creatable item clicked. */
|
|
219
|
+
onCreate?: (value: string) => void;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export declare const Avatar: ({ background, border, boxShadow, iconName, size, testId, text, theme }: AvatarPropsType) => JSX.Element;
|
|
223
|
+
|
|
224
|
+
export declare type AvatarBorderType = 'secondaryDarker' | 'gradientBlueRed';
|
|
225
|
+
|
|
226
|
+
export declare interface AvatarPropsType extends ComponentPropsType {
|
|
227
|
+
/** Avatar size enum type */
|
|
228
|
+
size?: AvatarSizeType;
|
|
229
|
+
/** Color of avatar background - any color from palette-light */
|
|
230
|
+
background?: BackgroundColorType;
|
|
231
|
+
/** Avatar border */
|
|
232
|
+
border?: AvatarBorderType;
|
|
233
|
+
/** Avatar shadow */
|
|
234
|
+
boxShadow?: boolean;
|
|
235
|
+
/** Avatar text */
|
|
236
|
+
text?: ReactNode;
|
|
237
|
+
/** Avatar icon name */
|
|
238
|
+
iconName?: IconNameType;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
export declare type AvatarSizeType = 'small' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge';
|
|
242
|
+
|
|
243
|
+
export declare type BackgroundColorType = 'info' | 'warning' | 'error' | 'success' | 'blueRed' | 'blueRedDark' | 'redLightest' | 'redNormal' | 'redDark' | 'redDarker' | 'redHover' | 'redActive' | 'greenLightest' | 'greenNormal' | 'greenDark' | 'greenDarker' | 'greenDarkest' | 'greenHover' | 'greenActive' | 'orangeLightest' | 'orangeNormal' | 'orangeDark' | 'orangeDarker' | 'orangeHover' | 'orangeActive' | 'primaryLightest' | 'primaryLighter' | 'primaryLight' | 'primaryNormal' | 'primaryDark' | 'primaryDarker' | 'primaryDarkest' | 'primaryHover' | 'primaryActive' | 'cloudLightest' | 'cloudLighter' | 'cloudLight' | 'cloudNormal' | 'cloudDark' | 'cloudDarker' | 'cloudHover' | 'cloudActive' | 'secondaryLightest' | 'secondaryLighter' | 'secondaryLight' | 'secondaryNormal' | 'secondaryDark' | 'secondaryDarker' | 'secondaryDarkest' | 'secondaryHover' | 'secondaryActive' | 'greyLightest' | 'greyLighter' | 'greyLight' | 'greyNormal' | 'greyDark' | 'greyDarker' | 'greyDarkest' | 'greyHover' | 'greyActive' | 'goldNormal' | 'goldDark' | 'goldDarker' | 'whiteNormal' | 'blackNormal' | 'categoryYellow' | 'categoryOrange' | 'categoryPink' | 'categoryCherry' | 'categoryViolet' | 'categoryOceanBlue' | 'categorySkyBlue' | 'categoryMidnightBlue' | 'categorySemiBlue' | 'categoryTorquise' | 'categoryMintGreen' | 'categoryForestGreen' | 'categoryOliveGreen' | 'thirdPartyFacebook' | 'thirdPartyTwitter';
|
|
244
|
+
|
|
245
|
+
export declare const Badge: ({ ariaLabel, children, count, isDotVisible, maxCount, testId, theme }: BadgePropsType) => JSX.Element;
|
|
246
|
+
|
|
247
|
+
export declare interface BadgePropsType extends ComponentPropsType {
|
|
248
|
+
/** ARIA label */
|
|
249
|
+
ariaLabel?: string;
|
|
250
|
+
/** Children to be rendered in the main container. */
|
|
251
|
+
children?: ReactNode;
|
|
252
|
+
/** show badge as a dot only */
|
|
253
|
+
isDotVisible?: boolean;
|
|
254
|
+
/** number to be displayed in badge */
|
|
255
|
+
count?: number;
|
|
256
|
+
/** max displayable count, if count overlaps then maxCount and "+" will be displayed */
|
|
257
|
+
maxCount?: number;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export declare const BANK_ACCOUNT_ITEMS_AUTOCOMPLETE_THRESHOLD = 5;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @deprecated This component is **deprecated** please use **Select2**
|
|
264
|
+
*/
|
|
265
|
+
export declare const BankAccountSelect: ({ hasAlwaysValue, hasAutocomplete, items, ...rest }: BankAccountSelectPropsType) => JSX.Element;
|
|
266
|
+
|
|
267
|
+
export declare interface BankAccountSelectPropsType extends SelectPropsType {
|
|
268
|
+
/** Flag whether display amount in select item */
|
|
269
|
+
hasAmountDisplayed?: boolean;
|
|
270
|
+
/** OnBlur will not reset value. */
|
|
271
|
+
hasAlwaysValue?: boolean;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
declare interface BasicButtonType extends ComponentPropsType, DisabledTooltipPropsType {
|
|
275
|
+
/** Allow click event propagation */
|
|
276
|
+
allowEventPropagation?: boolean;
|
|
277
|
+
/** ARIA label for tabs. */
|
|
278
|
+
ariaLabel?: string | ReactElement;
|
|
279
|
+
/** Sets color of Button. Default color is `primary` */
|
|
280
|
+
color?: ButtonColorType;
|
|
281
|
+
/** Children components that should be rendered inside the button. */
|
|
282
|
+
children?: ReactNode;
|
|
283
|
+
/** Type of the button element. Button is default, submit works with valid enter key press to submit form. */
|
|
284
|
+
elementType?: 'button' | 'reset' | 'submit';
|
|
285
|
+
/** Flag indicating that the button should span the entire width of the parent. */
|
|
286
|
+
isBlock?: boolean;
|
|
287
|
+
/** Flag indicating that the button is disabled. */
|
|
288
|
+
isDisabled?: boolean;
|
|
289
|
+
/**
|
|
290
|
+
* @deprecated Not implemented any more
|
|
291
|
+
* Press enter can run onClick event handler.
|
|
292
|
+
* */
|
|
293
|
+
isEnterClick?: boolean;
|
|
294
|
+
/** Set loading state to button. */
|
|
295
|
+
isLoading?: boolean;
|
|
296
|
+
/** Flag indicating that the button is rounded. */
|
|
297
|
+
isRounded?: boolean;
|
|
298
|
+
/** Flag indicating that the button is small. */
|
|
299
|
+
isSmall?: boolean;
|
|
300
|
+
/** Title used for file naming when linkUrl leads to file download */
|
|
301
|
+
linkDownloadTitle?: string;
|
|
302
|
+
/** Link used when redirecting outside application. */
|
|
303
|
+
linkUrl?: string;
|
|
304
|
+
/** Target for link outside app. */
|
|
305
|
+
target?: TargetType;
|
|
306
|
+
/** Click event handler. */
|
|
307
|
+
onClick?: (e: SyntheticEvent | KeyboardEvent) => void;
|
|
308
|
+
/** Name of icon, that should be displayed stand alone. If you need icon and text (or something else) use children property. */
|
|
309
|
+
onlyIconName?: never;
|
|
310
|
+
/** Title of the button element */
|
|
311
|
+
title?: string;
|
|
312
|
+
/** Type of the button. Primary is filled with color, secondary is border-only and transparent is for links. */
|
|
313
|
+
type?: 'border' | 'filled' | 'transparent';
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export declare const Box: ({ children, component: Component, margin, padding, testId, theme }: BoxPropsType) => JSX.Element;
|
|
317
|
+
|
|
318
|
+
export declare type BoxComponentType = 'section' | 'div';
|
|
319
|
+
|
|
320
|
+
export declare interface BoxPropsType extends ComponentPropsType {
|
|
321
|
+
/** Children to be rendered in the main container. */
|
|
322
|
+
children?: ReactNode;
|
|
323
|
+
/** Defines HTML tag to be used as wrapper. */
|
|
324
|
+
component?: BoxComponentType;
|
|
325
|
+
/** Defines custom margin spaces. */
|
|
326
|
+
margin?: IndentedType | IndentedSizeType;
|
|
327
|
+
/** Defines custom padding spaces. */
|
|
328
|
+
padding?: IndentedType | IndentedSizeType;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export declare const BREAKPOINTS: string[];
|
|
332
|
+
|
|
333
|
+
export declare const BREAKPOINTS_VALUES: {
|
|
334
|
+
sm: number;
|
|
335
|
+
md: number;
|
|
336
|
+
lg: number;
|
|
337
|
+
xl: number;
|
|
338
|
+
xxl: number;
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
export declare type BreakpointsType = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
342
|
+
|
|
343
|
+
export declare const Button: React_2.ForwardRefExoticComponent<ButtonPropsType & React_2.RefAttributes<unknown>>;
|
|
344
|
+
|
|
345
|
+
export declare type ButtonColorType = 'green' | 'gold' | 'red' | 'secondary';
|
|
346
|
+
|
|
347
|
+
declare type ButtonOnlyIconType = Omit<BasicButtonType, 'ariaLabel' | 'onlyIconName'> & {
|
|
348
|
+
/** ARIA label for tabs. */
|
|
349
|
+
ariaLabel: string | ReactElement;
|
|
350
|
+
/** Name of icon, that should be displayed stand alone. If you need icon and text (or something else) use children property. */
|
|
351
|
+
onlyIconName: IconNameType;
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
export declare type ButtonPropsType = BasicButtonType | ButtonOnlyIconType;
|
|
355
|
+
|
|
356
|
+
export declare const ButtonsGroup: ({ children, isFlex, isSmall, testId, theme, ...flexProps }: ButtonsGroupPropsType) => JSX.Element;
|
|
357
|
+
|
|
358
|
+
export declare interface ButtonsGroupPropsType extends ComponentPropsType, FlexPropsType {
|
|
359
|
+
/** Children to be rendered in the main container. */
|
|
360
|
+
children: ReactNode | ReactNode[];
|
|
361
|
+
/** Flag to convert container element to Flex. */
|
|
362
|
+
isFlex?: boolean;
|
|
363
|
+
/** Flag to use small Buttons. */
|
|
364
|
+
isSmall?: boolean;
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export declare const ButtonTooltip: React_2.ForwardRefExoticComponent<ButtonTooltipPropsType & React_2.RefAttributes<unknown>>;
|
|
368
|
+
|
|
369
|
+
declare interface ButtonTooltipPropsType {
|
|
370
|
+
/** Children to be rendered in the main container. */
|
|
371
|
+
children: ReactElement;
|
|
372
|
+
/** TooltipProps. */
|
|
373
|
+
tooltipProps: Record<string, unknown>;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
export declare const Card: ({ allowEventPropagation, backgroundColor, borderColor, children, disabledTooltip, disabledTooltipType, hasCustomTrigger, header: collapseHeader, iconBackgroundColor, iconName, iconSize, isCollapsible, isDisabled, isIconAlignTop, isIconRight, isInteractive, isOpen, isSelected, onClick, onToggle, shadowSize, size, testId, theme, withoutRole }: CardPropsType) => JSX.Element;
|
|
377
|
+
|
|
378
|
+
declare type CardBackgroundColorType = 'cloud' | 'grey' | 'gold' | 'primaryDark' | 'transparent';
|
|
379
|
+
|
|
380
|
+
export declare const CardContext: Context<CardContextType>;
|
|
381
|
+
|
|
382
|
+
declare interface CardContextType {
|
|
383
|
+
/** If `true` card has custom element to control collapse events. */
|
|
384
|
+
hasCustomTrigger: boolean;
|
|
385
|
+
/** Unique card identifier. */
|
|
386
|
+
identification: string;
|
|
387
|
+
/** Flag opened collapsible card. */
|
|
388
|
+
isOpened: boolean;
|
|
389
|
+
/** Internal function to set opened state. */
|
|
390
|
+
setIsOpened: (state: boolean) => void;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export declare const CardCustomTrigger: ({ children }: CardCustomTriggerProps) => JSX.Element;
|
|
394
|
+
|
|
395
|
+
export declare interface CardCustomTriggerProps {
|
|
396
|
+
children: ReactElement;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
export declare interface CardPropsType extends ComponentPropsType, DisabledTooltipPropsType {
|
|
400
|
+
/** Allow click event propagation */
|
|
401
|
+
allowEventPropagation?: boolean;
|
|
402
|
+
/** Changes background color of card. */
|
|
403
|
+
backgroundColor?: CardBackgroundColorType;
|
|
404
|
+
/** Changes border color of card. */
|
|
405
|
+
borderColor?: CardBackgroundColorType;
|
|
406
|
+
/** Children to be rendered in the Card container. */
|
|
407
|
+
children?: ReactNode;
|
|
408
|
+
/** Define card header content. */
|
|
409
|
+
header?: ReactNode;
|
|
410
|
+
/** Set `true` if you want to use custom element to open/close. If you choose to do it, component is controlled by `isOpen` property. */
|
|
411
|
+
hasCustomTrigger?: boolean;
|
|
412
|
+
/** Define color for circular Icon background. */
|
|
413
|
+
iconBackgroundColor?: BackgroundColorType;
|
|
414
|
+
/** Define Icon name if you want some to be displayed. */
|
|
415
|
+
iconName?: IconNameType;
|
|
416
|
+
/** Define Icon size. */
|
|
417
|
+
iconSize?: IconSizeType;
|
|
418
|
+
/** Define if card have collapsible content. **You must specify collapse header property**. */
|
|
419
|
+
isCollapsible?: boolean;
|
|
420
|
+
/** Flag whether card is disabled */
|
|
421
|
+
isDisabled?: boolean;
|
|
422
|
+
/** Use only if you want change default behavior (icon aligned in middle). */
|
|
423
|
+
isIconAlignTop?: boolean;
|
|
424
|
+
/** Use only if you want to align icon right. */
|
|
425
|
+
isIconRight?: boolean;
|
|
426
|
+
/** Define if card should react to mouse events and act like link (or have some onClick action). */
|
|
427
|
+
isInteractive?: boolean;
|
|
428
|
+
/** Use if interactive card with bottom arrow is used as collapsible component. It rotates arrow icon when opened. */
|
|
429
|
+
isOpen?: boolean;
|
|
430
|
+
/** Define selected card. */
|
|
431
|
+
isSelected?: boolean;
|
|
432
|
+
/** Callback function for clicking on interactive Card. `isInteractive`must be `true` */
|
|
433
|
+
onClick?: (event: SyntheticEvent | KeyboardEvent_2) => void;
|
|
434
|
+
/** Callback function for toggle collapsible Card. `isCollapsible`must be `true` */
|
|
435
|
+
onToggle?: (state: boolean, event: SyntheticEvent | KeyboardEvent_2) => void;
|
|
436
|
+
/** Define shadow size for card. */
|
|
437
|
+
shadowSize?: ShadowSizeType;
|
|
438
|
+
/** Changes size of card paddings. */
|
|
439
|
+
size?: 'small' | 'large' | 'zero';
|
|
440
|
+
/** disable default `role=button` and `tab-index` attributes when `isInteractive` is `true` */
|
|
441
|
+
withoutRole?: boolean;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
export declare interface CategorisedItemType {
|
|
445
|
+
label: string;
|
|
446
|
+
items: ItemType[];
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
export declare const ChartLegend: ({ data, emptySummaryColor, hasSummaryRow, summaryLabel, theme }: ChartLegendPropsType) => JSX.Element;
|
|
450
|
+
|
|
451
|
+
export declare interface ChartLegendPropsType extends ComponentPropsType {
|
|
452
|
+
/** Data for the interpretation */
|
|
453
|
+
data: Data[];
|
|
454
|
+
/** If true, the summary label does not contain color (default is 'primaryLightest') */
|
|
455
|
+
emptySummaryColor?: boolean;
|
|
456
|
+
/** If true, the legend contains the summary row. The summary adds all values above the line */
|
|
457
|
+
hasSummaryRow?: boolean;
|
|
458
|
+
/** The label of the summary row (default is 'Celkem') */
|
|
459
|
+
summaryLabel?: string;
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @deprecated This component is **deprecated** please use **Checkbox2**
|
|
465
|
+
*/
|
|
466
|
+
export declare const Checkbox: ({ value, ...rest }: CheckboxPropsType) => JSX.Element;
|
|
467
|
+
|
|
468
|
+
export declare const Checkbox2: ({ allowEventPropagation, disabledTooltip, error, help, isDisabled, label, labelTooltip, name, onChange, testId, theme, value }: Checkbox2PropsType) => JSX.Element;
|
|
469
|
+
|
|
470
|
+
export declare type Checkbox2PropsType = Omit<FormField2PropsType, 'value'> & {
|
|
471
|
+
value?: boolean;
|
|
472
|
+
};
|
|
473
|
+
|
|
474
|
+
export declare const CheckboxControl: (props: FormControlType) => JSX.Element;
|
|
475
|
+
|
|
476
|
+
export declare interface CheckboxPropsType {
|
|
477
|
+
name: string;
|
|
478
|
+
value?: boolean;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
export declare const Col: ({ children, testId, theme, xs: col, ...rest }: ColPropsType) => JSX.Element;
|
|
482
|
+
|
|
483
|
+
export declare const Collapse: ({ children, header, isError, isOpened, isSuccess, onClick, testId, theme, titleSize, titleVisual }: CollapsePropsType) => JSX.Element;
|
|
484
|
+
|
|
485
|
+
export declare interface CollapsePropsType extends ComponentPropsType {
|
|
486
|
+
/** ARIA label for collapse */
|
|
487
|
+
ariaLabel?: string;
|
|
488
|
+
/** Content of collapse header */
|
|
489
|
+
header: React_2.ReactNode;
|
|
490
|
+
/** Set component to error state */
|
|
491
|
+
isError?: boolean;
|
|
492
|
+
/** Children to be rendered in the main container. */
|
|
493
|
+
children?: React_2.ReactNode;
|
|
494
|
+
/** Set default component state to opened */
|
|
495
|
+
isOpened?: boolean;
|
|
496
|
+
/** Set component to success state */
|
|
497
|
+
isSuccess?: boolean;
|
|
498
|
+
/** Click event handler. */
|
|
499
|
+
onClick?: () => void;
|
|
500
|
+
/** Size of title. Used for it's basic purpose = defining page navigation priority. Please follow standard **[rules](https://www.w3.org/WAI/test-evaluate/preliminary/#headings)**. */
|
|
501
|
+
titleSize?: TitleSize;
|
|
502
|
+
/** Title visual size. Use this for matching title visual with desired design. */
|
|
503
|
+
titleVisual?: TitleSize;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
export declare type ColorType = 'redLightest' | 'redNormal' | 'redDark' | 'redDarker' | 'redHover' | 'redActive' | 'greenLightest' | 'greenNormal' | 'greenDark' | 'greenDarker' | 'greenDarkest' | 'greenHover' | 'greenActive' | 'orangeLightest' | 'orangeNormal' | 'orangeDark' | 'orangeDarker' | 'orangeHover' | 'orangeActive' | 'primaryLightest' | 'primaryLighter' | 'primaryLight' | 'primaryNormal' | 'primaryDark' | 'primaryDarker' | 'primaryDarkest' | 'primaryHover' | 'primaryActive' | 'cloudLightest' | 'cloudLighter' | 'cloudLight' | 'cloudNormal' | 'cloudDark' | 'cloudDarker' | 'cloudHover' | 'cloudActive' | 'secondaryLightest' | 'secondaryLighter' | 'secondaryLight' | 'secondaryNormal' | 'secondaryDark' | 'secondaryDarker' | 'secondaryDarkest' | 'secondaryHover' | 'secondaryActive' | 'greyLightest' | 'greyLighter' | 'greyLight' | 'greyNormal' | 'greyDark' | 'greyDarker' | 'greyDarkest' | 'greyHover' | 'greyActive' | 'goldNormal' | 'goldDark' | 'goldDarker' | 'whiteNormal' | 'blackNormal' | 'categoryYellow' | 'categoryOrange' | 'categoryPink' | 'categoryCherry' | 'categoryViolet' | 'categoryOceanBlue' | 'categorySkyBlue' | 'categoryMidnightBlue' | 'categorySemiBlue' | 'categoryTorquise' | 'categoryMintGreen' | 'categoryForestGreen' | 'categoryOliveGreen' | 'thirdPartyFacebook' | 'thirdPartyTwitter';
|
|
507
|
+
|
|
508
|
+
export declare interface ColPropsType extends ComponentPropsType {
|
|
509
|
+
/** Children to be rendered in the main container. */
|
|
510
|
+
children?: React_2.ReactNode;
|
|
511
|
+
/** Default column width - legacy xs - now col */
|
|
512
|
+
xs?: ColSizeProp;
|
|
513
|
+
/** Column width in sm breakpoint */
|
|
514
|
+
sm?: ColSizeProp;
|
|
515
|
+
/** Column width in md breakpoint */
|
|
516
|
+
md?: ColSizeProp;
|
|
517
|
+
/** Column width in lg breakpoint */
|
|
518
|
+
lg?: ColSizeProp;
|
|
519
|
+
/** Column width in xl breakpoint */
|
|
520
|
+
xl?: ColSizeProp;
|
|
521
|
+
/** Column width in xxl breakpoint */
|
|
522
|
+
xxl?: ColSizeProp;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
export declare type ColSizeProp = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 'auto';
|
|
526
|
+
|
|
527
|
+
export declare const CompactButtons: ({ background, buttons, isSmall, maxVisibleButtons, theme, type }: CompactButtonsPropsType) => JSX.Element;
|
|
528
|
+
|
|
529
|
+
declare interface CompactButtonsButtonType extends ComponentPropsType, DisabledTooltipPropsType {
|
|
530
|
+
/** Allow click event propagation */
|
|
531
|
+
allowEventPropagation?: boolean;
|
|
532
|
+
/** React collection key */
|
|
533
|
+
key: string;
|
|
534
|
+
/** Button icon name */
|
|
535
|
+
icon?: IconNameType;
|
|
536
|
+
/** Button label */
|
|
537
|
+
label?: ReactNode;
|
|
538
|
+
/** ARIA label for tabs. */
|
|
539
|
+
ariaLabel?: string | ReactElement;
|
|
540
|
+
/** Sets color of Button. Default color is `primary` */
|
|
541
|
+
color?: 'green' | 'gold' | 'red' | 'secondary';
|
|
542
|
+
/** Flag indicating that the button is disabled. */
|
|
543
|
+
isDisabled?: boolean;
|
|
544
|
+
/**
|
|
545
|
+
* @deprecated Not implemented any more
|
|
546
|
+
* Press enter can run onClick event handler.
|
|
547
|
+
* */
|
|
548
|
+
isEnterClick?: boolean;
|
|
549
|
+
/** Set loading state to button. */
|
|
550
|
+
isLoading?: boolean;
|
|
551
|
+
/** Link used when redirecting outside application. */
|
|
552
|
+
linkUrl?: string;
|
|
553
|
+
/** Target for link outside app. */
|
|
554
|
+
target?: TargetType;
|
|
555
|
+
/** Click event handler. */
|
|
556
|
+
onClick?: (e: SyntheticEvent | KeyboardEvent) => void;
|
|
557
|
+
/** Name of icon, that should be displayed stand alone. */
|
|
558
|
+
onlyIconName?: never;
|
|
559
|
+
/** Title of the button element */
|
|
560
|
+
title?: string;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export declare interface CompactButtonsPropsType extends ComponentPropsType {
|
|
564
|
+
/** Background color of compacted buttons wrapper. Default color is `primary` */
|
|
565
|
+
background?: 'green' | 'gold' | 'red' | 'secondary';
|
|
566
|
+
/** Compacted buttons */
|
|
567
|
+
buttons: CompactButtonsButtonType[];
|
|
568
|
+
/** Flag indicating that the buttons are all small. */
|
|
569
|
+
isSmall?: boolean;
|
|
570
|
+
/** Max number of visible buttons */
|
|
571
|
+
maxVisibleButtons?: number;
|
|
572
|
+
/** Type of the buttons. Primary is filled with color, secondary is border-only and transparent is for links. */
|
|
573
|
+
type?: 'border' | 'filled';
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
export declare interface ComponentPropsType {
|
|
577
|
+
/** Theme CSS module. */
|
|
578
|
+
theme?: Theme;
|
|
579
|
+
/** Unique ID for testing */
|
|
580
|
+
testId?: string;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
export declare const configureDecimalMask: ({ allowLeadingZeroes, allowNegative, decimalPlaces, decimalSeparator, integerPlaces, thousandSeparator }: NumberMaskType) => any;
|
|
584
|
+
|
|
585
|
+
export declare const Curtain: ({ children, testId, theme }: CurtainPropsType) => JSX.Element;
|
|
586
|
+
|
|
587
|
+
export declare interface CurtainPropsType extends ComponentPropsType {
|
|
588
|
+
/** Children to be rendered in the main container. */
|
|
589
|
+
children?: React_2.ReactNode;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export declare const cx: typeof classNames;
|
|
593
|
+
|
|
594
|
+
declare interface Data {
|
|
595
|
+
label: string;
|
|
596
|
+
value: number;
|
|
597
|
+
color: ColorType;
|
|
598
|
+
percentage?: string;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
declare interface Data_2 {
|
|
602
|
+
label: string;
|
|
603
|
+
value: number;
|
|
604
|
+
color: ColorType;
|
|
605
|
+
percentage?: string;
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
export declare const DatePicker: ({ autoDetectNativeCalendar, defaultValue, disabledTooltip, isDisabled, language, onChange, settings, theme, value, ...props }: DatePickerPropsType) => JSX.Element;
|
|
609
|
+
|
|
610
|
+
export declare const DatePicker2: ({ disabledTooltip, format, isDisabled, language, onChange, settings, theme, value, ...props }: DatePicker2PropsType) => JSX.Element;
|
|
611
|
+
|
|
612
|
+
export declare interface DatePicker2PropsType extends Omit<FormField2PropsType, 'onChange'>, ComponentPropsType {
|
|
613
|
+
/** Children to be rendered in the main container. */
|
|
614
|
+
children?: ReactNode;
|
|
615
|
+
/** format ISO YYYY-MM-DD or UNIX time */
|
|
616
|
+
format?: 'ISO' | 'UNIX';
|
|
617
|
+
/** Disabled the whole DatePicker */
|
|
618
|
+
isDisabled?: boolean;
|
|
619
|
+
/** Language for localization of the date picker. */
|
|
620
|
+
language?: 'cs' | 'en';
|
|
621
|
+
/** Custom settings of Flatpickr. For more info visit: https://flatpickr.js.org/options/ */
|
|
622
|
+
settings?: flatpickr.Options.Options;
|
|
623
|
+
/** onChange handler for setting the value format ISO YYYY-MM-DD or UNIX time */
|
|
624
|
+
onChange: (value?: string) => void;
|
|
625
|
+
/** Current date value format ISO YYYY-MM-DD or UNIX time */
|
|
626
|
+
value?: string;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
export declare interface DatePickerPropsType extends FormFieldType, ComponentPropsType {
|
|
630
|
+
/** Auto-detection of native calendar of Mortgages squad. Turned on by default for backwards compatiblity. */
|
|
631
|
+
autoDetectNativeCalendar?: boolean;
|
|
632
|
+
/** Children to be rendered in the main container. */
|
|
633
|
+
children?: ReactNode;
|
|
634
|
+
/** Sets initial Date */
|
|
635
|
+
defaultValue?: string;
|
|
636
|
+
/** Disabled the whole DatePicker */
|
|
637
|
+
isDisabled?: boolean;
|
|
638
|
+
/** Language for localization of the date picker. */
|
|
639
|
+
language?: 'cs' | 'en';
|
|
640
|
+
/** Custom settings of Flatpickr. For more info visit: https://flatpickr.js.org/options/ */
|
|
641
|
+
settings?: flatpickr.Options.Options;
|
|
642
|
+
/** onChange handler for setting the value */
|
|
643
|
+
onChange: (value: Date[] | Date | undefined | string) => void;
|
|
644
|
+
/** Current picker value */
|
|
645
|
+
value: Date;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* @deprecated This component is **deprecated** please use **Input2**
|
|
650
|
+
*/
|
|
651
|
+
export declare const DecimalInput: ({ allowNegative, allowLeadingZeroes, decimalSeparator: customDecimalSeparator, decimalPlaces, integerPlaces, thousandSeparator: customThousandSeparator, value, onChange, onBlur, ...rest }: DecimalInputPropsType) => JSX.Element;
|
|
652
|
+
|
|
653
|
+
export declare interface DecimalInputPropsType extends NumberMaskType, FormFieldType {
|
|
654
|
+
onBlur?: () => void;
|
|
655
|
+
onChange: (val: string | number) => void;
|
|
656
|
+
value?: number;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
export declare const DEFAULT_GROUP_NAME = "default";
|
|
660
|
+
|
|
661
|
+
export declare interface DisabledTooltipPropsType {
|
|
662
|
+
/** If set, a tooltip is visible */
|
|
663
|
+
isDisabled?: boolean;
|
|
664
|
+
disabledTooltip?: ReactNode;
|
|
665
|
+
disabledTooltipOffset?: number;
|
|
666
|
+
/** Tooltip type - dark, light, grey */
|
|
667
|
+
disabledTooltipType?: TooltipType;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
export declare const Divider: ({ isInverted, testId, theme }: DividerPropsType) => JSX.Element;
|
|
671
|
+
|
|
672
|
+
export declare interface DividerPropsType extends ComponentPropsType {
|
|
673
|
+
/** Whether the Divider has inverse color. */
|
|
674
|
+
isInverted?: boolean;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
export declare const Dropdown: ({ children, closeOnOutsideClick, closeOnTriggerHidden, delayHide, delayShow, dropdownId, forceVisibility, hasSameWidthAsTrigger, interactive, isOpenByDefault, onOutsideClick, onScrollToEnd, onVisibleChange, placement, testId, theme, trigger, triggerComponent }: DropdownPropsType) => JSX.Element;
|
|
678
|
+
|
|
679
|
+
export declare const DropdownItem: ({ allowEventPropagation, amount, children, iconBackground, iconName, id, isDisabled, isFocused, isSelected, onClick, onKeyDown, onMouseOver, perex, role, tabIndex, testId, theme, value }: DropdownItemPropsType) => JSX.Element;
|
|
680
|
+
|
|
681
|
+
export declare interface DropdownItemPropsType extends ComponentPropsType {
|
|
682
|
+
/** Allow click event propagation */
|
|
683
|
+
allowEventPropagation?: boolean;
|
|
684
|
+
/** Optional value for withAmount variant. */
|
|
685
|
+
amount?: ReactNode;
|
|
686
|
+
/** Children to be rendered in the main container. */
|
|
687
|
+
children: ReactNode;
|
|
688
|
+
/** Color of icon background. */
|
|
689
|
+
iconBackground?: BackgroundColorType;
|
|
690
|
+
/** Icon name/type enum type. */
|
|
691
|
+
iconName?: IconNameType;
|
|
692
|
+
/** Set if item is disabled. */
|
|
693
|
+
isDisabled?: boolean;
|
|
694
|
+
/** Set if item is focused. */
|
|
695
|
+
isFocused?: boolean;
|
|
696
|
+
/** Set if item is selected. */
|
|
697
|
+
isSelected?: boolean;
|
|
698
|
+
/** Click event handler. */
|
|
699
|
+
onClick?: (event: React_2.MouseEvent<HTMLLIElement, MouseEvent>, value?: string | number) => void;
|
|
700
|
+
/** Mouse over event handler. */
|
|
701
|
+
onMouseOver?: (event: React_2.MouseEvent<HTMLLIElement, MouseEvent>, value?: string | number) => void;
|
|
702
|
+
/** Optional perex for two line variant. */
|
|
703
|
+
perex?: ReactNode;
|
|
704
|
+
role?: string;
|
|
705
|
+
value?: string | number;
|
|
706
|
+
tabIndex?: number;
|
|
707
|
+
id?: string;
|
|
708
|
+
onKeyDown?: (event: React_2.KeyboardEvent<HTMLLIElement>) => void;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
export declare const DropdownMenu: ({ activeDescendant, ariaHidden, children, id, labelledBy, onBlur, onKeyDown, role, tabIndex, testId, theme, title }: DropdownMenuPropsType) => JSX.Element;
|
|
712
|
+
|
|
713
|
+
export declare interface DropdownMenuPropsType extends ComponentPropsType {
|
|
714
|
+
/** ARIA hidden attribute */
|
|
715
|
+
ariaHidden?: boolean;
|
|
716
|
+
/** Children to be rendered in the main container. */
|
|
717
|
+
children: ReactNode;
|
|
718
|
+
/** Title for categorised menu. */
|
|
719
|
+
title?: string;
|
|
720
|
+
role?: string;
|
|
721
|
+
labelledBy?: string;
|
|
722
|
+
tabIndex?: number;
|
|
723
|
+
activeDescendant?: string;
|
|
724
|
+
id?: string;
|
|
725
|
+
onKeyDown?: (event: React_2.KeyboardEvent<HTMLUListElement>) => void;
|
|
726
|
+
onBlur?: () => void;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
export declare type DropdownPlacement = 'auto' | 'auto-start' | 'auto-end' | 'top' | 'top-start' | 'top-end' | 'bottom' | 'bottom-start' | 'bottom-end' | 'right' | 'right-start' | 'right-end' | 'left' | 'left-start' | 'left-end';
|
|
730
|
+
|
|
731
|
+
export declare interface DropdownPropsType extends ComponentPropsType {
|
|
732
|
+
/** Contents of dropdown. */
|
|
733
|
+
children: ReactNode | ReactNode[];
|
|
734
|
+
/** If true, closes the tooltip when user clicks outside the trigger element. */
|
|
735
|
+
closeOnOutsideClick?: boolean;
|
|
736
|
+
/** Whether to close the tooltip when its trigger is out of boundary. */
|
|
737
|
+
closeOnTriggerHidden?: boolean;
|
|
738
|
+
/** Delay in hiding the tooltip (ms). */
|
|
739
|
+
delayHide?: number;
|
|
740
|
+
/** Delay in showing the tooltip (ms). */
|
|
741
|
+
delayShow?: number;
|
|
742
|
+
/** Dropdown menu element ID */
|
|
743
|
+
dropdownId?: string;
|
|
744
|
+
/** Set to use same width as triggerComponent. */
|
|
745
|
+
hasSameWidthAsTrigger?: boolean;
|
|
746
|
+
/** If true, hovering the tooltip will keep it open. */
|
|
747
|
+
interactive?: boolean;
|
|
748
|
+
/** Flag default opened state. */
|
|
749
|
+
isOpenByDefault?: boolean;
|
|
750
|
+
/** Optional handler for visibility. */
|
|
751
|
+
onVisibleChange?: (state: boolean) => void;
|
|
752
|
+
/** Optional handler for scroll to end of lists. */
|
|
753
|
+
onScrollToEnd?: () => void;
|
|
754
|
+
/** Optional handler for click on outside */
|
|
755
|
+
onOutsideClick?: () => void;
|
|
756
|
+
/** The preferred placement of the tooltip. */
|
|
757
|
+
placement?: DropdownPlacement;
|
|
758
|
+
/** Event(s) that trigger dropdown to open. */
|
|
759
|
+
trigger?: TriggerType | TriggerType[] | null;
|
|
760
|
+
/** Component that triggers dropdown menu. */
|
|
761
|
+
triggerComponent: ReactElement;
|
|
762
|
+
forceVisibility?: boolean;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export declare interface FileError {
|
|
766
|
+
message: string;
|
|
767
|
+
code: string;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
declare interface FileListPropsType {
|
|
771
|
+
files: FileType[];
|
|
772
|
+
handleOnDelete: (id: string) => void;
|
|
773
|
+
hideImagePreview?: boolean;
|
|
774
|
+
messages: {
|
|
775
|
+
ariaForDelete: string;
|
|
776
|
+
multipleUploaderErrors?: {
|
|
777
|
+
'file-invalid-type': ReactNode;
|
|
778
|
+
'file-too-large': ReactNode;
|
|
779
|
+
didNotUpload: string;
|
|
780
|
+
};
|
|
781
|
+
};
|
|
782
|
+
onShow?: (id: string) => void;
|
|
783
|
+
selectMultiple?: boolean;
|
|
784
|
+
uploadProgress?: Record<string, number>;
|
|
785
|
+
withProgressBar?: boolean;
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
export declare type FileType = {
|
|
789
|
+
/** Unique ID */
|
|
790
|
+
id: string;
|
|
791
|
+
/** Base64 data from file. */
|
|
792
|
+
src?: string;
|
|
793
|
+
/** File name. */
|
|
794
|
+
name: string;
|
|
795
|
+
/** All file information from FileReader() */
|
|
796
|
+
info?: File;
|
|
797
|
+
/** List of all errors */
|
|
798
|
+
errors?: FileError[];
|
|
799
|
+
};
|
|
800
|
+
|
|
801
|
+
export declare const FileUpload: ({ accept, fileLimit, files, hideImagePreview, hideTitle, maxSizeBytes, messages, minSizeBytes, onDelete, onError, onSelectFile, onShow, selectMultiple, setFiles, theme, uploadProgress, withProgressBar }: FileUploadPropsType) => JSX.Element;
|
|
802
|
+
|
|
803
|
+
export declare interface FileUploadHookType {
|
|
804
|
+
FileUpload: ({ accept, maxSizeBytes, messages, minSizeBytes, onDelete, onError, onSelectFile, onShow, selectMultiple, theme, uploadProgress }: Omit<FileUploadPropsType, 'files' | 'setFiles'>) => JSX.Element;
|
|
805
|
+
files: FileType[];
|
|
806
|
+
handleClearFiles: () => void;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
export declare interface FileUploadPropsType extends ComponentPropsType {
|
|
810
|
+
/** Set accepted file MIME types (or file names etc.). For more info see https://github.com/react-dropzone/attr-accept */
|
|
811
|
+
accept?: string | string[];
|
|
812
|
+
/** @ignore Inner component state with all files. 💀 It's provided if you use hook. 💀*/
|
|
813
|
+
files: FileListPropsType['files'];
|
|
814
|
+
/** Define maximum uploadable files. */
|
|
815
|
+
fileLimit?: number;
|
|
816
|
+
/** Hides preview for the chosen file if it's an image. */
|
|
817
|
+
hideImagePreview?: boolean;
|
|
818
|
+
/** Hides title and restrictions */
|
|
819
|
+
hideTitle?: boolean;
|
|
820
|
+
/** Maximum file size (in bytes) */
|
|
821
|
+
maxSizeBytes?: number;
|
|
822
|
+
/** Set of all used text messages. */
|
|
823
|
+
messages: {
|
|
824
|
+
/** ARIA label for `delete` button */
|
|
825
|
+
ariaForDelete: FileListPropsType['messages']['ariaForDelete'];
|
|
826
|
+
/** Message for `active` drag area e.g. "Drag file here" */
|
|
827
|
+
dragHere: ReactNode;
|
|
828
|
+
/** Message for drag area e.g. "Move or " */
|
|
829
|
+
move: ReactNode;
|
|
830
|
+
/** Message with file type or size restrictions e.g. "PDF, PNG, JPEG up to 5 MB"*/
|
|
831
|
+
restriction?: ReactNode;
|
|
832
|
+
/** Message for drag area e.g. "select files" */
|
|
833
|
+
select: ReactNode;
|
|
834
|
+
/** Message for drag area e.g. "select more" */
|
|
835
|
+
selectMore?: ReactNode;
|
|
836
|
+
/** Messages for displaying errors inside component. ONLY for multiple uploader */
|
|
837
|
+
multipleUploaderErrors?: FileListPropsType['messages']['multipleUploaderErrors'];
|
|
838
|
+
};
|
|
839
|
+
/** Minimum file size (in bytes) */
|
|
840
|
+
minSizeBytes?: number;
|
|
841
|
+
/** Callback function called when single file upload end with an error.
|
|
842
|
+
* error_codes: file-invalid-type | file-too-large | too-many-files
|
|
843
|
+
*/
|
|
844
|
+
onError?: (errors: FileError[]) => void;
|
|
845
|
+
/** Callback function called when `bin/close` button clicked. */
|
|
846
|
+
onDelete?: (id: string) => void;
|
|
847
|
+
/** Callback function called when file is selected and accepted by component. */
|
|
848
|
+
onSelectFile?: (file: FileType) => void;
|
|
849
|
+
/** Callback function called when clicked on `search` icon, or file name. */
|
|
850
|
+
onShow?: FileListPropsType['onShow'];
|
|
851
|
+
/** Flag to define if you want to select/drag multiple files. */
|
|
852
|
+
selectMultiple?: FileListPropsType['selectMultiple'];
|
|
853
|
+
/** @ignore Function for modifying inner state. 💀 It's provided if you use hook. 💀 */
|
|
854
|
+
setFiles: React_2.Dispatch<React_2.SetStateAction<FileType[]>>;
|
|
855
|
+
/** Shows file upload progress bar when passed file `id` with percentage value. */
|
|
856
|
+
uploadProgress?: FileListPropsType['uploadProgress'];
|
|
857
|
+
/** Display or hide file upload progress bar, even for single file */
|
|
858
|
+
withProgressBar?: FileListPropsType['withProgressBar'];
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
export declare const Flex: ({ alignItems, children, direction, isAlignItemsResponsive, isDirectionResponsive, justifyContent, onClick, testId, theme, wrap }: FlexPropsType) => JSX.Element;
|
|
862
|
+
|
|
863
|
+
declare type FlexDirectionType = 'row' | 'row-reverse' | 'column' | 'column-reverse';
|
|
864
|
+
|
|
865
|
+
export declare interface FlexPropsType extends ComponentPropsType {
|
|
866
|
+
/** Flex align items type to class. */
|
|
867
|
+
alignItems?: AlignItemsType;
|
|
868
|
+
/** Flex responsivity for alignItems. */
|
|
869
|
+
isAlignItemsResponsive?: boolean;
|
|
870
|
+
/** Flex justify content type to class. */
|
|
871
|
+
justifyContent?: JustifyContentType;
|
|
872
|
+
/** Flex direction type to class. */
|
|
873
|
+
direction?: FlexDirectionType;
|
|
874
|
+
/** Flex responsivity for direction. */
|
|
875
|
+
isDirectionResponsive?: boolean;
|
|
876
|
+
/** Children to be rendered in the main container. */
|
|
877
|
+
children?: React_2.ReactNode;
|
|
878
|
+
/** Flex wrap type to class. */
|
|
879
|
+
wrap?: FlexWrapType;
|
|
880
|
+
/** onClick event. */
|
|
881
|
+
onClick?: (event: SyntheticEvent) => void;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
declare type FlexWrapType = 'nowrap' | 'wrap' | 'wrap-reverse';
|
|
885
|
+
|
|
886
|
+
export declare const formatDate: (date: Date | undefined, language: 'cs' | 'en') => string;
|
|
887
|
+
|
|
888
|
+
export declare const formatMonthDate: (date: Date | undefined, language: 'cs' | 'en') => string;
|
|
889
|
+
|
|
890
|
+
export declare const FormControl: ({ children, component: Component, defaultValue, hasAutoFocus, inputRef, isChecked, name, onChange, onBlur, onFocus, testId, theme, type, value, ...rest }: FormControlType) => JSX.Element;
|
|
891
|
+
|
|
892
|
+
export declare interface FormControlType extends ComponentPropsType {
|
|
893
|
+
/** Children to be rendered in the main container. */
|
|
894
|
+
children?: ReactNode;
|
|
895
|
+
/** Component used as form control. */
|
|
896
|
+
component: ElementType | string;
|
|
897
|
+
/** Default value of the form control. */
|
|
898
|
+
defaultValue?: string | number;
|
|
899
|
+
/** Native autofocus of user's input to HTML input. */
|
|
900
|
+
hasAutoFocus?: boolean;
|
|
901
|
+
/** This prop can be used to pass a ref callback to the input element. */
|
|
902
|
+
inputRef?: () => void | Record<string, unknown>;
|
|
903
|
+
/** Checked attribute of the form control. */
|
|
904
|
+
isChecked?: boolean;
|
|
905
|
+
/** Name of the form control. */
|
|
906
|
+
name: string;
|
|
907
|
+
/** onChange handler for setting the value */
|
|
908
|
+
onChange: (value: string | number | null) => void;
|
|
909
|
+
/** Function to call when the form control emits a `blur` event. */
|
|
910
|
+
onBlur?: FocusEventHandler<HTMLInputElement>;
|
|
911
|
+
/** Function to call when the form control emits a `focus` event. */
|
|
912
|
+
onFocus?: FocusEventHandler<HTMLInputElement>;
|
|
913
|
+
/** Unique ID for automatic testing */
|
|
914
|
+
type?: string;
|
|
915
|
+
/** Value of the form control. */
|
|
916
|
+
value?: string;
|
|
917
|
+
}
|
|
918
|
+
|
|
919
|
+
export declare const FormField: React_2.ForwardRefExoticComponent<FormFieldPropsType & React_2.RefAttributes<unknown>>;
|
|
920
|
+
|
|
921
|
+
export declare interface FormField2PropsType extends ComponentPropsType, DisabledTooltipPropsType {
|
|
922
|
+
/** Allow click event propagation */
|
|
923
|
+
allowEventPropagation?: boolean;
|
|
924
|
+
/** Error message shown in error state + switch component to error state. */
|
|
925
|
+
error?: string;
|
|
926
|
+
/** If `true`, the form group is disabled. */
|
|
927
|
+
isDisabled?: boolean;
|
|
928
|
+
/** Additional information for form field. */
|
|
929
|
+
help?: ReactNode;
|
|
930
|
+
/** Form field label. */
|
|
931
|
+
label?: ReactNode;
|
|
932
|
+
/** Content of additional label tooltip. */
|
|
933
|
+
labelTooltip?: ReactNode;
|
|
934
|
+
/** Defines counter of maximum characters to be inserted. (use only for Input or Textarea) */
|
|
935
|
+
maxCharCounter?: number;
|
|
936
|
+
/** Name of form field. */
|
|
937
|
+
name: string;
|
|
938
|
+
/** Handler for input blur. */
|
|
939
|
+
onBlur?: (value: string | number | boolean | null) => void;
|
|
940
|
+
/** Handler for value change. */
|
|
941
|
+
onChange?: (value: string | number | boolean | null) => void;
|
|
942
|
+
/** Click event handler */
|
|
943
|
+
onClick?: (event: SyntheticEvent) => void;
|
|
944
|
+
/** Function to call when the form control emits a `focus` event. */
|
|
945
|
+
onFocus?: FocusEventHandler<HTMLElement>;
|
|
946
|
+
/** Custom handler function for onPaste event. */
|
|
947
|
+
onPaste?: (event: SyntheticEvent) => void;
|
|
948
|
+
/** Placeholder content for empty form field. */
|
|
949
|
+
placeholder?: string;
|
|
950
|
+
value?: string;
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
export declare interface FormFieldPropsType extends FormFieldType {
|
|
954
|
+
/** Field's control component */
|
|
955
|
+
control: FunctionComponent;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
export declare interface FormFieldType extends ComponentPropsType, DisabledTooltipPropsType {
|
|
959
|
+
/** Additional content to render after the control. */
|
|
960
|
+
afterControl?: ReactNode;
|
|
961
|
+
/** Allow click event propagation */
|
|
962
|
+
allowEventPropagation?: boolean;
|
|
963
|
+
/** Value of autocomplete property. */
|
|
964
|
+
autoComplete?: string;
|
|
965
|
+
/** Native autofocus of user's input to HTML input. */
|
|
966
|
+
hasAutoFocus?: boolean;
|
|
967
|
+
/** Additional content to render before the control. */
|
|
968
|
+
beforeControl?: ReactNode;
|
|
969
|
+
/** Wider menu for select menus. */
|
|
970
|
+
hasWiderMenu?: boolean;
|
|
971
|
+
/** If set, control is disabled */
|
|
972
|
+
isDisabled?: boolean;
|
|
973
|
+
/** Node shown in error state. */
|
|
974
|
+
error?: string;
|
|
975
|
+
/** Used to pair the control with a label. If undefined, we use a generated one. */
|
|
976
|
+
id?: string;
|
|
977
|
+
/** If `true`, label is hidden. */
|
|
978
|
+
isLabelHidden?: boolean;
|
|
979
|
+
/** Used to pass a context className to FormGroup (to properly style FormControl and Label) */
|
|
980
|
+
kind?: string;
|
|
981
|
+
/** Label value */
|
|
982
|
+
label?: ReactElement | string;
|
|
983
|
+
/** Additional props to pass to the Label */
|
|
984
|
+
labelProps?: Record<string, unknown>;
|
|
985
|
+
/** Assign tooltip to label */
|
|
986
|
+
labelTooltip?: ReactElement;
|
|
987
|
+
/** Legend inside text input. */
|
|
988
|
+
legendText?: ReactElement;
|
|
989
|
+
/** Max chars count */
|
|
990
|
+
maxCharacters?: number;
|
|
991
|
+
/** Max chars for input */
|
|
992
|
+
maxLength?: number;
|
|
993
|
+
/** Name of the field */
|
|
994
|
+
name: string;
|
|
995
|
+
/** Click event handler. */
|
|
996
|
+
onClick?: (e: SyntheticEvent | KeyboardEvent_2) => void;
|
|
997
|
+
/** An input placeholder text */
|
|
998
|
+
placeholder?: ReactElement | string;
|
|
999
|
+
/** Assign a prefix Icon to Input */
|
|
1000
|
+
prefix?: ReactNode;
|
|
1001
|
+
/** If set, control is readOnly */
|
|
1002
|
+
isReadOnly?: boolean;
|
|
1003
|
+
/** Is field required? */
|
|
1004
|
+
isRequired?: boolean;
|
|
1005
|
+
/** Assign a suffix Icon to Input */
|
|
1006
|
+
suffix?: ReactNode;
|
|
1007
|
+
/** Assign tooltip to label */
|
|
1008
|
+
tooltip?: ReactElement;
|
|
1009
|
+
/** Type of input */
|
|
1010
|
+
type?: HTMLInputElement['type'];
|
|
1011
|
+
/** Input value from redux form */
|
|
1012
|
+
value?: string | number | boolean | Date;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
export declare const FormGroup: ({ children, error, hasError, hasLabel, kind, theme, ...rest }: FormGroupPropsType) => JSX.Element;
|
|
1016
|
+
|
|
1017
|
+
export declare const FormGroup2: ({ charCounter, children, disabledTooltip, disabledTooltipOffset, disabledTooltipType, error, hasError, help, isDisabled, label, labelTooltip, name, theme }: FormGroup2PropsType) => JSX.Element;
|
|
1018
|
+
|
|
1019
|
+
export declare interface FormGroup2PropsType extends ComponentPropsType, DisabledTooltipPropsType {
|
|
1020
|
+
/** Children to be rendered in the main container. */
|
|
1021
|
+
children: ReactNode;
|
|
1022
|
+
/** Error message shown in error state + switch component to error state. */
|
|
1023
|
+
error?: string;
|
|
1024
|
+
/** If `true`, form field is in error state. `hasWarning` is ignored */
|
|
1025
|
+
hasError?: boolean;
|
|
1026
|
+
/** Additional information for form field. */
|
|
1027
|
+
help?: ReactNode;
|
|
1028
|
+
/** If `true`, the form group is disabled. */
|
|
1029
|
+
isDisabled?: boolean;
|
|
1030
|
+
/** Form field label. */
|
|
1031
|
+
label?: ReactNode;
|
|
1032
|
+
/** Content of additional label tooltip. */
|
|
1033
|
+
labelTooltip?: ReactNode;
|
|
1034
|
+
/** Defines counter of maximum characters to be inserted. */
|
|
1035
|
+
charCounter?: {
|
|
1036
|
+
length: number;
|
|
1037
|
+
max: number;
|
|
1038
|
+
};
|
|
1039
|
+
/** Name of form field. */
|
|
1040
|
+
name: string;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
export declare const FormGroupContext: Context<FormGroupContextType>;
|
|
1044
|
+
|
|
1045
|
+
declare interface FormGroupContextType {
|
|
1046
|
+
error?: string;
|
|
1047
|
+
hasError: boolean;
|
|
1048
|
+
hasLabel: boolean;
|
|
1049
|
+
isFilled: boolean;
|
|
1050
|
+
isFocused: boolean;
|
|
1051
|
+
onBlur: () => void;
|
|
1052
|
+
onEmpty: () => void;
|
|
1053
|
+
onFilled: () => void;
|
|
1054
|
+
onFocus: () => void;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
export declare interface FormGroupPropsType extends ComponentPropsType {
|
|
1058
|
+
/** Children to be rendered in the main container. */
|
|
1059
|
+
children: ReactNode;
|
|
1060
|
+
/** Node shown in error state. */
|
|
1061
|
+
error?: string;
|
|
1062
|
+
/** If `true`, form field is in error state. `hasWarning` is ignored */
|
|
1063
|
+
hasError?: boolean;
|
|
1064
|
+
/** If `true`, the form group includes a label. */
|
|
1065
|
+
hasLabel?: boolean;
|
|
1066
|
+
/** ClassName used to style nested elements (labels and form controls). */
|
|
1067
|
+
kind?: string;
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1070
|
+
export declare const FormText: ({ children, className, hasError, theme, ...rest }: FormTextPropsType) => JSX.Element;
|
|
1071
|
+
|
|
1072
|
+
export declare interface FormTextPropsType extends ComponentPropsType {
|
|
1073
|
+
/** Children to be rendered in the main container. */
|
|
1074
|
+
children?: ReactNode;
|
|
1075
|
+
/** Class name for root. */
|
|
1076
|
+
className?: string;
|
|
1077
|
+
/** If `true`, the form field is in error state. */
|
|
1078
|
+
hasError?: boolean;
|
|
1079
|
+
/** If `true`, the form field is in warning state. */
|
|
1080
|
+
hasWarning?: boolean;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
export declare const getDefaultGroup: (items: SelectItemType[]) => SelectItemGroupType[];
|
|
1084
|
+
|
|
1085
|
+
export declare const getDisplayName: (Component: Component) => string;
|
|
1086
|
+
|
|
1087
|
+
export declare const getIntegerMask: (x: string) => RegExp[];
|
|
1088
|
+
|
|
1089
|
+
declare interface GroupedItemsHookType {
|
|
1090
|
+
indexedGroupedItems: SelectItemGroupType[];
|
|
1091
|
+
/** Selected item from grouped array */
|
|
1092
|
+
selectedItem: SelectItemType | undefined;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
declare interface GroupedItemsPropsType {
|
|
1096
|
+
/** Array of grouped items. */
|
|
1097
|
+
groupedItems: SelectItemGroupType[];
|
|
1098
|
+
/** Selected value. */
|
|
1099
|
+
value: string | undefined;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
export declare const hasGroups: (possiblyGroupedItems: SelectItemType[] | SelectItemGroupType[]) => boolean;
|
|
1103
|
+
|
|
1104
|
+
export declare const Header: ({ children, hasMobileMenu, logo, mobileMenuAria, onClickMobileMenu, testId, theme }: HeaderPropsType) => JSX.Element;
|
|
1105
|
+
|
|
1106
|
+
export declare interface HeaderPropsType extends ComponentPropsType {
|
|
1107
|
+
/** Children to be rendered in the main container. */
|
|
1108
|
+
children?: ReactNode;
|
|
1109
|
+
logo: {
|
|
1110
|
+
/** Description for LOGO */
|
|
1111
|
+
alt: string;
|
|
1112
|
+
/** Link for redirect on click */
|
|
1113
|
+
linkTo?: string;
|
|
1114
|
+
/** Title for linkTo */
|
|
1115
|
+
title?: string;
|
|
1116
|
+
};
|
|
1117
|
+
/** Flag if you want hamburger to be displayed under tablet breakpoint. */
|
|
1118
|
+
hasMobileMenu?: boolean;
|
|
1119
|
+
/** Menu description for accessibility. */
|
|
1120
|
+
mobileMenuAria: ReactElement | string;
|
|
1121
|
+
/** Convert item to a button component. */
|
|
1122
|
+
onClickMobileMenu?: () => void;
|
|
1123
|
+
}
|
|
1124
|
+
|
|
1125
|
+
declare type HideBreakpointsType = 'to-mobile' | 'mobile' | 'mobile-only' | 'mobile-max' | 'tablet' | 'tablet-only' | 'tablet-max' | 'desktop-small' | 'desktop-small-only' | 'desktop-small-max' | 'desktop' | 'desktop-only' | 'desktop-max' | 'desktop-large';
|
|
1126
|
+
|
|
1127
|
+
export declare const Icon: ({ backgroundColor, color, isLeft, isRight, name, size, testId, theme, ...rest }: IconPropsType) => JSX.Element;
|
|
1128
|
+
|
|
1129
|
+
export declare const IconList: ({ children, testId, theme }: IconListPropsType) => JSX.Element;
|
|
1130
|
+
|
|
1131
|
+
export declare const IconListItem: ({ children, iconBackgroundColor, iconName, iconSize, size, testId, textSize, theme }: IconListItemPropsType) => JSX.Element;
|
|
1132
|
+
|
|
1133
|
+
export declare interface IconListItemPropsType extends ComponentPropsType {
|
|
1134
|
+
/** Children to be rendered in the main container. */
|
|
1135
|
+
children: ReactElement;
|
|
1136
|
+
/** Color of icon background */
|
|
1137
|
+
iconBackgroundColor?: BackgroundColorType;
|
|
1138
|
+
/** Custom icon name */
|
|
1139
|
+
iconName?: IconNameType;
|
|
1140
|
+
/** Specific size for icon only */
|
|
1141
|
+
iconSize?: SizeType;
|
|
1142
|
+
/** Size used as default for icon and text */
|
|
1143
|
+
size?: SizeType;
|
|
1144
|
+
/** Specific size for text only */
|
|
1145
|
+
textSize?: SizeType;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
export declare interface IconListPropsType extends ComponentPropsType {
|
|
1149
|
+
/** Children to be rendered in the main container. */
|
|
1150
|
+
children?: ReactNode;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
export declare type IconNameType = 'account' | 'accountDuotone' | 'accountFill' | 'addPayment' | 'addPaymentFill' | 'airline' | 'airlineFill' | 'app' | 'appFill' | 'applePay' | 'arrowDown' | 'arrowDownFill' | 'arrowLeft' | 'arrowLeftDuotone' | 'arrowLeftFill' | 'arrowRight' | 'arrowRightArrowLeft' | 'arrowRightArrowLeftDuotone' | 'arrowRightArrowLeftFill' | 'arrowRightDuotone' | 'arrowRightFill' | 'arrowUp' | 'arrowUpArrowDown' | 'arrowUpArrowDownDuotone' | 'arrowUpArrowDownFill' | 'arrowUpFill' | 'atm' | 'atmDuotone' | 'atmFill' | 'bank' | 'bankDuotone' | 'bankFill' | 'banknote10' | 'banknote100' | 'banknote1000' | 'banknote20' | 'banknote200' | 'banknote2000' | 'banknote5' | 'banknote50' | 'banknote500' | 'banknote5000' | 'beauty' | 'beautyFill' | 'bed' | 'bedFill' | 'bell' | 'bellDuotone' | 'bellFill' | 'bin' | 'binFill' | 'bulkPayment' | 'bulkPaymentFill' | 'cable' | 'cableFill' | 'calendar' | 'calendarClock' | 'calendarClockDuotone' | 'calendarClockFill' | 'calendarDuotone' | 'calendarFill' | 'calendarPiggyBank' | 'calendarPiggyBankDuotone' | 'calendarPiggyBankFill' | 'calendarRepeat' | 'calendarRepeatDuotone' | 'calendarRepeatFill' | 'camera' | 'cameraDuotone' | 'cameraFill' | 'campground' | 'campgroundDuotone' | 'campgroundFill' | 'car' | 'carCrash' | 'carCrashFill' | 'carFill' | 'card' | 'cardBan' | 'cardBanDuotone' | 'cardBanFill' | 'cardCalendar' | 'cardCalendarDuotone' | 'cardCalendarFill' | 'cardDuotone' | 'cardFill' | 'cardTachometer' | 'cardTachometerDuotone' | 'cardTachometerFill' | 'caretDown' | 'caretDownDuotone' | 'caretDownFill' | 'caretUp' | 'caretUpDuotone' | 'caretUpFill' | 'cat' | 'catTomPlus' | 'catTomPlusFill' | 'circleInfo' | 'circleInfoDuotone' | 'circleInfoFill' | 'circleQuestion' | 'circleQuestionDuotone' | 'circleQuestionFill' | 'clipboardArrowOut' | 'clipboardArrowOutDuotone' | 'clipboardArrowOutFill' | 'clock' | 'clockRotateLeft' | 'clockRotateLeftDuotone' | 'clockRotateLeftFill' | 'close' | 'closeFill' | 'clothes' | 'clothesFill' | 'coins1' | 'coins10' | 'coins2' | 'coins20' | 'coins5' | 'coins50' | 'contract' | 'contractFill' | 'cookieBite' | 'cookieBiteDuotone' | 'cookieBiteFill' | 'copy' | 'copyFill' | 'culture' | 'cultureFill' | 'czech' | 'czechComment' | 'czechDuotone' | 'czechFill' | 'day' | 'dayFill' | 'dayNight' | 'delay' | 'delayFill' | 'dialHand' | 'dialHandDuotone' | 'dialHandFill' | 'documentPending' | 'documentPendingFill' | 'documentUpload' | 'documentUploadFill' | 'documents' | 'documentsDuotone' | 'documentsFill' | 'dollarSign' | 'dollarSignDuotone' | 'dollarSignFill' | 'download' | 'downloadFill' | 'drugs' | 'drugsFill' | 'earthArrowOut' | 'earthArrowOutDuotone' | 'earthArrowOutFill' | 'edit' | 'editFill' | 'editUnderline' | 'education' | 'educationFill' | 'electricity' | 'electricityFill' | 'electronics-1' | 'electronics' | 'electronicsDuotone' | 'electronicsFill-1' | 'electronicsFill' | 'email' | 'emailFill' | 'english' | 'englishComment' | 'englishDuotone' | 'englishFill' | 'envelope' | 'envelopeFill' | 'eu' | 'euFill' | 'euroSign' | 'euroSignDuotone' | 'euroSignFill' | 'excersiseBook' | 'excersiseBookFill' | 'exclamation' | 'exclamationFill' | 'extra' | 'extraFill' | 'eye' | 'eyeCrossed' | 'eyeCrossedDuotone' | 'eyeCrossedFill' | 'eyeDuotone' | 'eyeFill' | 'faceAngry' | 'faceAngryDuotone' | 'faceAngryFill' | 'faceFrown' | 'faceFrownDuotone' | 'faceFrownFill' | 'faceLaugh' | 'faceLaughDuotone' | 'faceLaughFill' | 'faceMeh' | 'faceMehDuotone' | 'faceMehFill' | 'faceOld' | 'faceOldDuotone' | 'faceOldFill' | 'faceSmile' | 'faceSmileDuotone' | 'faceSmileFill' | 'facebookFill' | 'feedback' | 'feedbackFill' | 'fileArrowDown' | 'fileArrowDownDuotone' | 'fileArrowDownFill' | 'fileLines' | 'fileLinesDuotone' | 'fileLinesFill' | 'fileMagnifyingGlass' | 'filePdf' | 'filePdfDuotone' | 'filePdfFill' | 'filter' | 'filterDuotone' | 'filterFill' | 'fingerprint' | 'fingerprintDuotone' | 'fingerprintFill' | 'fitbit' | 'flexicredit' | 'flexicreditDuotone' | 'flexicreditFill' | 'food' | 'foodFill' | 'fuel' | 'fuelFill' | 'fullscreen' | 'fullscreenClose' | 'fullscreenFill' | 'furniture' | 'furnitureDuotone' | 'furnitureFill' | 'garmin' | 'gas' | 'gasFill' | 'gift' | 'giftDuotone' | 'giftFill' | 'global' | 'globalFill' | 'globe' | 'globeDuotone' | 'globeFill' | 'googlePay' | 'graph' | 'graphFill' | 'handHoldingHeart' | 'handHoldingHeartDuotone' | 'handHoldingHeartFill' | 'healthcare' | 'healthcareDuotone' | 'healthcareFill' | 'hearth' | 'hearthFill' | 'home' | 'homeCouch' | 'homeCouchDuotone' | 'homeCouchFill' | 'homeDuotone' | 'homeFading' | 'homeFadingDuotone' | 'homeFadingFill' | 'homeFill' | 'homeRepeat' | 'homeRepeatDuotone' | 'homeRepeatFill' | 'homeSack' | 'homeSackDuotone' | 'homeSackFill' | 'hotel' | 'hotelFill' | 'householdEquipment' | 'householdFill' | 'idCard' | 'idCardFill' | 'image' | 'imageFill' | 'inbound' | 'inboundFill' | 'info' | 'infoFill' | 'institution' | 'institutionFill' | 'insurance' | 'insuranceDuotone' | 'insuranceFill' | 'interest' | 'interestFill' | 'internet' | 'internetBank' | 'internetBankFill' | 'internetFill' | 'investments-Add' | 'investments' | 'investmentsDuotone' | 'investmentsFill' | 'laptopPlus' | 'laptopPlusDuotone' | 'laptopPlusFill' | 'leaf' | 'leafDuotone' | 'leafFill' | 'lifeRing' | 'lifeRingDuotone' | 'lifeRingFill' | 'list' | 'listFill' | 'loaction' | 'loading' | 'loadingFill' | 'loan' | 'loanDuotone' | 'loanFill' | 'location' | 'locationFill' | 'lock' | 'lockFill' | 'logo' | 'logout' | 'logoutDuotone' | 'logoutFill' | 'medicalKit' | 'medicalKitDuotone' | 'medicalKitFill' | 'menu' | 'menuFill' | 'message' | 'messageDuotone' | 'messageFill' | 'minus' | 'minusFill' | 'mobile' | 'mobileFill' | 'mobilePalette' | 'mobilePaletteDuotone' | 'mobilePaletteFill' | 'mobilePlus' | 'mobilePlusDuotone' | 'mobilePlusFill' | 'mobileTachometer' | 'mobileTachometerDuotone' | 'mobileTachometerFill' | 'moneta' | 'monetaArrowin' | 'monetaArrowinDuotone' | 'monetaArrowinFill' | 'monetaBrush' | 'monetaBrushDuotone' | 'monetaBrushFill' | 'money' | 'moneyBillFast' | 'moneyBillFastDuotone' | 'moneyBillFastFill' | 'moneyBillRepeat' | 'moneyBillRepeatDuotone' | 'moneyBillRepeatFill' | 'moneyFill' | 'moreHorizontal' | 'mouse' | 'mouseFill' | 'night' | 'nightFill' | 'other' | 'otherDuotone' | 'otherFill' | 'outbound' | 'outboundFill' | 'pay' | 'payDuotone' | 'payFill' | 'payment' | 'paymentFill' | 'payout' | 'payoutFill' | 'pending' | 'pendingFill' | 'person' | 'pets' | 'petsFill' | 'phone' | 'phoneDuotone' | 'phoneFill' | 'pie' | 'pieFill' | 'planeDeparture' | 'planeDepartureDuotone' | 'planeDepartureFill' | 'plus' | 'plusDuotone' | 'plusFill' | 'pocketMoney' | 'pocketMoneyFill' | 'poundSign' | 'poundSignDuotone' | 'poundSignFill' | 'print' | 'printFill' | 'qrArrowOut' | 'qrArrowOutDuotone' | 'qrArrowOutFill' | 'qrCode' | 'qrCodeDuotone' | 'qrCodeFill' | 'qrPhoto' | 'qrPhotoFill' | 'qrUpload' | 'qrUploadFill' | 'question' | 'questionFill' | 'reconstruction' | 'reconstructionFill' | 'rent' | 'rentDuotone' | 'rentFill' | 'repeat' | 'repeatFill' | 'restaurant' | 'rocketLaunch' | 'rocketLaunchDuotone' | 'rocketLaunchFill' | 'sack' | 'sackDuotone' | 'sackFill' | 'save' | 'saveFill' | 'savings' | 'savingsDuotone' | 'savingsFill' | 'scaleBalanced' | 'scaleBalancedDuotone' | 'scaleBalancedFill' | 'scroll' | 'scrollFill' | 'search' | 'searchFill' | 'services' | 'servicesFill' | 'settings' | 'settingsDuotone' | 'settingsFill' | 'setup' | 'setupFill' | 'shieldBlank' | 'shieldBlankDuotone' | 'shieldBlankFill' | 'signHanging' | 'signHangingDuotone' | 'signHangingFill' | 'signature' | 'smartBanka' | 'smartBankaDuotone' | 'smartBankaFill' | 'sms' | 'smsFill' | 'sport' | 'sportFill' | 'starFill-1' | 'starFill' | 'starsAlt' | 'starsAltDuotone' | 'starsAltFill' | 'study' | 'studyFill' | 'suitcaseRolling' | 'suitcaseRollingDuotone' | 'suitcaseRollingFill' | 'tag' | 'tagDuotone' | 'tagFill' | 'textarea' | 'tick' | 'tickFill' | 'ticket' | 'ticketFill' | 'tiles' | 'tilesFill' | 'tools' | 'traffic' | 'trafficFill' | 'triangleExclamation' | 'triangleExclamationDuotone' | 'triangleExclamationFill' | 'twitterFill' | 'unlock' | 'unlockFill' | 'upload' | 'uploadFill' | 'user' | 'userDuotone' | 'userFill' | 'userHeadset' | 'userHeadsetDuotone' | 'userHeadsetFill' | 'userSecretCard' | 'userSecretCardDuotone' | 'userSecretCardFill' | 'userSecretMobile' | 'userSecretMobileDuotone' | 'userSecretMobileFill' | 'userVerified' | 'userVerifiedFill' | 'users' | 'usersDuotone' | 'usersFill' | 'vacation' | 'vacationFill' | 'van' | 'vanFill' | 'wallPiggyBank' | 'wallPiggyBankDuotone' | 'wallPiggyBankFill' | 'wallSack' | 'wallSackDuotone' | 'wallSackFill' | 'walletArrowIn' | 'walletArrowInDuotone' | 'walletArrowInFill' | 'walletEarth' | 'walletEarthDuotone' | 'walletEarthFill' | 'walletPiggyBank' | 'walletPiggyBankDuotone' | 'walletPiggyBankFill' | 'wiring' | 'wiringFill' | 'zoomIn' | 'zoomInDuotone' | 'zoomInFill' | 'zoomOut' | 'zoomOutDuotone' | 'zoomOutFill';
|
|
1154
|
+
|
|
1155
|
+
export declare interface IconPropsType extends ComponentPropsType {
|
|
1156
|
+
/** Color of icon background */
|
|
1157
|
+
backgroundColor?: BackgroundColorType;
|
|
1158
|
+
/** Color of icon SVG fill from palette--(light|dark).scss example orangeDark */
|
|
1159
|
+
color?: string;
|
|
1160
|
+
/** Icon name/type enum type */
|
|
1161
|
+
name: IconNameType;
|
|
1162
|
+
/** Icon size enum type */
|
|
1163
|
+
size?: IconSizeType;
|
|
1164
|
+
/** Set padding for left position */
|
|
1165
|
+
isLeft?: boolean;
|
|
1166
|
+
/** Set padding for right position */
|
|
1167
|
+
isRight?: boolean;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
export declare type IconSizeType = 'small' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge';
|
|
1171
|
+
|
|
1172
|
+
declare const Image_2: ({ alt, isAriaHidden, isCover, src, testId, theme }: ImagePropsType) => JSX.Element;
|
|
1173
|
+
export { Image_2 as Image }
|
|
1174
|
+
|
|
1175
|
+
export declare interface ImagePropsType extends ComponentPropsType {
|
|
1176
|
+
/** Description of image. */
|
|
1177
|
+
alt: string;
|
|
1178
|
+
/** Hide image for screen-readers */
|
|
1179
|
+
isAriaHidden?: boolean;
|
|
1180
|
+
/** Set to `true` if you want image to completly fill parent element. */
|
|
1181
|
+
isCover?: boolean;
|
|
1182
|
+
/** Link to source image or base64. */
|
|
1183
|
+
src: string;
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
export declare type IndentedSizeType = 'xxxSmall' | 'xxSmall' | 'xSmall' | 'small' | 'medium' | 'large' | 'xLarge' | 'xxLarge' | 'xxxLarge';
|
|
1187
|
+
|
|
1188
|
+
export declare type IndentedType = {
|
|
1189
|
+
bottom?: IndentedSizeType;
|
|
1190
|
+
left?: IndentedSizeType;
|
|
1191
|
+
right?: IndentedSizeType;
|
|
1192
|
+
top?: IndentedSizeType;
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1195
|
+
export declare const Input2: ({ allowEventPropagation, allowLeadingZeros, allowNegative, autocomplete, autofocus, decimalLimit, decimalSeparator, disabledTooltip, error, help, inputMode, integerPlaces, isDisabled, label, labelTooltip, maxCharCounter, maxLength, name, onBlur, onChange, onClick, onFocus, onPaste, placeholder, prefix, prefixIconName, showPassword, showPasswordTooltip, suffixIconName, testId, theme, thousandSeparator, type, unit, value: outerValue }: Input2PropsType) => JSX.Element;
|
|
1196
|
+
|
|
1197
|
+
export declare interface Input2PropsType extends FormField2PropsType {
|
|
1198
|
+
/** If `true` number can start with zeros. */
|
|
1199
|
+
allowLeadingZeros?: boolean;
|
|
1200
|
+
/** If `true` number can be negative. */
|
|
1201
|
+
allowNegative?: boolean;
|
|
1202
|
+
/** If `true` input uses browser autocomplete. */
|
|
1203
|
+
autocomplete?: boolean;
|
|
1204
|
+
/** If `true` input will be focused after render. */
|
|
1205
|
+
autofocus?: boolean;
|
|
1206
|
+
/** Limit for decimal numbers. */
|
|
1207
|
+
decimalLimit?: number;
|
|
1208
|
+
/** Symbol to separate decimal numbers. */
|
|
1209
|
+
decimalSeparator?: string;
|
|
1210
|
+
/** Hint at the type of data that might be entered by the user while editing the element or its contents. */
|
|
1211
|
+
inputMode?: 'none' | 'text' | 'tel' | 'url' | 'email' | 'numeric' | 'decimal' | 'search';
|
|
1212
|
+
/** Limit for numbers before decimal symbol. */
|
|
1213
|
+
integerPlaces?: number;
|
|
1214
|
+
/** Sets maximum value length. */
|
|
1215
|
+
maxLength?: HTMLInputElement['maxLength'];
|
|
1216
|
+
/** Text placed before input itself. */
|
|
1217
|
+
prefix?: ReactNode;
|
|
1218
|
+
/** Icon placed inside input before value. */
|
|
1219
|
+
prefixIconName?: IconNameType;
|
|
1220
|
+
/** If `true` then input `type=password` has button to show/hide inserted password as text. */
|
|
1221
|
+
showPassword?: boolean;
|
|
1222
|
+
/** Tooltip messages for password input. */
|
|
1223
|
+
showPasswordTooltip?: {
|
|
1224
|
+
open: ReactNode;
|
|
1225
|
+
close: ReactNode;
|
|
1226
|
+
};
|
|
1227
|
+
/** Icon placed inside input after value. */
|
|
1228
|
+
suffixIconName?: IconNameType;
|
|
1229
|
+
/** Symbol to separate thousands. */
|
|
1230
|
+
thousandSeparator?: string;
|
|
1231
|
+
/** Defines type of input. */
|
|
1232
|
+
type?: Input2TypeType;
|
|
1233
|
+
/** Text placed after input itself. */
|
|
1234
|
+
unit?: ReactNode;
|
|
1235
|
+
value?: string;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
export declare type Input2TypeType = 'text' | 'number' | 'password' | 'tel' | 'email' | 'search' | 'date';
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* @deprecated This component is **deprecated** please use **Input2**
|
|
1242
|
+
*/
|
|
1243
|
+
export declare const IntegerInput: ({ allowNegative, integerPlaces, thousandSeparator: customThousandSeparator, allowLeadingZeros, value, maxValue, onChange, onBlur, ...rest }: IntegerInputPropsType) => JSX.Element;
|
|
1244
|
+
|
|
1245
|
+
export declare interface IntegerInputPropsType extends IntegerMaskType, FormFieldType {
|
|
1246
|
+
maxValue?: number;
|
|
1247
|
+
/** Function to call when the form control emits a `blur` event. */
|
|
1248
|
+
onBlur?: () => void;
|
|
1249
|
+
/** Function to call when the form control emits a `change` event. */
|
|
1250
|
+
onChange: (val: string | number) => void;
|
|
1251
|
+
/** Value of the form control. */
|
|
1252
|
+
value?: number | string | undefined;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
declare interface IntegerMaskType {
|
|
1256
|
+
allowLeadingZeros?: boolean;
|
|
1257
|
+
allowNegative?: boolean;
|
|
1258
|
+
integerPlaces?: number;
|
|
1259
|
+
thousandSeparator?: string;
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
export declare const isDate: (date: string) => boolean;
|
|
1263
|
+
|
|
1264
|
+
export declare const isFilled: (value: string | number) => boolean;
|
|
1265
|
+
|
|
1266
|
+
export declare const isNotFilled: (value: string | number) => boolean;
|
|
1267
|
+
|
|
1268
|
+
export declare const isNotNilNorEmpty: () => boolean;
|
|
1269
|
+
|
|
1270
|
+
export declare const isPartOfDate: (value: string) => boolean;
|
|
1271
|
+
|
|
1272
|
+
export declare interface ItemType {
|
|
1273
|
+
/** Optional value for withAmount variant. */
|
|
1274
|
+
amount?: ReactNode;
|
|
1275
|
+
/** Color of icon background. */
|
|
1276
|
+
iconBackground?: BackgroundColorType;
|
|
1277
|
+
/** Icon name/type enum type. */
|
|
1278
|
+
iconName?: IconNameType;
|
|
1279
|
+
/** Flag to indicate disabled item. */
|
|
1280
|
+
isDisabled?: boolean;
|
|
1281
|
+
/** Label of list option. */
|
|
1282
|
+
label: string;
|
|
1283
|
+
/** Optional perex for two line variant. */
|
|
1284
|
+
perex?: ReactNode;
|
|
1285
|
+
value: string;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
declare interface ItemType_2 {
|
|
1289
|
+
label: string;
|
|
1290
|
+
labelTooltip?: string;
|
|
1291
|
+
value: string;
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
declare type JustifyContentType = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around' | 'space-evenly' | 'start' | 'end' | 'left' | 'right';
|
|
1295
|
+
|
|
1296
|
+
export declare const KEYS: {
|
|
1297
|
+
Alt: string;
|
|
1298
|
+
AltGraph: string;
|
|
1299
|
+
ArrowDown: string;
|
|
1300
|
+
ArrowLeft: string;
|
|
1301
|
+
ArrowRight: string;
|
|
1302
|
+
ArrowUp: string;
|
|
1303
|
+
Backspace: string;
|
|
1304
|
+
CapsLock: string;
|
|
1305
|
+
Control: string;
|
|
1306
|
+
Delete: string;
|
|
1307
|
+
End: string;
|
|
1308
|
+
Enter: string;
|
|
1309
|
+
Escape: string;
|
|
1310
|
+
Home: string;
|
|
1311
|
+
PageDown: string;
|
|
1312
|
+
PageUp: string;
|
|
1313
|
+
Shift: string;
|
|
1314
|
+
Space: string;
|
|
1315
|
+
Tab: string;
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
export declare const Label: ({ children, htmlFor, isDisabled, isHidden, isReadOnly, theme, ...rest }: LabelPropsType) => JSX.Element;
|
|
1319
|
+
|
|
1320
|
+
export declare const Label2: ({ children, htmlFor, identifier, labelTooltip, testId, theme }: Label2PropsType) => JSX.Element;
|
|
1321
|
+
|
|
1322
|
+
export declare interface Label2PropsType extends ComponentPropsType {
|
|
1323
|
+
/** Children to be rendered in the main container. */
|
|
1324
|
+
children?: ReactNode;
|
|
1325
|
+
htmlFor?: string;
|
|
1326
|
+
identifier?: string;
|
|
1327
|
+
labelTooltip?: ReactNode;
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
export declare interface LabelPropsType extends ComponentPropsType {
|
|
1331
|
+
/** Children to be rendered in the main container. */
|
|
1332
|
+
children?: ReactNode;
|
|
1333
|
+
/** Is label disabled boolean. */
|
|
1334
|
+
isDisabled?: boolean;
|
|
1335
|
+
/** Whether the label should be hidden on regular screens. */
|
|
1336
|
+
isHidden?: boolean;
|
|
1337
|
+
/** Whether the label is read only. */
|
|
1338
|
+
isReadOnly?: boolean;
|
|
1339
|
+
htmlFor?: string;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
declare type LineType = {
|
|
1343
|
+
/** Any color name from palette. */
|
|
1344
|
+
color?: string;
|
|
1345
|
+
/** Flag if you want to use highlighted version of graph. */
|
|
1346
|
+
isHighlighted?: boolean;
|
|
1347
|
+
/** Flag if graph is horizontal line (no chenges in Y values). */
|
|
1348
|
+
isHorizontalLine?: boolean;
|
|
1349
|
+
/** Flag if you want to use highlighted version of graph. */
|
|
1350
|
+
isLegendHover?: boolean;
|
|
1351
|
+
/** Name of graph line. */
|
|
1352
|
+
name: string;
|
|
1353
|
+
/** Type of curve/line to be used to represent data. */
|
|
1354
|
+
type?: AreaTypeType;
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1357
|
+
export declare const Link: React_2.ForwardRefExoticComponent<LinkPropsType & React_2.RefAttributes<unknown>>;
|
|
1358
|
+
|
|
1359
|
+
export declare interface LinkPropsType extends ComponentPropsType, DisabledTooltipPropsType {
|
|
1360
|
+
/** Allow click event propagation */
|
|
1361
|
+
allowEventPropagation?: boolean;
|
|
1362
|
+
/** ARIA label for tabs. */
|
|
1363
|
+
ariaLabel?: string | ReactElement;
|
|
1364
|
+
/** Children components that should be rendered inside the link. */
|
|
1365
|
+
children?: ReactNode;
|
|
1366
|
+
/** Sets color of Link. Default color is `primary` */
|
|
1367
|
+
color?: 'red' | 'secondary';
|
|
1368
|
+
/** Flag indicating that the link is disabled. */
|
|
1369
|
+
isDisabled?: boolean;
|
|
1370
|
+
/**
|
|
1371
|
+
* @deprecated Not implemented any more
|
|
1372
|
+
* Press enter can run onClick event handler.
|
|
1373
|
+
* */
|
|
1374
|
+
isEnterClick?: boolean;
|
|
1375
|
+
/** Set loading state to Link. */
|
|
1376
|
+
isLoading?: boolean;
|
|
1377
|
+
/** Flag indicating that the Link is small. */
|
|
1378
|
+
isSmall?: boolean;
|
|
1379
|
+
/** Title used for file naming when linkUrl leads to file download */
|
|
1380
|
+
linkDownloadTitle?: string;
|
|
1381
|
+
/** Link target. */
|
|
1382
|
+
linkUrl?: string;
|
|
1383
|
+
/** Click event handler. */
|
|
1384
|
+
onClick?: (e: SyntheticEvent | KeyboardEvent) => void;
|
|
1385
|
+
/** Target for link outside app. */
|
|
1386
|
+
target?: TargetType;
|
|
1387
|
+
/** Title of the link element */
|
|
1388
|
+
title?: string;
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
export declare const List: ({ children, hasNoDividers, isLarge, testId, theme }: ListPropsType) => JSX.Element;
|
|
1392
|
+
|
|
1393
|
+
export declare const ListItem: ({ children, label, testId, theme }: ListItemPropsType) => JSX.Element;
|
|
1394
|
+
|
|
1395
|
+
export declare interface ListItemPropsType extends ComponentPropsType {
|
|
1396
|
+
/** Children to be rendered in the main container. */
|
|
1397
|
+
children?: ReactNode;
|
|
1398
|
+
/** Label for children */
|
|
1399
|
+
label?: ReactElement;
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
export declare interface ListPropsType extends ComponentPropsType {
|
|
1403
|
+
/** Children to be rendered in the main container. */
|
|
1404
|
+
children?: ReactNode;
|
|
1405
|
+
/** Whether the list has no dividers between items. */
|
|
1406
|
+
hasNoDividers?: boolean;
|
|
1407
|
+
/** Whether the list is large. */
|
|
1408
|
+
isLarge?: boolean;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
export declare const Loader: ({ children, isContentPulsing, size, testId, theme }: LoaderPropsType) => JSX.Element;
|
|
1412
|
+
|
|
1413
|
+
export declare interface LoaderPropsType extends ComponentPropsType {
|
|
1414
|
+
/** Size of the loader. Default size is large loader. */
|
|
1415
|
+
size?: SizeType;
|
|
1416
|
+
/** Children to be rendered in the main container. */
|
|
1417
|
+
children?: ReactNode;
|
|
1418
|
+
/** Whether the loader's content should pulse as well. Default is no pulsing for content. */
|
|
1419
|
+
isContentPulsing?: boolean;
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
export declare const Menu: ({ ariaLabel, children, isMain, isMobile, isSecondary, role, testId, theme }: MenuPropsType) => JSX.Element;
|
|
1423
|
+
|
|
1424
|
+
export declare const MenuItem: ({ ariaLabel, badgeCount, badgeCountAriaLabel, children, childrenTheme, disabledTooltip, disabledTooltipType, hasCustomContent, hide, iconName, isButton, isDisabled, isIconRight, isOpen, isSelected, liTheme, linkTo, onClick, target, testId, title }: MenuItemPropsType) => JSX.Element;
|
|
1425
|
+
|
|
1426
|
+
declare interface MenuItemPropsType extends ComponentPropsType, DisabledTooltipPropsType {
|
|
1427
|
+
/** ARIA label */
|
|
1428
|
+
ariaLabel?: string;
|
|
1429
|
+
/** Show count in badge on top right corner od icon. */
|
|
1430
|
+
badgeCount?: number;
|
|
1431
|
+
/** ARIA label for inner Badge */
|
|
1432
|
+
badgeCountAriaLabel?: string;
|
|
1433
|
+
/** Children to be rendered in the main container. */
|
|
1434
|
+
children?: ReactNode | ReactNode[];
|
|
1435
|
+
/** Custom CSS styles for <li> element. */
|
|
1436
|
+
childrenTheme?: Theme;
|
|
1437
|
+
/** Use when you need to render your custom component instead of default ones. */
|
|
1438
|
+
hasCustomContent?: boolean;
|
|
1439
|
+
/** Hide MenuItem for specific breakpoint(s). For more info visit https://design.moneta.cz/?path=/docs/layout-grid--cols#hiding-some-elements */
|
|
1440
|
+
hide?: HideBreakpointsType;
|
|
1441
|
+
/** Name of Icon. */
|
|
1442
|
+
iconName?: IconNameType;
|
|
1443
|
+
/** Convert item to a button component. */
|
|
1444
|
+
isButton?: boolean;
|
|
1445
|
+
/** Flag whether menu item is disabled */
|
|
1446
|
+
isDisabled?: boolean;
|
|
1447
|
+
/** Flag if added icon should be on the right side of element. */
|
|
1448
|
+
isIconRight?: boolean;
|
|
1449
|
+
/** Flag idicates if item is opened. */
|
|
1450
|
+
isOpen?: boolean;
|
|
1451
|
+
/** Define selected item. */
|
|
1452
|
+
isSelected?: boolean;
|
|
1453
|
+
/** Link to another URL. */
|
|
1454
|
+
linkTo?: string;
|
|
1455
|
+
/** Custom CSS styles for li element. */
|
|
1456
|
+
liTheme?: Theme;
|
|
1457
|
+
/** Click event handler. */
|
|
1458
|
+
onClick?: (e: SyntheticEvent) => void;
|
|
1459
|
+
/** Name of item. */
|
|
1460
|
+
title?: string;
|
|
1461
|
+
/** Target for link outside app. */
|
|
1462
|
+
target?: TargetType;
|
|
1463
|
+
}
|
|
1464
|
+
|
|
1465
|
+
export declare const MenuList: ({ children, testId, theme }: MenuListPropsType) => JSX.Element;
|
|
1466
|
+
|
|
1467
|
+
export declare interface MenuListPropsType extends ComponentPropsType {
|
|
1468
|
+
/** Children to be rendered in the main container. */
|
|
1469
|
+
children?: ReactNode;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
export declare interface MenuPropsType extends ComponentPropsType {
|
|
1473
|
+
/** Aria label for nav */
|
|
1474
|
+
ariaLabel?: string;
|
|
1475
|
+
/** Children to be rendered in the main container. */
|
|
1476
|
+
children?: ReactNode | ReactNode[];
|
|
1477
|
+
/** Flag to indicate main menu */
|
|
1478
|
+
isMain?: boolean;
|
|
1479
|
+
/** Flag to indicate mobile menu */
|
|
1480
|
+
isMobile?: boolean;
|
|
1481
|
+
/** Flag to indicate secondary menu */
|
|
1482
|
+
isSecondary?: boolean;
|
|
1483
|
+
/** ARIA role for menu */
|
|
1484
|
+
role?: 'navigation' | 'menu' | 'menubar';
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
export declare const MOBILE_PANEL_WIDTH = 320;
|
|
1488
|
+
|
|
1489
|
+
export declare const MobilePanel: ({ children, close, closeOnClick, displayBreakpoint, identification, isFocused, isMain, isOpen, isScrolled, isSecondary, open, position, reference, setIsScrolled, testId, theme, toggle }: MobilePanelPropsType) => JSX.Element;
|
|
1490
|
+
|
|
1491
|
+
declare interface MobilePanelContentPropsType extends ComponentPropsType {
|
|
1492
|
+
/** Children to be rendered in the main container. */
|
|
1493
|
+
children: ReactNode | ReactNode[];
|
|
1494
|
+
/** Limit number of pixel you need to scroll content to get fixed header. */
|
|
1495
|
+
scrolledLimit?: number;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
declare interface MobilePanelContextType {
|
|
1499
|
+
/** Function for close action. */
|
|
1500
|
+
close: () => void;
|
|
1501
|
+
/** A flag whether panel should close on click */
|
|
1502
|
+
closeOnClick?: boolean;
|
|
1503
|
+
/** Unique identification of modal. */
|
|
1504
|
+
identification: string;
|
|
1505
|
+
/** If `true` mobile panel is focused for keyboard navigation. */
|
|
1506
|
+
isFocused: boolean;
|
|
1507
|
+
/** If `true` mobile panel is open. */
|
|
1508
|
+
isOpen: boolean;
|
|
1509
|
+
/** If `true` mobile panel content is scrolled. */
|
|
1510
|
+
isScrolled: boolean;
|
|
1511
|
+
/** Function for open action. */
|
|
1512
|
+
open: () => void;
|
|
1513
|
+
/** Internal callback to set isScrolled state. */
|
|
1514
|
+
setIsScrolled: (state: boolean) => void;
|
|
1515
|
+
/** Internal reference to modal. */
|
|
1516
|
+
reference: React.RefObject<HTMLDivElement>;
|
|
1517
|
+
/** Function for switching mobile panel open/close state. */
|
|
1518
|
+
toggle: () => void;
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
declare interface MobilePanelHeaderPropsType extends ComponentPropsType {
|
|
1522
|
+
/** Allow click event propagation */
|
|
1523
|
+
allowEventPropagation?: boolean;
|
|
1524
|
+
/** Children to be rendered in the main container. */
|
|
1525
|
+
children: ReactNode | ReactNode[];
|
|
1526
|
+
/** Image for header. */
|
|
1527
|
+
image?: ReactNode;
|
|
1528
|
+
/** ARIA label for Close button if it's used. */
|
|
1529
|
+
closeAria?: string;
|
|
1530
|
+
/** Flag if you want to display Close button in header. */
|
|
1531
|
+
hasClose?: boolean;
|
|
1532
|
+
/** Used for default title. */
|
|
1533
|
+
title?: ReactNode;
|
|
1534
|
+
/** Size of title. Used for it's basic purpose = defining page navigation priority. Please follow standard **[rules](https://www.w3.org/WAI/test-evaluate/preliminary/#headings)**. */
|
|
1535
|
+
titleSize?: TitleSize;
|
|
1536
|
+
/** Title visual size. Use this for matching title visual with desired design. */
|
|
1537
|
+
titleVisual?: TitleSize;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
export declare interface MobilePanelHookType {
|
|
1541
|
+
/** Function for display mobile panel. */
|
|
1542
|
+
close: () => void;
|
|
1543
|
+
Content: ({ children, scrolledLimit }: MobilePanelContentPropsType) => JSX.Element;
|
|
1544
|
+
Header: ({ children, closeAria, hasClose, image, title }: MobilePanelHeaderPropsType) => JSX.Element;
|
|
1545
|
+
/** Visibility flag of inner modal dialog. */
|
|
1546
|
+
isOpen: boolean;
|
|
1547
|
+
/** Fabric component. */
|
|
1548
|
+
MobilePanel: ({ children, isOpen, isScrolled, isSecondary, position }: MobilePanelPropsType) => JSX.Element;
|
|
1549
|
+
/** Internal props thats need to pe passed to <MobilePanel> component. */
|
|
1550
|
+
mobilePanelProps: MobilePanelContextType;
|
|
1551
|
+
/** Function for display mobile panel. */
|
|
1552
|
+
open: () => void;
|
|
1553
|
+
/** Function for switching mobile panel open/close state. */
|
|
1554
|
+
toggle: () => void;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
export declare interface MobilePanelPropsType extends ComponentPropsType, MobilePanelContextType {
|
|
1558
|
+
/** Children to be rendered in the main container. */
|
|
1559
|
+
children?: ReactNode | ReactNode[];
|
|
1560
|
+
/** Use specific breakpoint for component to render its content. Default is `MOBILE_DEVICES_BREAKPOINT` */
|
|
1561
|
+
displayBreakpoint?: BreakpointsType;
|
|
1562
|
+
/** Flag to identify mobilePanel used as main (for main menu etc.) */
|
|
1563
|
+
isMain?: boolean;
|
|
1564
|
+
/** Flag if you want to use MobilePanel in combination with `<Menu isSecondary>` */
|
|
1565
|
+
isSecondary?: boolean;
|
|
1566
|
+
/** Choose position of Panel. */
|
|
1567
|
+
position?: 'left' | 'right';
|
|
1568
|
+
}
|
|
1569
|
+
|
|
1570
|
+
export declare const Modal: ({ children, disableDefaultCloseBehavior, hide, identification, isFocused, isVisible, reference, show, size, testId, theme }: ModalPropsType) => JSX.Element;
|
|
1571
|
+
|
|
1572
|
+
export declare const ModalContent: ({ children, testId, theme }: ModalContentPropsType) => JSX.Element;
|
|
1573
|
+
|
|
1574
|
+
export declare interface ModalContentPropsType extends ComponentPropsType {
|
|
1575
|
+
/** Children to be rendered in the main container. */
|
|
1576
|
+
children: ReactNode | ReactNode[];
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
export declare const ModalContext: Context<ModalContextType>;
|
|
1580
|
+
|
|
1581
|
+
export declare interface ModalContextType {
|
|
1582
|
+
/** If `true`, modal can be closed only by action buttons. */
|
|
1583
|
+
disableDefaultCloseBehavior: boolean;
|
|
1584
|
+
/** Unique identification of modal. */
|
|
1585
|
+
identification: string;
|
|
1586
|
+
/** If `true` modal is focused for keyboard navigation. */
|
|
1587
|
+
isFocused: boolean;
|
|
1588
|
+
/** If `true` modal si visible. */
|
|
1589
|
+
isVisible: boolean;
|
|
1590
|
+
/** Callback for hide action. */
|
|
1591
|
+
hide: () => void;
|
|
1592
|
+
/** Callback for show action. */
|
|
1593
|
+
show: () => void;
|
|
1594
|
+
/** Internal reference to modal. */
|
|
1595
|
+
reference: React.RefObject<HTMLDivElement>;
|
|
1596
|
+
}
|
|
1597
|
+
|
|
1598
|
+
export declare const ModalDialog: ({ children, size, testId, theme }: ModalDialogPropsType) => JSX.Element;
|
|
1599
|
+
|
|
1600
|
+
export declare interface ModalDialogPropsType extends ComponentPropsType {
|
|
1601
|
+
/** Children to be rendered in the main container. */
|
|
1602
|
+
children: ReactNode;
|
|
1603
|
+
/** Optional size of modal content. */
|
|
1604
|
+
size?: 'small' | 'large';
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
export declare const ModalFooter: ({ children, testId, theme }: ModalFooterPropsType) => JSX.Element;
|
|
1608
|
+
|
|
1609
|
+
export declare interface ModalFooterPropsType extends ComponentPropsType {
|
|
1610
|
+
/** Children to be rendered in the main container. */
|
|
1611
|
+
children: ReactNode | ReactNode[];
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
export declare const ModalHeader: ({ closeText, isCloseHidden, isTitleHidden, testId, theme, title, titleSize, titleVisual }: ModalHeaderPropsType) => JSX.Element;
|
|
1615
|
+
|
|
1616
|
+
export declare interface ModalHeaderPropsType extends ComponentPropsType {
|
|
1617
|
+
/** Exit button text. */
|
|
1618
|
+
closeText: string | ReactElement;
|
|
1619
|
+
/** Flag to hide close button. */
|
|
1620
|
+
isCloseHidden?: boolean;
|
|
1621
|
+
/** Flag to hide title (only visually). */
|
|
1622
|
+
isTitleHidden?: boolean;
|
|
1623
|
+
/** Header of whole modal box. */
|
|
1624
|
+
title: string | ReactElement;
|
|
1625
|
+
/** Size of title. Used for it's basic purpose = defining page navigation priority. Please follow standard **[rules](https://www.w3.org/WAI/test-evaluate/preliminary/#headings)**. */
|
|
1626
|
+
titleSize?: TitleSize;
|
|
1627
|
+
/** Title visual size. Use this for matching title visual with desired design. */
|
|
1628
|
+
titleVisual?: TitleSize;
|
|
1629
|
+
}
|
|
1630
|
+
|
|
1631
|
+
export declare interface ModalHookType {
|
|
1632
|
+
/** Functions to hide modal dialog. */
|
|
1633
|
+
hide: () => void;
|
|
1634
|
+
/** Function for display modal dialog. */
|
|
1635
|
+
show: () => void;
|
|
1636
|
+
/** Visibility flag of inner modal dialog. */
|
|
1637
|
+
isVisible: boolean;
|
|
1638
|
+
/** Fabric component. */
|
|
1639
|
+
Modal: ({ children, size, theme }: ModalPropsType) => JSX.Element;
|
|
1640
|
+
/** Internal props thats need to pe passed to <Modal> component. */
|
|
1641
|
+
modalProps: ModalContextType;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
export declare interface ModalPropsType extends ComponentPropsType, ModalContextType {
|
|
1645
|
+
/** Content of modal dialog. */
|
|
1646
|
+
children: ReactNode;
|
|
1647
|
+
/** Optional size of modal content. */
|
|
1648
|
+
size?: 'small' | 'large';
|
|
1649
|
+
}
|
|
1650
|
+
|
|
1651
|
+
export declare const MonthInput: ({ ariaLabel, defaultValue, disabledTooltip, isDisabled, language, onChange, settings, theme, value }: MonthInputPropsType) => JSX.Element;
|
|
1652
|
+
|
|
1653
|
+
export declare interface MonthInputPropsType extends FormFieldType, ComponentPropsType {
|
|
1654
|
+
/** ARIA label for monthInput. */
|
|
1655
|
+
ariaLabel?: string;
|
|
1656
|
+
/** Children to be rendered in the main container. */
|
|
1657
|
+
children?: ReactNode;
|
|
1658
|
+
/** Sets initial Date */
|
|
1659
|
+
defaultValue?: string;
|
|
1660
|
+
/** Disabled the whole MonthInput */
|
|
1661
|
+
isDisabled?: boolean;
|
|
1662
|
+
/** Language for localization of the date picker. */
|
|
1663
|
+
language?: 'cs' | 'en';
|
|
1664
|
+
/** Custom settings of Flatpickr. For more info visit: https://flatpickr.js.org/options/ */
|
|
1665
|
+
settings?: flatpickr.Options.Options;
|
|
1666
|
+
/** onChange handler for setting the value */
|
|
1667
|
+
onChange: (value: Date[] | Date | undefined | string) => void;
|
|
1668
|
+
/** Current picker value */
|
|
1669
|
+
value: Date;
|
|
1670
|
+
}
|
|
1671
|
+
|
|
1672
|
+
export declare const noop: () => void;
|
|
1673
|
+
|
|
1674
|
+
export declare interface NumberMaskType {
|
|
1675
|
+
allowNegative?: boolean;
|
|
1676
|
+
allowLeadingZeroes?: boolean;
|
|
1677
|
+
decimalPlaces?: number;
|
|
1678
|
+
decimalSeparator?: string;
|
|
1679
|
+
integerPlaces?: number;
|
|
1680
|
+
thousandSeparator?: string;
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
export declare const NumChange: ({ amountChange, decreasing, increasing, locale, maximumFractionDigits, minimumFractionDigits, size, testId, theme, unitAfter, unitBefore }: NumChangePropsType) => JSX.Element;
|
|
1684
|
+
|
|
1685
|
+
export declare interface NumChangePropsType extends ComponentPropsType {
|
|
1686
|
+
/** Amount of the numChange */
|
|
1687
|
+
amountChange?: number;
|
|
1688
|
+
/** Decreasing trend of the numChange */
|
|
1689
|
+
decreasing?: boolean;
|
|
1690
|
+
/** Increasing trend of the numChange */
|
|
1691
|
+
increasing?: boolean;
|
|
1692
|
+
/** Specify custom locale variant for number formatting if needed. Use Unicode locale identifier. For more info see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat */
|
|
1693
|
+
locale?: string;
|
|
1694
|
+
/** The maximum number of fraction digits to use. Possible values are from 0 to 20; the default is the larger of minimumFractionDigits and 2; */
|
|
1695
|
+
maximumFractionDigits?: number;
|
|
1696
|
+
/** The minimum number of fraction digits to use. Possible values are from 0 to 20; the default is 0; */
|
|
1697
|
+
minimumFractionDigits?: number;
|
|
1698
|
+
/** Size of the numChange component */
|
|
1699
|
+
size?: NumChangeSizeType;
|
|
1700
|
+
/** Specify custom unit identifier after `amount` value. */
|
|
1701
|
+
unitAfter?: string;
|
|
1702
|
+
/** Specify custom unit identifier before `amount` value. */
|
|
1703
|
+
unitBefore?: string;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
export declare type NumChangeSizeType = 'small' | 'large' | 'xLarge' | 'xxLarge';
|
|
1707
|
+
|
|
1708
|
+
export declare const parseDate: (value: string | Date) => Date | undefined;
|
|
1709
|
+
|
|
1710
|
+
export declare const parseDecimalValue: (value: string, thousandSeparator: string, decimalSeparator: string) => number | null;
|
|
1711
|
+
|
|
1712
|
+
export declare const parseIntValue: (value: string, thousandSeparator: string, allowLeadingZeros?: boolean) => number | string | null;
|
|
1713
|
+
|
|
1714
|
+
export declare const parseMonthDate: (language: 'cs' | 'en', value?: string | undefined) => Date | undefined;
|
|
1715
|
+
|
|
1716
|
+
/**
|
|
1717
|
+
* @deprecated This component is **deprecated** please use **Input2**
|
|
1718
|
+
*/
|
|
1719
|
+
export declare const PasswordInput: ({ hideLabel, name, showLabel, value, ...props }: PasswordInputPropsType) => JSX.Element;
|
|
1720
|
+
|
|
1721
|
+
declare interface PasswordInputPropsType extends FormFieldType {
|
|
1722
|
+
hideLabel?: string;
|
|
1723
|
+
showLabel?: string;
|
|
1724
|
+
value: string;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
export declare const PersonCount: ({ count, fewPersonsLabel, manyPersonsLabel, meLabel, onChange, onePersonLabel, selectedCount, testId, theme }: PersonCountPropsType) => JSX.Element;
|
|
1728
|
+
|
|
1729
|
+
export declare interface PersonCountPropsType extends ComponentPropsType {
|
|
1730
|
+
count: number;
|
|
1731
|
+
selectedCount?: number;
|
|
1732
|
+
onChange: (value: number) => void;
|
|
1733
|
+
meLabel: ReactElement;
|
|
1734
|
+
onePersonLabel: ReactElement;
|
|
1735
|
+
fewPersonsLabel: ReactElement;
|
|
1736
|
+
manyPersonsLabel: ReactElement;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
export declare const PieChartExtended: ({ data, graphContent, graphIcon, theme }: PieChartExtendedPropsType) => JSX.Element;
|
|
1740
|
+
|
|
1741
|
+
export declare interface PieChartExtendedPropsType extends ComponentPropsType {
|
|
1742
|
+
/** Data for the interpretation */
|
|
1743
|
+
data: Data_2[];
|
|
1744
|
+
/** Custom content in the middle of the chart */
|
|
1745
|
+
graphContent?: ReactNode;
|
|
1746
|
+
/** Icon in the middle of the chart */
|
|
1747
|
+
graphIcon?: ReactNode;
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
export declare const Pills: ({ ariaLabel, initialPill, onChange, pills, testId, theme }: PillsPropsType) => JSX.Element;
|
|
1751
|
+
|
|
1752
|
+
export declare interface PillsPropsType extends ComponentPropsType {
|
|
1753
|
+
/** ARIA label for pill */
|
|
1754
|
+
ariaLabel?: string;
|
|
1755
|
+
/** Value of pill that should be selected by default */
|
|
1756
|
+
initialPill?: string;
|
|
1757
|
+
/** Callback for changing pill. */
|
|
1758
|
+
onChange: (pill: string) => void;
|
|
1759
|
+
/** Array of pills */
|
|
1760
|
+
pills: PillType[];
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
export declare interface PillType extends DisabledTooltipPropsType {
|
|
1764
|
+
isDisabled?: boolean;
|
|
1765
|
+
label: string;
|
|
1766
|
+
value: string;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
declare interface Props extends DisabledTooltipPropsType {
|
|
1770
|
+
verticalOffset?: number;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
export declare const Radio: ({ name, value, ...rest }: RadioPropsType) => JSX.Element;
|
|
1774
|
+
|
|
1775
|
+
export declare const Radio2: ({ allowEventPropagation, disabledTooltip, disabledTooltipType, error, help, isDisabled, isInRow, isLabelTitle, isTitleHidden, items, label, labelTooltip, name, onChange, testId, theme, value }: Radio2PropsType) => JSX.Element;
|
|
1776
|
+
|
|
1777
|
+
export declare interface Radio2PropsType extends FormField2PropsType {
|
|
1778
|
+
items: RadioItem[];
|
|
1779
|
+
isInRow?: boolean;
|
|
1780
|
+
/** @deprecated please use empty label */
|
|
1781
|
+
isTitleHidden?: boolean;
|
|
1782
|
+
/** for backward compatibility is default value TRUE will be removed in the future */
|
|
1783
|
+
isLabelTitle?: boolean;
|
|
1784
|
+
}
|
|
1785
|
+
|
|
1786
|
+
export declare const RadioControl: (props: FormControlType) => JSX.Element;
|
|
1787
|
+
|
|
1788
|
+
export declare const RadioGroup: ({ error, radioControl: RadioControl, items, label, labelComponent: LabelComponent, isRequired, isDisabled, groupProps, selectedValue, ...rest }: RadioGroupPropsType) => JSX.Element;
|
|
1789
|
+
|
|
1790
|
+
declare interface RadioGroupPropsType {
|
|
1791
|
+
/** Children to be rendered in the main container. */
|
|
1792
|
+
children?: ReactNode;
|
|
1793
|
+
/** Class name for root. */
|
|
1794
|
+
className?: string;
|
|
1795
|
+
/** Is disabled?. */
|
|
1796
|
+
isDisabled?: boolean;
|
|
1797
|
+
/** Error component to be rendered under radios */
|
|
1798
|
+
error?: ReactElement;
|
|
1799
|
+
/** Additional props to pass to the FormGroup */
|
|
1800
|
+
groupProps?: Record<string, unknown>;
|
|
1801
|
+
/** Array of strings or numbers to be rendered */
|
|
1802
|
+
items: ItemType_2[];
|
|
1803
|
+
/** Label of radio group component */
|
|
1804
|
+
label?: ReactElement;
|
|
1805
|
+
/** Container for label */
|
|
1806
|
+
labelComponent?: FunctionComponent;
|
|
1807
|
+
radioControl?: FunctionComponent;
|
|
1808
|
+
/** Prop to show * symbol after label */
|
|
1809
|
+
isRequired?: boolean;
|
|
1810
|
+
/** Actual selected value of radio group component */
|
|
1811
|
+
selectedValue: string;
|
|
1812
|
+
}
|
|
1813
|
+
|
|
1814
|
+
export declare type RadioItem = {
|
|
1815
|
+
label: string;
|
|
1816
|
+
value: RadioItemValue;
|
|
1817
|
+
disabled?: boolean;
|
|
1818
|
+
};
|
|
1819
|
+
|
|
1820
|
+
declare type RadioItemValue = string | number | boolean;
|
|
1821
|
+
|
|
1822
|
+
export declare interface RadioPropsType {
|
|
1823
|
+
name: string;
|
|
1824
|
+
value?: boolean;
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
export declare const Row: ({ children, cols, onClick, testId, theme, ...rest }: RowPropsType) => JSX.Element;
|
|
1828
|
+
|
|
1829
|
+
export declare interface RowPropsType extends ComponentPropsType {
|
|
1830
|
+
/** Children to be rendered in the main container. */
|
|
1831
|
+
children?: React_2.ReactNode;
|
|
1832
|
+
/** Number of columns side-by-side in one horizontal row */
|
|
1833
|
+
cols?: ColSizeProp;
|
|
1834
|
+
/** Column width in md breakpoint */
|
|
1835
|
+
md?: ColSizeProp;
|
|
1836
|
+
/** Column width in lg breakpoint */
|
|
1837
|
+
lg?: ColSizeProp;
|
|
1838
|
+
/** Column width in xl breakpoint */
|
|
1839
|
+
xl?: ColSizeProp;
|
|
1840
|
+
/** Column width in xxl breakpoint */
|
|
1841
|
+
xxl?: ColSizeProp;
|
|
1842
|
+
/** onClick event. */
|
|
1843
|
+
onClick?: () => void;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
export declare const SearchInput: (props: FormFieldType) => JSX.Element;
|
|
1847
|
+
|
|
1848
|
+
/**
|
|
1849
|
+
* @deprecated This component is **deprecated** please use **Select2**
|
|
1850
|
+
*/
|
|
1851
|
+
export declare const Select: ({ hasArrowIcon, ...props }: SelectPropsType) => JSX.Element;
|
|
1852
|
+
|
|
1853
|
+
export declare const Select2: ({ disabledTooltip, displayDetails, dropdownTheme, emptyValueLabel, error, hasFullWidthOptions, help, isDisabled, items, label, labelTooltip, name, onBlur, onChange, onFocus, placeholder, testId, theme, value }: Select2PropsType) => JSX.Element;
|
|
1854
|
+
|
|
1855
|
+
export declare const Select2CategorisedOptions: ({ isAutocomplete }: Select2CategorisedOptionsPropsType) => JSX.Element;
|
|
1856
|
+
|
|
1857
|
+
export declare interface Select2CategorisedOptionsPropsType {
|
|
1858
|
+
isAutocomplete?: boolean;
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
export declare const Select2Context: Context<Select2ContextType>;
|
|
1862
|
+
|
|
1863
|
+
declare interface Select2ContextType {
|
|
1864
|
+
emptyValueLabel?: string;
|
|
1865
|
+
focusedCategoryIndex?: number;
|
|
1866
|
+
focusedItemIndex?: number;
|
|
1867
|
+
items: ItemType[] | CategorisedItemType[] | unknown[];
|
|
1868
|
+
name: string;
|
|
1869
|
+
onBlur?: () => void;
|
|
1870
|
+
optionClick: (item: ItemType) => void;
|
|
1871
|
+
emptyOptionClick?: () => void;
|
|
1872
|
+
optionKeyPress?: (event: React.KeyboardEvent<HTMLUListElement>) => void;
|
|
1873
|
+
setFocusedCategoryIndex?: (index: number) => void;
|
|
1874
|
+
setFocusedItemIndex: (index: number, categoryIndex?: number) => void;
|
|
1875
|
+
setValue?: (value: string) => void;
|
|
1876
|
+
value?: string;
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
export declare const Select2Options: ({ isAutocomplete }: Select2OptionsPropsType) => JSX.Element;
|
|
1880
|
+
|
|
1881
|
+
export declare interface Select2OptionsPropsType {
|
|
1882
|
+
isAutocomplete?: boolean;
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
export declare interface Select2PropsType extends FormField2PropsType {
|
|
1886
|
+
/** Displays additional information for selected option. (perex, amount) */
|
|
1887
|
+
displayDetails?: boolean;
|
|
1888
|
+
/** Custom theme for dropdown items. */
|
|
1889
|
+
dropdownTheme?: Theme;
|
|
1890
|
+
/** label of empty value */
|
|
1891
|
+
emptyValueLabel?: string;
|
|
1892
|
+
/** Sets if list of options has same width as select element. */
|
|
1893
|
+
hasFullWidthOptions?: boolean;
|
|
1894
|
+
/** List of options to select. */
|
|
1895
|
+
items: ItemType[] | CategorisedItemType[];
|
|
1896
|
+
}
|
|
1897
|
+
|
|
1898
|
+
export declare const SelectControl: React_2.ForwardRefExoticComponent<SelectControlPropsType & React_2.RefAttributes<unknown>>;
|
|
1899
|
+
|
|
1900
|
+
export declare const SelectControlAutocomplete: React_2.ForwardRefExoticComponent<SelectControlAutocompletePropsType & React_2.RefAttributes<HTMLDivElement>>;
|
|
1901
|
+
|
|
1902
|
+
export declare interface SelectControlAutocompletePropsType extends SelectControlStaticPropsType {
|
|
1903
|
+
/** Callback for creatable label text. */
|
|
1904
|
+
getCreatableLabel?: (value: string) => string;
|
|
1905
|
+
/** Flag for enabling user's input in the autocomplete text input. */
|
|
1906
|
+
hasNewValueEnabled?: boolean;
|
|
1907
|
+
/** Function that validates, whether to show create new item option. */
|
|
1908
|
+
isValidNewOption?: (value: string) => boolean;
|
|
1909
|
+
/** Callable when clicked on newly created item. */
|
|
1910
|
+
onCreateItem?: (value: string) => void;
|
|
1911
|
+
/** Callable when autocomplete input value is changed for external loading. */
|
|
1912
|
+
onInputChange?: (val: string | null) => void;
|
|
1913
|
+
/** OnBlur will not reset value. */
|
|
1914
|
+
hasAlwaysValue?: boolean;
|
|
1915
|
+
/** onBlur handler */
|
|
1916
|
+
onBlur?: () => void;
|
|
1917
|
+
}
|
|
1918
|
+
|
|
1919
|
+
export declare interface SelectControlPropsType extends FormControlType {
|
|
1920
|
+
/** Is used for rendering autocomplete select element. */
|
|
1921
|
+
hasAutocomplete?: boolean;
|
|
1922
|
+
/** Disabled attribute of the element. */
|
|
1923
|
+
disabled?: boolean;
|
|
1924
|
+
/** Items to be rendered/selected in the main select container. */
|
|
1925
|
+
items: SelectItemGroupType[] | SelectItemType[];
|
|
1926
|
+
/** Value of the form control. */
|
|
1927
|
+
value?: string;
|
|
1928
|
+
}
|
|
1929
|
+
|
|
1930
|
+
export declare const SelectControlStatic: React_2.ForwardRefExoticComponent<SelectControlStaticPropsType & React_2.RefAttributes<HTMLDivElement>>;
|
|
1931
|
+
|
|
1932
|
+
export declare interface SelectControlStaticPropsType extends ComponentPropsType {
|
|
1933
|
+
/** ARIA role for the select. */
|
|
1934
|
+
ariaLabel?: string;
|
|
1935
|
+
disabled?: boolean;
|
|
1936
|
+
hasAmountDisplayed?: boolean;
|
|
1937
|
+
hasWiderMenu?: boolean;
|
|
1938
|
+
id?: string;
|
|
1939
|
+
items: SelectItemGroupType[];
|
|
1940
|
+
name: string;
|
|
1941
|
+
onChange?: (val: string | null) => void;
|
|
1942
|
+
onBlur?: () => void;
|
|
1943
|
+
placeholder?: string;
|
|
1944
|
+
statics?: SelectItemType[];
|
|
1945
|
+
value?: string;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
export declare const SelectedOption: ({ amount, displayDetails, iconBackground, iconName, label, perex }: SelectedOptionPropsType) => JSX.Element;
|
|
1949
|
+
|
|
1950
|
+
export declare interface SelectedOptionPropsType {
|
|
1951
|
+
/** Optional value for withAmount variant. */
|
|
1952
|
+
amount?: ReactNode;
|
|
1953
|
+
/** Color of icon background. */
|
|
1954
|
+
iconBackground?: BackgroundColorType;
|
|
1955
|
+
/** Icon name/type enum type. */
|
|
1956
|
+
iconName?: IconNameType;
|
|
1957
|
+
/** Label of list option. */
|
|
1958
|
+
label: string;
|
|
1959
|
+
/** Optional perex for two line variant. */
|
|
1960
|
+
perex?: ReactNode;
|
|
1961
|
+
displayDetails?: boolean;
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
export declare const SelectItem: ({ amount, currency, description, hasAmountDisplayed, icon, label }: SelectItemType) => JSX.Element;
|
|
1965
|
+
|
|
1966
|
+
export declare interface SelectItemGroupType {
|
|
1967
|
+
key: string;
|
|
1968
|
+
name?: string;
|
|
1969
|
+
items: SelectItemType[];
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
export declare interface SelectItemIconType {
|
|
1973
|
+
name: IconNameType;
|
|
1974
|
+
backgroundColor?: BackgroundColorType;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
export declare interface SelectItemType {
|
|
1978
|
+
amount?: string;
|
|
1979
|
+
currency?: string;
|
|
1980
|
+
description?: string;
|
|
1981
|
+
hasAmountDisplayed?: boolean;
|
|
1982
|
+
icon?: SelectItemIconType;
|
|
1983
|
+
index?: number;
|
|
1984
|
+
isDisabled?: boolean;
|
|
1985
|
+
label: string;
|
|
1986
|
+
value: string;
|
|
1987
|
+
}
|
|
1988
|
+
|
|
1989
|
+
export declare const SelectMenu: ({ children, getMenuProps, indexedGroupedItems, isDisabled, isOpen, isWider, renderItems, testId, theme }: SelectMenuPropsType) => JSX.Element;
|
|
1990
|
+
|
|
1991
|
+
declare interface SelectMenuPropsType extends ComponentPropsType {
|
|
1992
|
+
/** Callback for creatable label text. */
|
|
1993
|
+
children?: ReactNode;
|
|
1994
|
+
/** Callback for creatable label text. */
|
|
1995
|
+
getMenuProps: (options?: GetMenuPropsOptions, otherOptions?: GetPropsCommonOptions) => void;
|
|
1996
|
+
/** Callback for creatable label text. */
|
|
1997
|
+
indexedGroupedItems: SelectItemGroupType[];
|
|
1998
|
+
/** Callback for creatable label text. */
|
|
1999
|
+
isDisabled: boolean;
|
|
2000
|
+
/** Callback for creatable label text. */
|
|
2001
|
+
isOpen: boolean;
|
|
2002
|
+
/** Callback for creatable label text. */
|
|
2003
|
+
isWider: boolean;
|
|
2004
|
+
/** Callback for creatable label text. */
|
|
2005
|
+
renderItems: (items: SelectItemType[]) => ReactNode;
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
export declare const SelectOption: ({ children, isActive, isCreatable, isDisabled, isSelected, theme, ...rest }: SelectOptionPropsType) => JSX.Element;
|
|
2009
|
+
|
|
2010
|
+
export declare interface SelectOptionPropsType {
|
|
2011
|
+
/** Children to be rendered in the main container. */
|
|
2012
|
+
children?: ReactNode;
|
|
2013
|
+
/** Option currently active boolean. */
|
|
2014
|
+
isActive?: boolean;
|
|
2015
|
+
/** A different set of style for this one. */
|
|
2016
|
+
isCreatable?: boolean;
|
|
2017
|
+
/** Option disabled (non-selectable). */
|
|
2018
|
+
isDisabled?: boolean;
|
|
2019
|
+
/** Option currently selected in the Select component boolean. */
|
|
2020
|
+
isSelected?: boolean;
|
|
2021
|
+
/** Class name for root. */
|
|
2022
|
+
theme?: Theme;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
export declare interface SelectPropsType extends FormFieldType {
|
|
2026
|
+
/** Is used for rendering autocomplete select element. */
|
|
2027
|
+
hasAutocomplete?: boolean;
|
|
2028
|
+
/** Flag whether display arrow icon */
|
|
2029
|
+
hasArrowIcon?: boolean;
|
|
2030
|
+
/** Items to be rendered/selected in the main select container. */
|
|
2031
|
+
items: SelectItemGroupType[] | SelectItemType[];
|
|
2032
|
+
/** OnBlur will not reset value. */
|
|
2033
|
+
hasAlwaysValue?: boolean;
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
export declare type ShadowSizeType = 'small' | 'medium' | 'large' | 'no';
|
|
2037
|
+
|
|
2038
|
+
export declare const Sidebar: ({ children, testId, theme }: SidebarPropsType) => JSX.Element;
|
|
2039
|
+
|
|
2040
|
+
export declare interface SidebarPropsType extends ComponentPropsType {
|
|
2041
|
+
/** Children to be rendered in the main container. */
|
|
2042
|
+
children?: ReactNode;
|
|
2043
|
+
}
|
|
2044
|
+
|
|
2045
|
+
export declare type SizeType = 'large' | 'small';
|
|
2046
|
+
|
|
2047
|
+
export declare class Slider extends Component<SliderPropsType, State> {
|
|
2048
|
+
static defaultProps: {
|
|
2049
|
+
hideLabels: boolean;
|
|
2050
|
+
};
|
|
2051
|
+
state: State;
|
|
2052
|
+
componentDidMount(): void;
|
|
2053
|
+
static getDerivedStateFromProps(nextProps: SliderPropsType): Record<string, number> | null;
|
|
2054
|
+
onChange: (event: Event | SyntheticEvent, customValue?: number | undefined) => void;
|
|
2055
|
+
onDragStart: (event: SyntheticEvent<HTMLDivElement>, touch: boolean) => void;
|
|
2056
|
+
onDragStop: (event: Event) => void;
|
|
2057
|
+
onDragUpdate: (event: Event) => void;
|
|
2058
|
+
getValueFromClientOffset: (min?: number | undefined, max?: number | undefined, step?: number | undefined, steps?: number[] | undefined, offset: number) => number;
|
|
2059
|
+
getSliderStartCoordinate: () => number;
|
|
2060
|
+
getSliderEndCoordinate: () => number;
|
|
2061
|
+
getSliderLength: () => number;
|
|
2062
|
+
getValueFromDragEvent: (event: Event | SyntheticEvent) => number;
|
|
2063
|
+
getValueFromKeyboardEvent: (event: KeyboardEvent_2) => number | null | undefined;
|
|
2064
|
+
addEventListeners: (touch: boolean) => void;
|
|
2065
|
+
removeEventListeners: () => void;
|
|
2066
|
+
slider: HTMLDivElement | null;
|
|
2067
|
+
props: SliderPropsType;
|
|
2068
|
+
handleBlur: (event: SyntheticEvent<HTMLDivElement>) => void;
|
|
2069
|
+
handleFocus: (event: SyntheticEvent<HTMLDivElement>) => void;
|
|
2070
|
+
handleKeyDown: (event: KeyboardEvent_2<HTMLDivElement>) => void;
|
|
2071
|
+
handleKeyPress: (event: SyntheticEvent<HTMLDivElement>) => void;
|
|
2072
|
+
handleKeyUp: (event: SyntheticEvent<HTMLDivElement>) => void;
|
|
2073
|
+
handleMouseDown: (event: SyntheticEvent<HTMLDivElement>) => void;
|
|
2074
|
+
handleTouchStart: (event: SyntheticEvent<HTMLDivElement>) => void;
|
|
2075
|
+
render(): JSX.Element;
|
|
2076
|
+
}
|
|
2077
|
+
|
|
2078
|
+
export declare interface SliderPropsType extends ComponentPropsType, DisabledTooltipPropsType {
|
|
2079
|
+
/** Disable slider */
|
|
2080
|
+
isDisabled?: boolean;
|
|
2081
|
+
/** Maximal value of slider. */
|
|
2082
|
+
max?: number;
|
|
2083
|
+
/** Min value label. */
|
|
2084
|
+
minLabel?: ReactElement;
|
|
2085
|
+
/** Max value label. */
|
|
2086
|
+
maxLabel?: ReactElement;
|
|
2087
|
+
/** Minimal value of slider. */
|
|
2088
|
+
min?: number;
|
|
2089
|
+
/** Handler which is fired when the slider loses focus. */
|
|
2090
|
+
onBlur?: (event?: SyntheticEvent, value?: number) => void;
|
|
2091
|
+
/** Handler which is fired when the value of the slider changes. */
|
|
2092
|
+
onChange?: (event?: Event | SyntheticEvent, value?: number) => void;
|
|
2093
|
+
/** Handler which is fired when the slider handle has started moving. */
|
|
2094
|
+
onDragStart?: (event?: SyntheticEvent, value?: number) => void;
|
|
2095
|
+
/** Handler which is fired when the slider handle has stopped moving. */
|
|
2096
|
+
onDragStop?: (event?: Event, value?: number) => void;
|
|
2097
|
+
/** Handler which is fired when the slider gains focus. */
|
|
2098
|
+
onFocus?: (event?: SyntheticEvent, value?: number) => void;
|
|
2099
|
+
/** Handler which is fired when a keyboard key is pressed. */
|
|
2100
|
+
onKeyDown?: (event?: SyntheticEvent, value?: number) => void;
|
|
2101
|
+
/** Handler which is fired when a keyboard key is pressed. */
|
|
2102
|
+
onKeyPress?: (event?: SyntheticEvent, value?: number) => void;
|
|
2103
|
+
/** Handler which is fired when a keyboard key is released. */
|
|
2104
|
+
onKeyUp?: (event?: SyntheticEvent, value?: number) => void;
|
|
2105
|
+
/** Lowest step taken when moving slider. */
|
|
2106
|
+
step?: number;
|
|
2107
|
+
/** Array of custom steps with sorted linear values (otherwise use STEP+MIN+MAX params) */
|
|
2108
|
+
steps?: number[];
|
|
2109
|
+
/** Actual value of slider */
|
|
2110
|
+
value: number;
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
declare type State = {
|
|
2114
|
+
dragging: boolean;
|
|
2115
|
+
percentage: number;
|
|
2116
|
+
};
|
|
2117
|
+
|
|
2118
|
+
export declare const Stepper: ({ current: { isLoading, step, substep }, stepTitleSize, stepTitleVisual, steps, testId, theme }: StepperPropsType) => JSX.Element;
|
|
2119
|
+
|
|
2120
|
+
export declare interface StepperPropsType extends ComponentPropsType {
|
|
2121
|
+
current: {
|
|
2122
|
+
step: number;
|
|
2123
|
+
substep?: number;
|
|
2124
|
+
isLoading?: boolean;
|
|
2125
|
+
};
|
|
2126
|
+
steps: StepType[];
|
|
2127
|
+
stepTitleSize?: TitleSize;
|
|
2128
|
+
stepTitleVisual?: TitleSize;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
declare type StepType = {
|
|
2132
|
+
label: ReactNode;
|
|
2133
|
+
substeps?: ReactElement[];
|
|
2134
|
+
};
|
|
2135
|
+
|
|
2136
|
+
export declare const stripDiacritics: (value: string) => string;
|
|
2137
|
+
|
|
2138
|
+
export declare const SubMenu: ({ ariaLabel, children, isOpen, testId, theme }: SubMenuPropsType) => JSX.Element;
|
|
2139
|
+
|
|
2140
|
+
export declare const SubMenuItem: ({ children, onClick, testId, theme }: SubMenuItemPropsType) => JSX.Element;
|
|
2141
|
+
|
|
2142
|
+
declare interface SubMenuItemPropsType extends ComponentPropsType {
|
|
2143
|
+
/** Children to be rendered in the main container. */
|
|
2144
|
+
children?: ReactNode | ReactNode[];
|
|
2145
|
+
/** Click event handler. */
|
|
2146
|
+
onClick?: (e: SyntheticEvent) => void;
|
|
2147
|
+
}
|
|
2148
|
+
|
|
2149
|
+
export declare interface SubMenuPropsType extends ComponentPropsType {
|
|
2150
|
+
/** Children to be rendered in the main container. */
|
|
2151
|
+
children?: ReactNode | ReactNode[];
|
|
2152
|
+
/** ARIA role for menu */
|
|
2153
|
+
ariaLabel?: string;
|
|
2154
|
+
/** Flag if SubMenu is visible */
|
|
2155
|
+
isOpen?: boolean;
|
|
2156
|
+
}
|
|
2157
|
+
|
|
2158
|
+
export declare const TabListItem: ({ countLimit, hasNotification, notificationCount, value }: TabListItemPropsType) => JSX.Element;
|
|
2159
|
+
|
|
2160
|
+
export declare interface TabListItemPropsType extends DisabledTooltipPropsType {
|
|
2161
|
+
/** Value of tab list. */
|
|
2162
|
+
value: ReactNode;
|
|
2163
|
+
/** Flag if tab has some notification. Shows red dot. */
|
|
2164
|
+
hasNotification?: boolean;
|
|
2165
|
+
/** Number of notifications shown in red circle. */
|
|
2166
|
+
notificationCount?: number;
|
|
2167
|
+
/** Limit for maximum notification count. */
|
|
2168
|
+
countLimit?: number;
|
|
2169
|
+
/** FLag if tab is disabled. */
|
|
2170
|
+
isDisabled?: boolean;
|
|
2171
|
+
}
|
|
2172
|
+
|
|
2173
|
+
export declare const Tabs: ({ active, ariaLabel, closeTabsBarOnOutsideClick, contents, contentTheme, dropdownPlacement, moreLabel, onChange, tabs, tabsLimit, testId, theme }: TabsPropsType) => JSX.Element;
|
|
2174
|
+
|
|
2175
|
+
export declare const TabsBar: ({ closeTabsBarOnOutsideClick, dropdownPlacement, moreLabel }: TabsBarType) => JSX.Element;
|
|
2176
|
+
|
|
2177
|
+
export declare interface TabsBarType {
|
|
2178
|
+
/** A flag whether close TabsBar on outside click */
|
|
2179
|
+
closeTabsBarOnOutsideClick?: boolean;
|
|
2180
|
+
dropdownPlacement?: DropdownPlacement;
|
|
2181
|
+
/** Label for "more" tab shown after tabs count overcome breakpoint limit. */
|
|
2182
|
+
moreLabel?: ReactElement | string;
|
|
2183
|
+
}
|
|
2184
|
+
|
|
2185
|
+
export declare const TabsContext: Context<TabsContextType>;
|
|
2186
|
+
|
|
2187
|
+
declare interface TabsContextType {
|
|
2188
|
+
/** Active item index. */
|
|
2189
|
+
activeItem: number;
|
|
2190
|
+
/** Unique identification of modal. */
|
|
2191
|
+
identification: string;
|
|
2192
|
+
/** Internal function to set activeItem. */
|
|
2193
|
+
setActiveItem: (index: number) => void;
|
|
2194
|
+
/** Limit number of tabs displayed for desktop */
|
|
2195
|
+
tabsLimit: number;
|
|
2196
|
+
/** Array of items for top bar */
|
|
2197
|
+
tabs: TabListItemPropsType[];
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
export declare interface TabsPropsType extends ComponentPropsType, TabsBarType {
|
|
2201
|
+
/** Index of item in tabs/contents that should be visible by default */
|
|
2202
|
+
active?: number;
|
|
2203
|
+
/** ARIA label for tabs */
|
|
2204
|
+
ariaLabel?: string;
|
|
2205
|
+
/** A flag whether close TabsBar on outside click */
|
|
2206
|
+
closeTabsBarOnOutsideClick?: boolean;
|
|
2207
|
+
/** Array of items for content */
|
|
2208
|
+
contents: ReactNode[];
|
|
2209
|
+
/** Theme for contents. */
|
|
2210
|
+
contentTheme?: Theme;
|
|
2211
|
+
dropdownPlacement?: DropdownPlacement;
|
|
2212
|
+
/** Callback for changing tab index after switching a tab. */
|
|
2213
|
+
onChange?: (oldTabIndex: number, newTabIndex: number) => void;
|
|
2214
|
+
/** Array of items for top bar */
|
|
2215
|
+
tabs: TabListItemPropsType[];
|
|
2216
|
+
/** Limit number of tabs displayed for desktop breakpoints. (Mobile breakpoints has different type of tabs.) */
|
|
2217
|
+
tabsLimit?: {
|
|
2218
|
+
lg?: number;
|
|
2219
|
+
xl?: number;
|
|
2220
|
+
xxl?: number;
|
|
2221
|
+
};
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
export declare const Tag: ({ background, children, iconBackground, iconName, testId, theme }: TagPropsType) => JSX.Element;
|
|
2225
|
+
|
|
2226
|
+
export declare interface TagPropsType extends ComponentPropsType {
|
|
2227
|
+
/** Color of tag background - any color from palette-light */
|
|
2228
|
+
background?: BackgroundColorType;
|
|
2229
|
+
/** Tag icon name */
|
|
2230
|
+
iconName?: IconNameType;
|
|
2231
|
+
/** Tag icon background color */
|
|
2232
|
+
iconBackground?: BackgroundColorType;
|
|
2233
|
+
/** Tag content (text) */
|
|
2234
|
+
children: ReactNode;
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
export declare type TargetType = '_blank' | '_parent' | '_self' | '_top';
|
|
2238
|
+
|
|
2239
|
+
declare const Text_2: ({ children, component: Component, isTextCenter, isTextRight, size, testId, theme, type, weight, ...rest }: TextPropsType) => JSX.Element;
|
|
2240
|
+
export { Text_2 as Text }
|
|
2241
|
+
|
|
2242
|
+
/**
|
|
2243
|
+
* @deprecated This component is **deprecated** please use **Textarea2**
|
|
2244
|
+
*/
|
|
2245
|
+
export declare const Textarea: (props: FormFieldType) => JSX.Element;
|
|
2246
|
+
|
|
2247
|
+
export declare const Textarea2: ({ allowEventPropagation, autofocus, children, disabledTooltip, error, height, help, isDisabled, label, labelTooltip, maxCharCounter, name, onBlur, onChange, onClick, onFocus, onPaste, placeholder, testId, theme, value: outerValue }: Textarea2PropsType) => JSX.Element;
|
|
2248
|
+
|
|
2249
|
+
export declare interface Textarea2PropsType extends FormField2PropsType {
|
|
2250
|
+
/** If `true` textarea will be focused after render. */
|
|
2251
|
+
autofocus?: boolean;
|
|
2252
|
+
/** Children to be rendered in the main container. */
|
|
2253
|
+
children?: ReactNode;
|
|
2254
|
+
/** Custom textarea height in px. */
|
|
2255
|
+
height?: number;
|
|
2256
|
+
}
|
|
2257
|
+
|
|
2258
|
+
export declare const TextareaControl: ({ type, ...rest }: FormControlType) => JSX.Element;
|
|
2259
|
+
|
|
2260
|
+
export declare type TextFontWeight = 'normal' | 'medium' | 'semiBold' | 'bold';
|
|
2261
|
+
|
|
2262
|
+
/**
|
|
2263
|
+
* @deprecated This component is **deprecated** please use **Input2**
|
|
2264
|
+
*/
|
|
2265
|
+
export declare const TextInput: React_2.ForwardRefExoticComponent<FormFieldType & React_2.RefAttributes<unknown>>;
|
|
2266
|
+
|
|
2267
|
+
export declare const TextInputControl: React_2.ForwardRefExoticComponent<TextInputControlPropsType & React_2.RefAttributes<unknown>>;
|
|
2268
|
+
|
|
2269
|
+
export declare interface TextInputControlPropsType extends FormControlType {
|
|
2270
|
+
/** Mask function for input value masking. */
|
|
2271
|
+
mask?: () => void;
|
|
2272
|
+
}
|
|
2273
|
+
|
|
2274
|
+
export declare interface TextPropsType extends ComponentPropsType {
|
|
2275
|
+
/** React component or string specifying the HTML tag to use. */
|
|
2276
|
+
component?: React_3.ElementType;
|
|
2277
|
+
/** Children to be rendered in the main container. */
|
|
2278
|
+
children?: React_3.ReactNode;
|
|
2279
|
+
/** Flag indicating 'text-center' class */
|
|
2280
|
+
isTextCenter?: boolean;
|
|
2281
|
+
/** Flag indicating 'text-right' class */
|
|
2282
|
+
isTextRight?: boolean;
|
|
2283
|
+
/** Text size */
|
|
2284
|
+
size?: TextSizeType;
|
|
2285
|
+
/** Type of the text. */
|
|
2286
|
+
type?: TextType;
|
|
2287
|
+
/** Font weight */
|
|
2288
|
+
weight?: TextFontWeight;
|
|
2289
|
+
}
|
|
2290
|
+
|
|
2291
|
+
export declare type TextSizeType = 'xSmall' | 'small' | 'large';
|
|
2292
|
+
|
|
2293
|
+
export declare type TextType = 'primary' | 'secondary' | 'red' | 'orange' | 'green' | 'blue';
|
|
2294
|
+
|
|
2295
|
+
export declare type Theme = ThemeValue | Array<Theme>;
|
|
2296
|
+
|
|
2297
|
+
declare type ThemeValue = CSSModule | string;
|
|
2298
|
+
|
|
2299
|
+
export declare const Tile: ({ children, iconName, iconPosition, isDisabled, isSelected, linkTo, onClick, testId, theme }: TilePropsType) => JSX.Element;
|
|
2300
|
+
|
|
2301
|
+
export declare type TileIconPosition = 'center' | 'left';
|
|
2302
|
+
|
|
2303
|
+
export declare interface TilePropsType extends ComponentPropsType {
|
|
2304
|
+
/** Children to be rendered in the main container. */
|
|
2305
|
+
children?: ReactNode;
|
|
2306
|
+
/** Name of icon */
|
|
2307
|
+
iconName: IconNameType;
|
|
2308
|
+
/** Flag indicating that the tile is selected */
|
|
2309
|
+
isSelected?: boolean;
|
|
2310
|
+
/** Flag indicating that the tile is disabled */
|
|
2311
|
+
isDisabled?: boolean;
|
|
2312
|
+
/** Link to another URL */
|
|
2313
|
+
linkTo?: string;
|
|
2314
|
+
/** Click event handler. */
|
|
2315
|
+
onClick?: (e: SyntheticEvent) => void;
|
|
2316
|
+
/** Position of icon - center or left */
|
|
2317
|
+
iconPosition?: TileIconPosition;
|
|
2318
|
+
}
|
|
2319
|
+
|
|
2320
|
+
export declare const Title: ({ children, iconBackgroundColor, iconName, id, isWithoutMargin, size: Component, testId, theme, visual }: TitlePropsType) => JSX.Element;
|
|
2321
|
+
|
|
2322
|
+
export declare interface TitlePropsType extends ComponentPropsType {
|
|
2323
|
+
/** Children to be rendered in the main container. */
|
|
2324
|
+
children?: ReactNode;
|
|
2325
|
+
/** Icon name/type enum type */
|
|
2326
|
+
iconName?: IconNameType;
|
|
2327
|
+
/** Color of icon background */
|
|
2328
|
+
iconBackgroundColor?: BackgroundColorType;
|
|
2329
|
+
/** Size of title. Used for it's basic purpose = defining page navigation priority. Please follow standard **[rules](https://www.w3.org/WAI/test-evaluate/preliminary/#headings)**. */
|
|
2330
|
+
size: TitleSize;
|
|
2331
|
+
/** Title visual size. Use this for matching title visual with desired design. */
|
|
2332
|
+
visual?: TitleSize;
|
|
2333
|
+
/** Title without margin. */
|
|
2334
|
+
isWithoutMargin?: boolean;
|
|
2335
|
+
id?: string;
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
export declare type TitleSize = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
2339
|
+
|
|
2340
|
+
export declare const ToastContainer: ({ autoCloseMilliseconds }: ToastContainerPropsType) => JSX.Element;
|
|
2341
|
+
|
|
2342
|
+
export declare interface ToastContainerPropsType {
|
|
2343
|
+
autoCloseMilliseconds?: number;
|
|
2344
|
+
}
|
|
2345
|
+
|
|
2346
|
+
export declare type ToastType = Omit<AlertPropsType, 'alertRef' | 'children'> & {
|
|
2347
|
+
autoCloseMilliseconds?: number;
|
|
2348
|
+
toastId?: string;
|
|
2349
|
+
content?: ReactNode;
|
|
2350
|
+
};
|
|
2351
|
+
|
|
2352
|
+
export declare const Toggle: ({ children, disabledTooltip, disabledTooltipType, iconName, isActive, isDisabled, isSecondary, name, onChange, testId, theme }: TogglePropsType) => JSX.Element;
|
|
2353
|
+
|
|
2354
|
+
export declare interface TogglePropsType extends ComponentPropsType, DisabledTooltipPropsType {
|
|
2355
|
+
/** Children to be rendered in the main container. */
|
|
2356
|
+
children?: ReactNode;
|
|
2357
|
+
/** Name of icon to be displayed inside handle. */
|
|
2358
|
+
iconName?: IconNameType;
|
|
2359
|
+
/** Flag for initial state to be truthy. */
|
|
2360
|
+
isActive?: boolean;
|
|
2361
|
+
/** Flag indicating that the toggle is disabled. */
|
|
2362
|
+
isDisabled?: boolean;
|
|
2363
|
+
/** Flag if you want to use **secondary** visual. */
|
|
2364
|
+
isSecondary?: boolean;
|
|
2365
|
+
/** Unique name. */
|
|
2366
|
+
name: string;
|
|
2367
|
+
/** Custom onChange handler. */
|
|
2368
|
+
onChange?: (value: boolean, event: SyntheticEvent) => void;
|
|
2369
|
+
}
|
|
2370
|
+
|
|
2371
|
+
export declare const Tooltip: ({ children, content, isArrowVisible, isBold, isShownByDefault, isUpperCased, onTooltipVisibilityChange, placement, testId, theme, trigger, type, verticalOffset }: TooltipPropsType) => JSX.Element;
|
|
2372
|
+
|
|
2373
|
+
declare interface TooltipPropsType extends ComponentPropsType {
|
|
2374
|
+
/** Children to be rendered in the main container. */
|
|
2375
|
+
children: ReactElement;
|
|
2376
|
+
/** Tooltip upper case or not */
|
|
2377
|
+
isUpperCased?: boolean;
|
|
2378
|
+
/** Function called on state change */
|
|
2379
|
+
onTooltipVisibilityChange?: (visible: boolean) => void;
|
|
2380
|
+
/** Tooltip position - top, right, bottom or left */
|
|
2381
|
+
placement?: Config['placement'];
|
|
2382
|
+
/** Show tooltip arrow or not */
|
|
2383
|
+
isArrowVisible?: boolean;
|
|
2384
|
+
/** Bold content */
|
|
2385
|
+
isBold?: boolean;
|
|
2386
|
+
/** Show tooltip by default or not */
|
|
2387
|
+
isShownByDefault?: boolean;
|
|
2388
|
+
/** Content of tooltip */
|
|
2389
|
+
content?: ReactNode;
|
|
2390
|
+
/** Tooltip trigger */
|
|
2391
|
+
trigger?: TriggerType | Array<TriggerType>;
|
|
2392
|
+
/** Tooltip type - dark, light, grey */
|
|
2393
|
+
type?: TooltipType;
|
|
2394
|
+
verticalOffset?: number;
|
|
2395
|
+
}
|
|
2396
|
+
|
|
2397
|
+
export declare type TooltipType = 'dark' | 'light' | 'grey';
|
|
2398
|
+
|
|
2399
|
+
export declare const trimLeadingZeros: (value: string, allowLeadingZeros: boolean) => string;
|
|
2400
|
+
|
|
2401
|
+
export declare const useContainerDimensions: (containerRef: RefObject<HTMLDivElement>) => {
|
|
2402
|
+
width: number;
|
|
2403
|
+
height: number;
|
|
2404
|
+
};
|
|
2405
|
+
|
|
2406
|
+
export declare const useEventListener: (eventName: string, handler: UseEventListenerHandlerType, element?: Window & typeof globalThis) => void;
|
|
2407
|
+
|
|
2408
|
+
export declare type UseEventListenerHandlerType = (event: Event) => void;
|
|
2409
|
+
|
|
2410
|
+
export declare const useFileUpload: (initialFiles: FileType[]) => FileUploadHookType;
|
|
2411
|
+
|
|
2412
|
+
export declare const useGroupedItems: ({ groupedItems, value }: GroupedItemsPropsType) => GroupedItemsHookType;
|
|
2413
|
+
|
|
2414
|
+
export declare const useHoverActive: (ref: RefObject<Element>) => boolean[];
|
|
2415
|
+
|
|
2416
|
+
export declare const useMobilePanel: (onOpen?: (() => void) | undefined, onClose?: (() => void) | undefined) => MobilePanelHookType;
|
|
2417
|
+
|
|
2418
|
+
/**
|
|
2419
|
+
* @param disableCloseByOutsideClick - Disable closing dialog by clicks outside popUp.
|
|
2420
|
+
* @param onHide - Custom functions to be called together with internal handle hide
|
|
2421
|
+
* @param onShow - Custom functions to be called together with internal handle show
|
|
2422
|
+
*/
|
|
2423
|
+
export declare const useModal: (disableCloseByOutsideClick?: boolean, onHide?: (() => void) | undefined, onShow?: (() => void) | undefined) => ModalHookType;
|
|
2424
|
+
|
|
2425
|
+
export declare const useOnScreen: (ref: RefObject<Element>) => boolean;
|
|
2426
|
+
|
|
2427
|
+
export declare const UserAuth: ({ children, mobileKey, resetTimer, state, testId, theme, timer, title }: UserAuthPropsType) => JSX.Element;
|
|
2428
|
+
|
|
2429
|
+
export declare interface UserAuthPropsType extends ComponentPropsType {
|
|
2430
|
+
/** Children to be rendered in the main container. */
|
|
2431
|
+
children?: ReactNode;
|
|
2432
|
+
/** Need to be defined if you want to display form for mobile key. */
|
|
2433
|
+
mobileKey?: {
|
|
2434
|
+
/** Message if error appears. */
|
|
2435
|
+
error?: string;
|
|
2436
|
+
/** Title for input. */
|
|
2437
|
+
message: ReactElement | string;
|
|
2438
|
+
/** Name for mobile key input */
|
|
2439
|
+
name?: string;
|
|
2440
|
+
/** Callback function fired when value of input field changes. */
|
|
2441
|
+
onChange: (oldValue: ReactText, newValue: ReactText) => void;
|
|
2442
|
+
/** Input placeholder. */
|
|
2443
|
+
placeholder: ReactElement | string;
|
|
2444
|
+
};
|
|
2445
|
+
/** Flag that seconds counter should be reset to starting value and potentially mobile key to empty value. */
|
|
2446
|
+
resetTimer?: boolean;
|
|
2447
|
+
/** State of authentication. */
|
|
2448
|
+
state: 'success' | 'error' | 'waiting';
|
|
2449
|
+
/** Need to be defined if you want to show countdown in loader. */
|
|
2450
|
+
timer?: {
|
|
2451
|
+
/** Callback function fired when timer hits zero. */
|
|
2452
|
+
onTimeExpired: () => void;
|
|
2453
|
+
/** Number of seconds to countdown. */
|
|
2454
|
+
time: number;
|
|
2455
|
+
/** Hidden texts for accessibility */
|
|
2456
|
+
aria: {
|
|
2457
|
+
/** Minute texts for aria notifications. */
|
|
2458
|
+
minutes: {
|
|
2459
|
+
1: string;
|
|
2460
|
+
2: string;
|
|
2461
|
+
5: string;
|
|
2462
|
+
};
|
|
2463
|
+
/** Seconds texts for aria notifications. */
|
|
2464
|
+
seconds: string;
|
|
2465
|
+
/** Notifying user on time left. */
|
|
2466
|
+
timeLeft: string;
|
|
2467
|
+
/** Notifying user on time expired. */
|
|
2468
|
+
timeExpired: string;
|
|
2469
|
+
};
|
|
2470
|
+
};
|
|
2471
|
+
/** Title message of component. */
|
|
2472
|
+
title: ReactNode;
|
|
2473
|
+
}
|
|
2474
|
+
|
|
2475
|
+
export declare const useThemeDetector: () => boolean;
|
|
2476
|
+
|
|
2477
|
+
export declare const useToast: () => UseToastType;
|
|
2478
|
+
|
|
2479
|
+
declare interface UseToastType {
|
|
2480
|
+
addToast(toast: ToastType): void;
|
|
2481
|
+
removeToast(toastId?: string): void;
|
|
2482
|
+
removeAllToasts(): void;
|
|
2483
|
+
}
|
|
2484
|
+
|
|
2485
|
+
export declare const useWindowSize: () => useWindowSizeType;
|
|
2486
|
+
|
|
2487
|
+
declare type useWindowSizeType = {
|
|
2488
|
+
windowSize: {
|
|
2489
|
+
width: number;
|
|
2490
|
+
height: number;
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
|
|
2494
|
+
export declare const useWindowWidth: () => number;
|
|
2495
|
+
|
|
2496
|
+
export declare const withDisabledTooltip: ({ disabledTooltip: tooltipContent, disabledTooltipType, isDisabled, verticalOffset }: Props) => (children: ReactElement) => ReactElement;
|
|
2497
|
+
|
|
2498
|
+
export { }
|