@webority/ui-react 0.6.3 → 0.6.5

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 (49) hide show
  1. package/dist/types/components/ActionIcon.d.ts +5 -1
  2. package/dist/types/components/AppAccordion.d.ts +1 -1
  3. package/dist/types/components/AppAutocomplete.d.ts +1 -1
  4. package/dist/types/components/AppAvatar.d.ts +1 -1
  5. package/dist/types/components/AppCallout.d.ts +1 -1
  6. package/dist/types/components/AppChip.d.ts +1 -1
  7. package/dist/types/components/AppChoiceCard.d.ts +1 -1
  8. package/dist/types/components/AppChoiceChip.d.ts +10 -24
  9. package/dist/types/components/AppColorField.d.ts +1 -1
  10. package/dist/types/components/AppCompareTable.d.ts +1 -1
  11. package/dist/types/components/AppConfirmDialog.d.ts +1 -1
  12. package/dist/types/components/AppDataTable.d.ts +1 -1
  13. package/dist/types/components/AppDatePicker.d.ts +1 -1
  14. package/dist/types/components/AppDropdown.d.ts +2 -1
  15. package/dist/types/components/AppEmptyState.d.ts +1 -1
  16. package/dist/types/components/AppFileAttachment.d.ts +1 -1
  17. package/dist/types/components/AppFilePicker.d.ts +1 -1
  18. package/dist/types/components/AppInfoList.d.ts +1 -1
  19. package/dist/types/components/AppInfoTip.d.ts +2 -1
  20. package/dist/types/components/AppInput.d.ts +4 -0
  21. package/dist/types/components/AppKpiTile.d.ts +1 -1
  22. package/dist/types/components/AppLogoPicker.d.ts +1 -1
  23. package/dist/types/components/AppModal.d.ts +1 -1
  24. package/dist/types/components/AppMultiSelect.d.ts +1 -1
  25. package/dist/types/components/AppPageHeader.d.ts +5 -20
  26. package/dist/types/components/AppPhoneNumberInput.d.ts +2 -1
  27. package/dist/types/components/AppPricingCard.d.ts +1 -1
  28. package/dist/types/components/AppRepeater.d.ts +1 -1
  29. package/dist/types/components/AppResourceCard.d.ts +1 -1
  30. package/dist/types/components/AppSegmented.d.ts +1 -1
  31. package/dist/types/components/AppSelect.d.ts +2 -1
  32. package/dist/types/components/AppSelectMini.d.ts +2 -1
  33. package/dist/types/components/AppShell.d.ts +1 -1
  34. package/dist/types/components/AppSidebarMenu.d.ts +2 -1
  35. package/dist/types/components/AppSkeleton.d.ts +1 -1
  36. package/dist/types/components/AppSpinner.d.ts +4 -15
  37. package/dist/types/components/AppSplash.d.ts +6 -23
  38. package/dist/types/components/AppStatusBadge.d.ts +4 -13
  39. package/dist/types/components/AppStepper.d.ts +1 -1
  40. package/dist/types/components/AppTableEmptyState.d.ts +1 -1
  41. package/dist/types/components/AppTablePagination.d.ts +1 -1
  42. package/dist/types/components/AppTabs.d.ts +1 -1
  43. package/dist/types/components/AppTextarea.d.ts +1 -0
  44. package/dist/types/components/AppTimeline.d.ts +1 -1
  45. package/dist/types/components/Icon.d.ts +3 -1
  46. package/dist/types/components/warnUnknownProps.d.ts +25 -0
  47. package/dist/types/index.d.ts +1 -1
  48. package/dist/ui-react.js +732 -609
  49. package/package.json +3 -3
@@ -15,8 +15,10 @@
15
15
  * @param {number} [props.size=20]
16
16
  * @param {() => void} [props.onClick]
17
17
  * @param {string} [props.className]
18
+ * @param {React.ElementType} [props.as] render as something else — a router `Link`, `"a"`.
19
+ * @param {string} [props.href] sets an anchor without needing `as`.
18
20
  */
19
- export default function ActionIcon({ icon, label, danger, disabled, size, onClick, className, ...rest }: {
21
+ export default function ActionIcon({ icon, label, danger, disabled, size, onClick, className, as, href, ...rest }: {
20
22
  icon: string;
21
23
  label: string;
22
24
  danger?: boolean;
@@ -24,4 +26,6 @@ export default function ActionIcon({ icon, label, danger, disabled, size, onClic
24
26
  size?: number;
25
27
  onClick?: () => void;
26
28
  className?: string;
29
+ as?: React.ElementType;
30
+ href?: string;
27
31
  }): import("react").JSX.Element;
@@ -14,7 +14,7 @@
14
14
  * needs a stable anchor to deep-link to; otherwise a unique one is generated.
15
15
  * @param {string} [props.className]
16
16
  */
17
- export default function AppAccordion({ items, multiple, id, className }: {
17
+ export default function AppAccordion({ items, multiple, id, className, ...rest }: {
18
18
  items: {
19
19
  key?: string;
20
20
  title: import('react').ReactNode;
@@ -24,7 +24,7 @@ import '@webority/ui-elements';
24
24
  * @param {boolean} [props.required]
25
25
  * @param {string} [props.fieldClassName]
26
26
  */
27
- export default function AppAutocomplete({ value, onChange, options, loadOptions, placeholder, minChars, debounce, disabled, name, label, error, hint, required, fieldClassName, }: {
27
+ export default function AppAutocomplete({ value, onChange, options, loadOptions, placeholder, minChars, debounce, disabled, name, label, error, hint, required, fieldClassName, ...rest }: {
28
28
  value?: string;
29
29
  onChange?: (value: string) => void;
30
30
  options?: {
@@ -6,7 +6,7 @@
6
6
  * @param {string} [props.src]
7
7
  * @param {string} [props.className]
8
8
  */
9
- export default function AppAvatar({ name, src, className }: {
9
+ export default function AppAvatar({ name, src, className, ...rest }: {
10
10
  name?: string;
11
11
  src?: string;
12
12
  className?: string;
@@ -12,7 +12,7 @@
12
12
  * @param {string} [props.icon='info'] Leading glyph. Pass `null` for none.
13
13
  * @param {string} [props.className]
14
14
  */
15
- export default function AppCallout({ children, icon, className }: {
15
+ export default function AppCallout({ children, icon, className, ...rest }: {
16
16
  children: import('react').ReactNode;
17
17
  icon?: string;
18
18
  className?: string;
@@ -22,7 +22,7 @@
22
22
  * @param {string} [props.removeLabel] aria-label for the dismiss button.
23
23
  * @param {string} [props.className]
24
24
  */
25
- export default function AppChip({ label, children, tone, size, leadingIcon, avatar, onRemove, onClick, disabled, removeLabel, className, }: {
25
+ export default function AppChip({ label, children, tone, size, leadingIcon, avatar, onRemove, onClick, disabled, removeLabel, className, ...rest }: {
26
26
  label?: import('react').ReactNode;
27
27
  children?: import('react').ReactNode;
28
28
  tone?: "neutral" | "primary" | "success" | "warning" | "danger" | "info";
@@ -22,7 +22,7 @@
22
22
  export default function AppChoiceCard({ name, multiple, value, checked, onChange, icon, iconNode, // custom icon element; overrides the `icon` name when provided
23
23
  iconSize, image, // image URL — renders an image-forward card (overrides icon)
24
24
  imageAlt, children, // custom body template — overrides title/description when provided
25
- title, description, checkIcon, checkSize, className, }: {
25
+ title, description, checkIcon, checkSize, className, ...rest }: {
26
26
  name: string;
27
27
  multiple?: boolean;
28
28
  value: string;
@@ -1,26 +1,12 @@
1
- /**
2
- * Selectable chip for multi/single-select pills (.choice-chip).
3
- *
4
- * @param {object} props
5
- * @param {boolean} [props.multiple=true] Checkbox (multi-select) when true, radio when false.
6
- * @param {import('react').ReactNode} [props.label] Chip text (or use `children`).
7
- * @param {string} [props.name]
8
- * @param {string} [props.value]
9
- * @param {boolean} props.checked
10
- * @param {(e: import('react').ChangeEvent<HTMLInputElement>) => void} props.onChange
11
- * @param {import('react').ReactNode} props.children
12
- * @param {import('react').ReactNode} [props.count] A matching-row count, e.g. "Active 12".
13
- * Shown as a small badge that inverts when the chip is selected.
14
- * @param {string} [props.className]
15
- */
16
- export default function AppChoiceChip({ multiple, label, name, value, checked, onChange, children, count, className, }: {
17
- multiple?: boolean;
18
- label?: import('react').ReactNode;
19
- name?: string;
20
- value?: string;
21
- checked: boolean;
22
- onChange: (e: import('react').ChangeEvent<HTMLInputElement>) => void;
23
- children: import('react').ReactNode;
24
- count?: import('react').ReactNode;
1
+ export default function AppChoiceChip({ multiple, label, name, value, checked, onChange, children, count, className, ...rest }: {
2
+ [x: string]: any;
3
+ checked: any;
4
+ children: any;
25
5
  className?: string;
6
+ count: any;
7
+ label: any;
8
+ multiple?: boolean;
9
+ name: any;
10
+ onChange: any;
11
+ value: any;
26
12
  }): import("react").JSX.Element;
@@ -21,7 +21,7 @@
21
21
  * @param {boolean} [props.disabled=false]
22
22
  * @param {string} [props.className]
23
23
  */
24
- export default function AppColorField({ value, onChange, label, required, error, hint, name, id, disabled, className, }: {
24
+ export default function AppColorField({ value, onChange, label, required, error, hint, name, id, disabled, className, ...rest }: {
25
25
  value: string;
26
26
  onChange: (hex: string) => void;
27
27
  label?: import('react').ReactNode;
@@ -17,7 +17,7 @@
17
17
  * @param {string} [props.caption] Accessible description of what is being compared.
18
18
  * @param {string} [props.className]
19
19
  */
20
- export default function AppCompareTable({ columns, rows, caption, className }: {
20
+ export default function AppCompareTable({ columns, rows, caption, className, ...rest }: {
21
21
  columns: {
22
22
  label: string;
23
23
  highlight?: boolean;
@@ -13,7 +13,7 @@
13
13
  * @param {string} [props.cancelLabel="Cancel"]
14
14
  * @param {() => void} props.onClose
15
15
  */
16
- export default function AppConfirmDialog({ open, title, message, confirmLabel, cancelLabel, danger, tone, confirmPhrase, onConfirm, onClose, }: {
16
+ export default function AppConfirmDialog({ open, title, message, confirmLabel, cancelLabel, danger, tone, confirmPhrase, onConfirm, onClose, ...rest }: {
17
17
  open: boolean;
18
18
  title: string;
19
19
  message?: import('react').ReactNode;
@@ -22,7 +22,7 @@
22
22
  * @param {(id: string|number) => void} [props.onToggleRow]
23
23
  * @param {(checked: boolean) => void} [props.onToggleAll] Toggle all current rows.
24
24
  */
25
- export default function AppDataTable({ columns, rows, rowKey, sort, onSort, loading, skeletonRows, empty, emptyFiltered, sourceCount, rowActions, rowActionsLabel, pagination, ariaLabel, className, selectable, selectedIds, onToggleRow, onToggleAll, }: {
25
+ export default function AppDataTable({ columns, rows, rowKey, sort, onSort, loading, skeletonRows, empty, emptyFiltered, sourceCount, rowActions, rowActionsLabel, pagination, ariaLabel, className, selectable, selectedIds, onToggleRow, onToggleAll, ...rest }: {
26
26
  columns: object[];
27
27
  rows: object[];
28
28
  rowKey?: (row: object) => string | number;
@@ -25,7 +25,7 @@ import '@webority/ui-elements';
25
25
  * @param {string} [props.ariaLabel]
26
26
  * @param {string} [props.className]
27
27
  */
28
- export default function AppDatePicker({ value, onChange, label, required, hint, error, name, min, max, placeholder, disabled, id, ariaLabel, className, }: {
28
+ export default function AppDatePicker({ value, onChange, label, required, hint, error, name, min, max, placeholder, disabled, id, ariaLabel, className, ...rest }: {
29
29
  value?: string;
30
30
  onChange?: (value: string) => void;
31
31
  label?: string;
@@ -1,4 +1,5 @@
1
- export default function AppDropdown({ icon, iconSize, toggleClassName, label, ariaLabel, align, items, menuClassName, linkComponent, }: {
1
+ export default function AppDropdown({ icon, iconSize, toggleClassName, label, ariaLabel, align, items, menuClassName, linkComponent, ...rest }: {
2
+ [x: string]: any;
2
3
  align?: string;
3
4
  ariaLabel: any;
4
5
  icon: any;
@@ -19,7 +19,7 @@
19
19
  * @param {string} [props.className]
20
20
  * @param {import('react').CSSProperties} [props.style]
21
21
  */
22
- export default function AppEmptyState({ icon, iconSize, size, title, text, action, className, style, }: {
22
+ export default function AppEmptyState({ icon, iconSize, size, title, text, action, className, style, ...rest }: {
23
23
  icon: string;
24
24
  iconSize?: number;
25
25
  size?: "md" | "sm";
@@ -20,7 +20,7 @@
20
20
  export default function AppFileAttachment({ label, value, // File | { url, name } | null
21
21
  name, onChange, // (file | null) => void
22
22
  accept, maxSizeMb, optional, error, // external error, shown alongside internal validation errors
23
- id, }: {
23
+ id, ...rest }: {
24
24
  label?: string;
25
25
  value?: File | {
26
26
  url: string;
@@ -13,7 +13,7 @@
13
13
  * @param {boolean} [props.required]
14
14
  * @param {string} [props.error]
15
15
  */
16
- export default function AppFilePicker({ label, value, name, onPick, accept, maxSizeMb, required, error, }: {
16
+ export default function AppFilePicker({ label, value, name, onPick, accept, maxSizeMb, required, error, ...rest }: {
17
17
  label: string;
18
18
  value?: File | {
19
19
  url: string;
@@ -12,7 +12,7 @@
12
12
  * @param {{ key?: string, icon: string, label: string, value: import('react').ReactNode, href?: string }[]} props.items
13
13
  * @param {string} [props.className]
14
14
  */
15
- export default function AppInfoList({ items, className }: {
15
+ export default function AppInfoList({ items, className, ...rest }: {
16
16
  items: {
17
17
  key?: string;
18
18
  icon: string;
@@ -1,4 +1,5 @@
1
- export default function AppInfoTip({ label, children }: {
1
+ export default function AppInfoTip({ label, children, ...rest }: {
2
+ [x: string]: any;
2
3
  children: any;
3
4
  label: any;
4
5
  }): import("react").JSX.Element;
@@ -16,6 +16,7 @@
16
16
  * the caller supplies the node; a glossary-backed app wraps its lookup here).
17
17
  * @param {string} [props.helpLabel="More information"] aria-label for the info-tip button.
18
18
  * @param {string} [props.type="text"]
19
+ * @param {"sm"|"md"|"lg"} [props.size="md"] Control size — sm/lg opt out of the shared height.
19
20
  * @param {string} [props.leftIcon] Icon name
20
21
  * @param {string} [props.rightIcon] Icon name
21
22
  * @param {() => void} [props.onRightIconClick]
@@ -25,6 +26,9 @@
25
26
  * @param {string} [props.className]
26
27
  * @param {string} [props.fieldClassName]
27
28
  * @param {boolean} [props.disabled=false]
29
+ * @param {boolean} [props.clearable=false] Show an ✕ button while the field has a value.
30
+ * @param {boolean} [props.showCount=false] Show a live `count / maxLength` under the field.
31
+ * @param {number} [props.maxLength] Character cap; the count turns red as it is approached.
28
32
  * @param {import('react').Ref<HTMLInputElement>} [ref]
29
33
  */
30
34
  declare const AppInput: import("react").ForwardRefExoticComponent<import("react").RefAttributes<any>>;
@@ -11,7 +11,7 @@
11
11
  * @param {boolean} [props.inline=false] Put the icon beside the text instead of above it.
12
12
  * @param {string} [props.className]
13
13
  */
14
- export default function AppKpiTile({ label, value, icon, delta, deltaDirection, inline, className, }: {
14
+ export default function AppKpiTile({ label, value, icon, delta, deltaDirection, inline, className, ...rest }: {
15
15
  label: string;
16
16
  value: import('react').ReactNode;
17
17
  icon?: string;
@@ -17,7 +17,7 @@ export default function AppLogoPicker({ value, // current image URL | null
17
17
  fallback, // node shown when there's no image (e.g. initials)
18
18
  name, onPick, // (file) => void — receives a validated File
19
19
  loading, // show a spinner + block interaction while the pick is uploading
20
- accept, maxSizeMb, overlayIcon, overlayLabel, ariaLabel, }: {
20
+ accept, maxSizeMb, overlayIcon, overlayLabel, ariaLabel, ...rest }: {
21
21
  value?: string | null;
22
22
  fallback?: import('react').ReactNode;
23
23
  name?: string;
@@ -18,7 +18,7 @@
18
18
  * @param {string} [props.className]
19
19
  * @param {import('react').ReactNode} props.children
20
20
  */
21
- export default function AppModal({ open, title, subtitle, headerIcon, onClose, footer, size, wide, side, maxWidth, hideHeader, className, children, }: {
21
+ export default function AppModal({ open, title, subtitle, headerIcon, onClose, footer, size, wide, side, maxWidth, hideHeader, className, children, ...rest }: {
22
22
  open: boolean;
23
23
  title?: import('react').ReactNode;
24
24
  subtitle?: import('react').ReactNode;
@@ -18,7 +18,7 @@ import '@webority/ui-elements';
18
18
  * @param {boolean} [props.required]
19
19
  * @param {string} [props.fieldClassName]
20
20
  */
21
- export default function AppMultiSelect({ values, onChange, options, placeholder, searchPlaceholder, searchable, disabled, name, label, error, hint, required, fieldClassName, }: {
21
+ export default function AppMultiSelect({ values, onChange, options, placeholder, searchPlaceholder, searchable, disabled, name, label, error, hint, required, fieldClassName, ...rest }: {
22
22
  values?: string[];
23
23
  onChange?: (values: string[]) => void;
24
24
  options?: {
@@ -1,22 +1,7 @@
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;
1
+ export default function AppPageHeader({ title, subtitle, actions, className, ...rest }: {
2
+ [x: string]: any;
3
+ actions: any;
21
4
  className?: string;
5
+ subtitle: any;
6
+ title: any;
22
7
  }): import("react").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import '@webority/ui-elements';
2
- export default function AppPhoneNumberInput({ value, onChange, country, disabled, name, label, placeholder, required, error, fieldClassName, }: {
2
+ export default function AppPhoneNumberInput({ value, onChange, country, disabled, name, label, placeholder, required, error, fieldClassName, ...rest }: {
3
+ [x: string]: any;
3
4
  country: any;
4
5
  disabled?: boolean;
5
6
  error: any;
@@ -21,7 +21,7 @@
21
21
  * @param {string} [props.badge='Most popular'] Text of the featured flag.
22
22
  * @param {string} [props.className]
23
23
  */
24
- export default function AppPricingCard({ name, price, unit, tagline, features, cta, featured, current, badge, className, }: {
24
+ export default function AppPricingCard({ name, price, unit, tagline, features, cta, featured, current, badge, className, ...rest }: {
25
25
  name: string;
26
26
  price: import('react').ReactNode;
27
27
  unit?: string;
@@ -23,7 +23,7 @@
23
23
  * @param {boolean} [props.numbered=true] Show the row index.
24
24
  * @param {string} [props.className]
25
25
  */
26
- export default function AppRepeater({ rows, renderRow, onAdd, onRemove, addLabel, removeLabel, emptyText, min, max, numbered, className, }: {
26
+ export default function AppRepeater({ rows, renderRow, onAdd, onRemove, addLabel, removeLabel, emptyText, min, max, numbered, className, ...rest }: {
27
27
  rows: {
28
28
  id?: string | number;
29
29
  }[];
@@ -17,7 +17,7 @@
17
17
  * library router-agnostic.
18
18
  * @param {string} [props.className]
19
19
  */
20
- export default function AppResourceCard({ icon, title, text, href, external, linkComponent: Link, className, }: {
20
+ export default function AppResourceCard({ icon, title, text, href, external, linkComponent: Link, className, ...rest }: {
21
21
  icon: string;
22
22
  title: string;
23
23
  text?: string;
@@ -20,7 +20,7 @@
20
20
  * @param {'sm'|'md'} [props.size='md']
21
21
  * @param {string} [props.className]
22
22
  */
23
- export default function AppSegmented({ options, value, onChange, label, name, size, className, }: {
23
+ export default function AppSegmented({ options, value, onChange, label, name, size, className, ...rest }: {
24
24
  options: {
25
25
  value: string;
26
26
  label: string;
@@ -1,5 +1,6 @@
1
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, }: {
2
+ export default function AppSelect({ value, onChange, options, placeholder, searchPlaceholder, searchable, disabled, label, required, error, hint, help, helpLabel, id, name, fieldClassName, ...rest }: {
3
+ [x: string]: any;
3
4
  disabled: any;
4
5
  error: any;
5
6
  fieldClassName?: string;
@@ -1,5 +1,6 @@
1
1
  import '@webority/ui-elements';
2
- export default function AppSelectMini({ value, onChange, options, placeholder, name, ariaLabel, id, disabled, className, }: {
2
+ export default function AppSelectMini({ value, onChange, options, placeholder, name, ariaLabel, id, disabled, className, ...rest }: {
3
+ [x: string]: any;
3
4
  ariaLabel: any;
4
5
  className: any;
5
6
  disabled: any;
@@ -26,7 +26,7 @@
26
26
  * @param {string} [props.navLabel='Main navigation']
27
27
  * @param {string} [props.className]
28
28
  */
29
- export default function AppShell({ groups, brand, sidebarFooter, topbarStart, topbarEnd, footer, children, collapsed, onCollapsedChange, noSidebar, navLabel, linkComponent: Link, className, }: {
29
+ export default function AppShell({ groups, brand, sidebarFooter, topbarStart, topbarEnd, footer, children, collapsed, onCollapsedChange, noSidebar, navLabel, linkComponent: Link, className, ...rest }: {
30
30
  groups: {
31
31
  label?: string;
32
32
  items: {
@@ -1,4 +1,5 @@
1
- export default function AppSidebarMenu({ show, onHide, side, title, titleIcon, header, children, footer, width, backdrop, scroll, keyboard, closeButton, responsive, className, bodyClassName, ariaLabel, }: {
1
+ export default function AppSidebarMenu({ show, onHide, side, title, titleIcon, header, children, footer, width, backdrop, scroll, keyboard, closeButton, responsive, className, bodyClassName, ariaLabel, ...rest }: {
2
+ [x: string]: any;
2
3
  ariaLabel: any;
3
4
  backdrop?: boolean;
4
5
  bodyClassName?: string;
@@ -8,7 +8,7 @@
8
8
  * @param {string} [props.className]
9
9
  * @param {import('react').CSSProperties} [props.style]
10
10
  */
11
- export default function AppSkeleton({ width, height, radius, className, style, }: {
11
+ export default function AppSkeleton({ width, height, radius, className, style, ...rest }: {
12
12
  width?: string | number;
13
13
  height?: string | number;
14
14
  radius?: string | number;
@@ -1,17 +1,6 @@
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;
1
+ export default function AppSpinner({ size, label, className, ...rest }: {
2
+ [x: string]: any;
16
3
  className?: string;
4
+ label?: string;
5
+ size?: string;
17
6
  }): import("react").JSX.Element;
@@ -1,25 +1,8 @@
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;
1
+ export default function AppSplash({ logo, initials, text, label, className, ...rest }: {
2
+ [x: string]: any;
24
3
  className?: string;
4
+ initials: any;
5
+ label?: string;
6
+ logo: any;
7
+ text: any;
25
8
  }): import("react").JSX.Element;
@@ -1,15 +1,6 @@
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;
1
+ export default function AppStatusBadge({ label, tone, className, ...rest }: {
2
+ [x: string]: any;
14
3
  className?: string;
4
+ label: any;
5
+ tone?: string;
15
6
  }): "—" | import("react").JSX.Element;
@@ -21,7 +21,7 @@
21
21
  * step; it receives `to` instead of `href`.
22
22
  * @param {string} [props.className]
23
23
  */
24
- export default function AppStepper({ steps, variant, label, linkComponent: Link, className, }: {
24
+ export default function AppStepper({ steps, variant, label, linkComponent: Link, className, ...rest }: {
25
25
  steps: {
26
26
  key?: string;
27
27
  label: string;
@@ -7,7 +7,7 @@
7
7
  * @param {import('react').ReactNode} [props.text]
8
8
  * @param {import('react').ReactNode} [props.action]
9
9
  */
10
- export default function AppTableEmptyState({ icon, title, text, action }: {
10
+ export default function AppTableEmptyState({ icon, title, text, action, ...rest }: {
11
11
  icon: string;
12
12
  title: import('react').ReactNode;
13
13
  text?: import('react').ReactNode;
@@ -18,7 +18,7 @@
18
18
  * @param {(size: number) => void} props.onPageSizeChange
19
19
  * @param {number[]} [props.pageSizes]
20
20
  */
21
- export default function AppTablePagination({ page, totalPages, pageSize, total, firstRow, lastRow, onPageChange, onPageSizeChange, pageSizes, }: {
21
+ export default function AppTablePagination({ page, totalPages, pageSize, total, firstRow, lastRow, onPageChange, onPageSizeChange, pageSizes, ...rest }: {
22
22
  page: number;
23
23
  totalPages: number;
24
24
  pageSize: number;
@@ -13,7 +13,7 @@
13
13
  * @param {string} [props.ariaLabel]
14
14
  * @param {string} [props.className]
15
15
  */
16
- export default function AppTabs({ tabs, value, onChange, variant, ariaLabel, className, }: {
16
+ export default function AppTabs({ tabs, value, onChange, variant, ariaLabel, className, ...rest }: {
17
17
  tabs: {
18
18
  key: string;
19
19
  label: import('react').ReactNode;
@@ -14,6 +14,7 @@
14
14
  * @param {string} [props.id]
15
15
  * @param {string} [props.name]
16
16
  * @param {number} [props.rows=4]
17
+ * @param {boolean} [props.autoGrow=false] Grow the height to fit the content as the user types.
17
18
  * @param {string} [props.className]
18
19
  * @param {string} [props.fieldClassName]
19
20
  * @param {import('react').Ref<HTMLTextAreaElement>} [ref]
@@ -12,7 +12,7 @@
12
12
  * Newest first — a reader scanning an audit trail expects the latest event at the top.
13
13
  * @param {string} [props.className]
14
14
  */
15
- export default function AppTimeline({ items, className }: {
15
+ export default function AppTimeline({ items, className, ...rest }: {
16
16
  items: {
17
17
  key?: string;
18
18
  icon?: string;
@@ -1,4 +1,6 @@
1
- export default function Icon({ name, size, className, color, style }: {
1
+ export declare const iconNames: string[];
2
+ export default function Icon({ name, size, className, color, style, ...rest }: {
3
+ [x: string]: any;
2
4
  className: any;
3
5
  color: any;
4
6
  name: any;
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Warn once per component+prop about anything the component neither declares nor can
3
+ * meaningfully forward.
4
+ *
5
+ * @param {string} component the component's public name, for the message
6
+ * @param {object} rest the undeclared props it collected
7
+ *
8
+ * ABSENCE OF A WARNING IS NOT PROOF OF CORRECTNESS.
9
+ *
10
+ * A wrong prop whose name happens to be a real HTML attribute cannot be told apart from a
11
+ * deliberate pass-through, so it stays silent. That is not one prop — the allowlist below
12
+ * contains `name`, `title`, `type`, `value`, `width`, `height` and more, so `<ActionIcon
13
+ * name="eye">` (meaning `icon`) and `<AppFoo title="…">` (meaning `label`) both pass
14
+ * unremarked. Silence means "nothing recognisably wrong", never "checked and correct".
15
+ *
16
+ * It also only sees components that MOUNT. A wrong prop inside a modal nobody opened, or a
17
+ * row-action menu on an empty list, produces no warning at all in a dev session — a
18
+ * consumer found five such cases only by checking statically against the shipped types.
19
+ *
20
+ * What it does catch reliably is the shape that has actually bitten: a prop name that is
21
+ * neither the component's API nor a valid attribute — `body`, `icon`, `iconRight`,
22
+ * `iconSize`, `variant` on a component that takes `tone`, `w`/`h`/`r` for
23
+ * `width`/`height`/`radius`, `invalid` for `error`.
24
+ */
25
+ export default function warnUnknownProps(component: string, rest: object): void;
@@ -50,7 +50,7 @@ export { default as AppTablePagination } from './components/AppTablePagination.j
50
50
  export { default as AppTabs } from './components/AppTabs.jsx';
51
51
  export { default as AppTextarea } from './components/AppTextarea.jsx';
52
52
  export { default as AppTimeline } from './components/AppTimeline.jsx';
53
- export { default as Icon } from './components/Icon.jsx';
53
+ export { default as Icon, iconNames } from './components/Icon.jsx';
54
54
  export { MODAL_ICONS } from './components/ModalIcons.jsx';
55
55
  export { default as RequiredMark } from './components/RequiredMark.jsx';
56
56
  export { errorToast, toast } from './components/toast.js';