@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
@@ -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. */
@@ -26,8 +26,10 @@
26
26
  * @param {'vertical'|'horizontal'} [props.orientation]
27
27
  * @param {'linear'|'outline'|'bold'|'bulk'|'broken'|'twotone'} [props.iconVariant]
28
28
  * @param {'sm'|'md'|'lg'|number} [props.size]
29
+ * @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.
29
30
  * @param {string} [props.className]
30
31
  * @param {import('react').CSSProperties} [props.style]
32
+ * @param {string} [props.stepLabel] Default "Step {number}". The {number} token is the step's position, counted from 1.
31
33
  */
32
34
  export default function AppTimeline(props: {
33
35
  /**
@@ -60,10 +62,16 @@ export default function AppTimeline(props: {
60
62
  iconVariant?: 'linear' | 'outline' | 'bold' | 'bulk' | 'broken' | 'twotone';
61
63
  /** A preset, or the dot diameter in px. The presets scale the dot, text and spacing together; a number sets only the dot. */
62
64
  size?: 'sm' | 'md' | 'lg' | number;
65
+ linkComponent?: import('react').ElementType;
63
66
  /**
64
67
  * A class added to the list.
65
68
  * @default ""
66
69
  */
67
70
  className?: string;
68
71
  style?: import('react').CSSProperties;
72
+ /**
73
+ * Replaces the built-in English text, for other languages. The {number} token is the step's position, counted from 1.
74
+ * @default "Step {number}"
75
+ */
76
+ stepLabel?: string;
69
77
  }): import("react").JSX.Element;
@@ -13,6 +13,7 @@
13
13
  * @param {'rise'|'organic'|'jelly'|'spring'} [props.animation]
14
14
  * @param {'rounded'|'pill'|'sharp'} [props.shape]
15
15
  * @param {'auto'|'inverse'} [props.surface]
16
+ * @param {number} [props.offset] Distance in pixels from the screen edge the stack pins to, top or bottom. Default: the `--wui-toast-edge-offset` token (16px).
16
17
  * @param {string} [props.className]
17
18
  */
18
19
  export default function AppToast(props: {
@@ -41,6 +42,11 @@ export default function AppToast(props: {
41
42
  * @default "auto"
42
43
  */
43
44
  surface?: 'auto' | 'inverse';
45
+ /**
46
+ * Distance in pixels from the screen edge the stack pins to, top or bottom. Ignored for middle-center and the side edges. The default is the `--wui-toast-edge-offset` token.
47
+ * @default 16
48
+ */
49
+ offset?: number;
44
50
  /**
45
51
  * Extra class on the container element.
46
52
  * @default ""
@@ -11,6 +11,9 @@
11
11
  * @param {boolean} [props.dismissible]
12
12
  * @param {() => void} [props.onDismiss] Called after the bar is closed.
13
13
  * @param {string} [props.className]
14
+ * @param {string} [props.message] Default "A new version of this app is ready."
15
+ * @param {string} [props.reloadLabel] Default "Reload".
16
+ * @param {string} [props.dismissLabel] Default "Dismiss".
14
17
  */
15
18
  export default function AppUpdateBar(props: {
16
19
  onReload?: () => void;
@@ -25,4 +28,19 @@ export default function AppUpdateBar(props: {
25
28
  * @default ""
26
29
  */
27
30
  className?: string;
31
+ /**
32
+ * Replaces the built-in English text, for other languages.
33
+ * @default "A new version of this app is ready."
34
+ */
35
+ message?: string;
36
+ /**
37
+ * Replaces the built-in English text, for other languages.
38
+ * @default "Reload"
39
+ */
40
+ reloadLabel?: string;
41
+ /**
42
+ * Replaces the built-in English text, for other languages.
43
+ * @default "Dismiss"
44
+ */
45
+ dismissLabel?: string;
28
46
  }): import("react").JSX.Element;
@@ -22,6 +22,7 @@ import "@webority/ui-elements/elements/whats-new";
22
22
  * @param {string} [props.unreadLabel]
23
23
  * @param {string} [props.emptyText]
24
24
  * @param {(through: string) => void} [props.onRead] Called with the newest entry's date when opening marks entries read.
25
+ * @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.
25
26
  * @param {string} [props.className]
26
27
  */
27
28
  export default function AppWhatsNew(props: {
@@ -64,6 +65,7 @@ export default function AppWhatsNew(props: {
64
65
  */
65
66
  emptyText?: string;
66
67
  onRead?: (through: string) => void;
68
+ linkComponent?: import('react').ElementType;
67
69
  /**
68
70
  * Extra classes on the element.
69
71
  * @default ""
@@ -27,6 +27,9 @@
27
27
  * @param {boolean} [props.compact]
28
28
  * @param {"sm"|"md"|"lg"} [props.size]
29
29
  * @param {string} [props.ariaLabel]
30
+ * @param {string} [props.searchPlaceholder] Default "Search workspaces".
31
+ * @param {string} [props.searchLabel] Default "Search workspaces".
32
+ * @param {string} [props.noMatchText] Default "No workspaces match.".
30
33
  */
31
34
  export default function AppWorkspaceSwitcher(props: {
32
35
  /**
@@ -79,4 +82,19 @@ export default function AppWorkspaceSwitcher(props: {
79
82
  size?: "sm" | "md" | "lg";
80
83
  /** The accessible name of the trigger. Without it the name is Workspace followed by the current workspace's name. */
81
84
  ariaLabel?: string;
85
+ /**
86
+ * Replaces the built-in English text, for other languages.
87
+ * @default "Search workspaces"
88
+ */
89
+ searchPlaceholder?: string;
90
+ /**
91
+ * Replaces the built-in English text, for other languages.
92
+ * @default "Search workspaces"
93
+ */
94
+ searchLabel?: string;
95
+ /**
96
+ * Replaces the built-in English text, for other languages.
97
+ * @default "No workspaces match."
98
+ */
99
+ noMatchText?: string;
82
100
  }): import("react").JSX.Element;
@@ -98,6 +98,7 @@ export declare const GLYPHS: {
98
98
  "folder-plus": string;
99
99
  gauge: string;
100
100
  gift: string;
101
+ github: string;
101
102
  globe: string;
102
103
  globe2: string;
103
104
  google: string;
@@ -99,6 +99,7 @@ export declare const VARIANT_GLYPHS: {
99
99
  "folder-plus": string;
100
100
  gauge: string;
101
101
  gift: string;
102
+ github: string;
102
103
  globe: string;
103
104
  globe2: string;
104
105
  google: string;
@@ -327,6 +328,7 @@ export declare const VARIANT_GLYPHS: {
327
328
  "folder-plus": string;
328
329
  gauge: string;
329
330
  gift: string;
331
+ github: string;
330
332
  globe: string;
331
333
  globe2: string;
332
334
  google: string;
@@ -555,6 +557,7 @@ export declare const VARIANT_GLYPHS: {
555
557
  "folder-plus": string;
556
558
  gauge: string;
557
559
  gift: string;
560
+ github: string;
558
561
  globe: string;
559
562
  globe2: string;
560
563
  google: string;
@@ -783,6 +786,7 @@ export declare const VARIANT_GLYPHS: {
783
786
  "folder-plus": string;
784
787
  gauge: string;
785
788
  gift: string;
789
+ github: string;
786
790
  globe: string;
787
791
  globe2: string;
788
792
  google: string;
@@ -1011,6 +1015,7 @@ export declare const VARIANT_GLYPHS: {
1011
1015
  "folder-plus": string;
1012
1016
  gauge: string;
1013
1017
  gift: string;
1018
+ github: string;
1014
1019
  globe: string;
1015
1020
  globe2: string;
1016
1021
  google: string;
@@ -20,6 +20,7 @@
20
20
  * @param {object} opts
21
21
  * @param {import('react').Ref<HTMLElement>} [opts.ref] Forwarded ref from `forwardRef`.
22
22
  * @param {unknown} [opts.value] Controlled value; when defined, written to `el.value`.
23
+ * @param {unknown} [opts.defaultValue] Starting value of an uncontrolled field, written to each element the hook wires (a recreated element starts from it again).
23
24
  * @param {(value: unknown) => void} [opts.onChange] Called with the control value only
24
25
  * (one argument — matches every existing App* wrapper and its unit tests).
25
26
  * @param {(el: HTMLElement) => unknown} [opts.readValue] How to read the element on change
@@ -37,9 +38,10 @@
37
38
  * be fresh closures).
38
39
  * @returns {{ setRef: (el: HTMLElement | null) => void, innerRef: import('react').MutableRefObject<HTMLElement | null> }}
39
40
  */
40
- export default function useWuiControl({ ref, value, onChange, readValue, writeValue, events, on }?: {
41
+ export default function useWuiControl({ ref, value, defaultValue, onChange, readValue, writeValue, events, on }?: {
41
42
  ref?: import('react').Ref<HTMLElement>;
42
43
  value?: unknown;
44
+ defaultValue?: unknown;
43
45
  onChange?: (value: unknown) => void;
44
46
  readValue?: (el: HTMLElement) => unknown;
45
47
  writeValue?: (el: HTMLElement, value: unknown) => void;
@@ -2,9 +2,11 @@ export { mentionedIds, parseMentionValue } from "@webority/ui-elements/elements/
2
2
  export { createLocalSeenStore } from "@webority/ui-elements/elements/tour";
3
3
  export { postedMasked, themeBootScript } from "@webority/ui-elements/helpers";
4
4
  export { default as AppAccordion } from "./components/AppAccordion.jsx";
5
+ export { default as AppAccountSwitcher } from "./components/AppAccountSwitcher.jsx";
5
6
  export { default as AppActionIcon } from "./components/AppActionIcon.jsx";
6
7
  export { default as AppAlert } from "./components/AppAlert.jsx";
7
8
  export { default as AppAsyncBlock } from "./components/AppAsyncBlock.jsx";
9
+ export { default as AppAuthLayout } from "./components/AppAuthLayout.jsx";
8
10
  export { default as AppAutocomplete } from "./components/AppAutocomplete.jsx";
9
11
  export { default as AppAvatar } from "./components/AppAvatar.jsx";
10
12
  export { default as AppAvatarGroup } from "./components/AppAvatarGroup.jsx";
@@ -16,6 +18,7 @@ export { default as AppButtonGroup } from "./components/AppButtonGroup.jsx";
16
18
  export { default as AppCalendar } from "./components/AppCalendar.jsx";
17
19
  export { default as AppCard } from "./components/AppCard.jsx";
18
20
  export { default as AppCarousel } from "./components/AppCarousel.jsx";
21
+ export { default as AppCell } from "./components/AppCell.jsx";
19
22
  export { default as AppChart } from "./components/AppChart.jsx";
20
23
  export { default as AppChartCard } from "./components/AppChartCard.jsx";
21
24
  export { default as AppCheckbox } from "./components/AppCheckbox.jsx";
@@ -48,12 +51,14 @@ export { default as AppDropdown } from "./components/AppDropdown.jsx";
48
51
  export { default as AppDropZone } from "./components/AppDropZone.jsx";
49
52
  export { default as AppDueDate } from "./components/AppDueDate.jsx";
50
53
  export { default as AppEmptyState } from "./components/AppEmptyState.jsx";
54
+ export { default as AppErrorBoundary } from "./components/AppErrorBoundary.jsx";
51
55
  export { default as AppErrorSummary } from "./components/AppErrorSummary.jsx";
52
56
  export { default as AppFileAttachment } from "./components/AppFileAttachment.jsx";
53
57
  export { default as AppFilePicker } from "./components/AppFilePicker.jsx";
54
58
  export { default as AppFileTiles } from "./components/AppFileTiles.jsx";
55
59
  export { default as AppFileViewer } from "./components/AppFileViewer.jsx";
56
60
  export { default as AppFilterBar } from "./components/AppFilterBar.jsx";
61
+ export { default as AppFloatingButton } from "./components/AppFloatingButton.jsx";
57
62
  export { default as AppFloatingDock } from "./components/AppFloatingDock.jsx";
58
63
  export { default as AppFormActions } from "./components/AppFormActions.jsx";
59
64
  export { default as AppFormRow } from "./components/AppFormRow.jsx";
@@ -68,6 +73,7 @@ export { default as AppInputGroup } from "./components/AppInputGroup.jsx";
68
73
  export { default as AppKanban } from "./components/AppKanban.jsx";
69
74
  export { default as AppKbd } from "./components/AppKbd.jsx";
70
75
  export { default as AppKpiTile } from "./components/AppKpiTile.jsx";
76
+ export { default as AppLeadPopup } from "./components/AppLeadPopup.jsx";
71
77
  export { default as AppLightbox } from "./components/AppLightbox.jsx";
72
78
  export { default as AppLink } from "./components/AppLink.jsx";
73
79
  export { default as AppMarkdown } from "./components/AppMarkdown.jsx";