@webority/ui-react 0.3.0 → 0.4.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 (64) hide show
  1. package/README.md +23 -0
  2. package/dist/types/components/ActionIcon.d.ts +27 -0
  3. package/dist/types/components/AppAccordion.d.ts +27 -0
  4. package/dist/types/components/AppAlert.d.ts +21 -0
  5. package/dist/types/components/AppAutocomplete.d.ts +48 -0
  6. package/dist/types/components/AppAvatar.d.ts +13 -0
  7. package/dist/types/components/AppBadge.d.ts +19 -0
  8. package/dist/types/components/AppButton.d.ts +13 -0
  9. package/dist/types/components/AppCallout.d.ts +19 -0
  10. package/dist/types/components/AppCard.d.ts +29 -0
  11. package/dist/types/components/AppCheckbox.d.ts +17 -0
  12. package/dist/types/components/AppChip.d.ts +37 -0
  13. package/dist/types/components/AppChoiceCard.d.ts +36 -0
  14. package/dist/types/components/AppChoiceChip.d.ts +24 -0
  15. package/dist/types/components/AppColorField.d.ts +35 -0
  16. package/dist/types/components/AppCompareTable.d.ts +32 -0
  17. package/dist/types/components/AppConfirmDialog.d.ts +27 -0
  18. package/dist/types/components/AppDataTable.d.ts +46 -0
  19. package/dist/types/components/AppDatePicker.d.ts +43 -0
  20. package/dist/types/components/AppDropdown.d.ts +11 -0
  21. package/dist/types/components/AppEmptyState.d.ts +31 -0
  22. package/dist/types/components/AppFileAttachment.d.ts +36 -0
  23. package/dist/types/components/AppFilePicker.d.ts +25 -0
  24. package/dist/types/components/AppInfoList.d.ts +24 -0
  25. package/dist/types/components/AppInfoTip.d.ts +4 -0
  26. package/dist/types/components/AppInput.d.ts +31 -0
  27. package/dist/types/components/AppKpiTile.d.ts +22 -0
  28. package/dist/types/components/AppLogoPicker.d.ts +31 -0
  29. package/dist/types/components/AppModal.d.ts +35 -0
  30. package/dist/types/components/AppMultiSelect.d.ts +38 -0
  31. package/dist/types/components/AppPageHeader.d.ts +22 -0
  32. package/dist/types/components/AppPhoneNumberInput.d.ts +13 -0
  33. package/dist/types/components/AppPricingCard.d.ts +38 -0
  34. package/dist/types/components/AppRadio.d.ts +17 -0
  35. package/dist/types/components/AppRepeater.d.ts +40 -0
  36. package/dist/types/components/AppResourceCard.d.ts +28 -0
  37. package/dist/types/components/AppSearch.d.ts +20 -0
  38. package/dist/types/components/AppSegmented.d.ts +35 -0
  39. package/dist/types/components/AppSelect.d.ts +19 -0
  40. package/dist/types/components/AppSelectMini.d.ts +11 -0
  41. package/dist/types/components/AppShell.d.ts +52 -0
  42. package/dist/types/components/AppSidebarMenu.d.ts +19 -0
  43. package/dist/types/components/AppSkeleton.d.ts +21 -0
  44. package/dist/types/components/AppSpinner.d.ts +17 -0
  45. package/dist/types/components/AppSplash.d.ts +25 -0
  46. package/dist/types/components/AppStatusBadge.d.ts +15 -0
  47. package/dist/types/components/AppStepper.d.ts +35 -0
  48. package/dist/types/components/AppSwitch.d.ts +17 -0
  49. package/dist/types/components/AppTableEmptyState.d.ts +15 -0
  50. package/dist/types/components/AppTablePagination.d.ts +25 -0
  51. package/dist/types/components/AppTabs.d.ts +30 -0
  52. package/dist/types/components/AppTextarea.d.ts +22 -0
  53. package/dist/types/components/AppTimeline.d.ts +26 -0
  54. package/dist/types/components/Icon.d.ts +7 -0
  55. package/dist/types/components/ModalIcons.d.ts +33 -0
  56. package/dist/types/components/RequiredMark.d.ts +7 -0
  57. package/dist/types/components/toast.d.ts +3 -0
  58. package/dist/types/index.d.ts +56 -0
  59. package/dist/types/lib/useListboxMenu.d.ts +46 -0
  60. package/dist/types/lib/usePagination.d.ts +11 -0
  61. package/dist/types/lib/usePopover.d.ts +7 -0
  62. package/dist/types/lib/useTableSort.d.ts +25 -0
  63. package/dist/ui-react.js +1203 -883
  64. package/package.json +13 -10
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Image file picker — a drag-and-drop dropzone that swaps to a large preview once a file
3
+ * is chosen (hover to change, × to remove). Accepts a freshly-picked File or an existing
4
+ * `{ url }` value; reports the choice via onPick(file | null).
5
+ *
6
+ * @param {object} props
7
+ * @param {string} props.label
8
+ * @param {File|{ url: string }|null} [props.value]
9
+ * @param {(file: File|null) => void} props.onPick
10
+ * @param {string} [props.accept=".jpg,.jpeg,.png"] Accepted file types (the `accept` attribute).
11
+ * @param {number} [props.maxSizeMb=5]
12
+ * @param {boolean} [props.required]
13
+ * @param {string} [props.error]
14
+ */
15
+ export default function AppFilePicker({ label, value, name, onPick, accept, maxSizeMb, required, error, }: {
16
+ label: string;
17
+ value?: File | {
18
+ url: string;
19
+ } | null;
20
+ onPick: (file: File | null) => void;
21
+ accept?: string;
22
+ maxSizeMb?: number;
23
+ required?: boolean;
24
+ error?: string;
25
+ }): import("react").JSX.Element;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * A read-only list of label/value rows, each with a leading round icon tile —
3
+ * a contact card, a "details" panel in a drawer, a summary beside a form.
4
+ *
5
+ * A row with `href` renders as a link (mail/tel/an external doc); without one it
6
+ * renders as a plain row, so a non-actionable value never looks clickable.
7
+ *
8
+ * For editable values use the form primitives; for a status pill use
9
+ * `AppStatusBadge`. This is for stating facts.
10
+ *
11
+ * @param {object} props
12
+ * @param {{ key?: string, icon: string, label: string, value: import('react').ReactNode, href?: string }[]} props.items
13
+ * @param {string} [props.className]
14
+ */
15
+ export default function AppInfoList({ items, className }: {
16
+ items: {
17
+ key?: string;
18
+ icon: string;
19
+ label: string;
20
+ value: import('react').ReactNode;
21
+ href?: string;
22
+ }[];
23
+ className?: string;
24
+ }): import("react").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export default function AppInfoTip({ label, children }: {
2
+ children: any;
3
+ label: any;
4
+ }): import("react").JSX.Element;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The shared text field — wraps react-bootstrap Form.Group / Form.Label / Form.Control
3
+ * (which inherit the brand `$input-*` styling) while keeping the `.field`/`.input` classes
4
+ * so the look is unchanged, and folding in the control shells screens kept hand-rolling:
5
+ * a unit suffix, a password reveal toggle, a leading icon, and a trailing action.
6
+ *
7
+ * Forwards `ref` to the underlying control, so react-hook-form's spread `{...register("name")}`
8
+ * works unchanged, as does a controlled `value`/`onChange` pair.
9
+ *
10
+ * @param {object} props
11
+ * @param {import('react').ReactNode} [props.label]
12
+ * @param {boolean} [props.required=false]
13
+ * @param {string} [props.error]
14
+ * @param {string} [props.hint]
15
+ * @param {import('react').ReactNode} [props.help] Content for the label info-tip (decoupled:
16
+ * the caller supplies the node; a glossary-backed app wraps its lookup here).
17
+ * @param {string} [props.helpLabel="More information"] aria-label for the info-tip button.
18
+ * @param {string} [props.type="text"]
19
+ * @param {string} [props.leftIcon] Icon name
20
+ * @param {string} [props.rightIcon] Icon name
21
+ * @param {() => void} [props.onRightIconClick]
22
+ * @param {string} [props.unit]
23
+ * @param {string} [props.id]
24
+ * @param {string} [props.name]
25
+ * @param {string} [props.className]
26
+ * @param {string} [props.fieldClassName]
27
+ * @param {boolean} [props.disabled=false]
28
+ * @param {import('react').Ref<HTMLInputElement>} [ref]
29
+ */
30
+ declare const AppInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
31
+ export default AppInput;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * A single headline number — a dashboard stat, a summary figure above a table.
3
+ * Label, value, and an optional period-over-period delta.
4
+ *
5
+ * @param {object} props
6
+ * @param {string} props.label What the number measures.
7
+ * @param {import('react').ReactNode} props.value The number itself, already formatted.
8
+ * @param {string} [props.icon] Icon name for the leading tile.
9
+ * @param {import('react').ReactNode} [props.delta] Change text, e.g. "12% vs last month".
10
+ * @param {'up'|'down'|'flat'} [props.deltaDirection='flat'] Colours the delta and picks its arrow.
11
+ * @param {boolean} [props.inline=false] Put the icon beside the text instead of above it.
12
+ * @param {string} [props.className]
13
+ */
14
+ export default function AppKpiTile({ label, value, icon, delta, deltaDirection, inline, className, }: {
15
+ label: string;
16
+ value: import('react').ReactNode;
17
+ icon?: string;
18
+ delta?: import('react').ReactNode;
19
+ deltaDirection?: 'up' | 'down' | 'flat';
20
+ inline?: boolean;
21
+ className?: string;
22
+ }): import("react").JSX.Element;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Circular logo/avatar picker with update overlay.
3
+ *
4
+ * @param {object} props
5
+ * @param {string|null} [props.value]
6
+ * @param {import('react').ReactNode} [props.fallback]
7
+ * @param {string} [props.name] Form field name, so an uncontrolled form can post the file.
8
+ * @param {(file: File) => void} props.onPick
9
+ * @param {boolean} [props.loading=false]
10
+ * @param {string} [props.accept]
11
+ * @param {number} [props.maxSizeMb=5]
12
+ * @param {string} [props.overlayIcon]
13
+ * @param {string} [props.overlayLabel]
14
+ * @param {string} [props.ariaLabel]
15
+ */
16
+ export default function AppLogoPicker({ value, // current image URL | null
17
+ fallback, // node shown when there's no image (e.g. initials)
18
+ name, onPick, // (file) => void — receives a validated File
19
+ loading, // show a spinner + block interaction while the pick is uploading
20
+ accept, maxSizeMb, overlayIcon, overlayLabel, ariaLabel, }: {
21
+ value?: string | null;
22
+ fallback?: import('react').ReactNode;
23
+ name?: string;
24
+ onPick: (file: File) => void;
25
+ loading?: boolean;
26
+ accept?: string;
27
+ maxSizeMb?: number;
28
+ overlayIcon?: string;
29
+ overlayLabel?: string;
30
+ ariaLabel?: string;
31
+ }): import("react").JSX.Element;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The single dialog primitive. Wraps react-bootstrap Modal with `.lx-modal-*` chrome.
3
+ *
4
+ * @param {object} props
5
+ * @param {boolean} props.open
6
+ * @param {import('react').ReactNode} [props.title]
7
+ * @param {import('react').ReactNode} [props.subtitle]
8
+ * @param {string} [props.headerIcon] Iconsax name
9
+ * @param {() => void} props.onClose
10
+ * @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]
17
+ * @param {boolean} [props.hideHeader=false]
18
+ * @param {string} [props.className]
19
+ * @param {import('react').ReactNode} props.children
20
+ */
21
+ export default function AppModal({ open, title, subtitle, headerIcon, onClose, footer, size, wide, side, maxWidth, hideHeader, className, children, }: {
22
+ open: boolean;
23
+ title?: import('react').ReactNode;
24
+ subtitle?: import('react').ReactNode;
25
+ headerIcon?: string;
26
+ onClose: () => void;
27
+ footer?: import('react').ReactNode;
28
+ size?: "sm" | "lg" | "xl";
29
+ wide?: boolean;
30
+ side?: boolean;
31
+ maxWidth?: number | string;
32
+ hideHeader?: boolean;
33
+ className?: string;
34
+ children: import('react').ReactNode;
35
+ }): import("react").JSX.Element;
@@ -0,0 +1,38 @@
1
+ import '@webority/ui-elements';
2
+ /**
3
+ * Multi-value select over the shared `<wui-multiselect>` element. The control shows each
4
+ * chosen value as a removable `.chip`; the dropdown is a searchable checklist.
5
+ *
6
+ * @param {object} props
7
+ * @param {string[]} [props.values] Selected option values.
8
+ * @param {(values: string[]) => void} [props.onChange]
9
+ * @param {{value: string, label: string}[]} [props.options]
10
+ * @param {string} [props.placeholder]
11
+ * @param {string} [props.searchPlaceholder] Placeholder for the in-menu search box.
12
+ * @param {boolean} [props.searchable=true]
13
+ * @param {boolean} [props.disabled]
14
+ * @param {string} [props.name]
15
+ * @param {import('react').ReactNode} [props.label]
16
+ * @param {string} [props.error]
17
+ * @param {string} [props.hint]
18
+ * @param {boolean} [props.required]
19
+ * @param {string} [props.fieldClassName]
20
+ */
21
+ export default function AppMultiSelect({ values, onChange, options, placeholder, searchPlaceholder, searchable, disabled, name, label, error, hint, required, fieldClassName, }: {
22
+ values?: string[];
23
+ onChange?: (values: string[]) => void;
24
+ options?: {
25
+ value: string;
26
+ label: string;
27
+ }[];
28
+ placeholder?: string;
29
+ searchPlaceholder?: string;
30
+ searchable?: boolean;
31
+ disabled?: boolean;
32
+ name?: string;
33
+ label?: import('react').ReactNode;
34
+ error?: string;
35
+ hint?: string;
36
+ required?: boolean;
37
+ fieldClassName?: string;
38
+ }): import("react").JSX.Element;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * The screen masthead every page repeats: a title, an optional subtitle (often a
3
+ * "N items" count or loading text), and an optional right-aligned actions slot.
4
+ * Same `.page-header` / `.page-title` / `.page-subtitle` / `.page-actions` markup —
5
+ * zero visual change, one place to own it.
6
+ *
7
+ * The `d-flex … justify-content-between` row exists only to push actions to the
8
+ * right, so it's applied only when `actions` are present — a header without actions
9
+ * stays a plain block (matching the bare `.page-header` screens).
10
+ *
11
+ * @param {object} props
12
+ * @param {import('react').ReactNode} props.title
13
+ * @param {import('react').ReactNode} [props.subtitle]
14
+ * @param {import('react').ReactNode} [props.actions] right-aligned (usually an AppButton)
15
+ * @param {string} [props.className]
16
+ */
17
+ export default function AppPageHeader({ title, subtitle, actions, className }: {
18
+ title: import('react').ReactNode;
19
+ subtitle?: import('react').ReactNode;
20
+ actions?: import('react').ReactNode;
21
+ className?: string;
22
+ }): import("react").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import '@webority/ui-elements';
2
+ export default function AppPhoneNumberInput({ value, onChange, country, disabled, name, label, placeholder, required, error, fieldClassName, }: {
3
+ country: any;
4
+ disabled?: boolean;
5
+ error: any;
6
+ fieldClassName?: string;
7
+ label?: string;
8
+ name: any;
9
+ onChange: any;
10
+ placeholder?: string;
11
+ required?: boolean;
12
+ value: any;
13
+ }): import("react").JSX.Element;
@@ -0,0 +1,38 @@
1
+ /**
2
+ * A pricing tier — name, price, one-line pitch, feature list, and a call to action.
3
+ *
4
+ * Every card in a row should list the SAME features in the same order, marking the
5
+ * ones a tier lacks as `included: false` rather than omitting them. Rows that line
6
+ * up are what makes the tiers comparable at a glance; a shorter list just looks
7
+ * like a shorter card.
8
+ *
9
+ * For a full feature matrix below the cards use `AppCompareTable`; for the
10
+ * monthly/annual switch use `AppSegmented`.
11
+ *
12
+ * @param {object} props
13
+ * @param {string} props.name Tier name.
14
+ * @param {import('react').ReactNode} props.price Formatted amount, e.g. "₹1,499".
15
+ * @param {string} [props.unit] Period suffix, e.g. "/month".
16
+ * @param {string} [props.tagline] One line on who the tier is for.
17
+ * @param {{ text: string, included?: boolean }[]} [props.features]
18
+ * @param {import('react').ReactNode} [props.cta] The action — usually an `AppButton`.
19
+ * @param {boolean} [props.featured=false] The recommended tier: brand border, lifted, badged.
20
+ * @param {boolean} [props.current=false] The tier the customer is already on.
21
+ * @param {string} [props.badge='Most popular'] Text of the featured flag.
22
+ * @param {string} [props.className]
23
+ */
24
+ export default function AppPricingCard({ name, price, unit, tagline, features, cta, featured, current, badge, className, }: {
25
+ name: string;
26
+ price: import('react').ReactNode;
27
+ unit?: string;
28
+ tagline?: string;
29
+ features?: {
30
+ text: string;
31
+ included?: boolean;
32
+ }[];
33
+ cta?: import('react').ReactNode;
34
+ featured?: boolean;
35
+ current?: boolean;
36
+ badge?: string;
37
+ className?: string;
38
+ }): import("react").JSX.Element;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Shared radio on the Bootstrap `.form-check` markup — the same structure the
3
+ * Razor <app-radio> emits, so both surfaces render identically.
4
+ *
5
+ * The label is bound to the input with id/htmlFor rather than react-bootstrap's
6
+ * `label` prop: that rendered a <label> with no `for`, so clicking the text did
7
+ * nothing and screen readers never announced the name.
8
+ *
9
+ * @param {object} props
10
+ * @param {import('react').ReactNode} [props.label]
11
+ * @param {string} [props.id]
12
+ * @param {string} [props.name]
13
+ * @param {string} [props.className]
14
+ * @param {import('react').Ref} [ref]
15
+ */
16
+ declare const AppRadio: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
17
+ export default AppRadio;
@@ -0,0 +1,40 @@
1
+ /**
2
+ * A repeating group of form rows the user can add to and remove from — contacts,
3
+ * line items, zones, addresses.
4
+ *
5
+ * The rows themselves are the caller's: `renderRow(row, index)` returns whatever
6
+ * fields belong in one. This component owns only the frame — numbering, the remove
7
+ * control, the add button, and the empty message — so it never has to know what a
8
+ * row contains.
9
+ *
10
+ * State stays with the caller (usually react-hook-form's `useFieldArray`), which is
11
+ * what makes validation and submission work; this is a presentational shell.
12
+ *
13
+ * @param {object} props
14
+ * @param {{ id?: string|number }[]} props.rows
15
+ * @param {(row: object, index: number) => import('react').ReactNode} props.renderRow
16
+ * @param {() => void} props.onAdd
17
+ * @param {(index: number) => void} [props.onRemove] Omit to make rows non-removable.
18
+ * @param {string} [props.addLabel='Add another']
19
+ * @param {string} [props.removeLabel='Remove row']
20
+ * @param {string} [props.emptyText] Shown in place of the rows when there are none.
21
+ * @param {number} [props.min=0] Rows at or below this count cannot be removed.
22
+ * @param {number} [props.max] Adding is disabled at this count.
23
+ * @param {boolean} [props.numbered=true] Show the row index.
24
+ * @param {string} [props.className]
25
+ */
26
+ export default function AppRepeater({ rows, renderRow, onAdd, onRemove, addLabel, removeLabel, emptyText, min, max, numbered, className, }: {
27
+ rows: {
28
+ id?: string | number;
29
+ }[];
30
+ renderRow: (row: object, index: number) => import('react').ReactNode;
31
+ onAdd: () => void;
32
+ onRemove?: (index: number) => void;
33
+ addLabel?: string;
34
+ removeLabel?: string;
35
+ emptyText?: string;
36
+ min?: number;
37
+ max?: number;
38
+ numbered?: boolean;
39
+ className?: string;
40
+ }): import("react").JSX.Element;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * A link card to a resource — a help article, a guide, a downloadable template,
3
+ * an external doc. Icon tile, title, one line of supporting text; the whole card
4
+ * is the link target.
5
+ *
6
+ * `AppChoiceCard` looks similar but is a form control (a radio you select);
7
+ * this one navigates. Pick by what happens on click.
8
+ *
9
+ * @param {object} props
10
+ * @param {string} props.icon
11
+ * @param {string} props.title
12
+ * @param {string} [props.text] One line of supporting detail.
13
+ * @param {string} props.href
14
+ * @param {boolean} [props.external=false] Open in a new tab.
15
+ * @param {import('react').ElementType} [props.linkComponent] Router link (e.g. react-router's
16
+ * `Link`) for an in-app destination; it receives `to` instead of `href`. Keeps the
17
+ * library router-agnostic.
18
+ * @param {string} [props.className]
19
+ */
20
+ export default function AppResourceCard({ icon, title, text, href, external, linkComponent: Link, className, }: {
21
+ icon: string;
22
+ title: string;
23
+ text?: string;
24
+ href: string;
25
+ external?: boolean;
26
+ linkComponent?: import('react').ElementType;
27
+ className?: string;
28
+ }): import("react").JSX.Element;
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Shared search box with clear control (.search-wrap).
3
+ *
4
+ * @param {object} props
5
+ * @param {string} props.value
6
+ * @param {(value: string) => void} props.onValueChange
7
+ * @param {string} [props.placeholder]
8
+ * @param {string} [props.ariaLabel]
9
+ * @param {number} [props.iconSize=18]
10
+ * @param {string} [props.className]
11
+ */
12
+ export default function AppSearch({ value, onValueChange, placeholder, ariaLabel, iconSize, className, // extra classes on the wrapper
13
+ ...rest }: {
14
+ value: string;
15
+ onValueChange: (value: string) => void;
16
+ placeholder?: string;
17
+ ariaLabel?: string;
18
+ iconSize?: number;
19
+ className?: string;
20
+ }): import("react").JSX.Element;
@@ -0,0 +1,35 @@
1
+ /**
2
+ * A segmented control — 2–4 mutually-exclusive options shown side by side, all
3
+ * visible at once. The canonical use is a theme switch (Light / Dark / System)
4
+ * or a compact view/range toggle above a chart.
5
+ *
6
+ * Past four options the row runs out of width — reach for `AppSelect` instead.
7
+ * For a boolean use `AppSwitch`; for a filter that can be off use `AppChoiceChip`.
8
+ *
9
+ * Built on real `<input type="radio">` elements inside labels, so arrow-key
10
+ * navigation, the single tab stop, and the "2 of 3" screen-reader announcement all
11
+ * come from the browser rather than hand-written key handling — and the control
12
+ * posts inside a plain form with no JavaScript.
13
+ *
14
+ * @param {object} props
15
+ * @param {{ value: string, label: string, icon?: string }[]} props.options
16
+ * @param {string} props.value The selected option's value.
17
+ * @param {(value: string) => void} props.onChange
18
+ * @param {string} props.label Accessible name for the group.
19
+ * @param {string} [props.name] Field name. Defaults to a generated one.
20
+ * @param {'sm'|'md'} [props.size='md']
21
+ * @param {string} [props.className]
22
+ */
23
+ export default function AppSegmented({ options, value, onChange, label, name, size, className, }: {
24
+ options: {
25
+ value: string;
26
+ label: string;
27
+ icon?: string;
28
+ }[];
29
+ value: string;
30
+ onChange: (value: string) => void;
31
+ label: string;
32
+ name?: string;
33
+ size?: 'sm' | 'md';
34
+ className?: string;
35
+ }): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import '@webority/ui-elements';
2
+ export default function AppSelect({ value, onChange, options, placeholder, searchPlaceholder, searchable, disabled, label, required, error, hint, help, helpLabel, id, name, fieldClassName, }: {
3
+ disabled: any;
4
+ error: any;
5
+ fieldClassName?: string;
6
+ help: any;
7
+ helpLabel?: string;
8
+ hint: any;
9
+ id: any;
10
+ label: any;
11
+ name: any;
12
+ onChange: any;
13
+ options?: any[];
14
+ placeholder?: string;
15
+ required?: boolean;
16
+ searchPlaceholder?: string;
17
+ searchable?: boolean;
18
+ value: any;
19
+ }): import("react").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import '@webority/ui-elements';
2
+ export default function AppSelectMini({ value, onChange, options, placeholder, name, ariaLabel, id, disabled, }: {
3
+ ariaLabel: any;
4
+ disabled: any;
5
+ id: any;
6
+ name: any;
7
+ onChange: any;
8
+ options?: any[];
9
+ placeholder?: string;
10
+ value: any;
11
+ }): import("react").JSX.Element;
@@ -0,0 +1,52 @@
1
+ /**
2
+ * The persistent frame every authenticated portal sits inside — a sidebar of
3
+ * navigation, a sticky topbar, the routed content, and an optional footer.
4
+ *
5
+ * Slot-based, not copy-own: what every product shares is the *structure* — the
6
+ * breakpoint the sidebar collapses at, the drawer and its scrim, the 72px topbar,
7
+ * the icon rail. What differs is only the content, which arrives as props. A
8
+ * product that forked this would re-derive the responsive behaviour and drift.
9
+ *
10
+ * Router-agnostic: pass `linkComponent` (react-router's `Link`) and nav items get
11
+ * `to`; without it they render as plain `<a href>`, which is what Razor emits.
12
+ *
13
+ * @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.
16
+ * Groups after the first are separated by a rule.
17
+ * @param {import('react').ReactNode} [props.brand] The logo row at the top of the sidebar.
18
+ * @param {import('react').ReactNode} [props.sidebarFooter] Pinned below the scrolling nav.
19
+ * @param {import('react').ReactNode} [props.topbarStart] Leading topbar slot — page title, crumbs.
20
+ * @param {import('react').ReactNode} [props.topbarEnd] Trailing topbar slot — search, account menu.
21
+ * @param {import('react').ReactNode} [props.footer]
22
+ * @param {import('react').ReactNode} props.children The routed page.
23
+ * @param {boolean} [props.collapsed] Controlled rail state. Omit to let the shell own it.
24
+ * @param {(collapsed: boolean) => void} [props.onCollapsedChange]
25
+ * @param {boolean} [props.noSidebar=false] Full-width, no side nav — a focused wizard.
26
+ * @param {string} [props.navLabel='Main navigation']
27
+ * @param {string} [props.className]
28
+ */
29
+ export default function AppShell({ groups, brand, sidebarFooter, topbarStart, topbarEnd, footer, children, collapsed, onCollapsedChange, noSidebar, navLabel, linkComponent: Link, className, }: {
30
+ groups: {
31
+ 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
+ }[];
40
+ }[];
41
+ brand?: import('react').ReactNode;
42
+ sidebarFooter?: import('react').ReactNode;
43
+ topbarStart?: import('react').ReactNode;
44
+ topbarEnd?: import('react').ReactNode;
45
+ footer?: import('react').ReactNode;
46
+ children: import('react').ReactNode;
47
+ collapsed?: boolean;
48
+ onCollapsedChange?: (collapsed: boolean) => void;
49
+ noSidebar?: boolean;
50
+ navLabel?: string;
51
+ className?: string;
52
+ }): import("react").JSX.Element;
@@ -0,0 +1,19 @@
1
+ export default function AppSidebarMenu({ show, onHide, side, title, titleIcon, header, children, footer, width, backdrop, scroll, keyboard, closeButton, responsive, className, bodyClassName, ariaLabel, }: {
2
+ ariaLabel: any;
3
+ backdrop?: boolean;
4
+ bodyClassName?: string;
5
+ children: any;
6
+ className?: string;
7
+ closeButton?: boolean;
8
+ footer: any;
9
+ header: any;
10
+ keyboard?: boolean;
11
+ onHide: any;
12
+ responsive: any;
13
+ scroll?: boolean;
14
+ show: any;
15
+ side?: string;
16
+ title: any;
17
+ titleIcon: any;
18
+ width: any;
19
+ }): import("react").JSX.Element;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * First-load shimmer placeholder.
3
+ *
4
+ * @param {object} props
5
+ * @param {string|number} [props.width="100%"]
6
+ * @param {string|number} [props.height=14]
7
+ * @param {string|number} [props.radius=6]
8
+ * @param {string} [props.className]
9
+ * @param {import('react').CSSProperties} [props.style]
10
+ */
11
+ export default function AppSkeleton({ width, height, radius, className, style, }: {
12
+ width?: string | number;
13
+ height?: string | number;
14
+ radius?: string | number;
15
+ className?: string;
16
+ style?: import('react').CSSProperties;
17
+ }): import("react").JSX.Element;
18
+ export declare function AppSkeletonRows({ rows, cols }: {
19
+ cols?: number;
20
+ rows?: number;
21
+ }): import("react").JSX.Element[];
@@ -0,0 +1,17 @@
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'} [props.size='md']
10
+ * @param {string} [props.label='Loading'] Accessible name.
11
+ * @param {string} [props.className]
12
+ */
13
+ export default function AppSpinner({ size, label, className }: {
14
+ size?: 'sm' | 'md';
15
+ label?: string;
16
+ className?: string;
17
+ }): import("react").JSX.Element;
@@ -0,0 +1,25 @@
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 bar is an indeterminate sweep, not a progress value: boot has no measurable
10
+ * percentage, and a bar that appears to measure one would be lying.
11
+ *
12
+ * @param {object} props
13
+ * @param {import('react').ReactNode} [props.logo] Brand mark — an `<img>` or an SVG.
14
+ * @param {string} [props.initials] Fallback mark when there is no logo.
15
+ * @param {string} [props.text] One line, e.g. "Signing you in…".
16
+ * @param {string} [props.label='Loading'] Accessible name for the live region.
17
+ * @param {string} [props.className]
18
+ */
19
+ export default function AppSplash({ logo, initials, text, label, className }: {
20
+ logo?: import('react').ReactNode;
21
+ initials?: string;
22
+ text?: string;
23
+ label?: string;
24
+ className?: string;
25
+ }): import("react").JSX.Element;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Status pill. Decoupled: the caller supplies the display `label` + `tone` (an app maps
3
+ * its own status enum to these); the library owns only the presentation. Renders an
4
+ * em-dash when there is no label.
5
+ *
6
+ * @param {object} props
7
+ * @param {import('react').ReactNode} [props.label]
8
+ * @param {string} [props.tone] Tone class suffix (e.g. success | warning | danger | info | neutral).
9
+ * @param {string} [props.className]
10
+ */
11
+ export default function AppStatusBadge({ label, tone, className }: {
12
+ label?: import('react').ReactNode;
13
+ tone?: string;
14
+ className?: string;
15
+ }): "—" | import("react").JSX.Element;