@webority/ui-react 0.7.1 → 0.7.2

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.
@@ -0,0 +1,32 @@
1
+ /**
2
+ * The loading / error / empty / content switcher every screen that fetches data needs
3
+ * (react.md's "Shared AsyncBlock"). React-only by design: Razor is server-rendered, so a
4
+ * page model already knows whether it has data by the time it renders — there is no
5
+ * client-side loading/error state to switch on, and so no `<app-async-block>` counterpart.
6
+ *
7
+ * Precedence is fixed: `loading` wins over everything, then `error`, then `empty`, then
8
+ * `children`. A fetch that is simultaneously loading and holding a stale error only shows
9
+ * the loading state, which is the least surprising reading of "still in flight".
10
+ *
11
+ * @param {object} props
12
+ * @param {boolean} [props.loading=false] Show the skeleton (or spinner) instead of content.
13
+ * @param {string|import('react').ReactNode} [props.error] An error to show in place of content.
14
+ * Falsy (including `null`/`undefined`) means no error.
15
+ * @param {boolean} [props.empty=false] Show the empty state instead of content — the fetch
16
+ * succeeded with nothing to display.
17
+ * @param {import('react').ReactNode} props.children Real content, shown once loaded,
18
+ * error-free and non-empty.
19
+ * @param {() => void} [props.onRetry] Shown as a Retry button on the error state when set.
20
+ * @param {import('react').ReactNode} [props.skeleton] Loading placeholder shaped like the
21
+ * content. Falls back to a centered `AppSpinner` when omitted.
22
+ * @param {string} [props.className] Extra classes on the wrapper.
23
+ */
24
+ export default function AppAsyncBlock({ loading, error, empty, children, onRetry, skeleton, className, ...rest }: {
25
+ loading?: boolean;
26
+ error?: string | import('react').ReactNode;
27
+ empty?: boolean;
28
+ children: import('react').ReactNode;
29
+ onRetry?: () => void;
30
+ skeleton?: import('react').ReactNode;
31
+ className?: string;
32
+ }): import("react").JSX.Element;
@@ -10,7 +10,9 @@ import '@webority/ui-elements';
10
10
  *
11
11
  * @param {object} props
12
12
  * @param {string} [props.value] Selected option value.
13
- * @param {(value: string) => void} [props.onChange]
13
+ * @param {(value: string, meta?: { isCustom: boolean }) => void} [props.onChange] The second
14
+ * argument reports whether the commit was a freeform entry (`allowCustom`) rather than a
15
+ * listed option — existing callers reading only the first argument are unaffected.
14
16
  * @param {{value: string, label: string}[]} [props.options] Static options.
15
17
  * @param {(query: string) => Promise<{value: string, label: string}[]>} [props.loadOptions] Remote loader.
16
18
  * @param {string} [props.placeholder]
@@ -18,6 +20,10 @@ import '@webority/ui-elements';
18
20
  * @param {number} [props.debounce] Debounce ms for remote search (default 250).
19
21
  * @param {boolean} [props.disabled]
20
22
  * @param {'sm'|'lg'} [props.size] Control size around the default.
23
+ * @param {boolean} [props.allowCustom] When the typed text matches no option and the user
24
+ * commits (Enter, or blur with text), offers it as its own selectable "Add "…"" row and,
25
+ * once picked, commits that raw text as the value with `onChange`'s second argument
26
+ * reporting `{ isCustom: true }`.
21
27
  * @param {string} [props.name]
22
28
  * @param {import('react').ReactNode} [props.label]
23
29
  * @param {string} [props.error]
@@ -25,9 +31,11 @@ import '@webority/ui-elements';
25
31
  * @param {boolean} [props.required]
26
32
  * @param {string} [props.fieldClassName]
27
33
  */
28
- export default function AppAutocomplete({ value, onChange, options, loadOptions, placeholder, minChars, debounce, disabled, size, name, label, error, hint, required, fieldClassName, ...rest }: {
34
+ export default function AppAutocomplete({ value, onChange, options, loadOptions, placeholder, minChars, debounce, disabled, size, allowCustom, name, label, error, hint, required, fieldClassName, ...rest }: {
29
35
  value?: string;
30
- onChange?: (value: string) => void;
36
+ onChange?: (value: string, meta?: {
37
+ isCustom: boolean;
38
+ }) => void;
31
39
  options?: {
32
40
  value: string;
33
41
  label: string;
@@ -41,6 +49,7 @@ export default function AppAutocomplete({ value, onChange, options, loadOptions,
41
49
  debounce?: number;
42
50
  disabled?: boolean;
43
51
  size?: 'sm' | 'lg';
52
+ allowCustom?: boolean;
44
53
  name?: string;
45
54
  label?: import('react').ReactNode;
46
55
  error?: string;
@@ -14,7 +14,7 @@
14
14
  * @param {import('react').ReactNode} [props.children]
15
15
  * @param {"neutral"|"primary"|"success"|"warning"|"danger"|"info"} [props.tone="neutral"]
16
16
  * @param {"sm"|"md"} [props.size="md"]
17
- * @param {string} [props.leadingIcon] Iconsax/Bootstrap icon name for a leading glyph.
17
+ * @param {string} [props.leadingIcon] Bootstrap Icons name for a leading glyph.
18
18
  * @param {string|import('react').ReactNode} [props.avatar] Leading avatar — an image URL or a node.
19
19
  * @param {() => void} [props.onRemove] Present → shows the dismiss ✕.
20
20
  * @param {() => void} [props.onClick] Present → the chip body is clickable.
@@ -17,8 +17,10 @@
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
19
  * click and Escape no longer close the dialog (BUG-06649).
20
+ * @param {'center'|'top'} [props.placement='center'] Vertical placement of the card,
21
+ * forwarded to AppModal — centred (default) or pinned near the top.
20
22
  */
21
- export default function AppConfirmDialog({ open, title, message, confirmLabel, cancelLabel, danger, tone, confirmPhrase, onConfirm, onClose, loading, staticBackdrop, ...rest }: {
23
+ export default function AppConfirmDialog({ open, title, message, confirmLabel, cancelLabel, danger, tone, confirmPhrase, onConfirm, onClose, loading, staticBackdrop, placement, ...rest }: {
22
24
  open: boolean;
23
25
  title: string;
24
26
  message?: import('react').ReactNode;
@@ -31,4 +33,5 @@ export default function AppConfirmDialog({ open, title, message, confirmLabel, c
31
33
  onClose: () => void;
32
34
  loading?: boolean;
33
35
  staticBackdrop?: boolean;
36
+ placement?: 'center' | 'top';
34
37
  }): import("react").JSX.Element;
@@ -1,7 +1,8 @@
1
- export default function AppDropdown({ icon, iconSize, toggleClassName, label, ariaLabel, align, items, menuClassName, linkComponent, ...rest }: {
1
+ export default function AppDropdown({ icon, iconSize, toggleClassName, label, ariaLabel, align, items, menuClassName, linkComponent, children, ...rest }: {
2
2
  [x: string]: any;
3
3
  align?: string;
4
4
  ariaLabel: any;
5
+ children: any;
5
6
  icon: any;
6
7
  iconSize: any;
7
8
  items?: any[];
@@ -10,7 +10,7 @@
10
10
  * the tighter widget/tile variant (smaller title + text).
11
11
  *
12
12
  * @param {object} props
13
- * @param {string} props.icon Iconsax name for the bubble
13
+ * @param {string} props.icon Bootstrap Icons name for the bubble
14
14
  * @param {number} [props.iconSize=24]
15
15
  * @param {"md"|"sm"} [props.size="md"]
16
16
  * @param {import('react').ReactNode} props.title
@@ -1,5 +1,6 @@
1
- export default function AppInfoTip({ label, children, ...rest }: {
1
+ export default function AppInfoTip({ label, children, placement, ...rest }: {
2
2
  [x: string]: any;
3
3
  children: any;
4
4
  label: any;
5
+ placement?: string;
5
6
  }): import("react").JSX.Element;
@@ -8,15 +8,18 @@
8
8
  * @param {string} [props.icon] Icon name for the leading tile.
9
9
  * @param {import('react').ReactNode} [props.delta] Change text, e.g. "12% vs last month".
10
10
  * @param {'up'|'down'|'flat'} [props.deltaDirection='flat'] Colours the delta and picks its arrow.
11
+ * @param {'plain'|'filled'|'accent'} [props.variant='plain'] The tile surface: plain (today's
12
+ * bordered card), filled (a subtle surface fill), accent (a brand-tinted fill).
11
13
  * @param {boolean} [props.inline=false] Put the icon beside the text instead of above it.
12
14
  * @param {string} [props.className]
13
15
  */
14
- export default function AppKpiTile({ label, value, icon, delta, deltaDirection, inline, className, ...rest }: {
16
+ export default function AppKpiTile({ label, value, icon, delta, deltaDirection, variant, inline, className, ...rest }: {
15
17
  label: string;
16
18
  value: import('react').ReactNode;
17
19
  icon?: string;
18
20
  delta?: import('react').ReactNode;
19
21
  deltaDirection?: 'up' | 'down' | 'flat';
22
+ variant?: 'plain' | 'filled' | 'accent';
20
23
  inline?: boolean;
21
24
  className?: string;
22
25
  }): import("react").JSX.Element;
@@ -3,34 +3,38 @@
3
3
  *
4
4
  * @param {object} props
5
5
  * @param {boolean} props.open
6
+ * @param {import('react').ReactNode} [props.eyebrow] A small kicker label above the title.
6
7
  * @param {import('react').ReactNode} [props.title]
7
8
  * @param {import('react').ReactNode} [props.subtitle]
8
- * @param {string} [props.headerIcon] Iconsax name
9
+ * @param {string} [props.headerIcon] Bootstrap Icons name
10
+ * @param {'default'|'danger'|'success'|'warning'} [props.tone='default'] Tints the header icon
11
+ * and eyebrow to signal intent — a destructive or a success dialog reads it from the header.
12
+ * @param {boolean} [props.dismissible=true] Show the header close (×) button. Pair with
13
+ * `staticBackdrop` for a forced-choice dialog with no way out but an explicit action.
9
14
  * @param {() => void} props.onClose
10
15
  * @param {import('react').ReactNode} [props.footer]
11
- * @param {"sm"|"lg"|"xl"} [props.size] Bootstrap dialog width. Razor's `<app-modal>` has
12
- * taken this since it shipped; React did not, so the same markup could not be written
13
- * on both surfaces. `bootstrap-ui.md` lists `size` as part of AppModal's contract.
14
- * @param {boolean} [props.wide=false]
15
- * @param {boolean} [props.side=false]
16
- * @param {number|string} [props.maxWidth]
16
+ * @param {'sm'|'md'|'lg'|'xl'|number} [props.size='md'] Card width — a preset, or an exact
17
+ * max-width in px for a custom size.
18
+ * @param {'center'|'top'} [props.placement='center'] Vertical placement of the card —
19
+ * centred (default) or pinned near the top of the viewport.
17
20
  * @param {boolean} [props.hideHeader=false]
18
21
  * @param {boolean} [props.staticBackdrop=false] When true, the backdrop click and Escape
19
22
  * key no longer close the dialog — only an explicit close action can (BUG-06649).
20
- * @param {string} [props.className]
23
+ * @param {string} [props.className] Extra classes on the modal card.
21
24
  * @param {import('react').ReactNode} props.children
22
25
  */
23
- export default function AppModal({ open, title, subtitle, headerIcon, onClose, footer, size, wide, side, maxWidth, hideHeader, staticBackdrop, className, children, ...rest }: {
26
+ export default function AppModal({ open, eyebrow, title, subtitle, headerIcon, tone, dismissible, onClose, footer, size, placement, hideHeader, staticBackdrop, className, children, ...rest }: {
24
27
  open: boolean;
28
+ eyebrow?: import('react').ReactNode;
25
29
  title?: import('react').ReactNode;
26
30
  subtitle?: import('react').ReactNode;
27
31
  headerIcon?: string;
32
+ tone?: 'default' | 'danger' | 'success' | 'warning';
33
+ dismissible?: boolean;
28
34
  onClose: () => void;
29
35
  footer?: import('react').ReactNode;
30
- size?: "sm" | "lg" | "xl";
31
- wide?: boolean;
32
- side?: boolean;
33
- maxWidth?: number | string;
36
+ size?: 'sm' | 'md' | 'lg' | 'xl' | number;
37
+ placement?: 'center' | 'top';
34
38
  hideHeader?: boolean;
35
39
  staticBackdrop?: boolean;
36
40
  className?: string;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * A scroll container with a thin, themed scrollbar in place of the browser's default chunky one.
3
+ * Pure CSS — native scrolling, keyboard navigation and in-page anchoring are untouched; only the
4
+ * visible track is restyled, via the `.wui-scroll` rules in `@webority/theme`. No JavaScript and
5
+ * no dependency: the thin overlay look comes from native `scrollbar-width` / `::-webkit-scrollbar`.
6
+ *
7
+ * React-only by design so far: a Razor `<app-scrollbar>` would just apply the same `.wui-scroll`
8
+ * class, so this is "not ported yet", not "cannot be ported".
9
+ *
10
+ * @param {object} props
11
+ * @param {import('react').ReactNode} props.children The scrollable content.
12
+ * @param {string} [props.className] Extra classes on the scroll container.
13
+ * @param {number|string} [props.maxHeight] Caps the container height so content overflows and
14
+ * scrolls. A number is treated as pixels.
15
+ * @param {object} [props.style] Extra inline styles, merged with maxHeight.
16
+ */
17
+ export default function AppScrollbar({ children, className, maxHeight, style, ...rest }: {
18
+ children: import('react').ReactNode;
19
+ className?: string;
20
+ maxHeight?: number | string;
21
+ style?: object;
22
+ }): import("react").JSX.Element;
@@ -12,7 +12,10 @@
12
12
  * posts inside a plain form with no JavaScript.
13
13
  *
14
14
  * @param {object} props
15
- * @param {{ value: string, label: string, icon?: string, disabled?: boolean }[]} props.options
15
+ * @param {{ value: string, label: string, note?: string, icon?: string, disabled?: boolean }[]} props.options
16
+ * `note` renders as a smaller, muted sub-line under the label — a supporting detail
17
+ * ("Last 7 days") without shrinking the label itself. Optional; segments without one are
18
+ * unaffected.
16
19
  * @param {string} props.value The selected option's value.
17
20
  * @param {(value: string) => void} props.onChange
18
21
  * @param {string} props.label Accessible name for the group.
@@ -26,6 +29,7 @@ export default function AppSegmented({ options, value, onChange, label, name, si
26
29
  options: {
27
30
  value: string;
28
31
  label: string;
32
+ note?: string;
29
33
  icon?: string;
30
34
  disabled?: boolean;
31
35
  }[];
@@ -1,3 +1,44 @@
1
+ export type NavItemShape = {
2
+ key?: string;
3
+ label: string;
4
+ /**
5
+ * Bootstrap Icons name for the row's leading glyph.
6
+ */
7
+ icon?: string;
8
+ href: string;
9
+ /**
10
+ * A count or short status at the row's end.
11
+ */
12
+ badge?: import('react').ReactNode;
13
+ /**
14
+ * Tints the badge for an alert count.
15
+ */
16
+ badgeTone?: 'danger' | 'success' | 'warning';
17
+ /**
18
+ * A right-aligned secondary glyph (lock, external arrow, new dot).
19
+ */
20
+ trailingIcon?: string;
21
+ /**
22
+ * The current page — takes the brand tint + aria-current.
23
+ */
24
+ active?: boolean;
25
+ /**
26
+ * Sub-items — the row becomes an expandable parent.
27
+ */
28
+ children?: NavItemShape[];
29
+ };
30
+ /**
31
+ * @typedef {object} NavItemShape
32
+ * @property {string} [key]
33
+ * @property {string} label
34
+ * @property {string} [icon] Bootstrap Icons name for the row's leading glyph.
35
+ * @property {string} href
36
+ * @property {import('react').ReactNode} [badge] A count or short status at the row's end.
37
+ * @property {'danger'|'success'|'warning'} [badgeTone] Tints the badge for an alert count.
38
+ * @property {string} [trailingIcon] A right-aligned secondary glyph (lock, external arrow, new dot).
39
+ * @property {boolean} [active] The current page — takes the brand tint + aria-current.
40
+ * @property {NavItemShape[]} [children] Sub-items — the row becomes an expandable parent.
41
+ */
1
42
  /**
2
43
  * The persistent frame every authenticated portal sits inside — a sidebar of
3
44
  * navigation, a sticky topbar, the routed content, and an optional footer.
@@ -11,8 +52,7 @@
11
52
  * `to`; without it they render as plain `<a href>`, which is what Razor emits.
12
53
  *
13
54
  * @param {object} props
14
- * @param {{ label?: string, items: { key?: string, label: string, icon?: string, href: string,
15
- * badge?: import('react').ReactNode, active?: boolean }[] }[]} props.groups Nav groups, in order.
55
+ * @param {{ label?: string, items: NavItemShape[] }[]} props.groups Nav groups, in order.
16
56
  * Groups after the first are separated by a rule.
17
57
  * @param {import('react').ReactNode} [props.brand] The logo row at the top of the sidebar.
18
58
  * @param {import('react').ReactNode} [props.sidebarFooter] Pinned below the scrolling nav.
@@ -29,14 +69,7 @@
29
69
  export default function AppShell({ groups, brand, sidebarFooter, topbarStart, topbarEnd, footer, children, collapsed, onCollapsedChange, noSidebar, navLabel, linkComponent: Link, className, ...rest }: {
30
70
  groups: {
31
71
  label?: string;
32
- items: {
33
- key?: string;
34
- label: string;
35
- icon?: string;
36
- href: string;
37
- badge?: import('react').ReactNode;
38
- active?: boolean;
39
- }[];
72
+ items: NavItemShape[];
40
73
  }[];
41
74
  brand?: import('react').ReactNode;
42
75
  sidebarFooter?: import('react').ReactNode;
@@ -1,6 +1,18 @@
1
+ /**
2
+ * A themed loading spinner — Bootstrap's `.spinner-border`, tinted by the theme.
3
+ * The React counterpart of `<app-spinner>`.
4
+ *
5
+ * For a whole section that is loading, prefer `AppSkeleton` — a content-shaped
6
+ * placeholder reads better than a spinner above the fold.
7
+ *
8
+ * @param {object} props
9
+ * @param {'sm'|'md'|number} [props.size='md'] A preset, or an exact diameter in px — pass any
10
+ * positive number so the spinner matches whatever it sits in; the border scales with it.
11
+ * @param {string} [props.label='Loading'] Accessible name.
12
+ * @param {string} [props.className]
13
+ */
1
14
  export default function AppSpinner({ size, label, className, ...rest }: {
2
- [x: string]: any;
3
- className?: string;
15
+ size?: 'sm' | 'md' | number;
4
16
  label?: string;
5
- size?: string;
17
+ className?: string;
6
18
  }): import("react").JSX.Element;
@@ -1,8 +1,32 @@
1
- export default function AppSplash({ logo, initials, text, label, className, ...rest }: {
2
- [x: string]: any;
3
- className?: string;
4
- initials: any;
1
+ /**
2
+ * The full-viewport boot screen shown while the app resolves its session, before
3
+ * the first route can render — the thing `ApplicationNavigator` returns while
4
+ * `authStatus` is still unresolved.
5
+ *
6
+ * Without it the app flashes the login screen at an already-authenticated user for
7
+ * the length of one session check.
8
+ *
9
+ * The indicator is indeterminate, not a progress value: boot has no measurable
10
+ * percentage, and something that appears to measure one would be lying. Pick its
11
+ * style with `variant` (a sweeping bar, a spinning ring, or bouncing dots).
12
+ *
13
+ * @param {object} props
14
+ * @param {import('react').ReactNode} [props.logo] Brand mark — an `<img>` or an SVG.
15
+ * @param {string} [props.initials] Fallback mark when there is no logo.
16
+ * @param {string} [props.text] One line, e.g. "Signing you in…".
17
+ * @param {string} [props.subtext] A quieter second line under the text.
18
+ * @param {'bar'|'ring'|'dots'} [props.variant='bar'] The indeterminate boot indicator.
19
+ * @param {'sm'|'md'|'lg'|number} [props.size='md'] Mark size — a preset or an exact px diameter.
20
+ * @param {string} [props.label='Loading'] Accessible name for the live region.
21
+ * @param {string} [props.className]
22
+ */
23
+ export default function AppSplash({ logo, initials, text, subtext, variant, size, label, className, ...rest }: {
24
+ logo?: import('react').ReactNode;
25
+ initials?: string;
26
+ text?: string;
27
+ subtext?: string;
28
+ variant?: 'bar' | 'ring' | 'dots';
29
+ size?: 'sm' | 'md' | 'lg' | number;
5
30
  label?: string;
6
- logo: any;
7
- text: any;
31
+ className?: string;
8
32
  }): import("react").JSX.Element;
@@ -17,8 +17,11 @@
17
17
  * @param {(page: number) => void} props.onPageChange
18
18
  * @param {(size: number) => void} props.onPageSizeChange
19
19
  * @param {number[]} [props.pageSizes]
20
+ * @param {'prev-next'|'numbered'} [props.mode='prev-next'] prev-next (default) is the arrows-
21
+ * only nav above. numbered inserts windowed page buttons — first/last plus an ellipsis over
22
+ * any run of hidden pages — between the arrows.
20
23
  */
21
- export default function AppTablePagination({ page, totalPages, pageSize, total, firstRow, lastRow, onPageChange, onPageSizeChange, pageSizes, ...rest }: {
24
+ export default function AppTablePagination({ page, totalPages, pageSize, total, firstRow, lastRow, onPageChange, onPageSizeChange, pageSizes, mode, ...rest }: {
22
25
  page: number;
23
26
  totalPages: number;
24
27
  pageSize: number;
@@ -28,4 +31,5 @@ export default function AppTablePagination({ page, totalPages, pageSize, total,
28
31
  onPageChange: (page: number) => void;
29
32
  onPageSizeChange: (size: number) => void;
30
33
  pageSizes?: number[];
34
+ mode?: 'prev-next' | 'numbered';
31
35
  }): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Mounts once near the app root and renders whatever toast()/errorToast() raise. Everything —
3
+ * auto-dismiss, the ARIA live region, the slide/fade — comes from react-bootstrap's Toast, so
4
+ * there is no toast library and no bespoke stylesheet; the look is Bootstrap + the shared theme.
5
+ *
6
+ * @param {object} props
7
+ * @param {'top-start'|'top-center'|'top-end'|'middle-center'|'bottom-start'|'bottom-center'|'bottom-end'} [props.position='bottom-end']
8
+ * @param {number} [props.autoDismiss=5000] Milliseconds a toast stays before it fades itself out.
9
+ */
10
+ export default function AppToastContainer({ position, autoDismiss }: {
11
+ position?: 'top-start' | 'top-center' | 'top-end' | 'middle-center' | 'bottom-start' | 'bottom-center' | 'bottom-end';
12
+ autoDismiss?: number;
13
+ }): import("react").JSX.Element;
@@ -1,4 +1,18 @@
1
1
  export declare const iconNames: string[];
2
+ /**
3
+ * Register product-specific glyphs — call once at app init, before first render. Each value is a
4
+ * render function `({ size, color, className, style }) => ReactNode` that returns your own glyph
5
+ * (e.g. an iconsax Bulk component) applied to those props. A registered name wins over the
6
+ * built-in Bootstrap-Icon map; every unregistered name still resolves to Bootstrap Icons.
7
+ *
8
+ * @param {Record<string, (props: { size: number, color?: string, className?: string, style?: object }) => import('react').ReactNode>} map
9
+ */
10
+ export declare function registerIcons(map: Record<string, (props: {
11
+ size: number;
12
+ color?: string;
13
+ className?: string;
14
+ style?: object;
15
+ }) => import('react').ReactNode>): void;
2
16
  export default function Icon({ name, size, className, color, style, ...rest }: {
3
17
  [x: string]: any;
4
18
  className: any;
@@ -6,4 +20,4 @@ export default function Icon({ name, size, className, color, style, ...rest }: {
6
20
  name: any;
7
21
  size?: number;
8
22
  style: any;
9
- }): import("react").JSX.Element;
23
+ }): any;
@@ -0,0 +1,9 @@
1
+ /** Subscribe to the active-toast list. Calls back immediately, and returns an unsubscribe fn. */
2
+ export declare function subscribeToasts(listener: any): () => boolean;
3
+ /**
4
+ * Raise a toast. De-duped by `variant:message` while one is still on screen, so a burst of the
5
+ * same failure (many in-flight requests, a retry) shows once instead of stacking copies.
6
+ */
7
+ export declare function pushToast(message: any, variant: any): void;
8
+ /** Remove a toast — its auto-dismiss timer fired, or the user closed it. */
9
+ export declare function dismissToast(id: any): void;
@@ -1,6 +1,7 @@
1
1
  export { default as ActionIcon } from './components/ActionIcon.jsx';
2
2
  export { default as AppAccordion } from './components/AppAccordion.jsx';
3
3
  export { default as AppAlert } from './components/AppAlert.jsx';
4
+ export { default as AppAsyncBlock } from './components/AppAsyncBlock.jsx';
4
5
  export { default as AppAutocomplete } from './components/AppAutocomplete.jsx';
5
6
  export { default as AppAvatar } from './components/AppAvatar.jsx';
6
7
  export { default as AppBadge } from './components/AppBadge.jsx';
@@ -35,6 +36,7 @@ export { default as AppPricingCard } from './components/AppPricingCard.jsx';
35
36
  export { default as AppRadio } from './components/AppRadio.jsx';
36
37
  export { default as AppRepeater } from './components/AppRepeater.jsx';
37
38
  export { default as AppResourceCard } from './components/AppResourceCard.jsx';
39
+ export { default as AppScrollbar } from './components/AppScrollbar.jsx';
38
40
  export { default as AppSearch } from './components/AppSearch.jsx';
39
41
  export { default as AppSegmented } from './components/AppSegmented.jsx';
40
42
  export { default as AppSelect } from './components/AppSelect.jsx';
@@ -52,7 +54,8 @@ export { default as AppTablePagination } from './components/AppTablePagination.j
52
54
  export { default as AppTabs } from './components/AppTabs.jsx';
53
55
  export { default as AppTextarea } from './components/AppTextarea.jsx';
54
56
  export { default as AppTimeline } from './components/AppTimeline.jsx';
55
- export { default as Icon, iconNames } from './components/Icon.jsx';
57
+ export { default as AppToastContainer } from './components/AppToastContainer.jsx';
58
+ export { default as Icon, iconNames, registerIcons } from './components/Icon.jsx';
56
59
  export { MODAL_ICONS } from './components/ModalIcons.jsx';
57
60
  export { default as RequiredMark } from './components/RequiredMark.jsx';
58
61
  export { errorToast, toast } from './components/toast.js';
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @param {number} page current page, one-based.
3
+ * @param {number} totalPages
4
+ * @param {{ siblingCount?: number, boundaryCount?: number }} [opts]
5
+ * @returns {(number|'ellipsis-left'|'ellipsis-right')[]}
6
+ */
7
+ export declare function pageWindow(page: number, totalPages: number, { siblingCount, boundaryCount }?: {
8
+ siblingCount?: number;
9
+ boundaryCount?: number;
10
+ }): (number | 'ellipsis-left' | 'ellipsis-right')[];