@slipstream-ui/core 0.11.7 → 0.11.9
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 +68 -10
- package/dist/index.d.ts +68 -10
- package/dist/index.js +609 -472
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +608 -472
- package/dist/index.mjs.map +1 -1
- package/dist/manifests/accordion.manifest.json +1 -1
- package/dist/manifests/alert.manifest.json +1 -1
- package/dist/manifests/announcement-bar.manifest.json +1 -1
- package/dist/manifests/app-shell.manifest.json +1 -1
- package/dist/manifests/applied-filters.manifest.json +1 -1
- package/dist/manifests/article-card.manifest.json +1 -1
- package/dist/manifests/auth-layout.manifest.json +1 -1
- package/dist/manifests/autocomplete.manifest.json +1 -1
- package/dist/manifests/avatar.manifest.json +1 -1
- package/dist/manifests/badge.manifest.json +1 -1
- package/dist/manifests/block.manifest.json +1 -1
- package/dist/manifests/bottom-nav.manifest.json +1 -1
- package/dist/manifests/breadcrumb.manifest.json +1 -1
- package/dist/manifests/button-group.manifest.json +1 -1
- package/dist/manifests/button.manifest.json +4 -2
- package/dist/manifests/calendar.manifest.json +1 -1
- package/dist/manifests/card.manifest.json +1 -1
- package/dist/manifests/checkbox.manifest.json +1 -1
- package/dist/manifests/comparison-table.manifest.json +1 -1
- package/dist/manifests/confirm-dialog.manifest.json +1 -1
- package/dist/manifests/contact-strip.manifest.json +1 -1
- package/dist/manifests/container.manifest.json +1 -1
- package/dist/manifests/cover-image.manifest.json +1 -1
- package/dist/manifests/cta-section.manifest.json +1 -1
- package/dist/manifests/data-table.manifest.json +22 -1
- package/dist/manifests/date-picker-popover.manifest.json +1 -1
- package/dist/manifests/date-picker.manifest.json +1 -1
- package/dist/manifests/date-range-picker.manifest.json +1 -1
- package/dist/manifests/deal-card.manifest.json +1 -1
- package/dist/manifests/dialog.manifest.json +1 -1
- package/dist/manifests/document-card.manifest.json +1 -1
- package/dist/manifests/drawer.manifest.json +1 -1
- package/dist/manifests/empty-state.manifest.json +1 -1
- package/dist/manifests/entity-card.manifest.json +1 -1
- package/dist/manifests/feature-grid.manifest.json +1 -1
- package/dist/manifests/feature-row.manifest.json +1 -1
- package/dist/manifests/fieldset.manifest.json +1 -1
- package/dist/manifests/file-upload.manifest.json +1 -1
- package/dist/manifests/filter-bar.manifest.json +1 -1
- package/dist/manifests/filter-chips.manifest.json +1 -1
- package/dist/manifests/filter-panel.manifest.json +1 -1
- package/dist/manifests/flex.manifest.json +1 -1
- package/dist/manifests/form-field.manifest.json +1 -1
- package/dist/manifests/form-layout.manifest.json +1 -1
- package/dist/manifests/form.manifest.json +1 -1
- package/dist/manifests/grid.manifest.json +1 -1
- package/dist/manifests/heading.manifest.json +1 -1
- package/dist/manifests/hero.manifest.json +1 -1
- package/dist/manifests/image.manifest.json +1 -1
- package/dist/manifests/input-group.manifest.json +1 -1
- package/dist/manifests/input.manifest.json +1 -1
- package/dist/manifests/label.manifest.json +1 -1
- package/dist/manifests/link-tabs.manifest.json +1 -1
- package/dist/manifests/link.manifest.json +1 -1
- package/dist/manifests/list-toolbar.manifest.json +120 -0
- package/dist/manifests/list.manifest.json +1 -1
- package/dist/manifests/load-more.manifest.json +1 -1
- package/dist/manifests/logo-cloud.manifest.json +1 -1
- package/dist/manifests/menu.manifest.json +1 -1
- package/dist/manifests/metric-card.manifest.json +1 -1
- package/dist/manifests/multi-select.manifest.json +1 -1
- package/dist/manifests/newsletter.manifest.json +1 -1
- package/dist/manifests/page-header.manifest.json +13 -2
- package/dist/manifests/pagination.manifest.json +1 -1
- package/dist/manifests/password-input.manifest.json +1 -1
- package/dist/manifests/popover.manifest.json +1 -1
- package/dist/manifests/process-steps.manifest.json +1 -1
- package/dist/manifests/progress.manifest.json +1 -1
- package/dist/manifests/prose.manifest.json +1 -1
- package/dist/manifests/radio.manifest.json +1 -1
- package/dist/manifests/range-slider.manifest.json +1 -1
- package/dist/manifests/search.manifest.json +1 -1
- package/dist/manifests/section-heading.manifest.json +1 -1
- package/dist/manifests/section.manifest.json +1 -1
- package/dist/manifests/segmented-control.manifest.json +4 -4
- package/dist/manifests/select-menu.manifest.json +1 -1
- package/dist/manifests/select.manifest.json +1 -1
- package/dist/manifests/separator.manifest.json +1 -1
- package/dist/manifests/site-footer.manifest.json +7 -1
- package/dist/manifests/site-header.manifest.json +1 -1
- package/dist/manifests/skeleton.manifest.json +1 -1
- package/dist/manifests/spinner.manifest.json +1 -1
- package/dist/manifests/stat-band.manifest.json +1 -1
- package/dist/manifests/stepper.manifest.json +1 -1
- package/dist/manifests/switch.manifest.json +1 -1
- package/dist/manifests/table-card.manifest.json +1 -1
- package/dist/manifests/table-of-contents.manifest.json +1 -1
- package/dist/manifests/table.manifest.json +1 -1
- package/dist/manifests/tabs.manifest.json +1 -1
- package/dist/manifests/testimonial.manifest.json +1 -1
- package/dist/manifests/text.manifest.json +1 -1
- package/dist/manifests/textarea.manifest.json +1 -1
- package/dist/manifests/theme-toggle.manifest.json +1 -1
- package/dist/manifests/time-picker.manifest.json +1 -1
- package/dist/manifests/timeline.manifest.json +1 -1
- package/dist/manifests/toast.manifest.json +1 -1
- package/dist/manifests/tombstone-card.manifest.json +1 -1
- package/dist/manifests/tooltip.manifest.json +1 -1
- package/dist/src/components/button/Button.d.ts +2 -2
- package/dist/src/components/button/Button.js +1 -0
- package/dist/src/components/button/Button.js.map +1 -1
- package/dist/src/components/button/Button.mjs +1 -0
- package/dist/src/components/button/Button.mjs.map +1 -1
- package/dist/src/components/data-table/DataTable.d.ts +12 -1
- package/dist/src/components/data-table/DataTable.js +189 -112
- package/dist/src/components/data-table/DataTable.js.map +1 -1
- package/dist/src/components/data-table/DataTable.mjs +189 -112
- package/dist/src/components/data-table/DataTable.mjs.map +1 -1
- package/dist/src/components/list-toolbar/ListToolbar.d.ts +25 -0
- package/dist/src/components/list-toolbar/ListToolbar.js +68 -0
- package/dist/src/components/list-toolbar/ListToolbar.js.map +1 -0
- package/dist/src/components/list-toolbar/ListToolbar.mjs +44 -0
- package/dist/src/components/list-toolbar/ListToolbar.mjs.map +1 -0
- package/dist/src/components/list-toolbar/index.d.ts +1 -0
- package/dist/src/components/list-toolbar/index.js +23 -0
- package/dist/src/components/list-toolbar/index.js.map +1 -0
- package/dist/src/components/list-toolbar/index.mjs +2 -0
- package/dist/src/components/list-toolbar/index.mjs.map +1 -0
- package/dist/src/components/page-header/PageHeader.d.ts +4 -0
- package/dist/src/components/page-header/PageHeader.js +2 -2
- package/dist/src/components/page-header/PageHeader.js.map +1 -1
- package/dist/src/components/page-header/PageHeader.mjs +2 -2
- package/dist/src/components/page-header/PageHeader.mjs.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.d.ts +20 -4
- package/dist/src/components/segmented-control/SegmentedControl.js +17 -3
- package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
- package/dist/src/components/segmented-control/SegmentedControl.mjs +17 -3
- package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
- package/dist/src/components/site-footer/SiteFooter.d.ts +3 -1
- package/dist/src/components/site-footer/SiteFooter.js +3 -1
- package/dist/src/components/site-footer/SiteFooter.js.map +1 -1
- package/dist/src/components/site-footer/SiteFooter.mjs +3 -1
- package/dist/src/components/site-footer/SiteFooter.mjs.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/styles-full.css +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/button/Button.ssr.test.tsx +1 -1
- package/src/components/button/Button.test.tsx +6 -0
- package/src/components/button/Button.tsx +1 -0
- package/src/components/data-table/DataTable.test.tsx +99 -0
- package/src/components/data-table/DataTable.tsx +115 -1
- package/src/components/list-toolbar/ListToolbar.test.tsx +50 -0
- package/src/components/list-toolbar/ListToolbar.tsx +64 -0
- package/src/components/list-toolbar/index.ts +1 -0
- package/src/components/page-header/PageHeader.test.tsx +13 -0
- package/src/components/page-header/PageHeader.tsx +4 -2
- package/src/components/segmented-control/SegmentedControl.test.tsx +51 -0
- package/src/components/segmented-control/SegmentedControl.tsx +36 -4
- package/src/components/site-footer/SiteFooter.test.tsx +12 -0
- package/src/components/site-footer/SiteFooter.tsx +4 -0
- package/src/index.ts +1 -0
- package/src/manifests/accordion.manifest.json +1 -1
- package/src/manifests/alert.manifest.json +1 -1
- package/src/manifests/announcement-bar.manifest.json +1 -1
- package/src/manifests/app-shell.manifest.json +1 -1
- package/src/manifests/applied-filters.manifest.json +1 -1
- package/src/manifests/article-card.manifest.json +1 -1
- package/src/manifests/auth-layout.manifest.json +1 -1
- package/src/manifests/autocomplete.manifest.json +1 -1
- package/src/manifests/avatar.manifest.json +1 -1
- package/src/manifests/badge.manifest.json +1 -1
- package/src/manifests/block.manifest.json +1 -1
- package/src/manifests/bottom-nav.manifest.json +1 -1
- package/src/manifests/breadcrumb.manifest.json +1 -1
- package/src/manifests/button-group.manifest.json +1 -1
- package/src/manifests/button.manifest.json +4 -2
- package/src/manifests/calendar.manifest.json +1 -1
- package/src/manifests/card.manifest.json +1 -1
- package/src/manifests/checkbox.manifest.json +1 -1
- package/src/manifests/comparison-table.manifest.json +1 -1
- package/src/manifests/confirm-dialog.manifest.json +1 -1
- package/src/manifests/contact-strip.manifest.json +1 -1
- package/src/manifests/container.manifest.json +1 -1
- package/src/manifests/cover-image.manifest.json +1 -1
- package/src/manifests/cta-section.manifest.json +1 -1
- package/src/manifests/data-table.manifest.json +22 -1
- package/src/manifests/date-picker-popover.manifest.json +1 -1
- package/src/manifests/date-picker.manifest.json +1 -1
- package/src/manifests/date-range-picker.manifest.json +1 -1
- package/src/manifests/deal-card.manifest.json +1 -1
- package/src/manifests/dialog.manifest.json +1 -1
- package/src/manifests/document-card.manifest.json +1 -1
- package/src/manifests/drawer.manifest.json +1 -1
- package/src/manifests/empty-state.manifest.json +1 -1
- package/src/manifests/entity-card.manifest.json +1 -1
- package/src/manifests/feature-grid.manifest.json +1 -1
- package/src/manifests/feature-row.manifest.json +1 -1
- package/src/manifests/fieldset.manifest.json +1 -1
- package/src/manifests/file-upload.manifest.json +1 -1
- package/src/manifests/filter-bar.manifest.json +1 -1
- package/src/manifests/filter-chips.manifest.json +1 -1
- package/src/manifests/filter-panel.manifest.json +1 -1
- package/src/manifests/flex.manifest.json +1 -1
- package/src/manifests/form-field.manifest.json +1 -1
- package/src/manifests/form-layout.manifest.json +1 -1
- package/src/manifests/form.manifest.json +1 -1
- package/src/manifests/grid.manifest.json +1 -1
- package/src/manifests/heading.manifest.json +1 -1
- package/src/manifests/hero.manifest.json +1 -1
- package/src/manifests/image.manifest.json +1 -1
- package/src/manifests/input-group.manifest.json +1 -1
- package/src/manifests/input.manifest.json +1 -1
- package/src/manifests/label.manifest.json +1 -1
- package/src/manifests/link-tabs.manifest.json +1 -1
- package/src/manifests/link.manifest.json +1 -1
- package/src/manifests/list-toolbar.manifest.json +120 -0
- package/src/manifests/list.manifest.json +1 -1
- package/src/manifests/load-more.manifest.json +1 -1
- package/src/manifests/logo-cloud.manifest.json +1 -1
- package/src/manifests/menu.manifest.json +1 -1
- package/src/manifests/metric-card.manifest.json +1 -1
- package/src/manifests/multi-select.manifest.json +1 -1
- package/src/manifests/newsletter.manifest.json +1 -1
- package/src/manifests/page-header.manifest.json +13 -2
- package/src/manifests/pagination.manifest.json +1 -1
- package/src/manifests/password-input.manifest.json +1 -1
- package/src/manifests/popover.manifest.json +1 -1
- package/src/manifests/process-steps.manifest.json +1 -1
- package/src/manifests/progress.manifest.json +1 -1
- package/src/manifests/prose.manifest.json +1 -1
- package/src/manifests/radio.manifest.json +1 -1
- package/src/manifests/range-slider.manifest.json +1 -1
- package/src/manifests/search.manifest.json +1 -1
- package/src/manifests/section-heading.manifest.json +1 -1
- package/src/manifests/section.manifest.json +1 -1
- package/src/manifests/segmented-control.manifest.json +4 -4
- package/src/manifests/select-menu.manifest.json +1 -1
- package/src/manifests/select.manifest.json +1 -1
- package/src/manifests/separator.manifest.json +1 -1
- package/src/manifests/site-footer.manifest.json +7 -1
- package/src/manifests/site-header.manifest.json +1 -1
- package/src/manifests/skeleton.manifest.json +1 -1
- package/src/manifests/spinner.manifest.json +1 -1
- package/src/manifests/stat-band.manifest.json +1 -1
- package/src/manifests/stepper.manifest.json +1 -1
- package/src/manifests/switch.manifest.json +1 -1
- package/src/manifests/table-card.manifest.json +1 -1
- package/src/manifests/table-of-contents.manifest.json +1 -1
- package/src/manifests/table.manifest.json +1 -1
- package/src/manifests/tabs.manifest.json +1 -1
- package/src/manifests/testimonial.manifest.json +1 -1
- package/src/manifests/text.manifest.json +1 -1
- package/src/manifests/textarea.manifest.json +1 -1
- package/src/manifests/theme-toggle.manifest.json +1 -1
- package/src/manifests/time-picker.manifest.json +1 -1
- package/src/manifests/timeline.manifest.json +1 -1
- package/src/manifests/toast.manifest.json +1 -1
- package/src/manifests/tombstone-card.manifest.json +1 -1
- package/src/manifests/tooltip.manifest.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -224,7 +224,7 @@ declare function AppShell({ sidebar, header, hideMobileMenu, sidebarWidth, mobil
|
|
|
224
224
|
|
|
225
225
|
declare const buttonVariants: (props?: ({
|
|
226
226
|
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-destructive" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "ghost" | "link" | "contrast" | "onDark" | null | undefined;
|
|
227
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
227
|
+
size?: "default" | "sm" | "xs" | "lg" | "icon" | null | undefined;
|
|
228
228
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
229
229
|
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
|
|
230
230
|
asChild?: boolean;
|
|
@@ -235,7 +235,7 @@ type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<
|
|
|
235
235
|
};
|
|
236
236
|
declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
237
237
|
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-destructive" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "ghost" | "link" | "contrast" | "onDark" | null | undefined;
|
|
238
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
238
|
+
size?: "default" | "sm" | "xs" | "lg" | "icon" | null | undefined;
|
|
239
239
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
240
240
|
asChild?: boolean;
|
|
241
241
|
/** Shows a spinner, disables the button and sets aria-busy while an action runs. */
|
|
@@ -1630,6 +1630,8 @@ type SiteFooterProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1630
1630
|
brand?: React.ReactNode;
|
|
1631
1631
|
/** Short line under the brand. */
|
|
1632
1632
|
tagline?: string;
|
|
1633
|
+
/** Contact block under the tagline (address, email, phone). */
|
|
1634
|
+
contact?: React.ReactNode;
|
|
1633
1635
|
columns: SiteFooterColumn[];
|
|
1634
1636
|
/** Bottom bar (copyright, legal links). */
|
|
1635
1637
|
legal?: React.ReactNode;
|
|
@@ -1651,7 +1653,7 @@ type SiteFooterProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1651
1653
|
* Router-agnostic through `linkComponent` + `linkHrefProp`; external links
|
|
1652
1654
|
* get safe rel, and the current route is marked with aria-current.
|
|
1653
1655
|
*/
|
|
1654
|
-
declare function SiteFooter({ brand, tagline, columns, legal, linkComponent, linkHrefProp, activeHref, match, className, ...props }: SiteFooterProps): React.JSX.Element;
|
|
1656
|
+
declare function SiteFooter({ brand, tagline, contact, columns, legal, linkComponent, linkHrefProp, activeHref, match, className, ...props }: SiteFooterProps): React.JSX.Element;
|
|
1655
1657
|
|
|
1656
1658
|
/** A single destination in the header or inside a mega panel. */
|
|
1657
1659
|
type SiteNavLink = {
|
|
@@ -1838,6 +1840,8 @@ type DataTableColumn<T> = {
|
|
|
1838
1840
|
onClick?: (row: T) => void;
|
|
1839
1841
|
};
|
|
1840
1842
|
type SortIconState = 'none' | 'asc' | 'desc';
|
|
1843
|
+
/** Viewport breakpoint below which card layout takes over. */
|
|
1844
|
+
type DataTableCardBreakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1841
1845
|
type DataTableProps<T> = {
|
|
1842
1846
|
/** Column configuration — everything about the table's shape. */
|
|
1843
1847
|
columns: DataTableColumn<T>[];
|
|
@@ -1896,6 +1900,15 @@ type DataTableProps<T> = {
|
|
|
1896
1900
|
density?: 'default' | 'compact';
|
|
1897
1901
|
/** Zebra-striped rows. */
|
|
1898
1902
|
zebra?: boolean;
|
|
1903
|
+
/**
|
|
1904
|
+
* Responsive card fallback: below the given breakpoint each row renders as
|
|
1905
|
+
* a definition-list card (column headers become field labels) instead of a
|
|
1906
|
+
* table row — the fix for unreadable horizontal scroll on narrow viewports.
|
|
1907
|
+
* `true` enables it below `md` (768px); a string picks the breakpoint.
|
|
1908
|
+
* Both layouts are rendered and swapped with CSS only, so sorting,
|
|
1909
|
+
* selection, pagination, and row callbacks behave identically in each.
|
|
1910
|
+
*/
|
|
1911
|
+
cardLayout?: boolean | DataTableCardBreakpoint;
|
|
1899
1912
|
/** Render skeleton placeholder rows (announced via aria-busy). */
|
|
1900
1913
|
loading?: boolean;
|
|
1901
1914
|
/**
|
|
@@ -1912,7 +1925,7 @@ type DataTableProps<T> = {
|
|
|
1912
1925
|
* aria-sort, cursor pagination when `pageSize` is set, and a friendly empty
|
|
1913
1926
|
* state — so most tables never need hand-rolled table code.
|
|
1914
1927
|
*/
|
|
1915
|
-
declare function DataTable<T>({ columns, data, rowId, caption, defaultSort, sortKey, sortDir, onSortChange, renderSortIcon, pageSize, page, onPageChange, pageCount: pageCountProp, total, manualPagination, selectedRowIds, onSelectedRowIdsChange, isRowSelectable, bulkActions, onRowClick, emptyMessage, selectAllLabel, selectedLabel, stickyHeader, density, zebra, loading, loadingRows, className, }: DataTableProps<T>): React.JSX.Element;
|
|
1928
|
+
declare function DataTable<T>({ columns, data, rowId, caption, defaultSort, sortKey, sortDir, onSortChange, renderSortIcon, pageSize, page, onPageChange, pageCount: pageCountProp, total, manualPagination, selectedRowIds, onSelectedRowIdsChange, isRowSelectable, bulkActions, onRowClick, emptyMessage, selectAllLabel, selectedLabel, stickyHeader, density, zebra, cardLayout, loading, loadingRows, className, }: DataTableProps<T>): React.JSX.Element;
|
|
1916
1929
|
|
|
1917
1930
|
type ListProps = React.HTMLAttributes<HTMLUListElement> & {
|
|
1918
1931
|
/** Hairline dividers between rows. */
|
|
@@ -2230,6 +2243,8 @@ type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
2230
2243
|
eyebrow?: React.ReactNode;
|
|
2231
2244
|
/** Heading scale - 'hero' is for marketing landing pages. */
|
|
2232
2245
|
size?: 'sm' | 'md' | 'lg' | 'hero';
|
|
2246
|
+
/** Heading element. Default 'h1' for pages; use 'h2' inside sections/modals. */
|
|
2247
|
+
as?: 'h1' | 'h2';
|
|
2233
2248
|
/** Text alignment; hero marketing pages often center. */
|
|
2234
2249
|
align?: 'left' | 'center';
|
|
2235
2250
|
/** Extra classes for the h1, for host display typography. */
|
|
@@ -2260,6 +2275,8 @@ declare const PageHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
2260
2275
|
eyebrow?: React.ReactNode;
|
|
2261
2276
|
/** Heading scale - 'hero' is for marketing landing pages. */
|
|
2262
2277
|
size?: "sm" | "md" | "lg" | "hero";
|
|
2278
|
+
/** Heading element. Default 'h1' for pages; use 'h2' inside sections/modals. */
|
|
2279
|
+
as?: "h1" | "h2";
|
|
2263
2280
|
/** Text alignment; hero marketing pages often center. */
|
|
2264
2281
|
align?: "left" | "center";
|
|
2265
2282
|
/** Extra classes for the h1, for host display typography. */
|
|
@@ -2512,6 +2529,31 @@ declare const FilterBar: React.ForwardRefExoticComponent<React.HTMLAttributes<HT
|
|
|
2512
2529
|
trailing?: React.ReactNode;
|
|
2513
2530
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
2514
2531
|
|
|
2532
|
+
type ListToolbarProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
2533
|
+
/** Number of matching results; renders "{count} {countLabel}". */
|
|
2534
|
+
count?: number;
|
|
2535
|
+
/** Noun for the result count. Default "results". */
|
|
2536
|
+
countLabel?: string;
|
|
2537
|
+
/** Page/range position text, e.g. "Page 2 of 5" or "Showing 21–40 of 137". */
|
|
2538
|
+
position?: React.ReactNode;
|
|
2539
|
+
/** Muted note at the end of the summary line, e.g. "Sorted by date, soonest first". */
|
|
2540
|
+
note?: React.ReactNode;
|
|
2541
|
+
/** Controls rendered at the far end: SegmentedControl view switch, sort Select. */
|
|
2542
|
+
children?: React.ReactNode;
|
|
2543
|
+
/** Distribution of the bar. Default 'between' (summary left, controls right). */
|
|
2544
|
+
align?: 'between' | 'start' | 'center' | 'end';
|
|
2545
|
+
};
|
|
2546
|
+
/**
|
|
2547
|
+
* Slim result bar for filtered lists and directories: result count, optional
|
|
2548
|
+
* page position and a "sorted by" note on the left; a view switch (e.g.
|
|
2549
|
+
* SegmentedControl in link mode) and sort control on the right. Pair with
|
|
2550
|
+
* FilterBar for the input row above and Pagination below.
|
|
2551
|
+
*/
|
|
2552
|
+
declare function ListToolbar({ count, countLabel, position, note, align, className, children, ...props }: ListToolbarProps): React.JSX.Element;
|
|
2553
|
+
declare namespace ListToolbar {
|
|
2554
|
+
var displayName: string;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2515
2557
|
type DatePickerProps = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
2516
2558
|
/** ISO date string (YYYY-MM-DD) — controlled. */
|
|
2517
2559
|
value?: string;
|
|
@@ -3876,6 +3918,12 @@ type SegmentedOption = {
|
|
|
3876
3918
|
label: React.ReactNode;
|
|
3877
3919
|
/** Optional leading icon. */
|
|
3878
3920
|
icon?: React.ReactNode;
|
|
3921
|
+
/**
|
|
3922
|
+
* Optional trailing note (e.g. "no Pro-Am ladder"). Rendered as a small
|
|
3923
|
+
* muted marker after the label and exposed to assistive tech via
|
|
3924
|
+
* `aria-description`, so it does not change the accessible name.
|
|
3925
|
+
*/
|
|
3926
|
+
hint?: string;
|
|
3879
3927
|
disabled?: boolean;
|
|
3880
3928
|
/**
|
|
3881
3929
|
* Destination URL. When set the segment renders as a link instead of a
|
|
@@ -3898,8 +3946,13 @@ type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
3898
3946
|
multiple?: boolean;
|
|
3899
3947
|
/** Control density. Default 'md'. */
|
|
3900
3948
|
size?: 'sm' | 'md' | 'lg';
|
|
3901
|
-
/**
|
|
3902
|
-
|
|
3949
|
+
/**
|
|
3950
|
+
* Stretch segments to fill the container width. `true` fills at every
|
|
3951
|
+
* viewport; a breakpoint string ('sm' | 'md' | 'lg' | 'xl' | '2xl') fills
|
|
3952
|
+
* only *below* that breakpoint and hugs content at and above it — the
|
|
3953
|
+
* responsive pattern for "full-width on mobile, compact on desktop".
|
|
3954
|
+
*/
|
|
3955
|
+
fullWidth?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
3903
3956
|
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3904
3957
|
linkComponent?: React.ElementType;
|
|
3905
3958
|
/** Prop used to pass the destination to `linkComponent`. */
|
|
@@ -3930,8 +3983,13 @@ declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLA
|
|
|
3930
3983
|
multiple?: boolean;
|
|
3931
3984
|
/** Control density. Default 'md'. */
|
|
3932
3985
|
size?: "sm" | "md" | "lg";
|
|
3933
|
-
/**
|
|
3934
|
-
|
|
3986
|
+
/**
|
|
3987
|
+
* Stretch segments to fill the container width. `true` fills at every
|
|
3988
|
+
* viewport; a breakpoint string ('sm' | 'md' | 'lg' | 'xl' | '2xl') fills
|
|
3989
|
+
* only *below* that breakpoint and hugs content at and above it — the
|
|
3990
|
+
* responsive pattern for "full-width on mobile, compact on desktop".
|
|
3991
|
+
*/
|
|
3992
|
+
fullWidth?: boolean | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
3935
3993
|
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3936
3994
|
linkComponent?: React.ElementType;
|
|
3937
3995
|
/** Prop used to pass the destination to `linkComponent`. */
|
|
@@ -4532,5 +4590,5 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4532
4590
|
};
|
|
4533
4591
|
} & React.RefAttributes<HTMLElement>>;
|
|
4534
4592
|
|
|
4535
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AnnouncementBar, AppShell, AppliedFilters, ArticleCard, AuthLayout, Autocomplete, Avatar, AvatarFallback, AvatarImage, Badge, Block, BottomNav, Breadcrumb, Button, ButtonGroup, CTASection, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, ComparisonTable, ConfirmDialog, ContactStrip, Container, CoverImage, DataTable, DatePicker, DatePickerPopover, DateRangePicker, DealCard, Dialog, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Divider, DocumentCard, Drawer, EmptyState, EntityCard, FeatureGrid, FeatureRow, Fieldset, FileUpload, FilterBar, FilterChips, FilterPanel, Flex, FlexItem, Form, FormField, FormLayout, Grid, GridItem, Heading, Hero, Image, Input, InputGroup, InputGroupAddon, Label, Link, LinkTabs, List, ListItem, LoadMore, LogoCloud, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, MultiSelect, Newsletter, PageHeader, Pagination, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProcessSteps, ProfileCard, Progress, Prose, Radio, RadioCard, RadioGroup, RadioGroupContext, RadioGroupItem, RangeSlider, Search, Section, SectionHeading, SegmentedControl, Select, SelectMenu, Separator, Sidebar, SiteFooter, SiteHeader, Skeleton, Spinner, StatBand, Stepper, Switch, Table, TableBody, TableCaption, TableCard, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Text, Textarea, ThemeToggle, TimePicker, Timeline, ToastProvider, Toaster, TombstoneCard, Tooltip, alertVariants, badgeVariants, buttonVariants, cn, documentHead, isComponentManifest, resolveGap, separatorVariants, spinnerVariants, toast, useCombobox, usePresence, useScrollSpy, useToast };
|
|
4536
|
-
export type { AccessibilityRequirement, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionSection, AccordionTriggerProps, AlertDescriptionProps, AlertProps, AlertTitleProps, AnnouncementBarProps, AntiPattern, AppShellProps, AppliedFiltersProps, ArticleCardProps, AuthLayoutProps, AutocompleteOption, AutocompleteProps, BadgeProps, BlockElement, BlockProps, BottomNavItem, BottomNavProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonProps, CTASectionProps, CTASectionTone, CalendarProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CheckboxGroupItemProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxProps, ComboboxItem, ComparisonColumn, ComparisonRow, ComparisonTableProps, ComponentManifest, ComponentTier, CompositionRule, ConfirmDialogProps, ContactItem, ContactStripProps, ContainerProps, ContainerWidth, ContentGuideline, CoverImageProps, DataTableColumn, DataTableProps, DatePickerPopoverProps, DatePickerProps, DateRange, DateRangePickerProps, DateRangePreset, DealCardProps, DealMetric, DealStatus, DialogBodyProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogSize, DialogTitleProps, DocumentCardProps, DocumentHead, DocumentHeadInput, DocumentStatus, DrawerProps, DrawerSide, DrawerSize, EmptyStateAction, EmptyStateProps, EntityCardProps, EntityStat, FeatureGridProps, FeatureItem, FeatureRowProps, FieldsetProps, FileUploadProps, FilterBarProps, FilterChip, FilterChipsProps, FilterPanelProps, FilterSection, FlexItemProps, FlexProps, FormFieldLabelPlacement, FormFieldProps, FormLayoutColumns, FormLayoutProps, FormProps, FormVariant, GapValue, GridItemProps, GridProps, HeadingLevel, HeadingProps, HeroProps, ImageProps, InputGroupAddonProps, InputGroupProps, InputProps, LabelProps, LinkProps, LinkTabsItem, LinkTabsProps, LinkVariant, ListItemProps, ListProps, LoadMoreProps, LogoCloudProps, LogoItem, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, MultiSelectOption, MultiSelectProps, NewsletterProps, PageHeaderProps, PaginationIcons, PaginationProps, PasswordInputProps, PopoverAnchorProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, ProcessStep, ProcessStepsProps, ProfileCardProps, ProgressProps, PropSchema, ProseProps, RadioCardProps, RadioGroupItemProps, RadioGroupProps, RadioProps, RangeSliderProps, SearchOption, SearchProps, SectionHeadingProps, SectionProps, SectionTone, SegmentedControlProps, SegmentedOption, SelectMenuItem, SelectMenuProps, SelectOption, SelectOptionGroup, SelectProps, SeparatorProps, SidebarItem, SidebarProps, SidebarSection, SiteFooterColumn, SiteFooterLink, SiteFooterProps, SiteHeaderProps, SiteNavColumn, SiteNavItem, SiteNavLink, SkeletonProps, SortIconState, SpinnerProps, StatBandProps, StatItem, StepperProps, StepperStep, SwitchProps, TableBodyProps, TableCaptionProps, TableCardProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableOfContentsProps, TableProps, TableRowProps, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TestimonialProps, TextProps, TextareaProps, ThemeToggleProps, TimePickerProps, TimelineItem, TimelineProps, ToastAction, ToastContextValue, ToastOptions, ToastRecord, ToastVariant, ToasterPosition, ToasterProps, TocHeading, TombstoneCardProps, TombstoneStatus, TooltipProps, UsageExample };
|
|
4593
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AnnouncementBar, AppShell, AppliedFilters, ArticleCard, AuthLayout, Autocomplete, Avatar, AvatarFallback, AvatarImage, Badge, Block, BottomNav, Breadcrumb, Button, ButtonGroup, CTASection, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, ComparisonTable, ConfirmDialog, ContactStrip, Container, CoverImage, DataTable, DatePicker, DatePickerPopover, DateRangePicker, DealCard, Dialog, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Divider, DocumentCard, Drawer, EmptyState, EntityCard, FeatureGrid, FeatureRow, Fieldset, FileUpload, FilterBar, FilterChips, FilterPanel, Flex, FlexItem, Form, FormField, FormLayout, Grid, GridItem, Heading, Hero, Image, Input, InputGroup, InputGroupAddon, Label, Link, LinkTabs, List, ListItem, ListToolbar, LoadMore, LogoCloud, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, MultiSelect, Newsletter, PageHeader, Pagination, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProcessSteps, ProfileCard, Progress, Prose, Radio, RadioCard, RadioGroup, RadioGroupContext, RadioGroupItem, RangeSlider, Search, Section, SectionHeading, SegmentedControl, Select, SelectMenu, Separator, Sidebar, SiteFooter, SiteHeader, Skeleton, Spinner, StatBand, Stepper, Switch, Table, TableBody, TableCaption, TableCard, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Text, Textarea, ThemeToggle, TimePicker, Timeline, ToastProvider, Toaster, TombstoneCard, Tooltip, alertVariants, badgeVariants, buttonVariants, cn, documentHead, isComponentManifest, resolveGap, separatorVariants, spinnerVariants, toast, useCombobox, usePresence, useScrollSpy, useToast };
|
|
4594
|
+
export type { AccessibilityRequirement, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionSection, AccordionTriggerProps, AlertDescriptionProps, AlertProps, AlertTitleProps, AnnouncementBarProps, AntiPattern, AppShellProps, AppliedFiltersProps, ArticleCardProps, AuthLayoutProps, AutocompleteOption, AutocompleteProps, BadgeProps, BlockElement, BlockProps, BottomNavItem, BottomNavProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonProps, CTASectionProps, CTASectionTone, CalendarProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CheckboxGroupItemProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxProps, ComboboxItem, ComparisonColumn, ComparisonRow, ComparisonTableProps, ComponentManifest, ComponentTier, CompositionRule, ConfirmDialogProps, ContactItem, ContactStripProps, ContainerProps, ContainerWidth, ContentGuideline, CoverImageProps, DataTableCardBreakpoint, DataTableColumn, DataTableProps, DatePickerPopoverProps, DatePickerProps, DateRange, DateRangePickerProps, DateRangePreset, DealCardProps, DealMetric, DealStatus, DialogBodyProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogSize, DialogTitleProps, DocumentCardProps, DocumentHead, DocumentHeadInput, DocumentStatus, DrawerProps, DrawerSide, DrawerSize, EmptyStateAction, EmptyStateProps, EntityCardProps, EntityStat, FeatureGridProps, FeatureItem, FeatureRowProps, FieldsetProps, FileUploadProps, FilterBarProps, FilterChip, FilterChipsProps, FilterPanelProps, FilterSection, FlexItemProps, FlexProps, FormFieldLabelPlacement, FormFieldProps, FormLayoutColumns, FormLayoutProps, FormProps, FormVariant, GapValue, GridItemProps, GridProps, HeadingLevel, HeadingProps, HeroProps, ImageProps, InputGroupAddonProps, InputGroupProps, InputProps, LabelProps, LinkProps, LinkTabsItem, LinkTabsProps, LinkVariant, ListItemProps, ListProps, ListToolbarProps, LoadMoreProps, LogoCloudProps, LogoItem, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, MultiSelectOption, MultiSelectProps, NewsletterProps, PageHeaderProps, PaginationIcons, PaginationProps, PasswordInputProps, PopoverAnchorProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, ProcessStep, ProcessStepsProps, ProfileCardProps, ProgressProps, PropSchema, ProseProps, RadioCardProps, RadioGroupItemProps, RadioGroupProps, RadioProps, RangeSliderProps, SearchOption, SearchProps, SectionHeadingProps, SectionProps, SectionTone, SegmentedControlProps, SegmentedOption, SelectMenuItem, SelectMenuProps, SelectOption, SelectOptionGroup, SelectProps, SeparatorProps, SidebarItem, SidebarProps, SidebarSection, SiteFooterColumn, SiteFooterLink, SiteFooterProps, SiteHeaderProps, SiteNavColumn, SiteNavItem, SiteNavLink, SkeletonProps, SortIconState, SpinnerProps, StatBandProps, StatItem, StepperProps, StepperStep, SwitchProps, TableBodyProps, TableCaptionProps, TableCardProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableOfContentsProps, TableProps, TableRowProps, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TestimonialProps, TextProps, TextareaProps, ThemeToggleProps, TimePickerProps, TimelineItem, TimelineProps, ToastAction, ToastContextValue, ToastOptions, ToastRecord, ToastVariant, ToasterPosition, ToasterProps, TocHeading, TombstoneCardProps, TombstoneStatus, TooltipProps, UsageExample };
|
package/dist/index.d.ts
CHANGED
|
@@ -224,7 +224,7 @@ declare function AppShell({ sidebar, header, hideMobileMenu, sidebarWidth, mobil
|
|
|
224
224
|
|
|
225
225
|
declare const buttonVariants: (props?: ({
|
|
226
226
|
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-destructive" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "ghost" | "link" | "contrast" | "onDark" | null | undefined;
|
|
227
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
227
|
+
size?: "default" | "sm" | "xs" | "lg" | "icon" | null | undefined;
|
|
228
228
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
229
229
|
type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
|
|
230
230
|
asChild?: boolean;
|
|
@@ -235,7 +235,7 @@ type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<
|
|
|
235
235
|
};
|
|
236
236
|
declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
|
|
237
237
|
variant?: "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-destructive" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "ghost" | "link" | "contrast" | "onDark" | null | undefined;
|
|
238
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
238
|
+
size?: "default" | "sm" | "xs" | "lg" | "icon" | null | undefined;
|
|
239
239
|
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
240
240
|
asChild?: boolean;
|
|
241
241
|
/** Shows a spinner, disables the button and sets aria-busy while an action runs. */
|
|
@@ -1630,6 +1630,8 @@ type SiteFooterProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1630
1630
|
brand?: React.ReactNode;
|
|
1631
1631
|
/** Short line under the brand. */
|
|
1632
1632
|
tagline?: string;
|
|
1633
|
+
/** Contact block under the tagline (address, email, phone). */
|
|
1634
|
+
contact?: React.ReactNode;
|
|
1633
1635
|
columns: SiteFooterColumn[];
|
|
1634
1636
|
/** Bottom bar (copyright, legal links). */
|
|
1635
1637
|
legal?: React.ReactNode;
|
|
@@ -1651,7 +1653,7 @@ type SiteFooterProps = React.HTMLAttributes<HTMLElement> & {
|
|
|
1651
1653
|
* Router-agnostic through `linkComponent` + `linkHrefProp`; external links
|
|
1652
1654
|
* get safe rel, and the current route is marked with aria-current.
|
|
1653
1655
|
*/
|
|
1654
|
-
declare function SiteFooter({ brand, tagline, columns, legal, linkComponent, linkHrefProp, activeHref, match, className, ...props }: SiteFooterProps): React.JSX.Element;
|
|
1656
|
+
declare function SiteFooter({ brand, tagline, contact, columns, legal, linkComponent, linkHrefProp, activeHref, match, className, ...props }: SiteFooterProps): React.JSX.Element;
|
|
1655
1657
|
|
|
1656
1658
|
/** A single destination in the header or inside a mega panel. */
|
|
1657
1659
|
type SiteNavLink = {
|
|
@@ -1838,6 +1840,8 @@ type DataTableColumn<T> = {
|
|
|
1838
1840
|
onClick?: (row: T) => void;
|
|
1839
1841
|
};
|
|
1840
1842
|
type SortIconState = 'none' | 'asc' | 'desc';
|
|
1843
|
+
/** Viewport breakpoint below which card layout takes over. */
|
|
1844
|
+
type DataTableCardBreakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
1841
1845
|
type DataTableProps<T> = {
|
|
1842
1846
|
/** Column configuration — everything about the table's shape. */
|
|
1843
1847
|
columns: DataTableColumn<T>[];
|
|
@@ -1896,6 +1900,15 @@ type DataTableProps<T> = {
|
|
|
1896
1900
|
density?: 'default' | 'compact';
|
|
1897
1901
|
/** Zebra-striped rows. */
|
|
1898
1902
|
zebra?: boolean;
|
|
1903
|
+
/**
|
|
1904
|
+
* Responsive card fallback: below the given breakpoint each row renders as
|
|
1905
|
+
* a definition-list card (column headers become field labels) instead of a
|
|
1906
|
+
* table row — the fix for unreadable horizontal scroll on narrow viewports.
|
|
1907
|
+
* `true` enables it below `md` (768px); a string picks the breakpoint.
|
|
1908
|
+
* Both layouts are rendered and swapped with CSS only, so sorting,
|
|
1909
|
+
* selection, pagination, and row callbacks behave identically in each.
|
|
1910
|
+
*/
|
|
1911
|
+
cardLayout?: boolean | DataTableCardBreakpoint;
|
|
1899
1912
|
/** Render skeleton placeholder rows (announced via aria-busy). */
|
|
1900
1913
|
loading?: boolean;
|
|
1901
1914
|
/**
|
|
@@ -1912,7 +1925,7 @@ type DataTableProps<T> = {
|
|
|
1912
1925
|
* aria-sort, cursor pagination when `pageSize` is set, and a friendly empty
|
|
1913
1926
|
* state — so most tables never need hand-rolled table code.
|
|
1914
1927
|
*/
|
|
1915
|
-
declare function DataTable<T>({ columns, data, rowId, caption, defaultSort, sortKey, sortDir, onSortChange, renderSortIcon, pageSize, page, onPageChange, pageCount: pageCountProp, total, manualPagination, selectedRowIds, onSelectedRowIdsChange, isRowSelectable, bulkActions, onRowClick, emptyMessage, selectAllLabel, selectedLabel, stickyHeader, density, zebra, loading, loadingRows, className, }: DataTableProps<T>): React.JSX.Element;
|
|
1928
|
+
declare function DataTable<T>({ columns, data, rowId, caption, defaultSort, sortKey, sortDir, onSortChange, renderSortIcon, pageSize, page, onPageChange, pageCount: pageCountProp, total, manualPagination, selectedRowIds, onSelectedRowIdsChange, isRowSelectable, bulkActions, onRowClick, emptyMessage, selectAllLabel, selectedLabel, stickyHeader, density, zebra, cardLayout, loading, loadingRows, className, }: DataTableProps<T>): React.JSX.Element;
|
|
1916
1929
|
|
|
1917
1930
|
type ListProps = React.HTMLAttributes<HTMLUListElement> & {
|
|
1918
1931
|
/** Hairline dividers between rows. */
|
|
@@ -2230,6 +2243,8 @@ type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
2230
2243
|
eyebrow?: React.ReactNode;
|
|
2231
2244
|
/** Heading scale - 'hero' is for marketing landing pages. */
|
|
2232
2245
|
size?: 'sm' | 'md' | 'lg' | 'hero';
|
|
2246
|
+
/** Heading element. Default 'h1' for pages; use 'h2' inside sections/modals. */
|
|
2247
|
+
as?: 'h1' | 'h2';
|
|
2233
2248
|
/** Text alignment; hero marketing pages often center. */
|
|
2234
2249
|
align?: 'left' | 'center';
|
|
2235
2250
|
/** Extra classes for the h1, for host display typography. */
|
|
@@ -2260,6 +2275,8 @@ declare const PageHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
2260
2275
|
eyebrow?: React.ReactNode;
|
|
2261
2276
|
/** Heading scale - 'hero' is for marketing landing pages. */
|
|
2262
2277
|
size?: "sm" | "md" | "lg" | "hero";
|
|
2278
|
+
/** Heading element. Default 'h1' for pages; use 'h2' inside sections/modals. */
|
|
2279
|
+
as?: "h1" | "h2";
|
|
2263
2280
|
/** Text alignment; hero marketing pages often center. */
|
|
2264
2281
|
align?: "left" | "center";
|
|
2265
2282
|
/** Extra classes for the h1, for host display typography. */
|
|
@@ -2512,6 +2529,31 @@ declare const FilterBar: React.ForwardRefExoticComponent<React.HTMLAttributes<HT
|
|
|
2512
2529
|
trailing?: React.ReactNode;
|
|
2513
2530
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
2514
2531
|
|
|
2532
|
+
type ListToolbarProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
2533
|
+
/** Number of matching results; renders "{count} {countLabel}". */
|
|
2534
|
+
count?: number;
|
|
2535
|
+
/** Noun for the result count. Default "results". */
|
|
2536
|
+
countLabel?: string;
|
|
2537
|
+
/** Page/range position text, e.g. "Page 2 of 5" or "Showing 21–40 of 137". */
|
|
2538
|
+
position?: React.ReactNode;
|
|
2539
|
+
/** Muted note at the end of the summary line, e.g. "Sorted by date, soonest first". */
|
|
2540
|
+
note?: React.ReactNode;
|
|
2541
|
+
/** Controls rendered at the far end: SegmentedControl view switch, sort Select. */
|
|
2542
|
+
children?: React.ReactNode;
|
|
2543
|
+
/** Distribution of the bar. Default 'between' (summary left, controls right). */
|
|
2544
|
+
align?: 'between' | 'start' | 'center' | 'end';
|
|
2545
|
+
};
|
|
2546
|
+
/**
|
|
2547
|
+
* Slim result bar for filtered lists and directories: result count, optional
|
|
2548
|
+
* page position and a "sorted by" note on the left; a view switch (e.g.
|
|
2549
|
+
* SegmentedControl in link mode) and sort control on the right. Pair with
|
|
2550
|
+
* FilterBar for the input row above and Pagination below.
|
|
2551
|
+
*/
|
|
2552
|
+
declare function ListToolbar({ count, countLabel, position, note, align, className, children, ...props }: ListToolbarProps): React.JSX.Element;
|
|
2553
|
+
declare namespace ListToolbar {
|
|
2554
|
+
var displayName: string;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2515
2557
|
type DatePickerProps = Omit<InputProps, 'type' | 'value' | 'defaultValue'> & {
|
|
2516
2558
|
/** ISO date string (YYYY-MM-DD) — controlled. */
|
|
2517
2559
|
value?: string;
|
|
@@ -3876,6 +3918,12 @@ type SegmentedOption = {
|
|
|
3876
3918
|
label: React.ReactNode;
|
|
3877
3919
|
/** Optional leading icon. */
|
|
3878
3920
|
icon?: React.ReactNode;
|
|
3921
|
+
/**
|
|
3922
|
+
* Optional trailing note (e.g. "no Pro-Am ladder"). Rendered as a small
|
|
3923
|
+
* muted marker after the label and exposed to assistive tech via
|
|
3924
|
+
* `aria-description`, so it does not change the accessible name.
|
|
3925
|
+
*/
|
|
3926
|
+
hint?: string;
|
|
3879
3927
|
disabled?: boolean;
|
|
3880
3928
|
/**
|
|
3881
3929
|
* Destination URL. When set the segment renders as a link instead of a
|
|
@@ -3898,8 +3946,13 @@ type SegmentedControlProps = Omit<React.HTMLAttributes<HTMLDivElement>, 'onChang
|
|
|
3898
3946
|
multiple?: boolean;
|
|
3899
3947
|
/** Control density. Default 'md'. */
|
|
3900
3948
|
size?: 'sm' | 'md' | 'lg';
|
|
3901
|
-
/**
|
|
3902
|
-
|
|
3949
|
+
/**
|
|
3950
|
+
* Stretch segments to fill the container width. `true` fills at every
|
|
3951
|
+
* viewport; a breakpoint string ('sm' | 'md' | 'lg' | 'xl' | '2xl') fills
|
|
3952
|
+
* only *below* that breakpoint and hugs content at and above it — the
|
|
3953
|
+
* responsive pattern for "full-width on mobile, compact on desktop".
|
|
3954
|
+
*/
|
|
3955
|
+
fullWidth?: boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
|
|
3903
3956
|
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3904
3957
|
linkComponent?: React.ElementType;
|
|
3905
3958
|
/** Prop used to pass the destination to `linkComponent`. */
|
|
@@ -3930,8 +3983,13 @@ declare const SegmentedControl: React.ForwardRefExoticComponent<Omit<React.HTMLA
|
|
|
3930
3983
|
multiple?: boolean;
|
|
3931
3984
|
/** Control density. Default 'md'. */
|
|
3932
3985
|
size?: "sm" | "md" | "lg";
|
|
3933
|
-
/**
|
|
3934
|
-
|
|
3986
|
+
/**
|
|
3987
|
+
* Stretch segments to fill the container width. `true` fills at every
|
|
3988
|
+
* viewport; a breakpoint string ('sm' | 'md' | 'lg' | 'xl' | '2xl') fills
|
|
3989
|
+
* only *below* that breakpoint and hugs content at and above it — the
|
|
3990
|
+
* responsive pattern for "full-width on mobile, compact on desktop".
|
|
3991
|
+
*/
|
|
3992
|
+
fullWidth?: boolean | "sm" | "md" | "lg" | "xl" | "2xl";
|
|
3935
3993
|
/** Custom link element for routers (Next Link, react-router Link). */
|
|
3936
3994
|
linkComponent?: React.ElementType;
|
|
3937
3995
|
/** Prop used to pass the destination to `linkComponent`. */
|
|
@@ -4532,5 +4590,5 @@ declare const Pagination: React.ForwardRefExoticComponent<React.HTMLAttributes<H
|
|
|
4532
4590
|
};
|
|
4533
4591
|
} & React.RefAttributes<HTMLElement>>;
|
|
4534
4592
|
|
|
4535
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AnnouncementBar, AppShell, AppliedFilters, ArticleCard, AuthLayout, Autocomplete, Avatar, AvatarFallback, AvatarImage, Badge, Block, BottomNav, Breadcrumb, Button, ButtonGroup, CTASection, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, ComparisonTable, ConfirmDialog, ContactStrip, Container, CoverImage, DataTable, DatePicker, DatePickerPopover, DateRangePicker, DealCard, Dialog, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Divider, DocumentCard, Drawer, EmptyState, EntityCard, FeatureGrid, FeatureRow, Fieldset, FileUpload, FilterBar, FilterChips, FilterPanel, Flex, FlexItem, Form, FormField, FormLayout, Grid, GridItem, Heading, Hero, Image, Input, InputGroup, InputGroupAddon, Label, Link, LinkTabs, List, ListItem, LoadMore, LogoCloud, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, MultiSelect, Newsletter, PageHeader, Pagination, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProcessSteps, ProfileCard, Progress, Prose, Radio, RadioCard, RadioGroup, RadioGroupContext, RadioGroupItem, RangeSlider, Search, Section, SectionHeading, SegmentedControl, Select, SelectMenu, Separator, Sidebar, SiteFooter, SiteHeader, Skeleton, Spinner, StatBand, Stepper, Switch, Table, TableBody, TableCaption, TableCard, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Text, Textarea, ThemeToggle, TimePicker, Timeline, ToastProvider, Toaster, TombstoneCard, Tooltip, alertVariants, badgeVariants, buttonVariants, cn, documentHead, isComponentManifest, resolveGap, separatorVariants, spinnerVariants, toast, useCombobox, usePresence, useScrollSpy, useToast };
|
|
4536
|
-
export type { AccessibilityRequirement, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionSection, AccordionTriggerProps, AlertDescriptionProps, AlertProps, AlertTitleProps, AnnouncementBarProps, AntiPattern, AppShellProps, AppliedFiltersProps, ArticleCardProps, AuthLayoutProps, AutocompleteOption, AutocompleteProps, BadgeProps, BlockElement, BlockProps, BottomNavItem, BottomNavProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonProps, CTASectionProps, CTASectionTone, CalendarProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CheckboxGroupItemProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxProps, ComboboxItem, ComparisonColumn, ComparisonRow, ComparisonTableProps, ComponentManifest, ComponentTier, CompositionRule, ConfirmDialogProps, ContactItem, ContactStripProps, ContainerProps, ContainerWidth, ContentGuideline, CoverImageProps, DataTableColumn, DataTableProps, DatePickerPopoverProps, DatePickerProps, DateRange, DateRangePickerProps, DateRangePreset, DealCardProps, DealMetric, DealStatus, DialogBodyProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogSize, DialogTitleProps, DocumentCardProps, DocumentHead, DocumentHeadInput, DocumentStatus, DrawerProps, DrawerSide, DrawerSize, EmptyStateAction, EmptyStateProps, EntityCardProps, EntityStat, FeatureGridProps, FeatureItem, FeatureRowProps, FieldsetProps, FileUploadProps, FilterBarProps, FilterChip, FilterChipsProps, FilterPanelProps, FilterSection, FlexItemProps, FlexProps, FormFieldLabelPlacement, FormFieldProps, FormLayoutColumns, FormLayoutProps, FormProps, FormVariant, GapValue, GridItemProps, GridProps, HeadingLevel, HeadingProps, HeroProps, ImageProps, InputGroupAddonProps, InputGroupProps, InputProps, LabelProps, LinkProps, LinkTabsItem, LinkTabsProps, LinkVariant, ListItemProps, ListProps, LoadMoreProps, LogoCloudProps, LogoItem, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, MultiSelectOption, MultiSelectProps, NewsletterProps, PageHeaderProps, PaginationIcons, PaginationProps, PasswordInputProps, PopoverAnchorProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, ProcessStep, ProcessStepsProps, ProfileCardProps, ProgressProps, PropSchema, ProseProps, RadioCardProps, RadioGroupItemProps, RadioGroupProps, RadioProps, RangeSliderProps, SearchOption, SearchProps, SectionHeadingProps, SectionProps, SectionTone, SegmentedControlProps, SegmentedOption, SelectMenuItem, SelectMenuProps, SelectOption, SelectOptionGroup, SelectProps, SeparatorProps, SidebarItem, SidebarProps, SidebarSection, SiteFooterColumn, SiteFooterLink, SiteFooterProps, SiteHeaderProps, SiteNavColumn, SiteNavItem, SiteNavLink, SkeletonProps, SortIconState, SpinnerProps, StatBandProps, StatItem, StepperProps, StepperStep, SwitchProps, TableBodyProps, TableCaptionProps, TableCardProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableOfContentsProps, TableProps, TableRowProps, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TestimonialProps, TextProps, TextareaProps, ThemeToggleProps, TimePickerProps, TimelineItem, TimelineProps, ToastAction, ToastContextValue, ToastOptions, ToastRecord, ToastVariant, ToasterPosition, ToasterProps, TocHeading, TombstoneCardProps, TombstoneStatus, TooltipProps, UsageExample };
|
|
4593
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertDescription, AlertTitle, AnnouncementBar, AppShell, AppliedFilters, ArticleCard, AuthLayout, Autocomplete, Avatar, AvatarFallback, AvatarImage, Badge, Block, BottomNav, Breadcrumb, Button, ButtonGroup, CTASection, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxGroup, CheckboxGroupItem, ComparisonTable, ConfirmDialog, ContactStrip, Container, CoverImage, DataTable, DatePicker, DatePickerPopover, DateRangePicker, DealCard, Dialog, DialogBody, DialogDescription, DialogFooter, DialogHeader, DialogTitle, Divider, DocumentCard, Drawer, EmptyState, EntityCard, FeatureGrid, FeatureRow, Fieldset, FileUpload, FilterBar, FilterChips, FilterPanel, Flex, FlexItem, Form, FormField, FormLayout, Grid, GridItem, Heading, Hero, Image, Input, InputGroup, InputGroupAddon, Label, Link, LinkTabs, List, ListItem, ListToolbar, LoadMore, LogoCloud, Menu, MenuContent, MenuItem, MenuLabel, MenuSeparator, MenuTrigger, MetricCard, MultiSelect, Newsletter, PageHeader, Pagination, PasswordInput, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ProcessSteps, ProfileCard, Progress, Prose, Radio, RadioCard, RadioGroup, RadioGroupContext, RadioGroupItem, RangeSlider, Search, Section, SectionHeading, SegmentedControl, Select, SelectMenu, Separator, Sidebar, SiteFooter, SiteHeader, Skeleton, Spinner, StatBand, Stepper, Switch, Table, TableBody, TableCaption, TableCard, TableCell, TableFooter, TableHead, TableHeader, TableOfContents, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Testimonial, Text, Textarea, ThemeToggle, TimePicker, Timeline, ToastProvider, Toaster, TombstoneCard, Tooltip, alertVariants, badgeVariants, buttonVariants, cn, documentHead, isComponentManifest, resolveGap, separatorVariants, spinnerVariants, toast, useCombobox, usePresence, useScrollSpy, useToast };
|
|
4594
|
+
export type { AccessibilityRequirement, AccordionContentProps, AccordionItemProps, AccordionProps, AccordionSection, AccordionTriggerProps, AlertDescriptionProps, AlertProps, AlertTitleProps, AnnouncementBarProps, AntiPattern, AppShellProps, AppliedFiltersProps, ArticleCardProps, AuthLayoutProps, AutocompleteOption, AutocompleteProps, BadgeProps, BlockElement, BlockProps, BottomNavItem, BottomNavProps, BreadcrumbItem, BreadcrumbProps, ButtonGroupProps, ButtonProps, CTASectionProps, CTASectionTone, CalendarProps, CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardProps, CardTitleProps, CheckboxGroupItemProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxProps, ComboboxItem, ComparisonColumn, ComparisonRow, ComparisonTableProps, ComponentManifest, ComponentTier, CompositionRule, ConfirmDialogProps, ContactItem, ContactStripProps, ContainerProps, ContainerWidth, ContentGuideline, CoverImageProps, DataTableCardBreakpoint, DataTableColumn, DataTableProps, DatePickerPopoverProps, DatePickerProps, DateRange, DateRangePickerProps, DateRangePreset, DealCardProps, DealMetric, DealStatus, DialogBodyProps, DialogDescriptionProps, DialogFooterProps, DialogHeaderProps, DialogProps, DialogSize, DialogTitleProps, DocumentCardProps, DocumentHead, DocumentHeadInput, DocumentStatus, DrawerProps, DrawerSide, DrawerSize, EmptyStateAction, EmptyStateProps, EntityCardProps, EntityStat, FeatureGridProps, FeatureItem, FeatureRowProps, FieldsetProps, FileUploadProps, FilterBarProps, FilterChip, FilterChipsProps, FilterPanelProps, FilterSection, FlexItemProps, FlexProps, FormFieldLabelPlacement, FormFieldProps, FormLayoutColumns, FormLayoutProps, FormProps, FormVariant, GapValue, GridItemProps, GridProps, HeadingLevel, HeadingProps, HeroProps, ImageProps, InputGroupAddonProps, InputGroupProps, InputProps, LabelProps, LinkProps, LinkTabsItem, LinkTabsProps, LinkVariant, ListItemProps, ListProps, ListToolbarProps, LoadMoreProps, LogoCloudProps, LogoItem, MenuContentProps, MenuItemProps, MenuLabelProps, MenuProps, MenuSeparatorProps, MenuTriggerProps, MetricCardProps, MetricTone, MetricTrend, MultiSelectOption, MultiSelectProps, NewsletterProps, PageHeaderProps, PaginationIcons, PaginationProps, PasswordInputProps, PopoverAnchorProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, ProcessStep, ProcessStepsProps, ProfileCardProps, ProgressProps, PropSchema, ProseProps, RadioCardProps, RadioGroupItemProps, RadioGroupProps, RadioProps, RangeSliderProps, SearchOption, SearchProps, SectionHeadingProps, SectionProps, SectionTone, SegmentedControlProps, SegmentedOption, SelectMenuItem, SelectMenuProps, SelectOption, SelectOptionGroup, SelectProps, SeparatorProps, SidebarItem, SidebarProps, SidebarSection, SiteFooterColumn, SiteFooterLink, SiteFooterProps, SiteHeaderProps, SiteNavColumn, SiteNavItem, SiteNavLink, SkeletonProps, SortIconState, SpinnerProps, StatBandProps, StatItem, StepperProps, StepperStep, SwitchProps, TableBodyProps, TableCaptionProps, TableCardProps, TableCellProps, TableFooterProps, TableHeadProps, TableHeaderProps, TableOfContentsProps, TableProps, TableRowProps, TabsContentProps, TabsListProps, TabsProps, TabsTriggerProps, TestimonialProps, TextProps, TextareaProps, ThemeToggleProps, TimePickerProps, TimelineItem, TimelineProps, ToastAction, ToastContextValue, ToastOptions, ToastRecord, ToastVariant, ToasterPosition, ToasterProps, TocHeading, TombstoneCardProps, TombstoneStatus, TooltipProps, UsageExample };
|