@webority/ui-react 0.127.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 (186) hide show
  1. package/dist/canvas-kit/kit.js +28735 -24316
  2. package/dist/canvas-kit/manifest.json +3223 -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/AppProgress.js +1 -1
  57. package/dist/components/AppRadio.js +1 -1
  58. package/dist/components/AppRadioGroup.js +1 -1
  59. package/dist/components/AppRating.js +1 -1
  60. package/dist/components/AppRichText.js +1 -1
  61. package/dist/components/AppRouteError.js +1 -1
  62. package/dist/components/AppScoreScale.js +1 -1
  63. package/dist/components/AppSearch.js +1 -1
  64. package/dist/components/AppSectionLeadCapture.js +1 -1
  65. package/dist/components/AppSectionLogos.js +1 -1
  66. package/dist/components/AppSegmented.js +1 -1
  67. package/dist/components/AppSelect.js +1 -1
  68. package/dist/components/AppShell.js +1 -1
  69. package/dist/components/AppSlider.js +1 -1
  70. package/dist/components/AppSortableList.js +1 -1
  71. package/dist/components/AppSparkline.js +1 -1
  72. package/dist/components/AppSplitButton.js +1 -1
  73. package/dist/components/AppSplitView.js +1 -1
  74. package/dist/components/AppStepper.js +1 -1
  75. package/dist/components/AppSwitch.js +1 -1
  76. package/dist/components/AppTablePagination.js +1 -1
  77. package/dist/components/AppTableToolbar.js +1 -1
  78. package/dist/components/AppTagInput.js +1 -1
  79. package/dist/components/AppTextarea.js +1 -1
  80. package/dist/components/AppTimePicker.js +1 -1
  81. package/dist/components/AppTimeline.js +1 -1
  82. package/dist/components/AppToast.js +1 -1
  83. package/dist/components/AppUpdateBar.js +1 -1
  84. package/dist/components/AppWhatsNew.js +1 -1
  85. package/dist/components/AppWorkspaceSwitcher.js +1 -1
  86. package/dist/components/iconCatalogNames.g.js +1 -1
  87. package/dist/components/iconGlyphs.g.js +1 -1
  88. package/dist/components/iconVariants.g.js +1 -1
  89. package/dist/components/useWuiControl.js +1 -1
  90. package/dist/guidance.json +235 -2
  91. package/dist/lib/CheckField.js +1 -1
  92. package/dist/lib/FileItemRow.js +1 -1
  93. package/dist/lib/fieldState.js +1 -0
  94. package/dist/lib/fillLabel.js +1 -0
  95. package/dist/lib/labelWithHelp.js +1 -0
  96. package/dist/lib/linkTarget.js +1 -0
  97. package/dist/markdown-core/dist/links.js +1 -1
  98. package/dist/types/components/AppAccountSwitcher.d.ts +41 -0
  99. package/dist/types/components/AppAsyncBlock.d.ts +24 -0
  100. package/dist/types/components/AppAuthLayout.d.ts +45 -0
  101. package/dist/types/components/AppAutocomplete.d.ts +22 -2
  102. package/dist/types/components/AppAvatar.d.ts +6 -0
  103. package/dist/types/components/AppAvatarGroup.d.ts +6 -0
  104. package/dist/types/components/AppBanner.d.ts +6 -0
  105. package/dist/types/components/AppButton.d.ts +1 -0
  106. package/dist/types/components/AppCalendar.d.ts +3 -1
  107. package/dist/types/components/AppCard.d.ts +13 -1
  108. package/dist/types/components/AppCell.d.ts +36 -0
  109. package/dist/types/components/AppChart.d.ts +7 -0
  110. package/dist/types/components/AppChartCard.d.ts +60 -0
  111. package/dist/types/components/AppCheckbox.d.ts +22 -0
  112. package/dist/types/components/AppChoiceCard.d.ts +21 -0
  113. package/dist/types/components/AppChoiceChip.d.ts +21 -0
  114. package/dist/types/components/AppColorField.d.ts +43 -4
  115. package/dist/types/components/AppCommandPalette.d.ts +6 -0
  116. package/dist/types/components/AppCommentThread.d.ts +102 -3
  117. package/dist/types/components/AppCompareTable.d.ts +24 -0
  118. package/dist/types/components/AppConfirmDialog.d.ts +6 -0
  119. package/dist/types/components/AppCountrySelect.d.ts +5 -0
  120. package/dist/types/components/AppDataTable.d.ts +1 -1
  121. package/dist/types/components/AppDatePicker.d.ts +24 -0
  122. package/dist/types/components/AppDateRangePicker.d.ts +31 -1
  123. package/dist/types/components/AppDescriptions.d.ts +4 -1
  124. package/dist/types/components/AppDrawer.d.ts +6 -0
  125. package/dist/types/components/AppDropZone.d.ts +24 -0
  126. package/dist/types/components/AppDueDate.d.ts +42 -0
  127. package/dist/types/components/AppErrorBoundary.d.ts +39 -0
  128. package/dist/types/components/AppFileAttachment.d.ts +54 -1
  129. package/dist/types/components/AppFilePicker.d.ts +75 -0
  130. package/dist/types/components/AppFileTiles.d.ts +6 -3
  131. package/dist/types/components/AppFilterBar.d.ts +73 -0
  132. package/dist/types/components/AppFloatingButton.d.ts +64 -0
  133. package/dist/types/components/AppImagePicker.d.ts +60 -0
  134. package/dist/types/components/AppInlineEdit.d.ts +6 -0
  135. package/dist/types/components/AppInput.d.ts +37 -2
  136. package/dist/types/components/AppKanban.d.ts +32 -0
  137. package/dist/types/components/AppLeadPopup.d.ts +122 -0
  138. package/dist/types/components/AppLink.d.ts +3 -0
  139. package/dist/types/components/AppMentionInput.d.ts +17 -0
  140. package/dist/types/components/AppMetricStrip.d.ts +2 -0
  141. package/dist/types/components/AppModal.d.ts +6 -0
  142. package/dist/types/components/AppMultiSelect.d.ts +18 -1
  143. package/dist/types/components/AppNotificationCenter.d.ts +2 -0
  144. package/dist/types/components/AppNumberInput.d.ts +24 -2
  145. package/dist/types/components/AppOtpInput.d.ts +29 -0
  146. package/dist/types/components/AppPhoneNumberInput.d.ts +26 -0
  147. package/dist/types/components/AppProgress.d.ts +2 -2
  148. package/dist/types/components/AppRadio.d.ts +22 -0
  149. package/dist/types/components/AppRadioGroup.d.ts +24 -0
  150. package/dist/types/components/AppRating.d.ts +39 -0
  151. package/dist/types/components/AppRichText.d.ts +7 -0
  152. package/dist/types/components/AppRouteError.d.ts +54 -0
  153. package/dist/types/components/AppScoreScale.d.ts +6 -0
  154. package/dist/types/components/AppSearch.d.ts +17 -2
  155. package/dist/types/components/AppSectionLeadCapture.d.ts +48 -0
  156. package/dist/types/components/AppSectionLogos.d.ts +2 -0
  157. package/dist/types/components/AppSegmented.d.ts +27 -3
  158. package/dist/types/components/AppSelect.d.ts +22 -2
  159. package/dist/types/components/AppShell.d.ts +165 -0
  160. package/dist/types/components/AppSlider.d.ts +28 -0
  161. package/dist/types/components/AppSortableList.d.ts +5 -0
  162. package/dist/types/components/AppSparkline.d.ts +24 -0
  163. package/dist/types/components/AppSplitView.d.ts +68 -0
  164. package/dist/types/components/AppStepper.d.ts +6 -0
  165. package/dist/types/components/AppSwitch.d.ts +22 -0
  166. package/dist/types/components/AppTablePagination.d.ts +44 -2
  167. package/dist/types/components/AppTableToolbar.d.ts +30 -0
  168. package/dist/types/components/AppTagInput.d.ts +18 -1
  169. package/dist/types/components/AppTextarea.d.ts +20 -0
  170. package/dist/types/components/AppTimePicker.d.ts +17 -0
  171. package/dist/types/components/AppTimeline.d.ts +8 -0
  172. package/dist/types/components/AppToast.d.ts +6 -0
  173. package/dist/types/components/AppUpdateBar.d.ts +18 -0
  174. package/dist/types/components/AppWhatsNew.d.ts +2 -0
  175. package/dist/types/components/AppWorkspaceSwitcher.d.ts +18 -0
  176. package/dist/types/components/iconGlyphs.g.d.ts +1 -0
  177. package/dist/types/components/iconVariants.g.d.ts +5 -0
  178. package/dist/types/components/useWuiControl.d.ts +3 -1
  179. package/dist/types/index.d.ts +6 -0
  180. package/dist/types/lib/FileItemRow.d.ts +9 -2
  181. package/dist/types/lib/fieldState.d.ts +3 -0
  182. package/dist/types/lib/fillLabel.d.ts +1 -0
  183. package/dist/types/lib/labelWithHelp.d.ts +10 -0
  184. package/dist/types/lib/linkTarget.d.ts +30 -0
  185. package/dist/ui-react.js +1 -1
  186. package/package.json +8 -8
@@ -105,6 +105,18 @@ export type UserMenuShape = {
105
105
  * Default "Sign out".
106
106
  */
107
107
  logoutLabel?: string;
108
+ /**
109
+ * Under the name, role and roles lines (an email, an account id, a role badge).
110
+ */
111
+ head?: import('react').ReactNode;
112
+ /**
113
+ * Between the head and the items: an account or workspace switcher.
114
+ */
115
+ section?: import('react').ReactNode;
116
+ /**
117
+ * 'item' (default) is a danger row; 'button' is a full-width secondary-danger button in its own foot.
118
+ */
119
+ logoutVariant?: 'item' | 'button';
108
120
  items?: {
109
121
  key: string;
110
122
  label?: string;
@@ -200,6 +212,11 @@ export type SearchShape = {
200
212
  * @param {{ key?: string, label?: string, collapsible?: boolean, items: NavItemShape[], after?: import('react').ReactNode }[]} [props.groups]
201
213
  * A `collapsible` group with a `key` folds from its heading; its folded state is remembered in `foldedCookie`.
202
214
  * @param {import('react').ReactNode} [props.brand]
215
+ * @param {string} [props.logoLight] Image URL of the full logo shown on the open sidebar. Ship it pre-trimmed; the library fixes only its height.
216
+ * @param {string} [props.logoDark] Dark-mode twin of `logoLight`, swapped in under data-theme dark. Needs `logoLight`.
217
+ * @param {string} [props.markLight] Image URL of the square mark shown on the collapsed rail.
218
+ * @param {string} [props.markDark] Dark-mode twin of `markLight`.
219
+ * @param {string} [props.brandName] The brand name, read by screen readers from the logo, or from the mark when there is no logo.
203
220
  * @param {import('react').ReactNode} [props.sidebarStart]
204
221
  * @param {import('react').ReactNode} [props.sidebarStartCompact]
205
222
  * @param {import('react').ReactNode} [props.sidebarFooter]
@@ -211,6 +228,7 @@ export type SearchShape = {
211
228
  * @param {boolean} [props.collapsed]
212
229
  * @param {(collapsed: boolean) => void} [props.onCollapsedChange]
213
230
  * @param {boolean} [props.noSidebar]
231
+ * @param {'side'|'top'} [props.nav] 'top': from lg up the groups' items ride in the top bar after brand through the navigation menu and no sidebar is drawn; below lg the drawer and the phone tab bar stay.
214
232
  * @param {'comfortable'|'compact'} [props.density]
215
233
  * @param {number} [props.itemHeight]
216
234
  * @param {'linear'|'outline'|'bold'|'bulk'|'broken'|'twotone'} [props.iconVariant]
@@ -222,6 +240,28 @@ export type SearchShape = {
222
240
  * @param {string} [props.foldedCookie]
223
241
  * @param {string} [props.tabBarLabel]
224
242
  * @param {string} [props.moreLabel]
243
+ * @param {string} [props.skipLabel] Default "Skip to content".
244
+ * @param {string} [props.openNavLabel] Default "Open navigation".
245
+ * @param {string} [props.closeNavLabel] Default "Close navigation".
246
+ * @param {string} [props.expandNavLabel] Default "Expand navigation".
247
+ * @param {string} [props.collapseNavLabel] Default "Collapse navigation".
248
+ * @param {string} [props.newLabel] Default "New".
249
+ * @param {string} [props.togglePagesLabel] Default "Show or hide {name} pages".
250
+ * @param {string} [props.accountMenuLabel] Default "Account menu for {name}".
251
+ * @param {string} [props.roleLabel] Default "Role:".
252
+ * @param {string} [props.rolesLabel] Default "Roles:".
253
+ * @param {string} [props.unreadLabel] Default "Unread".
254
+ * @param {string} [props.markAllReadLabel] Default "Mark all read".
255
+ * @param {string} [props.viewAllLabel] Default "View all".
256
+ * @param {string} [props.loadingNotificationsText] Default "Loading…".
257
+ * @param {string} [props.noUnreadText] Default "No unread notifications".
258
+ * @param {string} [props.unreadNotificationsText] Default "{count} unread notifications".
259
+ * @param {string} [props.unreadBellLabel] Default "{label}, {count} unread".
260
+ * @param {string} [props.searchResultsLabel] Default "Search results".
261
+ * @param {string} [props.noResultsText] Default "No results".
262
+ * @param {string} [props.noResultsForText] Default "No results for “{value}”".
263
+ * @param {string} [props.resultsCountText] Default "{count} results".
264
+ * @param {string} [props.resultCountText] Default "{count} result".
225
265
  * @param {UserMenuShape} [props.userMenu]
226
266
  * @param {NotificationsShape} [props.notifications]
227
267
  * @param {SearchShape} [props.search]
@@ -241,6 +281,16 @@ export default function AppShell(props: {
241
281
  }[];
242
282
  /** The logo row at the top of the sidebar. */
243
283
  brand?: import('react').ReactNode;
284
+ /** Image URL of the full logo shown on the open sidebar. Ship it pre-trimmed; the library fixes only its height. */
285
+ logoLight?: string;
286
+ /** Dark-mode twin of logoLight, swapped in under data-theme dark. Needs logoLight. */
287
+ logoDark?: string;
288
+ /** Image URL of the square mark shown on the collapsed rail. Without one, the logo is clipped to a square. */
289
+ markLight?: string;
290
+ /** Dark-mode twin of markLight. */
291
+ markDark?: string;
292
+ /** The brand name, read by screen readers from the logo, or from the mark when there is no logo. */
293
+ brandName?: string;
244
294
  /** Between the brand row and the nav, such as a workspace switcher or an environment badge. Hidden on the collapsed rail. */
245
295
  sidebarStart?: import('react').ReactNode;
246
296
  /** The same slot for the collapsed rail, typically a compact monogram control. Shown only on the desktop collapsed rail. */
@@ -264,6 +314,11 @@ export default function AppShell(props: {
264
314
  * @default false
265
315
  */
266
316
  noSidebar?: boolean;
317
+ /**
318
+ * Where the primary navigation sits: a sidebar, or from lg up the top bar.
319
+ * @default "side"
320
+ */
321
+ nav?: 'side' | 'top';
267
322
  /**
268
323
  * Compact sets the content's top padding to 12px.
269
324
  * @default "comfortable"
@@ -310,6 +365,116 @@ export default function AppShell(props: {
310
365
  * @default "More"
311
366
  */
312
367
  moreLabel?: string;
368
+ /**
369
+ * Replaces the built-in English text, for other languages.
370
+ * @default "Skip to content"
371
+ */
372
+ skipLabel?: string;
373
+ /**
374
+ * Replaces the built-in English text, for other languages.
375
+ * @default "Open navigation"
376
+ */
377
+ openNavLabel?: string;
378
+ /**
379
+ * Replaces the built-in English text, for other languages.
380
+ * @default "Close navigation"
381
+ */
382
+ closeNavLabel?: string;
383
+ /**
384
+ * Replaces the built-in English text, for other languages.
385
+ * @default "Expand navigation"
386
+ */
387
+ expandNavLabel?: string;
388
+ /**
389
+ * Replaces the built-in English text, for other languages.
390
+ * @default "Collapse navigation"
391
+ */
392
+ collapseNavLabel?: string;
393
+ /**
394
+ * Replaces the built-in English text, for other languages.
395
+ * @default "New"
396
+ */
397
+ newLabel?: string;
398
+ /**
399
+ * Replaces the built-in English text, for other languages. {name} is the nav item's label.
400
+ * @default "Show or hide {name} pages"
401
+ */
402
+ togglePagesLabel?: string;
403
+ /**
404
+ * Replaces the built-in English text, for other languages. {name} is the signed-in person's name.
405
+ * @default "Account menu for {name}"
406
+ */
407
+ accountMenuLabel?: string;
408
+ /**
409
+ * Replaces the built-in English text, for other languages.
410
+ * @default "Role:"
411
+ */
412
+ roleLabel?: string;
413
+ /**
414
+ * Replaces the built-in English text, for other languages.
415
+ * @default "Roles:"
416
+ */
417
+ rolesLabel?: string;
418
+ /**
419
+ * Replaces the built-in English text, for other languages.
420
+ * @default "Unread"
421
+ */
422
+ unreadLabel?: string;
423
+ /**
424
+ * Replaces the built-in English text, for other languages.
425
+ * @default "Mark all read"
426
+ */
427
+ markAllReadLabel?: string;
428
+ /**
429
+ * Replaces the built-in English text, for other languages.
430
+ * @default "View all"
431
+ */
432
+ viewAllLabel?: string;
433
+ /**
434
+ * Replaces the built-in English text, for other languages.
435
+ * @default "Loading…"
436
+ */
437
+ loadingNotificationsText?: string;
438
+ /**
439
+ * Replaces the built-in English text, for other languages. Read aloud when the unread count drops to zero.
440
+ * @default "No unread notifications"
441
+ */
442
+ noUnreadText?: string;
443
+ /**
444
+ * Replaces the built-in English text, for other languages. {count} is the unread count.
445
+ * @default "{count} unread notifications"
446
+ */
447
+ unreadNotificationsText?: string;
448
+ /**
449
+ * Replaces the built-in English text, for other languages. {label} is the bell's label and {count} the unread count.
450
+ * @default "{label}, {count} unread"
451
+ */
452
+ unreadBellLabel?: string;
453
+ /**
454
+ * Replaces the built-in English text, for other languages.
455
+ * @default "Search results"
456
+ */
457
+ searchResultsLabel?: string;
458
+ /**
459
+ * Replaces the built-in English text, for other languages.
460
+ * @default "No results"
461
+ */
462
+ noResultsText?: string;
463
+ /**
464
+ * Replaces the built-in English text, for other languages. {value} is the search text.
465
+ * @default "No results for “{value}”"
466
+ */
467
+ noResultsForText?: string;
468
+ /**
469
+ * Replaces the built-in English text, for other languages. {count} is the number of results.
470
+ * @default "{count} results"
471
+ */
472
+ resultsCountText?: string;
473
+ /**
474
+ * Replaces the built-in English text, for other languages. {count} is the number of results (one).
475
+ * @default "{count} result"
476
+ */
477
+ resultCountText?: string;
313
478
  /** The account menu at the end of the topbar. */
314
479
  userMenu?: UserMenuShape;
315
480
  /** The notification bell. */
@@ -54,6 +54,22 @@ declare const AppSlider: import("react").ForwardRefExoticComponent<{
54
54
  endName?: string;
55
55
  /** Disables the control. */
56
56
  disabled?: boolean;
57
+ /**
58
+ * Shows the value but blocks editing. The value still posts.
59
+ * @default false
60
+ */
61
+ readOnly?: boolean;
62
+ /**
63
+ * Shows a busy state and blocks input while data loads.
64
+ * @default false
65
+ */
66
+ loading?: boolean;
67
+ /** The starting value of an uncontrolled field. */
68
+ defaultValue?: number;
69
+ /** The starting start of an uncontrolled range. */
70
+ defaultStart?: number;
71
+ /** The starting end of an uncontrolled range. */
72
+ defaultEnd?: number;
57
73
  /** Control size tier. */
58
74
  size?: 'sm' | 'md' | 'lg';
59
75
  /** Shows a label with the current value or values. */
@@ -74,5 +90,17 @@ declare const AppSlider: import("react").ForwardRefExoticComponent<{
74
90
  * @default ""
75
91
  */
76
92
  fieldClassName?: string;
93
+ /** The content of the info-tip beside the label, opened by a button. */
94
+ help?: import('react').ReactNode;
95
+ /**
96
+ * The accessible name of the info-tip button.
97
+ * @default "More information"
98
+ */
99
+ helpLabel?: string;
100
+ /**
101
+ * Replaces the built-in English text, for other languages.
102
+ * @default "(optional)"
103
+ */
104
+ optionalLabel?: string;
77
105
  } & import("react").RefAttributes<HTMLElement>>;
78
106
  export default AppSlider;
@@ -44,5 +44,10 @@ declare const AppSortableList: import("react").ForwardRefExoticComponent<{
44
44
  * @default ""
45
45
  */
46
46
  className?: string;
47
+ /**
48
+ * Replaces the built-in English text, for other languages. {name} is the item's label.
49
+ * @default "Reorder {name}"
50
+ */
51
+ reorderLabel?: string;
47
52
  } & import("react").RefAttributes<HTMLElement>>;
48
53
  export default AppSortableList;
@@ -14,6 +14,10 @@
14
14
  * @param {number} [props.width]
15
15
  * @param {number} [props.height]
16
16
  * @param {string} [props.className]
17
+ * @param {string} [props.trendLabel] Default "Trend".
18
+ * @param {string} [props.namedTrendLabel] Default "{label} trend".
19
+ * @param {string} [props.oneValueText] Default "{name} has one value, {value}.".
20
+ * @param {string} [props.rangeText] Default "{name} from {from} to {to} across {count} points.".
17
21
  */
18
22
  export default function AppSparkline(props: {
19
23
  /** The values, in order. A value that is not a finite number (null, NaN, a string) is left out, and a series with none left draws nothing. */
@@ -35,4 +39,24 @@ export default function AppSparkline(props: {
35
39
  * @default ""
36
40
  */
37
41
  className?: string;
42
+ /**
43
+ * Replaces the built-in English text, for other languages.
44
+ * @default "Trend"
45
+ */
46
+ trendLabel?: string;
47
+ /**
48
+ * Replaces the built-in English text, for other languages. The token {label} is the label prop.
49
+ * @default "{label} trend"
50
+ */
51
+ namedTrendLabel?: string;
52
+ /**
53
+ * Replaces the built-in English text, for other languages. The tokens are {name} (the trend name) and {value} (the one value).
54
+ * @default "{name} has one value, {value}."
55
+ */
56
+ oneValueText?: string;
57
+ /**
58
+ * Replaces the built-in English text, for other languages. The tokens are {name} (the trend name), {from} and {to} (the first and last values) and {count} (the number of points).
59
+ * @default "{name} from {from} to {to} across {count} points."
60
+ */
61
+ rangeText?: string;
38
62
  }): import("react").JSX.Element | null;
@@ -36,6 +36,18 @@
36
36
  * @param {boolean} [props.loading]
37
37
  * @param {3|4|5|6|7|8} [props.listWidth]
38
38
  * @param {'sm'|'md'|'lg'|'xl'|'xxl'} [props.stackBelow]
39
+ * @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.
40
+ * @param {string} [props.loadingLabel] Default "Loading".
41
+ * @param {string} [props.itemsLabel] Default "Items".
42
+ * @param {string} [props.selectItemLabel] Default "Select {title}".
43
+ * @param {string} [props.selectAllLabel] Default "Select all items".
44
+ * @param {string} [props.readingPaneLabel] Default "Reading pane".
45
+ * @param {string} [props.previousItemLabel] Default "Previous item".
46
+ * @param {string} [props.nextItemLabel] Default "Next item".
47
+ * @param {string} [props.openLabel] Default "Open".
48
+ * @param {string} [props.moveLabel] Default "Move".
49
+ * @param {string} [props.selectedLabel] Default "{count} selected".
50
+ * @param {string} [props.untitledItemLabel] Default "item".
39
51
  * @param {string} [props.className]
40
52
  */
41
53
  export default function AppSplitView(props: {
@@ -109,6 +121,62 @@ export default function AppSplitView(props: {
109
121
  * @default "xl"
110
122
  */
111
123
  stackBelow?: 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
124
+ linkComponent?: import('react').ElementType;
125
+ /**
126
+ * Replaces the built-in English text, for other languages.
127
+ * @default "Loading"
128
+ */
129
+ loadingLabel?: string;
130
+ /**
131
+ * Replaces the built-in English text, for other languages.
132
+ * @default "Items"
133
+ */
134
+ itemsLabel?: string;
135
+ /**
136
+ * Replaces the built-in English text, for other languages. The token {title} is the item's title.
137
+ * @default "Select {title}"
138
+ */
139
+ selectItemLabel?: string;
140
+ /**
141
+ * Replaces the built-in English text, for other languages.
142
+ * @default "Select all items"
143
+ */
144
+ selectAllLabel?: string;
145
+ /**
146
+ * Replaces the built-in English text, for other languages.
147
+ * @default "Reading pane"
148
+ */
149
+ readingPaneLabel?: string;
150
+ /**
151
+ * Replaces the built-in English text, for other languages.
152
+ * @default "Previous item"
153
+ */
154
+ previousItemLabel?: string;
155
+ /**
156
+ * Replaces the built-in English text, for other languages.
157
+ * @default "Next item"
158
+ */
159
+ nextItemLabel?: string;
160
+ /**
161
+ * Replaces the built-in English text, for other languages.
162
+ * @default "Open"
163
+ */
164
+ openLabel?: string;
165
+ /**
166
+ * Replaces the built-in English text, for other languages.
167
+ * @default "Move"
168
+ */
169
+ moveLabel?: string;
170
+ /**
171
+ * Replaces the built-in English text, for other languages. The token {count} is the number of ticked items.
172
+ * @default "{count} selected"
173
+ */
174
+ selectedLabel?: string;
175
+ /**
176
+ * Replaces the built-in English text, for other languages. Read in place of a title that is not text.
177
+ * @default "item"
178
+ */
179
+ untitledItemLabel?: string;
112
180
  /**
113
181
  * Extra classes on the root element.
114
182
  * @default ""
@@ -30,6 +30,7 @@
30
30
  * @param {(step: object, index: number) => void} [props.onStepClick] Makes each step a
31
31
  * button that reports the step it stands for. React-only (no Razor counterpart).
32
32
  * @param {string} [props.label]
33
+ * @param {string} [props.stepLabel] Default "Step {number}".
33
34
  * @param {'primary'|'info'} [props.tone]
34
35
  * @param {import('react').ElementType} [props.linkComponent] Router link for a revisitable
35
36
  * step; it receives `to` instead of `href`.
@@ -75,6 +76,11 @@ export default function AppStepper(props: {
75
76
  * @default "Progress"
76
77
  */
77
78
  label?: string;
79
+ /**
80
+ * Replaces the built-in English text, for other languages. The token {number} is the step's number.
81
+ * @default "Step {number}"
82
+ */
83
+ stepLabel?: string;
78
84
  /**
79
85
  * The accent of the active and done steps.
80
86
  * @default "primary"
@@ -16,11 +16,33 @@ declare const AppSwitch: import("react").ForwardRefExoticComponent<{
16
16
  error?: string;
17
17
  /** Helper text shown below the control. It is hidden while an error shows. */
18
18
  hint?: string;
19
+ /** Content for the info-tip after the label. Shown only when a label is set. */
20
+ help?: import('react').ReactNode;
21
+ /**
22
+ * aria-label for the info-tip button.
23
+ * @default "More information"
24
+ */
25
+ helpLabel?: string;
19
26
  /**
20
27
  * The track shape. round is the sliding pill with circular ends, pill is the same pill with squircle ends, and circle is a compact round on/off button.
21
28
  * @default "round"
22
29
  */
23
30
  shape?: 'round' | 'pill' | 'circle';
31
+ /**
32
+ * Shows the value but blocks editing. The value still posts.
33
+ * @default false
34
+ */
35
+ readOnly?: boolean;
36
+ /**
37
+ * Shows a busy state and blocks input while data loads.
38
+ * @default false
39
+ */
40
+ loading?: boolean;
41
+ /**
42
+ * The control size: sm, md or lg.
43
+ * @default "md"
44
+ */
45
+ size?: "sm" | "md" | "lg";
24
46
  /**
25
47
  * Extra class names added to the form-check wrapper.
26
48
  * @default ""
@@ -2,8 +2,8 @@
2
2
  * Pagination for a list or table. Under an AppDataTable it sits as a footer; standalone it pages
3
3
  * cards, lists and search results. Pair with usePagination.
4
4
  *
5
- * A page-size menu ("10 per page") beside the page buttons. It shows no row range and no total:
6
- * the page buttons already say where you are.
5
+ * A page-size menu ("10 per page") beside the page buttons. It shows no row range
6
+ * unless `summary` is set: the page buttons already say where you are.
7
7
  *
8
8
  * `page` is ONE-BASED, matching `<app-table-pagination page="…">` and the shared pagination contract.
9
9
  * `totalPages` is the page count, the name Razor and the shared response shape use.
@@ -19,9 +19,16 @@
19
19
  * @param {"numbered"|"prev-next"} [props.mode]
20
20
  * @param {boolean} [props.showPageSize] Default true.
21
21
  * @param {number} [props.siblings] Window radius. Default 2.
22
+ * @param {boolean} [props.summary] Draws "Showing x to y of z" at the start of the pager. Needs total and pageSize; without both it draws nothing. Default false.
22
23
  * @param {"sm"|"md"} [props.size] sm is 28px controls. Default "md".
23
24
  * @param {"footer"|"standalone"} [props.variant] footer: border-top, right aligned, under a table. standalone: centred, no border, for cards and lists. Default "footer".
24
25
  * @param {string} [props.ariaLabel] Default "Pagination".
26
+ * @param {string} [props.rowsPerPageLabel] Default "Rows per page".
27
+ * @param {string} [props.pageSizeLabel] Default "{count} per page". Token: count.
28
+ * @param {string} [props.previousLabel] Default "Previous page".
29
+ * @param {string} [props.nextLabel] Default "Next page".
30
+ * @param {string} [props.pageLabel] Default "Page {page}". Token: page.
31
+ * @param {string} [props.rangeText] Default "Page {page} of {pages}". Tokens: page, pages.
25
32
  * @param {string} [props.className]
26
33
  */
27
34
  export default function AppTablePagination(props: {
@@ -52,6 +59,11 @@ export default function AppTablePagination(props: {
52
59
  * @default 2
53
60
  */
54
61
  siblings?: number;
62
+ /**
63
+ * Shows Showing x to y of z at the start of the pager. It needs total and pageSize; without both nothing is shown.
64
+ * @default false
65
+ */
66
+ summary?: boolean;
55
67
  /**
56
68
  * sm draws 28px page and arrow buttons with 12px text.
57
69
  * @default "md"
@@ -67,6 +79,36 @@ export default function AppTablePagination(props: {
67
79
  * @default "Pagination"
68
80
  */
69
81
  ariaLabel?: string;
82
+ /**
83
+ * Replaces the built-in English text, for other languages.
84
+ * @default "Rows per page"
85
+ */
86
+ rowsPerPageLabel?: string;
87
+ /**
88
+ * Replaces the built-in English text, for other languages. The token {count} is the page size.
89
+ * @default "{count} per page"
90
+ */
91
+ pageSizeLabel?: string;
92
+ /**
93
+ * Replaces the built-in English text, for other languages.
94
+ * @default "Previous page"
95
+ */
96
+ previousLabel?: string;
97
+ /**
98
+ * Replaces the built-in English text, for other languages.
99
+ * @default "Next page"
100
+ */
101
+ nextLabel?: string;
102
+ /**
103
+ * Replaces the built-in English text, for other languages. The token {page} is the page number.
104
+ * @default "Page {page}"
105
+ */
106
+ pageLabel?: string;
107
+ /**
108
+ * Replaces the built-in English text, for other languages. The tokens {page} and {pages} are the current page and the page count.
109
+ * @default "Page {page} of {pages}"
110
+ */
111
+ rangeText?: string;
70
112
  /**
71
113
  * Extra class names added to the pager.
72
114
  * @default ""
@@ -18,6 +18,11 @@
18
18
  * @param {() => void} [props.onSelectAllMatching] Called when the offer is taken; the screen then runs
19
19
  * its action on the query rather than on ids, and sets `allMatchingSelected`.
20
20
  * @param {boolean} [props.allMatchingSelected]
21
+ * @param {string} [props.selectAllMatchingLabel] Default "Select all {count} matching".
22
+ * @param {string} [props.selectedLabel] Default "{count} selected".
23
+ * @param {string} [props.allSelectedLabel] Default "All {count} selected".
24
+ * @param {string} [props.clearLabel] Default "Clear".
25
+ * @param {string} [props.clearSelectionLabel] Default "Clear selection".
21
26
  * @param {string} [props.className]
22
27
  */
23
28
  export default function AppTableToolbar(props: {
@@ -43,6 +48,31 @@ export default function AppTableToolbar(props: {
43
48
  * @default false
44
49
  */
45
50
  allMatchingSelected?: boolean;
51
+ /**
52
+ * The Select all button's text, for other languages. {count} is the matching row total.
53
+ * @default "Select all {count} matching"
54
+ */
55
+ selectAllMatchingLabel?: string;
56
+ /**
57
+ * The bulk bar's count text, for other languages. {count} is the selected row count.
58
+ * @default "{count} selected"
59
+ */
60
+ selectedLabel?: string;
61
+ /**
62
+ * The bulk bar's count text when every matching row is selected, for other languages. {count} is the matching row total.
63
+ * @default "All {count} selected"
64
+ */
65
+ allSelectedLabel?: string;
66
+ /**
67
+ * The Clear button's text, for other languages.
68
+ * @default "Clear"
69
+ */
70
+ clearLabel?: string;
71
+ /**
72
+ * The Clear button's text when every matching row is selected, for other languages.
73
+ * @default "Clear selection"
74
+ */
75
+ clearSelectionLabel?: string;
46
76
  /**
47
77
  * Extra class names added to the toolbar.
48
78
  * @default ""
@@ -26,8 +26,13 @@ declare const AppTagInput: 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
  /** Control size around the default; leave unset for the default size. */
30
- size?: 'sm' | 'lg';
35
+ size?: 'sm' | 'md' | 'lg';
31
36
  /** The most tags the field accepts. */
32
37
  maxTags?: number;
33
38
  /**
@@ -40,6 +45,18 @@ declare const AppTagInput: import("react").ForwardRefExoticComponent<{
40
45
  * @default false
41
46
  */
42
47
  disabled?: boolean;
48
+ /**
49
+ * Shows the value but blocks editing. The value still posts.
50
+ * @default false
51
+ */
52
+ readOnly?: boolean;
53
+ /**
54
+ * Shows a busy state and blocks input while data loads.
55
+ * @default false
56
+ */
57
+ loading?: boolean;
58
+ /** The starting value of an uncontrolled field. */
59
+ defaultValues?: string[];
43
60
  /** The control's id. A generated id is used when this is unset. */
44
61
  id?: string;
45
62
  /** The accessible name of the input. When unset, a text label names it. */
@@ -11,6 +11,11 @@ declare const AppTextarea: import("react").ForwardRefExoticComponent<{
11
11
  * @default false
12
12
  */
13
13
  optional?: boolean;
14
+ /**
15
+ * Replaces the built-in English text, for other languages.
16
+ * @default "(optional)"
17
+ */
18
+ optionalLabel?: string;
14
19
  /** An error message. It replaces the hint and marks the field invalid. */
15
20
  error?: string;
16
21
  /** Help text under the field. */
@@ -38,6 +43,11 @@ declare const AppTextarea: import("react").ForwardRefExoticComponent<{
38
43
  * @default false
39
44
  */
40
45
  autoGrow?: boolean;
46
+ /**
47
+ * Sets the monospace font on the control, for codes, logs and pasted data.
48
+ * @default false
49
+ */
50
+ monospace?: boolean;
41
51
  /**
42
52
  * Shows a live character count under the field, as count / maxLength when maxLength is set.
43
53
  * @default false
@@ -55,6 +65,16 @@ declare const AppTextarea: import("react").ForwardRefExoticComponent<{
55
65
  * @default false
56
66
  */
57
67
  readOnly?: boolean;
68
+ /**
69
+ * Shows a busy state and blocks input while data loads.
70
+ * @default false
71
+ */
72
+ loading?: boolean;
73
+ /**
74
+ * The control size: sm, md or lg.
75
+ * @default "md"
76
+ */
77
+ size?: "sm" | "md" | "lg";
58
78
  /**
59
79
  * A class added to the control.
60
80
  * @default ""
@@ -2,6 +2,8 @@ import "@webority/ui-elements/elements/timepicker";
2
2
  declare const AppTimePicker: import("react").ForwardRefExoticComponent<{
3
3
  /** The time as 24-hour "HH:mm" text, which is also the wire format. */
4
4
  value?: string;
5
+ /** The starting value of an uncontrolled field. */
6
+ defaultValue?: string;
5
7
  onChange?: (value: string) => void;
6
8
  /** The label above the field. */
7
9
  label?: string;
@@ -15,6 +17,11 @@ declare const AppTimePicker: import("react").ForwardRefExoticComponent<{
15
17
  * @default false
16
18
  */
17
19
  optional?: boolean;
20
+ /**
21
+ * Replaces the built-in English text, for other languages.
22
+ * @default "(optional)"
23
+ */
24
+ optionalLabel?: string;
18
25
  /** Help text under the field. */
19
26
  hint?: string;
20
27
  /** An error message. It replaces the hint and marks the field invalid. */
@@ -46,6 +53,16 @@ declare const AppTimePicker: import("react").ForwardRefExoticComponent<{
46
53
  placeholder?: string;
47
54
  /** Locks the field. */
48
55
  disabled?: boolean;
56
+ /**
57
+ * Shows the value but blocks editing. The value still posts.
58
+ * @default false
59
+ */
60
+ readOnly?: boolean;
61
+ /**
62
+ * Shows a busy state and blocks input while data loads.
63
+ * @default false
64
+ */
65
+ loading?: boolean;
49
66
  /** The control height tier, matching AppInput; leave unset for the default height. */
50
67
  size?: 'sm' | 'md' | 'lg';
51
68
  /** The control's id. A generated id is used when this is unset. */