@helpwave/hightide 0.3.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +107 -50
- package/dist/index.d.ts +107 -50
- package/dist/index.js +849 -501
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +815 -468
- package/dist/index.mjs.map +1 -1
- package/dist/style/globals.css +463 -461
- package/dist/style/uncompiled/theme/breakpoints.css +0 -1
- package/dist/style/uncompiled/theme/{colors-component.css → colors/component.css} +1 -2
- package/dist/style/uncompiled/theme/colors/index.css +5 -0
- package/dist/style/uncompiled/theme/{colors-semantic.css → colors/semantic.css} +2 -3
- package/dist/style/uncompiled/theme/colors/utilities.css +65 -0
- package/dist/style/uncompiled/theme/components.css +98 -19
- package/dist/style/uncompiled/theme/index.css +3 -5
- package/dist/style/uncompiled/theme/shadow.css +7 -0
- package/dist/style/uncompiled/utitlity/coloring.css +0 -68
- package/dist/style/uncompiled/utitlity/shadow.css +0 -10
- package/package.json +18 -17
- /package/dist/style/uncompiled/theme/{colors-basic.css → colors/basic.css} +0 -0
- /package/dist/style/uncompiled/theme/{variants.css → colors/variants.css} +0 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import React__default, { HTMLAttributes, ButtonHTMLAttributes, ReactNode, PropsWithChildren, InputHTMLAttributes, LabelHTMLAttributes, SVGProps, CSSProperties,
|
|
3
|
+
import React__default, { HTMLAttributes, ButtonHTMLAttributes, ReactNode, PropsWithChildren, InputHTMLAttributes, LabelHTMLAttributes, SVGProps, CSSProperties, RefObject, TextareaHTMLAttributes, Dispatch, SetStateAction } from 'react';
|
|
4
4
|
import { Column, RowData, FilterFn, ColumnDef, Table as Table$1, InitialTableState, Row, TableState, TableOptions, RowSelectionState, SortDirection } from '@tanstack/react-table';
|
|
5
5
|
import { Translation, TranslationEntries, PartialTranslationExtension } from '@helpwave/internationalization';
|
|
6
6
|
|
|
@@ -13,34 +13,62 @@ type HelpwaveBadgeProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const HelpwaveBadge: ({ size, ...props }: HelpwaveBadgeProps) => react_jsx_runtime.JSX.Element;
|
|
15
15
|
|
|
16
|
+
type DurationJSON = {
|
|
17
|
+
years: number;
|
|
18
|
+
months: number;
|
|
19
|
+
days: number;
|
|
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
|
+
|
|
16
49
|
declare const monthsList: readonly ["january", "february", "march", "april", "may", "june", "july", "august", "september", "october", "november", "december"];
|
|
17
50
|
type Month = typeof monthsList[number];
|
|
18
51
|
declare const weekDayList: readonly ["sunday", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday"];
|
|
19
52
|
type WeekDay = typeof weekDayList[number];
|
|
20
53
|
declare const formatDate: (date: Date) => string;
|
|
21
54
|
declare const formatDateTime: (date: Date) => string;
|
|
22
|
-
declare const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
days?: number;
|
|
27
|
-
hours?: number;
|
|
28
|
-
minutes?: number;
|
|
29
|
-
seconds?: number;
|
|
30
|
-
milliseconds?: number;
|
|
31
|
-
};
|
|
32
|
-
declare const changeDuration: (date: Date, duration: Duration, isAdding?: boolean) => Date;
|
|
33
|
-
declare const addDuration: (date: Date, duration: Duration) => Date;
|
|
34
|
-
declare const subtractDuration: (date: Date, duration: Duration) => Date;
|
|
35
|
-
declare const getBetweenDuration: (startDate: Date, endDate: Date) => Duration;
|
|
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>;
|
|
36
59
|
/** Checks if a given date is in the range of two dates
|
|
37
60
|
*
|
|
38
61
|
* An undefined value for startDate or endDate means no bound for the start or end respectively
|
|
39
62
|
*/
|
|
40
63
|
declare const isInTimeSpan: (value: Date, startDate?: Date, endDate?: Date) => boolean;
|
|
41
|
-
/** Compare two dates on the year, month, day */
|
|
42
|
-
declare const equalDate: (date1: Date, date2: Date) => boolean;
|
|
43
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
|
+
};
|
|
44
72
|
|
|
45
73
|
type DayPickerProps = {
|
|
46
74
|
displayedMonth: Date;
|
|
@@ -151,6 +179,7 @@ type ButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
151
179
|
coloringStyle?: ButtonColoringStyle;
|
|
152
180
|
startIcon?: ReactNode;
|
|
153
181
|
endIcon?: ReactNode;
|
|
182
|
+
allowClickEventPropagation?: boolean;
|
|
154
183
|
};
|
|
155
184
|
/**
|
|
156
185
|
* A button with a solid background and different sizes
|
|
@@ -168,6 +197,7 @@ declare const Button: React.ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLB
|
|
|
168
197
|
coloringStyle?: ButtonColoringStyle;
|
|
169
198
|
startIcon?: ReactNode;
|
|
170
199
|
endIcon?: ReactNode;
|
|
200
|
+
allowClickEventPropagation?: boolean;
|
|
171
201
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
172
202
|
|
|
173
203
|
type DialogPosition = 'top' | 'center' | 'none';
|
|
@@ -249,7 +279,6 @@ type InputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
249
279
|
onChangeText?: (text: string) => void;
|
|
250
280
|
onEditCompleted?: (text: string) => void;
|
|
251
281
|
editCompleteOptions?: EditCompleteOptions;
|
|
252
|
-
defaultStyle?: boolean;
|
|
253
282
|
};
|
|
254
283
|
/**
|
|
255
284
|
* A Component for inputting text or other information
|
|
@@ -261,7 +290,6 @@ declare const Input: React__default.ForwardRefExoticComponent<InputHTMLAttribute
|
|
|
261
290
|
onChangeText?: (text: string) => void;
|
|
262
291
|
onEditCompleted?: (text: string) => void;
|
|
263
292
|
editCompleteOptions?: EditCompleteOptions;
|
|
264
|
-
defaultStyle?: boolean;
|
|
265
293
|
} & React__default.RefAttributes<HTMLInputElement>>;
|
|
266
294
|
/**
|
|
267
295
|
* A Component for inputting text or other information
|
|
@@ -604,15 +632,15 @@ type UseFloatingElementOptions = CalculatePositionOptions & {
|
|
|
604
632
|
pollingInterval?: number;
|
|
605
633
|
};
|
|
606
634
|
type UseFloatingElementProps = UseFloatingElementOptions & {
|
|
607
|
-
containerRef:
|
|
608
|
-
anchorRef:
|
|
609
|
-
windowRef?:
|
|
635
|
+
containerRef: RefObject<HTMLElement>;
|
|
636
|
+
anchorRef: RefObject<HTMLElement>;
|
|
637
|
+
windowRef?: RefObject<HTMLElement>;
|
|
610
638
|
active?: boolean;
|
|
611
639
|
};
|
|
612
640
|
declare function useFloatingElement({ active, windowRef, anchorRef, containerRef, isPolling, pollingInterval, verticalAlignment, horizontalAlignment, screenPadding, gap, }: UseFloatingElementProps): CSSProperties;
|
|
613
641
|
|
|
614
642
|
type FloatingContainerProps = HTMLAttributes<HTMLDivElement> & UseFloatingElementOptions & {
|
|
615
|
-
anchor?:
|
|
643
|
+
anchor?: RefObject<HTMLElement>;
|
|
616
644
|
/**
|
|
617
645
|
* Polls the position of the anchor every 100ms
|
|
618
646
|
*
|
|
@@ -635,7 +663,7 @@ declare const FloatingContainer: React.ForwardRefExoticComponent<HTMLAttributes<
|
|
|
635
663
|
isPolling?: boolean;
|
|
636
664
|
pollingInterval?: number;
|
|
637
665
|
} & {
|
|
638
|
-
anchor?:
|
|
666
|
+
anchor?: RefObject<HTMLElement>;
|
|
639
667
|
/**
|
|
640
668
|
* Polls the position of the anchor every 100ms
|
|
641
669
|
*
|
|
@@ -761,6 +789,11 @@ type VerticalDividerProps = {
|
|
|
761
789
|
*/
|
|
762
790
|
declare const VerticalDivider: ({ width, height, strokeWidth, dashGap, dashLength, }: VerticalDividerProps) => react_jsx_runtime.JSX.Element;
|
|
763
791
|
|
|
792
|
+
type VisibilityProps = PropsWithChildren & {
|
|
793
|
+
isVisible?: boolean;
|
|
794
|
+
};
|
|
795
|
+
declare function Visibility({ children, isVisible }: VisibilityProps): React.ReactNode;
|
|
796
|
+
|
|
764
797
|
type ErrorComponentProps = {
|
|
765
798
|
errorText?: string;
|
|
766
799
|
classname?: string;
|
|
@@ -784,7 +817,7 @@ type LoadingAndErrorComponentProps = PropsWithChildren<{
|
|
|
784
817
|
/**
|
|
785
818
|
* A Component that shows the Error and Loading animation, when appropriate and the children otherwise
|
|
786
819
|
*/
|
|
787
|
-
declare const LoadingAndErrorComponent: ({ children, isLoading, hasError, loadingComponent, errorComponent, minimumLoadingDuration, className }: LoadingAndErrorComponentProps) => string | number | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode
|
|
820
|
+
declare const LoadingAndErrorComponent: ({ children, isLoading, hasError, loadingComponent, errorComponent, minimumLoadingDuration, className }: LoadingAndErrorComponentProps) => string | number | bigint | boolean | react_jsx_runtime.JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<ReactNode>>;
|
|
788
821
|
|
|
789
822
|
type LoadingAnimationProps = {
|
|
790
823
|
loadingText?: string;
|
|
@@ -1028,20 +1061,26 @@ type TableCellProps = PropsWithChildren<{
|
|
|
1028
1061
|
}>;
|
|
1029
1062
|
declare const TableCell: ({ children, className, }: TableCellProps) => react_jsx_runtime.JSX.Element;
|
|
1030
1063
|
|
|
1064
|
+
type SortingIndexDisplay = {
|
|
1065
|
+
index: number;
|
|
1066
|
+
sortingsCount: number;
|
|
1067
|
+
};
|
|
1031
1068
|
type TableSortButtonProps = ButtonProps & {
|
|
1032
1069
|
sortDirection: SortDirection | false;
|
|
1070
|
+
sortingIndexDisplay?: SortingIndexDisplay;
|
|
1033
1071
|
invert?: boolean;
|
|
1034
1072
|
};
|
|
1035
1073
|
/**
|
|
1036
1074
|
* An Extension of the normal button that displays the sorting state right of the content
|
|
1037
1075
|
*/
|
|
1038
|
-
declare const TableSortButton: ({ sortDirection, invert, color, size, className, ...
|
|
1076
|
+
declare const TableSortButton: ({ sortDirection, invert, color, size, className, sortingIndexDisplay, ...props }: TableSortButtonProps) => react_jsx_runtime.JSX.Element;
|
|
1039
1077
|
|
|
1040
|
-
type CheckBoxSize = '
|
|
1078
|
+
type CheckBoxSize = 'small' | 'medium' | 'large';
|
|
1041
1079
|
type CheckboxProps = HTMLAttributes<HTMLDivElement> & {
|
|
1042
1080
|
checked?: boolean;
|
|
1043
1081
|
disabled?: boolean;
|
|
1044
1082
|
indeterminate?: boolean;
|
|
1083
|
+
invalid?: boolean;
|
|
1045
1084
|
onCheckedChange?: (checked: boolean) => void;
|
|
1046
1085
|
size?: CheckBoxSize;
|
|
1047
1086
|
};
|
|
@@ -1050,7 +1089,7 @@ type CheckboxProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
1050
1089
|
*
|
|
1051
1090
|
* The state is managed by the parent
|
|
1052
1091
|
*/
|
|
1053
|
-
declare const Checkbox: ({ disabled, checked, indeterminate, onCheckedChange, size, className, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
1092
|
+
declare const Checkbox: ({ disabled, checked, indeterminate, invalid, onCheckedChange, size, className, ...props }: CheckboxProps) => react_jsx_runtime.JSX.Element;
|
|
1054
1093
|
type CheckboxUncontrolledProps = CheckboxProps;
|
|
1055
1094
|
/**
|
|
1056
1095
|
* A Tristate checkbox
|
|
@@ -1092,15 +1131,13 @@ type DateTimePickerProps = {
|
|
|
1092
1131
|
start?: Date;
|
|
1093
1132
|
end?: Date;
|
|
1094
1133
|
onChange?: (date: Date) => void;
|
|
1095
|
-
onFinish?: (date: Date) => void;
|
|
1096
|
-
onRemove?: () => void;
|
|
1097
1134
|
datePickerProps?: Omit<DatePickerProps, 'onChange' | 'value' | 'start' | 'end'>;
|
|
1098
1135
|
timePickerProps?: Omit<TimePickerProps, 'onChange' | 'time' | 'maxHeight'>;
|
|
1099
1136
|
};
|
|
1100
1137
|
/**
|
|
1101
1138
|
* A Component for picking a Date and Time
|
|
1102
1139
|
*/
|
|
1103
|
-
declare const DateTimePicker: ({ value, start, end, mode,
|
|
1140
|
+
declare const DateTimePicker: ({ value, start, end, mode, onChange, timePickerProps, datePickerProps, }: DateTimePickerProps) => react_jsx_runtime.JSX.Element;
|
|
1104
1141
|
|
|
1105
1142
|
type PopoverHorizontalAlignment = 'leftOutside' | 'leftInside' | 'rightOutside' | 'rightInside' | 'center';
|
|
1106
1143
|
type PopoverVerticalAlignment = 'topOutside' | 'topInside' | 'bottomOutside' | 'bottomInside' | 'center';
|
|
@@ -1155,13 +1192,6 @@ type ScrollPickerProps<T> = {
|
|
|
1155
1192
|
*/
|
|
1156
1193
|
declare const ScrollPicker: <T>({ options, mapping, selected, onChange, disabled, }: ScrollPickerProps<T>) => react_jsx_runtime.JSX.Element;
|
|
1157
1194
|
|
|
1158
|
-
type SearchBarProps = InputProps & {
|
|
1159
|
-
onSearch?: () => void;
|
|
1160
|
-
disableOnSearch?: boolean;
|
|
1161
|
-
containerClassName?: string;
|
|
1162
|
-
};
|
|
1163
|
-
declare const SearchBar: ({ placeholder, onSearch, disableOnSearch, containerClassName, ...inputProps }: SearchBarProps) => react_jsx_runtime.JSX.Element;
|
|
1164
|
-
|
|
1165
1195
|
type SelectIconAppearance = 'left' | 'right' | 'none';
|
|
1166
1196
|
type SelectRootProps = PropsWithChildren<{
|
|
1167
1197
|
id?: string;
|
|
@@ -1268,7 +1298,6 @@ type TextareaProps = Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'value'>
|
|
|
1268
1298
|
onChangeText?: (text: string) => void;
|
|
1269
1299
|
onEditCompleted?: (text: string) => void;
|
|
1270
1300
|
saveDelayOptions?: UseDelayOptions;
|
|
1271
|
-
defaultStyle?: boolean;
|
|
1272
1301
|
};
|
|
1273
1302
|
/**
|
|
1274
1303
|
* A Textarea component for inputting longer texts
|
|
@@ -1282,7 +1311,6 @@ declare const Textarea: React.ForwardRefExoticComponent<Omit<TextareaHTMLAttribu
|
|
|
1282
1311
|
onChangeText?: (text: string) => void;
|
|
1283
1312
|
onEditCompleted?: (text: string) => void;
|
|
1284
1313
|
saveDelayOptions?: UseDelayOptions;
|
|
1285
|
-
defaultStyle?: boolean;
|
|
1286
1314
|
} & React.RefAttributes<HTMLTextAreaElement>>;
|
|
1287
1315
|
/**
|
|
1288
1316
|
* A Textarea component that is not controlled by its parent
|
|
@@ -1301,9 +1329,15 @@ type TooltipProps = PropsWithChildren<{
|
|
|
1301
1329
|
/**
|
|
1302
1330
|
* Number of milliseconds until the tooltip appears
|
|
1303
1331
|
*
|
|
1304
|
-
* defaults to
|
|
1332
|
+
* defaults to 400ms
|
|
1333
|
+
*/
|
|
1334
|
+
appearDelay?: number;
|
|
1335
|
+
/**
|
|
1336
|
+
* Number of milliseconds until the tooltip disappears
|
|
1337
|
+
*
|
|
1338
|
+
* defaults to 50ms
|
|
1305
1339
|
*/
|
|
1306
|
-
|
|
1340
|
+
disappearDelay?: number;
|
|
1307
1341
|
/**
|
|
1308
1342
|
* Class names of additional styling properties for the tooltip
|
|
1309
1343
|
*/
|
|
@@ -1313,6 +1347,7 @@ type TooltipProps = PropsWithChildren<{
|
|
|
1313
1347
|
*/
|
|
1314
1348
|
containerClassName?: string;
|
|
1315
1349
|
position?: Position;
|
|
1350
|
+
disabled?: boolean;
|
|
1316
1351
|
}>;
|
|
1317
1352
|
/**
|
|
1318
1353
|
* A Component for showing a tooltip when hovering over Content
|
|
@@ -1324,7 +1359,19 @@ type TooltipProps = PropsWithChildren<{
|
|
|
1324
1359
|
* @param position The direction of the tooltip relative to the Container
|
|
1325
1360
|
* @constructor
|
|
1326
1361
|
*/
|
|
1327
|
-
declare const Tooltip: ({ tooltip, children,
|
|
1362
|
+
declare const Tooltip: ({ tooltip, children, appearDelay, disappearDelay, tooltipClassName, containerClassName, position, disabled, }: TooltipProps) => react_jsx_runtime.JSX.Element;
|
|
1363
|
+
|
|
1364
|
+
type DateTimeInputProps = Omit<InputProps, 'onEditCompleted'> & {
|
|
1365
|
+
date?: Date;
|
|
1366
|
+
onValueChange?: (date: Date) => void;
|
|
1367
|
+
onEditCompleted?: (date: Date) => void;
|
|
1368
|
+
onRemove?: () => void;
|
|
1369
|
+
mode?: 'date' | 'dateTime';
|
|
1370
|
+
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
1371
|
+
pickerProps?: Omit<DateTimePickerProps, 'mode' | 'value' | 'onChange'>;
|
|
1372
|
+
};
|
|
1373
|
+
declare const DateTimeInput: ({ date, onValueChange, onEditCompleted, onRemove, containerProps, mode, pickerProps, ...props }: DateTimeInputProps) => react_jsx_runtime.JSX.Element;
|
|
1374
|
+
declare const DateTimeInputUncontrolled: ({ date: initialDate, ...props }: DateTimeInputProps) => react_jsx_runtime.JSX.Element;
|
|
1328
1375
|
|
|
1329
1376
|
type InsideLabelInputProps = Omit<InputProps, 'aria-label' | 'aria-labelledby' | 'placeholder'> & {
|
|
1330
1377
|
label: ReactNode;
|
|
@@ -1339,6 +1386,13 @@ declare const InsideLabelInput: React.ForwardRefExoticComponent<Omit<InputProps,
|
|
|
1339
1386
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
1340
1387
|
declare const InsideLabelInputUncontrolled: ({ value: initialValue, ...props }: InsideLabelInputProps) => react_jsx_runtime.JSX.Element;
|
|
1341
1388
|
|
|
1389
|
+
type SearchBarProps = InputProps & {
|
|
1390
|
+
onSearch?: (event: React__default.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
1391
|
+
searchButtonProps?: Omit<ButtonProps, 'onClick'>;
|
|
1392
|
+
containerProps?: HTMLAttributes<HTMLDivElement>;
|
|
1393
|
+
};
|
|
1394
|
+
declare const SearchBar: ({ onSearch, searchButtonProps, containerProps, ...inputProps }: SearchBarProps) => react_jsx_runtime.JSX.Element;
|
|
1395
|
+
|
|
1342
1396
|
type ToggleableInputProps = Omit<InputProps, 'defaultStyle'> & {
|
|
1343
1397
|
initialState?: 'editing' | 'display';
|
|
1344
1398
|
editCompleteOptions?: Omit<EditCompleteOptions, 'allowEnterComplete'>;
|
|
@@ -1357,7 +1411,7 @@ declare const ToggleableInputUncontrolled: ({ value: initialValue, onChangeText,
|
|
|
1357
1411
|
|
|
1358
1412
|
type FocusTrapProps = HTMLAttributes<HTMLDivElement> & {
|
|
1359
1413
|
active?: boolean;
|
|
1360
|
-
initialFocus?:
|
|
1414
|
+
initialFocus?: RefObject<HTMLElement>;
|
|
1361
1415
|
/**
|
|
1362
1416
|
* Whether to focus the first element when the initialFocus isn't provided
|
|
1363
1417
|
*
|
|
@@ -1370,7 +1424,7 @@ type FocusTrapProps = HTMLAttributes<HTMLDivElement> & {
|
|
|
1370
1424
|
*/
|
|
1371
1425
|
declare const FocusTrap: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
1372
1426
|
active?: boolean;
|
|
1373
|
-
initialFocus?:
|
|
1427
|
+
initialFocus?: RefObject<HTMLElement>;
|
|
1374
1428
|
/**
|
|
1375
1429
|
* Whether to focus the first element when the initialFocus isn't provided
|
|
1376
1430
|
*
|
|
@@ -1411,12 +1465,12 @@ declare function useFocusManagement(): {
|
|
|
1411
1465
|
focusPrevious: () => void;
|
|
1412
1466
|
};
|
|
1413
1467
|
|
|
1414
|
-
declare const useFocusOnceVisible: (ref:
|
|
1468
|
+
declare const useFocusOnceVisible: (ref: RefObject<HTMLElement>, disable?: boolean) => void;
|
|
1415
1469
|
|
|
1416
1470
|
type UseFocusTrapProps = {
|
|
1417
|
-
container:
|
|
1471
|
+
container: RefObject<HTMLElement>;
|
|
1418
1472
|
active?: boolean;
|
|
1419
|
-
initialFocus?:
|
|
1473
|
+
initialFocus?: RefObject<HTMLElement>;
|
|
1420
1474
|
/**
|
|
1421
1475
|
* Whether to focus the first element when the initialFocus isn't provided
|
|
1422
1476
|
*
|
|
@@ -1491,7 +1545,7 @@ declare const useOutsideClick: <Ts extends RefObject<HTMLElement>[]>(refs: Ts, h
|
|
|
1491
1545
|
|
|
1492
1546
|
declare const useOverwritableState: <T>(initialValue?: T, onChange?: (value: T) => void) => [T, React__default.Dispatch<React__default.SetStateAction<T>>];
|
|
1493
1547
|
|
|
1494
|
-
declare const useRerender: () => React.
|
|
1548
|
+
declare const useRerender: () => React.ActionDispatch<[]>;
|
|
1495
1549
|
|
|
1496
1550
|
/**
|
|
1497
1551
|
* A hook that wraps the event listener attachment
|
|
@@ -1617,6 +1671,9 @@ type HightideTranslationEntries = {
|
|
|
1617
1671
|
'remove': string;
|
|
1618
1672
|
'required': string;
|
|
1619
1673
|
'reset': string;
|
|
1674
|
+
'rSortingOrderAfter': (values: {
|
|
1675
|
+
otherSortings: number;
|
|
1676
|
+
}) => string;
|
|
1620
1677
|
'save': string;
|
|
1621
1678
|
'saved': string;
|
|
1622
1679
|
'search': string;
|
|
@@ -1953,4 +2010,4 @@ declare class SessionStorageService extends StorageService {
|
|
|
1953
2010
|
|
|
1954
2011
|
declare const writeToClipboard: (text: string) => Promise<void>;
|
|
1955
2012
|
|
|
1956
|
-
export { ASTNodeInterpreter, type ASTNodeInterpreterProps, AnimatedRing, type AnimatedRingProps, ArrayUtil, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, AvatarUtil, type BagFunction, type BagFunctionOrNode, BagFunctionUtil, BreadCrumb, 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, DateTimePicker, type DateTimePickerMode, type DateTimePickerProps, DayPicker, type DayPickerProps, DayPickerUncontrolled, type DeepPartial, Dialog, type DialogPosition, type DialogProps, type Direction, DiscardChangesDialog, DividerInserter, type DividerInserterProps, type
|
|
2013
|
+
export { ASTNodeInterpreter, type ASTNodeInterpreterProps, AnimatedRing, type AnimatedRingProps, ArrayUtil, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, type AvatarSize, AvatarUtil, type BagFunction, type BagFunctionOrNode, BagFunctionUtil, BreadCrumb, 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, DateUtils, DayPicker, type DayPickerProps, DayPickerUncontrolled, type DeepPartial, Dialog, type DialogPosition, type DialogProps, type Direction, DiscardChangesDialog, DividerInserter, type DividerInserterProps, Duration, type DurationJSON, type EaseFunction, EaseFunctions, type EditCompleteOptions, type EditCompleteOptionsResolved, ErrorComponent, type ErrorComponentProps, type Exact, Expandable, type ExpandableProps, ExpandableUncontrolled, ExpansionIcon, type ExpansionIconProps, type FAQItem, FAQSection, type FAQSectionProps, FillerRowElement, type FillerRowElementProps, FloatingContainer, type FloatingContainerProps, type FloatingElementAlignment, FocusTrap, type FocusTrapProps, type FormElementStateProperties, FormElementWrapper, type FormElementWrapperProps, HelpwaveBadge, type HelpwaveBadgeProps, HelpwaveLogo, type HelpwaveProps, type HightideTranslationEntries, type HightideTranslationLocales, Input, InputDialog, type InputModalProps, type InputProps, InputUncontrolled, InsideLabelInput, InsideLabelInputUncontrolled, Label, type LabelProps, type LabelType, 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, LoadingButton, type LoadingComponentProps, LoadingContainer, LocalStorageService, LocaleContext, type LocaleContextValue, LocaleProvider, 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, type MultiSelectUncontrolledProps, MultiSubjectSearchWithMapping, Navigation, NavigationItemList, type NavigationItemListProps, type NavigationItemType, type NavigationProps, NumberProperty, type NumberPropertyProps, Pagination, type PaginationProps, type PopoverHorizontalAlignment, type PopoverVerticalAlignment, ProgressIndicator, type ProgressIndicatorProps, PromiseUtils, PropertyBase, type PropertyBaseProps, 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, Tab, type TabContextType, type TabInfo, 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, ThemeContext, ThemeDialog, ThemeProvider, type ThemeType, ThemeUtil, TimeDisplay, TimePicker, type TimePickerProps, TimePickerUncontrolled, ToggleableInput, ToggleableInputUncontrolled, Tooltip, type TooltipProps, Transition, type TransitionWrapperProps, type UseDelayOptions, type UseDelayOptionsResolved, type UseFloatingElementOptions, type UseFloatingElementProps, type UseFocusTrapProps, 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, useDelay, useFloatingElement, useFocusGuards, useFocusManagement, useFocusOnceVisible, useFocusTrap, useHightideTranslation, useHoverState, useICUTranslation, useIsMounted, useLanguage, useLocalStorage, useLocale, useLogOnce, useOutsideClick, useOverwritableState, usePopoverPosition, useRerender, useResizeCallbackWrapper, useSearch, useTabContext, useTheme, useTranslatedValidators, useZIndexRegister, validateEmail, writeToClipboard };
|