@webority/ui-react 0.128.0 → 0.129.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.
Files changed (184) hide show
  1. package/dist/canvas-kit/kit.js +28676 -24381
  2. package/dist/canvas-kit/manifest.json +3182 -163
  3. package/dist/canvas-kit/release.json +6 -6
  4. package/dist/components/AppAccountSwitcher.js +1 -0
  5. package/dist/components/AppAsyncBlock.js +1 -1
  6. package/dist/components/AppAuthLayout.js +1 -0
  7. package/dist/components/AppAutocomplete.js +1 -1
  8. package/dist/components/AppAvatar.js +1 -1
  9. package/dist/components/AppAvatarGroup.js +1 -1
  10. package/dist/components/AppBanner.js +1 -1
  11. package/dist/components/AppButton.js +1 -1
  12. package/dist/components/AppCalendar.js +1 -1
  13. package/dist/components/AppCard.js +1 -1
  14. package/dist/components/AppCell.js +1 -0
  15. package/dist/components/AppChart.js +1 -1
  16. package/dist/components/AppChartCard.js +1 -1
  17. package/dist/components/AppCheckbox.js +1 -1
  18. package/dist/components/AppChoiceCard.js +1 -1
  19. package/dist/components/AppChoiceChip.js +1 -1
  20. package/dist/components/AppColorField.js +1 -1
  21. package/dist/components/AppCommandPalette.js +1 -1
  22. package/dist/components/AppCommentThread.js +1 -1
  23. package/dist/components/AppCompareTable.js +1 -1
  24. package/dist/components/AppConfirmDialog.js +1 -1
  25. package/dist/components/AppCopyButton.js +1 -1
  26. package/dist/components/AppCountrySelect.js +1 -1
  27. package/dist/components/AppDataTable.js +1 -1
  28. package/dist/components/AppDatePicker.js +1 -1
  29. package/dist/components/AppDateRangePicker.js +1 -1
  30. package/dist/components/AppDescriptions.js +1 -1
  31. package/dist/components/AppDrawer.js +1 -1
  32. package/dist/components/AppDropZone.js +1 -1
  33. package/dist/components/AppDueDate.js +1 -1
  34. package/dist/components/AppErrorBoundary.js +1 -0
  35. package/dist/components/AppFileAttachment.js +1 -1
  36. package/dist/components/AppFilePicker.js +1 -1
  37. package/dist/components/AppFileTiles.js +1 -1
  38. package/dist/components/AppFilterBar.js +1 -1
  39. package/dist/components/AppFloatingButton.js +1 -0
  40. package/dist/components/AppImagePicker.js +1 -1
  41. package/dist/components/AppInlineEdit.js +1 -1
  42. package/dist/components/AppInput.js +1 -1
  43. package/dist/components/AppKanban.js +1 -1
  44. package/dist/components/AppLeadPopup.js +1 -0
  45. package/dist/components/AppLink.js +1 -1
  46. package/dist/components/AppMarkdown.js +1 -1
  47. package/dist/components/AppMentionInput.js +1 -1
  48. package/dist/components/AppMetricStrip.js +1 -1
  49. package/dist/components/AppModal.js +1 -1
  50. package/dist/components/AppMultiSelect.js +1 -1
  51. package/dist/components/AppNotificationCenter.js +1 -1
  52. package/dist/components/AppNumberInput.js +1 -1
  53. package/dist/components/AppOtpInput.js +1 -1
  54. package/dist/components/AppPhoneNumberInput.js +1 -1
  55. package/dist/components/AppPopover.js +1 -1
  56. package/dist/components/AppRadio.js +1 -1
  57. package/dist/components/AppRadioGroup.js +1 -1
  58. package/dist/components/AppRating.js +1 -1
  59. package/dist/components/AppRichText.js +1 -1
  60. package/dist/components/AppRouteError.js +1 -1
  61. package/dist/components/AppScoreScale.js +1 -1
  62. package/dist/components/AppSearch.js +1 -1
  63. package/dist/components/AppSectionLeadCapture.js +1 -1
  64. package/dist/components/AppSectionLogos.js +1 -1
  65. package/dist/components/AppSegmented.js +1 -1
  66. package/dist/components/AppSelect.js +1 -1
  67. package/dist/components/AppShell.js +1 -1
  68. package/dist/components/AppSlider.js +1 -1
  69. package/dist/components/AppSortableList.js +1 -1
  70. package/dist/components/AppSparkline.js +1 -1
  71. package/dist/components/AppSplitButton.js +1 -1
  72. package/dist/components/AppSplitView.js +1 -1
  73. package/dist/components/AppStepper.js +1 -1
  74. package/dist/components/AppSwitch.js +1 -1
  75. package/dist/components/AppTablePagination.js +1 -1
  76. package/dist/components/AppTableToolbar.js +1 -1
  77. package/dist/components/AppTagInput.js +1 -1
  78. package/dist/components/AppTextarea.js +1 -1
  79. package/dist/components/AppTimePicker.js +1 -1
  80. package/dist/components/AppTimeline.js +1 -1
  81. package/dist/components/AppToast.js +1 -1
  82. package/dist/components/AppUpdateBar.js +1 -1
  83. package/dist/components/AppWhatsNew.js +1 -1
  84. package/dist/components/AppWorkspaceSwitcher.js +1 -1
  85. package/dist/components/iconCatalogNames.g.js +1 -1
  86. package/dist/components/iconGlyphs.g.js +1 -1
  87. package/dist/components/iconVariants.g.js +1 -1
  88. package/dist/components/useWuiControl.js +1 -1
  89. package/dist/guidance.json +235 -2
  90. package/dist/lib/CheckField.js +1 -1
  91. package/dist/lib/FileItemRow.js +1 -1
  92. package/dist/lib/fieldState.js +1 -0
  93. package/dist/lib/fillLabel.js +1 -0
  94. package/dist/lib/labelWithHelp.js +1 -0
  95. package/dist/lib/linkTarget.js +1 -0
  96. package/dist/markdown-core/dist/links.js +1 -1
  97. package/dist/types/components/AppAccountSwitcher.d.ts +41 -0
  98. package/dist/types/components/AppAsyncBlock.d.ts +24 -0
  99. package/dist/types/components/AppAuthLayout.d.ts +45 -0
  100. package/dist/types/components/AppAutocomplete.d.ts +22 -2
  101. package/dist/types/components/AppAvatar.d.ts +6 -0
  102. package/dist/types/components/AppAvatarGroup.d.ts +6 -0
  103. package/dist/types/components/AppBanner.d.ts +6 -0
  104. package/dist/types/components/AppButton.d.ts +1 -0
  105. package/dist/types/components/AppCalendar.d.ts +3 -1
  106. package/dist/types/components/AppCard.d.ts +13 -1
  107. package/dist/types/components/AppCell.d.ts +36 -0
  108. package/dist/types/components/AppChart.d.ts +7 -0
  109. package/dist/types/components/AppChartCard.d.ts +60 -0
  110. package/dist/types/components/AppCheckbox.d.ts +22 -0
  111. package/dist/types/components/AppChoiceCard.d.ts +21 -0
  112. package/dist/types/components/AppChoiceChip.d.ts +21 -0
  113. package/dist/types/components/AppColorField.d.ts +43 -4
  114. package/dist/types/components/AppCommandPalette.d.ts +6 -0
  115. package/dist/types/components/AppCommentThread.d.ts +102 -3
  116. package/dist/types/components/AppCompareTable.d.ts +24 -0
  117. package/dist/types/components/AppConfirmDialog.d.ts +6 -0
  118. package/dist/types/components/AppCountrySelect.d.ts +5 -0
  119. package/dist/types/components/AppDataTable.d.ts +1 -1
  120. package/dist/types/components/AppDatePicker.d.ts +24 -0
  121. package/dist/types/components/AppDateRangePicker.d.ts +31 -1
  122. package/dist/types/components/AppDescriptions.d.ts +4 -1
  123. package/dist/types/components/AppDrawer.d.ts +6 -0
  124. package/dist/types/components/AppDropZone.d.ts +24 -0
  125. package/dist/types/components/AppDueDate.d.ts +42 -0
  126. package/dist/types/components/AppErrorBoundary.d.ts +39 -0
  127. package/dist/types/components/AppFileAttachment.d.ts +54 -1
  128. package/dist/types/components/AppFilePicker.d.ts +75 -0
  129. package/dist/types/components/AppFileTiles.d.ts +6 -3
  130. package/dist/types/components/AppFilterBar.d.ts +73 -0
  131. package/dist/types/components/AppFloatingButton.d.ts +64 -0
  132. package/dist/types/components/AppImagePicker.d.ts +60 -0
  133. package/dist/types/components/AppInlineEdit.d.ts +6 -0
  134. package/dist/types/components/AppInput.d.ts +37 -2
  135. package/dist/types/components/AppKanban.d.ts +32 -0
  136. package/dist/types/components/AppLeadPopup.d.ts +122 -0
  137. package/dist/types/components/AppLink.d.ts +3 -0
  138. package/dist/types/components/AppMentionInput.d.ts +17 -0
  139. package/dist/types/components/AppMetricStrip.d.ts +2 -0
  140. package/dist/types/components/AppModal.d.ts +6 -0
  141. package/dist/types/components/AppMultiSelect.d.ts +18 -1
  142. package/dist/types/components/AppNotificationCenter.d.ts +2 -0
  143. package/dist/types/components/AppNumberInput.d.ts +24 -2
  144. package/dist/types/components/AppOtpInput.d.ts +29 -0
  145. package/dist/types/components/AppPhoneNumberInput.d.ts +24 -0
  146. package/dist/types/components/AppRadio.d.ts +22 -0
  147. package/dist/types/components/AppRadioGroup.d.ts +24 -0
  148. package/dist/types/components/AppRating.d.ts +39 -0
  149. package/dist/types/components/AppRichText.d.ts +7 -0
  150. package/dist/types/components/AppRouteError.d.ts +54 -0
  151. package/dist/types/components/AppScoreScale.d.ts +6 -0
  152. package/dist/types/components/AppSearch.d.ts +17 -2
  153. package/dist/types/components/AppSectionLeadCapture.d.ts +48 -0
  154. package/dist/types/components/AppSectionLogos.d.ts +2 -0
  155. package/dist/types/components/AppSegmented.d.ts +27 -3
  156. package/dist/types/components/AppSelect.d.ts +22 -2
  157. package/dist/types/components/AppShell.d.ts +147 -0
  158. package/dist/types/components/AppSlider.d.ts +28 -0
  159. package/dist/types/components/AppSortableList.d.ts +5 -0
  160. package/dist/types/components/AppSparkline.d.ts +24 -0
  161. package/dist/types/components/AppSplitView.d.ts +68 -0
  162. package/dist/types/components/AppStepper.d.ts +6 -0
  163. package/dist/types/components/AppSwitch.d.ts +22 -0
  164. package/dist/types/components/AppTablePagination.d.ts +44 -2
  165. package/dist/types/components/AppTableToolbar.d.ts +30 -0
  166. package/dist/types/components/AppTagInput.d.ts +18 -1
  167. package/dist/types/components/AppTextarea.d.ts +20 -0
  168. package/dist/types/components/AppTimePicker.d.ts +17 -0
  169. package/dist/types/components/AppTimeline.d.ts +8 -0
  170. package/dist/types/components/AppToast.d.ts +6 -0
  171. package/dist/types/components/AppUpdateBar.d.ts +18 -0
  172. package/dist/types/components/AppWhatsNew.d.ts +2 -0
  173. package/dist/types/components/AppWorkspaceSwitcher.d.ts +18 -0
  174. package/dist/types/components/iconGlyphs.g.d.ts +1 -0
  175. package/dist/types/components/iconVariants.g.d.ts +5 -0
  176. package/dist/types/components/useWuiControl.d.ts +3 -1
  177. package/dist/types/index.d.ts +6 -0
  178. package/dist/types/lib/FileItemRow.d.ts +9 -2
  179. package/dist/types/lib/fieldState.d.ts +3 -0
  180. package/dist/types/lib/fillLabel.d.ts +1 -0
  181. package/dist/types/lib/labelWithHelp.d.ts +10 -0
  182. package/dist/types/lib/linkTarget.d.ts +30 -0
  183. package/dist/ui-react.js +1 -1
  184. package/package.json +7 -7
@@ -35,6 +35,16 @@ import "@webority/ui-elements/elements/image-crop";
35
35
  * @param {string} [props.error]
36
36
  * @param {boolean} [props.required]
37
37
  * @param {boolean} [props.optional] Ends the label with "(optional)". Required wins when both are set.
38
+ * @param {string} [props.optionalLabel] Default "(optional)".
39
+ * @param {string} [props.dialogTitle] Default "Crop photo" for logo, "Edit photo" for avatar.
40
+ * @param {string} [props.dialogSubtitle] Default "Drag the frame and zoom to choose what to keep." for logo, "Drag to position the photo, then zoom or rotate it." for avatar.
41
+ * @param {string} [props.save] Default "Apply" for logo, "Save photo" for avatar.
42
+ * @param {string} [props.cancel] Default "Cancel".
43
+ * @param {string} [props.cropFailed] Default "That image could not be cropped. Choose another one." for logo, "That photo could not be saved. Try again, or choose another one." for avatar.
44
+ * @param {string} [props.unreadable] Default "That image could not be opened. Choose another one." for logo; for avatar, the photo message, or the HEIC message for a HEIC file. {name} is the file name.
45
+ * @param {string} [props.uploadLabel] Default "Upload photo".
46
+ * @param {string} [props.changeLabel] Default "Change photo".
47
+ * @param {string} [props.cameraLabel] Default "Take photo".
38
48
  * @param {string} [props.className] On the picker.
39
49
  * @param {string} [props.fieldClassName] On the .field wrapper.
40
50
  * @param {import('react').CSSProperties} [props.style]
@@ -140,6 +150,56 @@ export default function AppImagePicker(props: {
140
150
  * @default false
141
151
  */
142
152
  optional?: boolean;
153
+ /**
154
+ * Replaces the built-in English text, for other languages.
155
+ * @default "(optional)"
156
+ */
157
+ optionalLabel?: string;
158
+ /**
159
+ * Replaces the built-in English text, for other languages. Default Edit photo for avatar.
160
+ * @default "Crop photo"
161
+ */
162
+ dialogTitle?: string;
163
+ /**
164
+ * Replaces the built-in English text, for other languages. Default Drag to position the photo, then zoom or rotate it. for avatar.
165
+ * @default "Drag the frame and zoom to choose what to keep."
166
+ */
167
+ dialogSubtitle?: string;
168
+ /**
169
+ * Replaces the built-in English text, for other languages. Default Save photo for avatar.
170
+ * @default "Apply"
171
+ */
172
+ save?: string;
173
+ /**
174
+ * Replaces the built-in English text, for other languages.
175
+ * @default "Cancel"
176
+ */
177
+ cancel?: string;
178
+ /**
179
+ * Replaces the built-in English text, for other languages. Default That photo could not be saved. Try again, or choose another one. for avatar.
180
+ * @default "That image could not be cropped. Choose another one."
181
+ */
182
+ cropFailed?: string;
183
+ /**
184
+ * Replaces the built-in English text, for other languages. {name} is the file name. Avatar keeps its HEIC message when the file is HEIC.
185
+ * @default "That image could not be opened. Choose another one."
186
+ */
187
+ unreadable?: string;
188
+ /**
189
+ * The Upload button's text on the buttons controls, when no photo is set. Replaces the built-in English text.
190
+ * @default "Upload photo"
191
+ */
192
+ uploadLabel?: string;
193
+ /**
194
+ * The Change button's text on the buttons controls, when a photo is set. Replaces the built-in English text.
195
+ * @default "Change photo"
196
+ */
197
+ changeLabel?: string;
198
+ /**
199
+ * The Take photo button's text on the buttons controls. Replaces the built-in English text.
200
+ * @default "Take photo"
201
+ */
202
+ cameraLabel?: string;
143
203
  /**
144
204
  * Extra class on the picker.
145
205
  * @default ""
@@ -31,6 +31,7 @@ import "@webority/ui-elements/elements/datepicker";
31
31
  * @param {(value: string | number | null) => import('react').ReactNode} [props.renderValue] How a
32
32
  * saved, non-empty value reads (a formatted amount, a status badge). Text and markup only: the
33
33
  * value is a button, so it must not hold its own controls or links.
34
+ * @param {boolean} [props.wrap] Wraps a long value across lines (the default). `false` keeps it on one line, as a table cell or a tight header expects; a newline in a textarea value then reads as a space.
34
35
  * @param {boolean} [props.disabled]
35
36
  * @param {string} [props.className]
36
37
  * @param {string} [props.id]
@@ -58,6 +59,11 @@ export default function AppInlineEdit(props: {
58
59
  placeholder?: string;
59
60
  validate?: (next: string | number | null) => string | null | undefined;
60
61
  renderValue?: (value: string | number | null) => import('react').ReactNode;
62
+ /**
63
+ * Wraps a long value across lines. false keeps it on one line, and a newline in a textarea value reads as a space.
64
+ * @default true
65
+ */
66
+ wrap?: boolean;
61
67
  /**
62
68
  * Shows the value without the edit affordance.
63
69
  * @default false
@@ -30,10 +30,10 @@ declare const AppInput: import("react").ForwardRefExoticComponent<{
30
30
  */
31
31
  type?: string;
32
32
  /**
33
- * The control size. Sm and lg opt out of the shared height. Xl is the tallest, with its floating label inside the box.
33
+ * The control size: sm, md and lg are 32, 36 and 44px. Md is the default.
34
34
  * @default "md"
35
35
  */
36
- size?: "sm" | "md" | "lg" | "xl";
36
+ size?: "sm" | "md" | "lg";
37
37
  /** A leading icon, given as a semantic icon name. */
38
38
  leftIcon?: string;
39
39
  /** A trailing icon button, given as a semantic icon name. It calls onRightIconClick when pressed. */
@@ -71,11 +71,41 @@ declare const AppInput: import("react").ForwardRefExoticComponent<{
71
71
  * @default false
72
72
  */
73
73
  readOnly?: boolean;
74
+ /**
75
+ * Shows a busy state and blocks input while data loads.
76
+ * @default false
77
+ */
78
+ loading?: boolean;
74
79
  /**
75
80
  * Shows a clear button while the field has a value.
76
81
  * @default false
77
82
  */
78
83
  clearable?: boolean;
84
+ /**
85
+ * Replaces the built-in English text, for other languages.
86
+ * @default "Clear"
87
+ */
88
+ clearLabel?: string;
89
+ /**
90
+ * Replaces the built-in English text, for other languages.
91
+ * @default "(optional)"
92
+ */
93
+ optionalLabel?: string;
94
+ /**
95
+ * Replaces the built-in English text, for other languages.
96
+ * @default "Password requirements"
97
+ */
98
+ requirementsTitle?: string;
99
+ /**
100
+ * Replaces the built-in English text, for other languages.
101
+ * @default "Show password"
102
+ */
103
+ showPasswordLabel?: string;
104
+ /**
105
+ * Replaces the built-in English text, for other languages.
106
+ * @default "Hide password"
107
+ */
108
+ hidePasswordLabel?: string;
79
109
  /**
80
110
  * Shows a live character count under the field.
81
111
  * @default false
@@ -83,6 +113,11 @@ declare const AppInput: import("react").ForwardRefExoticComponent<{
83
113
  showCount?: boolean;
84
114
  /** The character cap. The count turns red as the cap is approached. */
85
115
  maxLength?: number;
116
+ /**
117
+ * Sets the monospace font, for codes and references.
118
+ * @default false
119
+ */
120
+ monospace?: boolean;
86
121
  /** A bordered box before the input, such as a currency sign or a scheme. */
87
122
  prefix?: import('react').ReactNode;
88
123
  /** A bordered box after the input, such as a decimal part or a domain. */
@@ -42,9 +42,14 @@
42
42
  * @param {(card: object) => boolean} [props.filter] Show only the cards it returns true for; counts follow.
43
43
  * @param {string} [props.boardId]
44
44
  * @param {string} [props.ariaLabel]
45
+ * @param {string} [props.columnsLabel] Default "Board columns".
46
+ * @param {string} [props.expandLabel] Default "Expand {title}": the accessible name of a folded column's toggle.
47
+ * @param {string} [props.collapseLabel] Default "Collapse {title}": the accessible name of an open column's toggle.
45
48
  * @param {string} [props.emptyText]
49
+ * @param {string} [props.helpText] The keyboard instructions for moving a card, read by screen readers.
46
50
  * @param {boolean} [props.readOnly]
47
51
  * @param {boolean} [props.swipeHint]
52
+ * @param {string} [props.swipeHintText] The phone hint's text, shown when `swipeHint` is on.
48
53
  * @param {number} [props.columnWidth]
49
54
  * @param {number} [props.fillOffset]
50
55
  * @param {string} [props.activeCardKey]
@@ -52,6 +57,7 @@
52
57
  * @param {boolean} [props.fill]
53
58
  * @param {'number'|'currency'|'compact'} [props.summaryFormat]
54
59
  * @param {'rupees'|'paise'} [props.summaryUnit]
60
+ * @param {import('react').ElementType} [props.linkComponent] Router link (e.g. react-router Link) for in-app destinations; it receives `to` instead of `href`. Absolute, `#` and scheme hrefs stay plain anchors. Keeps the library router-agnostic.
55
61
  * @param {string} [props.className]
56
62
  * @param {string} [props.id]
57
63
  */
@@ -99,11 +105,31 @@ export default function AppKanban(props: {
99
105
  * @default "Board"
100
106
  */
101
107
  ariaLabel?: string;
108
+ /**
109
+ * The accessible name of the column switcher, for other languages.
110
+ * @default "Board columns"
111
+ */
112
+ columnsLabel?: string;
113
+ /**
114
+ * The accessible name of a folded column's toggle. {title} is the column's title, for other languages.
115
+ * @default "Expand {title}"
116
+ */
117
+ expandLabel?: string;
118
+ /**
119
+ * The accessible name of an open column's toggle. {title} is the column's title, for other languages.
120
+ * @default "Collapse {title}"
121
+ */
122
+ collapseLabel?: string;
102
123
  /**
103
124
  * Text of an empty column.
104
125
  * @default "Nothing here"
105
126
  */
106
127
  emptyText?: string;
128
+ /**
129
+ * The keyboard instructions for moving a card, read by screen readers, for other languages.
130
+ * @default "Press Space to pick up the card. Use the Left and Right arrow keys to choose a column, then Space to drop it, or Escape to cancel."
131
+ */
132
+ helpText?: string;
107
133
  /**
108
134
  * No card can be moved.
109
135
  * @default false
@@ -114,6 +140,11 @@ export default function AppKanban(props: {
114
140
  * @default false
115
141
  */
116
142
  swipeHint?: boolean;
143
+ /**
144
+ * The text of the phone hint that swipeHint shows, for other languages.
145
+ * @default "Swipe sideways or tap a column"
146
+ */
147
+ swipeHintText?: string;
117
148
  /** The width of each column in px. */
118
149
  columnWidth?: number;
119
150
  /** The px taken off the viewport height when the board fills the screen, in place of the 240px default. */
@@ -137,6 +168,7 @@ export default function AppKanban(props: {
137
168
  * @default "rupees"
138
169
  */
139
170
  summaryUnit?: 'rupees' | 'paise';
171
+ linkComponent?: import('react').ElementType;
140
172
  /**
141
173
  * Extra classes on the board.
142
174
  * @default ""
@@ -0,0 +1,122 @@
1
+ import "@webority/ui-elements/elements/lead-popup";
2
+ declare const AppLeadPopup: import("react").ForwardRefExoticComponent<{
3
+ /** The URL the form posts to. */
4
+ action: string;
5
+ /** The server's PublicForm name, used as the captcha action. */
6
+ publicForm: string;
7
+ /** The dialog's heading, and its accessible name. */
8
+ heading: string;
9
+ /** A sentence under the heading. */
10
+ description?: string;
11
+ /**
12
+ * The fields in order: name, email, phone, company, message.
13
+ * @default ["name","email"]
14
+ */
15
+ fields?: Array<"name" | "email" | "phone" | "company" | "message">;
16
+ /**
17
+ * The fields that must have a value.
18
+ * @default []
19
+ */
20
+ required?: Array<"name" | "email" | "phone" | "company" | "message">;
21
+ /** Text put before every posted field name, such as Input. */
22
+ fieldPrefix?: string;
23
+ /** Posted name per field, for a server that names it differently. */
24
+ fieldNames?: Record<string, string>;
25
+ /** Label per field. */
26
+ labels?: Record<string, string>;
27
+ /** Maximum length per field. */
28
+ maxLengths?: Record<string, number>;
29
+ /**
30
+ * The submit button's text.
31
+ * @default "Send"
32
+ */
33
+ submitLabel?: string;
34
+ /**
35
+ * The heading after a successful send.
36
+ * @default "Thank you"
37
+ */
38
+ successTitle?: string;
39
+ /** The sentence under the success heading. */
40
+ successText?: string;
41
+ /**
42
+ * Shown when the send fails without a message of its own.
43
+ * @default "Something went wrong. Please try again or contact us directly."
44
+ */
45
+ errorText?: string;
46
+ /**
47
+ * The close button's accessible name.
48
+ * @default "Close"
49
+ */
50
+ closeLabel?: string;
51
+ /** A secondary link under the form. */
52
+ secondaryLabel?: string;
53
+ /** Where the secondary link goes. */
54
+ secondaryHref?: string;
55
+ /**
56
+ * The text drawn above the secondary link.
57
+ * @default "or"
58
+ */
59
+ secondaryDivider?: string;
60
+ /**
61
+ * exit, delay, scroll or pages. Empty by default: the host calls open().
62
+ * @default []
63
+ */
64
+ triggers?: Array<"exit" | "delay" | "scroll" | "pages">;
65
+ /**
66
+ * Seconds on the site before the delay trigger counts as engaged.
67
+ * @default 30
68
+ */
69
+ delaySeconds?: number;
70
+ /**
71
+ * Percent of the page scrolled before the scroll trigger counts.
72
+ * @default 50
73
+ */
74
+ scrollPercent?: number;
75
+ /**
76
+ * Distinct pages this session before the pages trigger counts.
77
+ * @default 2
78
+ */
79
+ pagesViewed?: number;
80
+ /** Names the browser memory of the popup. Required with triggers; build it with the user's id. */
81
+ storageKey?: string;
82
+ /**
83
+ * Days a dismissed popup stays quiet.
84
+ * @default 30
85
+ */
86
+ dismissDays?: number;
87
+ /**
88
+ * Days a submitted popup stays quiet.
89
+ * @default 365
90
+ */
91
+ submittedDays?: number;
92
+ /**
93
+ * Seconds before the success view closes. 0 keeps it open.
94
+ * @default 5
95
+ */
96
+ successCloseSeconds?: number;
97
+ /**
98
+ * Draw open with no triggers, memory or posting, for a design surface.
99
+ * @default false
100
+ */
101
+ preview?: boolean;
102
+ onShown?: (detail: {
103
+ trigger: string;
104
+ }) => void;
105
+ onBeforeSubmit?: (formData: FormData) => void;
106
+ onSubmitted?: (detail: {
107
+ values: object;
108
+ response: object | null;
109
+ }) => void;
110
+ onError?: (detail: {
111
+ message: string;
112
+ reason: "server" | "network" | "gate";
113
+ }) => void;
114
+ onClosed?: (reason: string) => void;
115
+ /**
116
+ * Extra classes on the element.
117
+ * @default ""
118
+ */
119
+ className?: string;
120
+ style?: import('react').CSSProperties;
121
+ } & import("react").RefAttributes<any>>;
122
+ export default AppLeadPopup;
@@ -22,6 +22,7 @@
22
22
  * @param {boolean} [props.external]
23
23
  * @param {boolean} [props.disabled]
24
24
  * @param {import('react').ElementType} [props.linkComponent] Router link component; it receives `to` instead of `href`. Keeps the library router-agnostic.
25
+ * @param {number} [props.maxLines] Clamps the label to this many lines, ending the last one with an ellipsis. Whole numbers of 1 or more only; any other value is ignored with a warning.
25
26
  * @param {string} [props.className]
26
27
  */
27
28
  export default function AppLink(props: {
@@ -60,6 +61,8 @@ export default function AppLink(props: {
60
61
  */
61
62
  disabled?: boolean;
62
63
  linkComponent?: import('react').ElementType;
64
+ /** Clamps the label to this many lines, ending the last one with an ellipsis. Omit it for a label that runs on. Whole numbers of 1 or more only. */
65
+ maxLines?: number;
63
66
  /**
64
67
  * Extra classes on the anchor.
65
68
  * @default ""
@@ -46,6 +46,23 @@ declare const AppMentionInput: import("react").ForwardRefExoticComponent<{
46
46
  * @default false
47
47
  */
48
48
  disabled?: boolean;
49
+ /**
50
+ * Shows the value but blocks editing. The value still posts.
51
+ * @default false
52
+ */
53
+ readOnly?: boolean;
54
+ /**
55
+ * Shows a busy state and blocks input while data loads.
56
+ * @default false
57
+ */
58
+ loading?: boolean;
59
+ /**
60
+ * The control size: sm, md or lg.
61
+ * @default "md"
62
+ */
63
+ size?: "sm" | "md" | "lg";
64
+ /** The starting value of an uncontrolled field. */
65
+ defaultValue?: string;
49
66
  /** Posts the stored value under this name in a form. */
50
67
  name?: string;
51
68
  /** The element id. The text box is the id plus -text, which is the label's target. */
@@ -6,6 +6,7 @@
6
6
  * @param {{ label: string, value: import('react').ReactNode, note?: string, href?: string, tone?: 'neutral'|'success'|'warning'|'danger'|'info' }[]} props.items
7
7
  * @param {3|4|5} [props.columns]
8
8
  * @param {'sm'|'md'} [props.size]
9
+ * @param {import('react').ElementType} [props.linkComponent] Router link (e.g. react-router Link) for in-app destinations; it receives `to` instead of `href`. Absolute, `#` and scheme hrefs stay plain anchors. Keeps the library router-agnostic.
9
10
  * @param {string} [props.className]
10
11
  */
11
12
  export default function AppMetricStrip(props: {
@@ -27,5 +28,6 @@ export default function AppMetricStrip(props: {
27
28
  * @default "md"
28
29
  */
29
30
  size?: 'sm' | 'md';
31
+ linkComponent?: import('react').ElementType;
30
32
  className?: string;
31
33
  }): import("react").JSX.Element;
@@ -18,6 +18,7 @@
18
18
  * @param {'center'|'top'} [props.placement]
19
19
  * @param {boolean} [props.hideHeader]
20
20
  * @param {string} [props.ariaLabel]
21
+ * @param {string} [props.closeLabel] Default "Close".
21
22
  * @param {boolean} [props.staticBackdrop]
22
23
  * @param {string} [props.confirmDiscard]
23
24
  * @param {boolean} [props.dirty]
@@ -73,6 +74,11 @@ export default function AppModal(props: {
73
74
  hideHeader?: boolean;
74
75
  /** The accessible name when the title is not plain text, or when the header is hidden. */
75
76
  ariaLabel?: string;
77
+ /**
78
+ * The close button's accessible name, for other languages.
79
+ * @default "Close"
80
+ */
81
+ closeLabel?: string;
76
82
  /**
77
83
  * When true, a backdrop click and the Escape key no longer close the dialog.
78
84
  * @default false
@@ -38,15 +38,27 @@ declare const AppMultiSelect: import("react").ForwardRefExoticComponent<{
38
38
  customPattern?: string;
39
39
  /** The message for a refused typed entry. Without it the message is Enter a valid value. */
40
40
  customInvalidMessage?: string;
41
+ /** The starting selection of an uncontrolled field. */
42
+ defaultValues?: string[];
41
43
  /**
42
44
  * Stops the control from opening or changing.
43
45
  * @default false
44
46
  */
45
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;
46
58
  /** A library icon name drawn at the start of the control. */
47
59
  icon?: string;
48
60
  /** The control size around the default. */
49
- size?: 'sm' | 'lg';
61
+ size?: 'sm' | 'md' | 'lg';
50
62
  /**
51
63
  * Keeps the chosen chips on one row and folds the overflow into a +N counter.
52
64
  * @default false
@@ -72,6 +84,11 @@ declare const AppMultiSelect: import("react").ForwardRefExoticComponent<{
72
84
  * @default false
73
85
  */
74
86
  optional?: boolean;
87
+ /**
88
+ * Replaces the built-in English text, for other languages.
89
+ * @default "(optional)"
90
+ */
91
+ optionalLabel?: string;
75
92
  /** Help content shown in an info tip beside the label. */
76
93
  help?: import('react').ReactNode;
77
94
  /**
@@ -71,6 +71,7 @@ export type NotificationItem = {
71
71
  * @param {true | { key: "all" | "unread" | "archived", label?: string }[]} [props.tabs] `true` for All, Unread and Archived; or the tabs to show, in order. Absent: no tab strip.
72
72
  * @param {(key: string) => void} [props.onTabChange] Called with the key of the tab the person picks.
73
73
  * @param {(open: boolean) => void} [props.onOpenChange] Called when the panel opens or closes.
74
+ * @param {import('react').ElementType} [props.linkComponent] Router link (e.g. react-router Link) for in-app destinations; it receives `to` instead of `href`. Absolute, `#` and scheme hrefs stay plain anchors. Keeps the library router-agnostic.
74
75
  * @param {string} [props.className]
75
76
  */
76
77
  export default function AppNotificationCenter(props: {
@@ -107,5 +108,6 @@ export default function AppNotificationCenter(props: {
107
108
  }[];
108
109
  onTabChange?: (key: string) => void;
109
110
  onOpenChange?: (open: boolean) => void;
111
+ linkComponent?: import('react').ElementType;
110
112
  className?: string;
111
113
  }): import("react").JSX.Element;
@@ -27,6 +27,21 @@ declare const AppNumberInput: import("react").ForwardRefExoticComponent<{
27
27
  * @default "More information"
28
28
  */
29
29
  helpLabel?: string;
30
+ /**
31
+ * Replaces the built-in English text, for other languages.
32
+ * @default "Decrease"
33
+ */
34
+ decreaseLabel?: string;
35
+ /**
36
+ * Replaces the built-in English text, for other languages.
37
+ * @default "Increase"
38
+ */
39
+ increaseLabel?: string;
40
+ /**
41
+ * Replaces the built-in English text, for other languages.
42
+ * @default "(optional)"
43
+ */
44
+ optionalLabel?: string;
30
45
  /** The lowest value, inclusive. The decrease stepper disables at it. */
31
46
  min?: number;
32
47
  /** The highest value, inclusive. The increase stepper disables at it. */
@@ -44,10 +59,10 @@ declare const AppNumberInput: import("react").ForwardRefExoticComponent<{
44
59
  /** A unit suffix shown inside the field after the input, such as kg or %. */
45
60
  unit?: string;
46
61
  /**
47
- * The control size: sm, md or lg.
62
+ * Control size: sm, md or lg (32, 36 or 44px). md is the default.
48
63
  * @default "md"
49
64
  */
50
- size?: string;
65
+ size?: "sm" | "md" | "lg";
51
66
  /** The input's id. Unset, a generated id is used. */
52
67
  id?: string;
53
68
  /** The input's name, for forms. */
@@ -72,5 +87,12 @@ declare const AppNumberInput: import("react").ForwardRefExoticComponent<{
72
87
  * @default false
73
88
  */
74
89
  readOnly?: boolean;
90
+ /**
91
+ * Shows a busy state and blocks input while data loads.
92
+ * @default false
93
+ */
94
+ loading?: boolean;
95
+ /** The starting value of an uncontrolled field. */
96
+ defaultValue?: number | null;
75
97
  } & import("react").RefAttributes<HTMLInputElement>>;
76
98
  export default AppNumberInput;
@@ -26,6 +26,11 @@ declare const AppOtpInput: import("react").ForwardRefExoticComponent<{
26
26
  * @default false
27
27
  */
28
28
  optional?: boolean;
29
+ /**
30
+ * Replaces the built-in English text, for other languages.
31
+ * @default "(optional)"
32
+ */
33
+ optionalLabel?: string;
29
34
  /** Help text under the code. It is hidden while an error is shown. */
30
35
  hint?: string;
31
36
  /** The error message under the code. It replaces the hint and marks the field invalid. */
@@ -35,6 +40,30 @@ declare const AppOtpInput: import("react").ForwardRefExoticComponent<{
35
40
  * @default false
36
41
  */
37
42
  disabled?: boolean;
43
+ /**
44
+ * Shows the value but blocks editing. The value still posts.
45
+ * @default false
46
+ */
47
+ readOnly?: boolean;
48
+ /**
49
+ * Shows a busy state and blocks input while data loads.
50
+ * @default false
51
+ */
52
+ loading?: boolean;
53
+ /**
54
+ * The control size: sm, md or lg.
55
+ * @default "md"
56
+ */
57
+ size?: "sm" | "md" | "lg";
58
+ /** The content of the info-tip beside the label, opened by a button. */
59
+ help?: import('react').ReactNode;
60
+ /**
61
+ * The accessible name of the info-tip button.
62
+ * @default "More information"
63
+ */
64
+ helpLabel?: string;
65
+ /** The starting value of an uncontrolled field. */
66
+ defaultValue?: string;
38
67
  /** The form field name, so a plain form post includes the code. */
39
68
  name?: string;
40
69
  /** The element id. A generated id is used when this is omitted. */
@@ -12,6 +12,25 @@ declare const AppPhoneNumberInput: import("react").ForwardRefExoticComponent<{
12
12
  * @default false
13
13
  */
14
14
  disabled?: boolean;
15
+ /**
16
+ * Shows the value but blocks editing. The value still posts.
17
+ * @default false
18
+ */
19
+ readOnly?: boolean;
20
+ /**
21
+ * Shows a busy state and blocks input while data loads.
22
+ * @default false
23
+ */
24
+ loading?: boolean;
25
+ /** The starting value of an uncontrolled field. */
26
+ defaultValue?: string;
27
+ /** The content of the info-tip beside the label, opened by a button. */
28
+ help?: import('react').ReactNode;
29
+ /**
30
+ * The accessible name of the info-tip button.
31
+ * @default "More information"
32
+ */
33
+ helpLabel?: string;
15
34
  /** The form field name. */
16
35
  name?: string;
17
36
  /** The id of the phone control. Left unset, one is generated. */
@@ -33,6 +52,11 @@ declare const AppPhoneNumberInput: import("react").ForwardRefExoticComponent<{
33
52
  * @default false
34
53
  */
35
54
  optional?: boolean;
55
+ /**
56
+ * Replaces the built-in English text, for other languages.
57
+ * @default "(optional)"
58
+ */
59
+ optionalLabel?: string;
36
60
  /** Help text under the field. The error replaces it while one is shown. */
37
61
  hint?: string;
38
62
  /** An error message under the field, which also turns the border red. */
@@ -13,11 +13,33 @@ declare const AppRadio: import("react").ForwardRefExoticComponent<{
13
13
  defaultChecked?: boolean;
14
14
  /** Locks the radio and dims it. */
15
15
  disabled?: boolean;
16
+ /**
17
+ * Shows the value but blocks editing. The value still posts.
18
+ * @default false
19
+ */
20
+ readOnly?: boolean;
21
+ /**
22
+ * Shows a busy state and blocks input while data loads.
23
+ * @default false
24
+ */
25
+ loading?: boolean;
26
+ /**
27
+ * The control size: sm, md or lg.
28
+ * @default "md"
29
+ */
30
+ size?: "sm" | "md" | "lg";
16
31
  onChange?: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
17
32
  /** Error message, rendered below the control. Replaces the hint. */
18
33
  error?: string;
19
34
  /** Helper text below the control. Hidden while an error is shown. */
20
35
  hint?: string;
36
+ /** Content for the info-tip after the label. Shown only when a label is set. */
37
+ help?: import('react').ReactNode;
38
+ /**
39
+ * aria-label for the info-tip button.
40
+ * @default "More information"
41
+ */
42
+ helpLabel?: string;
21
43
  /**
22
44
  * Extra class on the form-check wrapper that holds the input, label and message.
23
45
  * @default ""