@webority/ui-react 0.88.1 → 0.90.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 (190) hide show
  1. package/dist/canvas-kit/kit.css +0 -0
  2. package/dist/canvas-kit/kit.js +155261 -0
  3. package/dist/canvas-kit/manifest.json +26177 -0
  4. package/dist/canvas-kit/release.json +25 -0
  5. package/dist/components/AppAutocomplete.js +1 -1
  6. package/dist/components/AppAvatarPicker.js +1 -1
  7. package/dist/components/AppChipGroup.js +1 -1
  8. package/dist/components/AppColorField.js +1 -1
  9. package/dist/components/AppCommandPalette.js +1 -1
  10. package/dist/components/AppCountrySelect.js +1 -1
  11. package/dist/components/AppDatePicker.js +1 -1
  12. package/dist/components/AppDateRangePicker.js +1 -1
  13. package/dist/components/AppDropZone.js +1 -1
  14. package/dist/components/AppFileAttachment.js +1 -1
  15. package/dist/components/AppFilePicker.js +1 -1
  16. package/dist/components/AppIcon.js +1 -1
  17. package/dist/components/AppInput.js +1 -1
  18. package/dist/components/AppLogoPicker.js +1 -1
  19. package/dist/components/AppMentionInput.js +1 -1
  20. package/dist/components/AppMeter.js +1 -1
  21. package/dist/components/AppModal.js +1 -1
  22. package/dist/components/AppMultiSelect.js +1 -1
  23. package/dist/components/AppNumberInput.js +1 -1
  24. package/dist/components/AppOtpInput.js +1 -1
  25. package/dist/components/AppPhoneNumberInput.js +1 -1
  26. package/dist/components/AppProgress.js +1 -1
  27. package/dist/components/AppRadioGroup.js +1 -1
  28. package/dist/components/AppRating.js +1 -1
  29. package/dist/components/AppRichText.js +1 -1
  30. package/dist/components/AppSearch.js +1 -1
  31. package/dist/components/AppSegmented.js +1 -1
  32. package/dist/components/AppSelect.js +1 -1
  33. package/dist/components/AppSidebarMenu.js +1 -1
  34. package/dist/components/AppSlider.js +1 -1
  35. package/dist/components/AppSplitView.js +1 -1
  36. package/dist/components/AppTabs.js +1 -1
  37. package/dist/components/AppTagInput.js +1 -1
  38. package/dist/components/AppTextarea.js +1 -1
  39. package/dist/components/AppTimePicker.js +1 -1
  40. package/dist/guidance.json +9623 -0
  41. package/dist/lib/wuiMarker.js +1 -1
  42. package/dist/types/components/AppAccordion.d.ts +14 -4
  43. package/dist/types/components/AppActionIcon.d.ts +40 -15
  44. package/dist/types/components/AppAlert.d.ts +50 -17
  45. package/dist/types/components/AppAsyncBlock.d.ts +19 -9
  46. package/dist/types/components/AppAutocomplete.d.ts +36 -0
  47. package/dist/types/components/AppAvatar.d.ts +48 -12
  48. package/dist/types/components/AppAvatarGroup.d.ts +14 -4
  49. package/dist/types/components/AppAvatarPicker.d.ts +50 -19
  50. package/dist/types/components/AppBadge.d.ts +14 -3
  51. package/dist/types/components/AppBanner.d.ts +13 -3
  52. package/dist/types/components/AppBreadcrumbs.d.ts +3 -3
  53. package/dist/types/components/AppButton.d.ts +72 -20
  54. package/dist/types/components/AppButtonGroup.d.ts +18 -4
  55. package/dist/types/components/AppCalendar.d.ts +13 -0
  56. package/dist/types/components/AppCard.d.ts +60 -21
  57. package/dist/types/components/AppCarousel.d.ts +56 -14
  58. package/dist/types/components/AppChart.d.ts +38 -0
  59. package/dist/types/components/AppChartCard.d.ts +13 -5
  60. package/dist/types/components/AppCheckbox.d.ts +9 -0
  61. package/dist/types/components/AppChip.d.ts +29 -10
  62. package/dist/types/components/AppChipGroup.d.ts +16 -3
  63. package/dist/types/components/AppChoiceCard.d.ts +55 -14
  64. package/dist/types/components/AppChoiceChip.d.ts +26 -6
  65. package/dist/types/components/AppCodeBlock.d.ts +27 -7
  66. package/dist/types/components/AppColorField.d.ts +36 -8
  67. package/dist/types/components/AppColumnMenu.d.ts +17 -4
  68. package/dist/types/components/AppCommandPalette.d.ts +72 -29
  69. package/dist/types/components/AppCommentThread.d.ts +25 -7
  70. package/dist/types/components/AppCompareTable.d.ts +9 -4
  71. package/dist/types/components/AppConfirmDialog.d.ts +54 -15
  72. package/dist/types/components/AppConsentBanner.d.ts +45 -12
  73. package/dist/types/components/AppContextMenu.d.ts +23 -10
  74. package/dist/types/components/AppCopyButton.d.ts +39 -9
  75. package/dist/types/components/AppCountrySelect.d.ts +50 -1
  76. package/dist/types/components/AppDashboardCell.d.ts +10 -2
  77. package/dist/types/components/AppDashboardGrid.d.ts +5 -1
  78. package/dist/types/components/AppDataTable.d.ts +103 -50
  79. package/dist/types/components/AppDatePicker.d.ts +32 -0
  80. package/dist/types/components/AppDateRangePicker.d.ts +31 -0
  81. package/dist/types/components/AppDescriptions.d.ts +28 -8
  82. package/dist/types/components/AppDrawer.d.ts +54 -13
  83. package/dist/types/components/AppDropZone.d.ts +34 -11
  84. package/dist/types/components/AppDropdown.d.ts +27 -20
  85. package/dist/types/components/AppDueDate.d.ts +16 -5
  86. package/dist/types/components/AppEmptyState.d.ts +22 -6
  87. package/dist/types/components/AppErrorSummary.d.ts +17 -4
  88. package/dist/types/components/AppFileAttachment.d.ts +30 -14
  89. package/dist/types/components/AppFilePicker.d.ts +39 -13
  90. package/dist/types/components/AppFileViewer.d.ts +21 -0
  91. package/dist/types/components/AppFilterBar.d.ts +23 -8
  92. package/dist/types/components/AppFloatingDock.d.ts +20 -6
  93. package/dist/types/components/AppFormActions.d.ts +11 -2
  94. package/dist/types/components/AppFormRow.d.ts +11 -2
  95. package/dist/types/components/AppFormSection.d.ts +25 -9
  96. package/dist/types/components/AppHoverCard.d.ts +25 -8
  97. package/dist/types/components/AppIcon.d.ts +18 -8
  98. package/dist/types/components/AppInfoList.d.ts +2 -0
  99. package/dist/types/components/AppInfoTip.d.ts +17 -4
  100. package/dist/types/components/AppInlineEdit.d.ts +22 -11
  101. package/dist/types/components/AppInput.d.ts +81 -2
  102. package/dist/types/components/AppInputGroup.d.ts +19 -6
  103. package/dist/types/components/AppKanban.d.ts +51 -23
  104. package/dist/types/components/AppKbd.d.ts +1 -0
  105. package/dist/types/components/AppKpiTile.d.ts +61 -31
  106. package/dist/types/components/AppLightbox.d.ts +12 -6
  107. package/dist/types/components/AppLink.d.ts +38 -17
  108. package/dist/types/components/AppLogoPicker.d.ts +88 -23
  109. package/dist/types/components/AppMarkdown.d.ts +3 -1
  110. package/dist/types/components/AppMentionInput.d.ts +35 -0
  111. package/dist/types/components/AppMenubar.d.ts +9 -7
  112. package/dist/types/components/AppMeter.d.ts +39 -10
  113. package/dist/types/components/AppMetricStrip.d.ts +11 -2
  114. package/dist/types/components/AppModal.d.ts +48 -19
  115. package/dist/types/components/AppMultiSelect.d.ts +44 -0
  116. package/dist/types/components/AppNavigationMenu.d.ts +6 -3
  117. package/dist/types/components/AppNotificationCenter.d.ts +23 -8
  118. package/dist/types/components/AppNumberInput.d.ts +38 -1
  119. package/dist/types/components/AppOnboardingChecklist.d.ts +27 -8
  120. package/dist/types/components/AppOtpInput.d.ts +24 -0
  121. package/dist/types/components/AppPageHeader.d.ts +60 -19
  122. package/dist/types/components/AppPagination.d.ts +21 -7
  123. package/dist/types/components/AppPhoneNumberInput.d.ts +37 -0
  124. package/dist/types/components/AppPopover.d.ts +23 -16
  125. package/dist/types/components/AppPricingCard.d.ts +27 -8
  126. package/dist/types/components/AppProgress.d.ts +44 -10
  127. package/dist/types/components/AppQrCode.d.ts +13 -5
  128. package/dist/types/components/AppRadio.d.ts +10 -0
  129. package/dist/types/components/AppRadioGroup.d.ts +47 -17
  130. package/dist/types/components/AppRating.d.ts +52 -15
  131. package/dist/types/components/AppRecordPager.d.ts +24 -8
  132. package/dist/types/components/AppRelativeTime.d.ts +9 -5
  133. package/dist/types/components/AppRepeater.d.ts +34 -8
  134. package/dist/types/components/AppResizable.d.ts +11 -3
  135. package/dist/types/components/AppResizableHandle.d.ts +9 -1
  136. package/dist/types/components/AppResizablePanel.d.ts +10 -3
  137. package/dist/types/components/AppResourceCard.d.ts +14 -2
  138. package/dist/types/components/AppResult.d.ts +23 -7
  139. package/dist/types/components/AppRichText.d.ts +34 -0
  140. package/dist/types/components/AppRollingNumber.d.ts +17 -7
  141. package/dist/types/components/AppRouteError.d.ts +22 -5
  142. package/dist/types/components/AppScoreScale.d.ts +40 -12
  143. package/dist/types/components/AppScrollbar.d.ts +7 -3
  144. package/dist/types/components/AppSearch.d.ts +32 -7
  145. package/dist/types/components/AppSectionCallToAction.d.ts +27 -7
  146. package/dist/types/components/AppSectionFaq.d.ts +27 -7
  147. package/dist/types/components/AppSectionFeatures.d.ts +34 -8
  148. package/dist/types/components/AppSectionHero.d.ts +29 -8
  149. package/dist/types/components/AppSectionLogos.d.ts +29 -7
  150. package/dist/types/components/AppSectionPricing.d.ts +25 -6
  151. package/dist/types/components/AppSectionTestimonials.d.ts +29 -7
  152. package/dist/types/components/AppSegmented.d.ts +41 -13
  153. package/dist/types/components/AppSelect.d.ts +53 -1
  154. package/dist/types/components/AppSelectMini.d.ts +28 -11
  155. package/dist/types/components/AppShell.d.ts +81 -35
  156. package/dist/types/components/AppShortcutLegend.d.ts +12 -4
  157. package/dist/types/components/AppShowMore.d.ts +26 -5
  158. package/dist/types/components/AppSidebarMenu.d.ts +59 -18
  159. package/dist/types/components/AppSkeleton.d.ts +33 -4
  160. package/dist/types/components/AppSlider.d.ts +43 -0
  161. package/dist/types/components/AppSortableList.d.ts +20 -0
  162. package/dist/types/components/AppSparkline.d.ts +19 -5
  163. package/dist/types/components/AppSpinner.d.ts +14 -3
  164. package/dist/types/components/AppSplash.d.ts +24 -7
  165. package/dist/types/components/AppSplitButton.d.ts +47 -14
  166. package/dist/types/components/AppSplitView.d.ts +53 -27
  167. package/dist/types/components/AppStatusBadge.d.ts +11 -3
  168. package/dist/types/components/AppStepper.d.ts +36 -11
  169. package/dist/types/components/AppSwitch.d.ts +16 -0
  170. package/dist/types/components/AppTableEmptyState.d.ts +7 -3
  171. package/dist/types/components/AppTablePagination.d.ts +23 -9
  172. package/dist/types/components/AppTableToolbar.d.ts +24 -10
  173. package/dist/types/components/AppTabs.d.ts +47 -18
  174. package/dist/types/components/AppTagInput.d.ts +38 -0
  175. package/dist/types/components/AppTextarea.d.ts +46 -0
  176. package/dist/types/components/AppThemeToggle.d.ts +58 -12
  177. package/dist/types/components/AppTimePicker.d.ts +38 -1
  178. package/dist/types/components/AppTimeline.d.ts +22 -20
  179. package/dist/types/components/AppToast.d.ts +30 -12
  180. package/dist/types/components/AppToolbar.d.ts +24 -9
  181. package/dist/types/components/AppTooltip.d.ts +24 -14
  182. package/dist/types/components/AppTour.d.ts +10 -0
  183. package/dist/types/components/AppTreeView.d.ts +23 -0
  184. package/dist/types/components/AppTruncate.d.ts +11 -2
  185. package/dist/types/components/AppUpdateBar.d.ts +10 -2
  186. package/dist/types/components/AppWhatsNew.d.ts +26 -7
  187. package/dist/types/components/AppWizard.d.ts +79 -0
  188. package/dist/types/components/AppWorkspaceSwitcher.d.ts +36 -17
  189. package/dist/types/lib/wuiMarker.d.ts +4 -0
  190. package/package.json +10 -7
@@ -4,47 +4,99 @@ export declare function buttonVariantClass(variant: any): string;
4
4
  *
5
5
  * @param {object} props
6
6
  * @param {import('react').ReactNode} props.children The label.
7
- * @param {"primary"|"secondary"|"outline"|"ghost"|"text"|"danger"|"success"|"secondary-danger"|"outline-danger"|"light"|"warning"|"neutral"|"outline-light"|"outline-secondary"|"subtle"} [props.variant="primary"] Emphasis level. subtle is deprecated (use neutral) and is removed in 0.79.0.
8
- * @param {"sm"|"md"|"lg"} [props.size="md"] Control size.
9
- * @param {"button"|"submit"|"reset"} [props.type="button"] The native button type; not emitted on a link-shaped button.
10
- * @param {boolean} [props.loading=false] Shows a spinner and disables the button while work runs; hides both icons.
11
- * @param {boolean} [props.disabled=false] Disables the button.
12
- * @param {boolean} [props.block=false] Full width of its container.
13
- * @param {string|import('react').ReactNode} [props.leftIcon=null] An icon name, or a node drawn as given.
14
- * @param {string|import('react').ReactNode} [props.rightIcon=null] An icon name, or a node drawn as given.
15
- * @param {string} [props.href] Render as a button-styled link (an <a href>) instead of a <button>; matches Razor <app-button href>.
16
- * @param {boolean} [props.static=false] Render as a NON-interactive element (a <span>) that keeps the
17
- * button's chrome but does not click, focus, or hover — a resolved/confirmation label (e.g. "Verified")
18
- * sized to sit where its action button was. Ignores loading/disabled/type/href.
19
- * @param {string} [props.tooltip] A collision-aware hover/focus tooltip (via AppTooltip / Popper) — flips to stay on-screen. For a labelled button use it sparingly (the label already says what it does); most useful on a terse or icon-led action.
20
- * @param {"auto"|"top"|"bottom"|"start"|"end"} [props.tooltipPlacement="auto"] Preferred tooltip side; `auto` picks the side with the most room.
21
- * @param {string} [props.shortcut] The key that runs this action ("A", "E", "/"), drawn as a key chip: in the tooltip when the button has one, otherwise after the label. Sets aria-keyshortcuts; the page binds the key itself (useListShortcuts). Ignored on a static button.
22
- * @param {"sheen"|"fill"|"expand"|"glow"|"roll"|"none"} [props.animation] Hover animation; omit for the default sheen. `roll` rolls the label up and slides a trailing `rightIcon` through a round well.
23
- * @param {boolean} [props.pinRightIcon=false] Pin the rightIcon (or the roll animation's icon well) to the button's end edge and centre the label; for a wide or full-width button.
24
- * @param {"rounded"|"pill"|"sharp"} [props.shape="rounded"] Corner shape: the default rounded squircle, a fully rounded pill, or sharp square corners.
25
- * @param {"linear"|"outline"|"bold"|"bulk"|"broken"|"twotone"} [props.iconVariant="linear"] The iconsax style of a named leftIcon / rightIcon; a node icon is drawn as given.
26
- * @param {string} [props.className=""] Extra classes on the button.
7
+ * @param {"primary"|"secondary"|"outline"|"ghost"|"text"|"danger"|"success"|"secondary-danger"|"outline-danger"|"light"|"warning"|"neutral"|"outline-light"|"outline-secondary"|"subtle"} [props.variant]
8
+ * @param {"sm"|"md"|"lg"} [props.size]
9
+ * @param {"button"|"submit"|"reset"} [props.type]
10
+ * @param {boolean} [props.loading]
11
+ * @param {boolean} [props.disabled]
12
+ * @param {boolean} [props.block]
13
+ * @param {string|import('react').ReactNode} [props.leftIcon]
14
+ * @param {string|import('react').ReactNode} [props.rightIcon]
15
+ * @param {string} [props.href]
16
+ * @param {boolean} [props.static]
17
+ * @param {string} [props.tooltip]
18
+ * @param {"auto"|"top"|"bottom"|"start"|"end"} [props.tooltipPlacement]
19
+ * @param {string} [props.shortcut]
20
+ * @param {"sheen"|"fill"|"expand"|"glow"|"roll"|"none"} [props.animation]
21
+ * @param {boolean} [props.pinRightIcon]
22
+ * @param {"rounded"|"pill"|"sharp"} [props.shape]
23
+ * @param {"linear"|"outline"|"bold"|"bulk"|"broken"|"twotone"} [props.iconVariant]
24
+ * @param {string} [props.className]
27
25
  * @param {(event: import('react').MouseEvent<HTMLElement>) => void} [props.onClick] Runs on a click; ignored on a static button.
28
26
  */
29
27
  export default function AppButton(props: {
30
28
  children: import('react').ReactNode;
29
+ /**
30
+ * Emphasis level. subtle is deprecated (use neutral) and is removed in 0.79.0.
31
+ * @default "primary"
32
+ */
31
33
  variant?: "primary" | "secondary" | "outline" | "ghost" | "text" | "danger" | "success" | "secondary-danger" | "outline-danger" | "light" | "warning" | "neutral" | "outline-light" | "outline-secondary" | "subtle";
34
+ /**
35
+ * Control size.
36
+ * @default "md"
37
+ */
32
38
  size?: "sm" | "md" | "lg";
39
+ /**
40
+ * The native button type; not emitted on a link-shaped button.
41
+ * @default "button"
42
+ */
33
43
  type?: "button" | "submit" | "reset";
44
+ /**
45
+ * Shows a spinner and disables the button while work runs; hides both icons.
46
+ * @default false
47
+ */
34
48
  loading?: boolean;
49
+ /**
50
+ * Disables the button.
51
+ * @default false
52
+ */
35
53
  disabled?: boolean;
54
+ /**
55
+ * Full width of its container.
56
+ * @default false
57
+ */
36
58
  block?: boolean;
59
+ /** An icon name, or a node drawn as given. */
37
60
  leftIcon?: string | import('react').ReactNode;
61
+ /** An icon name, or a node drawn as given. */
38
62
  rightIcon?: string | import('react').ReactNode;
63
+ /** Render as a button-styled link (an <a href>) instead of a <button>; matches Razor <app-button href>. */
39
64
  href?: string;
65
+ /**
66
+ * Render as a non-interactive element (a span) that keeps the button's chrome but does not click, focus or hover: a resolved or confirmation label (for example Verified) sized to sit where its action button was. Ignores loading, disabled, type and href.
67
+ * @default false
68
+ */
40
69
  static?: boolean;
70
+ /** A collision-aware hover and focus tooltip (through AppTooltip and Popper) that flips to stay on screen. For a labelled button use it sparingly, since the label already says what it does; it is most useful on a terse or icon-led action. */
41
71
  tooltip?: string;
72
+ /**
73
+ * Preferred tooltip side; auto picks the side with the most room.
74
+ * @default "auto"
75
+ */
42
76
  tooltipPlacement?: "auto" | "top" | "bottom" | "start" | "end";
77
+ /** The key that runs this action ("A", "E", "/"), drawn as a key chip: in the tooltip when the button has one, otherwise after the label. Sets aria-keyshortcuts; the page binds the key itself. Ignored on a static button. */
43
78
  shortcut?: string;
79
+ /** Hover animation; omit for the default sheen. roll rolls the label up and slides a trailing rightIcon through a round well. */
44
80
  animation?: "sheen" | "fill" | "expand" | "glow" | "roll" | "none";
81
+ /**
82
+ * Pin the rightIcon (or the roll animation's icon well) to the button's end edge and centre the label; for a wide or full-width button.
83
+ * @default false
84
+ */
45
85
  pinRightIcon?: boolean;
86
+ /**
87
+ * Corner shape: the default rounded squircle, a fully rounded pill, or sharp square corners.
88
+ * @default "rounded"
89
+ */
46
90
  shape?: "rounded" | "pill" | "sharp";
91
+ /**
92
+ * The iconsax style of a named leftIcon / rightIcon; a node icon is drawn as given.
93
+ * @default "linear"
94
+ */
47
95
  iconVariant?: "linear" | "outline" | "bold" | "bulk" | "broken" | "twotone";
96
+ /**
97
+ * Extra classes on the button.
98
+ * @default ""
99
+ */
48
100
  className?: string;
49
101
  onClick?: (event: import('react').MouseEvent<HTMLElement>) => void;
50
102
  }): any;
@@ -6,18 +6,32 @@
6
6
  * actions, not a single-choice control; for one choice of several use `AppSegmented`).
7
7
  *
8
8
  * @param {object} props
9
- * @param {string} props.label Accessible name for the group ("Text style").
9
+ * @param {string} props.label
10
10
  * @param {import('react').ReactNode} props.children `AppButton`s (or button-styled links).
11
- * @param {'sm'|'md'|'lg'} [props.size='md'] One size for every button in the group.
12
- * @param {boolean} [props.vertical=false] Stack the buttons top to bottom.
13
- * @param {boolean} [props.fullWidth=false] Fill the container, the buttons sharing the row equally.
11
+ * @param {'sm'|'md'|'lg'} [props.size]
12
+ * @param {boolean} [props.vertical]
13
+ * @param {boolean} [props.fullWidth]
14
14
  * @param {string} [props.className]
15
15
  */
16
16
  export default function AppButtonGroup(props: {
17
+ /** Accessible name for the group ("Text style"). */
17
18
  label: string;
18
19
  children: import('react').ReactNode;
20
+ /**
21
+ * One size for every button in the group.
22
+ * @default "md"
23
+ */
19
24
  size?: 'sm' | 'md' | 'lg';
25
+ /**
26
+ * Stack the buttons top to bottom.
27
+ * @default false
28
+ */
20
29
  vertical?: boolean;
30
+ /**
31
+ * Fill the container, the buttons sharing the row equally.
32
+ * @default false
33
+ */
21
34
  fullWidth?: boolean;
35
+ /** Extra classes on the group. */
22
36
  className?: string;
23
37
  }): import("react").JSX.Element;
@@ -1,5 +1,10 @@
1
1
  declare const AppCalendar: import("react").ForwardRefExoticComponent<{
2
+ /**
3
+ * The name a screen reader hears for the calendar.
4
+ * @default "Calendar"
5
+ */
2
6
  label?: string;
7
+ /** The events, instead of `eventsUrl`. Extra keys are kept and come back in `onEventClick`. */
3
8
  events?: {
4
9
  id?: string | number;
5
10
  title: string;
@@ -9,11 +14,17 @@ declare const AppCalendar: import("react").ForwardRefExoticComponent<{
9
14
  tone?: 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
10
15
  url?: string;
11
16
  }[];
17
+ /** Called with `start` and `end` (IST days) whenever the visible period changes; answers a JSON list of events. */
12
18
  eventsUrl?: string;
19
+ /** The view to show. Without it a calendar opens on the month, or on the list when it is narrower than a phone. */
13
20
  view?: 'month' | 'week' | 'day' | 'list';
21
+ /** The IST day (`YYYY-MM-DD`) to show; today when omitted. Changing it moves the calendar. */
14
22
  date?: string;
23
+ /** What a list with no events says. */
15
24
  emptyText?: string;
25
+ /** 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. */
16
26
  firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
27
+ /** What is said when `eventsUrl` could not be loaded, and when the calendar's code could not. */
17
28
  errorText?: string;
18
29
  onEventClick?: (event: object) => (void | false);
19
30
  onDateClick?: (detail: {
@@ -28,7 +39,9 @@ declare const AppCalendar: import("react").ForwardRefExoticComponent<{
28
39
  end: string;
29
40
  title: string;
30
41
  }) => void;
42
+ /** Extra classes on the element. */
31
43
  className?: string;
44
+ /** Inline style on the element. */
32
45
  style?: import('react').CSSProperties;
33
46
  } & import("react").RefAttributes<HTMLElement>>;
34
47
  export default AppCalendar;
@@ -7,61 +7,100 @@
7
7
  *
8
8
  * @param {object} props
9
9
  * @param {import('react').ReactNode} [props.title]
10
- * @param {import('react').ReactNode} [props.subtitle] Muted line under the title.
11
- * @param {string} [props.headerIcon] Leading header glyph — an Icon name (or a node).
10
+ * @param {import('react').ReactNode} [props.subtitle]
11
+ * @param {string} [props.headerIcon]
12
12
  * @param {string} [props.titleClassName]
13
- * @param {"sans"|"serif"} [props.titleFont="sans"] Face of the title. `serif` draws it in the display typeface.
14
- * @param {import('react').ReactNode} [props.header] Fully custom header — overrides title/subtitle/icon/extra/actions.
13
+ * @param {"sans"|"serif"} [props.titleFont]
14
+ * @param {import('react').ReactNode} [props.header]
15
15
  * @param {import('react').ReactNode} [props.headerExtra]
16
- * @param {import('react').ReactNode} [props.headerActions] Right-aligned header controls.
17
- * @param {import('react').ReactNode} [props.footer] Footer row (actions/meta), below the body.
18
- * @param {import('react').ReactNode} [props.media] Top media band (image/video), above the header.
16
+ * @param {import('react').ReactNode} [props.headerActions]
17
+ * @param {import('react').ReactNode} [props.footer]
18
+ * @param {import('react').ReactNode} [props.media]
19
19
  * @param {import('react').ReactNode} props.children
20
- * @param {"default"|"elevated"|"outlined"|"muted"|"accent"} [props.variant="default"]
21
- * @param {"primary"|"success"|"warning"|"danger"|"info"} [props.tone="primary"] Colours the `accent` stripe.
22
- * @param {"none"|"sm"|"md"|"lg"} [props.padding="md"] Header/body/footer padding preset. The
23
- * default (md) is a uniform 20px; `none` clears only the body, for a table or list that runs
24
- * edge to edge, and keeps the header and footer inset. For an arbitrary inset, add a class (see
25
- * `className`) that sets the `--wui-card-pad` token instead of using this preset scale.
26
- * @param {"xs"|"sm"|"md"|"lg"|number|string} [props.maxWidth] Cap + centre a standalone card.
27
- * @param {string} [props.className] Extra classes on the `.card` root — the padding hook: a class
28
- * here can set `--wui-card-pad` to retune the inset (the Razor counterpart is a plain `class`).
20
+ * @param {"default"|"elevated"|"outlined"|"muted"|"accent"} [props.variant]
21
+ * @param {"primary"|"success"|"warning"|"danger"|"info"} [props.tone]
22
+ * @param {"none"|"sm"|"md"|"lg"} [props.padding]
23
+ * @param {"xs"|"sm"|"md"|"lg"|number|string} [props.maxWidth]
24
+ * @param {string} [props.className]
29
25
  * @param {string} [props.bodyClassName]
30
26
  * @param {string} [props.headerClassName]
31
- * @param {boolean} [props.body=true] Wrap children in `.card-body`. False for a flush card.
32
- * @param {boolean} [props.lifted=false] 1px hover translate (.card-lifted) — not a drop shadow.
33
- * @param {string} [props.href] Makes the whole card a link.
27
+ * @param {boolean} [props.body]
28
+ * @param {boolean} [props.lifted]
29
+ * @param {string} [props.href]
34
30
  * @param {(e) => void} [props.onClick] Makes the whole card a button (when no href).
35
31
  * @param {import('react').ElementType} [props.linkComponent] Router link; receives `to` instead of `href`.
36
32
  * @param {() => void} [props.onClose] Called when the close button is pressed; the card then hides itself.
37
- * @param {boolean} [props.dismissible] Show a close button at the end of the header (defaults to true when onClose is set).
38
- * @param {string} [props.closeLabel="Close"] Accessible name of the close button.
33
+ * @param {boolean} [props.dismissible]
34
+ * @param {string} [props.closeLabel]
39
35
  */
40
36
  export default function AppCard(props: {
37
+ /** The heading shown in the card header. */
41
38
  title?: import('react').ReactNode;
39
+ /** Muted line under the title. */
42
40
  subtitle?: import('react').ReactNode;
41
+ /** Leading header glyph: an icon name (or a node). */
43
42
  headerIcon?: string;
43
+ /** Extra classes on the title. */
44
44
  titleClassName?: string;
45
+ /**
46
+ * Face of the title. `serif` draws it in the display typeface.
47
+ * @default "sans"
48
+ */
45
49
  titleFont?: "sans" | "serif";
50
+ /** Fully custom header: overrides title, subtitle, icon, extra and actions. */
46
51
  header?: import('react').ReactNode;
52
+ /** Extra content in the header, after the title. */
47
53
  headerExtra?: import('react').ReactNode;
54
+ /** Right-aligned header controls. */
48
55
  headerActions?: import('react').ReactNode;
56
+ /** Footer row (actions or meta), below the body. */
49
57
  footer?: import('react').ReactNode;
58
+ /** Top media band (image or video), above the header. */
50
59
  media?: import('react').ReactNode;
51
60
  children: import('react').ReactNode;
61
+ /**
62
+ * The visual treatment of the card.
63
+ * @default "default"
64
+ */
52
65
  variant?: "default" | "elevated" | "outlined" | "muted" | "accent";
66
+ /**
67
+ * Colours the `accent` stripe.
68
+ * @default "primary"
69
+ */
53
70
  tone?: "primary" | "success" | "warning" | "danger" | "info";
71
+ /**
72
+ * Header, body and footer padding preset. The default (md) is a uniform 20px; `none` clears only the body, for a table or list that runs edge to edge, and keeps the header and footer inset. For an arbitrary inset, add a class (see `className`) that sets the `--wui-card-pad` token instead of using this preset scale.
73
+ * @default "md"
74
+ */
54
75
  padding?: "none" | "sm" | "md" | "lg";
76
+ /** Cap and centre a standalone card. A preset (xs, sm, md, lg), a number of pixels or a CSS length. */
55
77
  maxWidth?: "xs" | "sm" | "md" | "lg" | number | string;
78
+ /** Extra classes on the `.card` root. The padding hook: a class here can set `--wui-card-pad` to retune the inset (the Razor counterpart is a plain `class`). */
56
79
  className?: string;
80
+ /** Extra classes on the card body. */
57
81
  bodyClassName?: string;
82
+ /** Extra classes on the card header. */
58
83
  headerClassName?: string;
84
+ /**
85
+ * Wrap children in `.card-body`. False for a flush card.
86
+ * @default true
87
+ */
59
88
  body?: boolean;
89
+ /**
90
+ * 1px hover translate (`.card-lifted`), not a drop shadow.
91
+ * @default false
92
+ */
60
93
  lifted?: boolean;
94
+ /** Makes the whole card a link. */
61
95
  href?: string;
62
96
  onClick?: (e: any) => void;
63
97
  linkComponent?: import('react').ElementType;
64
98
  onClose?: () => void;
99
+ /** Show a close button at the end of the header (defaults to true when onClose is set). */
65
100
  dismissible?: boolean;
101
+ /**
102
+ * Accessible name of the close button.
103
+ * @default "Close"
104
+ */
66
105
  closeLabel?: string;
67
106
  }): import("react").JSX.Element;
@@ -15,38 +15,80 @@ import "@webority/ui-elements/elements/carousel";
15
15
  * stepping and the autoplay; the Razor `<app-carousel>` renders the same markup.
16
16
  *
17
17
  * @param {object} props
18
- * @param {string} props.label What the slides are ("Customer stories"): the carousel's accessible name.
19
- * @param {number} [props.autoplay] Milliseconds between automatic steps (5000 is typical). Omit for none.
20
- * @param {boolean} [props.loop=false] The previous and next buttons wrap around at the ends.
21
- * @param {number} [props.perView=1] Slides in view on a phone.
22
- * @param {number} [props.perViewMd] Slides in view from the md breakpoint. Defaults to `perView`.
23
- * @param {number} [props.perViewLg] Slides in view from the lg breakpoint. Defaults to `perViewMd`.
24
- * @param {boolean} [props.arrows=true] Show the previous and next buttons.
25
- * @param {boolean} [props.dots=true] Show the page dots.
26
- * @param {string} [props.previousLabel="Previous slide"] The previous button's name.
27
- * @param {string} [props.nextLabel="Next slide"] The next button's name.
28
- * @param {string} [props.dotLabel="Go to slide"] The words before the slide number in each dot's name.
29
- * @param {string} [props.pauseLabel="Pause"] The pause button's text and name while playing.
30
- * @param {string} [props.playLabel="Play"] The pause button's text and name while paused.
18
+ * @param {string} props.label
19
+ * @param {number} [props.autoplay]
20
+ * @param {boolean} [props.loop]
21
+ * @param {number} [props.perView]
22
+ * @param {number} [props.perViewMd]
23
+ * @param {number} [props.perViewLg]
24
+ * @param {boolean} [props.arrows]
25
+ * @param {boolean} [props.dots]
26
+ * @param {string} [props.previousLabel]
27
+ * @param {string} [props.nextLabel]
28
+ * @param {string} [props.dotLabel]
29
+ * @param {string} [props.pauseLabel]
30
+ * @param {string} [props.playLabel]
31
31
  * @param {string} [props.className]
32
- * @param {import('react').CSSProperties} [props.style] Merged after the per-view custom properties.
32
+ * @param {import('react').CSSProperties} [props.style]
33
33
  * @param {import('react').ReactNode} props.children The slides.
34
34
  */
35
35
  export default function AppCarousel(props: {
36
+ /** What the slides are ("Customer stories"): the carousel's accessible name. */
36
37
  label: string;
38
+ /** Milliseconds between automatic steps (5000 is typical). Omit for none. */
37
39
  autoplay?: number;
40
+ /**
41
+ * The previous and next buttons wrap around at the ends.
42
+ * @default false
43
+ */
38
44
  loop?: boolean;
45
+ /**
46
+ * Slides in view on a phone.
47
+ * @default 1
48
+ */
39
49
  perView?: number;
50
+ /** Slides in view from the md breakpoint. Defaults to `perView`. */
40
51
  perViewMd?: number;
52
+ /** Slides in view from the lg breakpoint. Defaults to `perViewMd`. */
41
53
  perViewLg?: number;
54
+ /**
55
+ * Show the previous and next buttons.
56
+ * @default true
57
+ */
42
58
  arrows?: boolean;
59
+ /**
60
+ * Show the page dots.
61
+ * @default true
62
+ */
43
63
  dots?: boolean;
64
+ /**
65
+ * The previous button's name.
66
+ * @default "Previous slide"
67
+ */
44
68
  previousLabel?: string;
69
+ /**
70
+ * The next button's name.
71
+ * @default "Next slide"
72
+ */
45
73
  nextLabel?: string;
74
+ /**
75
+ * The words before the slide number in each dot's name.
76
+ * @default "Go to slide"
77
+ */
46
78
  dotLabel?: string;
79
+ /**
80
+ * The pause button's text and name while playing.
81
+ * @default "Pause"
82
+ */
47
83
  pauseLabel?: string;
84
+ /**
85
+ * The pause button's text and name while paused.
86
+ * @default "Play"
87
+ */
48
88
  playLabel?: string;
89
+ /** Extra classes on the element. */
49
90
  className?: string;
91
+ /** Merged after the per-view custom properties. */
50
92
  style?: import('react').CSSProperties;
51
93
  children: import('react').ReactNode;
52
94
  }): import("react").JSX.Element;
@@ -1,54 +1,90 @@
1
1
  declare const AppChart: import("react").ForwardRefExoticComponent<{
2
+ /** `column` is vertical bars, `bar` horizontal. `multiples` draws each series as its own small chart under one shared x axis. */
2
3
  type: 'line' | 'area' | 'column' | 'bar' | 'donut' | 'heatmap' | 'calendar' | 'funnel' | 'gauge' | 'waterfall' | 'treemap' | 'sankey' | 'scatter' | 'bubble' | 'multiples';
4
+ /** Required. Names the chart for assistive tech and names exported files. An empty string counts as not given. */
3
5
  title: string;
6
+ /** One sentence a screen reader hears before the automatic summary. */
4
7
  description?: string;
8
+ /** One row per x position, slice, cell, stage, flow or point: what a row is depends on the type. */
5
9
  data: Record<string, string | number | null>[];
10
+ /** The column holding the x value. `time` takes epoch ms, an ISO instant or a "YYYY-MM-DD" day; `value` (scatter and bubble) is a number. A calendar is always `time`, a scatter and a bubble always `value`. */
6
11
  x: {
7
12
  key: string;
8
13
  kind?: 'category' | 'time' | 'value';
9
14
  format?: object;
10
15
  label?: string;
11
16
  };
17
+ /** The value columns, in the order they take colours: at most 8. Every type but line, area, column, bar and multiples takes one. */
12
18
  series: {
13
19
  key: string;
14
20
  label: string;
15
21
  format?: object;
16
22
  }[];
23
+ /** The second dimension: a heatmap's rows, a treemap's parents, a scatter or bubble's colour groups (at most 3). Required for a heatmap and a treemap. */
17
24
  group?: {
18
25
  key: string;
19
26
  label?: string;
20
27
  };
28
+ /** Where each sankey flow ends; `x` is where it starts. Required for a sankey. */
21
29
  to?: {
22
30
  key: string;
23
31
  label?: string;
24
32
  };
33
+ /** A bubble's area. Required for a bubble. */
25
34
  size?: {
26
35
  key: string;
27
36
  label?: string;
28
37
  format?: object;
29
38
  };
39
+ /** A scatter or bubble's straight trend line through the visible points. */
30
40
  trend?: boolean;
41
+ /** A zoom slider under a line or area. On by default above 5,000 rows. */
31
42
  zoom?: boolean;
43
+ /** A gauge's named stretches of its scale, each up to a value. */
32
44
  bands?: {
33
45
  upTo: number;
34
46
  label: string;
35
47
  }[];
48
+ /**
49
+ * For area, column and bar.
50
+ * @default "none"
51
+ */
36
52
  stack?: 'none' | 'stacked' | 'percent';
53
+ /** The one value axis. There is no second axis: show another measure as its own chart. */
37
54
  y?: {
38
55
  label?: string;
39
56
  format?: object;
40
57
  min?: number;
41
58
  max?: number;
42
59
  };
60
+ /** A dashed reference line. */
43
61
  target?: {
44
62
  value: number;
45
63
  label: string;
46
64
  };
65
+ /**
66
+ * In px, the axis labels included. A value that is not above 0 draws at the default.
67
+ * @default 320
68
+ */
47
69
  height?: number;
70
+ /**
71
+ * `loading` after a first draw keeps that picture on screen, dimmed.
72
+ * @default "ready"
73
+ */
48
74
  state?: 'ready' | 'loading' | 'empty' | 'error';
75
+ /** Replaces the default empty message. */
49
76
  emptyText?: string;
77
+ /** Replaces the default error message. Say what the person can do. */
50
78
  errorText?: string;
79
+ /**
80
+ * `auto` draws SVG, and canvas above 5,000 points.
81
+ * @default "auto"
82
+ */
51
83
  renderer?: 'auto' | 'svg' | 'canvas';
84
+ /**
85
+ * `table` shows the data table in the chart's place.
86
+ * @default "chart"
87
+ */
52
88
  view?: 'chart' | 'table';
53
89
  onSelect?: (detail: {
54
90
  series: string;
@@ -64,7 +100,9 @@ declare const AppChart: import("react").ForwardRefExoticComponent<{
64
100
  onReady?: (detail: {
65
101
  renderer: string;
66
102
  }) => void;
103
+ /** Extra classes on the element. */
67
104
  className?: string;
105
+ /** Inline style on the element. */
68
106
  style?: import('react').CSSProperties;
69
107
  } & import("react").RefAttributes<HTMLElement>>;
70
108
  export default AppChart;
@@ -20,20 +20,28 @@
20
20
  * ```
21
21
  *
22
22
  * @param {object} props
23
- * @param {string} props.title The card's heading. Also names the menu button for assistive tech.
24
- * @param {string} [props.subtitle] A muted line under the title: the unit or the period.
25
- * @param {boolean} [props.toolbar=true] Show the view controls.
23
+ * @param {string} props.title
24
+ * @param {string} [props.subtitle]
25
+ * @param {boolean} [props.toolbar]
26
26
  * @param {() => void} [props.onRetry] Adds a Try again button that shows while the chart is in its error state.
27
- * @param {import('react').ReactNode} [props.footer] A row under the chart: a source, an updated-at time, a link.
27
+ * @param {import('react').ReactNode} [props.footer]
28
28
  * @param {import('react').ReactNode} props.children The chart.
29
- * @param {string} [props.className] Extra classes on the card.
29
+ * @param {string} [props.className]
30
30
  */
31
31
  export default function AppChartCard(props: {
32
+ /** The card's heading. Also names the menu button for assistive tech. */
32
33
  title: string;
34
+ /** A muted line under the title: the unit or the period. */
33
35
  subtitle?: string;
36
+ /**
37
+ * Show the view controls.
38
+ * @default true
39
+ */
34
40
  toolbar?: boolean;
35
41
  onRetry?: () => void;
42
+ /** A row under the chart: a source, an updated-at time, a link. */
36
43
  footer?: import('react').ReactNode;
37
44
  children: import('react').ReactNode;
45
+ /** Extra classes on the card. */
38
46
  className?: string;
39
47
  }): import("react").JSX.Element;
@@ -1,13 +1,22 @@
1
1
  declare const AppCheckbox: import("react").ForwardRefExoticComponent<{
2
+ /** The text beside the box. Clicking it ticks the box. */
2
3
  label?: import('react').ReactNode;
4
+ /** The input's id. A unique id is generated when none is given. */
3
5
  id?: string;
6
+ /** The form field name, sent with the value on submit. */
4
7
  name?: string;
8
+ /** Controlled ticked state; pair with `onChange`. */
5
9
  checked?: boolean;
10
+ /** Starting state when the checkbox is uncontrolled. */
6
11
  defaultChecked?: boolean;
12
+ /** Locks the checkbox and dims it. */
7
13
  disabled?: boolean;
8
14
  onChange?: (event: import('react').ChangeEvent<HTMLInputElement>) => void;
15
+ /** Error message, rendered below the control. Replaces the hint. */
9
16
  error?: string;
17
+ /** Helper text below the control. Hidden while an error is shown. */
10
18
  hint?: string;
19
+ /** Extra classes on the element. */
11
20
  className?: string;
12
21
  } & import("react").RefAttributes<HTMLInputElement>>;
13
22
  export default AppCheckbox;
@@ -10,32 +10,51 @@
10
10
  * - neither → a static, presentational chip.
11
11
  *
12
12
  * @param {object} props
13
- * @param {import('react').ReactNode} [props.label] Chip text (or use `children`).
13
+ * @param {import('react').ReactNode} [props.label]
14
14
  * @param {import('react').ReactNode} [props.children]
15
- * @param {"neutral"|"primary"|"success"|"warning"|"danger"|"info"} [props.tone="neutral"]
16
- * @param {"soft"|"outline"|"solid"} [props.variant="soft"] Colour treatment — a tinted
17
- * surface (`soft`, default), a tinted surface with a coloured border (`outline`), or a
18
- * filled pill with contrasting text (`solid`).
19
- * @param {"sm"|"md"} [props.size="md"]
20
- * @param {string} [props.leadingIcon] Semantic icon name for a leading glyph.
21
- * @param {string|import('react').ReactNode} [props.avatar] Leading avatar — an image URL or a node.
15
+ * @param {"neutral"|"primary"|"success"|"warning"|"danger"|"info"} [props.tone]
16
+ * @param {"soft"|"outline"|"solid"} [props.variant]
17
+ * @param {"sm"|"md"} [props.size]
18
+ * @param {string} [props.leadingIcon]
19
+ * @param {string|import('react').ReactNode} [props.avatar]
22
20
  * @param {() => void} [props.onRemove] Present → shows the dismiss ✕.
23
21
  * @param {() => void} [props.onClick] Present → the chip body is clickable.
24
- * @param {boolean} [props.disabled=false]
25
- * @param {string} [props.removeLabel] aria-label for the dismiss button.
22
+ * @param {boolean} [props.disabled]
23
+ * @param {string} [props.removeLabel]
26
24
  * @param {string} [props.className]
27
25
  */
28
26
  export default function AppChip(props: {
27
+ /** Chip text (or use `children`). */
29
28
  label?: import('react').ReactNode;
30
29
  children?: import('react').ReactNode;
30
+ /**
31
+ * The colour meaning: neutral by default, or a state or category.
32
+ * @default "neutral"
33
+ */
31
34
  tone?: "neutral" | "primary" | "success" | "warning" | "danger" | "info";
35
+ /**
36
+ * Colour treatment: a tinted surface (soft, the default), a tinted surface with a coloured border (outline), or a filled pill with contrasting text (solid).
37
+ * @default "soft"
38
+ */
32
39
  variant?: "soft" | "outline" | "solid";
40
+ /**
41
+ * sm for a denser chip; md by default.
42
+ * @default "md"
43
+ */
33
44
  size?: "sm" | "md";
45
+ /** Semantic icon name for a leading glyph. */
34
46
  leadingIcon?: string;
47
+ /** Leading avatar: an image URL or a node. */
35
48
  avatar?: string | import('react').ReactNode;
36
49
  onRemove?: () => void;
37
50
  onClick?: () => void;
51
+ /**
52
+ * Dims the chip and stops it from being pressed.
53
+ * @default false
54
+ */
38
55
  disabled?: boolean;
56
+ /** aria-label for the dismiss button. */
39
57
  removeLabel?: string;
58
+ /** Extra classes on the element. */
40
59
  className?: string;
41
60
  }): import("react").JSX.Element;