cekat-ui 1.3.4 → 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 +145 -0
- package/dist/index.d.ts +145 -0
- package/dist/index.mjs +9446 -4765
- 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;
|
|
@@ -267,6 +278,24 @@ declare interface CardNumberInputProps {
|
|
|
267
278
|
wrapperClassName?: InputProps['wrapperClassName'];
|
|
268
279
|
}
|
|
269
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
|
+
|
|
270
299
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
271
300
|
|
|
272
301
|
export declare interface CheckboxProps {
|
|
@@ -283,6 +312,38 @@ declare type CheckboxSize = 'sm' | 'md'
|
|
|
283
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`. */
|
|
284
313
|
| 'lg';
|
|
285
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
|
+
|
|
286
347
|
export declare function Dropdown({ trigger, label, icon, avatarSrc, avatarInitials, header, items, open: openProp, defaultOpen, onOpenChange, disabled, align, className, menuClassName, }: DropdownProps): JSX_2.Element;
|
|
287
348
|
|
|
288
349
|
export declare interface DropdownHeader {
|
|
@@ -330,6 +391,22 @@ export declare interface DropdownProps {
|
|
|
330
391
|
|
|
331
392
|
export declare type DropdownTriggerType = 'button' | 'icon' | 'avatar';
|
|
332
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
|
+
|
|
333
410
|
export declare const Input: InputCompound;
|
|
334
411
|
|
|
335
412
|
/**
|
|
@@ -544,6 +621,13 @@ declare type RadioSize = 'sm' | 'md'
|
|
|
544
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`. */
|
|
545
622
|
| 'lg';
|
|
546
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
|
+
|
|
547
631
|
export declare function SaleAmountInput({ size, label, required, hint, error, disabled, value, placeholder, currency, onCurrencyChange, rightIcon, onChange, className, wrapperClassName, }: SaleAmountInputProps): JSX_2.Element;
|
|
548
632
|
|
|
549
633
|
declare interface SaleAmountInputProps {
|
|
@@ -563,6 +647,25 @@ declare interface SaleAmountInputProps {
|
|
|
563
647
|
wrapperClassName?: InputProps['wrapperClassName'];
|
|
564
648
|
}
|
|
565
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
|
+
|
|
566
669
|
/**
|
|
567
670
|
* Renders on react-aria-components' `<Tab>`, so it only works inside a `TabList` (which
|
|
568
671
|
* supplies the `<Tabs>` context). `active`/`onClick` stay the public API — `TabList` reads
|
|
@@ -704,6 +807,48 @@ export declare interface TabBrowserProps extends Omit<React_2.ButtonHTMLAttribut
|
|
|
704
807
|
*/
|
|
705
808
|
export declare type TabBrowserType = 'default' | 'max-width';
|
|
706
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
|
+
|
|
707
852
|
/**
|
|
708
853
|
* Backed by react-aria-components' `<Tabs>` for roving-tabindex arrow-key navigation and
|
|
709
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;
|
|
@@ -267,6 +278,24 @@ declare interface CardNumberInputProps {
|
|
|
267
278
|
wrapperClassName?: InputProps['wrapperClassName'];
|
|
268
279
|
}
|
|
269
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
|
+
|
|
270
299
|
export declare const Checkbox: React_2.ForwardRefExoticComponent<CheckboxProps & React_2.RefAttributes<HTMLButtonElement>>;
|
|
271
300
|
|
|
272
301
|
export declare interface CheckboxProps {
|
|
@@ -283,6 +312,38 @@ declare type CheckboxSize = 'sm' | 'md'
|
|
|
283
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`. */
|
|
284
313
|
| 'lg';
|
|
285
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
|
+
|
|
286
347
|
export declare function Dropdown({ trigger, label, icon, avatarSrc, avatarInitials, header, items, open: openProp, defaultOpen, onOpenChange, disabled, align, className, menuClassName, }: DropdownProps): JSX_2.Element;
|
|
287
348
|
|
|
288
349
|
export declare interface DropdownHeader {
|
|
@@ -330,6 +391,22 @@ export declare interface DropdownProps {
|
|
|
330
391
|
|
|
331
392
|
export declare type DropdownTriggerType = 'button' | 'icon' | 'avatar';
|
|
332
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
|
+
|
|
333
410
|
export declare const Input: InputCompound;
|
|
334
411
|
|
|
335
412
|
/**
|
|
@@ -544,6 +621,13 @@ declare type RadioSize = 'sm' | 'md'
|
|
|
544
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`. */
|
|
545
622
|
| 'lg';
|
|
546
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
|
+
|
|
547
631
|
export declare function SaleAmountInput({ size, label, required, hint, error, disabled, value, placeholder, currency, onCurrencyChange, rightIcon, onChange, className, wrapperClassName, }: SaleAmountInputProps): JSX_2.Element;
|
|
548
632
|
|
|
549
633
|
declare interface SaleAmountInputProps {
|
|
@@ -563,6 +647,25 @@ declare interface SaleAmountInputProps {
|
|
|
563
647
|
wrapperClassName?: InputProps['wrapperClassName'];
|
|
564
648
|
}
|
|
565
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
|
+
|
|
566
669
|
/**
|
|
567
670
|
* Renders on react-aria-components' `<Tab>`, so it only works inside a `TabList` (which
|
|
568
671
|
* supplies the `<Tabs>` context). `active`/`onClick` stay the public API — `TabList` reads
|
|
@@ -704,6 +807,48 @@ export declare interface TabBrowserProps extends Omit<React_2.ButtonHTMLAttribut
|
|
|
704
807
|
*/
|
|
705
808
|
export declare type TabBrowserType = 'default' | 'max-width';
|
|
706
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
|
+
|
|
707
852
|
/**
|
|
708
853
|
* Backed by react-aria-components' `<Tabs>` for roving-tabindex arrow-key navigation and
|
|
709
854
|
* focus management. Selection still lives with the caller: each `Tab` child's own
|