@sableui/react 0.2.0 → 0.3.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/AGENTS.md +3 -1
- package/CHANGELOG.md +84 -0
- package/CONTRIBUTING.md +8 -0
- package/README.md +1 -0
- package/bin/sable-lint.mjs +0 -0
- package/bin/sable.mjs +68 -26
- package/dist/blocks/index.d.ts +396 -0
- package/dist/blocks/index.js +1997 -0
- package/dist/chunk-6LCIBMMG.js +4908 -0
- package/dist/{chunk-AOWBYEQ6.js → chunk-CKNM7KSB.js} +1598 -6464
- package/dist/{chunk-PAOZBZME.js → chunk-NGBDP3BM.js} +1 -1
- package/dist/{chunk-5Z5KLOAU.js → chunk-TH563WLW.js} +14 -1
- package/dist/chunk-WCFLQVK5.js +5097 -0
- package/dist/icon/index.js +2 -2
- package/dist/icon-sets/reicon.js +1 -1
- package/dist/index.d.ts +471 -34
- package/dist/index.js +588 -2589
- package/dist/ios/index.d.ts +8 -1
- package/dist/ios/index.js +6 -5
- package/dist/ios/preview.d.ts +11 -1
- package/dist/ios/preview.js +13 -8
- package/dist/ios/styles.css +14 -0
- package/dist/{meta-6dUzgC6M.d.ts → meta-CcE_SeFu.d.ts} +37 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/patterns/index.js +29 -30
- package/dist/presets/index.js +10 -1
- package/dist/themes/base/base.css +23 -0
- package/dist/themes/index.js +2 -2
- package/llms/blocks/api-keys-block.md +79 -0
- package/llms/blocks/chat-thread-block.md +51 -0
- package/llms/blocks/command-palette-block.md +48 -0
- package/llms/blocks/cta-band-block.md +62 -0
- package/llms/blocks/danger-zone-block.md +69 -0
- package/llms/blocks/device-comparison-block.md +91 -0
- package/llms/blocks/event-card-block.md +84 -0
- package/llms/blocks/faq-block.md +72 -0
- package/llms/blocks/feature-grid-block.md +75 -0
- package/llms/blocks/feedback-form-block.md +66 -0
- package/llms/blocks/goal-progress-block.md +54 -0
- package/llms/blocks/hero-block.md +65 -0
- package/llms/blocks/invite-team-block.md +61 -0
- package/llms/blocks/invoice-history-block.md +84 -0
- package/llms/blocks/kpi-sparkline-block.md +57 -0
- package/llms/blocks/media-player-block.md +100 -0
- package/llms/blocks/newsletter-block.md +64 -0
- package/llms/blocks/not-found-block.md +56 -0
- package/llms/blocks/notification-list-block.md +63 -0
- package/llms/blocks/notification-settings-block.md +54 -0
- package/llms/blocks/order-tracking-block.md +62 -0
- package/llms/blocks/pricing-card-block.md +82 -0
- package/llms/blocks/pricing-table-block.md +129 -0
- package/llms/blocks/product-card-block.md +69 -0
- package/llms/blocks/profile-card-block.md +103 -0
- package/llms/blocks/profile-form-block.md +114 -0
- package/llms/blocks/revenue-breakdown-block.md +70 -0
- package/llms/blocks/sign-in-block.md +64 -0
- package/llms/blocks/sign-up-block.md +78 -0
- package/llms/blocks/site-footer-block.md +96 -0
- package/llms/blocks/stat-row-block.md +59 -0
- package/llms/blocks/steps-block.md +73 -0
- package/llms/blocks/task-list-block.md +81 -0
- package/llms/blocks/team-members-block.md +91 -0
- package/llms/blocks/testimonial-block.md +78 -0
- package/llms/blocks/traffic-sources-block.md +63 -0
- package/llms/blocks/traffic-trend-block.md +95 -0
- package/llms/blocks/upload-list-block.md +66 -0
- package/llms/blocks/verify-code-block.md +59 -0
- package/llms/blocks/wallet-block.md +84 -0
- package/llms/components/area-chart.md +112 -0
- package/llms/components/bar-chart.md +131 -0
- package/llms/components/button.md +1 -1
- package/llms/components/card.md +2 -2
- package/llms/components/context-menu.md +1 -1
- package/llms/components/date-tile.md +79 -0
- package/llms/components/entity.md +4 -2
- package/llms/components/line-chart.md +101 -0
- package/llms/components/menu.md +1 -1
- package/llms/components/{dots-menu.md → overflow-menu.md} +9 -9
- package/llms/components/pie-chart.md +103 -0
- package/llms/components/radar-chart.md +106 -0
- package/llms/components/radial-chart.md +102 -0
- package/llms/components/segmented-bar.md +102 -0
- package/llms/components/settings-menu.md +2 -2
- package/llms/components/sparkline.md +80 -0
- package/llms/components/table.md +1 -1
- package/llms/patterns/auth-page.md +2 -2
- package/llms/patterns/dashboard-page.md +6 -7
- package/llms/patterns/feed-page.md +7 -7
- package/llms/patterns/list-detail-page.md +7 -15
- package/llms/patterns/settings-page.md +10 -21
- package/llms/tasks/building-an-ios-prototype.md +4 -1
- package/llms/tasks/choosing-a-component.md +2 -2
- package/llms-full.txt +4296 -277
- package/llms.txt +55 -3
- package/package.json +5 -1
- package/registry.json +6383 -3741
- package/targets/ios.json +90 -9
- package/dist/{chunk-L6Y46C62.js → chunk-MXJX3NZI.js} +1 -1
package/dist/icon/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Icon, IconProvider, composeIconSets, useIconSet } from '../chunk-
|
|
2
|
-
export { reiconIconSet as fallbackIconSet, reiconIconNames, reiconIconSet } from '../chunk-
|
|
1
|
+
export { Icon, IconProvider, composeIconSets, useIconSet } from '../chunk-NGBDP3BM.js';
|
|
2
|
+
export { reiconIconSet as fallbackIconSet, reiconIconNames, reiconIconSet } from '../chunk-TH563WLW.js';
|
package/dist/icon-sets/reicon.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { reiconIconNames, reiconIconSet } from '../chunk-
|
|
1
|
+
export { reiconIconNames, reiconIconSet } from '../chunk-TH563WLW.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
|
-
import { C as ComponentMeta } from './meta-
|
|
3
|
-
export { A as AnatomyMeta,
|
|
2
|
+
import { C as ComponentMeta } from './meta-CcE_SeFu.js';
|
|
3
|
+
export { A as AnatomyMeta, a as BestPracticeMeta, E as ExampleMeta, M as MotionMeta, b as MotionSlot, c as PropMeta, R as RelatedMeta, S as SubcomponentMeta, U as UsageMeta } from './meta-CcE_SeFu.js';
|
|
4
4
|
import { T as ThemeManifest, a as ThemeMode$1 } from './_contract-o3tUc8Ig.js';
|
|
5
5
|
export { D as DENSITY_TOKENS, b as DensityToken, M as MOTION_TOKENS, c as MotionToken, R as RADIUS_TOKENS, d as RadiusToken, S as SEMANTIC_TOKENS, e as SemanticToken, f as TYPE_OVERLINE_TOKENS, g as TYPE_REFINEMENT_TOKENS, h as TYPE_SCALE_TOKENS, i as TYPE_UI_TOKENS, j as TypeOverlineToken, k as TypeRefinementToken, l as TypeScaleToken, m as TypeUiToken, W as WORKSPACE_SURFACE_TOKENS, n as WorkspaceSurfaceToken } from './_contract-o3tUc8Ig.js';
|
|
6
6
|
import { T as ThemeId } from './theme-provider-BE-KqUG-.js';
|
|
@@ -122,7 +122,7 @@ declare const componentGuidance: Partial<Record<string, ComponentGuidance>>;
|
|
|
122
122
|
* reader scanning for "Selection" or "Status" knows where to look without
|
|
123
123
|
* knowing the system. A test keeps both lists sorted.
|
|
124
124
|
*/
|
|
125
|
-
declare const COMPONENT_GROUPS: readonly ["Actions", "Badges & pills", "Chat & AI", "Containers", "Data display", "Forms", "Layout", "Loading & progress", "Media & mockups", "Navigation", "Overlays", "Selection", "Status", "Text & code"];
|
|
125
|
+
declare const COMPONENT_GROUPS: readonly ["Actions", "Badges & pills", "Charts", "Chat & AI", "Containers", "Data display", "Forms", "Layout", "Loading & progress", "Media & mockups", "Navigation", "Overlays", "Selection", "Status", "Text & code"];
|
|
126
126
|
type ComponentGroup = (typeof COMPONENT_GROUPS)[number];
|
|
127
127
|
/** Which surface language a component speaks. */
|
|
128
128
|
type ComponentRegister = "page" | "workspace" | "either";
|
|
@@ -423,12 +423,23 @@ declare namespace Card {
|
|
|
423
423
|
}
|
|
424
424
|
declare function CardHeader({ className, ...props }: ComponentPropsWithRef<"div">): react.JSX.Element;
|
|
425
425
|
/**
|
|
426
|
-
* Header-aligned action slot — pins to the top-right of CardHeader (e.g.
|
|
427
|
-
*
|
|
426
|
+
* Header-aligned action slot — pins to the top-right of CardHeader (e.g. an
|
|
427
|
+
* overflow menu, close button, or switch). Place as a child of CardHeader.
|
|
428
428
|
*/
|
|
429
429
|
declare function CardAction({ className, ...props }: ComponentPropsWithRef<"div">): react.JSX.Element;
|
|
430
430
|
/** Title tier — a UI primitive title, not a document heading. */
|
|
431
|
-
|
|
431
|
+
interface CardTitleProps extends ComponentPropsWithRef<"div"> {
|
|
432
|
+
/**
|
|
433
|
+
* Render the title as another element — most often a heading, so a card's
|
|
434
|
+
* name joins the page outline: `render={<h2 />}`. The type tier stays.
|
|
435
|
+
*/
|
|
436
|
+
render?: useRender.RenderProp;
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* The card's name. A `<div>` by default, because a card's heading level depends
|
|
440
|
+
* on where the card sits; pass `render={<h2 />}` (or h3…) to make it a heading.
|
|
441
|
+
*/
|
|
442
|
+
declare function CardTitle({ className, render, ref, ...props }: CardTitleProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
|
|
432
443
|
declare function CardDescription({ className, ...props }: ComponentPropsWithRef<"p">): react.JSX.Element;
|
|
433
444
|
/**
|
|
434
445
|
* The body region. Full padding on all sides — CardContent does NOT assume a
|
|
@@ -1186,7 +1197,7 @@ declare const avatarVariants: (props?: ({
|
|
|
1186
1197
|
*/
|
|
1187
1198
|
declare const avatarGroupVariants: (props?: ({
|
|
1188
1199
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1189
|
-
surface?: "
|
|
1200
|
+
surface?: "card" | "background" | "popover" | "muted" | null | undefined;
|
|
1190
1201
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1191
1202
|
|
|
1192
1203
|
/**
|
|
@@ -1739,6 +1750,416 @@ declare const meterTrackVariants: (props?: ({
|
|
|
1739
1750
|
|
|
1740
1751
|
declare const meterMeta: ComponentMeta;
|
|
1741
1752
|
|
|
1753
|
+
/**
|
|
1754
|
+
* One segment's fill. The decorative tones lead, because a breakdown names
|
|
1755
|
+
* categories (kinds of sale, file types, teams), not good and bad; the status
|
|
1756
|
+
* tones are there for the breakdown that is a judgement (passed / flaky /
|
|
1757
|
+
* failed).
|
|
1758
|
+
*/
|
|
1759
|
+
declare const segmentedBarSegmentVariants: (props?: ({
|
|
1760
|
+
tone?: "primary" | "destructive" | "success" | "info" | "warning" | "neutral" | "standard" | "edition" | "collectible" | null | undefined;
|
|
1761
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1762
|
+
/** Bar thickness — the same three rails as Meter and Progress. */
|
|
1763
|
+
declare const segmentedBarVariants: (props?: ({
|
|
1764
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
1765
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1766
|
+
|
|
1767
|
+
type SegmentedBarTone = NonNullable<VariantProps<typeof segmentedBarSegmentVariants>["tone"]>;
|
|
1768
|
+
interface SegmentedBarSegment {
|
|
1769
|
+
/** The category's name — read out in the bar's accessible summary. */
|
|
1770
|
+
label: string;
|
|
1771
|
+
/** Its amount, in any unit; segments are sized by their share of the total. */
|
|
1772
|
+
value: number;
|
|
1773
|
+
/** Fill colour. Omitted, segments take the decorative tones in order. */
|
|
1774
|
+
tone?: SegmentedBarTone;
|
|
1775
|
+
}
|
|
1776
|
+
interface SegmentedBarProps extends Omit<ComponentPropsWithRef<"div">, "children" | "aria-label">, VariantProps<typeof segmentedBarVariants> {
|
|
1777
|
+
/** The categories, in the order they should read left to right. */
|
|
1778
|
+
segments: SegmentedBarSegment[];
|
|
1779
|
+
/** What the bar breaks down ("Revenue by type"). Prefixes the spoken summary. */
|
|
1780
|
+
label: string;
|
|
1781
|
+
/** BCP 47 locale for the spoken percentages. Defaults to the runtime's. */
|
|
1782
|
+
locale?: string;
|
|
1783
|
+
}
|
|
1784
|
+
/** The order segments take when they name no tone: the palette's decorative set first. */
|
|
1785
|
+
declare const SEGMENTED_BAR_TONES: readonly SegmentedBarTone[];
|
|
1786
|
+
/**
|
|
1787
|
+
* One bar split into the parts of a whole — revenue by type, storage by kind,
|
|
1788
|
+
* test results by outcome. `Meter` shows one reading against a range; this
|
|
1789
|
+
* shows how a total divides. The legend is yours to compose (a StatusDot, the
|
|
1790
|
+
* label and the share per row), because where it sits — under the bar, beside
|
|
1791
|
+
* it, in a table — depends on the card.
|
|
1792
|
+
*
|
|
1793
|
+
* The bar is one image to assistive tech, named by `label` and every
|
|
1794
|
+
* segment's share ("Revenue by type: Editions 42%, Collectibles 27%, …"), so a
|
|
1795
|
+
* legend that repeats it visually can stay out of the accessible reading.
|
|
1796
|
+
*/
|
|
1797
|
+
declare function SegmentedBar({ segments, label, locale, size, className, ...props }: SegmentedBarProps): react.JSX.Element;
|
|
1798
|
+
declare namespace SegmentedBar {
|
|
1799
|
+
var displayName: string;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
declare const segmentedBarMeta: ComponentMeta;
|
|
1803
|
+
|
|
1804
|
+
/**
|
|
1805
|
+
* How a line runs between its points. `smooth` is monotone — it never
|
|
1806
|
+
* overshoots a value the data does not contain, so a peak is drawn where it
|
|
1807
|
+
* is; `step` holds each value to the midpoint between categories.
|
|
1808
|
+
*/
|
|
1809
|
+
type ChartCurve = "smooth" | "linear" | "step";
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* A series colour by role. The decorative tones lead — a chart names
|
|
1813
|
+
* categories (desktop / mobile, editions / collectibles), not good and bad —
|
|
1814
|
+
* and they follow the active theme and Customize → Color → Palette. The
|
|
1815
|
+
* status tones are for a series that IS a judgement (errors, warnings).
|
|
1816
|
+
*/
|
|
1817
|
+
type ChartTone = "edition" | "collectible" | "standard" | "info" | "warning" | "primary" | "neutral" | "success" | "destructive";
|
|
1818
|
+
/** How many series colours the palette holds (--chart-1 … --chart-8). */
|
|
1819
|
+
declare const CHART_SERIES_COUNT = 8;
|
|
1820
|
+
/**
|
|
1821
|
+
* The colour of series `index` when it names none: the theme's chart palette,
|
|
1822
|
+
* in order. The palette (`--chart-1` … `--chart-8`, defined by the Base theme
|
|
1823
|
+
* and inherited by every other) is validated for colour-blind separation of
|
|
1824
|
+
* neighbours, a normal-vision floor, a lightness band and a chroma floor, in
|
|
1825
|
+
* light and dark. Past eight series, fold the rest into "Other".
|
|
1826
|
+
*
|
|
1827
|
+
* Also the bridge for a charting library: pass `chartColor(0)` and on to
|
|
1828
|
+
* Recharts or visx and their marks follow the theme too.
|
|
1829
|
+
*/
|
|
1830
|
+
declare function chartColor(index: number): string;
|
|
1831
|
+
/**
|
|
1832
|
+
* The CSS colour for a tone as a chart fill — for a series that names its role
|
|
1833
|
+
* (`tone: "success"`), not for default series (see chartColor). Tones are
|
|
1834
|
+
* tuned to be legible as TEXT (dark, restrained); a plotted mark keeps the hue
|
|
1835
|
+
* but is lifted into the chart lightness band with a chroma floor, so a quiet
|
|
1836
|
+
* tone (a slate "standard") still reads as colour rather than grey.
|
|
1837
|
+
*/
|
|
1838
|
+
declare function toneColor(tone: ChartTone): string;
|
|
1839
|
+
/** One plotted measure: which field of each datum, what to call it, how to colour it. */
|
|
1840
|
+
interface ChartSeries {
|
|
1841
|
+
/** The datum field holding this series' numbers. */
|
|
1842
|
+
key: string;
|
|
1843
|
+
/** Its name in the legend, tooltip and data table. */
|
|
1844
|
+
label: string;
|
|
1845
|
+
/** Colour by role (a status series: `success`, `destructive`). Omitted, series take the chart palette in order. */
|
|
1846
|
+
tone?: ChartTone;
|
|
1847
|
+
/** A CSS colour that overrides `tone` — a token reference keeps it themeable. */
|
|
1848
|
+
color?: string;
|
|
1849
|
+
/** A Sable icon name shown in the legend and tooltip instead of the swatch. */
|
|
1850
|
+
icon?: string;
|
|
1851
|
+
}
|
|
1852
|
+
/** One row of chart data: the category under `index`, numbers under each series key. */
|
|
1853
|
+
type ChartDatum = Record<string, unknown>;
|
|
1854
|
+
/**
|
|
1855
|
+
* Per-category styling for charts whose marks ARE categories (pie slices,
|
|
1856
|
+
* radial rings): keyed by the category's value in the data.
|
|
1857
|
+
*/
|
|
1858
|
+
type ChartCategories = Record<string, {
|
|
1859
|
+
label?: string;
|
|
1860
|
+
tone?: ChartTone;
|
|
1861
|
+
color?: string;
|
|
1862
|
+
icon?: string;
|
|
1863
|
+
}>;
|
|
1864
|
+
/** A big number with a caption in the middle of a donut or radial chart. */
|
|
1865
|
+
interface ChartCenterLabel {
|
|
1866
|
+
value: string;
|
|
1867
|
+
label?: string;
|
|
1868
|
+
}
|
|
1869
|
+
/** How the tooltip marks each row. */
|
|
1870
|
+
type ChartTooltipIndicator = "dot" | "line" | "dashed" | "none";
|
|
1871
|
+
interface ChartTooltipOptions {
|
|
1872
|
+
/** Each row's marker. @default "dot" */
|
|
1873
|
+
indicator?: ChartTooltipIndicator;
|
|
1874
|
+
/** Drop the category heading — for a single series, where the value says enough. */
|
|
1875
|
+
hideLabel?: boolean;
|
|
1876
|
+
/** Rewrite the heading, e.g. a date key into "Tuesday, Oct 14". */
|
|
1877
|
+
labelFormatter?: (label: string, datum: ChartDatum) => ReactNode;
|
|
1878
|
+
/** Add a Total row summing every series at that category. */
|
|
1879
|
+
showTotal?: boolean;
|
|
1880
|
+
}
|
|
1881
|
+
/** A number as it should read on the axis (compact) and in the tooltip (full). */
|
|
1882
|
+
type ChartValueFormatter = (value: number) => string;
|
|
1883
|
+
|
|
1884
|
+
/** Props every cartesian chart (area, bar, line) shares. */
|
|
1885
|
+
interface CartesianBaseProps {
|
|
1886
|
+
/** The rows to plot, in order along the category axis. */
|
|
1887
|
+
data: ChartDatum[];
|
|
1888
|
+
/** The datum field naming each row's category (a month, a day, a channel). */
|
|
1889
|
+
index: string;
|
|
1890
|
+
/** The measures to plot, with labels and colours. */
|
|
1891
|
+
series: ChartSeries[];
|
|
1892
|
+
/** What the chart shows — its accessible name and the data table's caption. */
|
|
1893
|
+
label: string;
|
|
1894
|
+
className?: string;
|
|
1895
|
+
/** Format values on the axis, in labels, the tooltip and the data table. Default: compact on the axis, full elsewhere. */
|
|
1896
|
+
valueFormatter?: ChartValueFormatter;
|
|
1897
|
+
/** Format category labels on the axis ("January" → "Jan"). The tooltip keeps the full value. */
|
|
1898
|
+
indexFormatter?: (value: string) => string;
|
|
1899
|
+
/** BCP 47 locale for default number and date formatting. */
|
|
1900
|
+
locale?: string;
|
|
1901
|
+
/** Show a tooltip on hover and keyboard focus, or pass options. @default true */
|
|
1902
|
+
tooltip?: boolean | ChartTooltipOptions;
|
|
1903
|
+
/** Show the legend. @default true when there is more than one series */
|
|
1904
|
+
legend?: boolean;
|
|
1905
|
+
/** Hairline gridlines along the value axis. @default true (false for horizontal bars) */
|
|
1906
|
+
grid?: boolean;
|
|
1907
|
+
/** The horizontal axis. @default true for categories (columns), false for values (horizontal bars) */
|
|
1908
|
+
xAxis?: boolean;
|
|
1909
|
+
/** The vertical axis. @default false for values (columns), true for categories (horizontal bars) */
|
|
1910
|
+
yAxis?: boolean;
|
|
1911
|
+
/** Play the arrival when the chart scrolls into view. @default true */
|
|
1912
|
+
animate?: boolean;
|
|
1913
|
+
/** The highlighted row (controlled). `null` for none. */
|
|
1914
|
+
activeIndex?: number | null;
|
|
1915
|
+
/** The row highlighted at first — a tooltip that is open before anyone hovers. */
|
|
1916
|
+
defaultActiveIndex?: number | null;
|
|
1917
|
+
onActiveIndexChange?: (index: number | null) => void;
|
|
1918
|
+
}
|
|
1919
|
+
|
|
1920
|
+
interface AreaChartProps extends CartesianBaseProps {
|
|
1921
|
+
/** How the line runs between points. `smooth` never overshoots the data. @default "smooth" */
|
|
1922
|
+
curve?: ChartCurve;
|
|
1923
|
+
/** Stack the series on each other, or `"expand"` to show each category as 100%. @default false */
|
|
1924
|
+
stacked?: boolean | "expand";
|
|
1925
|
+
/** Fill each area with a fade from its colour to transparent instead of a flat tint. @default false */
|
|
1926
|
+
gradient?: boolean;
|
|
1927
|
+
}
|
|
1928
|
+
/**
|
|
1929
|
+
* A trend over a sequence (days, months), filled to the baseline — volume over
|
|
1930
|
+
* time at a glance. Series overlap as translucent tints, or stack to show a
|
|
1931
|
+
* total and its parts. The line draws on and the fill rises when the chart
|
|
1932
|
+
* scrolls into view; changing data eases the shape from old to new.
|
|
1933
|
+
*/
|
|
1934
|
+
declare function AreaChart(props: AreaChartProps): react.JSX.Element;
|
|
1935
|
+
declare namespace AreaChart {
|
|
1936
|
+
var displayName: string;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
declare const areaChartMeta: ComponentMeta;
|
|
1940
|
+
|
|
1941
|
+
interface BarChartProps extends CartesianBaseProps {
|
|
1942
|
+
/** `vertical` columns rise from the bottom; `horizontal` bars run from the left, for long category names. @default "vertical" */
|
|
1943
|
+
orientation?: "vertical" | "horizontal";
|
|
1944
|
+
/** Stack the series in one bar, or `"expand"` to show each category as 100%. Unstacked series sit side by side. @default false */
|
|
1945
|
+
stacked?: boolean | "expand";
|
|
1946
|
+
/** Print each bar's value at its end, or (`"inside"`, horizontal) the category inside the bar too. @default false */
|
|
1947
|
+
labels?: boolean | "inside";
|
|
1948
|
+
/** Colour by series, or give each category its own tone (one series). @default "series" */
|
|
1949
|
+
colorBy?: "series" | "index";
|
|
1950
|
+
/** Colour negative values with this tone, so losses read apart from gains. */
|
|
1951
|
+
negativeTone?: ChartTone;
|
|
1952
|
+
/** Corner radius of each bar's far end, in px. Stacks round only the outer segment. @default 4 */
|
|
1953
|
+
radius?: number;
|
|
1954
|
+
/** Maximum thickness of a bar, in px — the band's leftover is air, not a fatter bar. Raise it for a bolder, presentation look. @default 24 */
|
|
1955
|
+
barWidth?: number;
|
|
1956
|
+
}
|
|
1957
|
+
/**
|
|
1958
|
+
* Bars comparing amounts across categories — the default chart for "how much
|
|
1959
|
+
* of each". Grouped, stacked, 100% stacked, horizontal, labelled or diverging
|
|
1960
|
+
* around zero. Bars rise from the baseline in sequence as the chart scrolls
|
|
1961
|
+
* into view; changing data eases each bar to its new length.
|
|
1962
|
+
*/
|
|
1963
|
+
declare function BarChart(props: BarChartProps): react.JSX.Element;
|
|
1964
|
+
declare namespace BarChart {
|
|
1965
|
+
var displayName: string;
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
declare const barChartMeta: ComponentMeta;
|
|
1969
|
+
|
|
1970
|
+
interface LineChartProps extends CartesianBaseProps {
|
|
1971
|
+
/** How the line runs between points. `smooth` never overshoots the data. @default "smooth" */
|
|
1972
|
+
curve?: ChartCurve;
|
|
1973
|
+
/** Mark every data point with a dot. @default false */
|
|
1974
|
+
dots?: boolean;
|
|
1975
|
+
/** Colour the dots by series, or each by its category. @default "series" */
|
|
1976
|
+
colorBy?: "series" | "index";
|
|
1977
|
+
/** Print each point's value above it. @default false */
|
|
1978
|
+
labels?: boolean;
|
|
1979
|
+
}
|
|
1980
|
+
/**
|
|
1981
|
+
* Lines over a sequence — for comparing how two or more measures move, where
|
|
1982
|
+
* fills would pile up. Lines draw on as the chart scrolls into view; changing
|
|
1983
|
+
* data eases each line from old to new.
|
|
1984
|
+
*/
|
|
1985
|
+
declare function LineChart(props: LineChartProps): react.JSX.Element;
|
|
1986
|
+
declare namespace LineChart {
|
|
1987
|
+
var displayName: string;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
declare const lineChartMeta: ComponentMeta;
|
|
1991
|
+
|
|
1992
|
+
interface PieChartProps {
|
|
1993
|
+
/** One row per slice. */
|
|
1994
|
+
data: ChartDatum[];
|
|
1995
|
+
/** The datum field naming each slice. */
|
|
1996
|
+
index: string;
|
|
1997
|
+
/** The datum field holding each slice's amount — or several fields, drawn as concentric rings (outer first). */
|
|
1998
|
+
valueKey: string | string[];
|
|
1999
|
+
/** What the chart shows — its accessible name and the data table's caption. */
|
|
2000
|
+
label: string;
|
|
2001
|
+
/** Labels, tones and icons per slice, keyed by the slice's name. Unlisted slices take the tones in order. */
|
|
2002
|
+
categories?: ChartCategories;
|
|
2003
|
+
className?: string;
|
|
2004
|
+
/** Cut out the middle: `true` for a ring at 60% of the radius, or a ratio (0–0.9). @default false */
|
|
2005
|
+
donut?: boolean | number;
|
|
2006
|
+
/** A value and caption in the hole of a donut — the total, or the headline slice. */
|
|
2007
|
+
centerLabel?: ChartCenterLabel;
|
|
2008
|
+
/** A hairline in the surface colour between slices. @default true */
|
|
2009
|
+
separator?: boolean;
|
|
2010
|
+
/** Label each slice outside the pie or inside it. @default "none" */
|
|
2011
|
+
labels?: "none" | "outside" | "inside";
|
|
2012
|
+
/** What a slice label says. @default "value" */
|
|
2013
|
+
labelContent?: "value" | "percent" | "name";
|
|
2014
|
+
/** Show the legend. @default true unless slices are labelled */
|
|
2015
|
+
legend?: boolean;
|
|
2016
|
+
/** Show a tooltip on hover and keyboard focus, or pass options. @default true */
|
|
2017
|
+
tooltip?: boolean | ChartTooltipOptions;
|
|
2018
|
+
valueFormatter?: ChartValueFormatter;
|
|
2019
|
+
locale?: string;
|
|
2020
|
+
/** Sweep the slices in clockwise when the chart scrolls into view. @default true */
|
|
2021
|
+
animate?: boolean;
|
|
2022
|
+
/** The pulled-out slice (controlled). */
|
|
2023
|
+
activeIndex?: number | null;
|
|
2024
|
+
/** The slice pulled out at first — the one the caption is about. */
|
|
2025
|
+
defaultActiveIndex?: number | null;
|
|
2026
|
+
onActiveIndexChange?: (index: number | null) => void;
|
|
2027
|
+
}
|
|
2028
|
+
/**
|
|
2029
|
+
* Parts of a whole as slices — share of traffic, budget split, survey answers.
|
|
2030
|
+
* Best with two to six slices; past that, a BarChart compares more honestly.
|
|
2031
|
+
* A donut leaves room in the middle for the total. The slices sweep in
|
|
2032
|
+
* clockwise from 12 o'clock as the chart scrolls into view, and the active
|
|
2033
|
+
* slice pulls outward.
|
|
2034
|
+
*/
|
|
2035
|
+
declare function PieChart({ data, index, valueKey, label, categories, className, donut, centerLabel, separator, labels, labelContent, legend, tooltip, valueFormatter, locale, animate, activeIndex, defaultActiveIndex, onActiveIndexChange, }: PieChartProps): react.JSX.Element;
|
|
2036
|
+
declare namespace PieChart {
|
|
2037
|
+
var displayName: string;
|
|
2038
|
+
}
|
|
2039
|
+
|
|
2040
|
+
declare const pieChartMeta: ComponentMeta;
|
|
2041
|
+
|
|
2042
|
+
interface RadarChartProps {
|
|
2043
|
+
/** One row per spoke (a skill, a month, a dimension). */
|
|
2044
|
+
data: ChartDatum[];
|
|
2045
|
+
/** The datum field naming each spoke. */
|
|
2046
|
+
index: string;
|
|
2047
|
+
/** The measures drawn as polygons. */
|
|
2048
|
+
series: ChartSeries[];
|
|
2049
|
+
/** What the chart shows — its accessible name and the data table's caption. */
|
|
2050
|
+
label: string;
|
|
2051
|
+
className?: string;
|
|
2052
|
+
/** The web behind the polygons: straight rings, round rings, or none. @default "polygon" */
|
|
2053
|
+
grid?: "polygon" | "circle" | "none";
|
|
2054
|
+
/** Tint the web's outer ring. @default false */
|
|
2055
|
+
gridFill?: boolean;
|
|
2056
|
+
/** Fill each polygon; `false` draws outlines only. @default true */
|
|
2057
|
+
filled?: boolean;
|
|
2058
|
+
/** Mark every vertex with a dot. @default false */
|
|
2059
|
+
dots?: boolean;
|
|
2060
|
+
/** Print the ring values along the top spoke. @default false */
|
|
2061
|
+
radiusAxis?: boolean;
|
|
2062
|
+
/** Show the legend. @default true when there is more than one series */
|
|
2063
|
+
legend?: boolean;
|
|
2064
|
+
/** Show a tooltip on hover and keyboard focus, or pass options. @default true */
|
|
2065
|
+
tooltip?: boolean | ChartTooltipOptions;
|
|
2066
|
+
valueFormatter?: ChartValueFormatter;
|
|
2067
|
+
locale?: string;
|
|
2068
|
+
/** Grow the polygons from the centre when the chart scrolls into view. @default true */
|
|
2069
|
+
animate?: boolean;
|
|
2070
|
+
activeIndex?: number | null;
|
|
2071
|
+
defaultActiveIndex?: number | null;
|
|
2072
|
+
onActiveIndexChange?: (index: number | null) => void;
|
|
2073
|
+
}
|
|
2074
|
+
/**
|
|
2075
|
+
* Several measures compared around a centre — a profile's shape at a glance
|
|
2076
|
+
* (skills, product scores, a month-by-month cycle). Best with five to eight
|
|
2077
|
+
* spokes and one to three series. Polygons grow out from the centre as the
|
|
2078
|
+
* chart scrolls into view.
|
|
2079
|
+
*/
|
|
2080
|
+
declare function RadarChart({ data, index, series: rawSeries, label, className, grid, gridFill, filled, dots, radiusAxis, legend, tooltip, valueFormatter, locale, animate, activeIndex, defaultActiveIndex, onActiveIndexChange, }: RadarChartProps): react.JSX.Element;
|
|
2081
|
+
declare namespace RadarChart {
|
|
2082
|
+
var displayName: string;
|
|
2083
|
+
}
|
|
2084
|
+
|
|
2085
|
+
declare const radarChartMeta: ComponentMeta;
|
|
2086
|
+
|
|
2087
|
+
interface RadialChartProps {
|
|
2088
|
+
/** One row per ring, outermost first. */
|
|
2089
|
+
data: ChartDatum[];
|
|
2090
|
+
/** The datum field naming each ring. */
|
|
2091
|
+
index: string;
|
|
2092
|
+
/** The datum field holding each ring's amount. */
|
|
2093
|
+
valueKey: string;
|
|
2094
|
+
/** What the chart shows — its accessible name and the data table's caption. */
|
|
2095
|
+
label: string;
|
|
2096
|
+
/** Labels, tones and icons per ring, keyed by the ring's name. Unlisted rings take the tones in order. */
|
|
2097
|
+
categories?: ChartCategories;
|
|
2098
|
+
className?: string;
|
|
2099
|
+
/** The value a full ring stands for. @default the largest value */
|
|
2100
|
+
max?: number;
|
|
2101
|
+
/** How far round a full ring runs, in degrees: 360 for a circle, 180 for a gauge. @default 360 */
|
|
2102
|
+
sweep?: number;
|
|
2103
|
+
/** Stack every row along ONE ring (a split gauge) instead of a ring each. @default false */
|
|
2104
|
+
stacked?: boolean;
|
|
2105
|
+
/** Draw each ring's full track behind it in the muted surface. @default true */
|
|
2106
|
+
track?: boolean;
|
|
2107
|
+
/** Name each ring at its start. @default false */
|
|
2108
|
+
labels?: boolean;
|
|
2109
|
+
/** A value and caption in the middle — the total, or the headline ring. */
|
|
2110
|
+
centerLabel?: ChartCenterLabel;
|
|
2111
|
+
/** Show the legend. @default true unless rings are labelled */
|
|
2112
|
+
legend?: boolean;
|
|
2113
|
+
/** Show a tooltip on hover and keyboard focus, or pass options. @default true */
|
|
2114
|
+
tooltip?: boolean | ChartTooltipOptions;
|
|
2115
|
+
valueFormatter?: ChartValueFormatter;
|
|
2116
|
+
locale?: string;
|
|
2117
|
+
/** Draw the rings round from their start when the chart scrolls into view. @default true */
|
|
2118
|
+
animate?: boolean;
|
|
2119
|
+
activeIndex?: number | null;
|
|
2120
|
+
defaultActiveIndex?: number | null;
|
|
2121
|
+
onActiveIndexChange?: (index: number | null) => void;
|
|
2122
|
+
}
|
|
2123
|
+
/**
|
|
2124
|
+
* Progress or share drawn as rings — goals met, plan usage, a score. One ring
|
|
2125
|
+
* per row (outermost first), each against a muted track; `sweep={180}` makes a
|
|
2126
|
+
* gauge and `stacked` splits one ring between rows. Rings draw round from 12
|
|
2127
|
+
* o'clock (or the gauge's left) as the chart scrolls into view.
|
|
2128
|
+
*/
|
|
2129
|
+
declare function RadialChart({ data, index, valueKey, label, categories, className, max, sweep, stacked, track, labels, centerLabel, legend, tooltip, valueFormatter, locale, animate, activeIndex, defaultActiveIndex, onActiveIndexChange, }: RadialChartProps): react.JSX.Element;
|
|
2130
|
+
declare namespace RadialChart {
|
|
2131
|
+
var displayName: string;
|
|
2132
|
+
}
|
|
2133
|
+
|
|
2134
|
+
declare const radialChartMeta: ComponentMeta;
|
|
2135
|
+
|
|
2136
|
+
interface SparklineProps extends Omit<ComponentPropsWithRef<"svg">, "children" | "aria-label"> {
|
|
2137
|
+
/** The values, oldest first. */
|
|
2138
|
+
data: number[];
|
|
2139
|
+
/** What the line tracks ("Revenue, last 30 days"). The spoken summary adds the range and latest value. */
|
|
2140
|
+
label: string;
|
|
2141
|
+
/** A line, a line over a soft fill, or columns. @default "line" */
|
|
2142
|
+
variant?: "line" | "area" | "bar";
|
|
2143
|
+
/** Colour by role. @default "primary" */
|
|
2144
|
+
tone?: ChartTone;
|
|
2145
|
+
/** Draw on (or rise) when it scrolls into view. @default true */
|
|
2146
|
+
animate?: boolean;
|
|
2147
|
+
/** BCP 47 locale for the spoken numbers. */
|
|
2148
|
+
locale?: string;
|
|
2149
|
+
}
|
|
2150
|
+
/**
|
|
2151
|
+
* A word-sized chart: the shape of a trend with no axes, inside a stat card,
|
|
2152
|
+
* a table cell or a sentence. Sized by className (h-8 w-24 by default) and
|
|
2153
|
+
* stretched to fit, so it follows its container. For values a reader needs
|
|
2154
|
+
* to look up, use AreaChart or LineChart.
|
|
2155
|
+
*/
|
|
2156
|
+
declare function Sparkline({ data, label, variant, tone, animate, locale, className, ...props }: SparklineProps): react.JSX.Element;
|
|
2157
|
+
declare namespace Sparkline {
|
|
2158
|
+
var displayName: string;
|
|
2159
|
+
}
|
|
2160
|
+
|
|
2161
|
+
declare const sparklineMeta: ComponentMeta;
|
|
2162
|
+
|
|
1742
2163
|
type StepStatus = "complete" | "current" | "upcoming" | "error";
|
|
1743
2164
|
type StepperOrientation = "horizontal" | "vertical";
|
|
1744
2165
|
type StepperIndicator = "number" | "dot";
|
|
@@ -2645,6 +3066,30 @@ declare namespace Calendar {
|
|
|
2645
3066
|
|
|
2646
3067
|
declare const calendarMeta: ComponentMeta;
|
|
2647
3068
|
|
|
3069
|
+
interface DateTileProps extends Omit<ComponentPropsWithRef<"time">, "children" | "dateTime"> {
|
|
3070
|
+
/** The day to show. Read in local time — the tile names a calendar day, not an instant. */
|
|
3071
|
+
date: Date;
|
|
3072
|
+
/** BCP 47 locale for the month name. Defaults to the runtime's. */
|
|
3073
|
+
locale?: string;
|
|
3074
|
+
}
|
|
3075
|
+
/**
|
|
3076
|
+
* A calendar-page date: the month on a primary band over the day number. The
|
|
3077
|
+
* leading visual of an event, booking or deadline row — where a date is the
|
|
3078
|
+
* thing you scan for, not a detail in a sentence (that is `RelativeTime`, or
|
|
3079
|
+
* plain text).
|
|
3080
|
+
*
|
|
3081
|
+
* The corner follows the look up to a cap: past about the band's own height,
|
|
3082
|
+
* the curve starts cutting into the band and its text. `h-fit`, because the
|
|
3083
|
+
* tile usually sits in a flex row beside two lines of text and must not
|
|
3084
|
+
* stretch to their height.
|
|
3085
|
+
*/
|
|
3086
|
+
declare function DateTile({ date, locale, className, ...props }: DateTileProps): react.JSX.Element;
|
|
3087
|
+
declare namespace DateTile {
|
|
3088
|
+
var displayName: string;
|
|
3089
|
+
}
|
|
3090
|
+
|
|
3091
|
+
declare const dateTileMeta: ComponentMeta;
|
|
3092
|
+
|
|
2648
3093
|
/**
|
|
2649
3094
|
* The trigger attributes a `Field` (or a hand-rolled label) wires onto its
|
|
2650
3095
|
* control. Forwarded to the trigger button, so `<Field label=…><DatePicker /></Field>`
|
|
@@ -4508,22 +4953,6 @@ interface SidebarProps extends ComponentPropsWithRef<"aside"> {
|
|
|
4508
4953
|
*/
|
|
4509
4954
|
variant?: "app" | "inline";
|
|
4510
4955
|
}
|
|
4511
|
-
/**
|
|
4512
|
-
* Sidebar — the desktop side-navigation rail. An in-flow sticky column, hidden
|
|
4513
|
-
* below `lg` (where the mobile AppHeader + BottomNav take over). Compose a brand
|
|
4514
|
-
* header, a scrollable nav, and a bottom-anchored footer:
|
|
4515
|
-
*
|
|
4516
|
-
* <Sidebar collapsed={collapsed}>
|
|
4517
|
-
* <SidebarHeader>{brand}</SidebarHeader>
|
|
4518
|
-
* <SidebarNav>
|
|
4519
|
-
* <SidebarItem icon={<Icon name="home" />} label="Home" active render={<Link to="/" />} />
|
|
4520
|
-
* </SidebarNav>
|
|
4521
|
-
* <SidebarFooter>{walletTrigger}</SidebarFooter>
|
|
4522
|
-
* </Sidebar>
|
|
4523
|
-
*
|
|
4524
|
-
* Width is the `--sidebar-width` token (16rem), or `--sidebar-width-collapsed`
|
|
4525
|
-
* (4rem) when `collapsed`; colors are the `--sidebar-*` set.
|
|
4526
|
-
*/
|
|
4527
4956
|
declare function Sidebar({ collapsed, icons, variant, className, children, ...props }: SidebarProps): react.JSX.Element;
|
|
4528
4957
|
declare namespace Sidebar {
|
|
4529
4958
|
var displayName: string;
|
|
@@ -5209,9 +5638,16 @@ interface EntityBaseProps extends VariantProps<typeof entityVariants> {
|
|
|
5209
5638
|
type EntityProps = EntityBaseProps & Omit<ComponentPropsWithRef<"div">, "title" | "onSelect"> & ({
|
|
5210
5639
|
interactive?: false;
|
|
5211
5640
|
onSelect?: never;
|
|
5641
|
+
selected?: never;
|
|
5212
5642
|
} | {
|
|
5213
5643
|
interactive: true;
|
|
5214
5644
|
onSelect: () => void;
|
|
5645
|
+
/**
|
|
5646
|
+
* The current row of a selectable list (the open record in a
|
|
5647
|
+
* list–detail view): the row's button gets `aria-current="true"` and
|
|
5648
|
+
* the row takes the selected fill, which also holds on hover.
|
|
5649
|
+
*/
|
|
5650
|
+
selected?: boolean;
|
|
5215
5651
|
});
|
|
5216
5652
|
/**
|
|
5217
5653
|
* Entity — a list-row record: a leading visual, a title/subtitle column, and a
|
|
@@ -5219,7 +5655,8 @@ type EntityProps = EntityBaseProps & Omit<ComponentPropsWithRef<"div">, "title"
|
|
|
5219
5655
|
* row never advertises clickability. The center column is `min-w-0` so both
|
|
5220
5656
|
* lines truncate cleanly.
|
|
5221
5657
|
*
|
|
5222
|
-
* Pass `interactive` + `onSelect` to make the entire row a target
|
|
5658
|
+
* Pass `interactive` + `onSelect` to make the entire row a target, and
|
|
5659
|
+
* `selected` to mark the current row of a selectable list. The leading
|
|
5223
5660
|
* visual and the text column become a real `<button>` (native focus, Enter and
|
|
5224
5661
|
* Space), whose `::after` is stretched over the whole row so a click anywhere
|
|
5225
5662
|
* selects it. The trailing `action` stays OUTSIDE that button and is lifted above
|
|
@@ -5229,7 +5666,7 @@ type EntityProps = EntityBaseProps & Omit<ComponentPropsWithRef<"div">, "title"
|
|
|
5229
5666
|
* <Entity interactive onSelect={() => select(user)}
|
|
5230
5667
|
* leading={<Avatar fallback="AM" />} title="Alex Morgan" subtitle="@alex" />
|
|
5231
5668
|
*/
|
|
5232
|
-
declare function Entity({ leading, title, subtitle, action, density, className, interactive, onSelect, ...props }: EntityProps): react.JSX.Element;
|
|
5669
|
+
declare function Entity({ leading, title, subtitle, action, density, className, interactive, onSelect, selected, ...props }: EntityProps): react.JSX.Element;
|
|
5233
5670
|
declare namespace Entity {
|
|
5234
5671
|
var displayName: string;
|
|
5235
5672
|
}
|
|
@@ -5697,7 +6134,7 @@ declare namespace CommandMenuTrigger {
|
|
|
5697
6134
|
declare const commandMenuMeta: ComponentMeta;
|
|
5698
6135
|
|
|
5699
6136
|
type MenuContentProps = ComponentProps<typeof MenuContent>;
|
|
5700
|
-
interface
|
|
6137
|
+
interface OverflowMenuProps {
|
|
5701
6138
|
/** The menu rows — MenuItem / MenuSeparator / MenuGroup, etc. */
|
|
5702
6139
|
children: ReactNode;
|
|
5703
6140
|
/** Alignment of the popup along its side. @default "end" */
|
|
@@ -5715,26 +6152,26 @@ interface DotsMenuProps {
|
|
|
5715
6152
|
size?: "icon" | "icon-sm" | "icon-xs";
|
|
5716
6153
|
}
|
|
5717
6154
|
/**
|
|
5718
|
-
*
|
|
6155
|
+
* OverflowMenu — the "more actions" icon button that opens a Menu. A thin composition
|
|
5719
6156
|
* over our own Menu + Button + Icon: pass MenuItems as children and it wires the
|
|
5720
6157
|
* ghost icon trigger, accessible label, and portal-rendered content for you.
|
|
5721
6158
|
*
|
|
5722
|
-
* <
|
|
6159
|
+
* <OverflowMenu label="Post actions">
|
|
5723
6160
|
* <MenuItem>Edit</MenuItem>
|
|
5724
6161
|
* <MenuItem>Share</MenuItem>
|
|
5725
6162
|
* <MenuSeparator />
|
|
5726
6163
|
* <MenuItem variant="destructive">Delete</MenuItem>
|
|
5727
|
-
* </
|
|
6164
|
+
* </OverflowMenu>
|
|
5728
6165
|
*
|
|
5729
6166
|
* All Base UI menu behavior (roving focus, typeahead, Esc/outside dismissal)
|
|
5730
6167
|
* comes through Menu; this component only owns the trigger affordance.
|
|
5731
6168
|
*/
|
|
5732
|
-
declare function
|
|
5733
|
-
declare namespace
|
|
6169
|
+
declare function OverflowMenu({ children, align, label, icon, size, }: OverflowMenuProps): react.JSX.Element;
|
|
6170
|
+
declare namespace OverflowMenu {
|
|
5734
6171
|
var displayName: string;
|
|
5735
6172
|
}
|
|
5736
6173
|
|
|
5737
|
-
declare const
|
|
6174
|
+
declare const overflowMenuMeta: ComponentMeta;
|
|
5738
6175
|
|
|
5739
6176
|
/**
|
|
5740
6177
|
* ContextCard — a themed rich hover/preview card over Base UI's PreviewCard
|
|
@@ -7062,6 +7499,6 @@ interface UseCopyResult {
|
|
|
7062
7499
|
*/
|
|
7063
7500
|
declare function useCopy(text: string, { timeout }?: UseCopyOptions): UseCopyResult;
|
|
7064
7501
|
|
|
7065
|
-
declare const SABLE_UI_VERSION: "0.
|
|
7502
|
+
declare const SABLE_UI_VERSION: "0.3.1";
|
|
7066
7503
|
|
|
7067
|
-
export { Accordion, AccordionItem, AccordionPanel, AccordionTrigger, AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogTitle, AlertDialogTrigger, AppHeader, type AppHeaderProps, AppShell, type AppShellProps, Attachment, type AttachmentProps, Avatar, AvatarFallback, AvatarGroup, AvatarGroupCount, type AvatarGroupCountProps, type AvatarGroupProps, AvatarImage, type AvatarProps, AvatarRoot, BADGE_APPEARANCES, BADGE_TONES, Badge, type BadgeAppearance, type BadgeProps, type BadgeTone, Banner, type BannerProps, BottomNav, BottomNavItem, type BottomNavItemProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbPage, type BreadcrumbPageProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Breadcrumbs, type BreadcrumbsProps, Browser, type BrowserProps, Bubble, type BubbleProps, BubbleReaction, type BubbleReactionProps, BubbleReactions, type BubbleReactionsProps, Button, type ButtonProps, COMPONENT_GROUPS, COMPONENT_TAXONOMY, Calendar, type CalendarProps, Card, CardAction, CardContent, type CardContentProps, CardDescription, CardFooter, CardHeader, CardList, type CardProps, CardTitle, Carousel, type CarouselProps, type CarouselSlidesToShow, ChatComposer, type ChatComposerProps, Checkbox, CheckboxCard, type CheckboxCardProps, type CheckboxCardTone, CheckboxGroup, type CheckboxGroupProps, Code, CodeBlock, type CodeBlockProps, CodeHighlightProvider, type CodeHighlighter, type CodeProps, Collapsible, CollapsibleIndicator, CollapsiblePanel, CollapsibleTrigger, ColorField, type ColorFieldProps, Combobox, ComboboxChips, ComboboxClear, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, type ComboboxItemGroup, ComboboxItemIndicator, ComboboxList, ComboboxPortal, type ComboboxProps, ComboboxValue, ComboboxVirtualList, type ComboboxVirtualListProps, type CommandFilter, type CommandItem, CommandMenu, CommandMenuGroup, type CommandMenuGroupProps, CommandMenuItem, type CommandMenuItemProps, CommandMenuPanel, type CommandMenuPanelProps, type CommandMenuProps, CommandMenuTrigger, type CommandMenuTriggerProps, type ComponentGroup, type ComponentGuidance, ComponentMeta, type ComponentRegister, ContextCard, ContextCardArrow, ContextCardContent, ContextCardPortal, ContextCardTrigger, ContextMenu, ContextMenuContent, ContextMenuGroup, ContextMenuGroupLabel, ContextMenuItem, ContextMenuPortal, ContextMenuSeparator, ContextMenuTrigger, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, Density, DensityProvider, Density as DensityValue, DestructiveActionModal, type DestructiveActionModalProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, type DialogSize, DialogTitle, DialogTrigger, DotsMenu, type DotsMenuProps, EmptyState, type EmptyStateProps, Entity, type EntityProps, Feedback, type FeedbackData, type FeedbackProps, type FeedbackRating, Field, type FieldProps, Fieldset, FieldsetContent, FieldsetDescription, FieldsetFooter, FieldsetLegend, FileDropzone, type FileDropzoneProps, type FileRejection, type FileRejectionCode, Form, type FormProps, GlidingHighlight, type GlidingHighlightProps, type Hsv, InlineStatus, type InlineStatusProps, type StatusTone as InlineTone, Input, type InputProps$1 as InputProps, Kbd, KbdGroup, type KbdGroupProps, type KbdProps, Label, type LabelProps$2 as LabelProps, Marker, type MarkerProps, Marquee, type MarqueeProps, Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuPortal, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSubmenu, MenuSubmenuTrigger, MenuTrigger, Message, type MessageProps, MessageScroller, type MessageScrollerHandle, type MessageScrollerProps, Meter, MeterIndicator, MeterLabel, type MeterSize, type MeterTone, MeterTrack, MeterValue, MiddleTruncate, type MiddleTruncateProps, type MotionPolicy, MotionProvider, type MotionProviderProps, Note, type NoteAction, type NoteProps, NotificationBadge, type NotificationBadgeProps, NumberField, type NumberFieldProps, type OrbMode, type OrbSize, OtpField, type OtpFieldProps, PageHeader, type PageHeaderProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, Panel, PanelGroup, PanelResizer, type PanelResizerProps, PanelSection, type PanelWidthBounds, Phone, type PhoneProps, Pill, type PillProps, Popover, PopoverArrow, PopoverClose, PopoverContent, PopoverDescription, PopoverPortal, PopoverTitle, PopoverTrigger, Presence, type PresenceProps, Progress, ProgressIndicator, ProgressLabel, type ProgressSize, ProgressTrack, ProgressValue, PropertyPair, PropertyRow, Radio, RadioCard, type RadioCardProps, type RadioCardTone, RadioGroup, RelativeTime, type RelativeTimeProps, Reveal, type RevealProps, type Rgb, SABLE_UI_VERSION, STATUS_TONES, STATUS_TONE_ICON, type ScrollCommandOptions, Scroller, type ScrollerProps, ScrubField, type ScrubFieldProps, SearchInput, type SearchInputProps, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps$3 as SeparatorProps, SettingsMenu, type SettingsMenuProps, SettingsRow, type SettingsRowProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetPortal, SheetTitle, SheetTrigger, ShowMore, type ShowMoreProps, SideNav, type SideNavActiveVariant, SideNavGroup, type SideNavGroupProps, SideNavItem, type SideNavItemProps, type SideNavProps, type SideNavSize, Sidebar, SidebarFooter, SidebarHeader, SidebarItem, type SidebarItemProps, SidebarNav, type SidebarProps, SimpleTooltip, Skeleton, Slider, SliderControl, SliderIndicator, SliderRoot, SliderThumb, SliderTrack, SliderValue, Spinner, type SpinnerProps, StatusBar, StatusBarGroup, StatusBarSeparator, StatusDot, type StatusDotProps, type StatusTone, type StepStatus, Stepper, StepperItem, type StepperItemProps, type StepperOrientation, type StepperProps, StreamingText, type StreamingTextProps, Switch, TRANSPARENT, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsPanel as TabsContent, TabsList, TabsPanel, TabsTrigger, TextReveal, type TextRevealProps, Textarea, type TextareaProps, ThemeId, ThemeManifest, ThemeMode$1 as ThemeManifestMode, type ThemeMode, ThemeSelector, type ThemeSelectorProps, ThemeSwitcher, type ThemeSwitcherProps, ThinkingOrb, type ThinkingOrbProps, ToastAction, type ToastApi, ToastClose, ToastDescription, type ToastManagerApi, type ToastOptions, ToastProvider, type ToastProviderProps, ToastRoot, ToastTitle, type ToastType, ToastViewport, Toggle, ToggleGroup, type ToggleGroupAppearance, Toggle as ToggleGroupItem, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarGroup, type ToolbarGroupProps, ToolbarInput, type ToolbarInputProps, ToolbarLink, type ToolbarLinkProps, type ToolbarProps, ToolbarSeparator, type ToolbarSeparatorProps, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, Tree, TreeAddRow, TreeEmpty, TreeRow, TreeSection, type UseCopyOptions, type UseCopyResult, type UseInViewOptions, type UsePanelWidthOptions, Video, type VideoProps, ViewTransitionName, type ViewTransitionNameProps, Workspace, WorkspaceBar, WorkspaceCanvas, accordionMeta, appHeaderMeta, appShellMeta, attachmentMeta, avatarGroupVariants, avatarMeta, avatarVariants, badgeMeta, badgeVariants, bannerMeta, bannerVariants, bottomNavMeta, breadcrumbsMeta, browserMeta, bubbleMeta, buttonMeta, buttonVariants, calendarMeta, cardMeta, carouselMeta, chatComposerMeta, checkboxCardMeta, checkboxMeta, cn, codeBlockMeta, codeMeta, collapsibleMeta, colorFieldMeta, comboboxMeta, commandMenuMeta, componentGuidance, componentLabel, componentSlug, componentsInGroup, contextCardMeta, contextMenuMeta, dataTableMeta, datePickerMeta, destructiveActionModalMeta, dialogMeta, dotsMenuMeta, emptyStateMeta, entityMeta, feedbackMeta, fieldsetMeta, fileDropzoneMeta, fileDropzoneVariants, formMeta, formatFileSize, formatHex, glidingHighlightMeta, hsvToRgb, hueColor, inlineStatusMeta, inputMeta, isTransparent, kbdMeta, labelMeta, markerMeta, marqueeMeta, menuMeta, messageMeta, messageScrollerMeta, meterIndicatorVariants, meterMeta, meterTrackVariants, middleTruncateMeta, noteMeta, noteVariants, notificationBadgeMeta, notificationCountVariants, notificationDotVariants, numberFieldMeta, otpFieldMeta, pageHeaderMeta, pageLoaderMeta, paginationMeta, panelGroupMeta, panelSectionMeta, parseHex, phoneMeta, pillMeta, pillVariants, popoverMeta, progressMeta, progressTrackVariants, radioCardMeta, radioMeta, relativeTimeMeta, rgbToHsv, scrollerMeta, scrubFieldMeta, searchInputMeta, selectMeta, separatorMeta, settingsMenuMeta, sheetMeta, sheetVariants, showMoreMeta, sideNavMeta, sidebarMeta, skeletonMeta, sliderMeta, spinnerMeta, startViewTransition, statusBarMeta, statusDotMeta, statusDotVariants, stepperConnectorVariants, stepperIndicatorVariants, stepperMeta, streamingTextMeta, supportsViewTransitions, switchMeta, tableMeta, tabsMeta, textareaMeta, themeSelectorMeta, themeSwitcherMeta, thinkingOrbMeta, toast, toastMeta, toggleMeta, toolbarGroupVariants, toolbarMeta, toolbarSeparatorVariants, toolbarVariants, tooltipMeta, treeIndent, treeMeta, useAnchoredDensity, useComboboxFilteredItems, useCommandMenuShortcut, useCopy, useDensity, useInView, useMotion, usePanelWidth, useReducedMotion, useScrollActivity, useSidebar, useToast, useToastManager, useTypeTier, videoMeta, workspaceMeta };
|
|
7504
|
+
export { Accordion, AccordionItem, AccordionPanel, AccordionTrigger, AlertDialog, AlertDialogClose, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogTitle, AlertDialogTrigger, AppHeader, type AppHeaderProps, AppShell, type AppShellProps, AreaChart, type AreaChartProps, Attachment, type AttachmentProps, Avatar, AvatarFallback, AvatarGroup, AvatarGroupCount, type AvatarGroupCountProps, type AvatarGroupProps, AvatarImage, type AvatarProps, AvatarRoot, BADGE_APPEARANCES, BADGE_TONES, Badge, type BadgeAppearance, type BadgeProps, type BadgeTone, Banner, type BannerProps, BarChart, type BarChartProps, BottomNav, BottomNavItem, type BottomNavItemProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, BreadcrumbPage, type BreadcrumbPageProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Breadcrumbs, type BreadcrumbsProps, Browser, type BrowserProps, Bubble, type BubbleProps, BubbleReaction, type BubbleReactionProps, BubbleReactions, type BubbleReactionsProps, Button, type ButtonProps, CHART_SERIES_COUNT, COMPONENT_GROUPS, COMPONENT_TAXONOMY, Calendar, type CalendarProps, Card, CardAction, CardContent, type CardContentProps, CardDescription, CardFooter, CardHeader, CardList, type CardProps, CardTitle, type CardTitleProps, Carousel, type CarouselProps, type CarouselSlidesToShow, type ChartCategories, type ChartCenterLabel, type ChartCurve, type ChartDatum, type ChartSeries, type ChartTone, type ChartTooltipIndicator, type ChartTooltipOptions, type ChartValueFormatter, ChatComposer, type ChatComposerProps, Checkbox, CheckboxCard, type CheckboxCardProps, type CheckboxCardTone, CheckboxGroup, type CheckboxGroupProps, Code, CodeBlock, type CodeBlockProps, CodeHighlightProvider, type CodeHighlighter, type CodeProps, Collapsible, CollapsibleIndicator, CollapsiblePanel, CollapsibleTrigger, ColorField, type ColorFieldProps, Combobox, ComboboxChips, ComboboxClear, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, type ComboboxItemGroup, ComboboxItemIndicator, ComboboxList, ComboboxPortal, type ComboboxProps, ComboboxValue, ComboboxVirtualList, type ComboboxVirtualListProps, type CommandFilter, type CommandItem, CommandMenu, CommandMenuGroup, type CommandMenuGroupProps, CommandMenuItem, type CommandMenuItemProps, CommandMenuPanel, type CommandMenuPanelProps, type CommandMenuProps, CommandMenuTrigger, type CommandMenuTriggerProps, type ComponentGroup, type ComponentGuidance, ComponentMeta, type ComponentRegister, ContextCard, ContextCardArrow, ContextCardContent, ContextCardPortal, ContextCardTrigger, ContextMenu, ContextMenuContent, ContextMenuGroup, ContextMenuGroupLabel, ContextMenuItem, ContextMenuPortal, ContextMenuSeparator, ContextMenuTrigger, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, DateTile, type DateTileProps, Density, DensityProvider, Density as DensityValue, DestructiveActionModal, type DestructiveActionModalProps, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, type DialogSize, DialogTitle, DialogTrigger, EmptyState, type EmptyStateProps, Entity, type EntityProps, Feedback, type FeedbackData, type FeedbackProps, type FeedbackRating, Field, type FieldProps, Fieldset, FieldsetContent, FieldsetDescription, FieldsetFooter, FieldsetLegend, FileDropzone, type FileDropzoneProps, type FileRejection, type FileRejectionCode, Form, type FormProps, GlidingHighlight, type GlidingHighlightProps, type Hsv, InlineStatus, type InlineStatusProps, type StatusTone as InlineTone, Input, type InputProps$1 as InputProps, Kbd, KbdGroup, type KbdGroupProps, type KbdProps, Label, type LabelProps$2 as LabelProps, LineChart, type LineChartProps, Marker, type MarkerProps, Marquee, type MarqueeProps, Menu, MenuCheckboxItem, MenuContent, MenuGroup, MenuGroupLabel, MenuItem, MenuPortal, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuSubmenu, MenuSubmenuTrigger, MenuTrigger, Message, type MessageProps, MessageScroller, type MessageScrollerHandle, type MessageScrollerProps, Meter, MeterIndicator, MeterLabel, type MeterSize, type MeterTone, MeterTrack, MeterValue, MiddleTruncate, type MiddleTruncateProps, type MotionPolicy, MotionProvider, type MotionProviderProps, Note, type NoteAction, type NoteProps, NotificationBadge, type NotificationBadgeProps, NumberField, type NumberFieldProps, type OrbMode, type OrbSize, OtpField, type OtpFieldProps, OverflowMenu, type OverflowMenuProps, PageHeader, type PageHeaderProps, PageLoader, type PageLoaderProps, Pagination, type PaginationProps, Panel, PanelGroup, PanelResizer, type PanelResizerProps, PanelSection, type PanelWidthBounds, Phone, type PhoneProps, PieChart, type PieChartProps, Pill, type PillProps, Popover, PopoverArrow, PopoverClose, PopoverContent, PopoverDescription, PopoverPortal, PopoverTitle, PopoverTrigger, Presence, type PresenceProps, Progress, ProgressIndicator, ProgressLabel, type ProgressSize, ProgressTrack, ProgressValue, PropertyPair, PropertyRow, RadarChart, type RadarChartProps, RadialChart, type RadialChartProps, Radio, RadioCard, type RadioCardProps, type RadioCardTone, RadioGroup, RelativeTime, type RelativeTimeProps, Reveal, type RevealProps, type Rgb, SABLE_UI_VERSION, SEGMENTED_BAR_TONES, STATUS_TONES, STATUS_TONE_ICON, type ScrollCommandOptions, Scroller, type ScrollerProps, ScrubField, type ScrubFieldProps, SearchInput, type SearchInputProps, SegmentedBar, type SegmentedBarProps, type SegmentedBarSegment, type SegmentedBarTone, Select, SelectContent, SelectGroup, SelectGroupLabel, SelectItem, SelectPortal, SelectSeparator, SelectTrigger, SelectValue, Separator, type SeparatorProps$3 as SeparatorProps, SettingsMenu, type SettingsMenuProps, SettingsRow, type SettingsRowProps, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetPortal, SheetTitle, SheetTrigger, ShowMore, type ShowMoreProps, SideNav, type SideNavActiveVariant, SideNavGroup, type SideNavGroupProps, SideNavItem, type SideNavItemProps, type SideNavProps, type SideNavSize, Sidebar, SidebarFooter, SidebarHeader, SidebarItem, type SidebarItemProps, SidebarNav, type SidebarProps, SimpleTooltip, Skeleton, Slider, SliderControl, SliderIndicator, SliderRoot, SliderThumb, SliderTrack, SliderValue, Sparkline, type SparklineProps, Spinner, type SpinnerProps, StatusBar, StatusBarGroup, StatusBarSeparator, StatusDot, type StatusDotProps, type StatusTone, type StepStatus, Stepper, StepperItem, type StepperItemProps, type StepperOrientation, type StepperProps, StreamingText, type StreamingTextProps, Switch, TRANSPARENT, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsPanel as TabsContent, TabsList, TabsPanel, TabsTrigger, TextReveal, type TextRevealProps, Textarea, type TextareaProps, ThemeId, ThemeManifest, ThemeMode$1 as ThemeManifestMode, type ThemeMode, ThemeSelector, type ThemeSelectorProps, ThemeSwitcher, type ThemeSwitcherProps, ThinkingOrb, type ThinkingOrbProps, ToastAction, type ToastApi, ToastClose, ToastDescription, type ToastManagerApi, type ToastOptions, type ToastPosition, ToastProvider, type ToastProviderProps, ToastRoot, ToastTitle, type ToastType, ToastViewport, Toggle, ToggleGroup, type ToggleGroupAppearance, Toggle as ToggleGroupItem, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarGroup, type ToolbarGroupProps, ToolbarInput, type ToolbarInputProps, ToolbarLink, type ToolbarLinkProps, type ToolbarProps, ToolbarSeparator, type ToolbarSeparatorProps, Tooltip, TooltipArrow, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, Tree, TreeAddRow, TreeEmpty, TreeRow, TreeSection, type UseCopyOptions, type UseCopyResult, type UseInViewOptions, type UsePanelWidthOptions, Video, type VideoProps, ViewTransitionName, type ViewTransitionNameProps, Workspace, WorkspaceBar, WorkspaceCanvas, accordionMeta, appHeaderMeta, appShellMeta, areaChartMeta, attachmentMeta, avatarGroupVariants, avatarMeta, avatarVariants, badgeMeta, badgeVariants, bannerMeta, bannerVariants, barChartMeta, bottomNavMeta, breadcrumbsMeta, browserMeta, bubbleMeta, buttonMeta, buttonVariants, calendarMeta, cardMeta, carouselMeta, chartColor, toneColor as chartToneColor, chatComposerMeta, checkboxCardMeta, checkboxMeta, cn, codeBlockMeta, codeMeta, collapsibleMeta, colorFieldMeta, comboboxMeta, commandMenuMeta, componentGuidance, componentLabel, componentSlug, componentsInGroup, contextCardMeta, contextMenuMeta, dataTableMeta, datePickerMeta, dateTileMeta, destructiveActionModalMeta, dialogMeta, emptyStateMeta, entityMeta, feedbackMeta, fieldsetMeta, fileDropzoneMeta, fileDropzoneVariants, formMeta, formatFileSize, formatHex, glidingHighlightMeta, hsvToRgb, hueColor, inlineStatusMeta, inputMeta, isTransparent, kbdMeta, labelMeta, lineChartMeta, markerMeta, marqueeMeta, menuMeta, messageMeta, messageScrollerMeta, meterIndicatorVariants, meterMeta, meterTrackVariants, middleTruncateMeta, noteMeta, noteVariants, notificationBadgeMeta, notificationCountVariants, notificationDotVariants, numberFieldMeta, otpFieldMeta, overflowMenuMeta, pageHeaderMeta, pageLoaderMeta, paginationMeta, panelGroupMeta, panelSectionMeta, parseHex, phoneMeta, pieChartMeta, pillMeta, pillVariants, popoverMeta, progressMeta, progressTrackVariants, radarChartMeta, radialChartMeta, radioCardMeta, radioMeta, relativeTimeMeta, rgbToHsv, scrollerMeta, scrubFieldMeta, searchInputMeta, segmentedBarMeta, segmentedBarSegmentVariants, segmentedBarVariants, selectMeta, separatorMeta, settingsMenuMeta, sheetMeta, sheetVariants, showMoreMeta, sideNavMeta, sidebarMeta, skeletonMeta, sliderMeta, sparklineMeta, spinnerMeta, startViewTransition, statusBarMeta, statusDotMeta, statusDotVariants, stepperConnectorVariants, stepperIndicatorVariants, stepperMeta, streamingTextMeta, supportsViewTransitions, switchMeta, tableMeta, tabsMeta, textareaMeta, themeSelectorMeta, themeSwitcherMeta, thinkingOrbMeta, toast, toastMeta, toggleMeta, toolbarGroupVariants, toolbarMeta, toolbarSeparatorVariants, toolbarVariants, tooltipMeta, treeIndent, treeMeta, useAnchoredDensity, useComboboxFilteredItems, useCommandMenuShortcut, useCopy, useDensity, useInView, useMotion, usePanelWidth, useReducedMotion, useScrollActivity, useSidebar, useToast, useToastManager, useTypeTier, videoMeta, workspaceMeta };
|