@helpwave/hightide 0.5.4 → 0.6.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/index.d.mts +1264 -1024
- package/dist/index.d.ts +1264 -1024
- package/dist/index.js +7184 -6197
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6900 -5927
- package/dist/index.mjs.map +1 -1
- package/dist/style/globals.css +2554 -903
- package/dist/style/uncompiled/theme/colors/basic.css +1 -0
- package/dist/style/uncompiled/theme/colors/component.css +5 -8
- package/dist/style/uncompiled/theme/colors/semantic.css +17 -9
- package/dist/style/uncompiled/theme/colors/utilities.css +40 -10
- package/dist/style/uncompiled/theme/components/avatar.css +74 -0
- package/dist/style/uncompiled/theme/components/breadcrumb.css +15 -0
- package/dist/style/uncompiled/theme/components/button.css +65 -0
- package/dist/style/uncompiled/theme/components/card.css +13 -0
- package/dist/style/uncompiled/theme/components/checkbox.css +49 -0
- package/dist/style/uncompiled/theme/components/chip.css +22 -0
- package/dist/style/uncompiled/theme/components/day-picker.css +46 -0
- package/dist/style/uncompiled/theme/components/dialog.css +52 -0
- package/dist/style/uncompiled/theme/components/drawer.css +150 -0
- package/dist/style/uncompiled/theme/components/expandable.css +50 -0
- package/dist/style/uncompiled/theme/components/expansion-icon.css +13 -0
- package/dist/style/uncompiled/theme/components/form-field.css +17 -0
- package/dist/style/uncompiled/theme/components/general.css +28 -0
- package/dist/style/uncompiled/theme/components/index.css +23 -0
- package/dist/style/uncompiled/theme/components/input-elements.css +53 -0
- package/dist/style/uncompiled/theme/components/link.css +5 -0
- package/dist/style/uncompiled/theme/components/property.css +102 -0
- package/dist/style/uncompiled/theme/components/scrollbar.css +55 -0
- package/dist/style/uncompiled/theme/components/table.css +66 -0
- package/dist/style/uncompiled/theme/components/tabswitcher.css +23 -0
- package/dist/style/uncompiled/theme/components/textarea.css +5 -0
- package/dist/style/uncompiled/theme/components/time-picker.css +9 -0
- package/dist/style/uncompiled/theme/components/tooltip.css +56 -0
- package/dist/style/uncompiled/theme/index.css +6 -5
- package/dist/style/uncompiled/theme/variables.css +6 -0
- package/dist/style/uncompiled/utitlity/animation.css +149 -130
- package/dist/style/uncompiled/utitlity/coloring.css +16 -20
- package/dist/style/uncompiled/utitlity/focus.css +27 -0
- package/dist/style/uncompiled/utitlity/index.css +2 -1
- package/dist/style/uncompiled/utitlity/shadow.css +45 -24
- package/package.json +4 -3
- package/dist/style/uncompiled/theme/components.css +0 -290
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import React__default, { HTMLAttributes,
|
|
2
|
+
import * as React$1 from 'react';
|
|
3
|
+
import React__default, { HTMLAttributes, SVGProps, CSSProperties, ReactNode, PropsWithChildren, RefObject, Dispatch, SetStateAction, ButtonHTMLAttributes, InputHTMLAttributes, ComponentProps, TextareaHTMLAttributes, LabelHTMLAttributes } from 'react';
|
|
4
|
+
import Link from 'next/link';
|
|
4
5
|
import { Column, RowData, FilterFn, ColumnDef, Table as Table$1, InitialTableState, Row, TableState, TableOptions, RowSelectionState, SortDirection } from '@tanstack/react-table';
|
|
5
6
|
import { Translation, TranslationEntries, PartialTranslationExtension } from '@helpwave/internationalization';
|
|
6
7
|
|
|
@@ -13,404 +14,63 @@ type HelpwaveBadgeProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
13
14
|
*/
|
|
14
15
|
declare const HelpwaveBadge: ({ size, ...props }: HelpwaveBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
15
16
|
|
|
16
|
-
type
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
hours: number;
|
|
21
|
-
minutes: number;
|
|
22
|
-
seconds: number;
|
|
23
|
-
milliseconds: number;
|
|
24
|
-
};
|
|
25
|
-
declare class Duration {
|
|
26
|
-
readonly years: number;
|
|
27
|
-
readonly months: number;
|
|
28
|
-
readonly days: number;
|
|
29
|
-
readonly hours: number;
|
|
30
|
-
readonly minutes: number;
|
|
31
|
-
readonly seconds: number;
|
|
32
|
-
readonly milliseconds: number;
|
|
33
|
-
constructor({ years, months, days, hours, minutes, seconds, milliseconds, }?: Partial<DurationJSON>);
|
|
34
|
-
/** Date arithmetic */
|
|
35
|
-
addTo(date: Date): Date;
|
|
36
|
-
subtractFrom(date: Date): Date;
|
|
37
|
-
/** Duration arithmetic */
|
|
38
|
-
add(other: Duration): Duration;
|
|
39
|
-
subtract(other: Duration): Duration;
|
|
40
|
-
equals(other: Duration): boolean;
|
|
41
|
-
toJSON(): DurationJSON;
|
|
42
|
-
/** Static difference */
|
|
43
|
-
static difference(start: Date, end: Date): Duration;
|
|
44
|
-
private applyTo;
|
|
45
|
-
private assertRanges;
|
|
46
|
-
valueOf(): number;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare const monthsList: readonly ["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"];
|
|
50
|
-
type Month = typeof monthsList[number];
|
|
51
|
-
declare const weekDayList: readonly ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
|
|
52
|
-
type WeekDay = typeof weekDayList[number];
|
|
53
|
-
declare const formatDate: (date: Date) => string;
|
|
54
|
-
declare const formatDateTime: (date: Date) => string;
|
|
55
|
-
declare const changeDuration: (date: Date, duration: Partial<DurationJSON>, isAdding?: boolean) => Date;
|
|
56
|
-
declare const addDuration: (date: Date, duration: Partial<DurationJSON>) => Date;
|
|
57
|
-
declare const subtractDuration: (date: Date, duration: Partial<DurationJSON>) => Date;
|
|
58
|
-
declare const getBetweenDuration: (startDate: Date, endDate: Date) => Partial<DurationJSON>;
|
|
59
|
-
/** Checks if a given date is in the range of two dates
|
|
60
|
-
*
|
|
61
|
-
* An undefined value for startDate or endDate means no bound for the start or end respectively
|
|
62
|
-
*/
|
|
63
|
-
declare const isInTimeSpan: (value: Date, startDate?: Date, endDate?: Date) => boolean;
|
|
64
|
-
declare const getWeeksForCalenderMonth: (date: Date, weekStart: WeekDay, weeks?: number) => Date[][];
|
|
65
|
-
declare const DateUtils: {
|
|
66
|
-
monthsList: readonly ["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"];
|
|
67
|
-
weekDayList: readonly ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
|
|
68
|
-
equalDate: (date1: Date, date2: Date) => boolean;
|
|
69
|
-
formatAbsolute: (date: Date, locale: string, showTime: boolean) => string;
|
|
70
|
-
formatRelative: (date: Date, locale: string, showTime: boolean) => string;
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
type DayPickerProps = {
|
|
74
|
-
displayedMonth: Date;
|
|
75
|
-
selected?: Date;
|
|
76
|
-
start?: Date;
|
|
77
|
-
end?: Date;
|
|
78
|
-
onChange?: (date: Date) => void;
|
|
79
|
-
weekStart?: WeekDay;
|
|
80
|
-
markToday?: boolean;
|
|
81
|
-
className?: string;
|
|
82
|
-
};
|
|
83
|
-
/**
|
|
84
|
-
* A component for selecting a day of a month
|
|
85
|
-
*/
|
|
86
|
-
declare const DayPicker: ({ displayedMonth, selected, start, end, onChange, weekStart, markToday, className }: DayPickerProps) => react_jsx_runtime.JSX.Element;
|
|
87
|
-
declare const DayPickerUncontrolled: ({ displayedMonth, selected, onChange, ...restProps }: DayPickerProps) => react_jsx_runtime.JSX.Element;
|
|
88
|
-
|
|
89
|
-
type YearMonthPickerProps = {
|
|
90
|
-
displayedYearMonth?: Date;
|
|
91
|
-
start?: Date;
|
|
92
|
-
end?: Date;
|
|
93
|
-
onChange?: (date: Date) => void;
|
|
94
|
-
className?: string;
|
|
95
|
-
maxHeight?: number;
|
|
96
|
-
showValueOpen?: boolean;
|
|
97
|
-
};
|
|
98
|
-
declare const YearMonthPicker: ({ displayedYearMonth, start, end, onChange, className, showValueOpen }: YearMonthPickerProps) => react_jsx_runtime.JSX.Element;
|
|
99
|
-
declare const YearMonthPickerUncontrolled: ({ displayedYearMonth, onChange, ...props }: YearMonthPickerProps) => react_jsx_runtime.JSX.Element;
|
|
100
|
-
|
|
101
|
-
type DisplayMode = 'yearMonth' | 'day';
|
|
102
|
-
type DatePickerProps = {
|
|
103
|
-
value?: Date;
|
|
104
|
-
start?: Date;
|
|
105
|
-
end?: Date;
|
|
106
|
-
initialDisplay?: DisplayMode;
|
|
107
|
-
onChange?: (date: Date) => void;
|
|
108
|
-
dayPickerProps?: Omit<DayPickerProps, 'displayedMonth' | 'onChange' | 'selected'>;
|
|
109
|
-
yearMonthPickerProps?: Omit<YearMonthPickerProps, 'displayedYearMonth' | 'onChange' | 'start' | 'end'>;
|
|
110
|
-
className?: string;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* A Component for picking a date
|
|
114
|
-
*/
|
|
115
|
-
declare const DatePicker: ({ value, start, end, initialDisplay, onChange, yearMonthPickerProps, dayPickerProps, className }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
116
|
-
/**
|
|
117
|
-
* Example for the Date Picker
|
|
118
|
-
*/
|
|
119
|
-
declare const DatePickerUncontrolled: ({ value, onChange, ...props }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
120
|
-
|
|
121
|
-
type TimeDisplayMode = 'daysFromToday' | 'date';
|
|
122
|
-
type TimeDisplayProps = {
|
|
123
|
-
date: Date;
|
|
124
|
-
mode?: TimeDisplayMode;
|
|
125
|
-
};
|
|
126
|
-
/**
|
|
127
|
-
* A Component for displaying time and dates in a unified fashion
|
|
128
|
-
*/
|
|
129
|
-
declare const TimeDisplay: ({ date, mode }: TimeDisplayProps) => react_jsx_runtime.JSX.Element;
|
|
130
|
-
|
|
131
|
-
type MinuteIncrement = '1min' | '5min' | '10min' | '15min' | '30min';
|
|
132
|
-
type TimePickerProps = {
|
|
133
|
-
time?: Date;
|
|
134
|
-
onChange?: (time: Date) => void;
|
|
135
|
-
is24HourFormat?: boolean;
|
|
136
|
-
minuteIncrement?: MinuteIncrement;
|
|
137
|
-
maxHeight?: number;
|
|
138
|
-
className?: string;
|
|
139
|
-
};
|
|
140
|
-
declare const TimePicker: ({ time, onChange, is24HourFormat, minuteIncrement, maxHeight, className }: TimePickerProps) => react_jsx_runtime.JSX.Element;
|
|
141
|
-
declare const TimePickerUncontrolled: ({ time, onChange, ...props }: TimePickerProps) => react_jsx_runtime.JSX.Element;
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* The different sizes for a button
|
|
145
|
-
*/
|
|
146
|
-
type ButtonSize = 'tiny' | 'small' | 'medium' | 'large' | 'none';
|
|
147
|
-
type ButtonColoringStyle = 'outline' | 'solid' | 'text' | 'tonal' | 'none';
|
|
148
|
-
type ButtonLayout = 'icon' | 'default' | 'none';
|
|
149
|
-
declare const buttonColorsList: readonly ["primary", "secondary", "positive", "warning", "negative", "neutral", "none"];
|
|
150
|
-
/**
|
|
151
|
-
* The allowed colors for the Button
|
|
152
|
-
*/
|
|
153
|
-
type ButtonColor = typeof buttonColorsList[number];
|
|
154
|
-
declare const ButtonUtil: {
|
|
155
|
-
colors: readonly ["primary", "secondary", "positive", "warning", "negative", "neutral", "none"];
|
|
156
|
-
colorClasses: {
|
|
157
|
-
primary: string;
|
|
158
|
-
secondary: string;
|
|
159
|
-
positive: string;
|
|
160
|
-
warning: string;
|
|
161
|
-
negative: string;
|
|
162
|
-
neutral: string;
|
|
163
|
-
none: string;
|
|
164
|
-
};
|
|
165
|
-
};
|
|
166
|
-
/**
|
|
167
|
-
* The shard properties between all button types
|
|
168
|
-
*/
|
|
169
|
-
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
170
|
-
/**
|
|
171
|
-
* @default 'medium'
|
|
172
|
-
*/
|
|
173
|
-
size?: ButtonSize;
|
|
174
|
-
layout?: ButtonLayout;
|
|
175
|
-
color?: ButtonColor;
|
|
176
|
-
/**
|
|
177
|
-
* @default 'solid'
|
|
178
|
-
*/
|
|
179
|
-
coloringStyle?: ButtonColoringStyle;
|
|
180
|
-
startIcon?: ReactNode;
|
|
181
|
-
endIcon?: ReactNode;
|
|
182
|
-
allowClickEventPropagation?: boolean;
|
|
183
|
-
};
|
|
184
|
-
/**
|
|
185
|
-
* A button with a solid background and different sizes
|
|
186
|
-
*/
|
|
187
|
-
declare const Button: React.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
188
|
-
/**
|
|
189
|
-
* @default 'medium'
|
|
190
|
-
*/
|
|
191
|
-
size?: ButtonSize;
|
|
192
|
-
layout?: ButtonLayout;
|
|
193
|
-
color?: ButtonColor;
|
|
194
|
-
/**
|
|
195
|
-
* @default 'solid'
|
|
196
|
-
*/
|
|
197
|
-
coloringStyle?: ButtonColoringStyle;
|
|
198
|
-
startIcon?: ReactNode;
|
|
199
|
-
endIcon?: ReactNode;
|
|
200
|
-
allowClickEventPropagation?: boolean;
|
|
201
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
202
|
-
|
|
203
|
-
type DialogPosition = 'top' | 'center' | 'none';
|
|
204
|
-
type DialogProps = HTMLAttributes<HTMLDivElement> & {
|
|
205
|
-
/** Whether the dialog is currently open */
|
|
206
|
-
isOpen: boolean;
|
|
207
|
-
/** Title of the Dialog used for accessibility */
|
|
208
|
-
titleElement: ReactNode;
|
|
209
|
-
/** Description of the Dialog used for accessibility */
|
|
210
|
-
description: ReactNode;
|
|
211
|
-
/** Callback when the dialog tries to close */
|
|
212
|
-
onClose?: () => void;
|
|
213
|
-
/** Styling for the background */
|
|
214
|
-
backgroundClassName?: string;
|
|
215
|
-
/** If true shows a close button and sends onClose on background clicks */
|
|
216
|
-
isModal?: boolean;
|
|
217
|
-
position?: DialogPosition;
|
|
218
|
-
isAnimated?: boolean;
|
|
219
|
-
containerClassName?: string;
|
|
220
|
-
};
|
|
221
|
-
/**
|
|
222
|
-
* A generic dialog window which is managed by its parent
|
|
223
|
-
*/
|
|
224
|
-
declare const Dialog: ({ children, isOpen, titleElement, description, isModal, onClose, backgroundClassName, position, isAnimated, containerClassName, ...props }: PropsWithChildren<DialogProps>) => React.ReactPortal;
|
|
225
|
-
|
|
226
|
-
type ConfirmDialogType = 'positive' | 'negative' | 'neutral' | 'primary';
|
|
227
|
-
type ButtonOverwriteType = {
|
|
228
|
-
text?: string;
|
|
229
|
-
color?: ButtonColor;
|
|
230
|
-
disabled?: boolean;
|
|
231
|
-
};
|
|
232
|
-
type ConfirmDialogProps = Omit<DialogProps, 'onClose'> & {
|
|
233
|
-
isShowingDecline?: boolean;
|
|
234
|
-
requireAnswer?: boolean;
|
|
235
|
-
onCancel: () => void;
|
|
236
|
-
onConfirm: () => void;
|
|
237
|
-
onDecline?: () => void;
|
|
238
|
-
confirmType?: ConfirmDialogType;
|
|
239
|
-
/**
|
|
240
|
-
* Order: Cancel, Decline, Confirm
|
|
241
|
-
*/
|
|
242
|
-
buttonOverwrites?: [ButtonOverwriteType, ButtonOverwriteType, ButtonOverwriteType];
|
|
243
|
-
};
|
|
244
|
-
/**
|
|
245
|
-
* A Dialog for asking the user for confirmation
|
|
246
|
-
*/
|
|
247
|
-
declare const ConfirmDialog: ({ children, onCancel, onConfirm, onDecline, confirmType, buttonOverwrites, className, ...restProps }: PropsWithChildren<ConfirmDialogProps>) => react_jsx_runtime.JSX.Element;
|
|
248
|
-
|
|
249
|
-
type DiscardChangesDialogProps = Omit<ConfirmDialogProps, 'onDecline' | 'onConfirm' | 'buttonOverwrites' | 'titleElement' | 'description'> & {
|
|
250
|
-
isShowingDecline?: boolean;
|
|
251
|
-
requireAnswer?: boolean;
|
|
252
|
-
onCancel: () => void;
|
|
253
|
-
onSave: () => void;
|
|
254
|
-
onDontSave: () => void;
|
|
255
|
-
titleOverwrite?: ReactNode;
|
|
256
|
-
descriptionOverwrite?: ReactNode;
|
|
257
|
-
};
|
|
258
|
-
declare const DiscardChangesDialog: ({ children, onCancel, onSave, onDontSave, titleOverwrite, descriptionOverwrite, ...props }: PropsWithChildren<DiscardChangesDialogProps>) => react_jsx_runtime.JSX.Element;
|
|
259
|
-
|
|
260
|
-
type UseDelayOptionsResolved = {
|
|
261
|
-
delay: number;
|
|
262
|
-
disabled: boolean;
|
|
263
|
-
};
|
|
264
|
-
type UseDelayOptions = Partial<UseDelayOptionsResolved>;
|
|
265
|
-
declare function useDelay(options?: UseDelayOptions): {
|
|
266
|
-
restartTimer: (onDelayFinish: () => void) => void;
|
|
267
|
-
clearTimer: () => void;
|
|
268
|
-
hasActiveTimer: boolean;
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
type EditCompleteOptionsResolved = {
|
|
272
|
-
onBlur: boolean;
|
|
273
|
-
afterDelay: boolean;
|
|
274
|
-
allowEnterComplete?: boolean;
|
|
275
|
-
} & Omit<UseDelayOptionsResolved, 'disabled'>;
|
|
276
|
-
type EditCompleteOptions = Partial<EditCompleteOptionsResolved>;
|
|
277
|
-
type InputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
278
|
-
invalid?: boolean;
|
|
279
|
-
onChangeText?: (text: string) => void;
|
|
280
|
-
onEditCompleted?: (text: string) => void;
|
|
281
|
-
editCompleteOptions?: EditCompleteOptions;
|
|
282
|
-
};
|
|
283
|
-
/**
|
|
284
|
-
* A Component for inputting text or other information
|
|
285
|
-
*
|
|
286
|
-
* Its state is managed must be managed by the parent
|
|
287
|
-
*/
|
|
288
|
-
declare const Input: React__default.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
|
|
289
|
-
invalid?: boolean;
|
|
290
|
-
onChangeText?: (text: string) => void;
|
|
291
|
-
onEditCompleted?: (text: string) => void;
|
|
292
|
-
editCompleteOptions?: EditCompleteOptions;
|
|
293
|
-
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
294
|
-
/**
|
|
295
|
-
* A Component for inputting text or other information
|
|
296
|
-
*
|
|
297
|
-
* Its state is managed by the component itself
|
|
298
|
-
*/
|
|
299
|
-
declare const InputUncontrolled: ({ value, onChangeText, ...props }: InputProps) => react_jsx_runtime.JSX.Element;
|
|
300
|
-
|
|
301
|
-
type InputModalProps = ConfirmDialogProps & {
|
|
302
|
-
inputs: InputProps[];
|
|
303
|
-
};
|
|
304
|
-
/**
|
|
305
|
-
* A modal for receiving multiple inputs
|
|
306
|
-
*/
|
|
307
|
-
declare const InputDialog: ({ inputs, buttonOverwrites, ...props }: InputModalProps) => react_jsx_runtime.JSX.Element;
|
|
308
|
-
|
|
309
|
-
type LanguageDialogProps = Omit<DialogProps, 'titleElement' | 'description'> & PropsWithChildren<{
|
|
310
|
-
titleOverwrite?: ReactNode;
|
|
311
|
-
descriptionOverwrite?: ReactNode;
|
|
312
|
-
}>;
|
|
313
|
-
/**
|
|
314
|
-
* A Dialog for selecting the Language
|
|
315
|
-
*
|
|
316
|
-
* The State of open needs to be managed by the parent
|
|
317
|
-
*/
|
|
318
|
-
declare const LanguageDialog: ({ onClose, titleOverwrite, descriptionOverwrite, ...props }: LanguageDialogProps) => react_jsx_runtime.JSX.Element;
|
|
319
|
-
|
|
320
|
-
type ThemeDialogProps = Omit<DialogProps, 'titleElement' | 'description'> & {
|
|
321
|
-
titleOverwrite?: ReactNode;
|
|
322
|
-
descriptionOverwrite?: ReactNode;
|
|
323
|
-
};
|
|
324
|
-
/**
|
|
325
|
-
* A Dialog for selecting the Theme
|
|
326
|
-
*
|
|
327
|
-
* The State of open needs to be managed by the parent
|
|
328
|
-
*/
|
|
329
|
-
declare const ThemeDialog: ({ onClose, titleOverwrite, descriptionOverwrite, ...props }: PropsWithChildren<ThemeDialogProps>) => react_jsx_runtime.JSX.Element;
|
|
330
|
-
|
|
331
|
-
type BagFunction<T> = (bag: T) => ReactNode;
|
|
332
|
-
type BagFunctionOrNode<T> = BagFunction<T> | ReactNode;
|
|
333
|
-
type PropsWithBagFunction<T, P = unknown> = P & {
|
|
334
|
-
children?: BagFunction<T>;
|
|
335
|
-
};
|
|
336
|
-
type PropsWithBagFunctionOrChildren<T, P = unknown> = P & {
|
|
337
|
-
children?: BagFunctionOrNode<T>;
|
|
338
|
-
};
|
|
339
|
-
declare const BagFunctionUtil: {
|
|
340
|
-
resolve: <T>(children: BagFunctionOrNode<T>, bag: T) => ReactNode;
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
type LabelType = 'md' | 'lg';
|
|
344
|
-
type LabelProps = LabelHTMLAttributes<HTMLLabelElement> & {
|
|
345
|
-
/** The size of the label */
|
|
346
|
-
size?: LabelType;
|
|
347
|
-
};
|
|
348
|
-
/**
|
|
349
|
-
* A Label component
|
|
350
|
-
*/
|
|
351
|
-
declare const Label: ({ children, size, className, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
|
|
352
|
-
|
|
353
|
-
type ErrorShowBehaviour = 'always' | 'whenTouched';
|
|
354
|
-
type FormElementHTMLProperties = Pick<HTMLAttributes<HTMLElement>, 'id' | 'aria-labelledby' | 'aria-describedby' | 'aria-disabled' | 'aria-invalid' | 'aria-errormessage' | 'aria-required'>;
|
|
355
|
-
type FormElementStateProperties = {
|
|
356
|
-
invalid: boolean;
|
|
357
|
-
disabled: boolean;
|
|
358
|
-
};
|
|
359
|
-
type FormElementWrapperBag = FormElementHTMLProperties & FormElementStateProperties & {
|
|
360
|
-
required: boolean;
|
|
361
|
-
isShowingError: boolean;
|
|
362
|
-
setIsShowingError: (isShowingError?: boolean) => void;
|
|
363
|
-
};
|
|
364
|
-
type FormElementWrapperProps = {
|
|
365
|
-
children: BagFunction<FormElementWrapperBag>;
|
|
366
|
-
id?: string;
|
|
367
|
-
required?: boolean;
|
|
368
|
-
disabled?: boolean;
|
|
369
|
-
isShowingError?: boolean;
|
|
370
|
-
onIsShowingError?: (isTouched: boolean) => void;
|
|
371
|
-
label?: ReactNode;
|
|
372
|
-
labelProps?: Omit<LabelProps, 'children'>;
|
|
373
|
-
errorShowBehaviour?: ErrorShowBehaviour;
|
|
374
|
-
error?: ReactNode;
|
|
375
|
-
errorProps?: Omit<HTMLAttributes<HTMLParagraphElement>, 'children'>;
|
|
376
|
-
description?: ReactNode;
|
|
377
|
-
descriptionProps?: Omit<HTMLAttributes<HTMLParagraphElement>, 'children'>;
|
|
378
|
-
containerClassName?: string;
|
|
17
|
+
type HelpwaveProps = SVGProps<SVGSVGElement> & {
|
|
18
|
+
color?: string;
|
|
19
|
+
animate?: 'none' | 'loading' | 'pulse' | 'bounce';
|
|
20
|
+
size?: 'sm' | 'md' | 'lg';
|
|
379
21
|
};
|
|
380
|
-
|
|
22
|
+
/**
|
|
23
|
+
* The helpwave loading spinner based on the svg logo.
|
|
24
|
+
*/
|
|
25
|
+
declare const HelpwaveLogo: ({ color, size, animate, ...props }: HelpwaveProps) => react_jsx_runtime.JSX.Element;
|
|
381
26
|
|
|
382
|
-
|
|
383
|
-
type AvatarSize = typeof avtarSizeList[number];
|
|
384
|
-
declare const AvatarUtil: {
|
|
385
|
-
avatarSizeMapping: Record<"sm" | "md" | "lg" | "xl", number>;
|
|
386
|
-
sizes: readonly ["sm", "md", "lg", "xl"];
|
|
387
|
-
};
|
|
27
|
+
type AvatarSize = 'xs' | 'sm' | 'md' | 'lg' | null;
|
|
388
28
|
type ImageConfig = {
|
|
389
29
|
avatarUrl: string;
|
|
390
30
|
alt: string;
|
|
391
31
|
};
|
|
392
|
-
type AvatarProps = {
|
|
32
|
+
type AvatarProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
393
33
|
image?: ImageConfig;
|
|
394
34
|
name?: string;
|
|
395
35
|
size?: AvatarSize;
|
|
396
|
-
fullyRounded?: boolean;
|
|
397
|
-
className?: string;
|
|
398
36
|
};
|
|
399
37
|
/**
|
|
400
38
|
* A component for showing a profile picture
|
|
401
39
|
*/
|
|
402
|
-
declare const Avatar: ({ image, name, size,
|
|
403
|
-
type AvatarGroupProps = {
|
|
404
|
-
avatars: Omit<AvatarProps, 'size'
|
|
405
|
-
maxShownProfiles?: number;
|
|
40
|
+
declare const Avatar: ({ image: initialImage, name, size, ...props }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
41
|
+
type AvatarGroupProps = HTMLAttributes<HTMLDivElement> & {
|
|
42
|
+
avatars: Omit<AvatarProps, 'size'>[];
|
|
406
43
|
showTotalNumber?: boolean;
|
|
407
44
|
size?: AvatarSize;
|
|
408
|
-
fullyRounded?: boolean;
|
|
409
45
|
};
|
|
410
46
|
/**
|
|
411
47
|
* A component for showing a group of Avatar's
|
|
412
48
|
*/
|
|
413
|
-
declare const AvatarGroup: ({ avatars,
|
|
49
|
+
declare const AvatarGroup: ({ avatars, showTotalNumber, size, ...props }: AvatarGroupProps) => react_jsx_runtime.JSX.Element;
|
|
50
|
+
|
|
51
|
+
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | null;
|
|
52
|
+
type ChipColoringStyle = 'solid' | 'tonal' | null;
|
|
53
|
+
declare const chipColors: readonly ["primary", "secondary", "positive", "warning", "negative", "neutral"];
|
|
54
|
+
type ChipColor = typeof chipColors[number];
|
|
55
|
+
declare const ChipUtil: {
|
|
56
|
+
colors: readonly ["primary", "secondary", "positive", "warning", "negative", "neutral"];
|
|
57
|
+
};
|
|
58
|
+
type ChipProps = HTMLAttributes<HTMLDivElement> & {
|
|
59
|
+
color?: ChipColor;
|
|
60
|
+
coloringStyle?: ChipColoringStyle;
|
|
61
|
+
size?: ChipSize;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* A component for displaying a single chip
|
|
65
|
+
*/
|
|
66
|
+
declare const Chip: ({ children, color, coloringStyle, size, ...props }: ChipProps) => react_jsx_runtime.JSX.Element;
|
|
67
|
+
type ChipListProps = HTMLAttributes<HTMLUListElement> & {
|
|
68
|
+
list: ChipProps[];
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* A component for displaying a list of chips
|
|
72
|
+
*/
|
|
73
|
+
declare const ChipList: ({ list, ...props }: ChipListProps) => react_jsx_runtime.JSX.Element;
|
|
414
74
|
|
|
415
75
|
type CircleProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'color'> & {
|
|
416
76
|
radius: number;
|
|
@@ -418,15 +78,32 @@ type CircleProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'color'> &
|
|
|
418
78
|
};
|
|
419
79
|
declare const Circle: ({ radius, className, style, ...restProps }: CircleProps) => react_jsx_runtime.JSX.Element;
|
|
420
80
|
|
|
421
|
-
type
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
81
|
+
type ExpansionIconProps = HTMLAttributes<HTMLDivElement> & {
|
|
82
|
+
isExpanded: boolean;
|
|
83
|
+
disabled?: boolean;
|
|
84
|
+
};
|
|
85
|
+
declare const ExpansionIcon: ({ children, isExpanded, disabled, ...props }: ExpansionIconProps) => react_jsx_runtime.JSX.Element;
|
|
86
|
+
|
|
87
|
+
type ProgressIndicatorProps = {
|
|
88
|
+
progress: number;
|
|
89
|
+
strokeWidth?: number;
|
|
90
|
+
size?: keyof typeof sizeMapping;
|
|
91
|
+
direction?: 'clockwise' | 'counterclockwise';
|
|
92
|
+
rotation?: number;
|
|
93
|
+
};
|
|
94
|
+
declare const sizeMapping: {
|
|
95
|
+
small: number;
|
|
96
|
+
medium: number;
|
|
97
|
+
big: number;
|
|
425
98
|
};
|
|
426
99
|
/**
|
|
427
|
-
*
|
|
100
|
+
* A progress indicator
|
|
101
|
+
*
|
|
102
|
+
* Start rotation is 3 o'clock and fills counterclockwise
|
|
103
|
+
*
|
|
104
|
+
* Progress is given from 0 to 1
|
|
428
105
|
*/
|
|
429
|
-
declare const
|
|
106
|
+
declare const ProgressIndicator: ({ progress, strokeWidth, size, direction, rotation }: ProgressIndicatorProps) => react_jsx_runtime.JSX.Element;
|
|
430
107
|
|
|
431
108
|
type RingProps = {
|
|
432
109
|
innerSize: number;
|
|
@@ -472,6 +149,165 @@ type TagProps = {
|
|
|
472
149
|
*/
|
|
473
150
|
declare const TagIcon: ({ className, size, }: TagProps) => react_jsx_runtime.JSX.Element;
|
|
474
151
|
|
|
152
|
+
type FormFieldAriaAttributes = Pick<HTMLAttributes<HTMLElement>, 'aria-labelledby' | 'aria-describedby' | 'aria-disabled' | 'aria-readonly' | 'aria-invalid' | 'aria-errormessage' | 'aria-required'>;
|
|
153
|
+
type FormFieldInteractionStates = {
|
|
154
|
+
invalid: boolean;
|
|
155
|
+
disabled: boolean;
|
|
156
|
+
readOnly: boolean;
|
|
157
|
+
required: boolean;
|
|
158
|
+
};
|
|
159
|
+
type FormFieldLayoutIds = {
|
|
160
|
+
input: string;
|
|
161
|
+
error: string;
|
|
162
|
+
label: string;
|
|
163
|
+
description: string;
|
|
164
|
+
};
|
|
165
|
+
type FormFieldLayoutBag = {
|
|
166
|
+
interactionStates: FormFieldInteractionStates;
|
|
167
|
+
ariaAttributes: FormFieldAriaAttributes;
|
|
168
|
+
id: string;
|
|
169
|
+
};
|
|
170
|
+
type FormFieldLayoutProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & Omit<Partial<FormFieldInteractionStates>, 'invalid'> & {
|
|
171
|
+
children: (bag: FormFieldLayoutBag) => ReactNode;
|
|
172
|
+
ids?: Partial<FormFieldLayoutIds>;
|
|
173
|
+
label?: ReactNode;
|
|
174
|
+
labelProps?: Omit<HTMLAttributes<HTMLLabelElement>, 'children' | 'id'>;
|
|
175
|
+
invalidDescription?: ReactNode;
|
|
176
|
+
invalidDescriptionProps?: Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'id'>;
|
|
177
|
+
description?: ReactNode;
|
|
178
|
+
descriptionProps?: Omit<HTMLAttributes<HTMLParagraphElement>, 'children' | 'id'>;
|
|
179
|
+
};
|
|
180
|
+
declare const FormFieldLayout: React$1.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children"> & Omit<Partial<FormFieldInteractionStates>, "invalid"> & {
|
|
181
|
+
children: (bag: FormFieldLayoutBag) => ReactNode;
|
|
182
|
+
ids?: Partial<FormFieldLayoutIds>;
|
|
183
|
+
label?: ReactNode;
|
|
184
|
+
labelProps?: Omit<HTMLAttributes<HTMLLabelElement>, "children" | "id">;
|
|
185
|
+
invalidDescription?: ReactNode;
|
|
186
|
+
invalidDescriptionProps?: Omit<HTMLAttributes<HTMLDivElement>, "children" | "id">;
|
|
187
|
+
description?: ReactNode;
|
|
188
|
+
descriptionProps?: Omit<HTMLAttributes<HTMLParagraphElement>, "children" | "id">;
|
|
189
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
190
|
+
|
|
191
|
+
type FormValidationBehaviour = 'always' | 'touched' | 'submit';
|
|
192
|
+
type FormValue = Record<string, any>;
|
|
193
|
+
type FormEvent<T extends FormValue> = {
|
|
194
|
+
type: 'submit';
|
|
195
|
+
key: 'ALL';
|
|
196
|
+
values: T;
|
|
197
|
+
} | {
|
|
198
|
+
type: 'submitError';
|
|
199
|
+
key: 'ALL';
|
|
200
|
+
values: T;
|
|
201
|
+
errors: Partial<Record<keyof T, ReactNode>>;
|
|
202
|
+
} | {
|
|
203
|
+
type: 'reset';
|
|
204
|
+
key: 'ALL';
|
|
205
|
+
values: T;
|
|
206
|
+
errors: Partial<Record<keyof T, ReactNode>>;
|
|
207
|
+
} | {
|
|
208
|
+
type: 'onChange';
|
|
209
|
+
key: keyof T;
|
|
210
|
+
value: T[keyof T];
|
|
211
|
+
} | {
|
|
212
|
+
type: 'onError';
|
|
213
|
+
key: keyof T;
|
|
214
|
+
value: T[keyof T];
|
|
215
|
+
error: ReactNode;
|
|
216
|
+
};
|
|
217
|
+
type FormEventListener<T extends FormValue> = (event: FormEvent<T>) => void;
|
|
218
|
+
type FormValidator<T extends FormValue> = (value: T[keyof T]) => ReactNode;
|
|
219
|
+
type FormStoreProps<T extends FormValue> = {
|
|
220
|
+
initialValues: T;
|
|
221
|
+
hasTriedSubmitting?: boolean;
|
|
222
|
+
validators?: Partial<{
|
|
223
|
+
[K in keyof T]: (v: T[K]) => ReactNode;
|
|
224
|
+
}>;
|
|
225
|
+
validationBehaviour?: FormValidationBehaviour;
|
|
226
|
+
};
|
|
227
|
+
declare class FormStore<T extends FormValue> {
|
|
228
|
+
private values;
|
|
229
|
+
private initialValues;
|
|
230
|
+
private validators;
|
|
231
|
+
private validationBehaviour;
|
|
232
|
+
private hasTriedSubmitting;
|
|
233
|
+
private errors;
|
|
234
|
+
private touched;
|
|
235
|
+
private listeners;
|
|
236
|
+
constructor({ initialValues, hasTriedSubmitting, validators, validationBehaviour, }: FormStoreProps<T>);
|
|
237
|
+
getValue<K extends keyof T>(key: K): T[K];
|
|
238
|
+
getAllValues(): T;
|
|
239
|
+
setValue<K extends keyof T>(key: K, value: T[K]): void;
|
|
240
|
+
setValues(values: Partial<T>): void;
|
|
241
|
+
getTouched(key: keyof T): boolean;
|
|
242
|
+
setTouched(key: keyof T, isTouched?: boolean): void;
|
|
243
|
+
getHasError(): boolean;
|
|
244
|
+
getError(key: keyof T): ReactNode;
|
|
245
|
+
private setError;
|
|
246
|
+
changeValidationBehavoir(validationBehaviour: FormValidationBehaviour): void;
|
|
247
|
+
changeValidators(validators: Partial<Record<keyof T, FormValidator<T>>>): void;
|
|
248
|
+
validate(key: keyof T): void;
|
|
249
|
+
validateAll(): void;
|
|
250
|
+
subscribe(key: keyof T | 'ALL', listener: FormEventListener<T>): () => void;
|
|
251
|
+
private notify;
|
|
252
|
+
submit(): void;
|
|
253
|
+
reset(): void;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
type FormFieldFocusableElementProps = FormFieldAriaAttributes & {
|
|
257
|
+
id: string;
|
|
258
|
+
ref: (element: HTMLElement | null) => void;
|
|
259
|
+
};
|
|
260
|
+
type FormFieldBag<T extends FormValue, K extends keyof T> = {
|
|
261
|
+
dataProps: FormFieldDataHandling<T[K]>;
|
|
262
|
+
focusableElementProps: FormFieldFocusableElementProps;
|
|
263
|
+
interactionStates: FormFieldInteractionStates;
|
|
264
|
+
};
|
|
265
|
+
interface FormFieldProps<T extends FormValue, K extends keyof T> extends Omit<FormFieldLayoutProps, 'invalidDescription' | 'children'> {
|
|
266
|
+
children: (bag: FormFieldBag<T, K>) => ReactNode;
|
|
267
|
+
name: K;
|
|
268
|
+
}
|
|
269
|
+
type FormFieldDataHandling<T> = {
|
|
270
|
+
value: T;
|
|
271
|
+
onValueChange: (value: T) => void;
|
|
272
|
+
onEditComplete: (value: T) => void;
|
|
273
|
+
};
|
|
274
|
+
declare const FormField: <T extends FormValue, K extends keyof T>({ children, name, ...props }: FormFieldProps<T, K>) => react_jsx_runtime.JSX.Element;
|
|
275
|
+
|
|
276
|
+
type UseCreateFormProps<T extends FormValue> = FormStoreProps<T> & {
|
|
277
|
+
onFormSubmit: (values: T) => void;
|
|
278
|
+
onFormError?: (values: T, errors: Partial<Record<keyof T, ReactNode>>) => void;
|
|
279
|
+
onValueChange?: (values: T) => void;
|
|
280
|
+
scrollToElements?: boolean;
|
|
281
|
+
scrollOptions?: ScrollIntoViewOptions;
|
|
282
|
+
};
|
|
283
|
+
type UseCreateFormResult<T extends FormValue> = {
|
|
284
|
+
store: FormStore<T>;
|
|
285
|
+
reset: () => void;
|
|
286
|
+
submit: () => void;
|
|
287
|
+
update: (value: Partial<T>) => void;
|
|
288
|
+
validateAll: () => void;
|
|
289
|
+
getDataProps: <K extends keyof T>(key: K) => FormFieldDataHandling<T[K]>;
|
|
290
|
+
getError: (key: keyof T) => ReactNode;
|
|
291
|
+
getValue: <K extends keyof T>(key: K) => T[K];
|
|
292
|
+
registerRef: (key: keyof T) => (el: HTMLElement | null) => void;
|
|
293
|
+
};
|
|
294
|
+
declare function useCreateForm<T extends FormValue>({ onFormSubmit, onFormError, onValueChange, initialValues, hasTriedSubmitting, validators, validationBehaviour, scrollToElements, scrollOptions, }: UseCreateFormProps<T>): UseCreateFormResult<T>;
|
|
295
|
+
|
|
296
|
+
type FormContextType<T extends FormValue> = UseCreateFormResult<T>;
|
|
297
|
+
declare const FormContext: React$1.Context<FormContextType<any>>;
|
|
298
|
+
type FormProviderProps<T extends FormValue> = PropsWithChildren & {
|
|
299
|
+
state: FormContextType<T>;
|
|
300
|
+
};
|
|
301
|
+
declare const FormProvider: <T extends FormValue>({ children, state }: FormProviderProps<T>) => react_jsx_runtime.JSX.Element;
|
|
302
|
+
declare function useForm<T extends FormValue>(): FormContextType<T>;
|
|
303
|
+
type FormFieldResult<T> = {
|
|
304
|
+
value: T;
|
|
305
|
+
error: ReactNode;
|
|
306
|
+
dataProps: FormFieldDataHandling<T>;
|
|
307
|
+
registerRef: (el: HTMLElement | null) => void;
|
|
308
|
+
};
|
|
309
|
+
declare function useFormField<T extends FormValue, K extends keyof T>(key: K): FormFieldResult<T[K]> | null;
|
|
310
|
+
|
|
475
311
|
interface CarouselSlideProps extends HTMLAttributes<HTMLDivElement> {
|
|
476
312
|
isSelected: boolean;
|
|
477
313
|
index: number;
|
|
@@ -499,33 +335,6 @@ type CarouselProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
|
499
335
|
};
|
|
500
336
|
declare const Carousel: ({ children, animationTime, isLooping, isAutoPlaying, autoLoopingTimeOut, autoLoopAnimationTime, hintNext, arrows, dots, blurColor, heightClassName, slideClassName, slideContainerProps, onSlideChanged, ...props }: CarouselProps) => react_jsx_runtime.JSX.Element;
|
|
501
337
|
|
|
502
|
-
declare const chipColors: readonly ["primary", "secondary", "positive", "warning", "negative", "neutral", "none"];
|
|
503
|
-
type ChipColor = typeof chipColors[number];
|
|
504
|
-
type ChipVariant = 'normal' | 'fullyRounded' | 'none';
|
|
505
|
-
type ChipSize = 'small' | 'medium' | 'large' | 'none';
|
|
506
|
-
declare const ChipUtil: {
|
|
507
|
-
colors: readonly ["primary", "secondary", "positive", "warning", "negative", "neutral", "none"];
|
|
508
|
-
};
|
|
509
|
-
type ChipProps = HTMLAttributes<HTMLDivElement> & PropsWithChildren<{
|
|
510
|
-
color?: ChipColor;
|
|
511
|
-
size?: ChipSize;
|
|
512
|
-
icon?: boolean;
|
|
513
|
-
variant?: ChipVariant;
|
|
514
|
-
trailingIcon?: ReactNode;
|
|
515
|
-
}>;
|
|
516
|
-
/**
|
|
517
|
-
* A component for displaying a single chip
|
|
518
|
-
*/
|
|
519
|
-
declare const Chip: ({ children, trailingIcon, color, size, variant, className, ...restProps }: ChipProps) => react_jsx_runtime.JSX.Element;
|
|
520
|
-
type ChipListProps = {
|
|
521
|
-
list: ChipProps[];
|
|
522
|
-
className?: string;
|
|
523
|
-
};
|
|
524
|
-
/**
|
|
525
|
-
* A component for displaying a list of chips
|
|
526
|
-
*/
|
|
527
|
-
declare const ChipList: ({ list, className }: ChipListProps) => react_jsx_runtime.JSX.Element;
|
|
528
|
-
|
|
529
338
|
type DividerInserterProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
530
339
|
children: ReactNode[];
|
|
531
340
|
divider: (index: number) => ReactNode;
|
|
@@ -537,11 +346,43 @@ type DividerInserterProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & {
|
|
|
537
346
|
*/
|
|
538
347
|
declare const DividerInserter: ({ children, divider, className, ...restProps }: DividerInserterProps) => react_jsx_runtime.JSX.Element;
|
|
539
348
|
|
|
540
|
-
type
|
|
349
|
+
type DrawerAligment = 'left' | 'right' | 'bottom' | 'top';
|
|
350
|
+
type DrawerProps = HTMLAttributes<HTMLDivElement> & {
|
|
351
|
+
isOpen: boolean;
|
|
352
|
+
alignment: DrawerAligment;
|
|
353
|
+
titleElement: ReactNode;
|
|
354
|
+
description: ReactNode;
|
|
355
|
+
isAnimated?: boolean;
|
|
356
|
+
containerClassName?: string;
|
|
357
|
+
backgroundClassName?: string;
|
|
358
|
+
onClose: () => void;
|
|
359
|
+
};
|
|
360
|
+
declare const Drawer: ({ children, isOpen, alignment, titleElement, description, containerClassName, backgroundClassName, onClose, ...props }: DrawerProps) => React$1.ReactPortal;
|
|
361
|
+
|
|
362
|
+
type ExpandableRootProps = HTMLAttributes<HTMLDivElement> & {
|
|
541
363
|
isExpanded?: boolean;
|
|
542
|
-
|
|
364
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
365
|
+
disabled?: boolean;
|
|
366
|
+
allowContainerToggle?: boolean;
|
|
543
367
|
};
|
|
544
|
-
declare const
|
|
368
|
+
declare const ExpandableRoot: React$1.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
369
|
+
isExpanded?: boolean;
|
|
370
|
+
onExpandedChange?: (isExpanded: boolean) => void;
|
|
371
|
+
disabled?: boolean;
|
|
372
|
+
allowContainerToggle?: boolean;
|
|
373
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
374
|
+
type ExpandableHeaderProps = HTMLAttributes<HTMLDivElement> & {
|
|
375
|
+
isUsingDefaultIcon?: boolean;
|
|
376
|
+
};
|
|
377
|
+
declare const ExpandableHeader: React$1.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
378
|
+
isUsingDefaultIcon?: boolean;
|
|
379
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
380
|
+
type ExpandableContentProps = HTMLAttributes<HTMLDivElement> & {
|
|
381
|
+
forceMount?: boolean;
|
|
382
|
+
};
|
|
383
|
+
declare const ExpandableContent: React$1.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
384
|
+
forceMount?: boolean;
|
|
385
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
545
386
|
type IconBuilder = (expanded: boolean) => ReactNode;
|
|
546
387
|
type ExpandableProps = PropsWithChildren<{
|
|
547
388
|
id?: string;
|
|
@@ -549,9 +390,6 @@ type ExpandableProps = PropsWithChildren<{
|
|
|
549
390
|
icon?: IconBuilder;
|
|
550
391
|
isExpanded?: boolean;
|
|
551
392
|
onChange?: (isExpanded: boolean) => void;
|
|
552
|
-
/**
|
|
553
|
-
* Whether the expansion should only happen when the header is clicked or on the entire component
|
|
554
|
-
*/
|
|
555
393
|
clickOnlyOnHeader?: boolean;
|
|
556
394
|
disabled?: boolean;
|
|
557
395
|
className?: string;
|
|
@@ -559,18 +397,12 @@ type ExpandableProps = PropsWithChildren<{
|
|
|
559
397
|
contentClassName?: string;
|
|
560
398
|
contentExpandedClassName?: string;
|
|
561
399
|
}>;
|
|
562
|
-
|
|
563
|
-
* A Component for showing and hiding content
|
|
564
|
-
*/
|
|
565
|
-
declare const Expandable: React.ForwardRefExoticComponent<{
|
|
400
|
+
declare const Expandable: React$1.ForwardRefExoticComponent<{
|
|
566
401
|
id?: string;
|
|
567
402
|
label: ReactNode;
|
|
568
403
|
icon?: IconBuilder;
|
|
569
404
|
isExpanded?: boolean;
|
|
570
405
|
onChange?: (isExpanded: boolean) => void;
|
|
571
|
-
/**
|
|
572
|
-
* Whether the expansion should only happen when the header is clicked or on the entire component
|
|
573
|
-
*/
|
|
574
406
|
clickOnlyOnHeader?: boolean;
|
|
575
407
|
disabled?: boolean;
|
|
576
408
|
className?: string;
|
|
@@ -579,16 +411,13 @@ declare const Expandable: React.ForwardRefExoticComponent<{
|
|
|
579
411
|
contentExpandedClassName?: string;
|
|
580
412
|
} & {
|
|
581
413
|
children?: ReactNode | undefined;
|
|
582
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
583
|
-
declare const ExpandableUncontrolled: React.ForwardRefExoticComponent<{
|
|
414
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
415
|
+
declare const ExpandableUncontrolled: React$1.ForwardRefExoticComponent<{
|
|
584
416
|
id?: string;
|
|
585
417
|
label: ReactNode;
|
|
586
418
|
icon?: IconBuilder;
|
|
587
419
|
isExpanded?: boolean;
|
|
588
420
|
onChange?: (isExpanded: boolean) => void;
|
|
589
|
-
/**
|
|
590
|
-
* Whether the expansion should only happen when the header is clicked or on the entire component
|
|
591
|
-
*/
|
|
592
421
|
clickOnlyOnHeader?: boolean;
|
|
593
422
|
disabled?: boolean;
|
|
594
423
|
className?: string;
|
|
@@ -597,28 +426,16 @@ declare const ExpandableUncontrolled: React.ForwardRefExoticComponent<{
|
|
|
597
426
|
contentExpandedClassName?: string;
|
|
598
427
|
} & {
|
|
599
428
|
children?: ReactNode | undefined;
|
|
600
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
429
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
601
430
|
|
|
602
|
-
type ContentType = {
|
|
603
|
-
type: 'markdown';
|
|
604
|
-
value: string;
|
|
605
|
-
} | {
|
|
606
|
-
type: 'custom';
|
|
607
|
-
value: ReactNode;
|
|
608
|
-
};
|
|
609
431
|
type FAQItem = Pick<ExpandableProps, 'isExpanded' | 'className'> & {
|
|
610
|
-
id: string;
|
|
611
432
|
title: string;
|
|
612
|
-
content:
|
|
433
|
+
content: ReactNode;
|
|
613
434
|
};
|
|
614
435
|
type FAQSectionProps = {
|
|
615
436
|
entries: FAQItem[];
|
|
616
|
-
expandableClassName?: string;
|
|
617
437
|
};
|
|
618
|
-
|
|
619
|
-
* Description
|
|
620
|
-
*/
|
|
621
|
-
declare const FAQSection: ({ entries, expandableClassName }: FAQSectionProps) => react_jsx_runtime.JSX.Element;
|
|
438
|
+
declare const FAQSection: ({ entries, }: FAQSectionProps) => react_jsx_runtime.JSX.Element;
|
|
622
439
|
|
|
623
440
|
type FloatingElementAlignment = 'beforeStart' | 'afterStart' | 'center' | 'beforeEnd' | 'afterEnd';
|
|
624
441
|
type CalculatePositionOptions = {
|
|
@@ -654,7 +471,7 @@ type FloatingContainerProps = HTMLAttributes<HTMLDivElement> & UseFloatingElemen
|
|
|
654
471
|
* Notes:
|
|
655
472
|
* - to hide it use the hidden attribute as other means break the functionality
|
|
656
473
|
*/
|
|
657
|
-
declare const FloatingContainer: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
474
|
+
declare const FloatingContainer: React$1.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
658
475
|
verticalAlignment?: FloatingElementAlignment;
|
|
659
476
|
horizontalAlignment?: FloatingElementAlignment;
|
|
660
477
|
screenPadding?: number;
|
|
@@ -670,7 +487,26 @@ declare const FloatingContainer: React.ForwardRefExoticComponent<HTMLAttributes<
|
|
|
670
487
|
* Use sparingly
|
|
671
488
|
*/
|
|
672
489
|
backgroundOverlay?: ReactNode;
|
|
673
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
490
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
491
|
+
|
|
492
|
+
interface InfiniteScrollProps {
|
|
493
|
+
itemCount: number;
|
|
494
|
+
/** How many items to keep in the DOM at once (default: 30) */
|
|
495
|
+
bufferSize?: number;
|
|
496
|
+
/** How many items to add tp the DOM when reaching one end at once (default: 7) */
|
|
497
|
+
stepSize?: number;
|
|
498
|
+
/** Pixels from edge to trigger a fetch/shift (default: 30) */
|
|
499
|
+
scrollThreshold?: number;
|
|
500
|
+
/** Initial index to center on or start at (optional) */
|
|
501
|
+
initialIndex?: number;
|
|
502
|
+
/** Render prop for each item */
|
|
503
|
+
children: (index: number) => ReactNode;
|
|
504
|
+
/** Optional classname for the scroll container */
|
|
505
|
+
className?: string;
|
|
506
|
+
/** Optional style for the container */
|
|
507
|
+
style?: React.CSSProperties;
|
|
508
|
+
}
|
|
509
|
+
declare function InfiniteScroll({ children, itemCount, bufferSize, scrollThreshold, stepSize, initialIndex, className, style, }: InfiniteScrollProps): react_jsx_runtime.JSX.Element;
|
|
674
510
|
|
|
675
511
|
type ListBoxItemProps = HTMLAttributes<HTMLLIElement> & {
|
|
676
512
|
value: string;
|
|
@@ -705,94 +541,276 @@ type ListBoxProps = Omit<ListBoxPrimitiveProps, 'isMultiple' | 'value' | 'onSele
|
|
|
705
541
|
value?: string;
|
|
706
542
|
onSelectionChanged?: (value: string) => void;
|
|
707
543
|
};
|
|
708
|
-
declare const ListBox: React__default.ForwardRefExoticComponent<Omit<ListBoxPrimitiveProps, "value" | "onSelectionChanged" | "isMultiple"> & {
|
|
709
|
-
value?: string;
|
|
710
|
-
onSelectionChanged?: (value: string) => void;
|
|
711
|
-
} & React__default.RefAttributes<HTMLUListElement>>;
|
|
712
|
-
type ListBoxUncontrolledProps = ListBoxProps;
|
|
713
|
-
declare const ListBoxUncontrolled: ({ value: initialValue, onSelectionChanged, ...props }: ListBoxUncontrolledProps) => react_jsx_runtime.JSX.Element;
|
|
544
|
+
declare const ListBox: React__default.ForwardRefExoticComponent<Omit<ListBoxPrimitiveProps, "value" | "onSelectionChanged" | "isMultiple"> & {
|
|
545
|
+
value?: string;
|
|
546
|
+
onSelectionChanged?: (value: string) => void;
|
|
547
|
+
} & React__default.RefAttributes<HTMLUListElement>>;
|
|
548
|
+
type ListBoxUncontrolledProps = ListBoxProps;
|
|
549
|
+
declare const ListBoxUncontrolled: ({ value: initialValue, onSelectionChanged, ...props }: ListBoxUncontrolledProps) => react_jsx_runtime.JSX.Element;
|
|
550
|
+
|
|
551
|
+
type ASTNodeModifierType = 'none' | 'italic' | 'bold' | 'underline' | 'font-space' | 'primary' | 'secondary' | 'warn' | 'positive' | 'negative';
|
|
552
|
+
declare const astNodeInserterType: readonly ["helpwave", "newline"];
|
|
553
|
+
type ASTNodeInserterType = typeof astNodeInserterType[number];
|
|
554
|
+
type ASTNodeDefaultType = 'text';
|
|
555
|
+
type ASTNode = {
|
|
556
|
+
type: ASTNodeModifierType;
|
|
557
|
+
children: ASTNode[];
|
|
558
|
+
} | {
|
|
559
|
+
type: ASTNodeInserterType;
|
|
560
|
+
} | {
|
|
561
|
+
type: ASTNodeDefaultType;
|
|
562
|
+
text: string;
|
|
563
|
+
};
|
|
564
|
+
type ASTNodeInterpreterProps = {
|
|
565
|
+
node: ASTNode;
|
|
566
|
+
isRoot?: boolean;
|
|
567
|
+
className?: string;
|
|
568
|
+
};
|
|
569
|
+
declare const ASTNodeInterpreter: ({ node, isRoot, className, }: ASTNodeInterpreterProps) => string | react_jsx_runtime.JSX.Element;
|
|
570
|
+
type MarkdownInterpreterProps = {
|
|
571
|
+
text: string;
|
|
572
|
+
className?: string;
|
|
573
|
+
};
|
|
574
|
+
declare const MarkdownInterpreter: ({ text, className }: MarkdownInterpreterProps) => react_jsx_runtime.JSX.Element;
|
|
575
|
+
|
|
576
|
+
interface TabInfo {
|
|
577
|
+
id: string;
|
|
578
|
+
labelId: string;
|
|
579
|
+
label: ReactNode;
|
|
580
|
+
}
|
|
581
|
+
type PortalState = {
|
|
582
|
+
id: string;
|
|
583
|
+
ref: RefObject<HTMLElement>;
|
|
584
|
+
};
|
|
585
|
+
interface TabContextType {
|
|
586
|
+
tabs: {
|
|
587
|
+
activeId: string | null;
|
|
588
|
+
setActiveId: Dispatch<SetStateAction<string | null>>;
|
|
589
|
+
register: (info: TabInfo) => void;
|
|
590
|
+
unregister: (id: string) => void;
|
|
591
|
+
info?: TabInfo[];
|
|
592
|
+
};
|
|
593
|
+
portal: {
|
|
594
|
+
id: string | null;
|
|
595
|
+
element: HTMLElement | null;
|
|
596
|
+
setPortal: (state: PortalState | null) => void;
|
|
597
|
+
};
|
|
598
|
+
}
|
|
599
|
+
declare function useTabContext(): TabContextType;
|
|
600
|
+
type TabSwitcherProps = PropsWithChildren;
|
|
601
|
+
declare function TabSwitcher({ children }: TabSwitcherProps): react_jsx_runtime.JSX.Element;
|
|
602
|
+
type TabListProps = HTMLAttributes<HTMLUListElement>;
|
|
603
|
+
declare function TabList({ ...props }: TabListProps): react_jsx_runtime.JSX.Element;
|
|
604
|
+
type TabViewProps = HTMLAttributes<HTMLDivElement>;
|
|
605
|
+
declare function TabView({ ...props }: TabViewProps): react_jsx_runtime.JSX.Element;
|
|
606
|
+
type TabProps = HTMLAttributes<HTMLDivElement> & {
|
|
607
|
+
label: string;
|
|
608
|
+
};
|
|
609
|
+
declare function TabPanel({ label, ...props }: TabProps): react_jsx_runtime.JSX.Element;
|
|
610
|
+
|
|
611
|
+
type TextImageColor = 'primary' | 'secondary' | 'dark';
|
|
612
|
+
type TextImageProps = {
|
|
613
|
+
title: string;
|
|
614
|
+
description: string;
|
|
615
|
+
imageUrl: string;
|
|
616
|
+
onShowMoreClicked?: () => void;
|
|
617
|
+
color?: TextImageColor;
|
|
618
|
+
badge?: string;
|
|
619
|
+
contentClassName?: string;
|
|
620
|
+
className?: string;
|
|
621
|
+
};
|
|
622
|
+
/**
|
|
623
|
+
* A Component for layering a Text upon an image
|
|
624
|
+
*/
|
|
625
|
+
declare const TextImage: ({ title, description, imageUrl, onShowMoreClicked, color, badge, contentClassName, className, }: TextImageProps) => react_jsx_runtime.JSX.Element;
|
|
626
|
+
|
|
627
|
+
type VerticalDividerProps = {
|
|
628
|
+
width?: number;
|
|
629
|
+
height?: number;
|
|
630
|
+
strokeWidth?: number;
|
|
631
|
+
dashGap?: number;
|
|
632
|
+
dashLength?: number;
|
|
633
|
+
};
|
|
634
|
+
/**
|
|
635
|
+
* A Component for creating a vertical Divider
|
|
636
|
+
*/
|
|
637
|
+
declare const VerticalDivider: ({ width, height, strokeWidth, dashGap, dashLength, }: VerticalDividerProps) => react_jsx_runtime.JSX.Element;
|
|
638
|
+
|
|
639
|
+
type VisibilityProps = PropsWithChildren & {
|
|
640
|
+
isVisible?: boolean;
|
|
641
|
+
};
|
|
642
|
+
declare function Visibility({ children, isVisible }: VisibilityProps): react_jsx_runtime.JSX.Element;
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* The different sizes for a button
|
|
646
|
+
*/
|
|
647
|
+
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | null;
|
|
648
|
+
type ButtonColoringStyle = 'outline' | 'solid' | 'text' | 'tonal' | null;
|
|
649
|
+
type ButtonLayout = 'icon' | 'default' | null;
|
|
650
|
+
declare const buttonColorsList: readonly ["primary", "secondary", "positive", "warning", "negative", "neutral"];
|
|
651
|
+
/**
|
|
652
|
+
* The allowed colors for the Button
|
|
653
|
+
*/
|
|
654
|
+
type ButtonColor = typeof buttonColorsList[number] | null;
|
|
655
|
+
declare const ButtonUtil: {
|
|
656
|
+
colors: readonly ["primary", "secondary", "positive", "warning", "negative", "neutral"];
|
|
657
|
+
};
|
|
658
|
+
/**
|
|
659
|
+
* The shard properties between all button types
|
|
660
|
+
*/
|
|
661
|
+
type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
662
|
+
/**
|
|
663
|
+
* @default 'medium'
|
|
664
|
+
*/
|
|
665
|
+
size?: ButtonSize;
|
|
666
|
+
layout?: ButtonLayout;
|
|
667
|
+
color?: ButtonColor;
|
|
668
|
+
/**
|
|
669
|
+
* @default 'solid'
|
|
670
|
+
*/
|
|
671
|
+
coloringStyle?: ButtonColoringStyle;
|
|
672
|
+
allowClickEventPropagation?: boolean;
|
|
673
|
+
};
|
|
674
|
+
/**
|
|
675
|
+
* A button with a solid background and different sizes
|
|
676
|
+
*/
|
|
677
|
+
declare const Button: React$1.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
678
|
+
/**
|
|
679
|
+
* @default 'medium'
|
|
680
|
+
*/
|
|
681
|
+
size?: ButtonSize;
|
|
682
|
+
layout?: ButtonLayout;
|
|
683
|
+
color?: ButtonColor;
|
|
684
|
+
/**
|
|
685
|
+
* @default 'solid'
|
|
686
|
+
*/
|
|
687
|
+
coloringStyle?: ButtonColoringStyle;
|
|
688
|
+
allowClickEventPropagation?: boolean;
|
|
689
|
+
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
690
|
+
|
|
691
|
+
type DialogPosition = 'top' | 'center' | 'none';
|
|
692
|
+
type DialogProps = HTMLAttributes<HTMLDivElement> & {
|
|
693
|
+
/** Whether the dialog is currently open */
|
|
694
|
+
isOpen: boolean;
|
|
695
|
+
/** Title of the Dialog used for accessibility */
|
|
696
|
+
titleElement: ReactNode;
|
|
697
|
+
/** Description of the Dialog used for accessibility */
|
|
698
|
+
description: ReactNode;
|
|
699
|
+
/** Callback when the dialog tries to close */
|
|
700
|
+
onClose?: () => void;
|
|
701
|
+
/** Styling for the background */
|
|
702
|
+
backgroundClassName?: string;
|
|
703
|
+
/** If true shows a close button and sends onClose on background clicks */
|
|
704
|
+
isModal?: boolean;
|
|
705
|
+
position?: DialogPosition;
|
|
706
|
+
isAnimated?: boolean;
|
|
707
|
+
containerClassName?: string;
|
|
708
|
+
};
|
|
709
|
+
/**
|
|
710
|
+
* A generic dialog window which is managed by its parent
|
|
711
|
+
*/
|
|
712
|
+
declare const Dialog: ({ children, isOpen, titleElement, description, isModal, onClose, backgroundClassName, position, containerClassName, ...props }: PropsWithChildren<DialogProps>) => React$1.ReactPortal;
|
|
714
713
|
|
|
715
|
-
type
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
type: ASTNodeModifierType;
|
|
721
|
-
children: ASTNode[];
|
|
722
|
-
} | {
|
|
723
|
-
type: ASTNodeInserterType;
|
|
724
|
-
} | {
|
|
725
|
-
type: ASTNodeDefaultType;
|
|
726
|
-
text: string;
|
|
714
|
+
type ConfirmDialogType = 'positive' | 'negative' | 'neutral' | 'primary';
|
|
715
|
+
type ButtonOverwriteType = {
|
|
716
|
+
text?: string;
|
|
717
|
+
color?: ButtonColor;
|
|
718
|
+
disabled?: boolean;
|
|
727
719
|
};
|
|
728
|
-
type
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
720
|
+
type ConfirmDialogProps = Omit<DialogProps, 'onClose'> & {
|
|
721
|
+
isShowingDecline?: boolean;
|
|
722
|
+
requireAnswer?: boolean;
|
|
723
|
+
onCancel: () => void;
|
|
724
|
+
onConfirm: () => void;
|
|
725
|
+
onDecline?: () => void;
|
|
726
|
+
confirmType?: ConfirmDialogType;
|
|
727
|
+
/**
|
|
728
|
+
* Order: Cancel, Decline, Confirm
|
|
729
|
+
*/
|
|
730
|
+
buttonOverwrites?: [ButtonOverwriteType, ButtonOverwriteType, ButtonOverwriteType];
|
|
732
731
|
};
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
732
|
+
/**
|
|
733
|
+
* A Dialog for asking the user for confirmation
|
|
734
|
+
*/
|
|
735
|
+
declare const ConfirmDialog: ({ children, onCancel, onConfirm, onDecline, confirmType, buttonOverwrites, className, ...restProps }: PropsWithChildren<ConfirmDialogProps>) => react_jsx_runtime.JSX.Element;
|
|
736
|
+
|
|
737
|
+
type DiscardChangesDialogProps = Omit<ConfirmDialogProps, 'onDecline' | 'onConfirm' | 'buttonOverwrites' | 'titleElement' | 'description'> & {
|
|
738
|
+
isShowingDecline?: boolean;
|
|
739
|
+
requireAnswer?: boolean;
|
|
740
|
+
onCancel: () => void;
|
|
741
|
+
onSave: () => void;
|
|
742
|
+
onDontSave: () => void;
|
|
743
|
+
titleOverwrite?: ReactNode;
|
|
744
|
+
descriptionOverwrite?: ReactNode;
|
|
737
745
|
};
|
|
738
|
-
declare const
|
|
746
|
+
declare const DiscardChangesDialog: ({ children, onCancel, onSave, onDontSave, titleOverwrite, descriptionOverwrite, ...props }: PropsWithChildren<DiscardChangesDialogProps>) => react_jsx_runtime.JSX.Element;
|
|
739
747
|
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
interface TabContextType {
|
|
744
|
-
active: string | null;
|
|
745
|
-
setActive: (id: string) => void;
|
|
746
|
-
register: (id: string, label: string) => void;
|
|
747
|
-
unregister: (id: string) => void;
|
|
748
|
-
tabs?: TabInfo[];
|
|
749
|
-
}
|
|
750
|
-
declare function useTabContext(): TabContextType;
|
|
751
|
-
type TabViewProps = HTMLAttributes<HTMLDivElement> & {
|
|
752
|
-
outerDivProps?: HTMLAttributes<HTMLDivElement>;
|
|
753
|
-
children?: ReactNode;
|
|
754
|
-
onTabChanged?: (tabId: string) => void;
|
|
755
|
-
initialTabIndex?: number;
|
|
748
|
+
type UseDelayOptionsResolved = {
|
|
749
|
+
delay: number;
|
|
750
|
+
disabled: boolean;
|
|
756
751
|
};
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
752
|
+
type UseDelayOptions = Partial<UseDelayOptionsResolved>;
|
|
753
|
+
declare function useDelay(options?: UseDelayOptions): {
|
|
754
|
+
restartTimer: (onDelayFinish: () => void) => void;
|
|
755
|
+
clearTimer: () => void;
|
|
756
|
+
hasActiveTimer: boolean;
|
|
761
757
|
};
|
|
762
|
-
declare function Tab({ id: customId, label, children, ...props }: TabProps): react_jsx_runtime.JSX.Element;
|
|
763
758
|
|
|
764
|
-
type
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
contentClassName?: string;
|
|
773
|
-
className?: string;
|
|
759
|
+
type EditCompleteOptionsResolved = {
|
|
760
|
+
onBlur: boolean;
|
|
761
|
+
afterDelay: boolean;
|
|
762
|
+
allowEnterComplete?: boolean;
|
|
763
|
+
} & Omit<UseDelayOptionsResolved, 'disabled'>;
|
|
764
|
+
type EditCompleteOptions = Partial<EditCompleteOptionsResolved>;
|
|
765
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'value'> & Partial<FormFieldDataHandling<string>> & Partial<FormFieldInteractionStates> & {
|
|
766
|
+
editCompleteOptions?: EditCompleteOptions;
|
|
774
767
|
};
|
|
775
768
|
/**
|
|
776
|
-
* A Component for
|
|
769
|
+
* A Component for inputting text or other information
|
|
770
|
+
*
|
|
771
|
+
* Its state is managed must be managed by the parent
|
|
777
772
|
*/
|
|
778
|
-
declare const
|
|
773
|
+
declare const Input: React__default.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "value"> & Partial<FormFieldDataHandling<string>> & Partial<FormFieldInteractionStates> & {
|
|
774
|
+
editCompleteOptions?: EditCompleteOptions;
|
|
775
|
+
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
776
|
+
/**
|
|
777
|
+
* A Component for inputting text or other information
|
|
778
|
+
*
|
|
779
|
+
* Its state is managed by the component itself
|
|
780
|
+
*/
|
|
781
|
+
declare const InputUncontrolled: React__default.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "value"> & Partial<FormFieldDataHandling<string>> & Partial<FormFieldInteractionStates> & {
|
|
782
|
+
editCompleteOptions?: EditCompleteOptions;
|
|
783
|
+
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
779
784
|
|
|
780
|
-
type
|
|
781
|
-
|
|
782
|
-
height?: number;
|
|
783
|
-
strokeWidth?: number;
|
|
784
|
-
dashGap?: number;
|
|
785
|
-
dashLength?: number;
|
|
785
|
+
type InputModalProps = ConfirmDialogProps & {
|
|
786
|
+
inputs: InputProps[];
|
|
786
787
|
};
|
|
787
788
|
/**
|
|
788
|
-
* A
|
|
789
|
+
* A modal for receiving multiple inputs
|
|
789
790
|
*/
|
|
790
|
-
declare const
|
|
791
|
+
declare const InputDialog: ({ inputs, buttonOverwrites, ...props }: InputModalProps) => react_jsx_runtime.JSX.Element;
|
|
791
792
|
|
|
792
|
-
type
|
|
793
|
-
|
|
793
|
+
type LanguageDialogProps = Omit<DialogProps, 'titleElement' | 'description'> & PropsWithChildren<{
|
|
794
|
+
titleOverwrite?: ReactNode;
|
|
795
|
+
descriptionOverwrite?: ReactNode;
|
|
796
|
+
}>;
|
|
797
|
+
/**
|
|
798
|
+
* A Dialog for selecting the Language
|
|
799
|
+
*
|
|
800
|
+
* The State of open needs to be managed by the parent
|
|
801
|
+
*/
|
|
802
|
+
declare const LanguageDialog: ({ onClose, titleOverwrite, descriptionOverwrite, ...props }: LanguageDialogProps) => react_jsx_runtime.JSX.Element;
|
|
803
|
+
|
|
804
|
+
type ThemeDialogProps = Omit<DialogProps, 'titleElement' | 'description'> & {
|
|
805
|
+
titleOverwrite?: ReactNode;
|
|
806
|
+
descriptionOverwrite?: ReactNode;
|
|
794
807
|
};
|
|
795
|
-
|
|
808
|
+
/**
|
|
809
|
+
* A Dialog for selecting the Theme
|
|
810
|
+
*
|
|
811
|
+
* The State of open needs to be managed by the parent
|
|
812
|
+
*/
|
|
813
|
+
declare const ThemeDialog: ({ onClose, titleOverwrite, descriptionOverwrite, ...props }: PropsWithChildren<ThemeDialogProps>) => react_jsx_runtime.JSX.Element;
|
|
796
814
|
|
|
797
815
|
type ErrorComponentProps = {
|
|
798
816
|
errorText?: string;
|
|
@@ -828,52 +846,30 @@ type LoadingAnimationProps = {
|
|
|
828
846
|
*/
|
|
829
847
|
declare const LoadingAnimation: ({ loadingText, classname }: LoadingAnimationProps) => react_jsx_runtime.JSX.Element;
|
|
830
848
|
|
|
831
|
-
type LoadingButtonProps = {
|
|
832
|
-
isLoading?: boolean;
|
|
833
|
-
} & ButtonProps;
|
|
834
|
-
declare const LoadingButton: ({ isLoading, size, onClick, ...rest }: LoadingButtonProps) => react_jsx_runtime.JSX.Element;
|
|
835
|
-
|
|
836
849
|
type LoadingComponentProps = {
|
|
837
850
|
className?: string;
|
|
838
851
|
};
|
|
839
852
|
declare const LoadingContainer: ({ className }: LoadingComponentProps) => react_jsx_runtime.JSX.Element;
|
|
840
853
|
|
|
841
|
-
type
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
direction?: 'clockwise' | 'counterclockwise';
|
|
846
|
-
rotation?: number;
|
|
847
|
-
};
|
|
848
|
-
declare const sizeMapping: {
|
|
849
|
-
small: number;
|
|
850
|
-
medium: number;
|
|
851
|
-
big: number;
|
|
854
|
+
type BreadCrumbLinkProps = ComponentProps<typeof Link>;
|
|
855
|
+
declare const BreadCrumbLink: ({ ...props }: BreadCrumbLinkProps) => react_jsx_runtime.JSX.Element;
|
|
856
|
+
type BreadCrumbGroupProps = HTMLAttributes<HTMLUListElement> & {
|
|
857
|
+
divider?: ReactNode | null;
|
|
852
858
|
};
|
|
853
859
|
/**
|
|
854
|
-
* A
|
|
855
|
-
*
|
|
856
|
-
* Start rotation is 3 o'clock and fills counterclockwise
|
|
860
|
+
* A component for showing a hierarchical link structure with an independent link on each element
|
|
857
861
|
*
|
|
858
|
-
*
|
|
862
|
+
* e.g. Organizations/Ward/<id>
|
|
859
863
|
*/
|
|
860
|
-
declare const
|
|
861
|
-
|
|
864
|
+
declare const BreadCrumbGroup: ({ children, divider, ...props }: BreadCrumbGroupProps) => react_jsx_runtime.JSX.Element;
|
|
862
865
|
type Crumb = {
|
|
863
|
-
|
|
864
|
-
|
|
866
|
+
href: string;
|
|
867
|
+
label: ReactNode;
|
|
865
868
|
};
|
|
866
869
|
type BreadCrumbProps = {
|
|
867
870
|
crumbs: Crumb[];
|
|
868
|
-
linkClassName?: string;
|
|
869
|
-
containerClassName?: string;
|
|
870
871
|
};
|
|
871
|
-
|
|
872
|
-
* A component for showing a hierarchical link structure with an independent link on each element
|
|
873
|
-
*
|
|
874
|
-
* e.g. Organizations/Ward/<id>
|
|
875
|
-
*/
|
|
876
|
-
declare const BreadCrumb: ({ crumbs, linkClassName, containerClassName }: BreadCrumbProps) => react_jsx_runtime.JSX.Element;
|
|
872
|
+
declare const BreadCrumbs: ({ crumbs }: BreadCrumbProps) => react_jsx_runtime.JSX.Element;
|
|
877
873
|
|
|
878
874
|
type SimpleNavigationItem = {
|
|
879
875
|
label: ReactNode;
|
|
@@ -881,132 +877,51 @@ type SimpleNavigationItem = {
|
|
|
881
877
|
external?: boolean;
|
|
882
878
|
};
|
|
883
879
|
type SubItemNavigationItem = {
|
|
884
|
-
label: ReactNode;
|
|
885
|
-
items?: SimpleNavigationItem[];
|
|
886
|
-
};
|
|
887
|
-
type NavigationItemType = SimpleNavigationItem | SubItemNavigationItem;
|
|
888
|
-
type NavigationItemListProps = Omit<HTMLAttributes<HTMLElement>, 'children'> & {
|
|
889
|
-
items: NavigationItemType[];
|
|
890
|
-
};
|
|
891
|
-
declare const NavigationItemList: ({ items, ...restProps }: NavigationItemListProps) => react_jsx_runtime.JSX.Element;
|
|
892
|
-
type NavigationProps = NavigationItemListProps;
|
|
893
|
-
declare const Navigation: ({ ...props }: NavigationProps) => react_jsx_runtime.JSX.Element;
|
|
894
|
-
|
|
895
|
-
type PaginationProps = {
|
|
896
|
-
pageIndex: number;
|
|
897
|
-
pageCount: number;
|
|
898
|
-
onPageChanged: (page: number) => void;
|
|
899
|
-
className?: string;
|
|
900
|
-
style?: CSSProperties;
|
|
901
|
-
};
|
|
902
|
-
/**
|
|
903
|
-
* A Component showing the pagination allowing first, before, next and last page navigation
|
|
904
|
-
*/
|
|
905
|
-
declare const Pagination: ({ pageIndex, pageCount, onPageChanged, className, style, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
906
|
-
|
|
907
|
-
type StepperState = {
|
|
908
|
-
currentStep: number;
|
|
909
|
-
seenSteps: Set<number>;
|
|
910
|
-
};
|
|
911
|
-
type StepperBarProps = {
|
|
912
|
-
state?: StepperState;
|
|
913
|
-
numberOfSteps: number;
|
|
914
|
-
disabledSteps?: Set<number>;
|
|
915
|
-
onChange: (state: StepperState) => void;
|
|
916
|
-
onFinish: () => void;
|
|
917
|
-
finishText?: string;
|
|
918
|
-
showDots?: boolean;
|
|
919
|
-
className?: string;
|
|
920
|
-
};
|
|
921
|
-
/**
|
|
922
|
-
* A Component for stepping
|
|
923
|
-
*/
|
|
924
|
-
declare const StepperBar: ({ state, numberOfSteps, disabledSteps, onChange, onFinish, finishText, showDots, className, }: StepperBarProps) => react_jsx_runtime.JSX.Element;
|
|
925
|
-
declare const StepperBarUncontrolled: ({ state, onChange, ...props }: StepperBarProps) => react_jsx_runtime.JSX.Element;
|
|
926
|
-
|
|
927
|
-
type PropertyBaseProps = {
|
|
928
|
-
name: string;
|
|
929
|
-
input: (props: {
|
|
930
|
-
softRequired: boolean;
|
|
931
|
-
hasValue: boolean;
|
|
932
|
-
}) => ReactNode;
|
|
933
|
-
onRemove?: () => void;
|
|
934
|
-
hasValue: boolean;
|
|
935
|
-
softRequired?: boolean;
|
|
936
|
-
readOnly?: boolean;
|
|
937
|
-
icon?: ReactNode;
|
|
938
|
-
className?: string;
|
|
939
|
-
};
|
|
940
|
-
/**
|
|
941
|
-
* A component for showing a properties with uniform styling
|
|
942
|
-
*/
|
|
943
|
-
declare const PropertyBase: ({ name, input, softRequired, hasValue, icon, readOnly, onRemove, className, }: PropertyBaseProps) => react_jsx_runtime.JSX.Element;
|
|
944
|
-
|
|
945
|
-
type CheckboxPropertyProps = Omit<PropertyBaseProps, 'icon' | 'input' | 'hasValue' | 'onRemove'> & {
|
|
946
|
-
value?: boolean;
|
|
947
|
-
onChange?: (value: boolean) => void;
|
|
948
|
-
};
|
|
949
|
-
/**
|
|
950
|
-
* An Input component for a boolean values
|
|
951
|
-
*/
|
|
952
|
-
declare const CheckboxProperty: ({ value, onChange, readOnly, ...baseProps }: CheckboxPropertyProps) => react_jsx_runtime.JSX.Element;
|
|
953
|
-
|
|
954
|
-
type DatePropertyProps = Omit<PropertyBaseProps, 'icon' | 'input' | 'hasValue'> & {
|
|
955
|
-
value?: Date;
|
|
956
|
-
onChange?: (date: Date) => void;
|
|
957
|
-
onEditComplete?: (value: Date) => void;
|
|
958
|
-
type?: 'dateTime' | 'date';
|
|
959
|
-
};
|
|
960
|
-
/**
|
|
961
|
-
* An Input for date properties
|
|
962
|
-
*/
|
|
963
|
-
declare const DateProperty: ({ value, onChange, onEditComplete, readOnly, type, ...baseProps }: DatePropertyProps) => react_jsx_runtime.JSX.Element;
|
|
964
|
-
|
|
965
|
-
type MultiSelectPropertyProps = Omit<PropertyBaseProps, 'icon' | 'input' | 'hasValue' | 'className'> & PropsWithChildren<{
|
|
966
|
-
values: string[];
|
|
967
|
-
onValuesChanged?: (value: string[]) => void;
|
|
968
|
-
}>;
|
|
969
|
-
/**
|
|
970
|
-
* An Input for MultiSelect properties
|
|
971
|
-
*/
|
|
972
|
-
declare const MultiSelectProperty: ({ children, values, onValuesChanged, ...props }: MultiSelectPropertyProps) => react_jsx_runtime.JSX.Element;
|
|
973
|
-
|
|
974
|
-
type NumberPropertyProps = Omit<PropertyBaseProps, 'icon' | 'input' | 'hasValue'> & {
|
|
975
|
-
value?: number;
|
|
976
|
-
suffix?: string;
|
|
977
|
-
onChange?: (value: number) => void;
|
|
978
|
-
onEditComplete?: (value: number) => void;
|
|
880
|
+
label: ReactNode;
|
|
881
|
+
items?: SimpleNavigationItem[];
|
|
979
882
|
};
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
883
|
+
type NavigationItemType = SimpleNavigationItem | SubItemNavigationItem;
|
|
884
|
+
type NavigationItemListProps = Omit<HTMLAttributes<HTMLElement>, 'children'> & {
|
|
885
|
+
items: NavigationItemType[];
|
|
886
|
+
};
|
|
887
|
+
declare const NavigationItemList: ({ items, ...restProps }: NavigationItemListProps) => react_jsx_runtime.JSX.Element;
|
|
888
|
+
type NavigationProps = NavigationItemListProps;
|
|
889
|
+
declare const Navigation: ({ ...props }: NavigationProps) => react_jsx_runtime.JSX.Element;
|
|
984
890
|
|
|
985
|
-
type
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
891
|
+
type PaginationProps = {
|
|
892
|
+
pageIndex: number;
|
|
893
|
+
pageCount: number;
|
|
894
|
+
onPageChanged: (page: number) => void;
|
|
895
|
+
className?: string;
|
|
896
|
+
style?: CSSProperties;
|
|
897
|
+
};
|
|
991
898
|
/**
|
|
992
|
-
*
|
|
899
|
+
* A Component showing the pagination allowing first, before, next and last page navigation
|
|
993
900
|
*/
|
|
994
|
-
declare const
|
|
901
|
+
declare const Pagination: ({ pageIndex, pageCount, onPageChanged, className, style, }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
995
902
|
|
|
996
|
-
type
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
903
|
+
type StepperState = {
|
|
904
|
+
currentStep: number;
|
|
905
|
+
seenSteps: Set<number>;
|
|
906
|
+
};
|
|
907
|
+
type StepperBarProps = {
|
|
908
|
+
state?: StepperState;
|
|
909
|
+
numberOfSteps: number;
|
|
910
|
+
disabledSteps?: Set<number>;
|
|
911
|
+
onChange: (state: StepperState) => void;
|
|
912
|
+
onFinish: () => void;
|
|
913
|
+
finishText?: string;
|
|
914
|
+
showDots?: boolean;
|
|
915
|
+
className?: string;
|
|
1000
916
|
};
|
|
1001
917
|
/**
|
|
1002
|
-
*
|
|
918
|
+
* A Component for stepping
|
|
1003
919
|
*/
|
|
1004
|
-
declare const
|
|
920
|
+
declare const StepperBar: ({ state, numberOfSteps, disabledSteps, onChange, onFinish, finishText, showDots, className, }: StepperBarProps) => react_jsx_runtime.JSX.Element;
|
|
921
|
+
declare const StepperBarUncontrolled: ({ state, onChange, ...props }: StepperBarProps) => react_jsx_runtime.JSX.Element;
|
|
1005
922
|
|
|
1006
|
-
type
|
|
1007
|
-
|
|
1008
|
-
};
|
|
1009
|
-
declare const FillerRowElement: ({ className }: FillerRowElementProps) => react_jsx_runtime.JSX.Element;
|
|
923
|
+
type FillerCellProps = HTMLAttributes<HTMLDivElement>;
|
|
924
|
+
declare const FillerCell: ({ ...props }: FillerCellProps) => react_jsx_runtime.JSX.Element;
|
|
1010
925
|
|
|
1011
926
|
declare const TableFilters: {
|
|
1012
927
|
dateRange: (row: any, columnId: any, filterValue: [Date | null, Date | null]) => boolean;
|
|
@@ -1019,14 +934,27 @@ type TableFilterButtonProps<T = unknown> = {
|
|
|
1019
934
|
};
|
|
1020
935
|
declare const TableFilterButton: <T>({ filterType, column, }: TableFilterButtonProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1021
936
|
|
|
937
|
+
type BagFunction<B, V = ReactNode> = (bag: B) => V;
|
|
938
|
+
type BagFunctionOrValue<B, V> = BagFunction<B, V> | V;
|
|
939
|
+
type BagFunctionOrNode<B> = BagFunction<B> | ReactNode;
|
|
940
|
+
type PropsWithBagFunction<B, P = unknown> = P & {
|
|
941
|
+
children?: BagFunction<B>;
|
|
942
|
+
};
|
|
943
|
+
type PropsWithBagFunctionOrChildren<B, P = unknown> = P & {
|
|
944
|
+
children?: BagFunctionOrNode<B>;
|
|
945
|
+
};
|
|
946
|
+
declare const BagFunctionUtil: {
|
|
947
|
+
resolve: <B, V = ReactNode>(bagFunctionOrValue: BagFunctionOrValue<B, V>, bag: B) => V;
|
|
948
|
+
};
|
|
949
|
+
|
|
1022
950
|
declare module '@tanstack/react-table' {
|
|
1023
951
|
interface ColumnMeta<TData extends RowData, TValue> {
|
|
1024
952
|
className?: string;
|
|
1025
953
|
filterType?: TableFilterType;
|
|
1026
954
|
}
|
|
1027
955
|
interface TableMeta<TData> {
|
|
1028
|
-
headerRowClassName?:
|
|
1029
|
-
bodyRowClassName?: string
|
|
956
|
+
headerRowClassName?: string;
|
|
957
|
+
bodyRowClassName?: BagFunctionOrValue<TData, string>;
|
|
1030
958
|
}
|
|
1031
959
|
interface FilterFns {
|
|
1032
960
|
dateRange: FilterFn<unknown>;
|
|
@@ -1075,28 +1003,25 @@ type TableSortButtonProps = ButtonProps & {
|
|
|
1075
1003
|
*/
|
|
1076
1004
|
declare const TableSortButton: ({ sortDirection, invert, color, size, className, sortingIndexDisplay, ...props }: TableSortButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1077
1005
|
|
|
1078
|
-
type CheckBoxSize = '
|
|
1079
|
-
type CheckboxProps = HTMLAttributes<HTMLDivElement> & {
|
|
1080
|
-
checked?: boolean;
|
|
1081
|
-
disabled?: boolean;
|
|
1006
|
+
type CheckBoxSize = 'sm' | 'md' | 'lg' | null;
|
|
1007
|
+
type CheckboxProps = HTMLAttributes<HTMLDivElement> & Partial<FormFieldInteractionStates> & Partial<FormFieldDataHandling<boolean>> & {
|
|
1082
1008
|
indeterminate?: boolean;
|
|
1083
|
-
invalid?: boolean;
|
|
1084
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
1085
1009
|
size?: CheckBoxSize;
|
|
1010
|
+
alwaysShowCheckIcon?: boolean;
|
|
1086
1011
|
};
|
|
1087
1012
|
/**
|
|
1088
1013
|
* A Tristate checkbox
|
|
1089
1014
|
*
|
|
1090
1015
|
* The state is managed by the parent
|
|
1091
1016
|
*/
|
|
1092
|
-
declare const Checkbox: ({
|
|
1017
|
+
declare const Checkbox: ({ value, indeterminate, required, invalid, disabled, readOnly, onValueChange, onEditComplete, size, alwaysShowCheckIcon, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
1093
1018
|
type CheckboxUncontrolledProps = CheckboxProps;
|
|
1094
1019
|
/**
|
|
1095
1020
|
* A Tristate checkbox
|
|
1096
1021
|
*
|
|
1097
1022
|
* The state is managed by this component
|
|
1098
1023
|
*/
|
|
1099
|
-
declare const CheckboxUncontrolled: ({
|
|
1024
|
+
declare const CheckboxUncontrolled: ({ value: initialValue, onValueChange, ...props }: CheckboxUncontrolledProps) => react_jsx_runtime.JSX.Element;
|
|
1100
1025
|
|
|
1101
1026
|
type Position$1 = 'top' | 'bottom' | 'left' | 'right';
|
|
1102
1027
|
type CopyToClipboardWrapperProps = PropsWithChildren<{
|
|
@@ -1124,21 +1049,6 @@ type CopyToClipboardWrapperProps = PropsWithChildren<{
|
|
|
1124
1049
|
*/
|
|
1125
1050
|
declare const CopyToClipboardWrapper: ({ children, textToCopy, tooltipClassName, containerClassName, position, zIndex, }: CopyToClipboardWrapperProps) => react_jsx_runtime.JSX.Element;
|
|
1126
1051
|
|
|
1127
|
-
type DateTimePickerMode = 'date' | 'time' | 'dateTime';
|
|
1128
|
-
type DateTimePickerProps = {
|
|
1129
|
-
mode?: DateTimePickerMode;
|
|
1130
|
-
value?: Date;
|
|
1131
|
-
start?: Date;
|
|
1132
|
-
end?: Date;
|
|
1133
|
-
onChange?: (date: Date) => void;
|
|
1134
|
-
datePickerProps?: Omit<DatePickerProps, 'onChange' | 'value' | 'start' | 'end'>;
|
|
1135
|
-
timePickerProps?: Omit<TimePickerProps, 'onChange' | 'time' | 'maxHeight'>;
|
|
1136
|
-
};
|
|
1137
|
-
/**
|
|
1138
|
-
* A Component for picking a Date and Time
|
|
1139
|
-
*/
|
|
1140
|
-
declare const DateTimePicker: ({ value, start, end, mode, onChange, timePickerProps, datePickerProps, }: DateTimePickerProps) => react_jsx_runtime.JSX.Element;
|
|
1141
|
-
|
|
1142
1052
|
type PopoverHorizontalAlignment = 'leftOutside' | 'leftInside' | 'rightOutside' | 'rightInside' | 'center';
|
|
1143
1053
|
type PopoverVerticalAlignment = 'topOutside' | 'topInside' | 'bottomOutside' | 'bottomInside' | 'center';
|
|
1144
1054
|
type PopoverPositionOptionsResolved = {
|
|
@@ -1164,8 +1074,9 @@ type MenuBag = {
|
|
|
1164
1074
|
toggleOpen: () => void;
|
|
1165
1075
|
close: () => void;
|
|
1166
1076
|
};
|
|
1167
|
-
type MenuProps
|
|
1168
|
-
|
|
1077
|
+
type MenuProps = {
|
|
1078
|
+
children: (bag: MenuBag) => ReactNode | ReactNode;
|
|
1079
|
+
trigger: (bag: MenuBag, ref: (el: HTMLElement | null) => void) => ReactNode;
|
|
1169
1080
|
/**
|
|
1170
1081
|
* @default 'l'
|
|
1171
1082
|
*/
|
|
@@ -1178,7 +1089,7 @@ type MenuProps<T> = PropsWithBagFunctionOrChildren<MenuBag> & {
|
|
|
1178
1089
|
/**
|
|
1179
1090
|
* A Menu Component to allow the user to see different functions
|
|
1180
1091
|
*/
|
|
1181
|
-
declare const Menu:
|
|
1092
|
+
declare const Menu: ({ trigger, children, alignmentHorizontal, alignmentVertical, showOnHover, disabled, menuClassName, }: MenuProps) => react_jsx_runtime.JSX.Element;
|
|
1182
1093
|
|
|
1183
1094
|
type ScrollPickerProps<T> = {
|
|
1184
1095
|
options: T[];
|
|
@@ -1193,19 +1104,19 @@ type ScrollPickerProps<T> = {
|
|
|
1193
1104
|
declare const ScrollPicker: <T>({ options, mapping, selected, onChange, disabled, }: ScrollPickerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1194
1105
|
|
|
1195
1106
|
type SelectIconAppearance = 'left' | 'right' | 'none';
|
|
1196
|
-
type SelectRootProps = PropsWithChildren
|
|
1107
|
+
type SelectRootProps = PropsWithChildren & {
|
|
1197
1108
|
id?: string;
|
|
1198
1109
|
value?: string;
|
|
1199
|
-
|
|
1110
|
+
onValueChange?: (value: string) => void;
|
|
1200
1111
|
values?: string[];
|
|
1201
|
-
|
|
1112
|
+
onValuesChange?: (value: string[]) => void;
|
|
1202
1113
|
isOpen?: boolean;
|
|
1203
1114
|
disabled?: boolean;
|
|
1204
1115
|
invalid?: boolean;
|
|
1205
1116
|
isMultiSelect?: boolean;
|
|
1206
1117
|
iconAppearance?: SelectIconAppearance;
|
|
1207
|
-
}
|
|
1208
|
-
declare const SelectRoot: ({ children, id, value,
|
|
1118
|
+
};
|
|
1119
|
+
declare const SelectRoot: ({ children, id, value, onValueChange, values, onValuesChange, isOpen, disabled, invalid, isMultiSelect, iconAppearance, }: SelectRootProps) => react_jsx_runtime.JSX.Element;
|
|
1209
1120
|
type SelectOptionProps = Omit<HTMLAttributes<HTMLLIElement>, 'children'> & {
|
|
1210
1121
|
value: string;
|
|
1211
1122
|
disabled?: boolean;
|
|
@@ -1245,99 +1156,347 @@ declare const SelectContent: React__default.ForwardRefExoticComponent<HTMLAttrib
|
|
|
1245
1156
|
orientation?: Orientation;
|
|
1246
1157
|
containerClassName?: string;
|
|
1247
1158
|
} & React__default.RefAttributes<HTMLUListElement>>;
|
|
1248
|
-
type SelectProps = Omit<SelectRootProps, 'isMultiSelect' | 'values' | '
|
|
1159
|
+
type SelectProps = Omit<SelectRootProps, 'isMultiSelect' | 'values' | 'onValuesChange'> & {
|
|
1249
1160
|
contentPanelProps?: SelectContentProps;
|
|
1250
1161
|
buttonProps?: Omit<SelectButtonProps, 'selectedDisplay'> & {
|
|
1251
1162
|
selectedDisplay?: (value: string) => ReactNode;
|
|
1252
1163
|
};
|
|
1253
1164
|
};
|
|
1254
|
-
declare const Select: React__default.ForwardRefExoticComponent<Omit<SelectRootProps, "values" | "
|
|
1165
|
+
declare const Select: React__default.ForwardRefExoticComponent<Omit<SelectRootProps, "values" | "onValuesChange" | "isMultiSelect"> & {
|
|
1255
1166
|
contentPanelProps?: SelectContentProps;
|
|
1256
1167
|
buttonProps?: Omit<SelectButtonProps, "selectedDisplay"> & {
|
|
1257
1168
|
selectedDisplay?: (value: string) => ReactNode;
|
|
1258
1169
|
};
|
|
1259
1170
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1260
1171
|
type SelectUncontrolledProps = SelectProps;
|
|
1261
|
-
declare const SelectUncontrolled: React__default.ForwardRefExoticComponent<Omit<SelectRootProps, "values" | "
|
|
1172
|
+
declare const SelectUncontrolled: React__default.ForwardRefExoticComponent<Omit<SelectRootProps, "values" | "onValuesChange" | "isMultiSelect"> & {
|
|
1262
1173
|
contentPanelProps?: SelectContentProps;
|
|
1263
1174
|
buttonProps?: Omit<SelectButtonProps, "selectedDisplay"> & {
|
|
1264
1175
|
selectedDisplay?: (value: string) => ReactNode;
|
|
1265
1176
|
};
|
|
1266
1177
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1267
|
-
type MultiSelectProps = Omit<SelectRootProps, 'isMultiSelect' | 'value' | '
|
|
1178
|
+
type MultiSelectProps = Omit<SelectRootProps, 'isMultiSelect' | 'value' | 'values' | 'onValueChange' | 'onValuesChange'> & {
|
|
1179
|
+
value?: string[];
|
|
1180
|
+
onValueChange?: (value: string[]) => void;
|
|
1268
1181
|
contentPanelProps?: SelectContentProps;
|
|
1269
1182
|
buttonProps?: SelectButtonProps;
|
|
1270
1183
|
};
|
|
1271
|
-
declare const MultiSelect: React__default.ForwardRefExoticComponent<Omit<SelectRootProps, "value" | "
|
|
1184
|
+
declare const MultiSelect: React__default.ForwardRefExoticComponent<Omit<SelectRootProps, "values" | "value" | "onValueChange" | "onValuesChange" | "isMultiSelect"> & {
|
|
1185
|
+
value?: string[];
|
|
1186
|
+
onValueChange?: (value: string[]) => void;
|
|
1272
1187
|
contentPanelProps?: SelectContentProps;
|
|
1273
1188
|
buttonProps?: SelectButtonProps;
|
|
1274
1189
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1275
|
-
|
|
1276
|
-
|
|
1190
|
+
declare const MultiSelectUncontrolled: React__default.ForwardRefExoticComponent<Omit<SelectRootProps, "values" | "value" | "onValueChange" | "onValuesChange" | "isMultiSelect"> & {
|
|
1191
|
+
value?: string[];
|
|
1192
|
+
onValueChange?: (value: string[]) => void;
|
|
1277
1193
|
contentPanelProps?: SelectContentProps;
|
|
1278
1194
|
buttonProps?: SelectButtonProps;
|
|
1279
1195
|
} & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1280
|
-
type MultiSelectChipDisplayProps = Omit<SelectRootProps, 'isMultiSelect' | 'value' | '
|
|
1196
|
+
type MultiSelectChipDisplayProps = Omit<SelectRootProps, 'isMultiSelect' | 'value' | 'values' | 'onValueChange' | 'onValuesChange'> & {
|
|
1197
|
+
value?: string[];
|
|
1198
|
+
onValueChange?: (value: string[]) => void;
|
|
1199
|
+
contentPanelProps?: SelectContentProps;
|
|
1200
|
+
chipDisplayProps?: SelectChipDisplayProps;
|
|
1201
|
+
};
|
|
1202
|
+
declare const MultiSelectChipDisplay: React__default.ForwardRefExoticComponent<Omit<SelectRootProps, "values" | "value" | "onValueChange" | "onValuesChange" | "isMultiSelect"> & {
|
|
1203
|
+
value?: string[];
|
|
1204
|
+
onValueChange?: (value: string[]) => void;
|
|
1205
|
+
contentPanelProps?: SelectContentProps;
|
|
1206
|
+
chipDisplayProps?: SelectChipDisplayProps;
|
|
1207
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
1208
|
+
type MultiSelectChipDisplayUncontrolledProps = MultiSelectChipDisplayProps;
|
|
1209
|
+
declare const MultiSelectChipDisplayUncontrolled: React__default.ForwardRefExoticComponent<Omit<SelectRootProps, "values" | "value" | "onValueChange" | "onValuesChange" | "isMultiSelect"> & {
|
|
1210
|
+
value?: string[];
|
|
1211
|
+
onValueChange?: (value: string[]) => void;
|
|
1281
1212
|
contentPanelProps?: SelectContentProps;
|
|
1282
1213
|
chipDisplayProps?: SelectChipDisplayProps;
|
|
1214
|
+
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
1215
|
+
|
|
1216
|
+
type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value'> & Partial<FormFieldDataHandling<string>> & Partial<FormFieldInteractionStates> & {
|
|
1217
|
+
saveDelayOptions?: UseDelayOptions;
|
|
1218
|
+
};
|
|
1219
|
+
/**
|
|
1220
|
+
* A Textarea component for inputting longer texts
|
|
1221
|
+
*
|
|
1222
|
+
* The State is managed by the parent
|
|
1223
|
+
*/
|
|
1224
|
+
declare const Textarea: React$1.ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "value"> & Partial<FormFieldDataHandling<string>> & Partial<FormFieldInteractionStates> & {
|
|
1225
|
+
saveDelayOptions?: UseDelayOptions;
|
|
1226
|
+
} & React$1.RefAttributes<HTMLTextAreaElement>>;
|
|
1227
|
+
/**
|
|
1228
|
+
* A Textarea component that is not controlled by its parent
|
|
1229
|
+
*/
|
|
1230
|
+
declare const TextareaUncontrolled: ({ value: initialValue, onValueChange, ...props }: TextareaProps) => react_jsx_runtime.JSX.Element;
|
|
1231
|
+
type TextareaWithHeadlineProps = Omit<TextareaProps, 'defaultStyle'> & {
|
|
1232
|
+
headline: ReactNode;
|
|
1233
|
+
headlineProps: Omit<LabelHTMLAttributes<HTMLLabelElement>, 'children'>;
|
|
1234
|
+
containerClassName?: string;
|
|
1235
|
+
};
|
|
1236
|
+
declare const TextareaWithHeadline: ({ id, headline, headlineProps, disabled, className, containerClassName, ...props }: TextareaWithHeadlineProps) => react_jsx_runtime.JSX.Element;
|
|
1237
|
+
|
|
1238
|
+
declare const themes: readonly ["light", "dark", "system"];
|
|
1239
|
+
type ThemeType = typeof themes[number];
|
|
1240
|
+
type ResolvedTheme = Exclude<ThemeType, 'system'>;
|
|
1241
|
+
declare const ThemeUtil: {
|
|
1242
|
+
themes: readonly ["light", "dark", "system"];
|
|
1243
|
+
};
|
|
1244
|
+
type ThemeContextType = {
|
|
1245
|
+
theme: ThemeType;
|
|
1246
|
+
resolvedTheme: ResolvedTheme;
|
|
1247
|
+
setTheme: Dispatch<SetStateAction<ThemeType>>;
|
|
1248
|
+
};
|
|
1249
|
+
declare const ThemeContext: React$1.Context<ThemeContextType>;
|
|
1250
|
+
type ThemeProviderProps = PropsWithChildren & Partial<ThemeConfig> & {
|
|
1251
|
+
/**
|
|
1252
|
+
* Only set this if you want to control the theme yourself
|
|
1253
|
+
*/
|
|
1254
|
+
theme?: ThemeType;
|
|
1255
|
+
};
|
|
1256
|
+
declare const ThemeProvider: ({ children, theme, initialTheme }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1257
|
+
declare const useTheme: () => ThemeContextType;
|
|
1258
|
+
|
|
1259
|
+
declare const hightideTranslationLocales: readonly ["de-DE", "en-US"];
|
|
1260
|
+
type HightideTranslationLocales = typeof hightideTranslationLocales[number];
|
|
1261
|
+
type HightideTranslationEntries = {
|
|
1262
|
+
'add': string;
|
|
1263
|
+
'age': string;
|
|
1264
|
+
'all': string;
|
|
1265
|
+
'apply': string;
|
|
1266
|
+
'back': string;
|
|
1267
|
+
'cancel': string;
|
|
1268
|
+
'carousel': string;
|
|
1269
|
+
'change': string;
|
|
1270
|
+
'chooseLanguage': string;
|
|
1271
|
+
'chooseSlide': string;
|
|
1272
|
+
'chooseTheme': string;
|
|
1273
|
+
'clear': string;
|
|
1274
|
+
'clearValue': string;
|
|
1275
|
+
'click': string;
|
|
1276
|
+
'clickToCopy': string;
|
|
1277
|
+
'clickToSelect': string;
|
|
1278
|
+
'close': string;
|
|
1279
|
+
'confirm': string;
|
|
1280
|
+
'copied': string;
|
|
1281
|
+
'copy': string;
|
|
1282
|
+
'create': string;
|
|
1283
|
+
'decline': string;
|
|
1284
|
+
'delete': string;
|
|
1285
|
+
'discard': string;
|
|
1286
|
+
'discardChanges': string;
|
|
1287
|
+
'done': string;
|
|
1288
|
+
'edit': string;
|
|
1289
|
+
'endDate': string;
|
|
1290
|
+
'enterText': string;
|
|
1291
|
+
'entryDate': string;
|
|
1292
|
+
'error': string;
|
|
1293
|
+
'errorOccurred': string;
|
|
1294
|
+
'exit': string;
|
|
1295
|
+
'fieldRequiredError': string;
|
|
1296
|
+
'filter': string;
|
|
1297
|
+
'goodToSeeYou': string;
|
|
1298
|
+
'identifier': string;
|
|
1299
|
+
'invalidEmail': string;
|
|
1300
|
+
'invalidEmailError': string;
|
|
1301
|
+
'language': string;
|
|
1302
|
+
'less': string;
|
|
1303
|
+
'loading': string;
|
|
1304
|
+
'locale': string;
|
|
1305
|
+
'max': string;
|
|
1306
|
+
'maxLengthError': string;
|
|
1307
|
+
'min': string;
|
|
1308
|
+
'minLengthError': string;
|
|
1309
|
+
'more': string;
|
|
1310
|
+
'name': string;
|
|
1311
|
+
'next': string;
|
|
1312
|
+
'no': string;
|
|
1313
|
+
'none': string;
|
|
1314
|
+
'notEmpty': string;
|
|
1315
|
+
'nothingFound': string;
|
|
1316
|
+
'of': string;
|
|
1317
|
+
'optional': string;
|
|
1318
|
+
'outOfRangeNumber': (values: {
|
|
1319
|
+
min: number;
|
|
1320
|
+
max: number;
|
|
1321
|
+
}) => string;
|
|
1322
|
+
'outOfRangeSelectionItems': (values: {
|
|
1323
|
+
min: number;
|
|
1324
|
+
max: number;
|
|
1325
|
+
}) => string;
|
|
1326
|
+
'outOfRangeString': (values: {
|
|
1327
|
+
min: number;
|
|
1328
|
+
max: number;
|
|
1329
|
+
}) => string;
|
|
1330
|
+
'pleaseWait': string;
|
|
1331
|
+
'previous': string;
|
|
1332
|
+
'pThemes': (values: {
|
|
1333
|
+
count: number;
|
|
1334
|
+
}) => string;
|
|
1335
|
+
'remove': string;
|
|
1336
|
+
'removeProperty': string;
|
|
1337
|
+
'required': string;
|
|
1338
|
+
'reset': string;
|
|
1339
|
+
'rSortingOrderAfter': (values: {
|
|
1340
|
+
otherSortings: number;
|
|
1341
|
+
}) => string;
|
|
1342
|
+
'save': string;
|
|
1343
|
+
'saved': string;
|
|
1344
|
+
'search': string;
|
|
1345
|
+
'select': string;
|
|
1346
|
+
'selectOption': string;
|
|
1347
|
+
'sGender': (values: {
|
|
1348
|
+
gender: string;
|
|
1349
|
+
}) => string;
|
|
1350
|
+
'show': string;
|
|
1351
|
+
'showLess': string;
|
|
1352
|
+
'showMore': string;
|
|
1353
|
+
'showSlide': (values: {
|
|
1354
|
+
index: number;
|
|
1355
|
+
}) => string;
|
|
1356
|
+
'slide': string;
|
|
1357
|
+
'slideNavigation': string;
|
|
1358
|
+
'slideOf': (values: {
|
|
1359
|
+
index: number;
|
|
1360
|
+
length: number;
|
|
1361
|
+
}) => string;
|
|
1362
|
+
'startDate': string;
|
|
1363
|
+
'sThemeMode': (values: {
|
|
1364
|
+
theme: string;
|
|
1365
|
+
}) => string;
|
|
1366
|
+
'street': string;
|
|
1367
|
+
'submit': string;
|
|
1368
|
+
'success': string;
|
|
1369
|
+
'text': string;
|
|
1370
|
+
'time.ago': string;
|
|
1371
|
+
'time.agoDays': (values: {
|
|
1372
|
+
days: number;
|
|
1373
|
+
}) => string;
|
|
1374
|
+
'time.april': string;
|
|
1375
|
+
'time.august': string;
|
|
1376
|
+
'time.century': (values: {
|
|
1377
|
+
count: number;
|
|
1378
|
+
}) => string;
|
|
1379
|
+
'time.day': (values: {
|
|
1380
|
+
count: number;
|
|
1381
|
+
}) => string;
|
|
1382
|
+
'time.decade': (values: {
|
|
1383
|
+
count: number;
|
|
1384
|
+
}) => string;
|
|
1385
|
+
'time.december': string;
|
|
1386
|
+
'time.february': string;
|
|
1387
|
+
'time.hour': (values: {
|
|
1388
|
+
count: number;
|
|
1389
|
+
}) => string;
|
|
1390
|
+
'time.in': string;
|
|
1391
|
+
'time.inDays': (values: {
|
|
1392
|
+
days: number;
|
|
1393
|
+
}) => string;
|
|
1394
|
+
'time.january': string;
|
|
1395
|
+
'time.july': string;
|
|
1396
|
+
'time.june': string;
|
|
1397
|
+
'time.march': string;
|
|
1398
|
+
'time.may': string;
|
|
1399
|
+
'time.microsecond': (values: {
|
|
1400
|
+
count: number;
|
|
1401
|
+
}) => string;
|
|
1402
|
+
'time.millisecond': (values: {
|
|
1403
|
+
count: number;
|
|
1404
|
+
}) => string;
|
|
1405
|
+
'time.minute': (values: {
|
|
1406
|
+
count: number;
|
|
1407
|
+
}) => string;
|
|
1408
|
+
'time.month': (values: {
|
|
1409
|
+
count: number;
|
|
1410
|
+
}) => string;
|
|
1411
|
+
'time.nanosecond': (values: {
|
|
1412
|
+
count: number;
|
|
1413
|
+
}) => string;
|
|
1414
|
+
'time.november': string;
|
|
1415
|
+
'time.october': string;
|
|
1416
|
+
'time.second': (values: {
|
|
1417
|
+
count: number;
|
|
1418
|
+
}) => string;
|
|
1419
|
+
'time.september': string;
|
|
1420
|
+
'time.sMonthName': (values: {
|
|
1421
|
+
month: string;
|
|
1422
|
+
}) => string;
|
|
1423
|
+
'time.today': string;
|
|
1424
|
+
'time.tomorrow': string;
|
|
1425
|
+
'time.year': (values: {
|
|
1426
|
+
count: number;
|
|
1427
|
+
}) => string;
|
|
1428
|
+
'time.yesterday': string;
|
|
1429
|
+
'tooFewSelectionItems': (values: {
|
|
1430
|
+
min: number;
|
|
1431
|
+
}) => string;
|
|
1432
|
+
'tooLong': (values: {
|
|
1433
|
+
max: number;
|
|
1434
|
+
}) => string;
|
|
1435
|
+
'tooManySelectionItems': (values: {
|
|
1436
|
+
max: number;
|
|
1437
|
+
}) => string;
|
|
1438
|
+
'tooShort': (values: {
|
|
1439
|
+
min: number;
|
|
1440
|
+
}) => string;
|
|
1441
|
+
'unsavedChanges': string;
|
|
1442
|
+
'unsavedChangesSaveQuestion': string;
|
|
1443
|
+
'update': string;
|
|
1444
|
+
'value': string;
|
|
1445
|
+
'welcome': string;
|
|
1446
|
+
'yes': string;
|
|
1283
1447
|
};
|
|
1284
|
-
declare const
|
|
1285
|
-
contentPanelProps?: SelectContentProps;
|
|
1286
|
-
chipDisplayProps?: SelectChipDisplayProps;
|
|
1287
|
-
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
1288
|
-
type MultiSelectChipDisplayUncontrolledProps = MultiSelectChipDisplayProps;
|
|
1289
|
-
declare const MultiSelectChipDisplayUncontrolled: React__default.ForwardRefExoticComponent<Omit<SelectRootProps, "value" | "onValueChanged" | "isMultiSelect"> & {
|
|
1290
|
-
contentPanelProps?: SelectContentProps;
|
|
1291
|
-
chipDisplayProps?: SelectChipDisplayProps;
|
|
1292
|
-
} & React__default.RefAttributes<HTMLDivElement>>;
|
|
1448
|
+
declare const hightideTranslation: Translation<HightideTranslationLocales, Partial<HightideTranslationEntries>>;
|
|
1293
1449
|
|
|
1294
|
-
type
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
saveDelayOptions?: UseDelayOptions;
|
|
1301
|
-
};
|
|
1302
|
-
/**
|
|
1303
|
-
* A Textarea component for inputting longer texts
|
|
1304
|
-
*
|
|
1305
|
-
* The State is managed by the parent
|
|
1306
|
-
*/
|
|
1307
|
-
declare const Textarea: React.ForwardRefExoticComponent<Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "value"> & {
|
|
1308
|
-
/** Inside the area */
|
|
1309
|
-
value?: string;
|
|
1310
|
-
invalid?: boolean;
|
|
1311
|
-
onChangeText?: (text: string) => void;
|
|
1312
|
-
onEditCompleted?: (text: string) => void;
|
|
1313
|
-
saveDelayOptions?: UseDelayOptions;
|
|
1314
|
-
} & React.RefAttributes<HTMLTextAreaElement>>;
|
|
1315
|
-
/**
|
|
1316
|
-
* A Textarea component that is not controlled by its parent
|
|
1317
|
-
*/
|
|
1318
|
-
declare const TextareaUncontrolled: ({ value, onChangeText, ...props }: TextareaProps) => react_jsx_runtime.JSX.Element;
|
|
1319
|
-
type TextareaWithHeadlineProps = Omit<TextareaProps, 'defaultStyle'> & {
|
|
1320
|
-
headline: ReactNode;
|
|
1321
|
-
headlineProps: Omit<LabelProps, 'children'>;
|
|
1322
|
-
containerClassName?: string;
|
|
1323
|
-
};
|
|
1324
|
-
declare const TextareaWithHeadline: ({ id, headline, headlineProps, disabled, className, containerClassName, ...props }: TextareaWithHeadlineProps) => react_jsx_runtime.JSX.Element;
|
|
1450
|
+
type DeepPartial<T> = T extends string | number | boolean | bigint | symbol | null | undefined | Function ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends Map<infer K, infer V> ? Map<DeepPartial<K>, DeepPartial<V>> : T extends Set<infer U> ? Set<DeepPartial<U>> : T extends object ? {
|
|
1451
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
1452
|
+
} : T;
|
|
1453
|
+
type SuperSet<T, Base> = Base extends T ? T : never;
|
|
1454
|
+
type SingleOrArray<T> = T | T[];
|
|
1455
|
+
type Exact<T, U extends T> = U;
|
|
1325
1456
|
|
|
1326
|
-
type
|
|
1327
|
-
type TooltipProps = PropsWithChildren<{
|
|
1328
|
-
tooltip: ReactNode;
|
|
1457
|
+
type TooltipConfig = {
|
|
1329
1458
|
/**
|
|
1330
1459
|
* Number of milliseconds until the tooltip appears
|
|
1331
|
-
*
|
|
1332
|
-
* defaults to 400ms
|
|
1333
1460
|
*/
|
|
1334
|
-
appearDelay
|
|
1461
|
+
appearDelay: number;
|
|
1335
1462
|
/**
|
|
1336
1463
|
* Number of milliseconds until the tooltip disappears
|
|
1337
|
-
*
|
|
1338
|
-
* defaults to 50ms
|
|
1339
1464
|
*/
|
|
1340
|
-
disappearDelay
|
|
1465
|
+
disappearDelay: number;
|
|
1466
|
+
};
|
|
1467
|
+
type ThemeConfig = {
|
|
1468
|
+
/**
|
|
1469
|
+
* The initial theme to show when:
|
|
1470
|
+
* 1. The system preference is not or cannot be loaded
|
|
1471
|
+
* 2. The user has not set an app preference
|
|
1472
|
+
*/
|
|
1473
|
+
initialTheme: ResolvedTheme;
|
|
1474
|
+
};
|
|
1475
|
+
type LocalizationConfig = {
|
|
1476
|
+
/**
|
|
1477
|
+
* The initial locale to use when:
|
|
1478
|
+
* 1. The system preference is not or cannot be loaded
|
|
1479
|
+
* 2. The user has not set an app preference
|
|
1480
|
+
*/
|
|
1481
|
+
defaultLocale: HightideTranslationLocales;
|
|
1482
|
+
};
|
|
1483
|
+
type HightideConfig = {
|
|
1484
|
+
tooltip: TooltipConfig;
|
|
1485
|
+
theme: ThemeConfig;
|
|
1486
|
+
locale: LocalizationConfig;
|
|
1487
|
+
};
|
|
1488
|
+
type ConfigType = {
|
|
1489
|
+
config: HightideConfig;
|
|
1490
|
+
setConfig: (configOverwrite: DeepPartial<HightideConfig>) => void;
|
|
1491
|
+
};
|
|
1492
|
+
declare const HightideConfigContext: React$1.Context<ConfigType>;
|
|
1493
|
+
type HightideConfigProviderProps = PropsWithChildren & DeepPartial<HightideConfig>;
|
|
1494
|
+
declare const HightideConfigProvider: ({ children, ...initialOverwrite }: HightideConfigProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1495
|
+
declare const useHightideConfig: () => ConfigType;
|
|
1496
|
+
|
|
1497
|
+
type Position = 'top' | 'bottom' | 'left' | 'right';
|
|
1498
|
+
type TooltipProps = PropsWithChildren & Partial<TooltipConfig> & {
|
|
1499
|
+
tooltip: ReactNode;
|
|
1341
1500
|
/**
|
|
1342
1501
|
* Class names of additional styling properties for the tooltip
|
|
1343
1502
|
*/
|
|
@@ -1348,30 +1507,161 @@ type TooltipProps = PropsWithChildren<{
|
|
|
1348
1507
|
containerClassName?: string;
|
|
1349
1508
|
position?: Position;
|
|
1350
1509
|
disabled?: boolean;
|
|
1351
|
-
}
|
|
1510
|
+
};
|
|
1352
1511
|
/**
|
|
1353
1512
|
* A Component for showing a tooltip when hovering over Content
|
|
1354
1513
|
* @param tooltip The tooltip to show can be a text or any ReactNode
|
|
1355
1514
|
* @param children The Content for which the tooltip should be created
|
|
1356
|
-
* @param animationDelay The delay before the tooltip appears
|
|
1357
1515
|
* @param tooltipClassName Additional ClassNames for the Container of the tooltip
|
|
1358
1516
|
* @param containerClassName Additional ClassNames for the Container holding the content
|
|
1359
1517
|
* @param position The direction of the tooltip relative to the Container
|
|
1360
1518
|
* @constructor
|
|
1361
1519
|
*/
|
|
1362
|
-
declare const Tooltip: ({ tooltip, children, appearDelay, disappearDelay, tooltipClassName, containerClassName, position, disabled, }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
1520
|
+
declare const Tooltip: ({ tooltip, children, appearDelay: appearDelayOverwrite, disappearDelay: disappearDelayOverwrite, tooltipClassName, containerClassName, position, disabled, }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
1521
|
+
|
|
1522
|
+
type DurationJSON = {
|
|
1523
|
+
years: number;
|
|
1524
|
+
months: number;
|
|
1525
|
+
days: number;
|
|
1526
|
+
hours: number;
|
|
1527
|
+
minutes: number;
|
|
1528
|
+
seconds: number;
|
|
1529
|
+
milliseconds: number;
|
|
1530
|
+
};
|
|
1531
|
+
declare class Duration {
|
|
1532
|
+
readonly years: number;
|
|
1533
|
+
readonly months: number;
|
|
1534
|
+
readonly days: number;
|
|
1535
|
+
readonly hours: number;
|
|
1536
|
+
readonly minutes: number;
|
|
1537
|
+
readonly seconds: number;
|
|
1538
|
+
readonly milliseconds: number;
|
|
1539
|
+
constructor({ years, months, days, hours, minutes, seconds, milliseconds, }?: Partial<DurationJSON>);
|
|
1540
|
+
/** Date arithmetic */
|
|
1541
|
+
addTo(date: Date): Date;
|
|
1542
|
+
subtractFrom(date: Date): Date;
|
|
1543
|
+
/** Duration arithmetic */
|
|
1544
|
+
add(other: Duration): Duration;
|
|
1545
|
+
subtract(other: Duration): Duration;
|
|
1546
|
+
equals(other: Duration): boolean;
|
|
1547
|
+
toJSON(): DurationJSON;
|
|
1548
|
+
/** Static difference */
|
|
1549
|
+
static difference(start: Date, end: Date): Duration;
|
|
1550
|
+
private applyTo;
|
|
1551
|
+
private assertRanges;
|
|
1552
|
+
valueOf(): number;
|
|
1553
|
+
}
|
|
1554
|
+
|
|
1555
|
+
declare const monthsList: readonly ["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"];
|
|
1556
|
+
type Month = typeof monthsList[number];
|
|
1557
|
+
declare const weekDayList: readonly ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
|
|
1558
|
+
type WeekDay = typeof weekDayList[number];
|
|
1559
|
+
declare const formatDate: (date: Date) => string;
|
|
1560
|
+
declare const formatDateTime: (date: Date) => string;
|
|
1561
|
+
declare const changeDuration: (date: Date, duration: Partial<DurationJSON>, isAdding?: boolean) => Date;
|
|
1562
|
+
declare const addDuration: (date: Date, duration: Partial<DurationJSON>) => Date;
|
|
1563
|
+
declare const subtractDuration: (date: Date, duration: Partial<DurationJSON>) => Date;
|
|
1564
|
+
declare const getBetweenDuration: (startDate: Date, endDate: Date) => Partial<DurationJSON>;
|
|
1565
|
+
/** Checks if a given date is in the range of two dates
|
|
1566
|
+
*
|
|
1567
|
+
* An undefined value for startDate or endDate means no bound for the start or end respectively
|
|
1568
|
+
*/
|
|
1569
|
+
declare const isInTimeSpan: (value: Date, startDate?: Date, endDate?: Date) => boolean;
|
|
1570
|
+
declare const getWeeksForCalenderMonth: (date: Date, weekStart: WeekDay, weeks?: number) => Date[][];
|
|
1571
|
+
declare const DateUtils: {
|
|
1572
|
+
monthsList: readonly ["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"];
|
|
1573
|
+
weekDayList: readonly ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
|
|
1574
|
+
equalDate: (date1: Date, date2: Date) => boolean;
|
|
1575
|
+
formatAbsolute: (date: Date, locale: string, showTime: boolean) => string;
|
|
1576
|
+
formatRelative: (date: Date, locale: string, showTime: boolean) => string;
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
type DayPickerProps = Partial<FormFieldDataHandling<Date>> & {
|
|
1580
|
+
displayedMonth: Date;
|
|
1581
|
+
start?: Date;
|
|
1582
|
+
end?: Date;
|
|
1583
|
+
weekStart?: WeekDay;
|
|
1584
|
+
markToday?: boolean;
|
|
1585
|
+
className?: string;
|
|
1586
|
+
};
|
|
1587
|
+
/**
|
|
1588
|
+
* A component for selecting a day of a month
|
|
1589
|
+
*/
|
|
1590
|
+
declare const DayPicker: ({ displayedMonth, value, start: providedStart, end: providedEnd, onValueChange, onEditComplete, weekStart, markToday, className }: DayPickerProps) => react_jsx_runtime.JSX.Element;
|
|
1591
|
+
declare const DayPickerUncontrolled: ({ value: initialValue, onValueChange, ...props }: DayPickerProps) => react_jsx_runtime.JSX.Element;
|
|
1592
|
+
|
|
1593
|
+
type YearMonthPickerProps = Partial<FormFieldDataHandling<Date>> & {
|
|
1594
|
+
start?: Date;
|
|
1595
|
+
end?: Date;
|
|
1596
|
+
className?: string;
|
|
1597
|
+
};
|
|
1598
|
+
declare const YearMonthPicker: ({ value, start, end, onValueChange, onEditComplete, className, }: YearMonthPickerProps) => react_jsx_runtime.JSX.Element;
|
|
1599
|
+
declare const YearMonthPickerUncontrolled: ({ value: initialValue, onValueChange, ...props }: YearMonthPickerProps) => react_jsx_runtime.JSX.Element;
|
|
1600
|
+
|
|
1601
|
+
type DisplayMode = 'yearMonth' | 'day';
|
|
1602
|
+
type DatePickerProps = Partial<FormFieldDataHandling<Date>> & {
|
|
1603
|
+
start?: Date;
|
|
1604
|
+
end?: Date;
|
|
1605
|
+
initialDisplay?: DisplayMode;
|
|
1606
|
+
weekStart?: WeekDay;
|
|
1607
|
+
dayPickerProps?: Omit<DayPickerProps, 'displayedMonth' | 'onChange' | 'selected' | 'weekStart'>;
|
|
1608
|
+
yearMonthPickerProps?: Omit<YearMonthPickerProps, 'displayedYearMonth' | 'onChange' | 'start' | 'end'>;
|
|
1609
|
+
className?: string;
|
|
1610
|
+
};
|
|
1611
|
+
/**
|
|
1612
|
+
* A Component for picking a date
|
|
1613
|
+
*/
|
|
1614
|
+
declare const DatePicker: ({ value, start, end, initialDisplay, weekStart, onValueChange, onEditComplete, yearMonthPickerProps, dayPickerProps, className }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
1615
|
+
/**
|
|
1616
|
+
* Example for the Date Picker
|
|
1617
|
+
*/
|
|
1618
|
+
declare const DatePickerUncontrolled: ({ value, onValueChange, ...props }: DatePickerProps) => react_jsx_runtime.JSX.Element;
|
|
1619
|
+
|
|
1620
|
+
type TimePickerMinuteIncrement = '1min' | '5min' | '10min' | '15min' | '30min';
|
|
1621
|
+
type TimePickerProps = Partial<FormFieldDataHandling<Date>> & {
|
|
1622
|
+
is24HourFormat?: boolean;
|
|
1623
|
+
minuteIncrement?: TimePickerMinuteIncrement;
|
|
1624
|
+
className?: string;
|
|
1625
|
+
};
|
|
1626
|
+
declare const TimePicker: ({ value, onValueChange, onEditComplete, is24HourFormat, minuteIncrement, className, }: TimePickerProps) => react_jsx_runtime.JSX.Element;
|
|
1627
|
+
declare const TimePickerUncontrolled: ({ value: initialValue, onValueChange, ...props }: TimePickerProps) => react_jsx_runtime.JSX.Element;
|
|
1628
|
+
|
|
1629
|
+
type DateTimePickerMode = 'date' | 'time' | 'dateTime';
|
|
1630
|
+
type DateTimePickerProps = Partial<FormFieldDataHandling<Date>> & {
|
|
1631
|
+
mode?: DateTimePickerMode;
|
|
1632
|
+
start?: Date;
|
|
1633
|
+
end?: Date;
|
|
1634
|
+
is24HourFormat?: boolean;
|
|
1635
|
+
minuteIncrement?: TimePickerMinuteIncrement;
|
|
1636
|
+
markToday?: boolean;
|
|
1637
|
+
weekStart?: WeekDay;
|
|
1638
|
+
datePickerProps?: Omit<DatePickerProps, 'onChange' | 'value' | 'start' | 'end'>;
|
|
1639
|
+
timePickerProps?: Omit<TimePickerProps, 'onChange' | 'time' | 'is24HourFormat' | 'minuteIncrement'>;
|
|
1640
|
+
};
|
|
1641
|
+
/**
|
|
1642
|
+
* A Component for picking a Date and Time
|
|
1643
|
+
*/
|
|
1644
|
+
declare const DateTimePicker: ({ value, start, end, mode, is24HourFormat, minuteIncrement, weekStart, onValueChange, onEditComplete, timePickerProps, datePickerProps, }: DateTimePickerProps) => react_jsx_runtime.JSX.Element;
|
|
1645
|
+
declare const DateTimePickerUncontrolled: ({ value: initialValue, onValueChange, ...props }: DateTimePickerProps) => react_jsx_runtime.JSX.Element;
|
|
1646
|
+
|
|
1647
|
+
type TimeDisplayMode = 'daysFromToday' | 'date';
|
|
1648
|
+
type TimeDisplayProps = {
|
|
1649
|
+
date: Date;
|
|
1650
|
+
mode?: TimeDisplayMode;
|
|
1651
|
+
};
|
|
1652
|
+
/**
|
|
1653
|
+
* A Component for displaying time and dates in a unified fashion
|
|
1654
|
+
*/
|
|
1655
|
+
declare const TimeDisplay: ({ date, mode }: TimeDisplayProps) => react_jsx_runtime.JSX.Element;
|
|
1363
1656
|
|
|
1364
|
-
type DateTimeInputProps = Omit<InputProps,
|
|
1365
|
-
date?: Date;
|
|
1366
|
-
onValueChange?: (date: Date) => void;
|
|
1367
|
-
onEditCompleted?: (date: Date) => void;
|
|
1657
|
+
type DateTimeInputProps = Omit<InputProps, keyof FormFieldDataHandling<string>> & Partial<FormFieldDataHandling<Date>> & {
|
|
1368
1658
|
onRemove?: () => void;
|
|
1369
1659
|
mode?: 'date' | 'dateTime';
|
|
1370
1660
|
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
1371
|
-
pickerProps?: Omit<DateTimePickerProps,
|
|
1661
|
+
pickerProps?: Omit<DateTimePickerProps, keyof FormFieldDataHandling<Date> | 'mode'>;
|
|
1372
1662
|
};
|
|
1373
|
-
declare const DateTimeInput: ({
|
|
1374
|
-
declare const DateTimeInputUncontrolled: ({
|
|
1663
|
+
declare const DateTimeInput: ({ value, onValueChange, onEditComplete, onRemove, containerProps, mode, pickerProps, ...props }: DateTimeInputProps) => react_jsx_runtime.JSX.Element;
|
|
1664
|
+
declare const DateTimeInputUncontrolled: ({ value: initialValue, ...props }: DateTimeInputProps) => react_jsx_runtime.JSX.Element;
|
|
1375
1665
|
|
|
1376
1666
|
type InsideLabelInputProps = Omit<InputProps, 'aria-label' | 'aria-labelledby' | 'placeholder'> & {
|
|
1377
1667
|
label: ReactNode;
|
|
@@ -1381,19 +1671,20 @@ type InsideLabelInputProps = Omit<InputProps, 'aria-label' | 'aria-labelledby' |
|
|
|
1381
1671
|
*
|
|
1382
1672
|
* The State is managed by the parent
|
|
1383
1673
|
*/
|
|
1384
|
-
declare const InsideLabelInput: React.ForwardRefExoticComponent<Omit<InputProps, "aria-label" | "aria-labelledby" | "placeholder"> & {
|
|
1674
|
+
declare const InsideLabelInput: React$1.ForwardRefExoticComponent<Omit<InputProps, "aria-label" | "aria-labelledby" | "placeholder"> & {
|
|
1385
1675
|
label: ReactNode;
|
|
1386
|
-
} & React.RefAttributes<HTMLInputElement>>;
|
|
1676
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
1387
1677
|
declare const InsideLabelInputUncontrolled: ({ value: initialValue, ...props }: InsideLabelInputProps) => react_jsx_runtime.JSX.Element;
|
|
1388
1678
|
|
|
1389
|
-
type SearchBarProps = InputProps & {
|
|
1390
|
-
|
|
1679
|
+
type SearchBarProps = Omit<InputProps, 'onValueChange' | 'onEditComplete'> & {
|
|
1680
|
+
onValueChange?: (value: string) => void;
|
|
1681
|
+
onSearch: (value: string) => void;
|
|
1391
1682
|
searchButtonProps?: Omit<ButtonProps, 'onClick'>;
|
|
1392
1683
|
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
1393
1684
|
};
|
|
1394
|
-
declare const SearchBar: ({ onSearch, searchButtonProps, containerProps, ...inputProps }: SearchBarProps) => react_jsx_runtime.JSX.Element;
|
|
1685
|
+
declare const SearchBar: ({ value: initialValue, onSearch, onValueChange, searchButtonProps, containerProps, ...inputProps }: SearchBarProps) => react_jsx_runtime.JSX.Element;
|
|
1395
1686
|
|
|
1396
|
-
type ToggleableInputProps =
|
|
1687
|
+
type ToggleableInputProps = InputProps & {
|
|
1397
1688
|
initialState?: 'editing' | 'display';
|
|
1398
1689
|
editCompleteOptions?: Omit<EditCompleteOptions, 'allowEnterComplete'>;
|
|
1399
1690
|
};
|
|
@@ -1403,15 +1694,90 @@ type ToggleableInputProps = Omit<InputProps, 'defaultStyle'> & {
|
|
|
1403
1694
|
*
|
|
1404
1695
|
* The State is managed by the parent
|
|
1405
1696
|
*/
|
|
1406
|
-
declare const ToggleableInput: React.ForwardRefExoticComponent<Omit<
|
|
1697
|
+
declare const ToggleableInput: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "value"> & Partial<FormFieldDataHandling<string>> & Partial<FormFieldInteractionStates> & {
|
|
1698
|
+
editCompleteOptions?: EditCompleteOptions;
|
|
1699
|
+
} & {
|
|
1407
1700
|
initialState?: "editing" | "display";
|
|
1408
1701
|
editCompleteOptions?: Omit<EditCompleteOptions, "allowEnterComplete">;
|
|
1409
|
-
} & React.RefAttributes<HTMLInputElement>>;
|
|
1410
|
-
declare const ToggleableInputUncontrolled: ({ value: initialValue,
|
|
1702
|
+
} & React$1.RefAttributes<HTMLInputElement>>;
|
|
1703
|
+
declare const ToggleableInputUncontrolled: ({ value: initialValue, onValueChange, ...restProps }: ToggleableInputProps) => react_jsx_runtime.JSX.Element;
|
|
1704
|
+
|
|
1705
|
+
type PropertyField<T> = {
|
|
1706
|
+
name: string;
|
|
1707
|
+
required?: boolean;
|
|
1708
|
+
readOnly?: boolean;
|
|
1709
|
+
allowClear?: boolean;
|
|
1710
|
+
value?: T;
|
|
1711
|
+
onRemove?: () => void;
|
|
1712
|
+
onValueClear?: () => void;
|
|
1713
|
+
onValueChange?: (value: T) => void;
|
|
1714
|
+
onEditComplete?: (value: T) => void;
|
|
1715
|
+
};
|
|
1716
|
+
type PropertyBaseProps = {
|
|
1717
|
+
children: (props: {
|
|
1718
|
+
required: boolean;
|
|
1719
|
+
hasValue: boolean;
|
|
1720
|
+
invalid: boolean;
|
|
1721
|
+
}) => ReactNode;
|
|
1722
|
+
name: string;
|
|
1723
|
+
required?: boolean;
|
|
1724
|
+
readOnly?: boolean;
|
|
1725
|
+
allowClear?: boolean;
|
|
1726
|
+
allowRemove?: boolean;
|
|
1727
|
+
hasValue: boolean;
|
|
1728
|
+
onRemove?: () => void;
|
|
1729
|
+
onValueClear?: () => void;
|
|
1730
|
+
icon?: ReactNode;
|
|
1731
|
+
className?: string;
|
|
1732
|
+
};
|
|
1733
|
+
/**
|
|
1734
|
+
* A component for showing a properties with uniform styling
|
|
1735
|
+
*/
|
|
1736
|
+
declare const PropertyBase: ({ name, children, required, hasValue, icon, readOnly, allowClear, allowRemove, onRemove, onValueClear, className, }: PropertyBaseProps) => react_jsx_runtime.JSX.Element;
|
|
1737
|
+
|
|
1738
|
+
type CheckboxPropertyProps = PropertyField<boolean>;
|
|
1739
|
+
/**
|
|
1740
|
+
* An Input component for a boolean values
|
|
1741
|
+
*/
|
|
1742
|
+
declare const CheckboxProperty: ({ value, onValueChange, onEditComplete, readOnly, ...baseProps }: CheckboxPropertyProps) => react_jsx_runtime.JSX.Element;
|
|
1743
|
+
|
|
1744
|
+
type DatePropertyProps = PropertyField<Date> & {
|
|
1745
|
+
type?: 'dateTime' | 'date';
|
|
1746
|
+
};
|
|
1747
|
+
/**
|
|
1748
|
+
* An Input for date properties
|
|
1749
|
+
*/
|
|
1750
|
+
declare const DateProperty: ({ value, onValueChange, onEditComplete, readOnly, type, ...baseProps }: DatePropertyProps) => react_jsx_runtime.JSX.Element;
|
|
1751
|
+
|
|
1752
|
+
type MultiSelectPropertyProps = PropertyField<string[]> & PropsWithChildren;
|
|
1753
|
+
/**
|
|
1754
|
+
* An Input for MultiSelect properties
|
|
1755
|
+
*/
|
|
1756
|
+
declare const MultiSelectProperty: ({ children, value, onValueChange, onEditComplete, ...props }: MultiSelectPropertyProps) => react_jsx_runtime.JSX.Element;
|
|
1757
|
+
|
|
1758
|
+
type NumberPropertyProps = PropertyField<number> & {
|
|
1759
|
+
suffix?: string;
|
|
1760
|
+
};
|
|
1761
|
+
/**
|
|
1762
|
+
* An Input for number properties
|
|
1763
|
+
*/
|
|
1764
|
+
declare const NumberProperty: ({ value, onRemove, onValueChange, onEditComplete, readOnly, suffix, ...baseProps }: NumberPropertyProps) => react_jsx_runtime.JSX.Element;
|
|
1765
|
+
|
|
1766
|
+
type SingleSelectPropertyProps = PropertyField<string> & PropsWithChildren;
|
|
1767
|
+
/**
|
|
1768
|
+
* An Input for SingleSelect properties
|
|
1769
|
+
*/
|
|
1770
|
+
declare const SingleSelectProperty: ({ children, value, onValueChange, onEditComplete, ...props }: SingleSelectPropertyProps) => react_jsx_runtime.JSX.Element;
|
|
1771
|
+
|
|
1772
|
+
type TextPropertyProps = PropertyField<string>;
|
|
1773
|
+
/**
|
|
1774
|
+
* An Input for Text properties
|
|
1775
|
+
*/
|
|
1776
|
+
declare const TextProperty: ({ value, readOnly, onRemove, onValueChange, onEditComplete, ...baseProps }: TextPropertyProps) => react_jsx_runtime.JSX.Element;
|
|
1411
1777
|
|
|
1412
1778
|
type FocusTrapProps = HTMLAttributes<HTMLDivElement> & {
|
|
1413
1779
|
active?: boolean;
|
|
1414
|
-
initialFocus?: RefObject<HTMLElement>;
|
|
1780
|
+
initialFocus?: RefObject<HTMLElement | null>;
|
|
1415
1781
|
/**
|
|
1416
1782
|
* Whether to focus the first element when the initialFocus isn't provided
|
|
1417
1783
|
*
|
|
@@ -1422,16 +1788,16 @@ type FocusTrapProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
1422
1788
|
/**
|
|
1423
1789
|
* A wrapper for the useFocusTrap hook that directly renders it to a div
|
|
1424
1790
|
*/
|
|
1425
|
-
declare const FocusTrap: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
1791
|
+
declare const FocusTrap: React$1.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
1426
1792
|
active?: boolean;
|
|
1427
|
-
initialFocus?: RefObject<HTMLElement>;
|
|
1793
|
+
initialFocus?: RefObject<HTMLElement | null>;
|
|
1428
1794
|
/**
|
|
1429
1795
|
* Whether to focus the first element when the initialFocus isn't provided
|
|
1430
1796
|
*
|
|
1431
1797
|
* Focuses the container instead
|
|
1432
1798
|
*/
|
|
1433
1799
|
focusFirst?: boolean;
|
|
1434
|
-
} & React.RefAttributes<HTMLDivElement>>;
|
|
1800
|
+
} & React$1.RefAttributes<HTMLDivElement>>;
|
|
1435
1801
|
|
|
1436
1802
|
type TransitionBag = {
|
|
1437
1803
|
isOpen: boolean;
|
|
@@ -1453,7 +1819,30 @@ type TransitionWrapperProps = PropsWithBagFunctionOrChildren<TransitionBag> & {
|
|
|
1453
1819
|
/**
|
|
1454
1820
|
* Only use when you have a transition happening
|
|
1455
1821
|
*/
|
|
1456
|
-
declare function Transition({ children, show, includeAnimation, }: TransitionWrapperProps): React.ReactNode
|
|
1822
|
+
declare function Transition({ children, show, includeAnimation, }: TransitionWrapperProps): string | number | bigint | boolean | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode> | React$1.ReactPortal | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<React$1.ReactNode>>;
|
|
1823
|
+
|
|
1824
|
+
type LocaleContextValue = {
|
|
1825
|
+
locale: HightideTranslationLocales;
|
|
1826
|
+
setLocale: Dispatch<SetStateAction<HightideTranslationLocales>>;
|
|
1827
|
+
};
|
|
1828
|
+
declare const LocaleContext: React$1.Context<LocaleContextValue>;
|
|
1829
|
+
type LocaleWithSystem = HightideTranslationLocales | 'system';
|
|
1830
|
+
type LocaleProviderProps = PropsWithChildren & Partial<LocalizationConfig> & {
|
|
1831
|
+
locale?: LocaleWithSystem;
|
|
1832
|
+
onChangedLocale?: (locale: HightideTranslationLocales) => void;
|
|
1833
|
+
};
|
|
1834
|
+
declare const LocaleProvider: ({ children, locale, defaultLocale, onChangedLocale }: LocaleProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1835
|
+
declare const useLocale: () => LocaleContextValue;
|
|
1836
|
+
declare const useLanguage: () => {
|
|
1837
|
+
language: string;
|
|
1838
|
+
};
|
|
1839
|
+
|
|
1840
|
+
type HightideProviderProps = PropsWithChildren & {
|
|
1841
|
+
theme?: Omit<ThemeProviderProps, 'children'>;
|
|
1842
|
+
locale?: Omit<LocaleProviderProps, 'children'>;
|
|
1843
|
+
config?: Omit<HightideConfigProviderProps, 'children'>;
|
|
1844
|
+
};
|
|
1845
|
+
declare const HightideProvider: ({ children, theme, locale, config, }: HightideProviderProps) => react_jsx_runtime.JSX.Element;
|
|
1457
1846
|
|
|
1458
1847
|
declare const useFocusGuards: () => void;
|
|
1459
1848
|
|
|
@@ -1543,9 +1932,28 @@ declare const useLogOnce: (message: string, condition: boolean, options?: Option
|
|
|
1543
1932
|
|
|
1544
1933
|
declare const useOutsideClick: <Ts extends RefObject<HTMLElement>[]>(refs: Ts, handler: () => void) => void;
|
|
1545
1934
|
|
|
1546
|
-
|
|
1935
|
+
type OverlayItem = {
|
|
1936
|
+
id: string;
|
|
1937
|
+
tags?: string[];
|
|
1938
|
+
};
|
|
1939
|
+
type UseOverlayRegistryProps = Partial<OverlayItem> & {
|
|
1940
|
+
isActive?: boolean;
|
|
1941
|
+
/** Tags cannot change on every render, thus make sure they are wrapped in a useMemo or similar */
|
|
1942
|
+
tags?: string[];
|
|
1943
|
+
};
|
|
1944
|
+
type UseOverlayRegistryResult = {
|
|
1945
|
+
isInFront: boolean;
|
|
1946
|
+
zIndex?: number;
|
|
1947
|
+
position?: number;
|
|
1948
|
+
tagPositions?: Record<string, number>;
|
|
1949
|
+
hasAppeared: boolean;
|
|
1950
|
+
tagItemCounts: Record<string, number>;
|
|
1951
|
+
};
|
|
1952
|
+
declare const useOverlayRegistry: (props?: UseOverlayRegistryProps) => UseOverlayRegistryResult;
|
|
1953
|
+
|
|
1954
|
+
declare const useOverwritableState: <T>(overwriteValue?: T, onChange?: (value: T) => void) => [T, React__default.Dispatch<React__default.SetStateAction<T>>];
|
|
1547
1955
|
|
|
1548
|
-
declare const useRerender: () => React.ActionDispatch<[]>;
|
|
1956
|
+
declare const useRerender: () => React$1.ActionDispatch<[]>;
|
|
1549
1957
|
|
|
1550
1958
|
/**
|
|
1551
1959
|
* A hook that wraps the event listener attachment
|
|
@@ -1573,8 +1981,25 @@ declare const useSearch: <T>({ list, initialSearch, searchMapping, additionalSea
|
|
|
1573
1981
|
allItems: T[];
|
|
1574
1982
|
updateSearch: (newSearch?: string) => void;
|
|
1575
1983
|
search: string;
|
|
1576
|
-
setSearch: React.Dispatch<React.SetStateAction<string>>;
|
|
1984
|
+
setSearch: React$1.Dispatch<React$1.SetStateAction<string>>;
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1987
|
+
type TransitionState = 'opened' | 'closed' | 'opening' | 'closing';
|
|
1988
|
+
type UseTransitionStateResult = {
|
|
1989
|
+
transitionState: TransitionState;
|
|
1990
|
+
isVisible: boolean;
|
|
1991
|
+
callbacks: {
|
|
1992
|
+
onAnimationStart: () => void;
|
|
1993
|
+
onAnimationEnd: () => void;
|
|
1994
|
+
onTransitionStart: () => void;
|
|
1995
|
+
onTransitionEnd: () => void;
|
|
1996
|
+
onTransitionCancel: () => void;
|
|
1997
|
+
};
|
|
1577
1998
|
};
|
|
1999
|
+
type UseTransitionStateProps = {
|
|
2000
|
+
isOpen: boolean;
|
|
2001
|
+
};
|
|
2002
|
+
declare const useTransitionState: ({ isOpen }: UseTransitionStateProps) => UseTransitionStateResult;
|
|
1578
2003
|
|
|
1579
2004
|
type ValidatorError = 'notEmpty' | 'invalidEmail' | 'tooLong' | 'tooShort' | 'outOfRangeString' | 'outOfRangeNumber' | 'outOfRangeSelectionItems' | 'tooFewSelectionItems' | 'tooManySelectionItems';
|
|
1580
2005
|
type ValidatorResult = ValidatorError | undefined;
|
|
@@ -1587,224 +2012,10 @@ declare const UseValidators: {
|
|
|
1587
2012
|
declare const useTranslatedValidators: () => {
|
|
1588
2013
|
notEmpty: (value: unknown) => string;
|
|
1589
2014
|
length: (value: string | undefined, length: [number | undefined, number | undefined]) => string;
|
|
1590
|
-
email: (value: string) => string;
|
|
2015
|
+
email: (value: string | undefined) => string;
|
|
1591
2016
|
selection: (value: unknown[] | undefined, length: [number | undefined, number | undefined]) => string;
|
|
1592
2017
|
};
|
|
1593
2018
|
|
|
1594
|
-
declare function useZIndexRegister(isActive: boolean): number;
|
|
1595
|
-
|
|
1596
|
-
declare const hightideTranslationLocales: readonly ["de-DE", "en-US"];
|
|
1597
|
-
type HightideTranslationLocales = typeof hightideTranslationLocales[number];
|
|
1598
|
-
type HightideTranslationEntries = {
|
|
1599
|
-
'add': string;
|
|
1600
|
-
'age': string;
|
|
1601
|
-
'all': string;
|
|
1602
|
-
'apply': string;
|
|
1603
|
-
'back': string;
|
|
1604
|
-
'cancel': string;
|
|
1605
|
-
'carousel': string;
|
|
1606
|
-
'change': string;
|
|
1607
|
-
'chooseLanguage': string;
|
|
1608
|
-
'chooseSlide': string;
|
|
1609
|
-
'chooseTheme': string;
|
|
1610
|
-
'clear': string;
|
|
1611
|
-
'click': string;
|
|
1612
|
-
'clickToCopy': string;
|
|
1613
|
-
'clickToSelect': string;
|
|
1614
|
-
'close': string;
|
|
1615
|
-
'confirm': string;
|
|
1616
|
-
'copied': string;
|
|
1617
|
-
'copy': string;
|
|
1618
|
-
'create': string;
|
|
1619
|
-
'decline': string;
|
|
1620
|
-
'delete': string;
|
|
1621
|
-
'discard': string;
|
|
1622
|
-
'discardChanges': string;
|
|
1623
|
-
'done': string;
|
|
1624
|
-
'edit': string;
|
|
1625
|
-
'endDate': string;
|
|
1626
|
-
'enterText': string;
|
|
1627
|
-
'entryDate': string;
|
|
1628
|
-
'error': string;
|
|
1629
|
-
'errorOccurred': string;
|
|
1630
|
-
'exit': string;
|
|
1631
|
-
'fieldRequiredError': string;
|
|
1632
|
-
'filter': string;
|
|
1633
|
-
'gender': (values: {
|
|
1634
|
-
gender: string;
|
|
1635
|
-
}) => string;
|
|
1636
|
-
'goodToSeeYou': string;
|
|
1637
|
-
'identifier': string;
|
|
1638
|
-
'invalidEmail': string;
|
|
1639
|
-
'invalidEmailError': string;
|
|
1640
|
-
'language': string;
|
|
1641
|
-
'less': string;
|
|
1642
|
-
'loading': string;
|
|
1643
|
-
'locale': string;
|
|
1644
|
-
'max': string;
|
|
1645
|
-
'maxLengthError': string;
|
|
1646
|
-
'min': string;
|
|
1647
|
-
'minLengthError': string;
|
|
1648
|
-
'more': string;
|
|
1649
|
-
'name': string;
|
|
1650
|
-
'next': string;
|
|
1651
|
-
'no': string;
|
|
1652
|
-
'none': string;
|
|
1653
|
-
'notEmpty': string;
|
|
1654
|
-
'nothingFound': string;
|
|
1655
|
-
'of': string;
|
|
1656
|
-
'optional': string;
|
|
1657
|
-
'outOfRangeNumber': (values: {
|
|
1658
|
-
min: number;
|
|
1659
|
-
max: number;
|
|
1660
|
-
}) => string;
|
|
1661
|
-
'outOfRangeSelectionItems': (values: {
|
|
1662
|
-
min: number;
|
|
1663
|
-
max: number;
|
|
1664
|
-
}) => string;
|
|
1665
|
-
'outOfRangeString': (values: {
|
|
1666
|
-
min: number;
|
|
1667
|
-
max: number;
|
|
1668
|
-
}) => string;
|
|
1669
|
-
'pleaseWait': string;
|
|
1670
|
-
'previous': string;
|
|
1671
|
-
'remove': string;
|
|
1672
|
-
'required': string;
|
|
1673
|
-
'reset': string;
|
|
1674
|
-
'rSortingOrderAfter': (values: {
|
|
1675
|
-
otherSortings: number;
|
|
1676
|
-
}) => string;
|
|
1677
|
-
'save': string;
|
|
1678
|
-
'saved': string;
|
|
1679
|
-
'search': string;
|
|
1680
|
-
'select': string;
|
|
1681
|
-
'selectOption': string;
|
|
1682
|
-
'show': string;
|
|
1683
|
-
'showLess': string;
|
|
1684
|
-
'showMore': string;
|
|
1685
|
-
'showSlide': (values: {
|
|
1686
|
-
index: number;
|
|
1687
|
-
}) => string;
|
|
1688
|
-
'slide': string;
|
|
1689
|
-
'slideNavigation': string;
|
|
1690
|
-
'slideOf': (values: {
|
|
1691
|
-
index: number;
|
|
1692
|
-
length: number;
|
|
1693
|
-
}) => string;
|
|
1694
|
-
'startDate': string;
|
|
1695
|
-
'street': string;
|
|
1696
|
-
'submit': string;
|
|
1697
|
-
'success': string;
|
|
1698
|
-
'text': string;
|
|
1699
|
-
'themeMode': (values: {
|
|
1700
|
-
theme: string;
|
|
1701
|
-
}) => string;
|
|
1702
|
-
'themes': (values: {
|
|
1703
|
-
count: number;
|
|
1704
|
-
}) => string;
|
|
1705
|
-
'time.ago': string;
|
|
1706
|
-
'time.agoDays': (values: {
|
|
1707
|
-
days: number;
|
|
1708
|
-
}) => string;
|
|
1709
|
-
'time.april': string;
|
|
1710
|
-
'time.august': string;
|
|
1711
|
-
'time.century': (values: {
|
|
1712
|
-
count: number;
|
|
1713
|
-
}) => string;
|
|
1714
|
-
'time.day': (values: {
|
|
1715
|
-
count: number;
|
|
1716
|
-
}) => string;
|
|
1717
|
-
'time.decade': (values: {
|
|
1718
|
-
count: number;
|
|
1719
|
-
}) => string;
|
|
1720
|
-
'time.december': string;
|
|
1721
|
-
'time.february': string;
|
|
1722
|
-
'time.hour': (values: {
|
|
1723
|
-
count: number;
|
|
1724
|
-
}) => string;
|
|
1725
|
-
'time.in': string;
|
|
1726
|
-
'time.inDays': (values: {
|
|
1727
|
-
days: number;
|
|
1728
|
-
}) => string;
|
|
1729
|
-
'time.january': string;
|
|
1730
|
-
'time.july': string;
|
|
1731
|
-
'time.june': string;
|
|
1732
|
-
'time.march': string;
|
|
1733
|
-
'time.may': string;
|
|
1734
|
-
'time.microsecond': (values: {
|
|
1735
|
-
count: number;
|
|
1736
|
-
}) => string;
|
|
1737
|
-
'time.millisecond': (values: {
|
|
1738
|
-
count: number;
|
|
1739
|
-
}) => string;
|
|
1740
|
-
'time.minute': (values: {
|
|
1741
|
-
count: number;
|
|
1742
|
-
}) => string;
|
|
1743
|
-
'time.month': (values: {
|
|
1744
|
-
count: number;
|
|
1745
|
-
}) => string;
|
|
1746
|
-
'time.monthName': (values: {
|
|
1747
|
-
month: string;
|
|
1748
|
-
}) => string;
|
|
1749
|
-
'time.nanosecond': (values: {
|
|
1750
|
-
count: number;
|
|
1751
|
-
}) => string;
|
|
1752
|
-
'time.november': string;
|
|
1753
|
-
'time.october': string;
|
|
1754
|
-
'time.second': (values: {
|
|
1755
|
-
count: number;
|
|
1756
|
-
}) => string;
|
|
1757
|
-
'time.september': string;
|
|
1758
|
-
'time.today': string;
|
|
1759
|
-
'time.tomorrow': string;
|
|
1760
|
-
'time.year': (values: {
|
|
1761
|
-
count: number;
|
|
1762
|
-
}) => string;
|
|
1763
|
-
'time.yesterday': string;
|
|
1764
|
-
'tooFewSelectionItems': (values: {
|
|
1765
|
-
min: number;
|
|
1766
|
-
}) => string;
|
|
1767
|
-
'tooLong': (values: {
|
|
1768
|
-
max: number;
|
|
1769
|
-
}) => string;
|
|
1770
|
-
'tooManySelectionItems': (values: {
|
|
1771
|
-
max: number;
|
|
1772
|
-
}) => string;
|
|
1773
|
-
'tooShort': (values: {
|
|
1774
|
-
min: number;
|
|
1775
|
-
}) => string;
|
|
1776
|
-
'unsavedChanges': string;
|
|
1777
|
-
'unsavedChangesSaveQuestion': string;
|
|
1778
|
-
'update': string;
|
|
1779
|
-
'value': string;
|
|
1780
|
-
'welcome': string;
|
|
1781
|
-
'yes': string;
|
|
1782
|
-
};
|
|
1783
|
-
declare const hightideTranslation: Translation<HightideTranslationLocales, Partial<HightideTranslationEntries>>;
|
|
1784
|
-
|
|
1785
|
-
type LocaleContextValue = {
|
|
1786
|
-
locale: HightideTranslationLocales;
|
|
1787
|
-
setLocale: Dispatch<SetStateAction<HightideTranslationLocales>>;
|
|
1788
|
-
};
|
|
1789
|
-
declare const LocaleContext: React.Context<LocaleContextValue>;
|
|
1790
|
-
type LocaleWithSystem = HightideTranslationLocales | 'system';
|
|
1791
|
-
type LocaleProviderProps = {
|
|
1792
|
-
locale?: LocaleWithSystem;
|
|
1793
|
-
onChangedLocale?: (locale: HightideTranslationLocales) => void;
|
|
1794
|
-
};
|
|
1795
|
-
declare const LocaleProvider: ({ children, locale, onChangedLocale }: PropsWithChildren<LocaleProviderProps>) => react_jsx_runtime.JSX.Element;
|
|
1796
|
-
declare const useLocale: () => LocaleContextValue;
|
|
1797
|
-
declare const useLanguage: () => {
|
|
1798
|
-
language: string;
|
|
1799
|
-
};
|
|
1800
|
-
|
|
1801
|
-
type DeepPartial<T> = T extends string | number | boolean | bigint | symbol | null | undefined | Function ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends Map<infer K, infer V> ? Map<DeepPartial<K>, DeepPartial<V>> : T extends Set<infer U> ? Set<DeepPartial<U>> : T extends object ? {
|
|
1802
|
-
[P in keyof T]?: DeepPartial<T[P]>;
|
|
1803
|
-
} : T;
|
|
1804
|
-
type SuperSet<T, Base> = Base extends T ? T : never;
|
|
1805
|
-
type SingleOrArray<T> = T | T[];
|
|
1806
|
-
type Exact<T, U extends T> = U;
|
|
1807
|
-
|
|
1808
2019
|
/**
|
|
1809
2020
|
* Use for translations where you know that all values are ICU strings.
|
|
1810
2021
|
*
|
|
@@ -1828,31 +2039,9 @@ declare function localeToLanguage(locale: HightideTranslationLocales): string;
|
|
|
1828
2039
|
declare const LocalizationUtil: {
|
|
1829
2040
|
locals: readonly ["de-DE", "en-US"];
|
|
1830
2041
|
localToLanguage: typeof localeToLanguage;
|
|
1831
|
-
DEFAULT_LOCALE: "en-US";
|
|
1832
2042
|
languagesLocalNames: Record<"de-DE" | "en-US", string>;
|
|
1833
2043
|
};
|
|
1834
2044
|
|
|
1835
|
-
declare const themes: readonly ["light", "dark", "system"];
|
|
1836
|
-
type ThemeType = typeof themes[number];
|
|
1837
|
-
type ResolvedTheme = Exclude<ThemeType, 'system'>;
|
|
1838
|
-
declare const ThemeUtil: {
|
|
1839
|
-
themes: readonly ["light", "dark", "system"];
|
|
1840
|
-
};
|
|
1841
|
-
type ThemeContextType = {
|
|
1842
|
-
theme: ThemeType;
|
|
1843
|
-
resolvedTheme: ResolvedTheme;
|
|
1844
|
-
setTheme: Dispatch<SetStateAction<ThemeType>>;
|
|
1845
|
-
};
|
|
1846
|
-
declare const ThemeContext: React.Context<ThemeContextType>;
|
|
1847
|
-
type ThemeProviderProps = {
|
|
1848
|
-
/**
|
|
1849
|
-
* Only set this if you want to control the theme yourself
|
|
1850
|
-
*/
|
|
1851
|
-
theme?: ThemeType;
|
|
1852
|
-
};
|
|
1853
|
-
declare const ThemeProvider: ({ children, theme }: PropsWithChildren<ThemeProviderProps>) => react_jsx_runtime.JSX.Element;
|
|
1854
|
-
declare const useTheme: () => ThemeContextType;
|
|
1855
|
-
|
|
1856
2045
|
declare const equalSizeGroups: <T>(array: T[], groupSize: number) => T[][];
|
|
1857
2046
|
type RangeOptions = {
|
|
1858
2047
|
/** Whether the range can be defined empty via end < start without a warning */
|
|
@@ -1942,6 +2131,57 @@ declare const PromiseUtils: {
|
|
|
1942
2131
|
delayed: typeof delayed;
|
|
1943
2132
|
};
|
|
1944
2133
|
|
|
2134
|
+
declare function bool(isActive: boolean): string | undefined;
|
|
2135
|
+
declare function name(name: string, props?: Record<string, unknown>): string;
|
|
2136
|
+
type InteractionStateDataAttributes = {
|
|
2137
|
+
'data-disabled': string | undefined;
|
|
2138
|
+
'data-invalid': string | undefined;
|
|
2139
|
+
'data-readonly': string | undefined;
|
|
2140
|
+
'data-required': string | undefined;
|
|
2141
|
+
};
|
|
2142
|
+
declare function interactionStatesData(interactionStates: Partial<FormFieldInteractionStates>): Partial<InteractionStateDataAttributes>;
|
|
2143
|
+
type MouseEventExtenderProps<T> = {
|
|
2144
|
+
fromProps?: React__default.MouseEventHandler<T>;
|
|
2145
|
+
extensions: SingleOrArray<React__default.MouseEventHandler<T>>;
|
|
2146
|
+
};
|
|
2147
|
+
declare function mouseEventExtender<T>({ fromProps, extensions }: MouseEventExtenderProps<T>): React__default.MouseEventHandler<T>;
|
|
2148
|
+
type KeyoardEventExtenderProps<T> = {
|
|
2149
|
+
fromProps: React__default.KeyboardEventHandler<T>;
|
|
2150
|
+
extensions: SingleOrArray<React__default.KeyboardEventHandler<T>>;
|
|
2151
|
+
};
|
|
2152
|
+
declare function keyboardEventExtender<T>({ fromProps, extensions, }: KeyoardEventExtenderProps<T>): React__default.KeyboardEventHandler<T>;
|
|
2153
|
+
declare function click<T>(onClick: () => void): {
|
|
2154
|
+
onClick: () => void;
|
|
2155
|
+
onKeyDown: React__default.KeyboardEventHandler<T>;
|
|
2156
|
+
};
|
|
2157
|
+
declare function close<T>(onClose: () => void): React__default.KeyboardEventHandler<T>;
|
|
2158
|
+
type NavigateType<T> = {
|
|
2159
|
+
left?: (event: React__default.KeyboardEvent<T>) => void;
|
|
2160
|
+
right?: (event: React__default.KeyboardEvent<T>) => void;
|
|
2161
|
+
up?: (event: React__default.KeyboardEvent<T>) => void;
|
|
2162
|
+
down?: (event: React__default.KeyboardEvent<T>) => void;
|
|
2163
|
+
};
|
|
2164
|
+
declare function navigate<T>({ left, right, up, down, }: NavigateType<T>): React__default.KeyboardEventHandler<T>;
|
|
2165
|
+
type InteractionStateARIAAttributes = Pick<HTMLAttributes<HTMLDivElement>, 'aria-disabled' | 'aria-invalid' | 'aria-readonly' | 'aria-required'>;
|
|
2166
|
+
declare function interactionStatesAria(interactionStates: Partial<FormFieldInteractionStates>, props?: Partial<InteractionStateARIAAttributes>): Partial<InteractionStateARIAAttributes>;
|
|
2167
|
+
declare const PropsUtil: {
|
|
2168
|
+
extender: {
|
|
2169
|
+
mouseEvent: typeof mouseEventExtender;
|
|
2170
|
+
keyboardEvent: typeof keyboardEventExtender;
|
|
2171
|
+
};
|
|
2172
|
+
dataAttributes: {
|
|
2173
|
+
bool: typeof bool;
|
|
2174
|
+
name: typeof name;
|
|
2175
|
+
interactionStates: typeof interactionStatesData;
|
|
2176
|
+
};
|
|
2177
|
+
aria: {
|
|
2178
|
+
close: typeof close;
|
|
2179
|
+
click: typeof click;
|
|
2180
|
+
navigate: typeof navigate;
|
|
2181
|
+
interactionStates: typeof interactionStatesAria;
|
|
2182
|
+
};
|
|
2183
|
+
};
|
|
2184
|
+
|
|
1945
2185
|
declare function resolveSetState<T>(action: SetStateAction<T>, prev: T): T;
|
|
1946
2186
|
|
|
1947
2187
|
/**
|
|
@@ -2010,4 +2250,4 @@ declare class SessionStorageService extends StorageService {
|
|
|
2010
2250
|
|
|
2011
2251
|
declare const writeToClipboard: (text: string) => Promise<void>;
|
|
2012
2252
|
|
|
2013
|
-
export { ASTNodeInterpreter, type ASTNodeInterpreterProps, AnimatedRing, type AnimatedRingProps, ArrayUtil, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize,
|
|
2253
|
+
export { ASTNodeInterpreter, type ASTNodeInterpreterProps, AnimatedRing, type AnimatedRingProps, ArrayUtil, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, type BagFunction, type BagFunctionOrNode, type BagFunctionOrValue, BagFunctionUtil, BreadCrumbGroup, BreadCrumbLink, type BreadCrumbLinkProps, type BreadCrumbProps, BreadCrumbs, Button, type ButtonColor, type ButtonProps, ButtonUtil, Carousel, type CarouselProps, CarouselSlide, type CarouselSlideProps, Checkbox, CheckboxProperty, type CheckboxPropertyProps, type CheckboxProps, CheckboxUncontrolled, type CheckboxUncontrolledProps, Chip, type ChipColor, ChipList, type ChipListProps, type ChipProps, ChipUtil, Circle, type CircleProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogType, CopyToClipboardWrapper, type CopyToClipboardWrapperProps, type Crumb, DatePicker, type DatePickerProps, DatePickerUncontrolled, DateProperty, type DatePropertyProps, DateTimeInput, type DateTimeInputProps, DateTimeInputUncontrolled, DateTimePicker, type DateTimePickerMode, type DateTimePickerProps, DateTimePickerUncontrolled, DateUtils, DayPicker, type DayPickerProps, DayPickerUncontrolled, type DeepPartial, Dialog, type DialogPosition, type DialogProps, type Direction, DiscardChangesDialog, DividerInserter, type DividerInserterProps, Drawer, type DrawerAligment, type DrawerProps, Duration, type DurationJSON, type EaseFunction, EaseFunctions, type EditCompleteOptions, type EditCompleteOptionsResolved, ErrorComponent, type ErrorComponentProps, type Exact, Expandable, ExpandableContent, type ExpandableContentProps, ExpandableHeader, type ExpandableHeaderProps, type ExpandableProps, ExpandableRoot, type ExpandableRootProps, ExpandableUncontrolled, ExpansionIcon, type ExpansionIconProps, type FAQItem, FAQSection, type FAQSectionProps, FillerCell, type FillerCellProps, FloatingContainer, type FloatingContainerProps, type FloatingElementAlignment, FocusTrap, type FocusTrapProps, FormContext, type FormContextType, type FormEvent, type FormEventListener, FormField, type FormFieldAriaAttributes, type FormFieldBag, type FormFieldDataHandling, type FormFieldFocusableElementProps, type FormFieldInteractionStates, FormFieldLayout, type FormFieldLayoutBag, type FormFieldLayoutIds, type FormFieldLayoutProps, type FormFieldProps, type FormFieldResult, FormProvider, type FormProviderProps, FormStore, type FormStoreProps, type FormValidationBehaviour, type FormValidator, type FormValue, HelpwaveBadge, type HelpwaveBadgeProps, HelpwaveLogo, type HelpwaveProps, type HightideConfig, HightideConfigContext, HightideConfigProvider, type HightideConfigProviderProps, HightideProvider, type HightideTranslationEntries, type HightideTranslationLocales, InfiniteScroll, type InfiniteScrollProps, Input, InputDialog, type InputModalProps, type InputProps, InputUncontrolled, InsideLabelInput, InsideLabelInputUncontrolled, LanguageDialog, ListBox, ListBoxItem, type ListBoxItemProps, ListBoxMultiple, type ListBoxMultipleProps, ListBoxMultipleUncontrolled, type ListBoxMultipleUncontrolledProps, ListBoxPrimitive, type ListBoxPrimitiveProps, type ListBoxProps, ListBoxUncontrolled, type ListBoxUncontrolledProps, LoadingAndErrorComponent, type LoadingAndErrorComponentProps, LoadingAnimation, type LoadingAnimationProps, type LoadingComponentProps, LoadingContainer, LocalStorageService, LocaleContext, type LocaleContextValue, LocaleProvider, type LocaleProviderProps, type LocalizationConfig, LocalizationUtil, LoopingArrayCalculator, MarkdownInterpreter, type MarkdownInterpreterProps, Menu, type MenuBag, MenuItem, type MenuItemProps, type MenuProps, type Month, MultiSearchWithMapping, MultiSelect, MultiSelectChipDisplay, type MultiSelectChipDisplayProps, MultiSelectChipDisplayUncontrolled, type MultiSelectChipDisplayUncontrolledProps, MultiSelectProperty, type MultiSelectPropertyProps, type MultiSelectProps, MultiSelectUncontrolled, MultiSubjectSearchWithMapping, Navigation, NavigationItemList, type NavigationItemListProps, type NavigationItemType, type NavigationProps, NumberProperty, type NumberPropertyProps, type OverlayItem, Pagination, type PaginationProps, type PopoverHorizontalAlignment, type PopoverVerticalAlignment, ProgressIndicator, type ProgressIndicatorProps, PromiseUtils, PropertyBase, type PropertyBaseProps, type PropertyField, PropsUtil, type PropsWithBagFunction, type PropsWithBagFunctionOrChildren, RadialRings, type RadialRingsProps, type RangeOptions, type ResolvedTheme, Ring, type RingProps, RingWave, type RingWaveProps, ScrollPicker, type ScrollPickerProps, SearchBar, type SearchBarProps, Select, SelectButton, SelectChipDisplay, SelectContent, type SelectContentProps, SelectOption, type SelectOptionProps, type SelectProps, SelectRoot, type SelectRootProps, SelectUncontrolled, type SelectUncontrolledProps, SessionStorageService, SimpleSearch, SimpleSearchWithMapping, type SingleOrArray, SingleSelectProperty, type SingleSelectPropertyProps, StepperBar, type StepperBarProps, StepperBarUncontrolled, type StepperState, type SuperSet, type TabContextType, type TabInfo, TabList, TabPanel, TabSwitcher, type TabSwitcherProps, TabView, Table, TableCell, type TableCellProps, TableFilterButton, type TableFilterButtonProps, type TableFilterType, TableFilters, type TableProps, TableSortButton, type TableSortButtonProps, TableUncontrolled, type TableUncontrolledProps, TableWithSelection, type TableWithSelectionProps, TagIcon, type TagProps, TextImage, type TextImageProps, TextProperty, type TextPropertyProps, Textarea, type TextareaProps, TextareaUncontrolled, TextareaWithHeadline, type TextareaWithHeadlineProps, type ThemeConfig, ThemeContext, ThemeDialog, ThemeProvider, type ThemeProviderProps, type ThemeType, ThemeUtil, TimeDisplay, TimePicker, type TimePickerMinuteIncrement, type TimePickerProps, TimePickerUncontrolled, ToggleableInput, ToggleableInputUncontrolled, Tooltip, type TooltipConfig, type TooltipProps, Transition, type TransitionState, type TransitionWrapperProps, type UseCreateFormProps, type UseCreateFormResult, type UseDelayOptions, type UseDelayOptionsResolved, type UseFloatingElementOptions, type UseFloatingElementProps, type UseFocusTrapProps, type UseOverlayRegistryProps, type UseOverlayRegistryResult, type UseSearchProps, UseValidators, type ValidatorError, type ValidatorResult, VerticalDivider, type VerticalDividerProps, Visibility, type VisibilityProps, type WeekDay, YearMonthPicker, type YearMonthPickerProps, YearMonthPickerUncontrolled, addDuration, builder, changeDuration, clamp, closestMatch, createLoopingList, createLoopingListWithIndex, equalSizeGroups, formatDate, formatDateTime, getBetweenDuration, getNeighbours, getWeeksForCalenderMonth, hightideTranslation, hightideTranslationLocales, isInTimeSpan, match, noop, range, resolveSetState, subtractDuration, useCreateForm, useDelay, useFloatingElement, useFocusGuards, useFocusManagement, useFocusOnceVisible, useFocusTrap, useForm, useFormField, useHightideConfig, useHightideTranslation, useHoverState, useICUTranslation, useIsMounted, useLanguage, useLocalStorage, useLocale, useLogOnce, useOutsideClick, useOverlayRegistry, useOverwritableState, usePopoverPosition, useRerender, useResizeCallbackWrapper, useSearch, useTabContext, useTheme, useTransitionState, useTranslatedValidators, validateEmail, writeToClipboard };
|