cekat-ui 1.3.3 → 1.3.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.
- package/dist/index.d.mts +152 -1
- package/dist/index.d.ts +152 -1
- package/dist/index.mjs +9639 -4940
- package/dist/index.umd.js +4 -4
- package/dist/style.css +416 -0
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import { ButtonProps as ButtonProps_2 } from 'react-aria-components';
|
|
2
2
|
import { ButtonRenderProps } from 'react-aria-components';
|
|
3
|
+
import { CellProps as CellProps_2 } from 'react-aria-components';
|
|
3
4
|
import { ClassValue } from 'clsx';
|
|
5
|
+
import { ColumnProps as ColumnProps_2 } from 'react-aria-components';
|
|
6
|
+
import { ColumnResizerProps as ColumnResizerProps_2 } from 'react-aria-components';
|
|
4
7
|
import { default as default_2 } from 'react';
|
|
5
8
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
6
9
|
import { Key } from 'react-aria-components';
|
|
7
10
|
import { PressEvent } from 'react-aria-components';
|
|
8
11
|
import * as React_2 from 'react';
|
|
9
12
|
import { ReactNode } from 'react';
|
|
13
|
+
import { ResizableTableContainerProps } from 'react-aria-components';
|
|
14
|
+
import { RowProps as RowProps_2 } from 'react-aria-components';
|
|
15
|
+
import { SelectionIndicator } from 'react-aria-components';
|
|
16
|
+
import { TableBodyProps as TableBodyProps_2 } from 'react-aria-components';
|
|
17
|
+
import { TableFooterProps as TableFooterProps_2 } from 'react-aria-components';
|
|
18
|
+
import { TableHeaderProps as TableHeaderProps_2 } from 'react-aria-components';
|
|
19
|
+
import { TableLoadMoreItemProps as TableLoadMoreItemProps_2 } from 'react-aria-components';
|
|
20
|
+
import { TableProps as TableProps_2 } from 'react-aria-components';
|
|
10
21
|
|
|
11
22
|
export declare const Alert: {
|
|
12
23
|
({ title, description, color, layout, background, icon, iconVariant, showIcon, primaryAction, secondaryAction, actionVariant, actions, onClose, closeLabel, className, ...props }: AlertProps): JSX_2.Element;
|
|
@@ -66,10 +77,15 @@ export declare interface AlertProps extends Omit<React_2.HTMLAttributes<HTMLDivE
|
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
export declare const Avatar: {
|
|
69
|
-
({ src, alt, initials, size, status, statusIcon, contrastBorder, className, }: AvatarProps): JSX_2.Element;
|
|
80
|
+
({ src, alt, initials, size, color, status, statusIcon, contrastBorder, className, }: AvatarProps): JSX_2.Element;
|
|
70
81
|
displayName: string;
|
|
71
82
|
};
|
|
72
83
|
|
|
84
|
+
/** `gray` (default): light-50/light-500, for avatars on a plain surface. All other colors render
|
|
85
|
+
* a solid `{color}-500` background with white text/icon, for avatars sitting on a colored or
|
|
86
|
+
* photo surface (e.g. a profile banner) where gray wouldn't have enough contrast. */
|
|
87
|
+
declare type AvatarColor = 'brand' | 'gray' | 'error' | 'warning' | 'success';
|
|
88
|
+
|
|
73
89
|
export declare const AvatarGroup: {
|
|
74
90
|
({ avatars, max, size, onAdd, className }: AvatarGroupProps): JSX_2.Element;
|
|
75
91
|
displayName: string;
|
|
@@ -139,6 +155,7 @@ export declare interface AvatarProps {
|
|
|
139
155
|
/** Renders centered initials instead of a photo/placeholder icon. */
|
|
140
156
|
initials?: React_2.ReactNode;
|
|
141
157
|
size?: AvatarSize;
|
|
158
|
+
color?: AvatarColor;
|
|
142
159
|
status?: AvatarStatus;
|
|
143
160
|
/** Custom content for the "company" status badge (e.g. a logo image). */
|
|
144
161
|
statusIcon?: React_2.ReactNode;
|
|
@@ -261,6 +278,24 @@ declare interface CardNumberInputProps {
|
|
|
261
278
|
wrapperClassName?: InputProps['wrapperClassName'];
|
|
262
279
|
}
|
|
263
280
|
|
|
281
|
+
/**
|
|
282
|
+
* `min-h-[42px]`, never `h-[42px]` — a fixed height plus no truncation would
|
|
283
|
+
* silently clip content, so rows grow instead. No `overflow-hidden` either:
|
|
284
|
+
* it would clip focus rings on interactive children, the exact failure this
|
|
285
|
+
* component exists to prevent.
|
|
286
|
+
*
|
|
287
|
+
* Renders as a real `<td>` (`table-cell`), not `display:flex` — Figma's CSS
|
|
288
|
+
* export specifies flex directly on the cell, but that breaks the table's
|
|
289
|
+
* row/column layout. The flex/gap/align-items/padding from that spec live on
|
|
290
|
+
* an inner wrapper `<div>` instead, which achieves the same visual result.
|
|
291
|
+
*/
|
|
292
|
+
export declare const Cell: React_2.ForwardRefExoticComponent<CellProps & React_2.RefAttributes<HTMLTableCellElement>>;
|
|
293
|
+
|
|
294
|
+
export declare interface CellProps extends CellProps_2, StickyProps {
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export declare const cellTruncate = "block truncate";
|
|
298
|
+
|
|
264
299
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
265
300
|
|
|
266
301
|
export declare interface CheckboxProps {
|
|
@@ -277,6 +312,38 @@ declare type CheckboxSize = 'sm' | 'md'
|
|
|
277
312
|
/** @deprecated `lg` is no longer a distinct size — it now renders identically to `md` and will be removed in a future major version. Migrate to `md`. */
|
|
278
313
|
| 'lg';
|
|
279
314
|
|
|
315
|
+
/**
|
|
316
|
+
* Renders the sort indicator from `sortDirection`/`allowsSorting`, never a
|
|
317
|
+
* plain boolean — the unsorted glyph stays visible at all times (not
|
|
318
|
+
* hover-revealed) so keyboard users can discover sortable columns.
|
|
319
|
+
*/
|
|
320
|
+
export declare const Column: React_2.ForwardRefExoticComponent<ColumnProps & React_2.RefAttributes<HTMLTableCellElement>>;
|
|
321
|
+
|
|
322
|
+
export declare interface ColumnProps extends ColumnProps_2, StickyProps {
|
|
323
|
+
/** Horizontal alignment of the column's header content. Not an RAC prop. */
|
|
324
|
+
align?: 'start' | 'center' | 'end';
|
|
325
|
+
/**
|
|
326
|
+
* Extra header control — a "⋮" menu trigger, a filter icon button, etc.
|
|
327
|
+
* Rendered as a DOM sibling of the sort trigger content (never nested
|
|
328
|
+
* inside it), and its pointer/keyboard events are stopped from bubbling
|
|
329
|
+
* to the column header — same isolation as `ColumnResizer` — so opening
|
|
330
|
+
* the menu doesn't also fire a sort. Not an RAC prop.
|
|
331
|
+
*/
|
|
332
|
+
actions?: React_2.ReactNode;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* RAC 1.20.0 has no `allowsResizing` prop on `Column` (verified against
|
|
337
|
+
* types, not docs — see .audit/table-rac-verification.md). A column becomes
|
|
338
|
+
* resizable simply by rendering this inside it, alongside `width`/
|
|
339
|
+
* `minWidth`/`maxWidth`. Render it as a sibling of the sort trigger's
|
|
340
|
+
* content, not inside it, so a resize drag never fires a sort.
|
|
341
|
+
*/
|
|
342
|
+
export declare const ColumnResizer: React_2.ForwardRefExoticComponent<ColumnResizerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
343
|
+
|
|
344
|
+
export declare interface ColumnResizerProps extends ColumnResizerProps_2 {
|
|
345
|
+
}
|
|
346
|
+
|
|
280
347
|
export declare function Dropdown({ trigger, label, icon, avatarSrc, avatarInitials, header, items, open: openProp, defaultOpen, onOpenChange, disabled, align, className, menuClassName, }: DropdownProps): JSX_2.Element;
|
|
281
348
|
|
|
282
349
|
export declare interface DropdownHeader {
|
|
@@ -324,6 +391,22 @@ export declare interface DropdownProps {
|
|
|
324
391
|
|
|
325
392
|
export declare type DropdownTriggerType = 'button' | 'icon' | 'avatar';
|
|
326
393
|
|
|
394
|
+
/**
|
|
395
|
+
* Standalone, not table-scoped — search results and filtered lists need it
|
|
396
|
+
* too. Structure follows the shipped "No Data Found" design (Figma
|
|
397
|
+
* 1880:13957), not the Untitled UI variant: no decorative background
|
|
398
|
+
* pattern, since that pattern is untokenized and absent from the product.
|
|
399
|
+
*/
|
|
400
|
+
export declare const EmptyState: React_2.ForwardRefExoticComponent<EmptyStateProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
401
|
+
|
|
402
|
+
export declare interface EmptyStateProps {
|
|
403
|
+
icon?: React_2.ReactNode;
|
|
404
|
+
title: string;
|
|
405
|
+
description?: string;
|
|
406
|
+
actions?: React_2.ReactNode;
|
|
407
|
+
className?: string;
|
|
408
|
+
}
|
|
409
|
+
|
|
327
410
|
export declare const Input: InputCompound;
|
|
328
411
|
|
|
329
412
|
/**
|
|
@@ -538,6 +621,13 @@ declare type RadioSize = 'sm' | 'md'
|
|
|
538
621
|
/** @deprecated `lg` is no longer a distinct size — it now renders identically to `md` and will be removed in a future major version. Migrate to `md`. */
|
|
539
622
|
| 'lg';
|
|
540
623
|
|
|
624
|
+
export declare const Row: <T extends object>(props: RowProps<T> & {
|
|
625
|
+
ref?: React_2.Ref<HTMLTableRowElement>;
|
|
626
|
+
}) => React_2.ReactElement;
|
|
627
|
+
|
|
628
|
+
export declare interface RowProps<T extends object> extends RowProps_2<T> {
|
|
629
|
+
}
|
|
630
|
+
|
|
541
631
|
export declare function SaleAmountInput({ size, label, required, hint, error, disabled, value, placeholder, currency, onCurrencyChange, rightIcon, onChange, className, wrapperClassName, }: SaleAmountInputProps): JSX_2.Element;
|
|
542
632
|
|
|
543
633
|
declare interface SaleAmountInputProps {
|
|
@@ -557,6 +647,25 @@ declare interface SaleAmountInputProps {
|
|
|
557
647
|
wrapperClassName?: InputProps['wrapperClassName'];
|
|
558
648
|
}
|
|
559
649
|
|
|
650
|
+
export { SelectionIndicator }
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Shared by `Column` and `Cell`. Freezes the element during horizontal scroll
|
|
654
|
+
* — `'left'` pins it to the left edge, `'right'` to the right. Requires an
|
|
655
|
+
* explicit `width` on the column (a sticky element needs a fixed position,
|
|
656
|
+
* not an intrinsic one) and, if more than one column is frozen on the same
|
|
657
|
+
* edge, a `stickyOffset` accounting for the others' widths (e.g. `44` to sit
|
|
658
|
+
* right after a 44px frozen checkbox column). Set the *same* `sticky`/
|
|
659
|
+
* `stickyOffset` on every `Cell` in a frozen column — the header and body
|
|
660
|
+
* freeze independently, since a `<td>` doesn't inherit sticky positioning
|
|
661
|
+
* from its `<th>`. Neither prop is part of RAC.
|
|
662
|
+
*/
|
|
663
|
+
declare interface StickyProps {
|
|
664
|
+
sticky?: 'left' | 'right';
|
|
665
|
+
/** Pixel offset from the frozen edge. Default `0`. */
|
|
666
|
+
stickyOffset?: number;
|
|
667
|
+
}
|
|
668
|
+
|
|
560
669
|
/**
|
|
561
670
|
* Renders on react-aria-components' `<Tab>`, so it only works inside a `TabList` (which
|
|
562
671
|
* supplies the `<Tabs>` context). `active`/`onClick` stay the public API — `TabList` reads
|
|
@@ -698,6 +807,48 @@ export declare interface TabBrowserProps extends Omit<React_2.ButtonHTMLAttribut
|
|
|
698
807
|
*/
|
|
699
808
|
export declare type TabBrowserType = 'default' | 'max-width';
|
|
700
809
|
|
|
810
|
+
export declare const Table: React_2.ForwardRefExoticComponent<TableProps & React_2.RefAttributes<HTMLTableElement>>;
|
|
811
|
+
|
|
812
|
+
export declare const TableBody: <T extends object>(props: TableBodyProps<T> & {
|
|
813
|
+
ref?: React_2.Ref<HTMLTableSectionElement>;
|
|
814
|
+
}) => React_2.ReactElement;
|
|
815
|
+
|
|
816
|
+
export declare interface TableBodyProps<T extends object> extends TableBodyProps_2<T> {
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* `TableContainer` IS `ResizableTableContainer`, not a wrapper around it.
|
|
821
|
+
* RAC's `width`/`minWidth`/`maxWidth` column props only take effect inside
|
|
822
|
+
* this component, and it is the scroll container the sticky header
|
|
823
|
+
* positions against — so there is no unstyled variant to fall back to.
|
|
824
|
+
*/
|
|
825
|
+
export declare const TableContainer: React_2.ForwardRefExoticComponent<TableContainerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
826
|
+
|
|
827
|
+
export declare interface TableContainerProps extends ResizableTableContainerProps {
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
export declare const TableFooter: <T extends object>(props: TableFooterProps<T> & {
|
|
831
|
+
ref?: React_2.Ref<HTMLTableSectionElement>;
|
|
832
|
+
}) => React_2.ReactElement;
|
|
833
|
+
|
|
834
|
+
export declare interface TableFooterProps<T extends object> extends TableFooterProps_2<T> {
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export declare const TableHeader: <T extends object>(props: TableHeaderProps<T> & {
|
|
838
|
+
ref?: React_2.Ref<HTMLTableSectionElement>;
|
|
839
|
+
}) => React_2.ReactElement;
|
|
840
|
+
|
|
841
|
+
export declare interface TableHeaderProps<T extends object> extends TableHeaderProps_2<T> {
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
export declare const TableLoadMoreItem: React_2.ForwardRefExoticComponent<TableLoadMoreItemProps & React_2.RefAttributes<HTMLTableRowElement>>;
|
|
845
|
+
|
|
846
|
+
export declare interface TableLoadMoreItemProps extends TableLoadMoreItemProps_2 {
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
export declare interface TableProps extends TableProps_2 {
|
|
850
|
+
}
|
|
851
|
+
|
|
701
852
|
/**
|
|
702
853
|
* Backed by react-aria-components' `<Tabs>` for roving-tabindex arrow-key navigation and
|
|
703
854
|
* focus management. Selection still lives with the caller: each `Tab` child's own
|
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,23 @@
|
|
|
1
1
|
import { ButtonProps as ButtonProps_2 } from 'react-aria-components';
|
|
2
2
|
import { ButtonRenderProps } from 'react-aria-components';
|
|
3
|
+
import { CellProps as CellProps_2 } from 'react-aria-components';
|
|
3
4
|
import { ClassValue } from 'clsx';
|
|
5
|
+
import { ColumnProps as ColumnProps_2 } from 'react-aria-components';
|
|
6
|
+
import { ColumnResizerProps as ColumnResizerProps_2 } from 'react-aria-components';
|
|
4
7
|
import { default as default_2 } from 'react';
|
|
5
8
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
6
9
|
import { Key } from 'react-aria-components';
|
|
7
10
|
import { PressEvent } from 'react-aria-components';
|
|
8
11
|
import * as React_2 from 'react';
|
|
9
12
|
import { ReactNode } from 'react';
|
|
13
|
+
import { ResizableTableContainerProps } from 'react-aria-components';
|
|
14
|
+
import { RowProps as RowProps_2 } from 'react-aria-components';
|
|
15
|
+
import { SelectionIndicator } from 'react-aria-components';
|
|
16
|
+
import { TableBodyProps as TableBodyProps_2 } from 'react-aria-components';
|
|
17
|
+
import { TableFooterProps as TableFooterProps_2 } from 'react-aria-components';
|
|
18
|
+
import { TableHeaderProps as TableHeaderProps_2 } from 'react-aria-components';
|
|
19
|
+
import { TableLoadMoreItemProps as TableLoadMoreItemProps_2 } from 'react-aria-components';
|
|
20
|
+
import { TableProps as TableProps_2 } from 'react-aria-components';
|
|
10
21
|
|
|
11
22
|
export declare const Alert: {
|
|
12
23
|
({ title, description, color, layout, background, icon, iconVariant, showIcon, primaryAction, secondaryAction, actionVariant, actions, onClose, closeLabel, className, ...props }: AlertProps): JSX_2.Element;
|
|
@@ -66,10 +77,15 @@ export declare interface AlertProps extends Omit<React_2.HTMLAttributes<HTMLDivE
|
|
|
66
77
|
}
|
|
67
78
|
|
|
68
79
|
export declare const Avatar: {
|
|
69
|
-
({ src, alt, initials, size, status, statusIcon, contrastBorder, className, }: AvatarProps): JSX_2.Element;
|
|
80
|
+
({ src, alt, initials, size, color, status, statusIcon, contrastBorder, className, }: AvatarProps): JSX_2.Element;
|
|
70
81
|
displayName: string;
|
|
71
82
|
};
|
|
72
83
|
|
|
84
|
+
/** `gray` (default): light-50/light-500, for avatars on a plain surface. All other colors render
|
|
85
|
+
* a solid `{color}-500` background with white text/icon, for avatars sitting on a colored or
|
|
86
|
+
* photo surface (e.g. a profile banner) where gray wouldn't have enough contrast. */
|
|
87
|
+
declare type AvatarColor = 'brand' | 'gray' | 'error' | 'warning' | 'success';
|
|
88
|
+
|
|
73
89
|
export declare const AvatarGroup: {
|
|
74
90
|
({ avatars, max, size, onAdd, className }: AvatarGroupProps): JSX_2.Element;
|
|
75
91
|
displayName: string;
|
|
@@ -139,6 +155,7 @@ export declare interface AvatarProps {
|
|
|
139
155
|
/** Renders centered initials instead of a photo/placeholder icon. */
|
|
140
156
|
initials?: React_2.ReactNode;
|
|
141
157
|
size?: AvatarSize;
|
|
158
|
+
color?: AvatarColor;
|
|
142
159
|
status?: AvatarStatus;
|
|
143
160
|
/** Custom content for the "company" status badge (e.g. a logo image). */
|
|
144
161
|
statusIcon?: React_2.ReactNode;
|
|
@@ -261,6 +278,24 @@ declare interface CardNumberInputProps {
|
|
|
261
278
|
wrapperClassName?: InputProps['wrapperClassName'];
|
|
262
279
|
}
|
|
263
280
|
|
|
281
|
+
/**
|
|
282
|
+
* `min-h-[42px]`, never `h-[42px]` — a fixed height plus no truncation would
|
|
283
|
+
* silently clip content, so rows grow instead. No `overflow-hidden` either:
|
|
284
|
+
* it would clip focus rings on interactive children, the exact failure this
|
|
285
|
+
* component exists to prevent.
|
|
286
|
+
*
|
|
287
|
+
* Renders as a real `<td>` (`table-cell`), not `display:flex` — Figma's CSS
|
|
288
|
+
* export specifies flex directly on the cell, but that breaks the table's
|
|
289
|
+
* row/column layout. The flex/gap/align-items/padding from that spec live on
|
|
290
|
+
* an inner wrapper `<div>` instead, which achieves the same visual result.
|
|
291
|
+
*/
|
|
292
|
+
export declare const Cell: React_2.ForwardRefExoticComponent<CellProps & React_2.RefAttributes<HTMLTableCellElement>>;
|
|
293
|
+
|
|
294
|
+
export declare interface CellProps extends CellProps_2, StickyProps {
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
export declare const cellTruncate = "block truncate";
|
|
298
|
+
|
|
264
299
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
265
300
|
|
|
266
301
|
export declare interface CheckboxProps {
|
|
@@ -277,6 +312,38 @@ declare type CheckboxSize = 'sm' | 'md'
|
|
|
277
312
|
/** @deprecated `lg` is no longer a distinct size — it now renders identically to `md` and will be removed in a future major version. Migrate to `md`. */
|
|
278
313
|
| 'lg';
|
|
279
314
|
|
|
315
|
+
/**
|
|
316
|
+
* Renders the sort indicator from `sortDirection`/`allowsSorting`, never a
|
|
317
|
+
* plain boolean — the unsorted glyph stays visible at all times (not
|
|
318
|
+
* hover-revealed) so keyboard users can discover sortable columns.
|
|
319
|
+
*/
|
|
320
|
+
export declare const Column: React_2.ForwardRefExoticComponent<ColumnProps & React_2.RefAttributes<HTMLTableCellElement>>;
|
|
321
|
+
|
|
322
|
+
export declare interface ColumnProps extends ColumnProps_2, StickyProps {
|
|
323
|
+
/** Horizontal alignment of the column's header content. Not an RAC prop. */
|
|
324
|
+
align?: 'start' | 'center' | 'end';
|
|
325
|
+
/**
|
|
326
|
+
* Extra header control — a "⋮" menu trigger, a filter icon button, etc.
|
|
327
|
+
* Rendered as a DOM sibling of the sort trigger content (never nested
|
|
328
|
+
* inside it), and its pointer/keyboard events are stopped from bubbling
|
|
329
|
+
* to the column header — same isolation as `ColumnResizer` — so opening
|
|
330
|
+
* the menu doesn't also fire a sort. Not an RAC prop.
|
|
331
|
+
*/
|
|
332
|
+
actions?: React_2.ReactNode;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* RAC 1.20.0 has no `allowsResizing` prop on `Column` (verified against
|
|
337
|
+
* types, not docs — see .audit/table-rac-verification.md). A column becomes
|
|
338
|
+
* resizable simply by rendering this inside it, alongside `width`/
|
|
339
|
+
* `minWidth`/`maxWidth`. Render it as a sibling of the sort trigger's
|
|
340
|
+
* content, not inside it, so a resize drag never fires a sort.
|
|
341
|
+
*/
|
|
342
|
+
export declare const ColumnResizer: React_2.ForwardRefExoticComponent<ColumnResizerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
343
|
+
|
|
344
|
+
export declare interface ColumnResizerProps extends ColumnResizerProps_2 {
|
|
345
|
+
}
|
|
346
|
+
|
|
280
347
|
export declare function Dropdown({ trigger, label, icon, avatarSrc, avatarInitials, header, items, open: openProp, defaultOpen, onOpenChange, disabled, align, className, menuClassName, }: DropdownProps): JSX_2.Element;
|
|
281
348
|
|
|
282
349
|
export declare interface DropdownHeader {
|
|
@@ -324,6 +391,22 @@ export declare interface DropdownProps {
|
|
|
324
391
|
|
|
325
392
|
export declare type DropdownTriggerType = 'button' | 'icon' | 'avatar';
|
|
326
393
|
|
|
394
|
+
/**
|
|
395
|
+
* Standalone, not table-scoped — search results and filtered lists need it
|
|
396
|
+
* too. Structure follows the shipped "No Data Found" design (Figma
|
|
397
|
+
* 1880:13957), not the Untitled UI variant: no decorative background
|
|
398
|
+
* pattern, since that pattern is untokenized and absent from the product.
|
|
399
|
+
*/
|
|
400
|
+
export declare const EmptyState: React_2.ForwardRefExoticComponent<EmptyStateProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
401
|
+
|
|
402
|
+
export declare interface EmptyStateProps {
|
|
403
|
+
icon?: React_2.ReactNode;
|
|
404
|
+
title: string;
|
|
405
|
+
description?: string;
|
|
406
|
+
actions?: React_2.ReactNode;
|
|
407
|
+
className?: string;
|
|
408
|
+
}
|
|
409
|
+
|
|
327
410
|
export declare const Input: InputCompound;
|
|
328
411
|
|
|
329
412
|
/**
|
|
@@ -538,6 +621,13 @@ declare type RadioSize = 'sm' | 'md'
|
|
|
538
621
|
/** @deprecated `lg` is no longer a distinct size — it now renders identically to `md` and will be removed in a future major version. Migrate to `md`. */
|
|
539
622
|
| 'lg';
|
|
540
623
|
|
|
624
|
+
export declare const Row: <T extends object>(props: RowProps<T> & {
|
|
625
|
+
ref?: React_2.Ref<HTMLTableRowElement>;
|
|
626
|
+
}) => React_2.ReactElement;
|
|
627
|
+
|
|
628
|
+
export declare interface RowProps<T extends object> extends RowProps_2<T> {
|
|
629
|
+
}
|
|
630
|
+
|
|
541
631
|
export declare function SaleAmountInput({ size, label, required, hint, error, disabled, value, placeholder, currency, onCurrencyChange, rightIcon, onChange, className, wrapperClassName, }: SaleAmountInputProps): JSX_2.Element;
|
|
542
632
|
|
|
543
633
|
declare interface SaleAmountInputProps {
|
|
@@ -557,6 +647,25 @@ declare interface SaleAmountInputProps {
|
|
|
557
647
|
wrapperClassName?: InputProps['wrapperClassName'];
|
|
558
648
|
}
|
|
559
649
|
|
|
650
|
+
export { SelectionIndicator }
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Shared by `Column` and `Cell`. Freezes the element during horizontal scroll
|
|
654
|
+
* — `'left'` pins it to the left edge, `'right'` to the right. Requires an
|
|
655
|
+
* explicit `width` on the column (a sticky element needs a fixed position,
|
|
656
|
+
* not an intrinsic one) and, if more than one column is frozen on the same
|
|
657
|
+
* edge, a `stickyOffset` accounting for the others' widths (e.g. `44` to sit
|
|
658
|
+
* right after a 44px frozen checkbox column). Set the *same* `sticky`/
|
|
659
|
+
* `stickyOffset` on every `Cell` in a frozen column — the header and body
|
|
660
|
+
* freeze independently, since a `<td>` doesn't inherit sticky positioning
|
|
661
|
+
* from its `<th>`. Neither prop is part of RAC.
|
|
662
|
+
*/
|
|
663
|
+
declare interface StickyProps {
|
|
664
|
+
sticky?: 'left' | 'right';
|
|
665
|
+
/** Pixel offset from the frozen edge. Default `0`. */
|
|
666
|
+
stickyOffset?: number;
|
|
667
|
+
}
|
|
668
|
+
|
|
560
669
|
/**
|
|
561
670
|
* Renders on react-aria-components' `<Tab>`, so it only works inside a `TabList` (which
|
|
562
671
|
* supplies the `<Tabs>` context). `active`/`onClick` stay the public API — `TabList` reads
|
|
@@ -698,6 +807,48 @@ export declare interface TabBrowserProps extends Omit<React_2.ButtonHTMLAttribut
|
|
|
698
807
|
*/
|
|
699
808
|
export declare type TabBrowserType = 'default' | 'max-width';
|
|
700
809
|
|
|
810
|
+
export declare const Table: React_2.ForwardRefExoticComponent<TableProps & React_2.RefAttributes<HTMLTableElement>>;
|
|
811
|
+
|
|
812
|
+
export declare const TableBody: <T extends object>(props: TableBodyProps<T> & {
|
|
813
|
+
ref?: React_2.Ref<HTMLTableSectionElement>;
|
|
814
|
+
}) => React_2.ReactElement;
|
|
815
|
+
|
|
816
|
+
export declare interface TableBodyProps<T extends object> extends TableBodyProps_2<T> {
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* `TableContainer` IS `ResizableTableContainer`, not a wrapper around it.
|
|
821
|
+
* RAC's `width`/`minWidth`/`maxWidth` column props only take effect inside
|
|
822
|
+
* this component, and it is the scroll container the sticky header
|
|
823
|
+
* positions against — so there is no unstyled variant to fall back to.
|
|
824
|
+
*/
|
|
825
|
+
export declare const TableContainer: React_2.ForwardRefExoticComponent<TableContainerProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
826
|
+
|
|
827
|
+
export declare interface TableContainerProps extends ResizableTableContainerProps {
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
export declare const TableFooter: <T extends object>(props: TableFooterProps<T> & {
|
|
831
|
+
ref?: React_2.Ref<HTMLTableSectionElement>;
|
|
832
|
+
}) => React_2.ReactElement;
|
|
833
|
+
|
|
834
|
+
export declare interface TableFooterProps<T extends object> extends TableFooterProps_2<T> {
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
export declare const TableHeader: <T extends object>(props: TableHeaderProps<T> & {
|
|
838
|
+
ref?: React_2.Ref<HTMLTableSectionElement>;
|
|
839
|
+
}) => React_2.ReactElement;
|
|
840
|
+
|
|
841
|
+
export declare interface TableHeaderProps<T extends object> extends TableHeaderProps_2<T> {
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
export declare const TableLoadMoreItem: React_2.ForwardRefExoticComponent<TableLoadMoreItemProps & React_2.RefAttributes<HTMLTableRowElement>>;
|
|
845
|
+
|
|
846
|
+
export declare interface TableLoadMoreItemProps extends TableLoadMoreItemProps_2 {
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
export declare interface TableProps extends TableProps_2 {
|
|
850
|
+
}
|
|
851
|
+
|
|
701
852
|
/**
|
|
702
853
|
* Backed by react-aria-components' `<Tabs>` for roving-tabindex arrow-key navigation and
|
|
703
854
|
* focus management. Selection still lives with the caller: each `Tab` child's own
|