@partrunner-ai/ui 2.1.0 → 2.2.1
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/README.md +29 -0
- package/dist/index.cjs +644 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +315 -2
- package/dist/index.d.ts +315 -2
- package/dist/index.js +623 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/styles/light.css +611 -0
- package/styles/theme.css +611 -0
- package/styles/ui.css +611 -0
package/dist/index.d.ts
CHANGED
|
@@ -1000,6 +1000,8 @@ interface TableRootProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
|
1000
1000
|
* body loses that width. One table cannot drift from itself.
|
|
1001
1001
|
*/
|
|
1002
1002
|
maxHeight?: number | string;
|
|
1003
|
+
/** Drops the surrounding surface, for a table already inside a Card or a `TableFrame`. */
|
|
1004
|
+
bare?: boolean;
|
|
1003
1005
|
}
|
|
1004
1006
|
type TableHeaderProps = HTMLAttributes<HTMLTableSectionElement>;
|
|
1005
1007
|
declare const TableHeader: react.ForwardRefExoticComponent<TableHeaderProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
@@ -1242,6 +1244,12 @@ interface PopoverProps {
|
|
|
1242
1244
|
onOpenChange?: (open: boolean) => void;
|
|
1243
1245
|
/** Viewport height the panel may occupy before it scrolls. Defaults to 280px. */
|
|
1244
1246
|
maxHeight?: number;
|
|
1247
|
+
/**
|
|
1248
|
+
* Room below the trigger that keeps the panel there. With less, and more room
|
|
1249
|
+
* above, the panel flips up. Defaults to 180px; a panel holding a calendar
|
|
1250
|
+
* asks for its full height so it opens where it fits instead of scrolling.
|
|
1251
|
+
*/
|
|
1252
|
+
minimumSpace?: number;
|
|
1245
1253
|
/**
|
|
1246
1254
|
* Size the panel to its trigger instead of to its content. Default false.
|
|
1247
1255
|
*
|
|
@@ -1260,7 +1268,7 @@ interface PopoverProps {
|
|
|
1260
1268
|
* is the part that has to be shared: a popover rendered inline gets clipped by the
|
|
1261
1269
|
* scrolling body of any dialog it opens in, and that is exactly where filters live.
|
|
1262
1270
|
*/
|
|
1263
|
-
declare function Popover({ children, open: controlledOpen, defaultOpen, onOpenChange, maxHeight, matchTriggerWidth, }: PopoverProps): react.JSX.Element;
|
|
1271
|
+
declare function Popover({ children, open: controlledOpen, defaultOpen, onOpenChange, maxHeight, minimumSpace, matchTriggerWidth, }: PopoverProps): react.JSX.Element;
|
|
1264
1272
|
interface PopoverTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
1265
1273
|
asChild?: boolean;
|
|
1266
1274
|
}
|
|
@@ -1605,6 +1613,15 @@ type ToolbarProps = HTMLAttributes<HTMLDivElement>;
|
|
|
1605
1613
|
* rows when narrow.
|
|
1606
1614
|
*/
|
|
1607
1615
|
declare const Toolbar: react.ForwardRefExoticComponent<ToolbarProps & react.RefAttributes<HTMLDivElement>>;
|
|
1616
|
+
type ToolbarGroupProps = HTMLAttributes<HTMLDivElement>;
|
|
1617
|
+
/** Controls that belong together inside a `Toolbar`; wraps as one unit. */
|
|
1618
|
+
declare const ToolbarGroup: react.ForwardRefExoticComponent<ToolbarGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
1619
|
+
type ToolbarSpacerProps = HTMLAttributes<HTMLDivElement>;
|
|
1620
|
+
/**
|
|
1621
|
+
* Pushes what follows to the end of the bar from 640px up; hidden below, where
|
|
1622
|
+
* the bar wraps and the gap would only add a blank line.
|
|
1623
|
+
*/
|
|
1624
|
+
declare const ToolbarSpacer: react.ForwardRefExoticComponent<ToolbarSpacerProps & react.RefAttributes<HTMLDivElement>>;
|
|
1608
1625
|
|
|
1609
1626
|
type IconButtonSize = 'sm' | 'md' | 'lg';
|
|
1610
1627
|
type IconButtonVariant = 'default' | 'primary' | 'danger' | 'ghost' | 'subtle';
|
|
@@ -1658,6 +1675,302 @@ interface ConfirmDialogProps {
|
|
|
1658
1675
|
*/
|
|
1659
1676
|
declare function ConfirmDialog({ open, onOpenChange, title, description, confirmLabel, cancelLabel, onConfirm, loading, destructive, icon: Icon, size, }: ConfirmDialogProps): react.JSX.Element;
|
|
1660
1677
|
|
|
1678
|
+
/**
|
|
1679
|
+
* The six tinted tones — the palette `Badge`, `Card`, `StatTile` and the launcher
|
|
1680
|
+
* tiles share through the `--pr-tone-*` pairs. Semantic tones (`danger`, `success`,
|
|
1681
|
+
* `warning`, `info`) and `neutral` are not tints: they carry meaning, so a colour
|
|
1682
|
+
* picked for an entity must never land on one of them.
|
|
1683
|
+
*/
|
|
1684
|
+
type TintTone = 'yellow' | 'blue' | 'amber' | 'purple' | 'green' | 'rose';
|
|
1685
|
+
declare const TINT_TONES: readonly TintTone[];
|
|
1686
|
+
/**
|
|
1687
|
+
* A stable tint for an entity (a client, a project, a person), so the same seed
|
|
1688
|
+
* gets the same colour in every table and card of every app.
|
|
1689
|
+
*
|
|
1690
|
+
* FNV-1a over the UTF-16 code units. The hash is part of the public contract: a
|
|
1691
|
+
* change here recolours every avatar in the fleet, which is a major.
|
|
1692
|
+
*/
|
|
1693
|
+
declare function toneFromString(seed: string, palette?: readonly TintTone[]): TintTone;
|
|
1694
|
+
|
|
1695
|
+
type StatusDotSize = 'sm' | 'md';
|
|
1696
|
+
interface StatusDotProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1697
|
+
tone: BadgeTone;
|
|
1698
|
+
/** 8px or 10px. */
|
|
1699
|
+
size?: StatusDotSize;
|
|
1700
|
+
/**
|
|
1701
|
+
* Names the dot for assistive tech when it stands alone. Leave it out when the
|
|
1702
|
+
* dot sits beside visible text that already says the status — then it is
|
|
1703
|
+
* decorative and hidden, and colour is never the only carrier of meaning.
|
|
1704
|
+
*/
|
|
1705
|
+
label?: string;
|
|
1706
|
+
}
|
|
1707
|
+
/**
|
|
1708
|
+
* A tone dot for a menu item, an option row or a legend — the same colour the
|
|
1709
|
+
* matching `Badge` paints, resolved in CSS from the tone tokens.
|
|
1710
|
+
*/
|
|
1711
|
+
declare const StatusDot: react.ForwardRefExoticComponent<StatusDotProps & react.RefAttributes<HTMLSpanElement>>;
|
|
1712
|
+
|
|
1713
|
+
type IconTileSize = 'sm' | 'md' | 'lg';
|
|
1714
|
+
interface IconTileProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1715
|
+
icon: LucideIcon;
|
|
1716
|
+
/** Tinted or semantic tone; `neutral` by default. Colours resolve in CSS as for `Badge`. */
|
|
1717
|
+
tone?: BadgeTone;
|
|
1718
|
+
/** 28, 36 or 44px square. */
|
|
1719
|
+
size?: IconTileSize;
|
|
1720
|
+
}
|
|
1721
|
+
/**
|
|
1722
|
+
* An icon in a tinted chip: the visual anchor of a list row, a card header or an
|
|
1723
|
+
* empty state. Decorative — the text beside it carries the meaning.
|
|
1724
|
+
*/
|
|
1725
|
+
declare const IconTile: react.ForwardRefExoticComponent<IconTileProps & react.RefAttributes<HTMLSpanElement>>;
|
|
1726
|
+
|
|
1727
|
+
type AvatarSize = 'xs' | 'sm' | 'md' | 'lg';
|
|
1728
|
+
interface AvatarProps extends HTMLAttributes<HTMLSpanElement> {
|
|
1729
|
+
/** The person's name. It is the accessible name and the source of the initials. */
|
|
1730
|
+
name: string;
|
|
1731
|
+
/** A photo. While it loads, and if it fails, the initials show. */
|
|
1732
|
+
src?: string;
|
|
1733
|
+
/** 20, 24, 32 or 40px. */
|
|
1734
|
+
size?: AvatarSize;
|
|
1735
|
+
/** Defaults to a stable tint hashed from `name`. */
|
|
1736
|
+
tone?: TintTone;
|
|
1737
|
+
/** Hides the avatar from assistive tech when the name is already visible beside it. */
|
|
1738
|
+
decorative?: boolean;
|
|
1739
|
+
/** Locale for upper-casing the initials. Defaults to the runtime locale. */
|
|
1740
|
+
locale?: string;
|
|
1741
|
+
}
|
|
1742
|
+
/** First letter of the first two words, upper-cased for the locale. */
|
|
1743
|
+
declare function avatarInitials(name: string, locale?: string): string;
|
|
1744
|
+
/**
|
|
1745
|
+
* A person by initials, in a stable tint. The root is the named image; the
|
|
1746
|
+
* initials are decoration inside it, so a screen reader hears the name, not
|
|
1747
|
+
* two disconnected letters.
|
|
1748
|
+
*/
|
|
1749
|
+
declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<HTMLSpanElement>>;
|
|
1750
|
+
|
|
1751
|
+
/** Max content width: 768, 1280, 1536px, or none. */
|
|
1752
|
+
type PageWidth = 'narrow' | 'default' | 'wide' | 'full';
|
|
1753
|
+
interface PageProps extends HTMLAttributes<HTMLDivElement> {
|
|
1754
|
+
width?: PageWidth;
|
|
1755
|
+
}
|
|
1756
|
+
/**
|
|
1757
|
+
* The page container: Crystal rhythm (16 → 24 → 32px padding), centred and capped,
|
|
1758
|
+
* with a 24px vertical stack between its children. Every screen starts here so
|
|
1759
|
+
* width and outer padding stop being decided per file.
|
|
1760
|
+
*/
|
|
1761
|
+
declare const Page: react.ForwardRefExoticComponent<PageProps & react.RefAttributes<HTMLDivElement>>;
|
|
1762
|
+
|
|
1763
|
+
type SectionHeadingLevel = 2 | 3;
|
|
1764
|
+
interface SectionHeadingProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
1765
|
+
/** Small uppercase label above the title. */
|
|
1766
|
+
eyebrow?: ReactNode;
|
|
1767
|
+
title: ReactNode;
|
|
1768
|
+
/** Muted line under the title. */
|
|
1769
|
+
description?: ReactNode;
|
|
1770
|
+
/** Controls aligned to the end edge. */
|
|
1771
|
+
actions?: ReactNode;
|
|
1772
|
+
/** The heading element for `title`: `<h2>` by default, `<h3>` for a nested section. */
|
|
1773
|
+
headingLevel?: SectionHeadingLevel;
|
|
1774
|
+
}
|
|
1775
|
+
/**
|
|
1776
|
+
* A titled section inside a page — the step below `PageHeader`. The root is a
|
|
1777
|
+
* `<header>`; `headingLevel` only changes the title element so the document
|
|
1778
|
+
* outline stays honest.
|
|
1779
|
+
*/
|
|
1780
|
+
declare const SectionHeading: react.ForwardRefExoticComponent<SectionHeadingProps & react.RefAttributes<HTMLElement>>;
|
|
1781
|
+
|
|
1782
|
+
type StatTileGridColumns = 2 | 3 | 4 | 5 | 6;
|
|
1783
|
+
interface StatTileGridProps extends HTMLAttributes<HTMLDivElement> {
|
|
1784
|
+
/** Columns from 1024px up. One column under 640px, two under 1024px. */
|
|
1785
|
+
columns?: StatTileGridColumns;
|
|
1786
|
+
}
|
|
1787
|
+
/** The row of KPI tiles: `StatTile` children on one responsive grid. */
|
|
1788
|
+
declare const StatTileGrid: react.ForwardRefExoticComponent<StatTileGridProps & react.RefAttributes<HTMLDivElement>>;
|
|
1789
|
+
|
|
1790
|
+
interface SearchFieldProps extends Omit<InputProps, 'type' | 'leading'> {
|
|
1791
|
+
/** Fill the container at every width instead of the 16rem toolbar width from 640px up. */
|
|
1792
|
+
fullWidth?: boolean;
|
|
1793
|
+
}
|
|
1794
|
+
/**
|
|
1795
|
+
* The search input of a toolbar, with the magnifier baked in. The ref is the
|
|
1796
|
+
* native input. The layout box is the field wrapper: the package width class
|
|
1797
|
+
* goes on `containerClassName` and the caller's `className` still targets the
|
|
1798
|
+
* input, exactly as in `Input`.
|
|
1799
|
+
*/
|
|
1800
|
+
declare const SearchField: react.ForwardRefExoticComponent<SearchFieldProps & react.RefAttributes<HTMLInputElement>>;
|
|
1801
|
+
|
|
1802
|
+
interface FilterChipProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'aria-pressed'> {
|
|
1803
|
+
/** The chip is the current filter. Owns `aria-pressed`. */
|
|
1804
|
+
active?: boolean;
|
|
1805
|
+
/** Rows behind this chip, in tabular figures. */
|
|
1806
|
+
count?: number;
|
|
1807
|
+
/** Tone of the leading dot. */
|
|
1808
|
+
tone?: BadgeTone;
|
|
1809
|
+
/** Show a `StatusDot` in `tone` before the label. */
|
|
1810
|
+
dot?: boolean;
|
|
1811
|
+
icon?: LucideIcon;
|
|
1812
|
+
children?: ReactNode;
|
|
1813
|
+
}
|
|
1814
|
+
/**
|
|
1815
|
+
* A one-tap filter over a small enumeration — the row of status chips above a
|
|
1816
|
+
* list. Inactive chips are quiet outlines; the active one is ink on the page.
|
|
1817
|
+
*/
|
|
1818
|
+
declare const FilterChip: react.ForwardRefExoticComponent<FilterChipProps & react.RefAttributes<HTMLButtonElement>>;
|
|
1819
|
+
type FilterChipRowProps = HTMLAttributes<HTMLDivElement>;
|
|
1820
|
+
/** The chips of one filter, as a named group. Pass `aria-label`. */
|
|
1821
|
+
declare const FilterChipRow: react.ForwardRefExoticComponent<FilterChipRowProps & react.RefAttributes<HTMLDivElement>>;
|
|
1822
|
+
|
|
1823
|
+
interface SegmentedOption<T extends string> {
|
|
1824
|
+
value: T;
|
|
1825
|
+
label: ReactNode;
|
|
1826
|
+
icon?: LucideIcon;
|
|
1827
|
+
/** Rows behind this view, in tabular figures. */
|
|
1828
|
+
count?: number;
|
|
1829
|
+
disabled?: boolean;
|
|
1830
|
+
}
|
|
1831
|
+
type SegmentedControlSize = 'md' | 'lg';
|
|
1832
|
+
interface SegmentedControlBaseProps<T extends string> {
|
|
1833
|
+
/** The checked option, or `null` when none is. */
|
|
1834
|
+
value: T | null;
|
|
1835
|
+
onChange: (value: T) => void;
|
|
1836
|
+
options: ReadonlyArray<SegmentedOption<T>>;
|
|
1837
|
+
/** Option height 40px (`md`) or 44px (`lg`). */
|
|
1838
|
+
size?: SegmentedControlSize;
|
|
1839
|
+
/** Options share the full width instead of sizing to their labels. */
|
|
1840
|
+
fullWidth?: boolean;
|
|
1841
|
+
className?: string;
|
|
1842
|
+
id?: string;
|
|
1843
|
+
/** Swaps the Left and Right arrows. */
|
|
1844
|
+
dir?: 'ltr' | 'rtl';
|
|
1845
|
+
}
|
|
1846
|
+
type SegmentedControlProps<T extends string> = SegmentedControlBaseProps<T> & ({
|
|
1847
|
+
'aria-label': string;
|
|
1848
|
+
'aria-labelledby'?: never;
|
|
1849
|
+
} | {
|
|
1850
|
+
'aria-labelledby': string;
|
|
1851
|
+
'aria-label'?: never;
|
|
1852
|
+
});
|
|
1853
|
+
/**
|
|
1854
|
+
* A single choice that changes the representation or the subset of the same
|
|
1855
|
+
* data — Todas/Mis, lista/tablero, día/semana. Not tabs: nothing else on the
|
|
1856
|
+
* page appears or disappears with it.
|
|
1857
|
+
*
|
|
1858
|
+
* Radio semantics: one `radiogroup`, `radio` buttons, roving focus with the
|
|
1859
|
+
* arrow keys (wrapping, skipping disabled options), Home and End. A click or
|
|
1860
|
+
* key on the checked option calls nothing.
|
|
1861
|
+
*/
|
|
1862
|
+
declare function SegmentedControl<T extends string>({ value, onChange, options, size, fullWidth, className, id, dir, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, }: SegmentedControlProps<T>): react.JSX.Element;
|
|
1863
|
+
|
|
1864
|
+
interface TableFrameProps extends Omit<CardProps, 'title' | 'padding' | 'asChild'> {
|
|
1865
|
+
/** The list's name. The header renders only when a title, description or actions exist. */
|
|
1866
|
+
title?: ReactNode;
|
|
1867
|
+
description?: ReactNode;
|
|
1868
|
+
/** Row count, as a badge beside the title. Shown only with a title. */
|
|
1869
|
+
count?: number;
|
|
1870
|
+
/** Accessible name for the count badge, e.g. `(n) => \`${n} filas\``. */
|
|
1871
|
+
countLabel?: (count: number) => string;
|
|
1872
|
+
/** Muted 16px icon before the title. */
|
|
1873
|
+
icon?: LucideIcon;
|
|
1874
|
+
/** End-aligned controls that act on the data: export, import, a link. */
|
|
1875
|
+
actions?: ReactNode;
|
|
1876
|
+
/** Pinned under the body — a `Pagination`, or a summary line. */
|
|
1877
|
+
footer?: ReactNode;
|
|
1878
|
+
}
|
|
1879
|
+
/**
|
|
1880
|
+
* The card a table lives in: a strict assembly of `Card`, `CardHeader` (title,
|
|
1881
|
+
* count, actions) and a bleeding `CardContent`, plus a footer slot. The frame
|
|
1882
|
+
* clips its corners without becoming a scroll container, so a pinned header
|
|
1883
|
+
* inside a capped table keeps working. Any `Table` inside it drops its own
|
|
1884
|
+
* surface, so the frame is the only border around the rows.
|
|
1885
|
+
*/
|
|
1886
|
+
declare const TableFrame: react.ForwardRefExoticComponent<TableFrameProps & react.RefAttributes<HTMLDivElement>>;
|
|
1887
|
+
interface TableSkeletonProps extends HTMLAttributes<HTMLDivElement> {
|
|
1888
|
+
rows?: number;
|
|
1889
|
+
columns?: number;
|
|
1890
|
+
/** Announced once, e.g. "Cargando tabla". Required: a silent wait says nothing. */
|
|
1891
|
+
label: string;
|
|
1892
|
+
}
|
|
1893
|
+
/**
|
|
1894
|
+
* Placeholder rows for a compound `Table` that is loading — the same shape the
|
|
1895
|
+
* data-driven `Table loading` paints, with the `Spinner` announcement contract.
|
|
1896
|
+
*/
|
|
1897
|
+
declare const TableSkeleton: react.ForwardRefExoticComponent<TableSkeletonProps & react.RefAttributes<HTMLDivElement>>;
|
|
1898
|
+
|
|
1899
|
+
/**
|
|
1900
|
+
* The window of a list. `''` is an open bound. Valid shapes: empty, start-only,
|
|
1901
|
+
* or complete with `from <= to`. An end-only range is not representable: the
|
|
1902
|
+
* calendar always fixes the start first, so it can never be edited faithfully.
|
|
1903
|
+
*/
|
|
1904
|
+
interface DateRange {
|
|
1905
|
+
from: CalendarDate | '';
|
|
1906
|
+
to: CalendarDate | '';
|
|
1907
|
+
}
|
|
1908
|
+
declare const EMPTY_DATE_RANGE: DateRange;
|
|
1909
|
+
interface DateRangePreset {
|
|
1910
|
+
id: string;
|
|
1911
|
+
label: ReactNode;
|
|
1912
|
+
range: DateRange;
|
|
1913
|
+
}
|
|
1914
|
+
interface DateRangeFilterLabels {
|
|
1915
|
+
/** The state with no bounds. Reads as a state ("Todo el tiempo"), not an action. */
|
|
1916
|
+
allTime: string;
|
|
1917
|
+
/** Heading of the calendar section. */
|
|
1918
|
+
custom: string;
|
|
1919
|
+
from: string;
|
|
1920
|
+
to: string;
|
|
1921
|
+
apply: string;
|
|
1922
|
+
clear: string;
|
|
1923
|
+
/** Accessible name of the dialog, e.g. "Filtrar por fechas". */
|
|
1924
|
+
dialog: string;
|
|
1925
|
+
}
|
|
1926
|
+
type DateRangeFilterSize = 'sm' | 'md';
|
|
1927
|
+
interface DateRangeFilterProps {
|
|
1928
|
+
value: DateRange;
|
|
1929
|
+
onChange: (next: DateRange) => void;
|
|
1930
|
+
/**
|
|
1931
|
+
* Quick ranges, computed by the caller; the package owns no date logic. A preset
|
|
1932
|
+
* whose range is not valid under the invariant and the limits renders disabled
|
|
1933
|
+
* and can never be committed.
|
|
1934
|
+
*/
|
|
1935
|
+
presets: readonly DateRangePreset[];
|
|
1936
|
+
labels: DateRangeFilterLabels;
|
|
1937
|
+
/**
|
|
1938
|
+
* BCP 47 locale for the trigger text and the calendar. Defaults to `es-MX`, the
|
|
1939
|
+
* same default `Calendar` and `DatePicker` use; the runtime locale is never read.
|
|
1940
|
+
*/
|
|
1941
|
+
locale?: string;
|
|
1942
|
+
/** `sm` matches `MultiSelect variant="filter"`; `md` matches a field. */
|
|
1943
|
+
size?: DateRangeFilterSize;
|
|
1944
|
+
min?: CalendarDate;
|
|
1945
|
+
max?: CalendarDate;
|
|
1946
|
+
/** Calendar labels and week configuration, forwarded as-is. */
|
|
1947
|
+
calendar?: Pick<CalendarSharedProps, 'weekStartsOn' | 'showOutsideDays' | 'previousMonthLabel' | 'nextMonthLabel' | 'previousYearLabel' | 'nextYearLabel'>;
|
|
1948
|
+
className?: string;
|
|
1949
|
+
id?: string;
|
|
1950
|
+
'aria-label': string;
|
|
1951
|
+
}
|
|
1952
|
+
declare function isSameDateRange(a: DateRange, b: DateRange): boolean;
|
|
1953
|
+
/** Empty, start-only, or complete and ordered, with every bound a real date inside the limits. */
|
|
1954
|
+
declare function isValidDateRange(value: DateRange, limits?: {
|
|
1955
|
+
min?: CalendarDate;
|
|
1956
|
+
max?: CalendarDate;
|
|
1957
|
+
}): boolean;
|
|
1958
|
+
/**
|
|
1959
|
+
* "3 ago – 2 sep 2026", "20 dic 2025 – 5 ene 2026", "Desde 3 ago 2026", or the
|
|
1960
|
+
* all-time label for an empty or invalid range. UTC calendar fields, so the
|
|
1961
|
+
* host timezone never shifts a day.
|
|
1962
|
+
*/
|
|
1963
|
+
declare function formatDateRange(range: DateRange, locale: string | undefined, labels: Pick<DateRangeFilterLabels, 'allTime' | 'from' | 'to'>): string;
|
|
1964
|
+
/**
|
|
1965
|
+
* One control for the date window of a list: a pill that names the active range
|
|
1966
|
+
* and opens the presets plus a calendar for a custom range. Presets commit on
|
|
1967
|
+
* click; the calendar edits a draft that `apply` commits. The draft resets from
|
|
1968
|
+
* `value` on every open and is discarded on every other close. `onChange` only
|
|
1969
|
+
* ever emits a range that passes `isValidDateRange` with the limits; an invalid
|
|
1970
|
+
* controlled value reads as all time and marks the trigger `data-invalid`.
|
|
1971
|
+
*/
|
|
1972
|
+
declare function DateRangeFilter({ value, onChange, presets, labels, locale, size, min, max, calendar, className, id: providedId, 'aria-label': ariaLabel, }: DateRangeFilterProps): react.JSX.Element;
|
|
1973
|
+
|
|
1661
1974
|
interface MenuPosition {
|
|
1662
1975
|
maxHeight: number;
|
|
1663
1976
|
top?: number;
|
|
@@ -1717,4 +2030,4 @@ declare function useAnchoredMenu<T extends HTMLElement>(options?: AnchoredMenuOp
|
|
|
1717
2030
|
/** Turns a computed position into inline styles for the fixed container. */
|
|
1718
2031
|
declare function menuStyle(pos: MenuPosition | null): CSSProperties;
|
|
1719
2032
|
|
|
1720
|
-
export { AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogMedia, type AlertDialogMediaProps, AlertDialogRoot, type AlertDialogRootProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AmbientBackground, type AmbientBackgroundProps, type AmbientBackgroundVariant, type AnchoredMenuOptions, Badge, type BadgeProps, type BadgeSize, type BadgeTone, Button, type ButtonIcon, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarDate, type CalendarDisabledDates, type CalendarProps, type CalendarRange, type CalendarRangeProps, type CalendarSharedProps, type CalendarSingleProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardHeader, type CardHeaderProps, type CardPadding, type CardProps, CardTitle, type CardTitleProps, type CardTone, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ChoiceGroupOrientation, type ChoiceOption, Combobox, type ComboboxOption, type ComboboxProps, ConfirmDialog, type ConfirmDialogProps, CopyField, type CopyFieldProps, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DatePickerSize, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogLayer, type DialogLayerAutoFocusEvent, type DialogLayerProps, type DialogPrimitiveSize, type DialogProps, DialogRoot, type DialogRootProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, DropdownMenu, type DropdownMenuAlign, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EmptyState, type EmptyStateProps, FileDropzone, type FileDropzoneProps, type FileDropzoneSelectionSource, FormField, type FormFieldProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, Input, type InputProps, type InputSize, Label, type LabelProps, type MenuPosition, MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectVariant, type NavigationTabItem, NavigationTabs, type NavigationTabsLinkComponent, type NavigationTabsLinkProps, type NavigationTabsProps, OtpInput, type OtpInputProps, PageHeader, type PageHeaderProps, Pagination, type PaginationLabels, type PaginationProps, type PaginationSummary, Popover, type PopoverAlign, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, type PopoverPadding, type PopoverProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressDots, type ProgressDotsProps, ProgressRing, type ProgressRingProps, RadioGroup, type RadioGroupProps, RichSelect, RichSelectContent, type RichSelectContentProps, RichSelectEmpty, type RichSelectEmptyProps, RichSelectGroup, type RichSelectGroupProps, RichSelectItem, type RichSelectItemProps, RichSelectLabel, type RichSelectLabelProps, type RichSelectProps, RichSelectSearch, type RichSelectSearchProps, RichSelectSeparator, type RichSelectSeparatorProps, type RichSelectSize, RichSelectTrigger, type RichSelectTriggerProps, RichSelectValue, type RichSelectValueProps, Select, type SelectOption, type SelectProps, type SelectSize, Separator, type SeparatorOrientation, type SeparatorProps, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetRoot, type SheetRootProps, type SheetSide, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, type SheetWidth, Skeleton, type SkeletonProps, type SkeletonShape, Slot, type SlotAllProps, type SlotProps, Spinner, type SpinnerProps, type SpinnerSize, StatTile, type StatTileProps, type StatTone, Stepper, type StepperProps, type StepperStep, Switch, type SwitchProps, Table, type TableAlign, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, type TableColumn, type TableDensity, TableFooter, type TableFooterProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, type TableRootProps, TableRow, type TableRowProps, Tabs, type TabsActivationMode, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsListVariant, type TabsOrientation, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type TextareaSize, Toolbar, type ToolbarProps, Tooltip, type TooltipProps, ValidationSummary, type ValidationSummaryError, type ValidationSummaryProps, formatCalendarDate, isCalendarDate, menuStyle, parseCalendarDate, registerDialogLayerPortal, resolveActiveNavigationHref, serializeCalendarDate, useAnchoredMenu };
|
|
2033
|
+
export { AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogMedia, type AlertDialogMediaProps, AlertDialogRoot, type AlertDialogRootProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps, AmbientBackground, type AmbientBackgroundProps, type AmbientBackgroundVariant, type AnchoredMenuOptions, Avatar, type AvatarProps, type AvatarSize, Badge, type BadgeProps, type BadgeSize, type BadgeTone, Button, type ButtonIcon, type ButtonProps, type ButtonSize, type ButtonVariant, Calendar, type CalendarDate, type CalendarDisabledDates, type CalendarProps, type CalendarRange, type CalendarRangeProps, type CalendarSharedProps, type CalendarSingleProps, Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardHeader, type CardHeaderProps, type CardPadding, type CardProps, CardTitle, type CardTitleProps, type CardTone, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, type ChoiceGroupOrientation, type ChoiceOption, Combobox, type ComboboxOption, type ComboboxProps, ConfirmDialog, type ConfirmDialogProps, CopyField, type CopyFieldProps, DataTable, type DataTableProps, DatePicker, type DatePickerProps, type DatePickerRangeProps, type DatePickerSingleProps, type DatePickerSize, type DateRange, DateRangeFilter, type DateRangeFilterLabels, type DateRangeFilterProps, type DateRangeFilterSize, type DateRangePreset, Dialog, DialogClose, type DialogCloseProps, DialogContent, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderProps, DialogLayer, type DialogLayerAutoFocusEvent, type DialogLayerProps, type DialogPrimitiveSize, type DialogProps, DialogRoot, type DialogRootProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerProps, DropdownMenu, type DropdownMenuAlign, DropdownMenuCheckboxItem, type DropdownMenuCheckboxItemProps, DropdownMenuContent, type DropdownMenuContentProps, DropdownMenuGroup, type DropdownMenuGroupProps, DropdownMenuItem, type DropdownMenuItemProps, DropdownMenuLabel, type DropdownMenuLabelProps, type DropdownMenuProps, DropdownMenuRadioGroup, type DropdownMenuRadioGroupProps, DropdownMenuRadioItem, type DropdownMenuRadioItemProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, EMPTY_DATE_RANGE, EmptyState, type EmptyStateProps, FileDropzone, type FileDropzoneProps, type FileDropzoneSelectionSource, FilterChip, type FilterChipProps, FilterChipRow, type FilterChipRowProps, FormField, type FormFieldProps, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, IconTile, type IconTileProps, type IconTileSize, Input, type InputProps, type InputSize, Label, type LabelProps, type MenuPosition, MultiSelect, type MultiSelectOption, type MultiSelectProps, type MultiSelectVariant, type NavigationTabItem, NavigationTabs, type NavigationTabsLinkComponent, type NavigationTabsLinkProps, type NavigationTabsProps, OtpInput, type OtpInputProps, Page, PageHeader, type PageHeaderProps, type PageProps, type PageWidth, Pagination, type PaginationLabels, type PaginationProps, type PaginationSummary, Popover, type PopoverAlign, PopoverContent, type PopoverContentProps, PopoverDescription, type PopoverDescriptionProps, PopoverHeader, type PopoverHeaderProps, type PopoverPadding, type PopoverProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, ProgressBar, type ProgressBarProps, type ProgressBarSize, ProgressDots, type ProgressDotsProps, ProgressRing, type ProgressRingProps, RadioGroup, type RadioGroupProps, RichSelect, RichSelectContent, type RichSelectContentProps, RichSelectEmpty, type RichSelectEmptyProps, RichSelectGroup, type RichSelectGroupProps, RichSelectItem, type RichSelectItemProps, RichSelectLabel, type RichSelectLabelProps, type RichSelectProps, RichSelectSearch, type RichSelectSearchProps, RichSelectSeparator, type RichSelectSeparatorProps, type RichSelectSize, RichSelectTrigger, type RichSelectTriggerProps, RichSelectValue, type RichSelectValueProps, SearchField, type SearchFieldProps, SectionHeading, type SectionHeadingLevel, type SectionHeadingProps, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type SegmentedOption, Select, type SelectOption, type SelectProps, type SelectSize, Separator, type SeparatorOrientation, type SeparatorProps, SheetClose, type SheetCloseProps, SheetContent, type SheetContentProps, SheetDescription, type SheetDescriptionProps, SheetFooter, type SheetFooterProps, SheetHeader, type SheetHeaderProps, SheetRoot, type SheetRootProps, type SheetSide, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, type SheetWidth, Skeleton, type SkeletonProps, type SkeletonShape, Slot, type SlotAllProps, type SlotProps, Spinner, type SpinnerProps, type SpinnerSize, StatTile, StatTileGrid, type StatTileGridColumns, type StatTileGridProps, type StatTileProps, type StatTone, StatusDot, type StatusDotProps, type StatusDotSize, Stepper, type StepperProps, type StepperStep, Switch, type SwitchProps, TINT_TONES, Table, type TableAlign, TableBody, type TableBodyProps, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, type TableColumn, type TableDensity, TableFooter, type TableFooterProps, TableFrame, type TableFrameProps, TableHead, type TableHeadProps, TableHeader, type TableHeaderProps, type TableProps, type TableRootProps, TableRow, type TableRowProps, TableSkeleton, type TableSkeletonProps, Tabs, type TabsActivationMode, TabsContent, type TabsContentProps, TabsList, type TabsListProps, type TabsListVariant, type TabsOrientation, type TabsProps, TabsTrigger, type TabsTriggerProps, Textarea, type TextareaProps, type TextareaSize, type TintTone, Toolbar, ToolbarGroup, type ToolbarGroupProps, type ToolbarProps, ToolbarSpacer, type ToolbarSpacerProps, Tooltip, type TooltipProps, ValidationSummary, type ValidationSummaryError, type ValidationSummaryProps, avatarInitials, formatCalendarDate, formatDateRange, isCalendarDate, isSameDateRange, isValidDateRange, menuStyle, parseCalendarDate, registerDialogLayerPortal, resolveActiveNavigationHref, serializeCalendarDate, toneFromString, useAnchoredMenu };
|