@veevarts/design-system 1.17.0-beta.5 → 1.17.0-beta.7

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 (47) hide show
  1. package/dist/components/AppliedCodeCard/AppliedCodeCard.d.ts +13 -0
  2. package/dist/components/AppliedCodeCard/index.d.ts +2 -0
  3. package/dist/components/RedeemCodeInput/RedeemCodeInput.d.ts +21 -0
  4. package/dist/components/RedeemCodeInput/index.d.ts +2 -0
  5. package/dist/components/index.d.ts +4 -0
  6. package/dist/index.cjs +10 -4
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.js +7214 -6671
  9. package/dist/patterns/AdminTable/AdminTable.d.ts +42 -0
  10. package/dist/patterns/AdminTable/index.d.ts +3 -0
  11. package/dist/patterns/AdminTable/styles.d.ts +34 -0
  12. package/dist/patterns/AdminTextField/AdminTextField.d.ts +39 -0
  13. package/dist/patterns/AdminTextField/index.d.ts +3 -0
  14. package/dist/patterns/AdminTextField/styles.d.ts +35 -0
  15. package/dist/patterns/AdminToolbar/AdminToolbar.d.ts +18 -0
  16. package/dist/patterns/AdminToolbar/index.d.ts +2 -0
  17. package/dist/patterns/DimensionChip/index.d.ts +13 -2
  18. package/dist/patterns/InstallmentFundAssignment/InstallmentFundAssignment.d.ts +1 -1
  19. package/dist/patterns/InstallmentFundAssignment/types.d.ts +1 -0
  20. package/dist/patterns/InstallmentSchedule/InstallmentTable.d.ts +1 -1
  21. package/dist/patterns/InstallmentSchedule/types.d.ts +12 -0
  22. package/dist/patterns/{DimensionChip/DimensionChip.d.ts → KeyValueChip/KeyValueChip.d.ts} +4 -4
  23. package/dist/patterns/KeyValueChip/index.d.ts +2 -0
  24. package/dist/patterns/PaginationSummary/PaginationSummary.d.ts +26 -0
  25. package/dist/patterns/PaginationSummary/index.d.ts +3 -0
  26. package/dist/patterns/PaginationSummary/page-range.d.ts +19 -0
  27. package/dist/patterns/PickerRow/PickerRow.d.ts +27 -0
  28. package/dist/patterns/PickerRow/index.d.ts +2 -0
  29. package/dist/patterns/RowActions/RowActions.d.ts +17 -0
  30. package/dist/patterns/RowActions/index.d.ts +2 -0
  31. package/dist/patterns/StatusChip/StatusChip.d.ts +9 -5
  32. package/dist/patterns/Summary/components/TotalsLineRow.d.ts +6 -2
  33. package/dist/patterns/Summary/index.d.ts +1 -1
  34. package/dist/patterns/Summary/types.d.ts +31 -6
  35. package/dist/patterns/TableSkeleton/TableSkeleton.d.ts +32 -0
  36. package/dist/patterns/TableSkeleton/index.d.ts +2 -0
  37. package/dist/patterns/UnderlineTabs/UnderlineTabs.d.ts +18 -0
  38. package/dist/patterns/UnderlineTabs/index.d.ts +2 -0
  39. package/dist/patterns/grid-columns.d.ts +1 -1
  40. package/dist/patterns/index.d.ts +19 -3
  41. package/dist/tailwind/index.d.ts +4 -0
  42. package/dist/tailwind/index.js +68 -1
  43. package/dist/tokens/admin-surface.d.ts +58 -0
  44. package/dist/tokens/index.d.ts +2 -0
  45. package/package.json +1 -1
  46. package/dist/patterns/CheckboxCardGroup/CheckboxCardGroup.d.ts +0 -53
  47. package/dist/patterns/CheckboxCardGroup/index.d.ts +0 -2
@@ -0,0 +1,42 @@
1
+ import { default as React } from 'react';
2
+ import { TableBody } from '../../components';
3
+ export interface AdminTableColumn {
4
+ /** Stable identity for the column, and the key its cells are matched on. */
5
+ key: string;
6
+ /** Header text. Pass an empty string for a control column. */
7
+ label: React.ReactNode;
8
+ /** Cell alignment. Numeric columns should be `'right'`. */
9
+ align?: 'left' | 'right';
10
+ /** Fixed pixel width. Omit to let the column size to content. */
11
+ width?: number;
12
+ }
13
+ export interface AdminTableClassNames {
14
+ base?: string;
15
+ table?: string;
16
+ th?: string;
17
+ tr?: string;
18
+ td?: string;
19
+ footer?: string;
20
+ }
21
+ export interface AdminTableProps {
22
+ columns: AdminTableColumn[];
23
+ /**
24
+ * HeroUI `TableRow` children.
25
+ *
26
+ * Typed as HeroUI's own body-children type rather than `ReactNode`, so the
27
+ * collection contract is enforced where you write it: passing a bare `<tr>`
28
+ * is a type error here instead of `Unknown element <tr> in collection` at
29
+ * render time.
30
+ */
31
+ children: React.ComponentProps<typeof TableBody>['children'];
32
+ /** Shown when there are no rows. */
33
+ emptyContent?: React.ReactNode;
34
+ /** Rendered under the table — where a pager goes. */
35
+ footer?: React.ReactNode;
36
+ /** Accessible name. Required: a table with no name is unnavigable by screen reader. */
37
+ ariaLabel: string;
38
+ className?: string;
39
+ classNames?: AdminTableClassNames;
40
+ 'data-testid'?: string;
41
+ }
42
+ export declare const AdminTable: React.FC<AdminTableProps>;
@@ -0,0 +1,3 @@
1
+ export { AdminTable } from './AdminTable';
2
+ export type { AdminTableProps, AdminTableColumn, AdminTableClassNames } from './AdminTable';
3
+ export { adminRowClass, adminTableClass, adminTableFooterClass, adminTdClass, adminThClass, } from './styles';
@@ -0,0 +1,34 @@
1
+ /**
2
+ * The back-office table's appearance, in one place.
3
+ *
4
+ * `AdminTable` feeds these to HeroUI's slots; nothing here is spelled a second
5
+ * time inside the component. They started out split — exported strings here,
6
+ * "internal" ones inline — and the two immediately drifted: `adminTdClass` and
7
+ * the `td` slot were the same declaration with one dropping `align-middle`, and
8
+ * the row hover existed as both `hover:` and `data-[hover=true]:`. That is the
9
+ * exact failure these components were built to stop, so the split is gone.
10
+ *
11
+ * They are exported for the one screen that cannot use `AdminTable`: react-aria's
12
+ * collection API rejects an interleaved `<tr>`, so a table that expands a row
13
+ * into a full-width panel renders its own `<table>` and dresses it with these.
14
+ *
15
+ * The arbitrary values (`text-[11px]`, `tracking-[.04em]`) are the mockups'
16
+ * measurements, pinned rather than rounded to the nearest scale step: these
17
+ * surfaces are pixel-ports of signed-off designs.
18
+ */
19
+ /** Uppercase column header. `bg-transparent` overrides HeroUI's own header fill. */
20
+ export declare const adminThClass = "text-left text-[11px] font-semibold uppercase tracking-[.04em] text-acct-muted px-4 pt-4 pb-3 whitespace-nowrap bg-transparent";
21
+ /** Body cell. */
22
+ export declare const adminTdClass = "px-4 text-[13.5px] text-acct-ink2 align-middle";
23
+ /**
24
+ * Row hairline and hover.
25
+ *
26
+ * Carries both hover spellings on purpose: `data-[hover=true]:` is what HeroUI
27
+ * sets on its own rows, and `hover:` is what a plain `<tr>` responds to. One
28
+ * string serves both so the two renderings cannot look different.
29
+ */
30
+ export declare const adminRowClass = "border-t border-acct-hair transition-colors duration-150 hover:bg-acct-page data-[hover=true]:bg-acct-page";
31
+ /** The table element itself. */
32
+ export declare const adminTableClass = "w-full";
33
+ /** The strip under the table where a pager sits. */
34
+ export declare const adminTableFooterClass = "border-t border-acct-border px-5 py-3.5";
@@ -0,0 +1,39 @@
1
+ import { default as React } from 'react';
2
+ interface AdminTextFieldBase {
3
+ /** Uppercase label above the control. Omit only when an adjacent element already names it. */
4
+ label?: React.ReactNode;
5
+ value: string;
6
+ placeholder?: string;
7
+ disabled?: boolean;
8
+ /** Monospace face without the read-only treatment, for codes the user types. */
9
+ mono?: boolean;
10
+ /** Claim initial focus. Only for the first field of a dialog, never on a page. */
11
+ autoFocus?: boolean;
12
+ /** Small helper or error text under the control. */
13
+ hint?: React.ReactNode;
14
+ /** Renders the hint as an error and marks the control invalid. */
15
+ invalid?: boolean;
16
+ className?: string;
17
+ 'data-testid'?: string;
18
+ }
19
+ /**
20
+ * `onChange` is REQUIRED unless the field is read-only.
21
+ *
22
+ * This is a controlled input: given a `value` and no handler, React pins it and
23
+ * typing does nothing — a field that looks editable, accepts focus, and silently
24
+ * discards every keystroke. That is indistinguishable from a bug at a glance,
25
+ * and it is what happens by accident when someone renders one to show a value.
26
+ *
27
+ * Showing a value without accepting edits is a real case, so it stays possible;
28
+ * it just has to be said, with `readOnly`, which also renders it as system-owned
29
+ * and announces it correctly.
30
+ */
31
+ export type AdminTextFieldProps = AdminTextFieldBase & ({
32
+ readOnly: true;
33
+ onChange?: never;
34
+ } | {
35
+ readOnly?: false;
36
+ onChange: (value: string) => void;
37
+ });
38
+ export declare const AdminTextField: React.FC<AdminTextFieldProps>;
39
+ export {};
@@ -0,0 +1,3 @@
1
+ export { AdminTextField } from './AdminTextField';
2
+ export type { AdminTextFieldProps } from './AdminTextField';
3
+ export { adminFieldErrorClass, adminFieldHintClass, adminFieldLabelClass, adminInputClass, adminInputReadOnlyClass, adminInputWrapperClass, } from './styles';
@@ -0,0 +1,35 @@
1
+ /**
2
+ * The back-office field's appearance, in one place.
3
+ *
4
+ * `AdminTextField` feeds these to HeroUI's `Input` slots; nothing here is
5
+ * spelled a second time inside the component. Splitting them — exported strings
6
+ * here, "internal" ones inline — is what let this file and its component drift
7
+ * apart, so every slot's styling lives here whether or not a consumer needs it.
8
+ *
9
+ * They are exported so a form with a control this component does not cover (a
10
+ * textarea, a date picker) can dress its HeroUI counterpart identically rather
11
+ * than approximating it.
12
+ *
13
+ * The arbitrary values are the mockups' measurements, pinned rather than rounded
14
+ * to the nearest scale step: these surfaces are pixel-ports of signed-off
15
+ * designs.
16
+ */
17
+ /** Uppercase label above a control — HeroUI's `label` slot. */
18
+ export declare const adminFieldLabelClass = "text-[11px] font-semibold uppercase tracking-[.04em] text-acct-muted mb-1.5";
19
+ /**
20
+ * The 38px box — HeroUI's `inputWrapper` slot, which carries the border and
21
+ * background (the `input` slot is the bare field).
22
+ *
23
+ * `!h-[38px]` because HeroUI sets its own height per size, and the
24
+ * `data-[hover=]` / `group-data-[focus=]` hooks because overriding the plain
25
+ * classes alone leaves its own hover and focus borders showing through.
26
+ */
27
+ export declare const adminInputWrapperClass: string;
28
+ /** The bare field — HeroUI's `input` slot. */
29
+ export declare const adminInputClass = "text-[13.5px] text-acct-ink";
30
+ /** A value the system minted rather than the user: muted fill, not editable. */
31
+ export declare const adminInputReadOnlyClass = "bg-acct-page text-acct-muted cursor-default";
32
+ /** Helper text under the control — HeroUI's `description` slot. */
33
+ export declare const adminFieldHintClass = "mt-[5px] text-xs text-acct-sub";
34
+ /** Error text under the control — HeroUI's `errorMessage` slot. */
35
+ export declare const adminFieldErrorClass = "mt-[5px] text-xs text-acct-danger";
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export interface AdminToolbarProps {
3
+ searchValue: string;
4
+ onSearchChange: (value: string) => void;
5
+ /** Placeholder AND the hidden label, so the field is named even once filled. */
6
+ searchLabel: string;
7
+ /** Leading glyph inside the search box. */
8
+ searchIcon?: React.ReactNode;
9
+ /** Filters, sort pickers, a toggle — laid out after the search box. */
10
+ children?: React.ReactNode;
11
+ /** Pushed to the far right, for a primary action. */
12
+ trailing?: React.ReactNode;
13
+ /** Search box width. `'md'` (280px) by default, `'lg'` (360px) for wide tables. */
14
+ searchWidth?: 'md' | 'lg';
15
+ className?: string;
16
+ 'data-testid'?: string;
17
+ }
18
+ export declare const AdminToolbar: React.FC<AdminToolbarProps>;
@@ -0,0 +1,2 @@
1
+ export { AdminToolbar } from './AdminToolbar';
2
+ export type { AdminToolbarProps } from './AdminToolbar';
@@ -1,2 +1,13 @@
1
- export { DimensionChip } from './DimensionChip';
2
- export type { DimensionChipProps } from './DimensionChip';
1
+ /**
2
+ * @deprecated Use `KeyValueChip`. Same component, domain-neutral name.
3
+ *
4
+ * It shipped named after the accounting ledger's cost-center tags, which is
5
+ * what it was first built for and not what it is: it only ever knew
6
+ * "label: value", never what a dimension was. The name is what kept every
7
+ * other team from reaching for it.
8
+ *
9
+ * Kept as an alias so consumers on 1.21+ do not break. Remove on the next
10
+ * major, once the remaining imports have moved.
11
+ */
12
+ export { KeyValueChip as DimensionChip } from '../KeyValueChip';
13
+ export type { KeyValueChipProps as DimensionChipProps } from '../KeyValueChip';
@@ -1,3 +1,3 @@
1
1
  import { JSX } from 'react';
2
2
  import { InstallmentFundAssignmentProps } from './types';
3
- export declare function InstallmentFundAssignment({ assignments, funds, labels: customLabels, classNames, isSaving, hasSavedAssignments, isFundPickerOpen, activeAssignmentId, footer, onAssignmentsChange, onOpenFundPicker, onCloseFundPicker, onCollapseChange, onSave, }: InstallmentFundAssignmentProps): JSX.Element;
3
+ export declare function InstallmentFundAssignment({ assignments, funds, labels: customLabels, classNames, isSaving, hasSavedAssignments, isFundPickerOpen, activeAssignmentId, modalPortalContainer, footer, onAssignmentsChange, onOpenFundPicker, onCloseFundPicker, onCollapseChange, onSave, }: InstallmentFundAssignmentProps): JSX.Element;
@@ -57,6 +57,7 @@ export type InstallmentFundAssignmentProps = {
57
57
  hasSavedAssignments?: boolean;
58
58
  isFundPickerOpen?: boolean;
59
59
  activeAssignmentId?: string | null;
60
+ modalPortalContainer?: Element;
60
61
  footer?: ReactNode;
61
62
  onModeChange?: (mode: InstallmentFundAssignmentMode) => void;
62
63
  onAssignmentsChange: (assignments: InstallmentFundAssignmentEntry[]) => void;
@@ -1,3 +1,3 @@
1
1
  import { JSX } from 'react';
2
2
  import { InstallmentTableProps } from './types';
3
- export declare function InstallmentTable({ installments, currency, locale, showTitle, showCard, showEditPayment, labels: customLabels, isSaving, onEditInstallments, onPayInstallment, onDeleteInstallment, }: InstallmentTableProps): JSX.Element;
3
+ export declare function InstallmentTable({ installments, currency, locale, showTitle, showCard, showEditPayment, showDelete, payNowHiddenStatuses, labels: customLabels, isSaving, onEditInstallments, onPayInstallment, onDeleteInstallment, }: InstallmentTableProps): JSX.Element;
@@ -109,6 +109,18 @@ export type InstallmentTableProps = {
109
109
  showTitle?: boolean;
110
110
  showCard?: boolean;
111
111
  showEditPayment?: boolean;
112
+ /**
113
+ * FR-1619 — when `false`, the delete action inside the row-actions
114
+ * dropdown is not rendered. Defaults to `true` (backward-compatible).
115
+ */
116
+ showDelete?: boolean;
117
+ /**
118
+ * FR-1619 — statuses for which the Pay Now button is NOT rendered on a row.
119
+ * Typed with the `InstallmentStatus` union so consumers get compile-time
120
+ * safety on status keys. The pre-existing `paid` disabled guard still
121
+ * applies to any Pay Now button that IS rendered. Defaults to `[]`.
122
+ */
123
+ payNowHiddenStatuses?: InstallmentStatus[];
112
124
  labels?: InstallmentTableLabels;
113
125
  isSaving?: boolean;
114
126
  onEditInstallments: () => void;
@@ -1,12 +1,12 @@
1
1
  import { default as React } from 'react';
2
- export interface DimensionChipProps {
3
- /** Muted leading text — the category/type (e.g. a dimension-type name). */
2
+ export interface KeyValueChipProps {
3
+ /** Muted leading text — what the value describes (a field, category or type name). */
4
4
  label: React.ReactNode;
5
- /** Emphasised trailing text — the selected value. */
5
+ /** Emphasised trailing text — the value itself. */
6
6
  value: React.ReactNode;
7
7
  /** Chip size. `'sm'` (default) for dense tables, `'md'` for detail panels. */
8
8
  size?: 'sm' | 'md';
9
9
  className?: string;
10
10
  'data-testid'?: string;
11
11
  }
12
- export declare const DimensionChip: React.FC<DimensionChipProps>;
12
+ export declare const KeyValueChip: React.FC<KeyValueChipProps>;
@@ -0,0 +1,2 @@
1
+ export { KeyValueChip } from './KeyValueChip';
2
+ export type { KeyValueChipProps } from './KeyValueChip';
@@ -0,0 +1,26 @@
1
+ import { default as React } from 'react';
2
+ export interface PaginationSummaryClassNames {
3
+ base?: string;
4
+ emphasis?: string;
5
+ }
6
+ export interface PaginationSummaryProps {
7
+ /** Current page, 1-based. */
8
+ page: number;
9
+ /** Rows per page. */
10
+ pageSize: number;
11
+ /** Total rows across all pages, not the length of the current page. */
12
+ total: number;
13
+ /** What is being counted, already pluralised (e.g. `"entries"`). */
14
+ unit?: React.ReactNode;
15
+ /**
16
+ * Announce range changes to assistive tech. On by default: paging is a
17
+ * user-initiated change whose only text confirmation is this line. Turn it
18
+ * off when the surrounding table already announces its own updates, to
19
+ * avoid reading the change twice.
20
+ */
21
+ announce?: boolean;
22
+ className?: string;
23
+ classNames?: PaginationSummaryClassNames;
24
+ 'data-testid'?: string;
25
+ }
26
+ export declare const PaginationSummary: React.FC<PaginationSummaryProps>;
@@ -0,0 +1,3 @@
1
+ export { PaginationSummary } from './PaginationSummary';
2
+ export type { PaginationSummaryProps, PaginationSummaryClassNames } from './PaginationSummary';
3
+ export { pageRange } from './page-range';
@@ -0,0 +1,19 @@
1
+ /**
2
+ * The inclusive 1-based range covered by the current page.
3
+ *
4
+ * Its own module rather than a second export from `PaginationSummary.tsx`, so
5
+ * that file exports only its component (`react-refresh/only-export-components`).
6
+ * It is exported at all because the arithmetic, not the markup, is what callers
7
+ * reuse: one rendering its own sentence (another language, another emphasis)
8
+ * should not have to restate the edge cases.
9
+ *
10
+ * - No rows at all → `0–0`, so the caller can render "0 of 0" rather than the
11
+ * `1–0` that the naive formula produces.
12
+ * - Last page → `to` is clamped to `total`, never `page * pageSize`.
13
+ * - `page` past the end (a filter that shrank the result set before the page
14
+ * state caught up) → an empty range rather than a negative one.
15
+ */
16
+ export declare function pageRange(page: number, pageSize: number, total: number): {
17
+ from: number;
18
+ to: number;
19
+ };
@@ -0,0 +1,27 @@
1
+ import { default as React } from 'react';
2
+ export interface PickerRowProps {
3
+ /** Rendered inside the trigger when a value is set. Omit for the empty state. */
4
+ children?: React.ReactNode;
5
+ /** Shown when there is no value. */
6
+ placeholder?: string;
7
+ /** Opens the picker. */
8
+ onOpen: () => void;
9
+ /** Clears the value. Omitted or undefined hides the clear button entirely. */
10
+ onClear?: () => void;
11
+ /**
12
+ * Accessible name for the trigger. Say what is being picked, not what is
13
+ * picked: "Revenue account" reads better than repeating the value, which the
14
+ * content already announces.
15
+ */
16
+ ariaLabel: string;
17
+ /** Leading glyph. Pass an inline SVG. */
18
+ icon?: React.ReactNode;
19
+ /** Trailing affordance, normally a chevron. Pass an inline SVG. */
20
+ trailingIcon?: React.ReactNode;
21
+ /** Glyph for the clear button. Pass an inline SVG. */
22
+ clearIcon?: React.ReactNode;
23
+ disabled?: boolean;
24
+ className?: string;
25
+ 'data-testid'?: string;
26
+ }
27
+ export declare const PickerRow: React.FC<PickerRowProps>;
@@ -0,0 +1,2 @@
1
+ export { PickerRow } from './PickerRow';
2
+ export type { PickerRowProps } from './PickerRow';
@@ -0,0 +1,17 @@
1
+ import { default as React } from 'react';
2
+ export interface RowAction {
3
+ key: string;
4
+ /** Accessible name AND tooltip. Include the subject: "Edit Annual Fund", not "Edit". */
5
+ label: string;
6
+ icon: React.ReactNode;
7
+ onPress: () => void;
8
+ disabled?: boolean;
9
+ }
10
+ export interface RowActionsProps {
11
+ actions: RowAction[];
12
+ /** Button edge length. `'md'` (30px) by default, `'sm'` (24px) for dense rows. */
13
+ size?: 'sm' | 'md';
14
+ className?: string;
15
+ 'data-testid'?: string;
16
+ }
17
+ export declare const RowActions: React.FC<RowActionsProps>;
@@ -0,0 +1,2 @@
1
+ export { RowActions } from './RowActions';
2
+ export type { RowActionsProps, RowAction } from './RowActions';
@@ -7,16 +7,20 @@ export interface StatusChipProps {
7
7
  status: StatusChipStatus;
8
8
  /** Visible label. Caller-supplied so no domain copy lives here. */
9
9
  label: React.ReactNode;
10
- /** HeroUI chip variant. Default `'flat'` (soft pill). */
11
- variant?: ChipProps['variant'];
12
- /** Chip size. Default `'sm'`. */
10
+ /**
11
+ * Visual style. HeroUI chip variants (default `'flat'`), plus the DS
12
+ * `'dot'` variant: a soft, radius-full pill with a leading tone dot,
13
+ * 12px / weight-600 text, tuned for dense admin lifecycle tables.
14
+ */
15
+ variant?: ChipProps['variant'] | 'dot';
16
+ /** Chip size. Default `'sm'`. Ignored by `variant="dot"`. */
13
17
  size?: ChipProps['size'];
14
18
  /**
15
19
  * Override the colour derived from `status`. Escape hatch for the
16
- * rare state not covered by `StatusChipStatus`.
20
+ * rare state not covered by `StatusChipStatus`. Ignored by `variant="dot"`.
17
21
  */
18
22
  color?: ChipProps['color'];
19
- /** Optional leading element (dot, icon). */
23
+ /** Optional leading element (dot, icon). Ignored by `variant="dot"`. */
20
24
  startContent?: React.ReactNode;
21
25
  className?: string;
22
26
  'data-testid'?: string;
@@ -1,8 +1,12 @@
1
1
  import { default as React } from 'react';
2
- import { SummaryTotalRow } from '../types';
2
+ import { SummaryPostTotalRow } from '../types';
3
3
  export interface TotalsLineRowProps {
4
- row: SummaryTotalRow;
4
+ row: SummaryPostTotalRow;
5
5
  locale: string;
6
6
  emphasized: boolean;
7
+ onRemove?: (id: string) => void;
8
+ removeAriaLabel?: string;
9
+ /** Show the per-row remove control. Defaults to `true`. */
10
+ showRemoveButton?: boolean;
7
11
  }
8
12
  export declare const TotalsLineRow: React.FC<TotalsLineRowProps>;
@@ -4,4 +4,4 @@
4
4
  * Total + CTA, and a compact mobile bottom-bar.
5
5
  */
6
6
  export { Summary } from './Summary';
7
- export type { SummaryProps, SummaryLineItem, SummaryItemDetail, SummaryServiceFee, SummaryTotalRow, SummaryPrimaryAction, SummaryLabels, Money, } from './types';
7
+ export type { SummaryProps, SummaryLineItem, SummaryItemDetail, SummaryServiceFee, SummaryTotalRow, SummaryPostTotalRow, SummaryPrimaryAction, SummaryLabels, Money, } from './types';
@@ -73,6 +73,16 @@ export interface SummaryTotalRow {
73
73
  label: ReactNode;
74
74
  amount: Money;
75
75
  }
76
+ /**
77
+ * A post-total row — the same flat shape as {@link SummaryTotalRow}, plus an
78
+ * optional `id` that (together with `onRemovePostTotalRow`) enables the same
79
+ * trash remove control the line items use. Kept as its own interface so the
80
+ * pre-total `rows` — where an id/remove has no meaning — stay untouched.
81
+ */
82
+ export interface SummaryPostTotalRow extends SummaryTotalRow {
83
+ /** Stable id; when set and `onRemovePostTotalRow` exists, the row shows the remove control. */
84
+ id?: string;
85
+ }
76
86
  /** The primary call-to-action (orange pill + arrow). */
77
87
  export interface SummaryPrimaryAction {
78
88
  label: ReactNode;
@@ -84,6 +94,8 @@ export interface SummaryPrimaryAction {
84
94
  export interface SummaryLabels {
85
95
  /** Aria label for the per-item remove control. Default "Remove item". */
86
96
  removeAriaLabel?: string;
97
+ /** Aria label for the per-post-total-row remove control. Default "Remove applied code". */
98
+ removePostTotalRowAriaLabel?: string;
87
99
  /** Aria label for the collapse/expand press target. Default "Toggle summary". */
88
100
  toggleAriaLabel?: string;
89
101
  /** Aria label for the mobile cart button. Default "View cart". */
@@ -146,9 +158,19 @@ export interface SummaryProps {
146
158
  amount: Money;
147
159
  };
148
160
  /**
149
- * An optional secondary total rendered right under the Total, in the primary
150
- * color (e.g. "Due Today"). Purely presentational — the host supplies both
151
- * the label and the already-computed amount.
161
+ * Optional flat rows rendered BETWEEN the Total and the secondary total —
162
+ * e.g. applied gift cards as tenders ("Gift Card · …XWDG −$50.00"). Same
163
+ * shape and flat style as `rows`; negative amounts are passed as data,
164
+ * exactly like a Discounts line. The Total itself is never affected. Rows
165
+ * with an `id` show the trash remove control when `onRemovePostTotalRow`
166
+ * is provided (same gating as the item remove, incl. `showRemoveButton`).
167
+ */
168
+ postTotalRows?: SummaryPostTotalRow[];
169
+ /**
170
+ * An optional secondary total rendered under the Total (after any
171
+ * `postTotalRows`), in the primary color (e.g. "Due Today"). Purely
172
+ * presentational — the host supplies both the label and the
173
+ * already-computed amount.
152
174
  */
153
175
  secondaryTotal?: {
154
176
  label: ReactNode;
@@ -160,9 +182,10 @@ export interface SummaryProps {
160
182
  */
161
183
  ctaCaption?: ReactNode;
162
184
  /**
163
- * Whether the per-item remove (trash) control is shown. Defaults to `true`;
164
- * pass `false` to hide it even when `onRemoveItem` is wired. Independent of
165
- * `onRemoveItem` so a host can keep the handler but suppress the control.
185
+ * Whether the remove (trash) controls are shown — per-item and
186
+ * per-post-total-row alike. Defaults to `true`; pass `false` to hide them
187
+ * even when `onRemoveItem` / `onRemovePostTotalRow` are wired. Independent
188
+ * of the handlers so a host can keep them but suppress the controls.
166
189
  */
167
190
  showRemoveButton?: boolean;
168
191
  /**
@@ -190,6 +213,8 @@ export interface SummaryProps {
190
213
  primaryAction?: SummaryPrimaryAction;
191
214
  /** When provided, item rows show a red trash remove control. */
192
215
  onRemoveItem?: (id: string) => void;
216
+ /** When provided, post-total rows with an `id` show the same red trash remove control. */
217
+ onRemovePostTotalRow?: (id: string) => void;
193
218
  /**
194
219
  * Layout: full card (`'main'`) or the bottom-sheet / compact bar (`'mobile'`).
195
220
  * When OMITTED the layout is auto-detected from the viewport (below `md`
@@ -0,0 +1,32 @@
1
+ import { default as React } from 'react';
2
+ export interface TableSkeletonClassNames {
3
+ base?: string;
4
+ row?: string;
5
+ bar?: string;
6
+ }
7
+ export interface TableSkeletonProps {
8
+ /**
9
+ * One entry per column, giving that column's bar width.
10
+ *
11
+ * A number is a pixel width; `'fill'` makes the column take the remaining
12
+ * space, for the one text column that should stretch. Widths approximating
13
+ * the real content are what stop the layout shifting on load.
14
+ */
15
+ columns: Array<number | 'fill'>;
16
+ /** How many placeholder rows to draw. Default 6. */
17
+ rows?: number;
18
+ /**
19
+ * Announced while loading. Give it something specific ("Loading
20
+ * dimensions"); it is the only thing a screen reader gets from this
21
+ * component, since the bars themselves are hidden.
22
+ */
23
+ label?: string;
24
+ /** Height of each bar in pixels. Default 12. */
25
+ barHeight?: number;
26
+ /** Right-aligns the last column's bar, for a trailing numeric or actions column. */
27
+ alignLastRight?: boolean;
28
+ className?: string;
29
+ classNames?: TableSkeletonClassNames;
30
+ 'data-testid'?: string;
31
+ }
32
+ export declare const TableSkeleton: React.FC<TableSkeletonProps>;
@@ -0,0 +1,2 @@
1
+ export { TableSkeleton } from './TableSkeleton';
2
+ export type { TableSkeletonProps, TableSkeletonClassNames } from './TableSkeleton';
@@ -0,0 +1,18 @@
1
+ import { default as React } from 'react';
2
+ export interface UnderlineTabItem<K extends string = string> {
3
+ key: K;
4
+ label: React.ReactNode;
5
+ }
6
+ export interface UnderlineTabsProps<K extends string = string> {
7
+ items: UnderlineTabItem<K>[];
8
+ value: K;
9
+ onChange: (key: K) => void;
10
+ /** Names the tablist. Required — an unnamed tablist gives no context. */
11
+ ariaLabel: string;
12
+ className?: string;
13
+ 'data-testid'?: string;
14
+ }
15
+ export declare function UnderlineTabs<K extends string = string>({ items, value, onChange, ariaLabel, className, 'data-testid': dataTestId, }: UnderlineTabsProps<K>): import("react/jsx-runtime").JSX.Element;
16
+ export declare namespace UnderlineTabs {
17
+ var displayName: string;
18
+ }
@@ -0,0 +1,2 @@
1
+ export { UnderlineTabs } from './UnderlineTabs';
2
+ export type { UnderlineTabsProps, UnderlineTabItem } from './UnderlineTabs';
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Shared responsive grid-column class maps for the card-picker patterns
3
- * (TileSelect single-select, CheckboxCardGroup multi-select). Kept in one
3
+ * (TileSelect, and previously CheckboxCardGroup). Kept in one
4
4
  * place so the two siblings never drift on breakpoints or column counts.
5
5
  *
6
6
  * The literal Tailwind classes must stay spelled out (not interpolated) so
@@ -45,10 +45,26 @@ export { PageHeader } from './PageHeader';
45
45
  export type { PageHeaderProps, PageHeaderClassNames } from './PageHeader';
46
46
  export { StatusChip } from './StatusChip';
47
47
  export type { StatusChipProps, StatusChipStatus } from './StatusChip';
48
+ export { KeyValueChip } from './KeyValueChip';
49
+ export type { KeyValueChipProps } from './KeyValueChip';
48
50
  export { DimensionChip } from './DimensionChip';
49
51
  export type { DimensionChipProps } from './DimensionChip';
50
- export { CheckboxCardGroup } from './CheckboxCardGroup';
51
- export type { CheckboxCardGroupProps, CheckboxCardOption } from './CheckboxCardGroup';
52
+ export { TableSkeleton } from './TableSkeleton';
53
+ export type { TableSkeletonProps, TableSkeletonClassNames } from './TableSkeleton';
54
+ export { AdminTable, adminRowClass, adminTableClass, adminTableFooterClass, adminTdClass, adminThClass, } from './AdminTable';
55
+ export type { AdminTableProps, AdminTableColumn, AdminTableClassNames } from './AdminTable';
56
+ export { AdminToolbar } from './AdminToolbar';
57
+ export type { AdminToolbarProps } from './AdminToolbar';
58
+ export { UnderlineTabs } from './UnderlineTabs';
59
+ export type { UnderlineTabsProps, UnderlineTabItem } from './UnderlineTabs';
60
+ export { AdminTextField, adminFieldErrorClass, adminFieldHintClass, adminFieldLabelClass, adminInputClass, adminInputReadOnlyClass, adminInputWrapperClass, } from './AdminTextField';
61
+ export type { AdminTextFieldProps } from './AdminTextField';
62
+ export { RowActions } from './RowActions';
63
+ export type { RowActionsProps, RowAction } from './RowActions';
64
+ export { PickerRow } from './PickerRow';
65
+ export type { PickerRowProps } from './PickerRow';
66
+ export { PaginationSummary, pageRange } from './PaginationSummary';
67
+ export type { PaginationSummaryProps, PaginationSummaryClassNames } from './PaginationSummary';
52
68
  export { ListPanel } from './ListPanel';
53
69
  export type { ListPanelProps, ListPanelClassNames } from './ListPanel';
54
70
  export { CashTenderForm } from './CashTenderForm';
@@ -76,4 +92,4 @@ export type { PaymentSubAmountInputProps } from './PaymentSubAmountInput';
76
92
  export { ConfirmDialog } from './ConfirmDialog';
77
93
  export type { ConfirmDialogProps, ConfirmDialogVariant } from './ConfirmDialog';
78
94
  export { Summary } from './Summary';
79
- export type { SummaryProps, SummaryLineItem, SummaryItemDetail, SummaryServiceFee, SummaryTotalRow, SummaryPrimaryAction, SummaryLabels, } from './Summary';
95
+ export type { SummaryProps, SummaryLineItem, SummaryItemDetail, SummaryServiceFee, SummaryTotalRow, SummaryPostTotalRow, SummaryPrimaryAction, SummaryLabels, } from './Summary';
@@ -2,6 +2,7 @@ import { colors } from '../tokens/colors';
2
2
  import { typography } from '../tokens/typography';
3
3
  import { spacing } from '../tokens/spacing';
4
4
  export { colors, typography, spacing };
5
+ export { adminSurfaceCss, adminSurfaceTokens, adminSurfaceTailwindColors } from '../tokens/admin-surface';
5
6
  export interface ColorPalette {
6
7
  50: string;
7
8
  100: string;
@@ -45,6 +46,7 @@ export interface HeroUIConfig {
45
46
  */
46
47
  export declare const tailwindTheme: {
47
48
  colors: {
49
+ acct: Record<string, string>;
48
50
  secondary: "#000000";
49
51
  success: "#057A54";
50
52
  warning: "#F5A524";
@@ -245,6 +247,7 @@ export declare const veevartPreset: {
245
247
  theme: {
246
248
  extend: {
247
249
  colors: {
250
+ acct: Record<string, string>;
248
251
  secondary: "#000000";
249
252
  success: "#057A54";
250
253
  warning: "#F5A524";
@@ -475,6 +478,7 @@ export declare const tokens: {
475
478
  };
476
479
  tailwindTheme: {
477
480
  colors: {
481
+ acct: Record<string, string>;
478
482
  secondary: "#000000";
479
483
  success: "#057A54";
480
484
  warning: "#F5A524";