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