@webority/ui-react 0.7.4 → 0.7.6

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 (43) hide show
  1. package/dist/types/components/AppAutocomplete.d.ts +5 -28
  2. package/dist/types/components/AppAvatar.d.ts +24 -2
  3. package/dist/types/components/AppAvatarGroup.d.ts +8 -0
  4. package/dist/types/components/AppBanner.d.ts +22 -0
  5. package/dist/types/components/AppBreadcrumbs.d.ts +28 -0
  6. package/dist/types/components/AppCard.d.ts +31 -5
  7. package/dist/types/components/AppCheckbox.d.ts +1 -1
  8. package/dist/types/components/AppConfirmDialog.d.ts +1 -1
  9. package/dist/types/components/AppCopyButton.d.ts +27 -0
  10. package/dist/types/components/AppDatePicker.d.ts +3 -18
  11. package/dist/types/components/AppDateRangePicker.d.ts +3 -23
  12. package/dist/types/components/AppDescriptions.d.ts +30 -0
  13. package/dist/types/components/AppDropdown.d.ts +53 -11
  14. package/dist/types/components/AppFormActions.d.ts +19 -0
  15. package/dist/types/components/AppFormRow.d.ts +17 -0
  16. package/dist/types/components/AppFormSection.d.ts +19 -0
  17. package/dist/types/components/AppKpiTile.d.ts +3 -1
  18. package/dist/types/components/AppMeter.d.ts +32 -0
  19. package/dist/types/components/AppModal.d.ts +5 -2
  20. package/dist/types/components/AppMultiSelect.d.ts +5 -21
  21. package/dist/types/components/AppNumberInput.d.ts +36 -0
  22. package/dist/types/components/AppPageHeader.d.ts +10 -1
  23. package/dist/types/components/AppPagination.d.ts +25 -0
  24. package/dist/types/components/AppPhoneNumberInput.d.ts +2 -13
  25. package/dist/types/components/AppProgress.d.ts +29 -0
  26. package/dist/types/components/AppResult.d.ts +27 -0
  27. package/dist/types/components/AppScrollbar.d.ts +1 -2
  28. package/dist/types/components/AppSearch.d.ts +5 -3
  29. package/dist/types/components/AppSelect.d.ts +2 -27
  30. package/dist/types/components/AppSlider.d.ts +37 -0
  31. package/dist/types/components/AppStepper.d.ts +24 -7
  32. package/dist/types/components/AppTablePagination.d.ts +2 -3
  33. package/dist/types/components/AppTagInput.d.ts +28 -0
  34. package/dist/types/components/AppTimePicker.d.ts +33 -0
  35. package/dist/types/components/AppToastContainer.d.ts +6 -1
  36. package/dist/types/components/AppTooltip.d.ts +21 -0
  37. package/dist/types/components/toast.d.ts +5 -2
  38. package/dist/types/components/toastStore.d.ts +3 -3
  39. package/dist/types/index.d.ts +17 -0
  40. package/dist/types/lib/FileItemRow.d.ts +20 -0
  41. package/dist/types/lib/fileItem.d.ts +16 -0
  42. package/dist/ui-react.js +2683 -1196
  43. package/package.json +3 -3
@@ -30,33 +30,10 @@ import '@webority/ui-elements';
30
30
  * @param {string} [props.error]
31
31
  * @param {string} [props.hint]
32
32
  * @param {boolean} [props.required]
33
+ * @param {import('react').ReactNode} [props.help] Help content shown in an info tip beside the label.
34
+ * @param {string} [props.helpLabel="More information"] Accessible name for that info tip.
33
35
  * @param {string} [props.fieldClassName]
36
+ * @param {import('react').Ref} [ref]
34
37
  */
35
- export default function AppAutocomplete({ value, onChange, options, loadOptions, placeholder, minChars, debounce, disabled, size, allowCustom, name, label, error, hint, required, fieldClassName, ...rest }: {
36
- value?: string;
37
- onChange?: (value: string, meta?: {
38
- isCustom: boolean;
39
- }) => void;
40
- options?: {
41
- value: string;
42
- label: string;
43
- }[];
44
- loadOptions?: (query: string, opts?: {
45
- signal?: AbortSignal;
46
- }) => Promise<{
47
- value: string;
48
- label: string;
49
- }[]>;
50
- placeholder?: string;
51
- minChars?: number;
52
- debounce?: number;
53
- disabled?: boolean;
54
- size?: 'sm' | 'lg';
55
- allowCustom?: boolean;
56
- name?: string;
57
- label?: import('react').ReactNode;
58
- error?: string;
59
- hint?: string;
60
- required?: boolean;
61
- fieldClassName?: string;
62
- }): import("react").JSX.Element;
38
+ declare const AppAutocomplete: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
39
+ export default AppAutocomplete;
@@ -1,13 +1,35 @@
1
1
  /**
2
- * Profile photo or initials.
2
+ * Profile photo, initials, or an icon.
3
3
  *
4
4
  * @param {object} props
5
5
  * @param {string} [props.name]
6
6
  * @param {string} [props.src]
7
+ * @param {"xs"|"sm"|"md"|"lg"|"xl"|"2xl"|number|string} [props.size="md"] Preset, or a custom pixel size.
8
+ * @param {"circle"|"rounded"|"square"} [props.shape="circle"]
9
+ * @param {"primary"|"neutral"|"success"|"warning"|"danger"|"info"|"auto"} [props.tone="primary"] `auto` = stable per-name colour.
10
+ * @param {"none"|"online"|"offline"|"away"|"busy"} [props.status="none"] A presence dot.
11
+ * @param {boolean} [props.ring=false] A ring around the disc.
12
+ * @param {string} [props.label] Text shown as a tooltip above the avatar on hover/focus.
13
+ * @param {string} [props.icon] Icon-name fallback face, used instead of initials when there's no photo.
14
+ * @param {import('react').ReactNode} [props.badge] A small count/marker in the top-right corner.
15
+ * @param {string} [props.href] Makes the avatar a link.
16
+ * @param {(e) => void} [props.onClick] Makes the avatar a button (when no href).
17
+ * @param {import('react').ElementType} [props.linkComponent] Router link; receives `to` instead of `href`.
7
18
  * @param {string} [props.className]
8
19
  */
9
- export default function AppAvatar({ name, src, className, ...rest }: {
20
+ export default function AppAvatar({ name, src, size, shape, tone, status, ring, label, icon, badge, href, onClick, linkComponent: Link, className, ...rest }: {
10
21
  name?: string;
11
22
  src?: string;
23
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | number | string;
24
+ shape?: "circle" | "rounded" | "square";
25
+ tone?: "primary" | "neutral" | "success" | "warning" | "danger" | "info" | "auto";
26
+ status?: "none" | "online" | "offline" | "away" | "busy";
27
+ ring?: boolean;
28
+ label?: string;
29
+ icon?: string;
30
+ badge?: import('react').ReactNode;
31
+ href?: string;
32
+ onClick?: (e: any) => void;
33
+ linkComponent?: import('react').ElementType;
12
34
  className?: string;
13
35
  }): import("react").JSX.Element;
@@ -0,0 +1,8 @@
1
+ export default function AppAvatarGroup({ children, size, spacing, overflow, className, ...rest }: {
2
+ [x: string]: any;
3
+ children: any;
4
+ className?: string;
5
+ overflow: any;
6
+ size: any;
7
+ spacing?: string;
8
+ }): import("react").JSX.Element;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * A page/system-level announcement bar — a full-width strip for a message that applies to the
3
+ * whole screen or app (scheduled maintenance, a trial ending, a new version). It sits apart
4
+ * from the other status surfaces: `AppAlert` is an inline message about one section, and a
5
+ * toast is a transient pop; a banner is persistent, full-bleed, and page-scoped.
6
+ *
7
+ * @param {object} props
8
+ * @param {'info'|'success'|'warning'|'danger'|'neutral'} [props.tone='info'] The banner's colour/intent.
9
+ * @param {string|import('react').ReactNode} [props.icon] A leading icon — a glyph name or a node.
10
+ * @param {import('react').ReactNode} props.children The message; may include an inline action link.
11
+ * @param {boolean} [props.dismissible=false] Show a close button that removes the banner.
12
+ * @param {() => void} [props.onDismiss] Called after the banner is dismissed.
13
+ * @param {string} [props.className]
14
+ */
15
+ export default function AppBanner({ tone, icon, children, dismissible, onDismiss, className, ...rest }: {
16
+ tone?: 'info' | 'success' | 'warning' | 'danger' | 'neutral';
17
+ icon?: string | import('react').ReactNode;
18
+ children: import('react').ReactNode;
19
+ dismissible?: boolean;
20
+ onDismiss?: () => void;
21
+ className?: string;
22
+ }): import("react").JSX.Element;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * A breadcrumb trail — the path from a root to the current page. The last item is the
3
+ * current page: rendered as text with `aria-current="page"`, never a link. Wraps
4
+ * react-bootstrap's Breadcrumb (Bootstrap `.breadcrumb`), so React and the Razor
5
+ * `<app-breadcrumbs>` render the same markup.
6
+ *
7
+ * Router-decoupled like AppDropdown: an item with `to` renders through `linkComponent`
8
+ * (react-router's `Link`) when one is provided, otherwise a plain `<a href>`. The library
9
+ * never imports a router.
10
+ *
11
+ * @param {object} props
12
+ * @param {{ key?: string, label: string, href?: string, to?: string,
13
+ * icon?: string|import('react').ReactNode }[]} props.items The trail, root first, current
14
+ * page last. An item links when it has `href`/`to` and is not the last one.
15
+ * @param {import('react').ElementType} [props.linkComponent] Component for `to` items (e.g. Link).
16
+ * @param {string} [props.className]
17
+ */
18
+ export default function AppBreadcrumbs({ items, linkComponent, className, ...rest }: {
19
+ items: {
20
+ key?: string;
21
+ label: string;
22
+ href?: string;
23
+ to?: string;
24
+ icon?: string | import('react').ReactNode;
25
+ }[];
26
+ linkComponent?: import('react').ElementType;
27
+ className?: string;
28
+ }): import("react").JSX.Element;
@@ -1,29 +1,55 @@
1
1
  /**
2
- * The shared surface card — wraps react-bootstrap <Card>.
2
+ * The shared surface card — wraps react-bootstrap <Card> and the theme's `.card` chrome.
3
+ *
4
+ * Beyond a plain surface it carries visual variants, a tone-tinted accent stripe, a padding
5
+ * scale, an optional capped/centred width, a header (icon + title + subtitle + actions), a
6
+ * footer and a top media band, and can be made a single clickable control.
3
7
  *
4
8
  * @param {object} props
5
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).
6
12
  * @param {string} [props.titleClassName]
7
- * @param {import('react').ReactNode} [props.header]
13
+ * @param {import('react').ReactNode} [props.header] Fully custom header — overrides title/subtitle/icon/extra/actions.
8
14
  * @param {import('react').ReactNode} [props.headerExtra]
9
- * @param {import('react').ReactNode} [props.headerActions]
15
+ * @param {import('react').ReactNode} [props.headerActions] Right-aligned header controls.
16
+ * @param {import('react').ReactNode} [props.footer] Footer row (actions/meta), below the body.
17
+ * @param {import('react').ReactNode} [props.media] Top media band (image/video), above the header.
10
18
  * @param {import('react').ReactNode} props.children
19
+ * @param {"default"|"elevated"|"outlined"|"muted"|"accent"} [props.variant="default"]
20
+ * @param {"primary"|"success"|"warning"|"danger"|"info"} [props.tone="primary"] Colours the `accent` stripe.
21
+ * @param {"none"|"sm"|"md"|"lg"} [props.padding="md"] Header/body/footer padding.
22
+ * @param {"xs"|"sm"|"md"|"lg"|number|string} [props.maxWidth] Cap + centre a standalone card.
11
23
  * @param {string} [props.className]
12
24
  * @param {string} [props.bodyClassName]
13
25
  * @param {string} [props.headerClassName]
14
- * @param {boolean} [props.body=true]
26
+ * @param {boolean} [props.body=true] Wrap children in `.card-body`. False for a flush card.
15
27
  * @param {boolean} [props.lifted=false] 1px hover translate (.card-lifted) — not a drop shadow.
28
+ * @param {string} [props.href] Makes the whole card a link.
29
+ * @param {(e) => void} [props.onClick] Makes the whole card a button (when no href).
30
+ * @param {import('react').ElementType} [props.linkComponent] Router link; receives `to` instead of `href`.
16
31
  */
17
- export default function AppCard({ title, titleClassName, header, headerExtra, headerActions, children, className, bodyClassName, headerClassName, body, lifted, ...rest }: {
32
+ export default function AppCard({ title, subtitle, headerIcon, titleClassName, header, headerExtra, headerActions, footer, media, children, variant, tone, padding, maxWidth, className, bodyClassName, headerClassName, body, lifted, href, onClick, linkComponent: Link, ...rest }: {
18
33
  title?: import('react').ReactNode;
34
+ subtitle?: import('react').ReactNode;
35
+ headerIcon?: string;
19
36
  titleClassName?: string;
20
37
  header?: import('react').ReactNode;
21
38
  headerExtra?: import('react').ReactNode;
22
39
  headerActions?: import('react').ReactNode;
40
+ footer?: import('react').ReactNode;
41
+ media?: import('react').ReactNode;
23
42
  children: import('react').ReactNode;
43
+ variant?: "default" | "elevated" | "outlined" | "muted" | "accent";
44
+ tone?: "primary" | "success" | "warning" | "danger" | "info";
45
+ padding?: "none" | "sm" | "md" | "lg";
46
+ maxWidth?: "xs" | "sm" | "md" | "lg" | number | string;
24
47
  className?: string;
25
48
  bodyClassName?: string;
26
49
  headerClassName?: string;
27
50
  body?: boolean;
28
51
  lifted?: boolean;
52
+ href?: string;
53
+ onClick?: (e: any) => void;
54
+ linkComponent?: import('react').ElementType;
29
55
  }): import("react").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Shared checkbox on Bootstrap `.form-check` markup (Razor <app-checkbox> matches).
3
3
  * Theme restyles `.form-check-input` as the one selection glyph; table row-select
4
- * uses the `.wui-check` alias of the same skin (TASK-06077).
4
+ * uses the `.wui-check` alias of the same skin.
5
5
  *
6
6
  * The label is bound with id/htmlFor rather than react-bootstrap's `label` prop:
7
7
  * that rendered a <label> with no `for`, so clicking the text did nothing.
@@ -16,7 +16,7 @@
16
16
  * disables Cancel and the confirm-phrase field, and blocks dismissal via the backdrop,
17
17
  * Escape, and onClose while the async action is in flight.
18
18
  * @param {boolean} [props.staticBackdrop=false] Forwarded to AppModal — when true, backdrop
19
- * click and Escape no longer close the dialog (BUG-06649).
19
+ * click and Escape no longer close the dialog.
20
20
  * @param {'center'|'top'} [props.placement='center'] Vertical placement of the card,
21
21
  * forwarded to AppModal — centred (default) or pinned near the top.
22
22
  */
@@ -0,0 +1,27 @@
1
+ /**
2
+ * A copy-to-clipboard button with feedback. Shows "Copied" confirmation for 2 seconds
3
+ * after a successful copy. Wraps navigator.clipboard with a fallback to textarea + execCommand
4
+ * when the Clipboard API is unavailable, and never throws on clipboard denial.
5
+ *
6
+ * Supports both button form (label + icon) and icon-only form (actionable icon).
7
+ *
8
+ * @param {object} props
9
+ * @param {string} props.text The text to copy (required)
10
+ * @param {string} [props.label="Copy"] Button label
11
+ * @param {string} [props.copiedLabel="Copied"] Label shown after successful copy
12
+ * @param {boolean} [props.iconOnly] Render as an icon-only button (like ActionIcon); label becomes aria-label
13
+ * @param {"sm"|"md"|"lg"} [props.size="md"] Button size
14
+ * @param {"ghost"|"outline"|"secondary"|"light"} [props.variant="ghost"] Button variant
15
+ * @param {() => void} [props.onCopied] Callback fired on successful copy
16
+ * @param {string} [props.className] Custom className
17
+ */
18
+ export default function AppCopyButton({ text, label, copiedLabel, iconOnly, size, variant, onCopied, className, ...rest }: {
19
+ text: string;
20
+ label?: string;
21
+ copiedLabel?: string;
22
+ iconOnly?: boolean;
23
+ size?: "sm" | "md" | "lg";
24
+ variant?: "ghost" | "outline" | "secondary" | "light";
25
+ onCopied?: () => void;
26
+ className?: string;
27
+ }): import("react").JSX.Element;
@@ -26,22 +26,7 @@ import '@webority/ui-elements';
26
26
  * @param {string} [props.id]
27
27
  * @param {string} [props.ariaLabel]
28
28
  * @param {string} [props.className]
29
+ * @param {import('react').Ref} [ref]
29
30
  */
30
- export default function AppDatePicker({ value, onChange, label, required, hint, error, name, min, max, placeholder, disabled, size, firstDay, id, ariaLabel, className, ...rest }: {
31
- value?: string;
32
- onChange?: (value: string) => void;
33
- label?: string;
34
- required?: boolean;
35
- hint?: string;
36
- error?: string;
37
- name?: string;
38
- min?: string;
39
- max?: string;
40
- placeholder?: string;
41
- disabled?: boolean;
42
- size?: 'sm' | 'md' | 'lg';
43
- firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
44
- id?: string;
45
- ariaLabel?: string;
46
- className?: string;
47
- }): import("react").JSX.Element;
31
+ declare const AppDatePicker: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
32
+ export default AppDatePicker;
@@ -27,27 +27,7 @@ import '@webority/ui-elements';
27
27
  * @param {string} [props.id]
28
28
  * @param {string} [props.ariaLabel]
29
29
  * @param {string} [props.className]
30
+ * @param {import('react').Ref} [ref]
30
31
  */
31
- export default function AppDateRangePicker({ start, end, onChange, label, required, hint, error, startName, endName, min, max, placeholder, disabled, size, firstDay, id, ariaLabel, className, ...rest }: {
32
- start?: string;
33
- end?: string;
34
- onChange?: (range: {
35
- start: string;
36
- end: string;
37
- }) => void;
38
- label?: string;
39
- required?: boolean;
40
- hint?: string;
41
- error?: string;
42
- startName?: string;
43
- endName?: string;
44
- min?: string;
45
- max?: string;
46
- placeholder?: string;
47
- disabled?: boolean;
48
- size?: 'sm' | 'md' | 'lg';
49
- firstDay?: 0 | 1 | 2 | 3 | 4 | 5 | 6;
50
- id?: string;
51
- ariaLabel?: string;
52
- className?: string;
53
- }): import("react").JSX.Element;
32
+ declare const AppDateRangePicker: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
33
+ export default AppDateRangePicker;
@@ -0,0 +1,30 @@
1
+ /**
2
+ * A labeled key-value grid for displaying record details — like an Ant "Descriptions" or
3
+ * a definition list. Renders a two-column (or single-column on small screens) grid of
4
+ * label/value pairs.
5
+ *
6
+ * Each item can span multiple columns and specify a size variant. Empty/null values
7
+ * render as a muted em-dash so a missing fact reads as "no value", not a broken row.
8
+ *
9
+ * @param {object} props
10
+ * @param {{ label: string, value: import('react').ReactNode, span?: 1|2|3, key?: string }[]} props.items
11
+ * The rows — each with a label and a value. A `span` of 2 or 3 makes the item span multiple columns.
12
+ * @param {1|2|3} [props.columns=2] How many columns the grid should have (before media-breakpoint collapse).
13
+ * @param {"sm"|"md"} [props.size="md"] Item padding / font size.
14
+ * @param {boolean} [props.bordered=false] Add horizontal dividing lines between rows.
15
+ * @param {import('react').ReactNode} [props.title] Optional heading above the grid.
16
+ * @param {string} [props.className] Extra classes on the grid container.
17
+ */
18
+ export default function AppDescriptions({ items, columns, size, bordered, title, className, ...rest }: {
19
+ items: {
20
+ label: string;
21
+ value: import('react').ReactNode;
22
+ span?: 1 | 2 | 3;
23
+ key?: string;
24
+ }[];
25
+ columns?: 1 | 2 | 3;
26
+ size?: "sm" | "md";
27
+ bordered?: boolean;
28
+ title?: import('react').ReactNode;
29
+ className?: string;
30
+ }): import("react").JSX.Element;
@@ -1,14 +1,56 @@
1
+ /**
2
+ * Icon-triggered menu — react-bootstrap Dropdown.
3
+ *
4
+ * Decoupled from the router: menu items with a `to` render through `linkComponent`
5
+ * when provided (e.g. react-router's `Link`), otherwise a plain `<a href>`. The library
6
+ * never imports a router.
7
+ *
8
+ * NOTE: the exported component must stay the FIRST destructured function in this file —
9
+ * the parity check reads the first signature it finds as the component's public props.
10
+ *
11
+ * @param {object} props
12
+ * @param {string} props.icon
13
+ * @param {number} [props.iconSize]
14
+ * @param {string} [props.toggleClassName]
15
+ * @param {string} [props.label] Tooltip + accessible-name fallback for the toggle.
16
+ * @param {"start"|"end"} [props.align="end"] Menu alignment.
17
+ * @param {string} [props.ariaLabel]
18
+ * @param {{ key: string, label?: string, icon?: string|import('react').ReactNode, image?: string, to?: string, onClick?: () => void, danger?: boolean, divider?: true }[]} [props.items]
19
+ * `icon` is a glyph name OR a custom node (e.g. an iconsax glyph); `image` is a picture URL (external logo/avatar) — pass one.
20
+ * An item with `divider: true` renders a separator instead of an action; it needs no
21
+ * `label`/`onClick`, just a unique `key`.
22
+ * @param {string} [props.menuClassName]
23
+ * @param {import('react').ElementType} [props.linkComponent] Component for `to` items (e.g. Link).
24
+ * @param {import('react').ReactNode} [props.children] Rich menu content — renders inside the
25
+ * menu INSTEAD of mapping `items`, for a panel that isn't a flat action list (an identity
26
+ * block, a form, mixed content). `items` and `children` are mutually exclusive; `children`
27
+ * wins when both are given. The icon toggle and react-bootstrap's open/close, outside-click,
28
+ * focus and Escape behavior are unchanged either way.
29
+ * @param {import('react').ReactNode} [props.trigger] A custom trigger — renders inside the
30
+ * toggle button INSTEAD of the icon, for a rich control (an account chip with avatar+name, a
31
+ * "Sort by ▾" labeled button). Wins over `icon`. The button still owns react-bootstrap's
32
+ * ref/onClick/`aria-expanded` and keyboard behavior, so a11y is unchanged. Razor counterpart:
33
+ * the `<app-dropdown-toggle>` child slot.
34
+ */
1
35
  export default function AppDropdown({ icon, iconSize, toggleClassName, label, ariaLabel, align, items, menuClassName, linkComponent, children, trigger, ...rest }: {
2
- [x: string]: any;
3
- align?: string;
4
- ariaLabel: any;
5
- children: any;
6
- icon: any;
7
- iconSize: any;
8
- items?: any[];
9
- label: any;
10
- linkComponent: any;
36
+ icon: string;
37
+ iconSize?: number;
38
+ toggleClassName?: string;
39
+ label?: string;
40
+ align?: "start" | "end";
41
+ ariaLabel?: string;
42
+ items?: {
43
+ key: string;
44
+ label?: string;
45
+ icon?: string | import('react').ReactNode;
46
+ image?: string;
47
+ to?: string;
48
+ onClick?: () => void;
49
+ danger?: boolean;
50
+ divider?: true;
51
+ }[];
11
52
  menuClassName?: string;
12
- toggleClassName: any;
13
- trigger: any;
53
+ linkComponent?: import('react').ElementType;
54
+ children?: import('react').ReactNode;
55
+ trigger?: import('react').ReactNode;
14
56
  }): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Form action footer — a sticky or inline controls row at a form's end.
3
+ *
4
+ * Typically holds submit/cancel buttons; can be fixed to the viewport bottom
5
+ * with a top border and surface background. Supports alignment: trailing
6
+ * (end, default), leading (start), or space-between for a submit/cancel pair.
7
+ *
8
+ * @param {object} props
9
+ * @param {import('react').ReactNode} props.children The action buttons.
10
+ * @param {boolean} [props.sticky=false] Stick to viewport bottom with border + background.
11
+ * @param {"end"|"start"|"between"} [props.align="end"] Alignment of children.
12
+ * @param {string} [props.className]
13
+ */
14
+ export default function AppFormActions({ children, sticky, align, className, ...rest }: {
15
+ children: import('react').ReactNode;
16
+ sticky?: boolean;
17
+ align?: "end" | "start" | "between";
18
+ className?: string;
19
+ }): import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Form row — a grid of input columns, responsive.
3
+ *
4
+ * Wraps form fields in a CSS grid with configurable columns (1, 2, or 3).
5
+ * Automatically collapses to 1 column below the md breakpoint. Uses theme gap
6
+ * tokens for consistent field spacing.
7
+ *
8
+ * @param {object} props
9
+ * @param {import('react').ReactNode} props.children Field components (AppInput, AppSelect, etc.).
10
+ * @param {1|2|3} [props.columns=2] Number of columns.
11
+ * @param {string} [props.className]
12
+ */
13
+ export default function AppFormRow({ children, columns, className, ...rest }: {
14
+ children: import('react').ReactNode;
15
+ columns?: 1 | 2 | 3;
16
+ className?: string;
17
+ }): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Form section — a logical group within a form, with an optional title and description.
3
+ *
4
+ * Wraps a set of related fields with a section heading and intro text. Useful for
5
+ * breaking large forms into digestible chunks. The body receives the fields; the
6
+ * heading is outside so it stacks above the first field without wrapping it.
7
+ *
8
+ * @param {object} props
9
+ * @param {import('react').ReactNode} props.children The form fields.
10
+ * @param {import('react').ReactNode} [props.title] Section heading (h3).
11
+ * @param {import('react').ReactNode} [props.description] Intro text below the title (optional).
12
+ * @param {string} [props.className]
13
+ */
14
+ export default function AppFormSection({ children, title, description, className, ...rest }: {
15
+ children: import('react').ReactNode;
16
+ title?: import('react').ReactNode;
17
+ description?: import('react').ReactNode;
18
+ className?: string;
19
+ }): import("react").JSX.Element;
@@ -18,9 +18,10 @@
18
18
  * @param {boolean} [props.inline=false] Put the icon beside the text instead of above it.
19
19
  * @param {boolean} [props.attention=false] Marks the tile as needing action (warning-tinted).
20
20
  * @param {string} [props.href] Renders the whole tile as a link to this URL.
21
+ * @param {import('react').ElementType} [props.linkComponent] Router link; receives `to` instead of `href`.
21
22
  * @param {string} [props.className]
22
23
  */
23
- export default function AppKpiTile({ label, value, icon, iconTone, delta, deltaDirection, sparkline, variant, size, inline, attention, href, className, ...rest }: {
24
+ export default function AppKpiTile({ label, value, icon, iconTone, delta, deltaDirection, sparkline, variant, size, inline, attention, href, linkComponent: Link, className, ...rest }: {
24
25
  label: string;
25
26
  value: import('react').ReactNode;
26
27
  icon?: string | import('react').ReactNode;
@@ -33,5 +34,6 @@ export default function AppKpiTile({ label, value, icon, iconTone, delta, deltaD
33
34
  inline?: boolean;
34
35
  attention?: boolean;
35
36
  href?: string;
37
+ linkComponent?: import('react').ElementType;
36
38
  className?: string;
37
39
  }): import("react").JSX.Element;
@@ -0,0 +1,32 @@
1
+ /**
2
+ * A meter — a scalar measurement within a known range (disk usage, a score, remaining quota).
3
+ * Unlike AppProgress (a task advancing over time) this is `role="meter"`; given `low`/`high`
4
+ * thresholds it auto-tones green/amber/red by which end is `optimum`. It shares AppProgress's
5
+ * bar, and renders identically to the Razor `<app-meter>`.
6
+ *
7
+ * @param {object} props
8
+ * @param {number} props.value The measurement (min…max); clamped into range.
9
+ * @param {number} [props.min=0]
10
+ * @param {number} [props.max=100]
11
+ * @param {'info'|'success'|'warning'|'danger'|'neutral'} [props.tone='info'] Fallback fill when no thresholds.
12
+ * @param {'high'|'low'} [props.optimum='high'] Which end is good — `high` = bigger is better.
13
+ * @param {number} [props.low] At-or-below this value is the low zone.
14
+ * @param {number} [props.high] At-or-above this value is the high zone.
15
+ * @param {'sm'|'md'} [props.size='md'] Bar thickness.
16
+ * @param {string} [props.label] Accessible name; also shown in the bar when `showLabel`.
17
+ * @param {boolean} [props.showLabel=false]
18
+ * @param {string} [props.className]
19
+ */
20
+ export default function AppMeter({ value, min, max, tone, optimum, low, high, size, label, showLabel, className, ...rest }: {
21
+ value: number;
22
+ min?: number;
23
+ max?: number;
24
+ tone?: 'info' | 'success' | 'warning' | 'danger' | 'neutral';
25
+ optimum?: 'high' | 'low';
26
+ low?: number;
27
+ high?: number;
28
+ size?: 'sm' | 'md';
29
+ label?: string;
30
+ showLabel?: boolean;
31
+ className?: string;
32
+ }): import("react").JSX.Element;
@@ -18,12 +18,14 @@
18
18
  * @param {'center'|'top'} [props.placement='center'] Vertical placement of the card —
19
19
  * centred (default) or pinned near the top of the viewport.
20
20
  * @param {boolean} [props.hideHeader=false]
21
+ * @param {string} [props.ariaLabel] Accessible dialog name when `title` isn't a plain string
22
+ * (a node title, or a hideHeader dialog) — without one the dialog is unnamed to AT.
21
23
  * @param {boolean} [props.staticBackdrop=false] When true, the backdrop click and Escape
22
- * key no longer close the dialog — only an explicit close action can (BUG-06649).
24
+ * key no longer close the dialog — only an explicit close action can.
23
25
  * @param {string} [props.className] Extra classes on the modal card.
24
26
  * @param {import('react').ReactNode} props.children
25
27
  */
26
- export default function AppModal({ open, eyebrow, title, subtitle, headerIcon, tone, dismissible, onClose, footer, size, placement, hideHeader, staticBackdrop, className, children, ...rest }: {
28
+ export default function AppModal({ open, eyebrow, title, subtitle, headerIcon, tone, dismissible, onClose, footer, size, placement, hideHeader, staticBackdrop, ariaLabel, className, children, ...rest }: {
27
29
  open: boolean;
28
30
  eyebrow?: import('react').ReactNode;
29
31
  title?: import('react').ReactNode;
@@ -36,6 +38,7 @@ export default function AppModal({ open, eyebrow, title, subtitle, headerIcon, t
36
38
  size?: 'sm' | 'md' | 'lg' | 'xl' | number;
37
39
  placement?: 'center' | 'top';
38
40
  hideHeader?: boolean;
41
+ ariaLabel?: string;
39
42
  staticBackdrop?: boolean;
40
43
  className?: string;
41
44
  children: import('react').ReactNode;
@@ -20,26 +20,10 @@ import '@webority/ui-elements';
20
20
  * @param {string} [props.error]
21
21
  * @param {string} [props.hint]
22
22
  * @param {boolean} [props.required]
23
+ * @param {import('react').ReactNode} [props.help] Help content shown in an info tip beside the label.
24
+ * @param {string} [props.helpLabel="More information"] Accessible name for that info tip.
23
25
  * @param {string} [props.fieldClassName]
26
+ * @param {import('react').Ref} [ref]
24
27
  */
25
- export default function AppMultiSelect({ values, onChange, options, placeholder, searchPlaceholder, searchable, disabled, icon, size, collapseChips, name, label, error, hint, required, fieldClassName, ...rest }: {
26
- values?: string[];
27
- onChange?: (values: string[]) => void;
28
- options?: {
29
- value: string;
30
- label: string;
31
- }[];
32
- placeholder?: string;
33
- searchPlaceholder?: string;
34
- searchable?: boolean;
35
- disabled?: boolean;
36
- icon?: string;
37
- size?: 'sm' | 'lg';
38
- collapseChips?: boolean;
39
- name?: string;
40
- label?: import('react').ReactNode;
41
- error?: string;
42
- hint?: string;
43
- required?: boolean;
44
- fieldClassName?: string;
45
- }): import("react").JSX.Element;
28
+ declare const AppMultiSelect: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
29
+ export default AppMultiSelect;
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Numeric field with ±/step stepper buttons, min/max clamping, and precision rounding.
3
+ * Mirrors the AppInput field-shell pattern (label/error/hint/required/aria wiring) exactly.
4
+ *
5
+ * Forwards `ref` to the underlying input, supporting react-hook-form spread.
6
+ *
7
+ * Behavior:
8
+ * - Displays as a text input (inputmode decimal when precision > 0, numeric otherwise)
9
+ * - Stepper buttons (−/+) increment/decrement by step, clamped to min/max
10
+ * - Typing free text: emits parsed number on change; '' on blur if unparsable or empty
11
+ * - Keyboard ArrowUp/ArrowDown increment/decrement (respects step and bounds)
12
+ * - Rounding to the specified precision
13
+ * - Buttons disabled at min/max or when the control is disabled
14
+ *
15
+ * @param {object} props
16
+ * @param {number|''} [props.value]
17
+ * @param {(next: number|'') => void} [props.onChange]
18
+ * @param {import('react').ReactNode} [props.label]
19
+ * @param {boolean} [props.required=false]
20
+ * @param {string} [props.error]
21
+ * @param {string} [props.hint]
22
+ * @param {number} [props.min] Minimum value (inclusive)
23
+ * @param {number} [props.max] Maximum value (inclusive)
24
+ * @param {number} [props.step=1] Increment by this amount
25
+ * @param {number} [props.precision=0] Number of decimal places to round to
26
+ * @param {string} [props.unit] Unit suffix displayed inside the field (e.g. "kg", "°C")
27
+ * @param {string} [props.size="md"] Control size — sm/md/lg
28
+ * @param {string} [props.id]
29
+ * @param {string} [props.name]
30
+ * @param {string} [props.className]
31
+ * @param {string} [props.fieldClassName]
32
+ * @param {boolean} [props.disabled=false]
33
+ * @param {import('react').Ref<HTMLInputElement>} [ref]
34
+ */
35
+ declare const AppNumberInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
36
+ export default AppNumberInput;
@@ -1,7 +1,16 @@
1
- export default function AppPageHeader({ title, subtitle, actions, className, ...rest }: {
1
+ export default function AppPageHeader({ title, subtitle, eyebrow, icon, tone, status, breadcrumbs, actions, size, align, divider, sticky, className, ...rest }: {
2
2
  [x: string]: any;
3
3
  actions: any;
4
+ align?: string;
5
+ breadcrumbs: any;
4
6
  className?: string;
7
+ divider?: boolean;
8
+ eyebrow: any;
9
+ icon: any;
10
+ size?: string;
11
+ status: any;
12
+ sticky?: boolean;
5
13
  subtitle: any;
6
14
  title: any;
15
+ tone?: string;
7
16
  }): import("react").JSX.Element;