@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
@@ -0,0 +1,36 @@
1
+ /**
2
+ * A table cell with a primary line over a quieter secondary line. A link `href` makes the primary an anchor;
3
+ * `mono` sets the primary in monospace; `numeric` right-aligns both lines with tabular digits. An empty primary
4
+ * reads "-", and a blank secondary draws no second line. The Razor `<app-cell>` renders the same markup and classes.
5
+ *
6
+ * @param {object} props
7
+ * @param {string|number|React.ReactNode} [props.primary] The main value. Empty draws the placeholder "-"; 0 draws "0".
8
+ * @param {string|React.ReactNode} [props.secondary] The quieter detail line under the primary. Omitted when empty.
9
+ * @param {string} [props.href] Makes the primary a link to this address.
10
+ * @param {boolean} [props.mono] Sets the primary line in monospace.
11
+ * @param {boolean} [props.numeric] Right-aligns both lines with tabular digits.
12
+ * @param {string} [props.className] Extra class on the cell root.
13
+ */
14
+ export default function AppCell(props: {
15
+ /** The main value on the first line. Empty draws the placeholder -; 0 draws 0. */
16
+ primary?: string | number | React.ReactNode;
17
+ /** The quieter detail line under the primary. Omitted when empty. */
18
+ secondary?: string | React.ReactNode;
19
+ /** Makes the primary a link to this address. */
20
+ href?: string;
21
+ /**
22
+ * Sets the primary line in monospace.
23
+ * @default false
24
+ */
25
+ mono?: boolean;
26
+ /**
27
+ * Right-aligns both lines with tabular digits.
28
+ * @default false
29
+ */
30
+ numeric?: boolean;
31
+ /**
32
+ * Extra class on the cell root.
33
+ * @default ""
34
+ */
35
+ className?: string;
36
+ }): import("react").JSX.Element;
@@ -78,11 +78,18 @@ declare const AppChart: import("react").ForwardRefExoticComponent<{
78
78
  emptyText?: string;
79
79
  /** Replaces the default error message. Say what the person can do. */
80
80
  errorText?: string;
81
+ /**
82
+ * Replaces the default loading message, the text read aloud while the chart loads.
83
+ * @default "Loading chart"
84
+ */
85
+ loadingText?: string;
81
86
  /**
82
87
  * `auto` draws SVG, and canvas above 5,000 points.
83
88
  * @default "auto"
84
89
  */
85
90
  renderer?: 'auto' | 'svg' | 'canvas';
91
+ /** IANA time zone dates are read and shown in, for example America/New_York. Unset, it is India Standard Time (Asia/Kolkata). */
92
+ timeZone?: string;
86
93
  /**
87
94
  * `table` shows the data table in the chart's place.
88
95
  * @default "chart"
@@ -27,6 +27,16 @@
27
27
  * @param {import('react').ReactNode} [props.footer]
28
28
  * @param {import('react').ReactNode} props.children The chart.
29
29
  * @param {string} [props.className]
30
+ * @param {string} [props.legendLabel] Default "Show legend".
31
+ * @param {string} [props.legendTitle] Default "Show or hide the legend".
32
+ * @param {string} [props.viewLabel] Default "View".
33
+ * @param {string} [props.chartViewLabel] Default "Chart".
34
+ * @param {string} [props.tableViewLabel] Default "Table".
35
+ * @param {string} [props.moreActionsLabel] Default "More actions".
36
+ * @param {string} [props.moreActionsForLabel] Default "More actions for {title}".
37
+ * @param {string} [props.downloadPngLabel] Default "Download PNG".
38
+ * @param {string} [props.downloadCsvLabel] Default "Download CSV".
39
+ * @param {string} [props.retryLabel] Default "Try again".
30
40
  */
31
41
  export default function AppChartCard(props: {
32
42
  /** The card's heading. Also names the menu button for assistive tech. */
@@ -47,4 +57,54 @@ export default function AppChartCard(props: {
47
57
  * @default ""
48
58
  */
49
59
  className?: string;
60
+ /**
61
+ * Replaces the built-in English text, for other languages.
62
+ * @default "Show legend"
63
+ */
64
+ legendLabel?: string;
65
+ /**
66
+ * Replaces the built-in English text, for other languages.
67
+ * @default "Show or hide the legend"
68
+ */
69
+ legendTitle?: string;
70
+ /**
71
+ * Replaces the built-in English text, for other languages.
72
+ * @default "View"
73
+ */
74
+ viewLabel?: string;
75
+ /**
76
+ * Replaces the built-in English text, for other languages.
77
+ * @default "Chart"
78
+ */
79
+ chartViewLabel?: string;
80
+ /**
81
+ * Replaces the built-in English text, for other languages.
82
+ * @default "Table"
83
+ */
84
+ tableViewLabel?: string;
85
+ /**
86
+ * Replaces the built-in English text, for other languages.
87
+ * @default "More actions"
88
+ */
89
+ moreActionsLabel?: string;
90
+ /**
91
+ * Replaces the built-in English text, for other languages. The token {title} is filled with the card's title.
92
+ * @default "More actions for {title}"
93
+ */
94
+ moreActionsForLabel?: string;
95
+ /**
96
+ * Replaces the built-in English text, for other languages.
97
+ * @default "Download PNG"
98
+ */
99
+ downloadPngLabel?: string;
100
+ /**
101
+ * Replaces the built-in English text, for other languages.
102
+ * @default "Download CSV"
103
+ */
104
+ downloadCsvLabel?: string;
105
+ /**
106
+ * Replaces the built-in English text, for other languages.
107
+ * @default "Try again"
108
+ */
109
+ retryLabel?: string;
50
110
  }): import("react").JSX.Element;
@@ -11,11 +11,33 @@ declare const AppCheckbox: import("react").ForwardRefExoticComponent<{
11
11
  defaultChecked?: boolean;
12
12
  /** Locks the checkbox and dims it. */
13
13
  disabled?: boolean;
14
+ /**
15
+ * Shows the value but blocks editing. The value still posts.
16
+ * @default false
17
+ */
18
+ readOnly?: boolean;
19
+ /**
20
+ * Shows a busy state and blocks input while data loads.
21
+ * @default false
22
+ */
23
+ loading?: boolean;
24
+ /**
25
+ * The control size: sm, md or lg.
26
+ * @default "md"
27
+ */
28
+ size?: "sm" | "md" | "lg";
14
29
  onChange?: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
15
30
  /** Error message, rendered below the control. Replaces the hint. */
16
31
  error?: string;
17
32
  /** Helper text below the control. Hidden while an error is shown. */
18
33
  hint?: string;
34
+ /** Content for the info-tip after the label. Shown only when a label is set. */
35
+ help?: import('react').ReactNode;
36
+ /**
37
+ * aria-label for the info-tip button.
38
+ * @default "More information"
39
+ */
40
+ helpLabel?: string;
19
41
  /** circle draws a round box with the tick inside, for a task that is completed. Omit it for the square box. */
20
42
  shape?: 'circle';
21
43
  /**
@@ -15,10 +15,14 @@
15
15
  * @param {import('react').ReactNode} [props.children] Custom body, overriding title/description.
16
16
  * @param {import('react').ReactNode} props.title
17
17
  * @param {import('react').ReactNode} [props.description]
18
+ * @param {import('react').ReactNode} [props.help] Content for the info-tip drawn after the card text.
19
+ * @param {string} [props.helpLabel] aria-label of the info-tip button. Default "More information".
18
20
  * @param {string} [props.checkIcon]
19
21
  * @param {number} [props.checkSize]
20
22
  * @param {boolean} [props.hideCheck]
21
23
  * @param {boolean} [props.disabled]
24
+ * @param {boolean} [props.readOnly] Shows the value but blocks editing. The value still posts.
25
+ * @param {boolean} [props.loading] Shows a busy state and blocks input while data loads.
22
26
  * @param {'sm'|'md'|'lg'} [props.size]
23
27
  * @param {'inline'|'stacked'} [props.layout]
24
28
  * @param {'filled'} [props.selectedStyle] `filled` fills the checked card's icon disc with primary.
@@ -55,6 +59,13 @@ export default function AppChoiceCard(props: {
55
59
  title: import('react').ReactNode;
56
60
  /** Secondary text under the title. */
57
61
  description?: import('react').ReactNode;
62
+ /** Content for an info-tip drawn after the card text. */
63
+ help?: import('react').ReactNode;
64
+ /**
65
+ * aria-label for the info-tip button.
66
+ * @default "More information"
67
+ */
68
+ helpLabel?: string;
58
69
  /**
59
70
  * Icon name for the selected tick.
60
71
  * @default "check"
@@ -75,6 +86,16 @@ export default function AppChoiceCard(props: {
75
86
  * @default false
76
87
  */
77
88
  disabled?: boolean;
89
+ /**
90
+ * Shows the value but blocks editing. The value still posts.
91
+ * @default false
92
+ */
93
+ readOnly?: boolean;
94
+ /**
95
+ * Shows a busy state and blocks input while data loads.
96
+ * @default false
97
+ */
98
+ loading?: boolean;
78
99
  /**
79
100
  * Card size: padding, gap, icon disc, type and the tick offset step together.
80
101
  * @default "md"
@@ -10,9 +10,13 @@
10
10
  * @param {(e: import('react').ChangeEvent<HTMLInputElement>) => void} props.onChange
11
11
  * @param {import('react').ReactNode} props.children
12
12
  * @param {import('react').ReactNode} [props.count]
13
+ * @param {import('react').ReactNode} [props.help] Content for an info-tip drawn beside the chip, as its sibling.
14
+ * @param {string} [props.helpLabel] aria-label of the info-tip button. Default "More information".
13
15
  * @param {'sm'|'md'|'lg'} [props.size]
14
16
  * @param {'soft'|'solid'} [props.variant]
15
17
  * @param {boolean} [props.disabled]
18
+ * @param {boolean} [props.readOnly] Shows the value but blocks editing. The value still posts.
19
+ * @param {boolean} [props.loading] Shows a busy state and blocks input while data loads.
16
20
  * @param {string} [props.className]
17
21
  */
18
22
  export default function AppChoiceChip(props: {
@@ -33,6 +37,13 @@ export default function AppChoiceChip(props: {
33
37
  children: import('react').ReactNode;
34
38
  /** A matching-row count, such as Active 12. Shown as a small badge that inverts when the chip is selected. */
35
39
  count?: import('react').ReactNode;
40
+ /** Content for an info-tip drawn beside the chip, as its sibling. */
41
+ help?: import('react').ReactNode;
42
+ /**
43
+ * aria-label for the info-tip button.
44
+ * @default "More information"
45
+ */
46
+ helpLabel?: string;
36
47
  /**
37
48
  * Pill size: padding, gap and font step together.
38
49
  * @default "md"
@@ -48,6 +59,16 @@ export default function AppChoiceChip(props: {
48
59
  * @default false
49
60
  */
50
61
  disabled?: boolean;
62
+ /**
63
+ * Shows the value but blocks editing. The value still posts.
64
+ * @default false
65
+ */
66
+ readOnly?: boolean;
67
+ /**
68
+ * Shows a busy state and blocks input while data loads.
69
+ * @default false
70
+ */
71
+ loading?: boolean;
51
72
  /**
52
73
  * Extra class names added to the chip.
53
74
  * @default ""
@@ -11,25 +11,32 @@
11
11
  *
12
12
  * @param {object} props
13
13
  * @param {string} [props.value]
14
+ * @param {string} [props.defaultValue] The starting value of an uncontrolled field.
14
15
  * @param {(hex: string) => void} props.onChange
15
16
  * @param {import('react').ReactNode} [props.label]
16
17
  * @param {boolean} [props.required]
17
18
  * @param {boolean} [props.optional] Ends the label with "(optional)". Required wins when both are set.
18
19
  * @param {string} [props.error]
19
20
  * @param {string} [props.hint]
21
+ * @param {import('react').ReactNode} [props.help]
22
+ * @param {string} [props.helpLabel]
23
+ * @param {string} [props.colourLabel] Default "Colour".
24
+ * @param {string} [props.colourPickerLabel] Default "{label}, colour picker". The {label} token is the field label.
25
+ * @param {string} [props.optionalLabel] Default "(optional)".
20
26
  * @param {string} [props.name]
21
27
  * @param {string} [props.id]
22
28
  * @param {boolean} [props.disabled]
29
+ * @param {boolean} [props.readOnly] Shows the value but blocks editing. The value still posts.
30
+ * @param {boolean} [props.loading] Shows a busy state and blocks input while data loads.
23
31
  * @param {"sm"|"md"|"lg"} [props.size]
24
32
  * @param {string} [props.className]
25
33
  * @param {string} [props.fieldClassName]
26
34
  */
27
35
  export default function AppColorField(props: {
28
- /**
29
- * Hex colour, for example #4F46E5.
30
- * @default "#000000"
31
- */
36
+ /** Hex colour, for example #4F46E5. */
32
37
  value?: string;
38
+ /** The starting value of an uncontrolled field. */
39
+ defaultValue?: string;
33
40
  onChange: (hex: string) => void;
34
41
  /** The field label. */
35
42
  label?: import('react').ReactNode;
@@ -47,6 +54,28 @@ export default function AppColorField(props: {
47
54
  error?: string;
48
55
  /** Helper text shown under the field. */
49
56
  hint?: string;
57
+ /** The content of the info-tip beside the label, opened by a button. */
58
+ help?: import('react').ReactNode;
59
+ /**
60
+ * The accessible name of the info-tip button.
61
+ * @default "More information"
62
+ */
63
+ helpLabel?: string;
64
+ /**
65
+ * Replaces the built-in English text, for other languages.
66
+ * @default "Colour"
67
+ */
68
+ colourLabel?: string;
69
+ /**
70
+ * Replaces the built-in English text, for other languages. {label} is the field label.
71
+ * @default "{label}, colour picker"
72
+ */
73
+ colourPickerLabel?: string;
74
+ /**
75
+ * Replaces the built-in English text, for other languages.
76
+ * @default "(optional)"
77
+ */
78
+ optionalLabel?: string;
50
79
  /** Form field name on the text box, the control that posts. */
51
80
  name?: string;
52
81
  /** Element id of the hex text box. Defaults to a generated id, not name. */
@@ -56,6 +85,16 @@ export default function AppColorField(props: {
56
85
  * @default false
57
86
  */
58
87
  disabled?: boolean;
88
+ /**
89
+ * Shows the value but blocks editing. The value still posts.
90
+ * @default false
91
+ */
92
+ readOnly?: boolean;
93
+ /**
94
+ * Shows a busy state and blocks input while data loads.
95
+ * @default false
96
+ */
97
+ loading?: boolean;
59
98
  /**
60
99
  * Control size. sm and lg resize the swatch and the hex box together.
61
100
  * @default "md"
@@ -45,6 +45,7 @@ import "@webority/ui-elements/elements/command-palette";
45
45
  * @param {import('react').ReactNode} [props.emptyText]
46
46
  * @param {import('react').ReactNode} [props.footer]
47
47
  * @param {string} [props.ariaLabel]
48
+ * @param {string} [props.resultsLabel] Default "Results".
48
49
  * @param {boolean} [props.highlight]
49
50
  * @param {string} [props.id]
50
51
  * @param {string} [props.className]
@@ -138,6 +139,11 @@ export default function AppCommandPalette(props: {
138
139
  * @default "Search"
139
140
  */
140
141
  ariaLabel?: string;
142
+ /**
143
+ * Replaces the built-in English text, for other languages.
144
+ * @default "Results"
145
+ */
146
+ resultsLabel?: string;
141
147
  /**
142
148
  * Bold the query inside each string label, case-insensitively. A label given as a node renders as it is.
143
149
  * @default true
@@ -31,11 +31,12 @@ export type CommentThreadItem = {
31
31
  */
32
32
  internal?: boolean;
33
33
  /**
34
- * Files shown under the body.
34
+ * Files shown under the body. `to` is an in-app route (a viewer page) routed through `linkComponent`; `href` stays a download link.
35
35
  */
36
36
  attachments?: {
37
37
  name: string;
38
- href: string;
38
+ href?: string;
39
+ to?: string;
39
40
  sizeBytes?: number;
40
41
  }[];
41
42
  /**
@@ -82,7 +83,7 @@ export type CommentThreadItem = {
82
83
  * @property {boolean} [edited] Shows "Edited" beside the time.
83
84
  * @property {boolean} [mine] The viewer's own comment.
84
85
  * @property {boolean} [internal] An internal note, marked with a badge.
85
- * @property {{ name: string, href: string, sizeBytes?: number }[]} [attachments] Files shown under the body.
86
+ * @property {{ name: string, href?: string, to?: string, sizeBytes?: number }[]} [attachments] Files shown under the body. `to` is an in-app route (a viewer page) routed through `linkComponent`; `href` stays a download link.
86
87
  * @property {boolean} [deleted] Shows "This comment was deleted." in place of the body; replies stay.
87
88
  * @property {boolean} [canEdit] This person may edit it.
88
89
  * @property {boolean} [canDelete] This person may delete it.
@@ -110,7 +111,24 @@ export type CommentThreadItem = {
110
111
  * @param {string} [props.postLabel] The post button's text; without it "Comment".
111
112
  * @param {number} [props.composerRows] The composer box's rows; without it 3 stacked and 1 inline.
112
113
  * @param {boolean} [props.readOnly]
114
+ * @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.
113
115
  * @param {string} [props.label]
116
+ * @param {string} [props.internalLabel] Default "Internal note".
117
+ * @param {string} [props.attachmentsLabel] Default "Attachments".
118
+ * @param {string} [props.composerLabel] Name of the new-comment box. Default "Add a comment".
119
+ * @param {string} [props.noCommentsText] Shown when there are no comments. Default "No comments yet."
120
+ * @param {string} [props.reactionsLabel] Name of a comment's reaction group. Default "Reactions".
121
+ * @param {string} [props.repliesToLabel] Name of a reply list; `{name}` is the author. Default "Replies to {name}".
122
+ * @param {string} [props.editedLabel] Marks an edited comment. Default "Edited".
123
+ * @param {string} [props.deletedText] Shown in place of a deleted comment. Default "This comment was deleted."
124
+ * @param {string} [props.replyLabel] The Reply action. Default "Reply".
125
+ * @param {string} [props.editLabel] The Edit action. Default "Edit".
126
+ * @param {string} [props.deleteLabel] The Delete action and its confirm button. Default "Delete".
127
+ * @param {string} [props.deleteConfirmText] The question before a delete. Default "Delete this comment?"
128
+ * @param {string} [props.cancelLabel] Cancels a delete. Default "Cancel".
129
+ * @param {string} [props.addReactionLabel] Name of the add-reaction button. Default "Add a reaction".
130
+ * @param {string} [props.chooseReactionLabel] Name of the reaction panel. Default "Choose a reaction".
131
+ * @param {string} [props.peopleLabel] Name of the mention menu in the composer. Default "People".
114
132
  * @param {string} [props.id]
115
133
  * @param {string} [props.className]
116
134
  */
@@ -176,11 +194,92 @@ export default function AppCommentThread(props: {
176
194
  * @default false
177
195
  */
178
196
  readOnly?: boolean;
197
+ linkComponent?: import('react').ElementType;
179
198
  /**
180
199
  * The list's accessible name.
181
200
  * @default "Comments"
182
201
  */
183
202
  label?: string;
203
+ /**
204
+ * Replaces the built-in English text, for other languages.
205
+ * @default "Internal note"
206
+ */
207
+ internalLabel?: string;
208
+ /**
209
+ * Replaces the built-in English text, for other languages.
210
+ * @default "Attachments"
211
+ */
212
+ attachmentsLabel?: string;
213
+ /**
214
+ * Name of the new-comment box. Replaces the built-in English text, for other languages.
215
+ * @default "Add a comment"
216
+ */
217
+ composerLabel?: string;
218
+ /**
219
+ * Shown when there are no comments. Replaces the built-in English text, for other languages.
220
+ * @default "No comments yet."
221
+ */
222
+ noCommentsText?: string;
223
+ /**
224
+ * Name of a comment's reaction group. Replaces the built-in English text, for other languages.
225
+ * @default "Reactions"
226
+ */
227
+ reactionsLabel?: string;
228
+ /**
229
+ * Name of a reply list; {name} is the author. Replaces the built-in English text, for other languages.
230
+ * @default "Replies to {name}"
231
+ */
232
+ repliesToLabel?: string;
233
+ /**
234
+ * Marks an edited comment. Replaces the built-in English text, for other languages.
235
+ * @default "Edited"
236
+ */
237
+ editedLabel?: string;
238
+ /**
239
+ * Shown in place of a deleted comment. Replaces the built-in English text, for other languages.
240
+ * @default "This comment was deleted."
241
+ */
242
+ deletedText?: string;
243
+ /**
244
+ * The Reply action. Replaces the built-in English text, for other languages.
245
+ * @default "Reply"
246
+ */
247
+ replyLabel?: string;
248
+ /**
249
+ * The Edit action. Replaces the built-in English text, for other languages.
250
+ * @default "Edit"
251
+ */
252
+ editLabel?: string;
253
+ /**
254
+ * The Delete action and its confirm button. Replaces the built-in English text, for other languages.
255
+ * @default "Delete"
256
+ */
257
+ deleteLabel?: string;
258
+ /**
259
+ * The question before a delete. Replaces the built-in English text, for other languages.
260
+ * @default "Delete this comment?"
261
+ */
262
+ deleteConfirmText?: string;
263
+ /**
264
+ * Cancels a delete. Replaces the built-in English text, for other languages.
265
+ * @default "Cancel"
266
+ */
267
+ cancelLabel?: string;
268
+ /**
269
+ * Name of the add-reaction button. Replaces the built-in English text, for other languages.
270
+ * @default "Add a reaction"
271
+ */
272
+ addReactionLabel?: string;
273
+ /**
274
+ * Name of the reaction panel. Replaces the built-in English text, for other languages.
275
+ * @default "Choose a reaction"
276
+ */
277
+ chooseReactionLabel?: string;
278
+ /**
279
+ * Name of the mention menu in the composer. Replaces the built-in English text, for other languages.
280
+ * @default "People"
281
+ */
282
+ peopleLabel?: string;
184
283
  /** The root's id. Generated when omitted. */
185
284
  id?: string;
186
285
  /**
@@ -20,6 +20,10 @@
20
20
  * @param {boolean} [props.stickyFirstColumn] With mobile="scroll".
21
21
  * @param {boolean} [props.stickyHeader]
22
22
  * @param {"comfortable"|"relaxed"} [props.density]
23
+ * @param {string} [props.yesLabel] Default "Yes".
24
+ * @param {string} [props.noLabel] Default "No".
25
+ * @param {string} [props.warningLabel] Default "Warning".
26
+ * @param {string} [props.partialLabel] Default "Partial".
23
27
  * @param {string} [props.className]
24
28
  */
25
29
  export default function AppCompareTable(props: {
@@ -64,6 +68,26 @@ export default function AppCompareTable(props: {
64
68
  * @default "comfortable"
65
69
  */
66
70
  density?: "comfortable" | "relaxed";
71
+ /**
72
+ * Replaces the built-in English text, for other languages.
73
+ * @default "Yes"
74
+ */
75
+ yesLabel?: string;
76
+ /**
77
+ * Replaces the built-in English text, for other languages.
78
+ * @default "No"
79
+ */
80
+ noLabel?: string;
81
+ /**
82
+ * Replaces the built-in English text, for other languages.
83
+ * @default "Warning"
84
+ */
85
+ warningLabel?: string;
86
+ /**
87
+ * Replaces the built-in English text, for other languages.
88
+ * @default "Partial"
89
+ */
90
+ partialLabel?: string;
67
91
  /**
68
92
  * Extra classes on the root.
69
93
  * @default ""
@@ -9,6 +9,7 @@
9
9
  * @param {import('react').ReactNode} [props.children] Extra content drawn between the message and the confirm-phrase field, such as a reason select or a note box.
10
10
  * @param {string} [props.confirmLabel]
11
11
  * @param {string} [props.cancelLabel]
12
+ * @param {string} [props.typePhraseLabel] Default "Type {phrase} to confirm". Replaces the built-in English text, for other languages; {phrase} is filled with the confirm phrase.
12
13
  * @param {boolean} [props.danger]
13
14
  * @param {"success"|"error"|"warning"|"info"|"delete"|"primary"} [props.tone]
14
15
  * @param {string} [props.image]
@@ -46,6 +47,11 @@ export default function AppConfirmDialog(props: {
46
47
  * @default "Cancel"
47
48
  */
48
49
  cancelLabel?: string;
50
+ /**
51
+ * Replaces the built-in English text, for other languages. {phrase} is filled with the confirm phrase.
52
+ * @default "Type {phrase} to confirm"
53
+ */
54
+ typePhraseLabel?: string;
49
55
  /**
50
56
  * Styles the confirm button as destructive; with no tone it also picks the delete icon.
51
57
  * @default false
@@ -61,6 +61,11 @@ declare const AppCountrySelect: import("react").ForwardRefExoticComponent<{
61
61
  * @default false
62
62
  */
63
63
  optional?: boolean;
64
+ /**
65
+ * Replaces the built-in English text, for other languages.
66
+ * @default "(optional)"
67
+ */
68
+ optionalLabel?: string;
64
69
  /** Error message shown under the field; marks the control invalid. */
65
70
  error?: string;
66
71
  /** Help text shown under the field when there is no error. */
@@ -18,7 +18,7 @@
18
18
  * @param {number} [props.sourceCount]
19
19
  * @param {(row: object) => import('react').ReactNode} [props.rowActions]
20
20
  * @param {string} [props.rowActionsLabel]
21
- * @param {object} [props.pagination]
21
+ * @param {object} [props.pagination] Add summary: true to draw "Showing x to y of z" at the start of the footer.
22
22
  * @param {string} [props.ariaLabel]
23
23
  * @param {string} [props.className]
24
24
  * @param {string} [props.wrapperClassName]
@@ -15,6 +15,11 @@ declare const AppDatePicker: import("react").ForwardRefExoticComponent<{
15
15
  * @default false
16
16
  */
17
17
  optional?: boolean;
18
+ /**
19
+ * Replaces the built-in English text, for other languages.
20
+ * @default "(optional)"
21
+ */
22
+ optionalLabel?: string;
18
23
  /** Help text shown under the control. */
19
24
  hint?: string;
20
25
  /** An error message shown under the control. */
@@ -32,6 +37,25 @@ declare const AppDatePicker: import("react").ForwardRefExoticComponent<{
32
37
  placeholder?: string;
33
38
  /** Disables the control. */
34
39
  disabled?: boolean;
40
+ /**
41
+ * Shows the value but blocks editing. The value still posts.
42
+ * @default false
43
+ */
44
+ readOnly?: boolean;
45
+ /**
46
+ * Shows a busy state and blocks input while data loads.
47
+ * @default false
48
+ */
49
+ loading?: boolean;
50
+ /** The starting value of an uncontrolled field. */
51
+ defaultValue?: string;
52
+ /** The content of the info-tip beside the label, opened by a button. */
53
+ help?: import('react').ReactNode;
54
+ /**
55
+ * The accessible name of the info-tip button.
56
+ * @default "More information"
57
+ */
58
+ helpLabel?: string;
35
59
  /** Control height tier, matching AppInput. */
36
60
  size?: 'sm' | 'md' | 'lg';
37
61
  /** First weekday of the calendar, 0 Sunday to 6 Saturday. Unset, it follows the theme's --wui-first-day token, which is 1 (Monday) unless the product sets it. */