@veevarts/design-system 1.17.0-beta.6 → 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 (38) hide show
  1. package/dist/index.cjs +10 -4
  2. package/dist/index.d.ts +2 -0
  3. package/dist/index.js +4393 -4015
  4. package/dist/patterns/AdminTable/AdminTable.d.ts +42 -0
  5. package/dist/patterns/AdminTable/index.d.ts +3 -0
  6. package/dist/patterns/AdminTable/styles.d.ts +34 -0
  7. package/dist/patterns/AdminTextField/AdminTextField.d.ts +39 -0
  8. package/dist/patterns/AdminTextField/index.d.ts +3 -0
  9. package/dist/patterns/AdminTextField/styles.d.ts +35 -0
  10. package/dist/patterns/AdminToolbar/AdminToolbar.d.ts +18 -0
  11. package/dist/patterns/AdminToolbar/index.d.ts +2 -0
  12. package/dist/patterns/DimensionChip/index.d.ts +13 -2
  13. package/dist/patterns/InstallmentFundAssignment/InstallmentFundAssignment.d.ts +1 -1
  14. package/dist/patterns/InstallmentFundAssignment/types.d.ts +1 -0
  15. package/dist/patterns/InstallmentSchedule/InstallmentTable.d.ts +1 -1
  16. package/dist/patterns/InstallmentSchedule/types.d.ts +12 -0
  17. package/dist/patterns/{DimensionChip/DimensionChip.d.ts → KeyValueChip/KeyValueChip.d.ts} +4 -4
  18. package/dist/patterns/KeyValueChip/index.d.ts +2 -0
  19. package/dist/patterns/PaginationSummary/PaginationSummary.d.ts +26 -0
  20. package/dist/patterns/PaginationSummary/index.d.ts +3 -0
  21. package/dist/patterns/PaginationSummary/page-range.d.ts +19 -0
  22. package/dist/patterns/PickerRow/PickerRow.d.ts +27 -0
  23. package/dist/patterns/PickerRow/index.d.ts +2 -0
  24. package/dist/patterns/RowActions/RowActions.d.ts +17 -0
  25. package/dist/patterns/RowActions/index.d.ts +2 -0
  26. package/dist/patterns/TableSkeleton/TableSkeleton.d.ts +32 -0
  27. package/dist/patterns/TableSkeleton/index.d.ts +2 -0
  28. package/dist/patterns/UnderlineTabs/UnderlineTabs.d.ts +18 -0
  29. package/dist/patterns/UnderlineTabs/index.d.ts +2 -0
  30. package/dist/patterns/grid-columns.d.ts +1 -1
  31. package/dist/patterns/index.d.ts +18 -2
  32. package/dist/tailwind/index.d.ts +4 -0
  33. package/dist/tailwind/index.js +68 -1
  34. package/dist/tokens/admin-surface.d.ts +58 -0
  35. package/dist/tokens/index.d.ts +2 -0
  36. package/package.json +1 -1
  37. package/dist/patterns/CheckboxCardGroup/CheckboxCardGroup.d.ts +0 -53
  38. 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';
@@ -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';
@@ -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";
@@ -20,6 +20,9 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // src/tailwind/index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
+ adminSurfaceCss: () => adminSurfaceCss,
24
+ adminSurfaceTailwindColors: () => adminSurfaceTailwindColors,
25
+ adminSurfaceTokens: () => adminSurfaceTokens,
23
26
  colors: () => colors,
24
27
  createHeroUIConfig: () => createHeroUIConfig,
25
28
  deepMerge: () => deepMerge,
@@ -209,12 +212,73 @@ var spacing = {
209
212
  // 128px
210
213
  };
211
214
 
215
+ // src/tokens/admin-surface.ts
216
+ var { gray } = colors.neutral;
217
+ var WARNING_TEXT = colors.palettes.warning[700];
218
+ var WARNING_FILL = colors.palettes.warning[100];
219
+ var SIGNED_OFF = {
220
+ rustFill: "#FBEBE4",
221
+ rustBorder: "#EBC3B1",
222
+ page: "#F6F7F8",
223
+ border: "#E7E9EC",
224
+ hair: "#EEF0F2",
225
+ okFill: "#E6F4EF",
226
+ dangerFill: "#FBEAE8",
227
+ infoFill: "#E8EEFC"
228
+ };
229
+ var adminSurfaceTokens = {
230
+ // Brand — the 500 already matches the scale exactly.
231
+ "--rust": colors.brand.primary[500],
232
+ "--rust-fill": SIGNED_OFF.rustFill,
233
+ "--rust-border": SIGNED_OFF.rustBorder,
234
+ // Chrome
235
+ "--page": SIGNED_OFF.page,
236
+ "--surface": colors.neutral.white,
237
+ "--border": SIGNED_OFF.border,
238
+ "--hair": SIGNED_OFF.hair,
239
+ // Text — all four match the scale's grays exactly.
240
+ "--ink": gray[900],
241
+ "--ink2": gray[700],
242
+ "--sub": gray[500],
243
+ "--muted": gray[400],
244
+ // Semantic — text tone paired with the tint it sits on.
245
+ "--ok": colors.semantic.success,
246
+ "--ok-fill": SIGNED_OFF.okFill,
247
+ "--warn": WARNING_TEXT,
248
+ "--warn-fill": WARNING_FILL,
249
+ "--danger": colors.semantic.danger,
250
+ "--danger-fill": SIGNED_OFF.dangerFill,
251
+ "--info": colors.semantic.info,
252
+ "--info-fill": SIGNED_OFF.infoFill
253
+ };
254
+ var adminSurfaceTailwindColors = Object.fromEntries(
255
+ Object.entries(adminSurfaceTokens).map(([name, value]) => [name.replace(/^--/, ""), value])
256
+ );
257
+ function adminSurfaceCss({
258
+ scope = ".acct",
259
+ fontFamily = "'NeueMontreal', system-ui, sans-serif"
260
+ } = {}) {
261
+ const declarations = Object.entries(adminSurfaceTokens).map(([name, value]) => ` ${name}: ${value};`).join("\n");
262
+ const typography2 = fontFamily ? `
263
+ font-family: ${fontFamily};
264
+ color: var(--ink);` : "";
265
+ return `${scope} {
266
+ ${declarations}${typography2}
267
+ }
268
+ `;
269
+ }
270
+
212
271
  // src/tailwind/index.ts
213
272
  var tailwindTheme = {
214
273
  colors: {
215
274
  ...colors.brand,
216
275
  ...colors.neutral,
217
- ...colors.semantic
276
+ ...colors.semantic,
277
+ // Back-office surface palette, namespaced so `border`/`page`/`info` do
278
+ // not collide with Tailwind's own utility grammar. Sourced from the
279
+ // same object that emits the CSS custom properties, so the utility and
280
+ // the property cannot disagree. See src/tokens/admin-surface.ts.
281
+ acct: adminSurfaceTailwindColors
218
282
  },
219
283
  fontFamily: typography.fontFamily,
220
284
  spacing,
@@ -298,6 +362,9 @@ var tokens = {
298
362
  };
299
363
  // Annotate the CommonJS export names for ESM import in node:
300
364
  0 && (module.exports = {
365
+ adminSurfaceCss,
366
+ adminSurfaceTailwindColors,
367
+ adminSurfaceTokens,
301
368
  colors,
302
369
  createHeroUIConfig,
303
370
  deepMerge,