@webority/ui-react 0.7.6 → 0.7.8

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.
@@ -33,7 +33,7 @@ import '@webority/ui-elements';
33
33
  * @param {import('react').ReactNode} [props.help] Help content shown in an info tip beside the label.
34
34
  * @param {string} [props.helpLabel="More information"] Accessible name for that info tip.
35
35
  * @param {string} [props.fieldClassName]
36
- * @param {import('react').Ref} [ref]
36
+ * @param {import('react').Ref<HTMLElement>} [ref]
37
37
  */
38
38
  declare const AppAutocomplete: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
39
39
  export default AppAutocomplete;
@@ -13,7 +13,7 @@
13
13
  * @param {string} [props.error] Error message, rendered below the control. Replaces the hint.
14
14
  * @param {string} [props.hint] Helper text below the control. Hidden while an error is shown.
15
15
  * @param {string} [props.className]
16
- * @param {import('react').Ref} [ref]
16
+ * @param {import('react').Ref<HTMLInputElement>} [ref]
17
17
  */
18
18
  declare const AppCheckbox: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
19
19
  export default AppCheckbox;
@@ -19,8 +19,9 @@
19
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
+ * @param {string} [props.className] Merged with the dialog's own wui-confirm class.
22
23
  */
23
- export default function AppConfirmDialog({ open, title, message, confirmLabel, cancelLabel, danger, tone, confirmPhrase, onConfirm, onClose, loading, staticBackdrop, placement, ...rest }: {
24
+ export default function AppConfirmDialog({ open, title, message, confirmLabel, cancelLabel, danger, tone, confirmPhrase, onConfirm, onClose, loading, staticBackdrop, placement, className, ...rest }: {
24
25
  open: boolean;
25
26
  title: string;
26
27
  message?: import('react').ReactNode;
@@ -34,4 +35,5 @@ export default function AppConfirmDialog({ open, title, message, confirmLabel, c
34
35
  loading?: boolean;
35
36
  staticBackdrop?: boolean;
36
37
  placement?: 'center' | 'top';
38
+ className?: string;
37
39
  }): import("react").JSX.Element;
@@ -26,7 +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
+ * @param {import('react').Ref<HTMLElement>} [ref]
30
30
  */
31
31
  declare const AppDatePicker: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
32
32
  export default AppDatePicker;
@@ -27,7 +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
+ * @param {import('react').Ref<HTMLElement>} [ref]
31
31
  */
32
32
  declare const AppDateRangePicker: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
33
33
  export default AppDateRangePicker;
@@ -1,6 +1,7 @@
1
- export default function AppInfoTip({ label, children, placement, ...rest }: {
1
+ export default function AppInfoTip({ label, children, placement, className, ...rest }: {
2
2
  [x: string]: any;
3
3
  children: any;
4
+ className?: string;
4
5
  label: any;
5
6
  placement?: string;
6
7
  }): import("react").JSX.Element;
@@ -23,7 +23,7 @@ import '@webority/ui-elements';
23
23
  * @param {import('react').ReactNode} [props.help] Help content shown in an info tip beside the label.
24
24
  * @param {string} [props.helpLabel="More information"] Accessible name for that info tip.
25
25
  * @param {string} [props.fieldClassName]
26
- * @param {import('react').Ref} [ref]
26
+ * @param {import('react').Ref<HTMLElement>} [ref]
27
27
  */
28
28
  declare const AppMultiSelect: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
29
29
  export default AppMultiSelect;
@@ -2,7 +2,11 @@
2
2
  * Numeric field with ±/step stepper buttons, min/max clamping, and precision rounding.
3
3
  * Mirrors the AppInput field-shell pattern (label/error/hint/required/aria wiring) exactly.
4
4
  *
5
- * Forwards `ref` to the underlying input, supporting react-hook-form spread.
5
+ * Forwards `ref` to the underlying input. `onChange` is called with a **number** (or `''`),
6
+ * not a DOM event — react-hook-form's plain `{...register('x')}` spread expects an event and
7
+ * will not work here. Wire it with `<Controller name="x" render={({ field }) => (
8
+ * <AppNumberInput value={field.value} onChange={field.onChange} />
9
+ * )} />` instead.
6
10
  *
7
11
  * Behavior:
8
12
  * - Displays as a text input (inputmode decimal when precision > 0, numeric otherwise)
@@ -13,7 +13,7 @@
13
13
  * @param {string} [props.error] Error message, rendered below the control. Replaces the hint.
14
14
  * @param {string} [props.hint] Helper text below the control. Hidden while an error is shown.
15
15
  * @param {string} [props.className]
16
- * @param {import('react').Ref} [ref]
16
+ * @param {import('react').Ref<HTMLInputElement>} [ref]
17
17
  */
18
18
  declare const AppRadio: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
19
19
  export default AppRadio;
@@ -2,9 +2,10 @@ export type NavItemShape = {
2
2
  key?: string;
3
3
  label: string;
4
4
  /**
5
- * Bootstrap Icons name for the row's leading glyph.
5
+ * Bootstrap Icons name — or a node, so a
6
+ * product with its own content-icon set (iconsax behind a product `Icon` seam) can use it.
6
7
  */
7
- icon?: string;
8
+ icon?: string | import('react').ReactNode;
8
9
  href: string;
9
10
  /**
10
11
  * A count or short status at the row's end.
@@ -17,7 +18,7 @@ export type NavItemShape = {
17
18
  /**
18
19
  * A right-aligned secondary glyph (lock, external arrow, new dot).
19
20
  */
20
- trailingIcon?: string;
21
+ trailingIcon?: string | import('react').ReactNode;
21
22
  /**
22
23
  * The current page — takes the brand tint + aria-current.
23
24
  */
@@ -31,11 +32,12 @@ export type NavItemShape = {
31
32
  * @typedef {object} NavItemShape
32
33
  * @property {string} [key]
33
34
  * @property {string} label
34
- * @property {string} [icon] Bootstrap Icons name for the row's leading glyph.
35
+ * @property {string|import('react').ReactNode} [icon] Bootstrap Icons name — or a node, so a
36
+ * product with its own content-icon set (iconsax behind a product `Icon` seam) can use it.
35
37
  * @property {string} href
36
38
  * @property {import('react').ReactNode} [badge] A count or short status at the row's end.
37
39
  * @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).
40
+ * @property {string|import('react').ReactNode} [trailingIcon] A right-aligned secondary glyph (lock, external arrow, new dot).
39
41
  * @property {boolean} [active] The current page — takes the brand tint + aria-current.
40
42
  * @property {NavItemShape[]} [children] Sub-items — the row becomes an expandable parent.
41
43
  */
@@ -55,6 +57,12 @@ export type NavItemShape = {
55
57
  * @param {{ label?: string, items: NavItemShape[] }[]} props.groups Nav groups, in order.
56
58
  * Groups after the first are separated by a rule.
57
59
  * @param {import('react').ReactNode} [props.brand] The logo row at the top of the sidebar.
60
+ * @param {import('react').ReactNode} [props.sidebarStart] Between the brand row and the nav —
61
+ * a workspace/tenant switcher, an environment badge. Hidden on the collapsed rail.
62
+ * @param {import('react').ReactNode} [props.sidebarStartCompact] Same slot for the collapsed
63
+ * rail — typically a compact monogram control (e.g. `AppWorkspaceSwitcher compact`). Shown
64
+ * only on the desktop collapsed rail; the expanded `sidebarStart` stays hidden there. Omit
65
+ * to keep today's behaviour (nothing in that slot when collapsed).
58
66
  * @param {import('react').ReactNode} [props.sidebarFooter] Pinned below the scrolling nav.
59
67
  * @param {import('react').ReactNode} [props.topbarStart] Leading topbar slot — page title, crumbs.
60
68
  * @param {import('react').ReactNode} [props.topbarEnd] Trailing topbar slot — search, account menu.
@@ -66,12 +74,14 @@ export type NavItemShape = {
66
74
  * @param {string} [props.navLabel='Main navigation']
67
75
  * @param {string} [props.className]
68
76
  */
69
- export default function AppShell({ groups, brand, sidebarFooter, topbarStart, topbarEnd, footer, children, collapsed, onCollapsedChange, noSidebar, navLabel, linkComponent: Link, className, ...rest }: {
77
+ export default function AppShell({ groups, brand, sidebarStart, sidebarStartCompact, sidebarFooter, topbarStart, topbarEnd, footer, children, collapsed, onCollapsedChange, noSidebar, navLabel, linkComponent: Link, className, ...rest }: {
70
78
  groups: {
71
79
  label?: string;
72
80
  items: NavItemShape[];
73
81
  }[];
74
82
  brand?: import('react').ReactNode;
83
+ sidebarStart?: import('react').ReactNode;
84
+ sidebarStartCompact?: import('react').ReactNode;
75
85
  sidebarFooter?: import('react').ReactNode;
76
86
  topbarStart?: import('react').ReactNode;
77
87
  topbarEnd?: import('react').ReactNode;
@@ -31,7 +31,7 @@ import '@webority/ui-elements';
31
31
  * @param {string} [props.id]
32
32
  * @param {string} [props.ariaLabel]
33
33
  * @param {string} [props.className]
34
- * @param {import('react').Ref} [ref]
34
+ * @param {import('react').Ref<HTMLElement>} [ref]
35
35
  */
36
36
  declare const AppSlider: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
37
37
  export default AppSlider;
@@ -13,7 +13,7 @@
13
13
  * @param {string} [props.error] Error message, rendered below the control. Replaces the hint.
14
14
  * @param {string} [props.hint] Helper text below the control. Hidden while an error is shown.
15
15
  * @param {string} [props.className]
16
- * @param {import('react').Ref} [ref]
16
+ * @param {import('react').Ref<HTMLInputElement>} [ref]
17
17
  */
18
18
  declare const AppSwitch: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
19
19
  export default AppSwitch;
@@ -21,8 +21,9 @@
21
21
  * any run of hidden pages — between the arrows.
22
22
  * @param {boolean} [props.showPageSize=true] Show the "Rows per page" selector. Set false for a
23
23
  * compact pager that pages but doesn't expose page size (e.g. a dense numbered table).
24
+ * @param {string} [props.className] Merged with the component's own table-pagination class.
24
25
  */
25
- export default function AppTablePagination({ page, totalPages, pageSize, total, firstRow, lastRow, onPageChange, onPageSizeChange, pageSizes, mode, showPageSize, ...rest }: {
26
+ export default function AppTablePagination({ page, totalPages, pageSize, total, firstRow, lastRow, onPageChange, onPageSizeChange, pageSizes, mode, showPageSize, className, ...rest }: {
26
27
  page: number;
27
28
  totalPages: number;
28
29
  pageSize: number;
@@ -34,4 +35,5 @@ export default function AppTablePagination({ page, totalPages, pageSize, total,
34
35
  pageSizes?: number[];
35
36
  mode?: 'prev-next' | 'numbered';
36
37
  showPageSize?: boolean;
38
+ className?: string;
37
39
  }): import("react").JSX.Element;
@@ -22,7 +22,7 @@ import '@webority/ui-elements';
22
22
  * @param {string} [props.fieldClassName] Class to apply to the wrapper field div.
23
23
  * @param {import('react').ReactNode} [props.help] Help content shown in an info tip beside the label.
24
24
  * @param {string} [props.helpLabel="More information"] Accessible name for that info tip.
25
- * @param {import('react').Ref} [ref]
25
+ * @param {import('react').Ref<HTMLElement>} [ref]
26
26
  */
27
27
  declare const AppTagInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
28
28
  export default AppTagInput;
@@ -27,7 +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
+ * @param {import('react').Ref<HTMLElement>} [ref]
31
31
  */
32
32
  declare const AppTimePicker: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
33
33
  export default AppTimePicker;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Mounts once near the app root and renders whatever toast()/errorToast() raise — surface cards
3
+ * with a variant accent + icon, an auto-dismiss progress bar (pauses on hover/focus), and
4
+ * swipe-to-dismiss. There is no toast library; the look is Bootstrap utilities + the shared theme.
5
+ * The Razor counterpart is <app-toast> + WUI.toast, kept structurally identical.
6
+ *
7
+ * Toast options (from toast()/errorToast()): title, duration (0 = sticky), action {label,onClick},
8
+ * id (replace/refresh), and a string OR React-node message (rich body).
9
+ *
10
+ * @param {object} props
11
+ * @param {'top-start'|'top-center'|'top-end'|'middle-center'|'bottom-start'|'bottom-center'|'bottom-end'} [props.position='bottom-end']
12
+ * @param {number} [props.maxVisible=4] Most toasts shown at once; older ones collapse to a "+N more" chip.
13
+ */
14
+ export default function AppToast({ position, maxVisible }: {
15
+ position?: 'top-start' | 'top-center' | 'top-end' | 'middle-center' | 'bottom-start' | 'bottom-center' | 'bottom-end';
16
+ maxVisible?: number;
17
+ }): import("react").JSX.Element;
@@ -11,11 +11,20 @@
11
11
  * renders as written; hovering or focusing it reveals the tooltip.
12
12
  * @param {'top'|'bottom'|'start'|'end'} [props.placement='top'] Where the tooltip appears;
13
13
  * prefers the given direction, flips if needed to stay in view.
14
- * @param {string} [props.className] Class on the tooltip element.
14
+ * @param {'default'|'dark'|'primary'|'success'|'warning'|'danger'} [props.tone='default'] Preset
15
+ * colour of the tooltip. `default` is the light surface look; the others are solid tints. For
16
+ * a fully custom colour, pass a `className` whose rule sets the `--wui-tooltip-bg` /
17
+ * `--wui-tooltip-color` / `--wui-tooltip-border` / `--wui-tooltip-radius` CSS vars.
18
+ * @param {'sm'|'md'|'lg'} [props.size='md'] Preset size (font-size + padding + max-width). For a
19
+ * fully custom size, pass a `className` that sets the `--wui-tooltip-font-size` /
20
+ * `--wui-tooltip-padding-y` / `--wui-tooltip-padding-x` / `--wui-tooltip-max-width` CSS vars.
21
+ * @param {string} [props.className] Extra class on the tooltip element.
15
22
  */
16
- export default function AppTooltip({ content, children, placement, className, ...rest }: {
23
+ export default function AppTooltip({ content, children, placement, tone, size, className, ...rest }: {
17
24
  content: import('react').ReactNode;
18
25
  children: import('react').ReactElement;
19
26
  placement?: 'top' | 'bottom' | 'start' | 'end';
27
+ tone?: 'default' | 'dark' | 'primary' | 'success' | 'warning' | 'danger';
28
+ size?: 'sm' | 'md' | 'lg';
20
29
  className?: string;
21
30
  }): import("react").JSX.Element;
@@ -0,0 +1,59 @@
1
+ /**
2
+ * Tenant / workspace switcher — a react-bootstrap Dropdown wearing an identity card.
3
+ *
4
+ * Selection is a CALLBACK, never navigation: products own where a workspace switch goes
5
+ * (a route change, a reload, an API call), so `onSelect(tenant)` is all the library does.
6
+ * The footer action stays router-decoupled the same way `AppDropdown`/`AppBreadcrumbs` are —
7
+ * an `{ href }` renders through `linkComponent` when one is supplied, otherwise a plain
8
+ * anchor, and the library never imports a router.
9
+ *
10
+ * Tenant logos use `loading="lazy"` so a closed menu (renderOnMount) does not force every
11
+ * logo network fetch on first paint — the browser defers off-screen images.
12
+ *
13
+ * NOTE: the exported component must stay the FIRST destructured function in this file —
14
+ * the parity check reads the first signature it finds as the component's public props.
15
+ *
16
+ * @param {object} props
17
+ * @param {{ id: string, name: string, logoUrl?: string, badge?: string }[]} [props.tenants]
18
+ * The switchable workspaces. Razor composes the same list from `<app-workspace-option>` children.
19
+ * @param {string} [props.currentId] Id of the active workspace — drives the trigger and the tick.
20
+ * @param {(tenant: object) => void} [props.onSelect] Fired with the chosen tenant. No navigation.
21
+ * @param {string} [props.menuLabel] Optional header label above the list ("Workspaces").
22
+ * @param {import('react').ReactNode | { label: string, icon?: string, href?: string }} [props.footerAction]
23
+ * A pinned row under the list — a node rendered as-is, or a descriptor the library renders
24
+ * as a menu row (through `linkComponent` when it carries an `href`).
25
+ * @param {import('react').ElementType} [props.linkComponent] Component for `href` rows (e.g. Link).
26
+ * @param {boolean} [props.searchable=false] Client-side filter over the list. Only earns its
27
+ * place past roughly eight workspaces.
28
+ * @param {() => void} [props.onCreate] Fired by the create row.
29
+ * @param {boolean} [props.canCreate=false] Renders the create row. Hidden by default because
30
+ * most members cannot create a workspace.
31
+ * @param {string} [props.createLabel="Create workspace"] Copy for the create row.
32
+ * @param {boolean} [props.compact=false] Renders the 36px monogram button instead of the full
33
+ * card — the shape a collapsed rail slot wants. Same menu either way.
34
+ * @param {string} [props.ariaLabel] Accessible name for the trigger. Defaults to
35
+ * "Workspace <name>".
36
+ */
37
+ export default function AppWorkspaceSwitcher({ tenants, currentId, onSelect, menuLabel, footerAction, linkComponent, searchable, onCreate, canCreate, createLabel, compact, ariaLabel, ...rest }: {
38
+ tenants?: {
39
+ id: string;
40
+ name: string;
41
+ logoUrl?: string;
42
+ badge?: string;
43
+ }[];
44
+ currentId?: string;
45
+ onSelect?: (tenant: object) => void;
46
+ menuLabel?: string;
47
+ footerAction?: import('react').ReactNode | {
48
+ label: string;
49
+ icon?: string;
50
+ href?: string;
51
+ };
52
+ linkComponent?: import('react').ElementType;
53
+ searchable?: boolean;
54
+ onCreate?: () => void;
55
+ canCreate?: boolean;
56
+ createLabel?: string;
57
+ compact?: boolean;
58
+ ariaLabel?: string;
59
+ }): import("react").JSX.Element;
@@ -0,0 +1,9 @@
1
+ /** Shared rest-prop probe for Wave 2 field/control passthrough tests. */
2
+ export declare const REST_PROBE: {
3
+ id: string;
4
+ 'data-testid': string;
5
+ 'data-foo': string;
6
+ 'aria-roledescription': string;
7
+ };
8
+ /** Assert standard REST_PROBE attributes landed on the control root. */
9
+ export declare function expectProbe(el: any): void;
@@ -1,3 +1,5 @@
1
+ /** Clear every toast at once — e.g. on route change or logout. */
2
+ export declare function dismissAll(): void;
1
3
  export declare function toast(message: any, variantOrOptions?: string): void;
2
4
  export declare namespace toast {
3
5
  var promise: (promise: Promise<any>, messages: object, opts?: object) => Promise<any>;
@@ -3,7 +3,11 @@ export declare function subscribeToasts(listener: any): () => boolean;
3
3
  /**
4
4
  * Raise a toast. De-duped by `variant:message` while one is still on screen, or by explicit `id`.
5
5
  * When `opts.id` is provided, a toast with that id replaces any existing one (refresh/update).
6
+ * `duration` of 0 is sticky (no timer); any other duration schedules its own expiry here.
7
+ * `message` may be a string or a React node (rich body); string-dedupe only applies to strings.
6
8
  */
7
9
  export declare function pushToast(message: any, variant: any, opts?: {}): void;
8
10
  /** Remove a toast — its auto-dismiss timer fired, or the user closed it. */
9
11
  export declare function dismissToast(id: any): void;
12
+ /** Clear every toast at once — e.g. on route change or logout. No-op when already empty. */
13
+ export declare function dismissAllToasts(): void;
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Shared plumbing for thin React wrappers over form-associated `<wui-*>` elements.
3
+ *
4
+ * Collapses the copy-pasted triple every hard-interactive wrapper used to own:
5
+ * 1. merge a forwarded ref with an internal ref
6
+ * 2. sync a controlled `value` prop onto the element
7
+ * 3. listen for the element's `change` event and call `onChange`
8
+ *
9
+ * Callers that need extra effects (options arrays, remote loaders, dual-thumb ranges)
10
+ * keep those beside this hook — only the common path lives here.
11
+ *
12
+ * @param {object} opts
13
+ * @param {import('react').Ref<HTMLElement>} [opts.ref] Forwarded ref from `forwardRef`.
14
+ * @param {unknown} [opts.value] Controlled value; when defined, written to `el.value`.
15
+ * @param {(value: unknown) => void} [opts.onChange] Called with the control value only
16
+ * (one argument — matches every existing App* wrapper and its unit tests).
17
+ * @param {(el: HTMLElement) => unknown} [opts.readValue] How to read the element on change
18
+ * (default: `el => el.value`). Dual-thumb / multi-select wrappers pass a custom reader.
19
+ * @param {(el: HTMLElement, value: unknown) => void} [opts.writeValue] How to write the
20
+ * controlled value (default: `el.value = value ?? ''`).
21
+ * @param {string[]} [opts.events=['change']] DOM events that call onChange. Use
22
+ * `['input','change']` for controls that fire `input` live and `change` only on commit
23
+ * (phone) so React controlled state stays current; values are de-duped so both events in
24
+ * one gesture do not double-call with the same value.
25
+ * @param {unknown[]} [opts.syncDeps] Extra deps that should re-run the write effect
26
+ * (rarely needed — prefer baking state into `value`).
27
+ * @returns {{ setRef: (el: HTMLElement | null) => void, innerRef: import('react').MutableRefObject<HTMLElement | null> }}
28
+ */
29
+ export default function useWuiControl({ ref, value, onChange, readValue, writeValue, events, syncDeps, }?: {
30
+ ref?: import('react').Ref<HTMLElement>;
31
+ value?: unknown;
32
+ onChange?: (value: unknown) => void;
33
+ readValue?: (el: HTMLElement) => unknown;
34
+ writeValue?: (el: HTMLElement, value: unknown) => void;
35
+ events?: string[];
36
+ syncDeps?: unknown[];
37
+ }): {
38
+ setRef: (el: HTMLElement | null) => void;
39
+ innerRef: import('react').MutableRefObject<HTMLElement | null>;
40
+ };
41
+ /**
42
+ * Shallow value+label equality for two `{ value, label }` option arrays.
43
+ *
44
+ * The select/multiselect/autocomplete wrappers re-map their `options` prop into a fresh
45
+ * array every render (even when the caller's underlying data hasn't changed), and assigning
46
+ * that fresh array onto the element's `options` property makes the element re-render its
47
+ * menu — closing an open dropdown or discarding in-progress search text on any unrelated
48
+ * parent re-render. Comparing before assigning keeps the element's own array identity (and
49
+ * its open menu) whenever the option set is actually unchanged.
50
+ *
51
+ * @param {{value: unknown, label: string}[]} [next]
52
+ * @param {{value: unknown, label: string}[]} [cur]
53
+ */
54
+ export declare function optionsEqual(next?: {
55
+ value: unknown;
56
+ label: string;
57
+ }[], cur?: {
58
+ value: unknown;
59
+ label: string;
60
+ }[]): boolean;
61
+ /** Module-stable reader for multi-value elements (`el.values`). */
62
+ export declare function readValues(el: any): any;
63
+ /** Module-stable writer for multi-value elements — skips no-op array reassignment. */
64
+ export declare function writeValues(el: any, next: any): void;
65
+ /** Module-stable range reader for dual-thumb sliders. */
66
+ export declare function readRange(el: any): {
67
+ start: any;
68
+ end: any;
69
+ };
70
+ /** Module-stable single-thumb numeric writer. */
71
+ export declare function writeNumberValue(el: any, v: any): void;
@@ -71,10 +71,11 @@ export { default as AppTagInput } from './components/AppTagInput.jsx';
71
71
  export { default as AppTextarea } from './components/AppTextarea.jsx';
72
72
  export { default as AppTimeline } from './components/AppTimeline.jsx';
73
73
  export { default as AppTimePicker } from './components/AppTimePicker.jsx';
74
- export { default as AppToastContainer } from './components/AppToastContainer.jsx';
74
+ export { default as AppToast, default as AppToastContainer } from './components/AppToast.jsx';
75
75
  export { default as AppTooltip } from './components/AppTooltip.jsx';
76
+ export { default as AppWorkspaceSwitcher } from './components/AppWorkspaceSwitcher.jsx';
76
77
  export { default as Icon, iconNames, registerIcons } from './components/Icon.jsx';
77
78
  export { MODAL_ICONS } from './components/ModalIcons.jsx';
78
79
  export { default as RequiredMark } from './components/RequiredMark.jsx';
79
- export { errorToast, toast } from './components/toast.js';
80
+ export { dismissAll, errorToast, toast } from './components/toast.js';
80
81
  export { usePagination } from './lib/usePagination.js';