@webority/ui-react 0.138.0 → 0.139.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.
@@ -1,101 +0,0 @@
1
- import "@webority/ui-elements/elements/multiselect";
2
- declare const AppMultiSelect: import("react").ForwardRefExoticComponent<{
3
- /** The values of the chosen options. */
4
- values?: string[];
5
- onChange?: (values: string[]) => void;
6
- /** The choices. A label may be a node; search, typeahead and the accessible names use its text. */
7
- options?: Array<{
8
- value: string;
9
- label: import('react').ReactNode;
10
- description?: string;
11
- avatar?: string;
12
- initials?: string;
13
- disabled?: boolean;
14
- disabledHint?: string;
15
- }>;
16
- /**
17
- * Shown while nothing is chosen.
18
- * @default "Select…"
19
- */
20
- placeholder?: string;
21
- /**
22
- * Placeholder of the search box inside the menu.
23
- * @default "Search…"
24
- */
25
- searchPlaceholder?: string;
26
- /**
27
- * Shows a search box in the menu. Ignored when allowCustom is on, because the inline input is the search.
28
- * @default true
29
- */
30
- searchable?: boolean;
31
- /**
32
- * Accepts typed entries that are not options.
33
- * @default false
34
- */
35
- allowCustom?: boolean;
36
- validateCustom?: (value: string) => boolean | string;
37
- /** A regular expression a typed entry must match in full. */
38
- customPattern?: string;
39
- /** The message for a refused typed entry. Without it the message is Enter a valid value. */
40
- customInvalidMessage?: string;
41
- /** The starting selection of an uncontrolled field. */
42
- defaultValues?: string[];
43
- /**
44
- * Stops the control from opening or changing.
45
- * @default false
46
- */
47
- disabled?: boolean;
48
- /**
49
- * Shows the value but blocks editing. The value still posts.
50
- * @default false
51
- */
52
- readOnly?: boolean;
53
- /**
54
- * Shows a busy state and blocks input while data loads.
55
- * @default false
56
- */
57
- loading?: boolean;
58
- /** A library icon name drawn at the start of the control. */
59
- icon?: string;
60
- /** The control size around the default. */
61
- size?: 'sm' | 'md' | 'lg';
62
- /**
63
- * Keeps the chosen chips on one row and folds the overflow into a +N counter.
64
- * @default false
65
- */
66
- collapseChips?: boolean;
67
- /** The field name posted with the form. */
68
- name?: string;
69
- /** The DOM id of the control and the target of the label. */
70
- id?: string;
71
- /** The field label. */
72
- label?: import('react').ReactNode;
73
- /** An error message shown under the control. */
74
- error?: string;
75
- /** Helper text shown under the control. */
76
- helperText?: string;
77
- /**
78
- * Marks the field as required.
79
- * @default false
80
- */
81
- required?: boolean;
82
- /**
83
- * Ends the label with (optional) when the field is not required. Required wins when both are set.
84
- * @default false
85
- */
86
- optional?: boolean;
87
- /**
88
- * Replaces the built-in English text, for other languages.
89
- * @default "(optional)"
90
- */
91
- optionalLabel?: string;
92
- /** Help content shown in an info tip beside the label. */
93
- help?: import('react').ReactNode;
94
- /**
95
- * The accessible name of that info tip.
96
- * @default "More information"
97
- */
98
- helpLabel?: string;
99
- fieldClassName?: string;
100
- } & import("react").RefAttributes<HTMLElement>>;
101
- export default AppMultiSelect;
@@ -1,82 +0,0 @@
1
- import "@webority/ui-elements/elements/taginput";
2
- declare const AppTagInput: import("react").ForwardRefExoticComponent<{
3
- /** The current tags, one string per tag, in the order shown. */
4
- values?: string[];
5
- onChange?: (values: string[]) => void;
6
- /**
7
- * Placeholder for the input field.
8
- * @default "Add…"
9
- */
10
- placeholder?: string;
11
- /** The field name the tags post under. */
12
- name?: string;
13
- /** The label above the field. */
14
- label?: import('react').ReactNode;
15
- /** An error message. It replaces the helper text and marks the field invalid. */
16
- error?: string;
17
- /** Helper text under the field. */
18
- helperText?: string;
19
- /**
20
- * Marks the field required and shows the required mark beside the label.
21
- * @default false
22
- */
23
- required?: boolean;
24
- /**
25
- * Ends the label with (optional) when the field is not required. Required wins when both are set.
26
- * @default false
27
- */
28
- optional?: boolean;
29
- /**
30
- * Replaces the built-in English text, for other languages.
31
- * @default "(optional)"
32
- */
33
- optionalLabel?: string;
34
- /** Control size around the default; leave unset for the default size. */
35
- size?: 'sm' | 'md' | 'lg';
36
- /** The most tags the field accepts. */
37
- maxTags?: number;
38
- /**
39
- * Allows case-sensitive duplicate values.
40
- * @default false
41
- */
42
- allowDuplicates?: boolean;
43
- /**
44
- * Locks the field.
45
- * @default false
46
- */
47
- disabled?: boolean;
48
- /**
49
- * Shows the value but blocks editing. The value still posts.
50
- * @default false
51
- */
52
- readOnly?: boolean;
53
- /**
54
- * Shows a busy state and blocks input while data loads.
55
- * @default false
56
- */
57
- loading?: boolean;
58
- /** The starting value of an uncontrolled field. */
59
- defaultValues?: string[];
60
- /** The control's id. A generated id is used when this is unset. */
61
- id?: string;
62
- /** The accessible name of the input. When unset, a text label names it. */
63
- ariaLabel?: string;
64
- /**
65
- * A class added to the control.
66
- * @default ""
67
- */
68
- className?: string;
69
- /**
70
- * A class added to the wrapping field.
71
- * @default ""
72
- */
73
- fieldClassName?: string;
74
- /** Help content shown in an info tip beside the label. */
75
- help?: import('react').ReactNode;
76
- /**
77
- * The accessible name of that info tip.
78
- * @default "More information"
79
- */
80
- helpLabel?: string;
81
- } & import("react").RefAttributes<HTMLElement>>;
82
- export default AppTagInput;