@webority/ui-react 0.130.0 → 0.130.2
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/canvas-kit/kit.js +1309 -484
- package/dist/canvas-kit/manifest.json +1032 -100
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppTooltip.js +1 -1
- package/dist/guidance.json +568 -68
- package/dist/types/components/AppAutocomplete.d.ts +2 -2
- package/dist/types/components/AppCheckbox.d.ts +1 -1
- package/dist/types/components/AppCountrySelect.d.ts +1 -1
- package/dist/types/components/AppDatePicker.d.ts +1 -1
- package/dist/types/components/AppDateRangePicker.d.ts +1 -1
- package/dist/types/components/AppDropZone.d.ts +2 -2
- package/dist/types/components/AppDropdown.d.ts +1 -1
- package/dist/types/components/AppFileAttachment.d.ts +3 -3
- package/dist/types/components/AppFilePicker.d.ts +2 -2
- package/dist/types/components/AppImagePicker.d.ts +2 -2
- package/dist/types/components/AppInput.d.ts +2 -2
- package/dist/types/components/AppMentionInput.d.ts +1 -1
- package/dist/types/components/AppNumberInput.d.ts +1 -1
- package/dist/types/components/AppOtpInput.d.ts +1 -1
- package/dist/types/components/AppPhoneNumberInput.d.ts +2 -2
- package/dist/types/components/AppRadio.d.ts +1 -1
- package/dist/types/components/AppRadioGroup.d.ts +1 -1
- package/dist/types/components/AppScoreScale.d.ts +1 -1
- package/dist/types/components/AppSearch.d.ts +1 -1
- package/dist/types/components/AppSelect.d.ts +1 -1
- package/dist/types/components/AppTagInput.d.ts +1 -1
- package/dist/types/components/AppTextarea.d.ts +2 -2
- package/dist/types/components/AppTimePicker.d.ts +1 -1
- package/package.json +7 -7
|
@@ -27,7 +27,7 @@ declare const AppAutocomplete: import("react").ForwardRefExoticComponent<{
|
|
|
27
27
|
label: string;
|
|
28
28
|
}[]>;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Placeholder text shown in the empty field.
|
|
31
31
|
* @default "Search…"
|
|
32
32
|
*/
|
|
33
33
|
placeholder?: string;
|
|
@@ -70,7 +70,7 @@ declare const AppAutocomplete: import("react").ForwardRefExoticComponent<{
|
|
|
70
70
|
label?: import('react').ReactNode;
|
|
71
71
|
/** An error message shown under the field. */
|
|
72
72
|
error?: string;
|
|
73
|
-
/**
|
|
73
|
+
/** Helper text shown under the field when there is no error. */
|
|
74
74
|
helperText?: string;
|
|
75
75
|
/**
|
|
76
76
|
* Marks the field as required, with the mark on the label.
|
|
@@ -27,7 +27,7 @@ declare const AppCheckbox: import("react").ForwardRefExoticComponent<{
|
|
|
27
27
|
*/
|
|
28
28
|
size?: "sm" | "md" | "lg";
|
|
29
29
|
onChange?: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
|
|
30
|
-
/** Error message, rendered below the control. Replaces the
|
|
30
|
+
/** Error message, rendered below the control. Replaces the helper text. */
|
|
31
31
|
error?: string;
|
|
32
32
|
/** Helper text below the control. Hidden while an error is shown. */
|
|
33
33
|
helperText?: string;
|
|
@@ -68,7 +68,7 @@ declare const AppCountrySelect: import("react").ForwardRefExoticComponent<{
|
|
|
68
68
|
optionalLabel?: string;
|
|
69
69
|
/** Error message shown under the field; marks the control invalid. */
|
|
70
70
|
error?: string;
|
|
71
|
-
/**
|
|
71
|
+
/** Helper text shown under the field when there is no error. */
|
|
72
72
|
helperText?: string;
|
|
73
73
|
/** Help content shown in an info tip beside the label. */
|
|
74
74
|
help?: import('react').ReactNode;
|
|
@@ -20,7 +20,7 @@ declare const AppDatePicker: import("react").ForwardRefExoticComponent<{
|
|
|
20
20
|
* @default "(optional)"
|
|
21
21
|
*/
|
|
22
22
|
optionalLabel?: string;
|
|
23
|
-
/**
|
|
23
|
+
/** Helper text shown under the control. */
|
|
24
24
|
helperText?: string;
|
|
25
25
|
/** An error message shown under the control. */
|
|
26
26
|
error?: string;
|
|
@@ -36,7 +36,7 @@ declare const AppDateRangePicker: import("react").ForwardRefExoticComponent<{
|
|
|
36
36
|
* @default "(optional)"
|
|
37
37
|
*/
|
|
38
38
|
optionalLabel?: string;
|
|
39
|
-
/**
|
|
39
|
+
/** Helper text shown under the control. */
|
|
40
40
|
helperText?: string;
|
|
41
41
|
/** An error message shown under the control. */
|
|
42
42
|
error?: string;
|
|
@@ -39,7 +39,7 @@ export default function AppDropZone(props: {
|
|
|
39
39
|
* @default ""
|
|
40
40
|
*/
|
|
41
41
|
accept?: string;
|
|
42
|
-
/** Largest file size in megabytes, the shared limit when left out. 0 means no size limit: nothing is rejected for its size, and the
|
|
42
|
+
/** Largest file size in megabytes, the shared limit when left out. 0 means no size limit: nothing is rejected for its size, and the format line names no size. */
|
|
43
43
|
maxSizeMb?: number;
|
|
44
44
|
/** Message below the zone; also styles the zone as errored. */
|
|
45
45
|
error?: string;
|
|
@@ -77,7 +77,7 @@ export default function AppDropZone(props: {
|
|
|
77
77
|
*/
|
|
78
78
|
anyTypeText?: string;
|
|
79
79
|
/**
|
|
80
|
-
* The size cap in the
|
|
80
|
+
* The size cap in the format line; {size} is the limit in MB. Replaces the built-in English text, for other languages.
|
|
81
81
|
* @default "up to {size} MB"
|
|
82
82
|
*/
|
|
83
83
|
maxSizeText?: string;
|
|
@@ -80,7 +80,7 @@ export default function AppDropdown(props: {
|
|
|
80
80
|
menuClassName?: string;
|
|
81
81
|
linkComponent?: import('react').ElementType;
|
|
82
82
|
children?: import('react').ReactNode;
|
|
83
|
-
/** A custom trigger drawn inside the toggle button instead of the icon, such as an account chip or a labelled sort button. It wins over icon. The button keeps its open state, keyboard
|
|
83
|
+
/** A custom trigger drawn inside the toggle button instead of the icon, such as an account chip or a labelled sort button. It wins over icon. The button keeps its open state, keyboard behaviour and accessible role. */
|
|
84
84
|
trigger?: import('react').ReactNode;
|
|
85
85
|
/** Controlled open state. Leave it out and the menu manages its own; set it and the caller owns it, updating it from onOpenChange. */
|
|
86
86
|
open?: boolean;
|
|
@@ -59,9 +59,9 @@ export default function AppFileAttachment(props: {
|
|
|
59
59
|
* @default false
|
|
60
60
|
*/
|
|
61
61
|
multiple?: boolean;
|
|
62
|
-
/** The file types the field takes, as an accept list. Defaults to images; pass for example image/*,application/pdf for mixed. An empty string accepts any file type, and the
|
|
62
|
+
/** The file types the field takes, as an accept list. Defaults to images; pass for example image/*,application/pdf for mixed. An empty string accepts any file type, and the format line then names no types. */
|
|
63
63
|
accept?: string;
|
|
64
|
-
/** The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the
|
|
64
|
+
/** The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the format line names no size. */
|
|
65
65
|
maxSizeMb?: number;
|
|
66
66
|
/**
|
|
67
67
|
* Adds (optional) after the label.
|
|
@@ -69,7 +69,7 @@ export default function AppFileAttachment(props: {
|
|
|
69
69
|
*/
|
|
70
70
|
optional?: boolean;
|
|
71
71
|
/**
|
|
72
|
-
* Checks each pick against accept and maxSizeMb and shows the field's own message for a rejected file. Set false when the page validates the files itself and shows its own message through error, so every pick reaches onChange and the person never sees two messages in two voices for one problem. accept and maxSizeMb still set the picker filter and the
|
|
72
|
+
* Checks each pick against accept and maxSizeMb and shows the field's own message for a rejected file. Set false when the page validates the files itself and shows its own message through error, so every pick reaches onChange and the person never sees two messages in two voices for one problem. accept and maxSizeMb still set the picker filter and the format line.
|
|
73
73
|
* @default true
|
|
74
74
|
*/
|
|
75
75
|
validate?: boolean;
|
|
@@ -85,7 +85,7 @@ export default function AppFilePicker(props: {
|
|
|
85
85
|
*/
|
|
86
86
|
dropLabel?: string;
|
|
87
87
|
/**
|
|
88
|
-
* The size cap in the
|
|
88
|
+
* The size cap in the format line; {size} is the limit in MB. Replaces the built-in English text, for other languages.
|
|
89
89
|
* @default "up to {size} MB"
|
|
90
90
|
*/
|
|
91
91
|
maxSizeText?: string;
|
|
@@ -121,7 +121,7 @@ export default function AppFilePicker(props: {
|
|
|
121
121
|
* @default ".jpg,.jpeg,.png"
|
|
122
122
|
*/
|
|
123
123
|
accept?: string;
|
|
124
|
-
/** The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the
|
|
124
|
+
/** The size limit in megabytes. Defaults to the shared limit. 0 means no size limit: nothing is rejected for its size, and the format line names no size. */
|
|
125
125
|
maxSizeMb?: number;
|
|
126
126
|
/** Marks the field as required in its label. */
|
|
127
127
|
required?: boolean;
|
|
@@ -109,7 +109,7 @@ export default function AppImagePicker(props: {
|
|
|
109
109
|
/** The type of the saved crop: keep the chosen type, or WebP. Default keep for logo, WebP for avatar. */
|
|
110
110
|
outputType?: "keep" | "image/webp";
|
|
111
111
|
/**
|
|
112
|
-
* Stacked is the ring with the
|
|
112
|
+
* Stacked is the ring with the helper text below. Inline puts the ring on the left with a title, subtitle and helper text column beside it. Profile stacks the same identity block, centred, beneath the ring. Applies to the overlay controls.
|
|
113
113
|
* @default "stacked"
|
|
114
114
|
*/
|
|
115
115
|
layout?: "stacked" | "inline" | "profile";
|
|
@@ -136,7 +136,7 @@ export default function AppImagePicker(props: {
|
|
|
136
136
|
ariaLabel?: string;
|
|
137
137
|
/** An optional field label above the picker. */
|
|
138
138
|
label?: import('react').ReactNode;
|
|
139
|
-
/**
|
|
139
|
+
/** Helper text under the picker. An error replaces it. */
|
|
140
140
|
helperText?: string;
|
|
141
141
|
/** An error from the caller. It wins over a rejection reason. */
|
|
142
142
|
error?: string;
|
|
@@ -13,7 +13,7 @@ declare const AppInput: import("react").ForwardRefExoticComponent<{
|
|
|
13
13
|
optional?: boolean;
|
|
14
14
|
/** A validation message under the field. It marks the control invalid for assistive technology. */
|
|
15
15
|
error?: string;
|
|
16
|
-
/**
|
|
16
|
+
/** Helper text under the field. An error replaces it while both are set. */
|
|
17
17
|
helperText?: string;
|
|
18
18
|
/** Text shown in an empty field. */
|
|
19
19
|
placeholder?: string;
|
|
@@ -151,7 +151,7 @@ declare const AppInput: import("react").ForwardRefExoticComponent<{
|
|
|
151
151
|
title?: string;
|
|
152
152
|
};
|
|
153
153
|
/**
|
|
154
|
-
* The side the requirements popover opens on. Auto flips to stay in view. Inline puts the checklist under the field, in place of the
|
|
154
|
+
* The side the requirements popover opens on. Auto flips to stay in view. Inline puts the checklist under the field, in place of the helper text.
|
|
155
155
|
* @default "auto"
|
|
156
156
|
*/
|
|
157
157
|
requirementsPlacement?: "auto" | "top" | "bottom" | "start" | "end" | "inline";
|
|
@@ -39,7 +39,7 @@ declare const AppMentionInput: import("react").ForwardRefExoticComponent<{
|
|
|
39
39
|
* @default 3
|
|
40
40
|
*/
|
|
41
41
|
rows?: number;
|
|
42
|
-
/**
|
|
42
|
+
/** Placeholder text shown while the box is empty. */
|
|
43
43
|
placeholder?: string;
|
|
44
44
|
/**
|
|
45
45
|
* Turns the box off.
|
|
@@ -16,7 +16,7 @@ declare const AppNumberInput: import("react").ForwardRefExoticComponent<{
|
|
|
16
16
|
optional?: boolean;
|
|
17
17
|
/** An error message under the field. It sets the error state and aria-invalid on the input. */
|
|
18
18
|
error?: string;
|
|
19
|
-
/**
|
|
19
|
+
/** Helper text under the field, linked to the input for screen readers. */
|
|
20
20
|
helperText?: string;
|
|
21
21
|
/** Text shown in the empty field. */
|
|
22
22
|
placeholder?: string;
|
|
@@ -31,7 +31,7 @@ declare const AppOtpInput: import("react").ForwardRefExoticComponent<{
|
|
|
31
31
|
* @default "(optional)"
|
|
32
32
|
*/
|
|
33
33
|
optionalLabel?: string;
|
|
34
|
-
/**
|
|
34
|
+
/** Helper text under the code. It is hidden while an error is shown. */
|
|
35
35
|
helperText?: string;
|
|
36
36
|
/** The error message under the code. It replaces the helper text and marks the field invalid. */
|
|
37
37
|
error?: string;
|
|
@@ -40,7 +40,7 @@ declare const AppPhoneNumberInput: import("react").ForwardRefExoticComponent<{
|
|
|
40
40
|
* @default "Phone number"
|
|
41
41
|
*/
|
|
42
42
|
label?: import('react').ReactNode;
|
|
43
|
-
/**
|
|
43
|
+
/** Placeholder text in the empty field. Left unset, the control shows the country's example number. */
|
|
44
44
|
placeholder?: string;
|
|
45
45
|
/**
|
|
46
46
|
* Marks the field required and adds the required mark to the label.
|
|
@@ -57,7 +57,7 @@ declare const AppPhoneNumberInput: import("react").ForwardRefExoticComponent<{
|
|
|
57
57
|
* @default "(optional)"
|
|
58
58
|
*/
|
|
59
59
|
optionalLabel?: string;
|
|
60
|
-
/**
|
|
60
|
+
/** Helper text under the field. The error replaces it while one is shown. */
|
|
61
61
|
helperText?: string;
|
|
62
62
|
/** An error message under the field, which also turns the border red. */
|
|
63
63
|
error?: string;
|
|
@@ -29,7 +29,7 @@ declare const AppRadio: import("react").ForwardRefExoticComponent<{
|
|
|
29
29
|
*/
|
|
30
30
|
size?: "sm" | "md" | "lg";
|
|
31
31
|
onChange?: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
|
|
32
|
-
/** Error message, rendered below the control. Replaces the
|
|
32
|
+
/** Error message, rendered below the control. Replaces the helper text. */
|
|
33
33
|
error?: string;
|
|
34
34
|
/** Helper text below the control. Hidden while an error is shown. */
|
|
35
35
|
helperText?: string;
|
|
@@ -94,7 +94,7 @@ export default function AppRadioGroup(props: {
|
|
|
94
94
|
* @default "md"
|
|
95
95
|
*/
|
|
96
96
|
size?: 'sm' | 'md' | 'lg';
|
|
97
|
-
/** Error message below the group. Replaces the
|
|
97
|
+
/** Error message below the group. Replaces the helper text. */
|
|
98
98
|
error?: string;
|
|
99
99
|
/** Helper text below the group. */
|
|
100
100
|
helperText?: string;
|
|
@@ -54,7 +54,7 @@ export default function AppScoreScale(props: {
|
|
|
54
54
|
error?: string;
|
|
55
55
|
/** Helper text below the scale. */
|
|
56
56
|
helperText?: string;
|
|
57
|
-
/** The id of the radio group; the label,
|
|
57
|
+
/** The id of the radio group; the label, helper text and error ids derive from it. Generated when omitted. */
|
|
58
58
|
id?: string;
|
|
59
59
|
/**
|
|
60
60
|
* Class on the scale (the control).
|
|
@@ -25,7 +25,7 @@ export default function AppSearch(props: {
|
|
|
25
25
|
defaultValue?: string;
|
|
26
26
|
onChange?: (value: string) => void;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Placeholder text shown while the field is empty.
|
|
29
29
|
* @default "Search…"
|
|
30
30
|
*/
|
|
31
31
|
placeholder?: string;
|
|
@@ -99,7 +99,7 @@ declare const AppSelect: import("react").ForwardRefExoticComponent<{
|
|
|
99
99
|
optionalLabel?: string;
|
|
100
100
|
/** Error message shown under the field. Marks the control invalid. */
|
|
101
101
|
error?: string;
|
|
102
|
-
/**
|
|
102
|
+
/** Helper text shown under the field when there is no error. */
|
|
103
103
|
helperText?: string;
|
|
104
104
|
/** Help content shown in an info tip beside the label. */
|
|
105
105
|
help?: import('react').ReactNode;
|
|
@@ -14,7 +14,7 @@ declare const AppTagInput: import("react").ForwardRefExoticComponent<{
|
|
|
14
14
|
label?: import('react').ReactNode;
|
|
15
15
|
/** An error message. It replaces the helper text and marks the field invalid. */
|
|
16
16
|
error?: string;
|
|
17
|
-
/**
|
|
17
|
+
/** Helper text under the field. */
|
|
18
18
|
helperText?: string;
|
|
19
19
|
/**
|
|
20
20
|
* Marks the field required and shows the required mark beside the label.
|
|
@@ -16,9 +16,9 @@ declare const AppTextarea: import("react").ForwardRefExoticComponent<{
|
|
|
16
16
|
* @default "(optional)"
|
|
17
17
|
*/
|
|
18
18
|
optionalLabel?: string;
|
|
19
|
-
/** An error message. It replaces the
|
|
19
|
+
/** An error message. It replaces the helper text and marks the field invalid. */
|
|
20
20
|
error?: string;
|
|
21
|
-
/**
|
|
21
|
+
/** Helper text under the field. */
|
|
22
22
|
helperText?: string;
|
|
23
23
|
/** Text shown in the empty field. */
|
|
24
24
|
placeholder?: string;
|
|
@@ -22,7 +22,7 @@ declare const AppTimePicker: import("react").ForwardRefExoticComponent<{
|
|
|
22
22
|
* @default "(optional)"
|
|
23
23
|
*/
|
|
24
24
|
optionalLabel?: string;
|
|
25
|
-
/**
|
|
25
|
+
/** Helper text under the field. */
|
|
26
26
|
helperText?: string;
|
|
27
27
|
/** An error message. It replaces the helper text and marks the field invalid. */
|
|
28
28
|
error?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/ui-react",
|
|
3
|
-
"version": "0.130.
|
|
3
|
+
"version": "0.130.2",
|
|
4
4
|
"description": "Webority shared React component library — App* primitives on react-bootstrap + the @webority/theme design system.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
},
|
|
30
30
|
"sideEffects": false,
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@webority/markdown-core": "0.130.
|
|
33
|
-
"@webority/theme": "0.130.
|
|
34
|
-
"@webority/ui-elements": "0.130.
|
|
35
|
-
"@webority/web-core": "0.130.
|
|
32
|
+
"@webority/markdown-core": "0.130.2",
|
|
33
|
+
"@webority/theme": "0.130.2",
|
|
34
|
+
"@webority/ui-elements": "0.130.2",
|
|
35
|
+
"@webority/web-core": "0.130.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@webority/analytics": "^0.33.0",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@vitejs/plugin-react": "^6.0.1",
|
|
51
51
|
"@vitest/coverage-v8": "5.0.1",
|
|
52
52
|
"@webority/analytics": "0.33.1",
|
|
53
|
-
"@webority/canvas-kit": "0.130.
|
|
54
|
-
"@webority/tokens": "0.130.
|
|
53
|
+
"@webority/canvas-kit": "0.130.2",
|
|
54
|
+
"@webority/tokens": "0.130.2",
|
|
55
55
|
"bootstrap": "5.3.3",
|
|
56
56
|
"jsdom": "30.1.1",
|
|
57
57
|
"react": "^19.2.6",
|