@webority/ui-react 0.130.1 → 0.130.3
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 +16157 -15623
- package/dist/canvas-kit/manifest.json +610 -102
- package/dist/canvas-kit/release.json +6 -6
- package/dist/components/AppDataTable.js +1 -1
- package/dist/components/AppMarkdown.js +1 -1
- package/dist/components/AppTooltip.js +1 -1
- package/dist/components/iconCatalogNames.g.js +1 -1
- package/dist/components/iconGlyphs.g.js +1 -1
- package/dist/components/iconVariants.g.js +1 -1
- package/dist/guidance.json +568 -68
- package/dist/markdown-core/dist/links.js +1 -1
- 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/AppDataTable.d.ts +3 -2
- 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/AppMarkdown.d.ts +8 -3
- 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/dist/types/components/iconGlyphs.g.d.ts +1 -0
- package/dist/types/components/iconVariants.g.d.ts +5 -0
- package/package.json +9 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=/^[a-z][a-z0-9+.-]*:[a-z0-9_-]+\/[a-z0-9_.~-]+$/i,t=/^https?:/i,n=/^(mailto|tel):/i,r=/^(?:\/(?![/\\])|#|\?|\.{1,2}\/)/;function i(i,o,s,c){if(s&&e.test(i)){let e=s(i);if(e!=null)return{kind:`app`,target:e}}return o===`app`?null:r.test(i)?{kind:`page`,href:i}:t.test(i)?{kind:c&&a(i,c)?`page`:`web`,href:i}:n.test(i)?{kind:`contact`,href:i}:null}function a(e,t){if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return!1;let n=e[t.length];return n===void 0||n===`/`||n===`?`||n===`#`}function o(e){return typeof e!=`string`||!e.startsWith(`/`)||e[1]===`/`||e[1]===`\\`?null:e}export{i as linkTarget,o as webRoute};
|
|
1
|
+
var e=/^[a-z][a-z0-9+.-]*:[a-z0-9_-]+\/[a-z0-9_.~-]+$/i,t=/^https?:/i,n=/^(mailto|tel):/i,r=/^(?:\/(?![/\\])|#|\?|\.{1,2}\/)/;function i(i,o,s,c){if(s&&(o===`page`||e.test(i))){let e=s(i);if(e!=null)return{kind:`app`,target:e}}return o===`app`?null:r.test(i)?{kind:`page`,href:i}:o===`page`&&!(t.test(i)&&c&&a(i,c))?null:t.test(i)?{kind:c&&a(i,c)?`page`:`web`,href:i}:n.test(i)?{kind:`contact`,href:i}:null}function a(e,t){if(e.slice(0,t.length).toLowerCase()!==t.toLowerCase())return!1;let n=e[t.length];return n===void 0||n===`/`||n===`?`||n===`#`}function o(e){return typeof e!=`string`||!e.startsWith(`/`)||e[1]===`/`||e[1]===`\\`?null:e}export{i as linkTarget,o as webRoute};
|
|
@@ -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;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* surface reaches the same list through `<app-data-table src>`, which fetches HTML rows itself.
|
|
7
7
|
*
|
|
8
8
|
* @param {object} props
|
|
9
|
-
* @param {{ key: string, label: import('react').ReactNode, sortable?: boolean, align?: 'end'|'num'|'center', width?: string|number, minWidth?: string|number, nowrap?: boolean, cellClassName?: string, cellStyle?: object, hideable?: boolean, pin?: 'start'|'end', grow?: boolean }[]} props.columns
|
|
9
|
+
* @param {{ key: string, label: import('react').ReactNode, sortable?: boolean, align?: 'end'|'num'|'center', width?: string|number, minWidth?: string|number, nowrap?: boolean, rowHeader?: boolean, cellClassName?: string, cellStyle?: object, hideable?: boolean, pin?: 'start'|'end', grow?: boolean }[]} props.columns
|
|
10
10
|
* @param {object[]} props.rows
|
|
11
11
|
* @param {(row: object, index: number) => string|number} [props.rowKey]
|
|
12
12
|
* @param {{ key: string, dir: "asc"|"desc" }} [props.sort]
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
* on a `virtual` table.
|
|
78
78
|
*/
|
|
79
79
|
export default function AppDataTable(props: {
|
|
80
|
-
/** The columns, each an object with a key and a label, plus optional settings such as sortable, hideable, pin, align and
|
|
80
|
+
/** The columns, each an object with a key and a label, plus optional settings such as sortable, hideable, pin, align, grow and rowHeader. */
|
|
81
81
|
columns: {
|
|
82
82
|
key: string;
|
|
83
83
|
label: import('react').ReactNode;
|
|
@@ -86,6 +86,7 @@ export default function AppDataTable(props: {
|
|
|
86
86
|
width?: string | number;
|
|
87
87
|
minWidth?: string | number;
|
|
88
88
|
nowrap?: boolean;
|
|
89
|
+
rowHeader?: boolean;
|
|
89
90
|
cellClassName?: string;
|
|
90
91
|
cellStyle?: object;
|
|
91
92
|
hideable?: boolean;
|
|
@@ -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";
|
|
@@ -13,10 +13,11 @@ import "@webority/ui-elements/elements/markdown";
|
|
|
13
13
|
* @param {(href: string) => string|null|undefined} [props.resolveLink] Maps a `scheme:kind/id` link
|
|
14
14
|
* to an in-app route such as "/support?ticket=3f2a", or null to show its label as text.
|
|
15
15
|
* @param {(inner: string) => boolean} [props.isCitation] Which `[inner]` runs are citations. Without it no run is one.
|
|
16
|
+
* @param {(text: string) => Array<{ kind: "text" | "sub" | "sup", text: string }>} [props.figureText] Splits plain text into runs. A "sub" or "sup" run draws as its own sub or sup element. Without it, text draws as written. Code spans and code blocks are never split.
|
|
16
17
|
* @param {(citation: string) => void} [props.onOpenCitation] Opens a citation chip. Without it the chip is not a button.
|
|
17
18
|
* @param {import('react').ElementType} [props.linkComponent] A router link. It receives `to` for an
|
|
18
19
|
* in-app route. Without it an in-app route renders as a plain anchor.
|
|
19
|
-
* @param {"app"|"web"} [props.links] "app" opens only routes from `resolveLink`; "web" (default) also opens web, mail and phone addresses.
|
|
20
|
+
* @param {"app"|"web"|"page"} [props.links] "app" opens only routes from `resolveLink`; "web" (default) also opens web, mail and phone addresses; "page" also opens a relative address and a web address on this site, in the same tab, and asks `resolveLink` for every address; an absolute web address it returns opens in a new tab when it leaves this site.
|
|
20
21
|
* @param {"outline"|"text"} [props.headings] "text" draws a heading as a bold line that stays out of the page outline; "outline" (default) draws an h2.
|
|
21
22
|
* @param {string} [props.className]
|
|
22
23
|
*/
|
|
@@ -25,13 +26,17 @@ export default function AppMarkdown(props: {
|
|
|
25
26
|
value?: string;
|
|
26
27
|
resolveLink?: (href: string) => string | null | undefined;
|
|
27
28
|
isCitation?: (inner: string) => boolean;
|
|
29
|
+
figureText?: (text: string) => Array<{
|
|
30
|
+
kind: "text" | "sub" | "sup";
|
|
31
|
+
text: string;
|
|
32
|
+
}>;
|
|
28
33
|
onOpenCitation?: (citation: string) => void;
|
|
29
34
|
linkComponent?: import('react').ElementType;
|
|
30
35
|
/**
|
|
31
|
-
* App opens only routes from resolveLink. Web also opens web, mail and phone addresses in a new tab.
|
|
36
|
+
* App opens only routes from resolveLink. Web also opens web, mail and phone addresses in a new tab. Page also opens a relative address and a web address on this site, in the same tab, and asks resolveLink for every address; an absolute web address it returns opens in a new tab when it leaves this site.
|
|
32
37
|
* @default "web"
|
|
33
38
|
*/
|
|
34
|
-
links?: "app" | "web";
|
|
39
|
+
links?: "app" | "web" | "page";
|
|
35
40
|
/**
|
|
36
41
|
* Outline draws a heading as an h2 in the page outline. Text draws it as a bold line that stays out of the outline.
|
|
37
42
|
* @default "outline"
|
|
@@ -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;
|
|
@@ -200,6 +200,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
200
200
|
"task-square": string;
|
|
201
201
|
telephone: string;
|
|
202
202
|
text: string;
|
|
203
|
+
"thumbs-down": string;
|
|
203
204
|
"thumbs-up": string;
|
|
204
205
|
"tick-circle": string;
|
|
205
206
|
trash: string;
|
|
@@ -429,6 +430,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
429
430
|
"task-square": string;
|
|
430
431
|
telephone: string;
|
|
431
432
|
text: string;
|
|
433
|
+
"thumbs-down": string;
|
|
432
434
|
"thumbs-up": string;
|
|
433
435
|
"tick-circle": string;
|
|
434
436
|
trash: string;
|
|
@@ -658,6 +660,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
658
660
|
"task-square": string;
|
|
659
661
|
telephone: string;
|
|
660
662
|
text: string;
|
|
663
|
+
"thumbs-down": string;
|
|
661
664
|
"thumbs-up": string;
|
|
662
665
|
"tick-circle": string;
|
|
663
666
|
trash: string;
|
|
@@ -887,6 +890,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
887
890
|
"task-square": string;
|
|
888
891
|
telephone: string;
|
|
889
892
|
text: string;
|
|
893
|
+
"thumbs-down": string;
|
|
890
894
|
"thumbs-up": string;
|
|
891
895
|
"tick-circle": string;
|
|
892
896
|
trash: string;
|
|
@@ -1116,6 +1120,7 @@ export declare const VARIANT_GLYPHS: {
|
|
|
1116
1120
|
"task-square": string;
|
|
1117
1121
|
telephone: string;
|
|
1118
1122
|
text: string;
|
|
1123
|
+
"thumbs-down": string;
|
|
1119
1124
|
"thumbs-up": string;
|
|
1120
1125
|
"tick-circle": string;
|
|
1121
1126
|
trash: 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.3",
|
|
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,13 +29,13 @@
|
|
|
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.3",
|
|
33
|
+
"@webority/theme": "0.130.3",
|
|
34
|
+
"@webority/ui-elements": "0.130.3",
|
|
35
|
+
"@webority/web-core": "0.130.3"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@webority/analytics": "^0.
|
|
38
|
+
"@webority/analytics": "^0.34.0",
|
|
39
39
|
"bootstrap": "5.3.3",
|
|
40
40
|
"react": "^19.0.0",
|
|
41
41
|
"react-bootstrap": "^2.10.0",
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
"@types/react": "^19.2.17",
|
|
50
50
|
"@vitejs/plugin-react": "^6.0.1",
|
|
51
51
|
"@vitest/coverage-v8": "5.0.1",
|
|
52
|
-
"@webority/analytics": "0.
|
|
53
|
-
"@webority/canvas-kit": "0.130.
|
|
54
|
-
"@webority/tokens": "0.130.
|
|
52
|
+
"@webority/analytics": "0.34.0",
|
|
53
|
+
"@webority/canvas-kit": "0.130.3",
|
|
54
|
+
"@webority/tokens": "0.130.3",
|
|
55
55
|
"bootstrap": "5.3.3",
|
|
56
56
|
"jsdom": "30.1.1",
|
|
57
57
|
"react": "^19.2.6",
|