@webority/ui-react 0.80.3 → 0.80.5
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/types/components/AppAutocomplete.d.ts +32 -48
- package/dist/types/components/AppCalendar.d.ts +33 -46
- package/dist/types/components/AppChart.d.ts +69 -55
- package/dist/types/components/AppCheckbox.d.ts +8 -18
- package/dist/types/components/AppCountrySelect.d.ts +9 -12
- package/dist/types/components/AppDatePicker.d.ts +20 -34
- package/dist/types/components/AppDateRangePicker.d.ts +29 -38
- package/dist/types/components/AppEmptyState.d.ts +3 -2
- package/dist/types/components/AppFileViewer.d.ts +23 -55
- package/dist/types/components/AppInput.d.ts +34 -78
- package/dist/types/components/AppMentionInput.d.ts +39 -39
- package/dist/types/components/AppMultiSelect.d.ts +33 -50
- package/dist/types/components/AppNumberInput.d.ts +22 -42
- package/dist/types/components/AppOtpInput.d.ts +16 -46
- package/dist/types/components/AppPhoneNumberInput.d.ts +17 -1
- package/dist/types/components/AppRadio.d.ts +8 -18
- package/dist/types/components/AppRichText.d.ts +19 -41
- package/dist/types/components/AppSelect.d.ts +12 -12
- package/dist/types/components/AppSlider.d.ts +28 -36
- package/dist/types/components/AppSortableList.d.ts +16 -30
- package/dist/types/components/AppSwitch.d.ts +9 -21
- package/dist/types/components/AppTableEmptyState.d.ts +3 -2
- package/dist/types/components/AppTagInput.d.ts +20 -26
- package/dist/types/components/AppTextarea.d.ts +17 -24
- package/dist/types/components/AppTimePicker.d.ts +22 -34
- package/dist/types/components/AppTour.d.ts +40 -55
- package/dist/types/components/AppTreeView.d.ts +31 -42
- package/dist/types/components/AppWizard.d.ts +48 -46
- package/package.json +3 -3
|
@@ -1,79 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
* @param {import('react').ReactNode} [props.prefix] A bordered box before the input (e.g. ₹, https://).
|
|
36
|
-
* @param {import('react').ReactNode} [props.suffix] A bordered box after the input (e.g. .00, .com).
|
|
37
|
-
* @param {import('react').ReactNode} [props.action] A control rendered BESIDE the field, outside its
|
|
38
|
-
* border — a labelled action button (verify, apply, send code), or a confirmation once the field
|
|
39
|
-
* is resolved. The field flexes to fill the row; the action keeps its natural width. Exclusive
|
|
40
|
-
* with the in-field shells (unit / password / affix / trailing icon); pairs with a leading icon.
|
|
41
|
-
* @param {boolean|"above"} [props.floatingLabel=false] Label sits inside as a placeholder, then slides
|
|
42
|
-
* up on focus/fill. `true` rests it on the top border; `"above"` rests it above the box at the
|
|
43
|
-
* top-left, clear of the border. Opt-in variant; standalone only (no icon/unit/prefix in the same field).
|
|
44
|
-
* @param {"bare"} [props.variant] Borderless variant — no border/background, inherits the
|
|
45
|
-
* container's chrome (inline-rename, ⌘K).
|
|
46
|
-
* @param {boolean|object} [props.passwordRequirements=false] Only honoured when `type="password"`.
|
|
47
|
-
* Pass `true` for the default policy (≥10 chars, upper, lower, digit, special), or an object to
|
|
48
|
-
* configure it — `{ minLength, uppercase, lowercase, digit, special, uniqueChars, customRules, title }`.
|
|
49
|
-
* `customRules` is a list of `{ label, pattern }` for a product's own rules (such as no spaces): a rule
|
|
50
|
-
* ticks when the regular expression `pattern` (a JavaScript RegExp source string) matches. Shows
|
|
51
|
-
* a live "Password requirements" checklist on focus that ticks each rule green as the user types
|
|
52
|
-
* (client-side, before any server validation). The rule set is the one shared with Razor via
|
|
53
|
-
* `@webority/ui-elements`, so both surfaces validate identically.
|
|
54
|
-
* @param {"auto"|"top"|"bottom"|"start"|"end"|"inline"} [props.requirementsPlacement="auto"] Which side
|
|
55
|
-
* the requirements popover opens; `auto` flips to stay in view. `inline` has no popover: the checklist
|
|
56
|
-
* sits under the input, always visible, in place of the hint.
|
|
57
|
-
* @param {string} [props.mask] Format the value while it is typed. A named mask
|
|
58
|
-
* (`phone-in`, `pan`, `gstin`, `aadhaar`, `ifsc`, `pin-code`, `date` as DD-MM-YYYY, `amount` with
|
|
59
|
-
* Indian grouping) or a pattern, where `9` is a digit, `A` a letter, `*` a digit or letter and any
|
|
60
|
-
* other character a literal (`"(999) 999-9999"`). Paste is cleaned and re-formatted, Backspace and
|
|
61
|
-
* Delete step over literals, and the caret stays put; a keyboard that composes text (an Android IME) is
|
|
62
|
-
* left alone until it commits, and a value set from code (react-hook-form `setValue` / `reset`) is
|
|
63
|
-
* laid out too. The behaviour is the one `<app-input mask>` runs, from `@webority/ui-elements`. Use
|
|
64
|
-
* it on a `text`, `tel`, `search`, `url` or `password` field; any other `type` warns, and an unknown
|
|
65
|
-
* mask name warns. A controlled `value` (raw or formatted) is laid out under the mask. `onChange`
|
|
66
|
-
* and `onBlur` get an event whose `target.value` is the POSTED value (the raw characters, or ISO
|
|
67
|
-
* `yyyy-MM-dd` for `date`), so a controlled field and a zod rule see what the server will see;
|
|
68
|
-
* `onInput` sees the field as displayed. react-hook-form's `register` reads the element itself, so
|
|
69
|
-
* pair it with `setValueAs: (v) => postedMasked(mask, v)`. A named mask also marks the field invalid
|
|
70
|
-
* with a curated message while it is incomplete or wrong, shown as the field's error once the field
|
|
71
|
-
* has been left or a submit was tried (an `error` you pass wins).
|
|
72
|
-
* @param {boolean} [props.postFormatted=false] With a `mask`, a native form submit posts the
|
|
73
|
-
* formatted value instead of the raw one (the typed characters without the literals).
|
|
74
|
-
* @param {(raw: string, formatted: string) => void} [props.onMaskChange] Called with the raw and the
|
|
75
|
-
* formatted value whenever the raw value changes.
|
|
76
|
-
* @param {import('react').Ref<HTMLInputElement>} [ref]
|
|
77
|
-
*/
|
|
78
|
-
declare const AppInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
1
|
+
declare const AppInput: import("react").ForwardRefExoticComponent<{
|
|
2
|
+
label?: import('react').ReactNode;
|
|
3
|
+
required?: boolean;
|
|
4
|
+
error?: string;
|
|
5
|
+
hint?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
help?: import('react').ReactNode;
|
|
8
|
+
helpLabel?: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
size?: "sm" | "md" | "lg";
|
|
11
|
+
leftIcon?: string;
|
|
12
|
+
rightIcon?: string;
|
|
13
|
+
onRightIconClick?: () => void;
|
|
14
|
+
rightIconLabel?: string;
|
|
15
|
+
unit?: string;
|
|
16
|
+
id?: string;
|
|
17
|
+
name?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
fieldClassName?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
clearable?: boolean;
|
|
22
|
+
showCount?: boolean;
|
|
23
|
+
maxLength?: number;
|
|
24
|
+
prefix?: import('react').ReactNode;
|
|
25
|
+
suffix?: import('react').ReactNode;
|
|
26
|
+
action?: import('react').ReactNode;
|
|
27
|
+
floatingLabel?: boolean | "above";
|
|
28
|
+
variant?: "bare";
|
|
29
|
+
passwordRequirements?: boolean | object;
|
|
30
|
+
requirementsPlacement?: "auto" | "top" | "bottom" | "start" | "end" | "inline";
|
|
31
|
+
mask?: string;
|
|
32
|
+
postFormatted?: boolean;
|
|
33
|
+
onMaskChange?: (raw: string, formatted: string) => void;
|
|
34
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
79
35
|
export default AppInput;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/mention-input";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
2
|
+
declare const AppMentionInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string, meta: {
|
|
5
|
+
mentions: {
|
|
6
|
+
id: string;
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
}) => void;
|
|
10
|
+
people?: {
|
|
11
|
+
value: string;
|
|
12
|
+
label: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
src?: string;
|
|
15
|
+
}[];
|
|
16
|
+
loadPeople?: (query: string, opts?: {
|
|
17
|
+
signal?: AbortSignal;
|
|
18
|
+
}) => Promise<{
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
description?: string;
|
|
22
|
+
src?: string;
|
|
23
|
+
}[]>;
|
|
24
|
+
minChars?: number;
|
|
25
|
+
debounce?: number;
|
|
26
|
+
onSubmit?: () => void;
|
|
27
|
+
rows?: number;
|
|
28
|
+
placeholder?: string;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
name?: string;
|
|
31
|
+
id?: string;
|
|
32
|
+
label?: import('react').ReactNode;
|
|
33
|
+
error?: string;
|
|
34
|
+
hint?: string;
|
|
35
|
+
required?: boolean;
|
|
36
|
+
help?: import('react').ReactNode;
|
|
37
|
+
helpLabel?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
fieldClassName?: string;
|
|
40
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
41
41
|
export default AppMentionInput;
|
|
@@ -1,52 +1,35 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/multiselect";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
* @param {boolean} [props.disabled]
|
|
36
|
-
* @param {string} [props.icon] Leading glyph inside the control (a library icon name).
|
|
37
|
-
* @param {'sm'|'lg'} [props.size] Control size around the default.
|
|
38
|
-
* @param {boolean} [props.collapseChips=false] Keep the chosen chips on one row and fold the
|
|
39
|
-
* overflow into a "+N" counter, rather than letting the control grow.
|
|
40
|
-
* @param {string} [props.name]
|
|
41
|
-
* @param {string} [props.id] DOM id for the control and the label's `for` target.
|
|
42
|
-
* @param {import('react').ReactNode} [props.label]
|
|
43
|
-
* @param {string} [props.error]
|
|
44
|
-
* @param {string} [props.hint]
|
|
45
|
-
* @param {boolean} [props.required]
|
|
46
|
-
* @param {import('react').ReactNode} [props.help] Help content shown in an info tip beside the label.
|
|
47
|
-
* @param {string} [props.helpLabel="More information"] Accessible name for that info tip.
|
|
48
|
-
* @param {string} [props.fieldClassName]
|
|
49
|
-
* @param {import('react').Ref<HTMLElement>} [ref]
|
|
50
|
-
*/
|
|
51
|
-
declare const AppMultiSelect: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
2
|
+
declare const AppMultiSelect: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
values?: string[];
|
|
4
|
+
onChange?: (values: string[]) => void;
|
|
5
|
+
options?: Array<{
|
|
6
|
+
value: string;
|
|
7
|
+
label: import('react').ReactNode;
|
|
8
|
+
description?: string;
|
|
9
|
+
avatar?: string;
|
|
10
|
+
initials?: string;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
disabledHint?: string;
|
|
13
|
+
}>;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
searchPlaceholder?: string;
|
|
16
|
+
searchable?: boolean;
|
|
17
|
+
allowCustom?: boolean;
|
|
18
|
+
validateCustom?: (value: string) => boolean | string;
|
|
19
|
+
customPattern?: string;
|
|
20
|
+
customInvalidMessage?: string;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
icon?: string;
|
|
23
|
+
size?: 'sm' | 'lg';
|
|
24
|
+
collapseChips?: boolean;
|
|
25
|
+
name?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
label?: import('react').ReactNode;
|
|
28
|
+
error?: string;
|
|
29
|
+
hint?: string;
|
|
30
|
+
required?: boolean;
|
|
31
|
+
help?: import('react').ReactNode;
|
|
32
|
+
helpLabel?: string;
|
|
33
|
+
fieldClassName?: string;
|
|
34
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
52
35
|
export default AppMultiSelect;
|
|
@@ -1,43 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* @param {boolean} [props.required=false]
|
|
24
|
-
* @param {string} [props.error]
|
|
25
|
-
* @param {string} [props.hint]
|
|
26
|
-
* @param {import('react').ReactNode} [props.help] Content for the label info-tip (decoupled:
|
|
27
|
-
* the caller supplies the node; a glossary-backed app wraps its lookup here). Mirrors AppInput.
|
|
28
|
-
* @param {string} [props.helpLabel="More information"] aria-label for the info-tip button.
|
|
29
|
-
* @param {number} [props.min] Minimum value (inclusive)
|
|
30
|
-
* @param {number} [props.max] Maximum value (inclusive)
|
|
31
|
-
* @param {number} [props.step=1] Increment by this amount
|
|
32
|
-
* @param {number} [props.precision=0] Number of decimal places to round to
|
|
33
|
-
* @param {string} [props.unit] Unit suffix displayed inside the field (e.g. "kg", "°C")
|
|
34
|
-
* @param {string} [props.size="md"] Control size — sm/md/lg
|
|
35
|
-
* @param {string} [props.id]
|
|
36
|
-
* @param {string} [props.name]
|
|
37
|
-
* @param {string} [props.className]
|
|
38
|
-
* @param {string} [props.fieldClassName]
|
|
39
|
-
* @param {boolean} [props.disabled=false]
|
|
40
|
-
* @param {import('react').Ref<HTMLInputElement>} [ref]
|
|
41
|
-
*/
|
|
42
|
-
declare const AppNumberInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
1
|
+
declare const AppNumberInput: import("react").ForwardRefExoticComponent<{
|
|
2
|
+
value?: number | '';
|
|
3
|
+
onChange?: (next: number | '') => void;
|
|
4
|
+
label?: import('react').ReactNode;
|
|
5
|
+
required?: boolean;
|
|
6
|
+
error?: string;
|
|
7
|
+
hint?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
help?: import('react').ReactNode;
|
|
10
|
+
helpLabel?: string;
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
step?: number;
|
|
14
|
+
precision?: number;
|
|
15
|
+
unit?: string;
|
|
16
|
+
size?: string;
|
|
17
|
+
id?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
fieldClassName?: string;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
43
23
|
export default AppNumberInput;
|
|
@@ -1,48 +1,18 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/otp";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @param {(value: string) => void} [props.onChange]
|
|
19
|
-
* @param {(value: string) => void} [props.onComplete] Fires once, when the last character
|
|
20
|
-
* lands — so a form can submit itself without polling the value.
|
|
21
|
-
*
|
|
22
|
-
* It receives the CODE, not a DOM event. With react-hook-form that matters:
|
|
23
|
-
* `onComplete={handleSubmit(onSubmit)}` hands a string to a handler that expects an event
|
|
24
|
-
* and calls `preventDefault` on it. RHF v7 guards against it so the short form happens to
|
|
25
|
-
* work — by accident, and not something to rely on. Wrap it instead:
|
|
26
|
-
*
|
|
27
|
-
* ```jsx
|
|
28
|
-
* <AppOtpInput onComplete={() => handleSubmit(onSubmit)()} />
|
|
29
|
-
* ```
|
|
30
|
-
*
|
|
31
|
-
* The component is also CONTROLLED, so with RHF it wants `<Controller>` rather than
|
|
32
|
-
* `register`.
|
|
33
|
-
* @param {number} [props.length=6] Characters in the code. TOTP is 6; backup codes are often 8.
|
|
34
|
-
* @param {"numeric"|"alphanumeric"} [props.mode="numeric"] Drives the on-screen keyboard and
|
|
35
|
-
* what the field will accept.
|
|
36
|
-
* @param {string} [props.label]
|
|
37
|
-
* @param {boolean} [props.required=false]
|
|
38
|
-
* @param {string} [props.hint]
|
|
39
|
-
* @param {string} [props.error]
|
|
40
|
-
* @param {boolean} [props.disabled=false]
|
|
41
|
-
* @param {string} [props.name]
|
|
42
|
-
* @param {string} [props.id]
|
|
43
|
-
* @param {string} [props.className] Class to apply to the control element.
|
|
44
|
-
* @param {string} [props.fieldClassName] Class to apply to the wrapper field div.
|
|
45
|
-
* @param {import('react').Ref<HTMLElement>} [ref]
|
|
46
|
-
*/
|
|
47
|
-
declare const AppOtpInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
2
|
+
declare const AppOtpInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
onComplete?: (value: string) => void;
|
|
6
|
+
length?: number;
|
|
7
|
+
mode?: "numeric" | "alphanumeric";
|
|
8
|
+
label?: string;
|
|
9
|
+
required?: boolean;
|
|
10
|
+
hint?: string;
|
|
11
|
+
error?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
name?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
fieldClassName?: string;
|
|
17
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
48
18
|
export default AppOtpInput;
|
|
@@ -1,3 +1,19 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/phone";
|
|
2
|
-
declare const AppPhoneNumberInput: import("react").ForwardRefExoticComponent<
|
|
2
|
+
declare const AppPhoneNumberInput: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange?: (value: string) => void;
|
|
5
|
+
country?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
id?: string;
|
|
9
|
+
label?: import('react').ReactNode;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
required?: boolean;
|
|
12
|
+
hint?: string;
|
|
13
|
+
error?: string;
|
|
14
|
+
showFlag?: boolean;
|
|
15
|
+
showDialCode?: boolean;
|
|
16
|
+
size?: "sm" | "md" | "lg";
|
|
17
|
+
fieldClassName?: string;
|
|
18
|
+
} & import("react").RefAttributes<any>>;
|
|
3
19
|
export default AppPhoneNumberInput;
|
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* @param {object} props
|
|
10
|
-
* @param {import('react').ReactNode} [props.label]
|
|
11
|
-
* @param {string} [props.id]
|
|
12
|
-
* @param {string} [props.name]
|
|
13
|
-
* @param {string} [props.error] Error message, rendered below the control. Replaces the hint.
|
|
14
|
-
* @param {string} [props.hint] Helper text below the control. Hidden while an error is shown.
|
|
15
|
-
* @param {string} [props.className]
|
|
16
|
-
* @param {import('react').Ref<HTMLInputElement>} [ref]
|
|
17
|
-
*/
|
|
18
|
-
declare const AppRadio: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
1
|
+
declare const AppRadio: import("react").ForwardRefExoticComponent<{
|
|
2
|
+
label?: import('react').ReactNode;
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
19
9
|
export default AppRadio;
|
|
@@ -1,42 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
* @param {object} props
|
|
22
|
-
* @param {string} [props.value] The content, in `format`.
|
|
23
|
-
* @param {(value: string) => void} [props.onChange] Called with the new string on every edit.
|
|
24
|
-
* @param {'html'|'markdown'} [props.format='html'] What `value` is.
|
|
25
|
-
* @param {string} [props.placeholder] Shown while the editor is empty.
|
|
26
|
-
* @param {string} [props.name] Posted under this name with a form.
|
|
27
|
-
* @param {import('react').ReactNode} [props.label]
|
|
28
|
-
* @param {string} [props.error]
|
|
29
|
-
* @param {string} [props.hint]
|
|
30
|
-
* @param {boolean} [props.required=false] Marks the field required; an empty editor is invalid.
|
|
31
|
-
* @param {boolean} [props.disabled=false] Locks the editor and keeps it out of the form post.
|
|
32
|
-
* @param {boolean} [props.readOnly=false] Locks the editor; the value still posts.
|
|
33
|
-
* @param {string} [props.id]
|
|
34
|
-
* @param {string} [props.ariaLabel] Accessible name for the editor; defaults to a string `label`.
|
|
35
|
-
* @param {string} [props.className] Class on the `<wui-rich-text>` element.
|
|
36
|
-
* @param {string} [props.fieldClassName] Class on the wrapper field div.
|
|
37
|
-
* @param {import('react').ReactNode} [props.help] Help content shown in an info tip beside the label.
|
|
38
|
-
* @param {string} [props.helpLabel="More information"] Accessible name for that info tip.
|
|
39
|
-
* @param {import('react').Ref<HTMLElement>} [ref] The `<wui-rich-text>` element.
|
|
40
|
-
*/
|
|
41
|
-
declare const AppRichText: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
1
|
+
declare const AppRichText: import("react").ForwardRefExoticComponent<{
|
|
2
|
+
value?: string;
|
|
3
|
+
onChange?: (value: string) => void;
|
|
4
|
+
format?: 'html' | 'markdown';
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
label?: import('react').ReactNode;
|
|
8
|
+
error?: string;
|
|
9
|
+
hint?: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
readOnly?: boolean;
|
|
13
|
+
id?: string;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
fieldClassName?: string;
|
|
17
|
+
help?: import('react').ReactNode;
|
|
18
|
+
helpLabel?: string;
|
|
19
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
42
20
|
export default AppRichText;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/select";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
declare const AppSelect: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
options?: Array<{
|
|
4
|
+
value: string;
|
|
5
|
+
label?: import('react').ReactNode;
|
|
6
|
+
text?: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
}>;
|
|
9
|
+
className?: string;
|
|
10
|
+
fieldClassName?: string;
|
|
11
|
+
prefix?: import('react').ReactNode;
|
|
12
|
+
suffix?: import('react').ReactNode;
|
|
13
|
+
} & import("react").RefAttributes<any>>;
|
|
14
14
|
export default AppSelect;
|
|
@@ -1,38 +1,30 @@
|
|
|
1
1
|
import "@webority/ui-elements/elements/slider";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
* @param {string} [props.unit] Suffix for the value label (e.g. '%')
|
|
31
|
-
* @param {string} [props.id]
|
|
32
|
-
* @param {string} [props.ariaLabel]
|
|
33
|
-
* @param {string} [props.className] Class to apply to the control element.
|
|
34
|
-
* @param {string} [props.fieldClassName] Class to apply to the wrapper field div.
|
|
35
|
-
* @param {import('react').Ref<HTMLElement>} [ref]
|
|
36
|
-
*/
|
|
37
|
-
declare const AppSlider: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
|
|
2
|
+
declare const AppSlider: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
value?: number;
|
|
4
|
+
start?: number;
|
|
5
|
+
end?: number;
|
|
6
|
+
range?: boolean;
|
|
7
|
+
onChange?: (value: number | {
|
|
8
|
+
start: any;
|
|
9
|
+
end: any;
|
|
10
|
+
}) => void;
|
|
11
|
+
min?: number;
|
|
12
|
+
max?: number;
|
|
13
|
+
step?: number;
|
|
14
|
+
label?: string;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
hint?: string;
|
|
17
|
+
error?: string;
|
|
18
|
+
name?: string;
|
|
19
|
+
startName?: string;
|
|
20
|
+
endName?: string;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
size?: 'sm' | 'md' | 'lg';
|
|
23
|
+
showValue?: boolean;
|
|
24
|
+
unit?: string;
|
|
25
|
+
id?: string;
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
fieldClassName?: string;
|
|
29
|
+
} & import("react").RefAttributes<HTMLElement>>;
|
|
38
30
|
export default AppSlider;
|