@glyphui/ui 0.1.0 → 0.2.0
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 +1 -1
- package/dist/data-table.js +2 -2
- package/dist/{field-DXZD0l8w.js → field-CCecIzdq.js} +1 -1
- package/dist/{field-context-B8cYheXz.js → field-context-B6WOcK5m.js} +99 -99
- package/dist/form.js +2 -2
- package/dist/index.d.ts +2743 -93
- package/dist/index.js +2748 -111
- package/dist/{states-BxPjCUxz.js → states-Rp8wZ_jH.js} +1 -1
- package/package.json +4 -2
- package/src/components/accordion/accordion.styles.ts +41 -0
- package/src/components/accordion/accordion.tsx +86 -0
- package/src/components/accordion/index.ts +8 -0
- package/src/components/alert/alert-icons.tsx +66 -0
- package/src/components/alert/alert.styles.ts +57 -0
- package/src/components/alert/alert.tsx +86 -0
- package/src/components/alert/index.ts +2 -0
- package/src/components/alert-dialog/alert-dialog.styles.ts +24 -0
- package/src/components/alert-dialog/alert-dialog.tsx +118 -0
- package/src/components/alert-dialog/confirm.tsx +111 -0
- package/src/components/alert-dialog/index.ts +15 -0
- package/src/components/aspect-ratio/aspect-ratio.tsx +40 -0
- package/src/components/aspect-ratio/index.ts +1 -0
- package/src/components/badge/badge.styles.ts +1 -1
- package/src/components/banner/banner.styles.ts +40 -0
- package/src/components/banner/banner.tsx +101 -0
- package/src/components/banner/index.ts +2 -0
- package/src/components/blockquote/blockquote.tsx +59 -0
- package/src/components/blockquote/index.ts +1 -0
- package/src/components/breadcrumb/breadcrumb.styles.ts +20 -0
- package/src/components/breadcrumb/breadcrumb.tsx +135 -0
- package/src/components/breadcrumb/index.ts +12 -0
- package/src/components/button/button.tsx +11 -8
- package/src/components/code/code.styles.ts +33 -0
- package/src/components/code/code.tsx +96 -0
- package/src/components/code/index.ts +2 -0
- package/src/components/combobox/combobox.styles.ts +50 -0
- package/src/components/combobox/combobox.tsx +203 -0
- package/src/components/combobox/index.ts +2 -0
- package/src/components/command-menu/command-menu.styles.ts +41 -0
- package/src/components/command-menu/command-menu.tsx +217 -0
- package/src/components/command-menu/index.ts +14 -0
- package/src/components/description-list/description-list.styles.ts +31 -0
- package/src/components/description-list/description-list.tsx +56 -0
- package/src/components/description-list/index.ts +7 -0
- package/src/components/dialog/close-icon.tsx +22 -0
- package/src/components/dialog/dialog.styles.ts +41 -0
- package/src/components/dialog/dialog.tsx +111 -0
- package/src/components/dialog/index.ts +13 -0
- package/src/components/dropdown-menu/dropdown-menu.styles.ts +45 -0
- package/src/components/dropdown-menu/dropdown-menu.tsx +230 -0
- package/src/components/dropdown-menu/index.ts +19 -0
- package/src/components/grid/grid.tsx +144 -0
- package/src/components/grid/index.ts +1 -0
- package/src/components/link/index.ts +2 -0
- package/src/components/link/link.styles.ts +39 -0
- package/src/components/link/link.tsx +62 -0
- package/src/components/pagination/index.ts +3 -0
- package/src/components/pagination/pagination-range.ts +35 -0
- package/src/components/pagination/pagination.styles.ts +41 -0
- package/src/components/pagination/pagination.tsx +130 -0
- package/src/components/popover/index.ts +9 -0
- package/src/components/popover/popover.tsx +66 -0
- package/src/components/progress/index.ts +7 -0
- package/src/components/progress/progress.styles.ts +68 -0
- package/src/components/progress/progress.tsx +158 -0
- package/src/components/prose/index.ts +1 -0
- package/src/components/prose/prose.tsx +82 -0
- package/src/components/radio-group/index.ts +7 -0
- package/src/components/radio-group/radio-group.styles.ts +64 -0
- package/src/components/radio-group/radio-group.tsx +128 -0
- package/src/components/scroll-area/index.ts +1 -0
- package/src/components/scroll-area/scroll-area.tsx +68 -0
- package/src/components/sheet/index.ts +13 -0
- package/src/components/sheet/sheet.styles.ts +60 -0
- package/src/components/sheet/sheet.tsx +108 -0
- package/src/components/slider/index.ts +2 -0
- package/src/components/slider/slider.styles.ts +32 -0
- package/src/components/slider/slider.tsx +131 -0
- package/src/components/stat-card/index.ts +2 -0
- package/src/components/stat-card/stat-card.styles.ts +24 -0
- package/src/components/stat-card/stat-card.tsx +108 -0
- package/src/components/toast/index.ts +1 -0
- package/src/components/toast/toast.tsx +91 -0
- package/src/index.ts +25 -0
- package/src/provider/glyph-provider.tsx +16 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,10 @@ import { n as tv, t as VariantProps } from "./tv-DuMh7UH2.js";
|
|
|
2
2
|
import { a as IconButton, c as fieldStyles, i as ButtonProps, l as ButtonVariants, n as FieldProps, o as IconButtonProps, r as Button, s as FieldVariants, t as Field, u as buttonStyles } from "./index-BWK4czIG.js";
|
|
3
3
|
import { t as StylesEntry } from "./registry-BGSJoiLq.js";
|
|
4
4
|
import { ColorMode, ColorMode as ColorMode$1, ColorToken, ComponentName, ComponentOverrides, GlyphComponentRegistry, RadiusToken, ShadowToken, TextToken, Theme, Theme as Theme$1, ThemeInput, Tone, defineTheme, themeToCss, tokenVar } from "@glyphui/tokens";
|
|
5
|
-
import { Avatar as Avatar$1, Checkbox as Checkbox$1, Label as Label$1, Select as Select$1, Separator as Separator$1, Switch as Switch$1, Tabs as Tabs$1, Tooltip as Tooltip$1 } from "radix-ui";
|
|
6
|
-
import { ComponentProps, DependencyList, ElementType, MouseEvent, MouseEventHandler, ReactNode } from "react";
|
|
5
|
+
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, Label as Label$1, Popover as Popover$1, RadioGroup as RadioGroup$1, ScrollArea as ScrollArea$1, Select as Select$1, Separator as Separator$1, Switch as Switch$1, Tabs as Tabs$1, Tooltip as Tooltip$1 } from "radix-ui";
|
|
6
|
+
import { ComponentProps, DependencyList, Dispatch, ElementType, MouseEvent, MouseEventHandler, ReactNode, SetStateAction } from "react";
|
|
7
|
+
import { Command as Command$1 } from "cmdk";
|
|
8
|
+
import { Toaster as Toaster$1, toast } from "sonner";
|
|
7
9
|
import { ClassValue } from "clsx";
|
|
8
10
|
//#region src/components/avatar/avatar.styles.d.ts
|
|
9
11
|
export declare const avatarStyles: import("tailwind-variants").TVReturnType<{
|
|
@@ -641,12 +643,12 @@ export declare const selectStyles: import("tailwind-variants").TVReturnType<{
|
|
|
641
643
|
item: string[];
|
|
642
644
|
indicator: string;
|
|
643
645
|
}>>;
|
|
644
|
-
type RootProps<T extends string> = Omit<ComponentProps<typeof Select$1.Root>, 'value' | 'defaultValue' | 'onValueChange'> & {
|
|
646
|
+
type RootProps$1<T extends string> = Omit<ComponentProps<typeof Select$1.Root>, 'value' | 'defaultValue' | 'onValueChange'> & {
|
|
645
647
|
value?: T;
|
|
646
648
|
defaultValue?: T;
|
|
647
649
|
onValueChange?: (value: T) => void;
|
|
648
650
|
};
|
|
649
|
-
interface SelectProps<T extends string = string> extends RootProps<T>, VariantProps<typeof selectStyles> {
|
|
651
|
+
interface SelectProps<T extends string = string> extends RootProps$1<T>, VariantProps<typeof selectStyles> {
|
|
650
652
|
placeholder?: ReactNode;
|
|
651
653
|
id?: string;
|
|
652
654
|
className?: string;
|
|
@@ -1605,120 +1607,2343 @@ declare module '@glyphui/tokens' {
|
|
|
1605
1607
|
}
|
|
1606
1608
|
}
|
|
1607
1609
|
//#endregion
|
|
1610
|
+
//#region src/components/accordion/accordion.styles.d.ts
|
|
1611
|
+
export declare const accordionStyles: import("tailwind-variants").TVReturnType<{
|
|
1612
|
+
variant: {
|
|
1613
|
+
default: {
|
|
1614
|
+
item: string;
|
|
1615
|
+
};
|
|
1616
|
+
separated: {
|
|
1617
|
+
root: string;
|
|
1618
|
+
item: string[];
|
|
1619
|
+
};
|
|
1620
|
+
};
|
|
1621
|
+
}, {
|
|
1622
|
+
root: string;
|
|
1623
|
+
item: string;
|
|
1624
|
+
header: string;
|
|
1625
|
+
trigger: string[];
|
|
1626
|
+
chevron: string;
|
|
1627
|
+
content: string;
|
|
1628
|
+
contentInner: string;
|
|
1629
|
+
}, undefined, {
|
|
1630
|
+
variant: {
|
|
1631
|
+
default: {
|
|
1632
|
+
item: string;
|
|
1633
|
+
};
|
|
1634
|
+
separated: {
|
|
1635
|
+
root: string;
|
|
1636
|
+
item: string[];
|
|
1637
|
+
};
|
|
1638
|
+
};
|
|
1639
|
+
}, {
|
|
1640
|
+
root: string;
|
|
1641
|
+
item: string;
|
|
1642
|
+
header: string;
|
|
1643
|
+
trigger: string[];
|
|
1644
|
+
chevron: string;
|
|
1645
|
+
content: string;
|
|
1646
|
+
contentInner: string;
|
|
1647
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
1648
|
+
variant: {
|
|
1649
|
+
default: {
|
|
1650
|
+
item: string;
|
|
1651
|
+
};
|
|
1652
|
+
separated: {
|
|
1653
|
+
root: string;
|
|
1654
|
+
item: string[];
|
|
1655
|
+
};
|
|
1656
|
+
};
|
|
1657
|
+
}, {
|
|
1658
|
+
root: string;
|
|
1659
|
+
item: string;
|
|
1660
|
+
header: string;
|
|
1661
|
+
trigger: string[];
|
|
1662
|
+
chevron: string;
|
|
1663
|
+
content: string;
|
|
1664
|
+
contentInner: string;
|
|
1665
|
+
}>>;
|
|
1666
|
+
type AccordionVariants = VariantProps<typeof accordionStyles>;
|
|
1667
|
+
declare module '@glyphui/tokens' {
|
|
1668
|
+
interface GlyphComponentRegistry {
|
|
1669
|
+
Accordion: StylesEntry<typeof accordionStyles>;
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
//#endregion
|
|
1673
|
+
//#region src/components/accordion/accordion.d.ts
|
|
1674
|
+
type AccordionProps = ComponentProps<typeof Accordion$1.Root> & AccordionVariants;
|
|
1675
|
+
/**
|
|
1676
|
+
* Stacked sections that expand one at a time (`type="single"`, collapsible) or
|
|
1677
|
+
* independently (`type="multiple"`). Good for FAQs and dense settings.
|
|
1678
|
+
*/
|
|
1679
|
+
export declare function Accordion(inProps: AccordionProps): import("react").JSX.Element;
|
|
1680
|
+
export declare function AccordionItem({ className, ...props }: ComponentProps<typeof Accordion$1.Item>): import("react").JSX.Element;
|
|
1681
|
+
export declare function AccordionTrigger({ className, children, ...props }: ComponentProps<typeof Accordion$1.Trigger>): import("react").JSX.Element;
|
|
1682
|
+
export declare function AccordionContent({ className, children, ...props }: ComponentProps<typeof Accordion$1.Content>): import("react").JSX.Element;
|
|
1683
|
+
//#endregion
|
|
1684
|
+
//#region src/components/alert/alert.styles.d.ts
|
|
1685
|
+
export declare const alertStyles: import("tailwind-variants").TVReturnType<{
|
|
1686
|
+
tone: {
|
|
1687
|
+
neutral: {
|
|
1688
|
+
icon: string;
|
|
1689
|
+
};
|
|
1690
|
+
info: {
|
|
1691
|
+
icon: string;
|
|
1692
|
+
};
|
|
1693
|
+
success: {
|
|
1694
|
+
icon: string;
|
|
1695
|
+
};
|
|
1696
|
+
warning: {
|
|
1697
|
+
icon: string;
|
|
1698
|
+
};
|
|
1699
|
+
danger: {
|
|
1700
|
+
icon: string;
|
|
1701
|
+
};
|
|
1702
|
+
};
|
|
1703
|
+
variant: {
|
|
1704
|
+
soft: {};
|
|
1705
|
+
outline: {
|
|
1706
|
+
root: string;
|
|
1707
|
+
};
|
|
1708
|
+
};
|
|
1709
|
+
}, {
|
|
1710
|
+
root: string[];
|
|
1711
|
+
icon: string;
|
|
1712
|
+
content: string;
|
|
1713
|
+
title: string;
|
|
1714
|
+
description: string;
|
|
1715
|
+
action: string;
|
|
1716
|
+
dismiss: string;
|
|
1717
|
+
}, undefined, {
|
|
1718
|
+
tone: {
|
|
1719
|
+
neutral: {
|
|
1720
|
+
icon: string;
|
|
1721
|
+
};
|
|
1722
|
+
info: {
|
|
1723
|
+
icon: string;
|
|
1724
|
+
};
|
|
1725
|
+
success: {
|
|
1726
|
+
icon: string;
|
|
1727
|
+
};
|
|
1728
|
+
warning: {
|
|
1729
|
+
icon: string;
|
|
1730
|
+
};
|
|
1731
|
+
danger: {
|
|
1732
|
+
icon: string;
|
|
1733
|
+
};
|
|
1734
|
+
};
|
|
1735
|
+
variant: {
|
|
1736
|
+
soft: {};
|
|
1737
|
+
outline: {
|
|
1738
|
+
root: string;
|
|
1739
|
+
};
|
|
1740
|
+
};
|
|
1741
|
+
}, {
|
|
1742
|
+
root: string[];
|
|
1743
|
+
icon: string;
|
|
1744
|
+
content: string;
|
|
1745
|
+
title: string;
|
|
1746
|
+
description: string;
|
|
1747
|
+
action: string;
|
|
1748
|
+
dismiss: string;
|
|
1749
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
1750
|
+
tone: {
|
|
1751
|
+
neutral: {
|
|
1752
|
+
icon: string;
|
|
1753
|
+
};
|
|
1754
|
+
info: {
|
|
1755
|
+
icon: string;
|
|
1756
|
+
};
|
|
1757
|
+
success: {
|
|
1758
|
+
icon: string;
|
|
1759
|
+
};
|
|
1760
|
+
warning: {
|
|
1761
|
+
icon: string;
|
|
1762
|
+
};
|
|
1763
|
+
danger: {
|
|
1764
|
+
icon: string;
|
|
1765
|
+
};
|
|
1766
|
+
};
|
|
1767
|
+
variant: {
|
|
1768
|
+
soft: {};
|
|
1769
|
+
outline: {
|
|
1770
|
+
root: string;
|
|
1771
|
+
};
|
|
1772
|
+
};
|
|
1773
|
+
}, {
|
|
1774
|
+
root: string[];
|
|
1775
|
+
icon: string;
|
|
1776
|
+
content: string;
|
|
1777
|
+
title: string;
|
|
1778
|
+
description: string;
|
|
1779
|
+
action: string;
|
|
1780
|
+
dismiss: string;
|
|
1781
|
+
}>>;
|
|
1782
|
+
type AlertVariants = VariantProps<typeof alertStyles>;
|
|
1783
|
+
declare module '@glyphui/tokens' {
|
|
1784
|
+
interface GlyphComponentRegistry {
|
|
1785
|
+
Alert: StylesEntry<typeof alertStyles>;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
//#endregion
|
|
1789
|
+
//#region src/components/alert/alert.d.ts
|
|
1790
|
+
interface AlertProps extends Omit<ComponentProps<'div'>, 'title'>, AlertVariants {
|
|
1791
|
+
title?: ReactNode;
|
|
1792
|
+
/** Replaces the tone's default icon. `false` hides it. */
|
|
1793
|
+
icon?: ReactNode | false;
|
|
1794
|
+
/** Buttons or links shown at the end. */
|
|
1795
|
+
action?: ReactNode;
|
|
1796
|
+
/** Shows a close button that calls this. */
|
|
1797
|
+
onDismiss?: () => void;
|
|
1798
|
+
dismissLabel?: string;
|
|
1799
|
+
}
|
|
1800
|
+
/**
|
|
1801
|
+
* An inline message about the content around it. Danger and warning alerts are announced
|
|
1802
|
+
* immediately (`role="alert"`); other tones politely (`role="status"`).
|
|
1803
|
+
*/
|
|
1804
|
+
export declare function Alert(inProps: AlertProps): import("react").JSX.Element;
|
|
1805
|
+
//#endregion
|
|
1806
|
+
//#region src/components/alert-dialog/alert-dialog.d.ts
|
|
1807
|
+
/**
|
|
1808
|
+
* A modal that interrupts to ask for a decision, e.g. confirming a destructive action.
|
|
1809
|
+
* Unlike Dialog it can't be dismissed by clicking outside. For a one-line confirm, use `useConfirm()`.
|
|
1810
|
+
*/
|
|
1811
|
+
export declare const AlertDialog: import("react").FC<AlertDialog$1.AlertDialogProps>;
|
|
1812
|
+
export declare const AlertDialogTrigger: import("react").ForwardRefExoticComponent<AlertDialog$1.AlertDialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
1813
|
+
interface AlertDialogContentProps extends ComponentProps<typeof AlertDialog$1.Content> {
|
|
1814
|
+
overlayClassName?: string;
|
|
1815
|
+
}
|
|
1816
|
+
export declare function AlertDialogContent(inProps: AlertDialogContentProps): import("react").JSX.Element;
|
|
1817
|
+
export declare function AlertDialogHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
1818
|
+
export declare function AlertDialogTitle({ className, ...props }: ComponentProps<typeof AlertDialog$1.Title>): import("react").JSX.Element;
|
|
1819
|
+
export declare function AlertDialogDescription({ className, ...props }: ComponentProps<typeof AlertDialog$1.Description>): import("react").JSX.Element;
|
|
1820
|
+
export declare function AlertDialogFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
1821
|
+
interface AlertDialogActionProps extends Omit<ButtonProps, 'variant' | 'asChild'> {
|
|
1822
|
+
/** `danger` for destructive actions. */
|
|
1823
|
+
tone?: 'default' | 'danger';
|
|
1824
|
+
}
|
|
1825
|
+
/** The confirming button. Closes the dialog. */
|
|
1826
|
+
export declare function AlertDialogAction({ tone, ...props }: AlertDialogActionProps): import("react").JSX.Element;
|
|
1827
|
+
/** The dismissing button. Receives focus when the dialog opens, so Enter never confirms by accident. */
|
|
1828
|
+
export declare function AlertDialogCancel(props: Omit<ButtonProps, 'variant' | 'asChild'>): import("react").JSX.Element;
|
|
1829
|
+
//#endregion
|
|
1830
|
+
//#region src/components/alert-dialog/alert-dialog.styles.d.ts
|
|
1831
|
+
export declare const alertDialogStyles: import("tailwind-variants").TVReturnType<{
|
|
1832
|
+
[key: string]: {
|
|
1833
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
1834
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
1835
|
+
description?: import("tailwind-variants").ClassValue;
|
|
1836
|
+
title?: import("tailwind-variants").ClassValue;
|
|
1837
|
+
header?: import("tailwind-variants").ClassValue;
|
|
1838
|
+
content?: import("tailwind-variants").ClassValue;
|
|
1839
|
+
overlay?: import("tailwind-variants").ClassValue;
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1842
|
+
} | {
|
|
1843
|
+
[x: string]: {
|
|
1844
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
1845
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
1846
|
+
description?: import("tailwind-variants").ClassValue;
|
|
1847
|
+
title?: import("tailwind-variants").ClassValue;
|
|
1848
|
+
header?: import("tailwind-variants").ClassValue;
|
|
1849
|
+
content?: import("tailwind-variants").ClassValue;
|
|
1850
|
+
overlay?: import("tailwind-variants").ClassValue;
|
|
1851
|
+
};
|
|
1852
|
+
};
|
|
1853
|
+
} | {}, {
|
|
1854
|
+
overlay: string;
|
|
1855
|
+
content: string[];
|
|
1856
|
+
header: string;
|
|
1857
|
+
title: string;
|
|
1858
|
+
description: string;
|
|
1859
|
+
footer: string;
|
|
1860
|
+
}, undefined, {
|
|
1861
|
+
[key: string]: {
|
|
1862
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
1863
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
1864
|
+
description?: import("tailwind-variants").ClassValue;
|
|
1865
|
+
title?: import("tailwind-variants").ClassValue;
|
|
1866
|
+
header?: import("tailwind-variants").ClassValue;
|
|
1867
|
+
content?: import("tailwind-variants").ClassValue;
|
|
1868
|
+
overlay?: import("tailwind-variants").ClassValue;
|
|
1869
|
+
};
|
|
1870
|
+
};
|
|
1871
|
+
} | {}, {
|
|
1872
|
+
overlay: string;
|
|
1873
|
+
content: string[];
|
|
1874
|
+
header: string;
|
|
1875
|
+
title: string;
|
|
1876
|
+
description: string;
|
|
1877
|
+
footer: string;
|
|
1878
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
1879
|
+
overlay: string;
|
|
1880
|
+
content: string[];
|
|
1881
|
+
header: string;
|
|
1882
|
+
title: string;
|
|
1883
|
+
description: string;
|
|
1884
|
+
footer: string;
|
|
1885
|
+
}>>;
|
|
1886
|
+
declare module '@glyphui/tokens' {
|
|
1887
|
+
interface GlyphComponentRegistry {
|
|
1888
|
+
AlertDialog: StylesEntry<typeof alertDialogStyles>;
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
//#endregion
|
|
1892
|
+
//#region src/components/alert-dialog/confirm.d.ts
|
|
1893
|
+
interface ConfirmOptions {
|
|
1894
|
+
title: ReactNode;
|
|
1895
|
+
description?: ReactNode;
|
|
1896
|
+
/** Default "Confirm", or "Delete" when `tone` is `danger`. */
|
|
1897
|
+
confirmLabel?: ReactNode;
|
|
1898
|
+
cancelLabel?: ReactNode;
|
|
1899
|
+
tone?: 'default' | 'danger';
|
|
1900
|
+
}
|
|
1901
|
+
type ConfirmFn = (options: ConfirmOptions) => Promise<boolean>;
|
|
1902
|
+
/**
|
|
1903
|
+
* Enables `useConfirm()` for everything inside. Renders one shared AlertDialog.
|
|
1904
|
+
* Mount once near the root (inside GlyphProvider).
|
|
1905
|
+
*/
|
|
1906
|
+
export declare function ConfirmProvider({ children }: {
|
|
1907
|
+
children: ReactNode;
|
|
1908
|
+
}): import("react").JSX.Element;
|
|
1909
|
+
/**
|
|
1910
|
+
* Ask the user to confirm, in one line:
|
|
1911
|
+
*
|
|
1912
|
+
* ```tsx
|
|
1913
|
+
* const confirm = useConfirm()
|
|
1914
|
+
* if (await confirm({ title: 'Delete project?', tone: 'danger' })) await deleteProject()
|
|
1915
|
+
* ```
|
|
1916
|
+
*
|
|
1917
|
+
* Resolves `true` when confirmed, `false` when cancelled or dismissed with Escape.
|
|
1918
|
+
*/
|
|
1919
|
+
export declare function useConfirm(): ConfirmFn;
|
|
1920
|
+
//#endregion
|
|
1921
|
+
//#region src/components/aspect-ratio/aspect-ratio.d.ts
|
|
1922
|
+
export declare const aspectRatioStyles: import("tailwind-variants").TVReturnType<{
|
|
1923
|
+
rounded: {
|
|
1924
|
+
true: {
|
|
1925
|
+
base: string;
|
|
1926
|
+
};
|
|
1927
|
+
};
|
|
1928
|
+
placeholder: {
|
|
1929
|
+
true: {
|
|
1930
|
+
base: string;
|
|
1931
|
+
};
|
|
1932
|
+
};
|
|
1933
|
+
}, {
|
|
1934
|
+
base: string;
|
|
1935
|
+
}, undefined, {
|
|
1936
|
+
rounded: {
|
|
1937
|
+
true: {
|
|
1938
|
+
base: string;
|
|
1939
|
+
};
|
|
1940
|
+
};
|
|
1941
|
+
placeholder: {
|
|
1942
|
+
true: {
|
|
1943
|
+
base: string;
|
|
1944
|
+
};
|
|
1945
|
+
};
|
|
1946
|
+
}, {
|
|
1947
|
+
base: string;
|
|
1948
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
1949
|
+
rounded: {
|
|
1950
|
+
true: {
|
|
1951
|
+
base: string;
|
|
1952
|
+
};
|
|
1953
|
+
};
|
|
1954
|
+
placeholder: {
|
|
1955
|
+
true: {
|
|
1956
|
+
base: string;
|
|
1957
|
+
};
|
|
1958
|
+
};
|
|
1959
|
+
}, {
|
|
1960
|
+
base: string;
|
|
1961
|
+
}>>;
|
|
1962
|
+
declare module '@glyphui/tokens' {
|
|
1963
|
+
interface GlyphComponentRegistry {
|
|
1964
|
+
AspectRatio: StylesEntry<typeof aspectRatioStyles>;
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
interface AspectRatioProps extends ComponentProps<typeof AspectRatio$1.Root>, VariantProps<typeof aspectRatioStyles> {}
|
|
1968
|
+
/** Keeps media at a fixed width-to-height ratio, e.g. `ratio={16 / 9}`. Images inside cover the box. */
|
|
1969
|
+
export declare function AspectRatio(inProps: AspectRatioProps): import("react").JSX.Element;
|
|
1970
|
+
//#endregion
|
|
1608
1971
|
//#region src/components/avatar/avatar.d.ts
|
|
1609
1972
|
interface AvatarProps extends ComponentProps<typeof Avatar$1.Root>, AvatarVariants {
|
|
1610
1973
|
/** Used for the image alt text and the initials fallback. */
|
|
1611
1974
|
name: string;
|
|
1612
1975
|
src?: string | undefined;
|
|
1613
1976
|
}
|
|
1614
|
-
export declare function Avatar(inProps: AvatarProps): import("react").JSX.Element;
|
|
1615
|
-
export declare function AvatarGroup({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
1977
|
+
export declare function Avatar(inProps: AvatarProps): import("react").JSX.Element;
|
|
1978
|
+
export declare function AvatarGroup({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
1979
|
+
//#endregion
|
|
1980
|
+
//#region src/components/badge/badge.d.ts
|
|
1981
|
+
interface BadgeProps extends ComponentProps<'span'>, BadgeVariants {
|
|
1982
|
+
/** Leading status dot in the badge's color. */
|
|
1983
|
+
dot?: boolean;
|
|
1984
|
+
asChild?: boolean;
|
|
1985
|
+
}
|
|
1986
|
+
export declare function Badge(inProps: BadgeProps): import("react").JSX.Element;
|
|
1987
|
+
//#endregion
|
|
1988
|
+
//#region src/components/banner/banner.styles.d.ts
|
|
1989
|
+
export declare const bannerStyles: import("tailwind-variants").TVReturnType<{
|
|
1990
|
+
tone: {
|
|
1991
|
+
neutral: {
|
|
1992
|
+
root: string;
|
|
1993
|
+
icon: string;
|
|
1994
|
+
};
|
|
1995
|
+
primary: {
|
|
1996
|
+
root: string;
|
|
1997
|
+
};
|
|
1998
|
+
info: {
|
|
1999
|
+
root: string;
|
|
2000
|
+
};
|
|
2001
|
+
success: {
|
|
2002
|
+
root: string;
|
|
2003
|
+
};
|
|
2004
|
+
warning: {
|
|
2005
|
+
root: string;
|
|
2006
|
+
};
|
|
2007
|
+
danger: {
|
|
2008
|
+
root: string;
|
|
2009
|
+
};
|
|
2010
|
+
};
|
|
2011
|
+
}, {
|
|
2012
|
+
root: string[];
|
|
2013
|
+
inner: string;
|
|
2014
|
+
icon: string;
|
|
2015
|
+
content: string;
|
|
2016
|
+
action: string;
|
|
2017
|
+
dismiss: string;
|
|
2018
|
+
}, undefined, {
|
|
2019
|
+
tone: {
|
|
2020
|
+
neutral: {
|
|
2021
|
+
root: string;
|
|
2022
|
+
icon: string;
|
|
2023
|
+
};
|
|
2024
|
+
primary: {
|
|
2025
|
+
root: string;
|
|
2026
|
+
};
|
|
2027
|
+
info: {
|
|
2028
|
+
root: string;
|
|
2029
|
+
};
|
|
2030
|
+
success: {
|
|
2031
|
+
root: string;
|
|
2032
|
+
};
|
|
2033
|
+
warning: {
|
|
2034
|
+
root: string;
|
|
2035
|
+
};
|
|
2036
|
+
danger: {
|
|
2037
|
+
root: string;
|
|
2038
|
+
};
|
|
2039
|
+
};
|
|
2040
|
+
}, {
|
|
2041
|
+
root: string[];
|
|
2042
|
+
inner: string;
|
|
2043
|
+
icon: string;
|
|
2044
|
+
content: string;
|
|
2045
|
+
action: string;
|
|
2046
|
+
dismiss: string;
|
|
2047
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
2048
|
+
tone: {
|
|
2049
|
+
neutral: {
|
|
2050
|
+
root: string;
|
|
2051
|
+
icon: string;
|
|
2052
|
+
};
|
|
2053
|
+
primary: {
|
|
2054
|
+
root: string;
|
|
2055
|
+
};
|
|
2056
|
+
info: {
|
|
2057
|
+
root: string;
|
|
2058
|
+
};
|
|
2059
|
+
success: {
|
|
2060
|
+
root: string;
|
|
2061
|
+
};
|
|
2062
|
+
warning: {
|
|
2063
|
+
root: string;
|
|
2064
|
+
};
|
|
2065
|
+
danger: {
|
|
2066
|
+
root: string;
|
|
2067
|
+
};
|
|
2068
|
+
};
|
|
2069
|
+
}, {
|
|
2070
|
+
root: string[];
|
|
2071
|
+
inner: string;
|
|
2072
|
+
icon: string;
|
|
2073
|
+
content: string;
|
|
2074
|
+
action: string;
|
|
2075
|
+
dismiss: string;
|
|
2076
|
+
}>>;
|
|
2077
|
+
type BannerVariants = VariantProps<typeof bannerStyles>;
|
|
2078
|
+
declare module '@glyphui/tokens' {
|
|
2079
|
+
interface GlyphComponentRegistry {
|
|
2080
|
+
Banner: StylesEntry<typeof bannerStyles>;
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
//#endregion
|
|
2084
|
+
//#region src/components/banner/banner.d.ts
|
|
2085
|
+
interface BannerProps extends ComponentProps<'section'>, BannerVariants {
|
|
2086
|
+
/** Replaces the tone's default icon. `false` hides it. */
|
|
2087
|
+
icon?: ReactNode | false;
|
|
2088
|
+
action?: ReactNode;
|
|
2089
|
+
/** Shows a close button. */
|
|
2090
|
+
dismissible?: boolean;
|
|
2091
|
+
/** Remembers the dismissal in localStorage under this key, so the banner stays hidden. */
|
|
2092
|
+
storageKey?: string;
|
|
2093
|
+
onDismiss?: () => void;
|
|
2094
|
+
dismissLabel?: string;
|
|
2095
|
+
}
|
|
2096
|
+
/** A full-width announcement at the top of a page or section. */
|
|
2097
|
+
export declare function Banner(inProps: BannerProps): import("react").JSX.Element | null;
|
|
2098
|
+
//#endregion
|
|
2099
|
+
//#region src/components/blockquote/blockquote.d.ts
|
|
2100
|
+
export declare const blockquoteStyles: import("tailwind-variants").TVReturnType<{
|
|
2101
|
+
size: {
|
|
2102
|
+
sm: {
|
|
2103
|
+
quote: string;
|
|
2104
|
+
};
|
|
2105
|
+
md: {
|
|
2106
|
+
quote: string;
|
|
2107
|
+
};
|
|
2108
|
+
lg: {
|
|
2109
|
+
quote: string;
|
|
2110
|
+
};
|
|
2111
|
+
};
|
|
2112
|
+
}, {
|
|
2113
|
+
root: string;
|
|
2114
|
+
quote: string;
|
|
2115
|
+
caption: string;
|
|
2116
|
+
author: string;
|
|
2117
|
+
}, undefined, {
|
|
2118
|
+
size: {
|
|
2119
|
+
sm: {
|
|
2120
|
+
quote: string;
|
|
2121
|
+
};
|
|
2122
|
+
md: {
|
|
2123
|
+
quote: string;
|
|
2124
|
+
};
|
|
2125
|
+
lg: {
|
|
2126
|
+
quote: string;
|
|
2127
|
+
};
|
|
2128
|
+
};
|
|
2129
|
+
}, {
|
|
2130
|
+
root: string;
|
|
2131
|
+
quote: string;
|
|
2132
|
+
caption: string;
|
|
2133
|
+
author: string;
|
|
2134
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
2135
|
+
size: {
|
|
2136
|
+
sm: {
|
|
2137
|
+
quote: string;
|
|
2138
|
+
};
|
|
2139
|
+
md: {
|
|
2140
|
+
quote: string;
|
|
2141
|
+
};
|
|
2142
|
+
lg: {
|
|
2143
|
+
quote: string;
|
|
2144
|
+
};
|
|
2145
|
+
};
|
|
2146
|
+
}, {
|
|
2147
|
+
root: string;
|
|
2148
|
+
quote: string;
|
|
2149
|
+
caption: string;
|
|
2150
|
+
author: string;
|
|
2151
|
+
}>>;
|
|
2152
|
+
declare module '@glyphui/tokens' {
|
|
2153
|
+
interface GlyphComponentRegistry {
|
|
2154
|
+
Blockquote: StylesEntry<typeof blockquoteStyles>;
|
|
2155
|
+
}
|
|
2156
|
+
}
|
|
2157
|
+
interface BlockquoteProps extends ComponentProps<'figure'>, VariantProps<typeof blockquoteStyles> {
|
|
2158
|
+
/** Who said it. */
|
|
2159
|
+
author?: ReactNode;
|
|
2160
|
+
/** Their role or the work it's from, shown after the author. */
|
|
2161
|
+
source?: ReactNode;
|
|
2162
|
+
/** URL of the quoted source, set as the `cite` attribute. */
|
|
2163
|
+
citeUrl?: string;
|
|
2164
|
+
}
|
|
2165
|
+
/** A quotation with an optional attribution. */
|
|
2166
|
+
export declare function Blockquote(inProps: BlockquoteProps): import("react").JSX.Element;
|
|
2167
|
+
//#endregion
|
|
2168
|
+
//#region src/components/breadcrumb/breadcrumb.d.ts
|
|
2169
|
+
interface BreadcrumbItemData {
|
|
2170
|
+
label: ReactNode;
|
|
2171
|
+
/** Omit for the current page (normally the last item). */
|
|
2172
|
+
href?: string;
|
|
2173
|
+
}
|
|
2174
|
+
interface BreadcrumbProps extends ComponentProps<'nav'> {
|
|
2175
|
+
/** Data-driven trail. The last item is the current page. Omit to compose the parts yourself. */
|
|
2176
|
+
items?: readonly BreadcrumbItemData[];
|
|
2177
|
+
/** Custom separator between items. A chevron by default. */
|
|
2178
|
+
separator?: ReactNode;
|
|
2179
|
+
}
|
|
2180
|
+
/** Shows where the current page sits in the hierarchy. */
|
|
2181
|
+
export declare function Breadcrumb({ items, separator, className, children, ...props }: BreadcrumbProps): import("react").JSX.Element;
|
|
2182
|
+
export declare function BreadcrumbList({ className, ...props }: ComponentProps<'ol'>): import("react").JSX.Element;
|
|
2183
|
+
export declare function BreadcrumbItem({ className, ...props }: ComponentProps<'li'>): import("react").JSX.Element;
|
|
2184
|
+
interface BreadcrumbLinkProps {
|
|
2185
|
+
href: string;
|
|
2186
|
+
className?: string;
|
|
2187
|
+
children?: ReactNode;
|
|
2188
|
+
/** Render your own element (e.g. a router link) with breadcrumb link styles. */
|
|
2189
|
+
asChild?: boolean;
|
|
2190
|
+
}
|
|
2191
|
+
export declare function BreadcrumbLink({ href, className, children, asChild }: BreadcrumbLinkProps): import("react").JSX.Element;
|
|
2192
|
+
export declare function BreadcrumbPage({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
2193
|
+
export declare function BreadcrumbSeparator({ className, children, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
2194
|
+
//#endregion
|
|
2195
|
+
//#region src/components/breadcrumb/breadcrumb.styles.d.ts
|
|
2196
|
+
export declare const breadcrumbStyles: import("tailwind-variants").TVReturnType<{
|
|
2197
|
+
[key: string]: {
|
|
2198
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2199
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2200
|
+
link?: import("tailwind-variants").ClassValue;
|
|
2201
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2202
|
+
list?: import("tailwind-variants").ClassValue;
|
|
2203
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
2204
|
+
page?: import("tailwind-variants").ClassValue;
|
|
2205
|
+
};
|
|
2206
|
+
};
|
|
2207
|
+
} | {
|
|
2208
|
+
[x: string]: {
|
|
2209
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
2210
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2211
|
+
link?: import("tailwind-variants").ClassValue;
|
|
2212
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2213
|
+
list?: import("tailwind-variants").ClassValue;
|
|
2214
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
2215
|
+
page?: import("tailwind-variants").ClassValue;
|
|
2216
|
+
};
|
|
2217
|
+
};
|
|
2218
|
+
} | {}, {
|
|
2219
|
+
root: string;
|
|
2220
|
+
list: string;
|
|
2221
|
+
item: string;
|
|
2222
|
+
link: string[];
|
|
2223
|
+
page: string;
|
|
2224
|
+
separator: string;
|
|
2225
|
+
}, undefined, {
|
|
2226
|
+
[key: string]: {
|
|
2227
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2228
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2229
|
+
link?: import("tailwind-variants").ClassValue;
|
|
2230
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2231
|
+
list?: import("tailwind-variants").ClassValue;
|
|
2232
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
2233
|
+
page?: import("tailwind-variants").ClassValue;
|
|
2234
|
+
};
|
|
2235
|
+
};
|
|
2236
|
+
} | {}, {
|
|
2237
|
+
root: string;
|
|
2238
|
+
list: string;
|
|
2239
|
+
item: string;
|
|
2240
|
+
link: string[];
|
|
2241
|
+
page: string;
|
|
2242
|
+
separator: string;
|
|
2243
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
2244
|
+
root: string;
|
|
2245
|
+
list: string;
|
|
2246
|
+
item: string;
|
|
2247
|
+
link: string[];
|
|
2248
|
+
page: string;
|
|
2249
|
+
separator: string;
|
|
2250
|
+
}>>;
|
|
2251
|
+
declare module '@glyphui/tokens' {
|
|
2252
|
+
interface GlyphComponentRegistry {
|
|
2253
|
+
Breadcrumb: StylesEntry<typeof breadcrumbStyles>;
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
//#endregion
|
|
2257
|
+
//#region src/components/card/card.d.ts
|
|
2258
|
+
interface CardProps extends ComponentProps<'div'>, CardVariants {
|
|
2259
|
+
asChild?: boolean;
|
|
2260
|
+
}
|
|
2261
|
+
/** A surface that groups related content. Compose with CardHeader, CardTitle, CardBody, CardFooter. */
|
|
2262
|
+
export declare function Card(inProps: CardProps): import("react").JSX.Element;
|
|
2263
|
+
export declare function CardHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2264
|
+
interface CardTitleProps extends ComponentProps<'h3'> {
|
|
2265
|
+
asChild?: boolean;
|
|
2266
|
+
}
|
|
2267
|
+
export declare function CardTitle({ asChild, className, ...props }: CardTitleProps): import("react").JSX.Element;
|
|
2268
|
+
export declare function CardDescription({ className, ...props }: ComponentProps<'p'>): import("react").JSX.Element;
|
|
2269
|
+
export declare function CardBody({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2270
|
+
export declare function CardFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2271
|
+
//#endregion
|
|
2272
|
+
//#region src/components/code/code.styles.d.ts
|
|
2273
|
+
export declare const codeStyles: import("tailwind-variants").TVReturnType<{
|
|
2274
|
+
[key: string]: {
|
|
2275
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2276
|
+
base?: import("tailwind-variants").ClassValue;
|
|
2277
|
+
};
|
|
2278
|
+
};
|
|
2279
|
+
} | {
|
|
2280
|
+
[x: string]: {
|
|
2281
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
2282
|
+
base?: import("tailwind-variants").ClassValue;
|
|
2283
|
+
};
|
|
2284
|
+
};
|
|
2285
|
+
} | {}, {
|
|
2286
|
+
base: string;
|
|
2287
|
+
}, undefined, {
|
|
2288
|
+
[key: string]: {
|
|
2289
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2290
|
+
base?: import("tailwind-variants").ClassValue;
|
|
2291
|
+
};
|
|
2292
|
+
};
|
|
2293
|
+
} | {}, {
|
|
2294
|
+
base: string;
|
|
2295
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
2296
|
+
base: string;
|
|
2297
|
+
}>>;
|
|
2298
|
+
export declare const codeBlockStyles: import("tailwind-variants").TVReturnType<{
|
|
2299
|
+
wrap: {
|
|
2300
|
+
true: {
|
|
2301
|
+
pre: string;
|
|
2302
|
+
};
|
|
2303
|
+
};
|
|
2304
|
+
}, {
|
|
2305
|
+
root: string[];
|
|
2306
|
+
header: string;
|
|
2307
|
+
title: string;
|
|
2308
|
+
copy: string;
|
|
2309
|
+
floatingCopy: string;
|
|
2310
|
+
pre: string;
|
|
2311
|
+
}, undefined, {
|
|
2312
|
+
wrap: {
|
|
2313
|
+
true: {
|
|
2314
|
+
pre: string;
|
|
2315
|
+
};
|
|
2316
|
+
};
|
|
2317
|
+
}, {
|
|
2318
|
+
root: string[];
|
|
2319
|
+
header: string;
|
|
2320
|
+
title: string;
|
|
2321
|
+
copy: string;
|
|
2322
|
+
floatingCopy: string;
|
|
2323
|
+
pre: string;
|
|
2324
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
2325
|
+
wrap: {
|
|
2326
|
+
true: {
|
|
2327
|
+
pre: string;
|
|
2328
|
+
};
|
|
2329
|
+
};
|
|
2330
|
+
}, {
|
|
2331
|
+
root: string[];
|
|
2332
|
+
header: string;
|
|
2333
|
+
title: string;
|
|
2334
|
+
copy: string;
|
|
2335
|
+
floatingCopy: string;
|
|
2336
|
+
pre: string;
|
|
2337
|
+
}>>;
|
|
2338
|
+
type CodeBlockVariants = VariantProps<typeof codeBlockStyles>;
|
|
2339
|
+
declare module '@glyphui/tokens' {
|
|
2340
|
+
interface GlyphComponentRegistry {
|
|
2341
|
+
Code: StylesEntry<typeof codeStyles>;
|
|
2342
|
+
CodeBlock: StylesEntry<typeof codeBlockStyles>;
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
//#endregion
|
|
2346
|
+
//#region src/components/code/code.d.ts
|
|
2347
|
+
/** Inline code within running text. */
|
|
2348
|
+
export declare function Code(inProps: ComponentProps<'code'>): import("react").JSX.Element;
|
|
2349
|
+
interface CodeBlockProps extends Omit<ComponentProps<'figure'>, 'children' | 'title'>, CodeBlockVariants {
|
|
2350
|
+
/** The code to show and copy. */
|
|
2351
|
+
code: string;
|
|
2352
|
+
/** File name or caption shown in the header. */
|
|
2353
|
+
title?: ReactNode;
|
|
2354
|
+
/** Shown in the header when there is no title, e.g. "tsx". */
|
|
2355
|
+
language?: string;
|
|
2356
|
+
/** Show a copy button. Default true. */
|
|
2357
|
+
copyable?: boolean;
|
|
2358
|
+
}
|
|
2359
|
+
/** A block of code with an optional file name and a copy button. No syntax highlighting is applied. */
|
|
2360
|
+
export declare function CodeBlock(inProps: CodeBlockProps): import("react").JSX.Element;
|
|
2361
|
+
//#endregion
|
|
2362
|
+
//#region src/components/combobox/combobox.d.ts
|
|
2363
|
+
interface ComboboxOption<T extends string = string> {
|
|
2364
|
+
value: T;
|
|
2365
|
+
/** Shown in the list and trigger, and matched by search. */
|
|
2366
|
+
label: string;
|
|
2367
|
+
description?: ReactNode;
|
|
2368
|
+
/** Extra search terms, e.g. abbreviations. */
|
|
2369
|
+
keywords?: readonly string[];
|
|
2370
|
+
disabled?: boolean;
|
|
2371
|
+
}
|
|
2372
|
+
interface SingleProps<T extends string> {
|
|
2373
|
+
multiple?: false;
|
|
2374
|
+
value?: T | null;
|
|
2375
|
+
defaultValue?: T | null;
|
|
2376
|
+
onValueChange?: (value: T | null) => void;
|
|
2377
|
+
}
|
|
2378
|
+
interface MultipleProps<T extends string> {
|
|
2379
|
+
multiple: true;
|
|
2380
|
+
value?: readonly T[];
|
|
2381
|
+
defaultValue?: readonly T[];
|
|
2382
|
+
onValueChange?: (value: T[]) => void;
|
|
2383
|
+
}
|
|
2384
|
+
interface SharedProps<T extends string> {
|
|
2385
|
+
options: readonly ComboboxOption<T>[];
|
|
2386
|
+
placeholder?: ReactNode;
|
|
2387
|
+
searchPlaceholder?: string;
|
|
2388
|
+
/** Shown when the search matches nothing. */
|
|
2389
|
+
emptyText?: ReactNode;
|
|
2390
|
+
/** Chips shown in the trigger before collapsing to "+N". Multiple mode only. Default 3. */
|
|
2391
|
+
maxChips?: number;
|
|
2392
|
+
size?: 'sm' | 'md' | 'lg';
|
|
2393
|
+
disabled?: boolean;
|
|
2394
|
+
required?: boolean;
|
|
2395
|
+
/** Submits the value with a native form (comma-free: one hidden input per value). */
|
|
2396
|
+
name?: string;
|
|
2397
|
+
id?: string;
|
|
2398
|
+
className?: string;
|
|
2399
|
+
contentClassName?: string;
|
|
2400
|
+
'aria-label'?: string;
|
|
2401
|
+
'aria-describedby'?: string;
|
|
2402
|
+
'aria-invalid'?: boolean;
|
|
2403
|
+
}
|
|
2404
|
+
type ComboboxProps<T extends string = string> = SharedProps<T> & (SingleProps<T> | MultipleProps<T>);
|
|
2405
|
+
/**
|
|
2406
|
+
* A select with search, for long option lists. `multiple` allows several values, shown
|
|
2407
|
+
* as chips. The value type is inferred from `options`.
|
|
2408
|
+
*/
|
|
2409
|
+
export declare function Combobox<T extends string>(inProps: ComboboxProps<T>): import("react").JSX.Element;
|
|
2410
|
+
//#endregion
|
|
2411
|
+
//#region src/components/combobox/combobox.styles.d.ts
|
|
2412
|
+
export declare const comboboxStyles: import("tailwind-variants").TVReturnType<{
|
|
2413
|
+
size: {
|
|
2414
|
+
sm: {
|
|
2415
|
+
trigger: string;
|
|
2416
|
+
};
|
|
2417
|
+
md: {
|
|
2418
|
+
trigger: string;
|
|
2419
|
+
};
|
|
2420
|
+
lg: {
|
|
2421
|
+
trigger: string;
|
|
2422
|
+
};
|
|
2423
|
+
};
|
|
2424
|
+
multiple: {
|
|
2425
|
+
true: {
|
|
2426
|
+
trigger: string;
|
|
2427
|
+
value: string;
|
|
2428
|
+
};
|
|
2429
|
+
};
|
|
2430
|
+
}, {
|
|
2431
|
+
trigger: string[];
|
|
2432
|
+
value: string;
|
|
2433
|
+
placeholder: string;
|
|
2434
|
+
chip: string;
|
|
2435
|
+
icon: string;
|
|
2436
|
+
content: string[];
|
|
2437
|
+
search: string;
|
|
2438
|
+
input: string;
|
|
2439
|
+
list: string;
|
|
2440
|
+
empty: string;
|
|
2441
|
+
item: string[];
|
|
2442
|
+
itemText: string;
|
|
2443
|
+
itemDescription: string;
|
|
2444
|
+
check: string;
|
|
2445
|
+
}, undefined, {
|
|
2446
|
+
size: {
|
|
2447
|
+
sm: {
|
|
2448
|
+
trigger: string;
|
|
2449
|
+
};
|
|
2450
|
+
md: {
|
|
2451
|
+
trigger: string;
|
|
2452
|
+
};
|
|
2453
|
+
lg: {
|
|
2454
|
+
trigger: string;
|
|
2455
|
+
};
|
|
2456
|
+
};
|
|
2457
|
+
multiple: {
|
|
2458
|
+
true: {
|
|
2459
|
+
trigger: string;
|
|
2460
|
+
value: string;
|
|
2461
|
+
};
|
|
2462
|
+
};
|
|
2463
|
+
}, {
|
|
2464
|
+
trigger: string[];
|
|
2465
|
+
value: string;
|
|
2466
|
+
placeholder: string;
|
|
2467
|
+
chip: string;
|
|
2468
|
+
icon: string;
|
|
2469
|
+
content: string[];
|
|
2470
|
+
search: string;
|
|
2471
|
+
input: string;
|
|
2472
|
+
list: string;
|
|
2473
|
+
empty: string;
|
|
2474
|
+
item: string[];
|
|
2475
|
+
itemText: string;
|
|
2476
|
+
itemDescription: string;
|
|
2477
|
+
check: string;
|
|
2478
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
2479
|
+
size: {
|
|
2480
|
+
sm: {
|
|
2481
|
+
trigger: string;
|
|
2482
|
+
};
|
|
2483
|
+
md: {
|
|
2484
|
+
trigger: string;
|
|
2485
|
+
};
|
|
2486
|
+
lg: {
|
|
2487
|
+
trigger: string;
|
|
2488
|
+
};
|
|
2489
|
+
};
|
|
2490
|
+
multiple: {
|
|
2491
|
+
true: {
|
|
2492
|
+
trigger: string;
|
|
2493
|
+
value: string;
|
|
2494
|
+
};
|
|
2495
|
+
};
|
|
2496
|
+
}, {
|
|
2497
|
+
trigger: string[];
|
|
2498
|
+
value: string;
|
|
2499
|
+
placeholder: string;
|
|
2500
|
+
chip: string;
|
|
2501
|
+
icon: string;
|
|
2502
|
+
content: string[];
|
|
2503
|
+
search: string;
|
|
2504
|
+
input: string;
|
|
2505
|
+
list: string;
|
|
2506
|
+
empty: string;
|
|
2507
|
+
item: string[];
|
|
2508
|
+
itemText: string;
|
|
2509
|
+
itemDescription: string;
|
|
2510
|
+
check: string;
|
|
2511
|
+
}>>;
|
|
2512
|
+
type ComboboxVariants = VariantProps<typeof comboboxStyles>;
|
|
2513
|
+
declare module '@glyphui/tokens' {
|
|
2514
|
+
interface GlyphComponentRegistry {
|
|
2515
|
+
Combobox: StylesEntry<typeof comboboxStyles>;
|
|
2516
|
+
}
|
|
2517
|
+
}
|
|
2518
|
+
//#endregion
|
|
2519
|
+
//#region src/components/command-menu/command-menu.d.ts
|
|
2520
|
+
interface CommandMenuProps {
|
|
2521
|
+
open?: boolean;
|
|
2522
|
+
defaultOpen?: boolean;
|
|
2523
|
+
onOpenChange?: (open: boolean) => void;
|
|
2524
|
+
/** Accessible name of the dialog and list. */
|
|
2525
|
+
label?: string;
|
|
2526
|
+
/** Wrap around from the last item to the first with arrow keys. Default true. */
|
|
2527
|
+
loop?: boolean;
|
|
2528
|
+
/** Replace cmdk's fuzzy ranking. Return 0 to hide an item, higher numbers to rank it first. */
|
|
2529
|
+
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
2530
|
+
className?: string;
|
|
2531
|
+
children: ReactNode;
|
|
2532
|
+
}
|
|
2533
|
+
/**
|
|
2534
|
+
* A ⌘K command palette in a modal dialog: search, grouped actions, keyboard navigation.
|
|
2535
|
+
* Pair with `useCommandMenuShortcut(setOpen)` to open it from the keyboard.
|
|
2536
|
+
*/
|
|
2537
|
+
export declare function CommandMenu(inProps: CommandMenuProps): import("react").JSX.Element;
|
|
2538
|
+
/** The palette without a dialog, for inline search panels. */
|
|
2539
|
+
export declare function Command({ className, ...props }: ComponentProps<typeof Command$1>): import("react").JSX.Element;
|
|
2540
|
+
export declare function CommandInput({ className, ...props }: ComponentProps<typeof Command$1.Input>): import("react").JSX.Element;
|
|
2541
|
+
export declare function CommandList({ className, ...props }: ComponentProps<typeof Command$1.List>): import("react").JSX.Element;
|
|
2542
|
+
export declare function CommandEmpty({ className, children, ...props }: ComponentProps<typeof Command$1.Empty>): import("react").JSX.Element;
|
|
2543
|
+
export declare function CommandGroup({ className, ...props }: ComponentProps<typeof Command$1.Group>): import("react").JSX.Element;
|
|
2544
|
+
interface CommandItemProps extends ComponentProps<typeof Command$1.Item> {
|
|
2545
|
+
icon?: ReactNode;
|
|
2546
|
+
/** Keyboard hint shown at the end, e.g. `"⌘N"` or `["⌘", "N"]`. Display only. */
|
|
2547
|
+
shortcut?: string | readonly string[];
|
|
2548
|
+
/** Close the surrounding CommandMenu after selecting. Default true. */
|
|
2549
|
+
closeOnSelect?: boolean;
|
|
2550
|
+
}
|
|
2551
|
+
export declare function CommandItem({ icon, shortcut, closeOnSelect, onSelect, className, children, ...props }: CommandItemProps): import("react").JSX.Element;
|
|
2552
|
+
export declare function CommandSeparator({ className, ...props }: ComponentProps<typeof Command$1.Separator>): import("react").JSX.Element;
|
|
2553
|
+
/** Toggles a command menu with ⌘K (macOS) or Ctrl+K. Pass another key to change it. */
|
|
2554
|
+
export declare function useCommandMenuShortcut(setOpen: Dispatch<SetStateAction<boolean>>, key?: string): void;
|
|
2555
|
+
//#endregion
|
|
2556
|
+
//#region src/components/command-menu/command-menu.styles.d.ts
|
|
2557
|
+
export declare const commandMenuStyles: import("tailwind-variants").TVReturnType<{
|
|
2558
|
+
[key: string]: {
|
|
2559
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2560
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2561
|
+
search?: import("tailwind-variants").ClassValue;
|
|
2562
|
+
group?: import("tailwind-variants").ClassValue;
|
|
2563
|
+
input?: import("tailwind-variants").ClassValue;
|
|
2564
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2565
|
+
content?: import("tailwind-variants").ClassValue;
|
|
2566
|
+
list?: import("tailwind-variants").ClassValue;
|
|
2567
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
2568
|
+
overlay?: import("tailwind-variants").ClassValue;
|
|
2569
|
+
itemIcon?: import("tailwind-variants").ClassValue;
|
|
2570
|
+
itemLabel?: import("tailwind-variants").ClassValue;
|
|
2571
|
+
empty?: import("tailwind-variants").ClassValue;
|
|
2572
|
+
shortcut?: import("tailwind-variants").ClassValue;
|
|
2573
|
+
};
|
|
2574
|
+
};
|
|
2575
|
+
} | {
|
|
2576
|
+
[x: string]: {
|
|
2577
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
2578
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2579
|
+
search?: import("tailwind-variants").ClassValue;
|
|
2580
|
+
group?: import("tailwind-variants").ClassValue;
|
|
2581
|
+
input?: import("tailwind-variants").ClassValue;
|
|
2582
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2583
|
+
content?: import("tailwind-variants").ClassValue;
|
|
2584
|
+
list?: import("tailwind-variants").ClassValue;
|
|
2585
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
2586
|
+
overlay?: import("tailwind-variants").ClassValue;
|
|
2587
|
+
itemIcon?: import("tailwind-variants").ClassValue;
|
|
2588
|
+
itemLabel?: import("tailwind-variants").ClassValue;
|
|
2589
|
+
empty?: import("tailwind-variants").ClassValue;
|
|
2590
|
+
shortcut?: import("tailwind-variants").ClassValue;
|
|
2591
|
+
};
|
|
2592
|
+
};
|
|
2593
|
+
} | {}, {
|
|
2594
|
+
overlay: string;
|
|
2595
|
+
content: string[];
|
|
2596
|
+
root: string;
|
|
2597
|
+
search: string;
|
|
2598
|
+
input: string;
|
|
2599
|
+
list: string;
|
|
2600
|
+
empty: string;
|
|
2601
|
+
group: string[];
|
|
2602
|
+
item: string[];
|
|
2603
|
+
itemIcon: string;
|
|
2604
|
+
itemLabel: string;
|
|
2605
|
+
shortcut: string;
|
|
2606
|
+
separator: string;
|
|
2607
|
+
}, undefined, {
|
|
2608
|
+
[key: string]: {
|
|
2609
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2610
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2611
|
+
search?: import("tailwind-variants").ClassValue;
|
|
2612
|
+
group?: import("tailwind-variants").ClassValue;
|
|
2613
|
+
input?: import("tailwind-variants").ClassValue;
|
|
2614
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2615
|
+
content?: import("tailwind-variants").ClassValue;
|
|
2616
|
+
list?: import("tailwind-variants").ClassValue;
|
|
2617
|
+
separator?: import("tailwind-variants").ClassValue;
|
|
2618
|
+
overlay?: import("tailwind-variants").ClassValue;
|
|
2619
|
+
itemIcon?: import("tailwind-variants").ClassValue;
|
|
2620
|
+
itemLabel?: import("tailwind-variants").ClassValue;
|
|
2621
|
+
empty?: import("tailwind-variants").ClassValue;
|
|
2622
|
+
shortcut?: import("tailwind-variants").ClassValue;
|
|
2623
|
+
};
|
|
2624
|
+
};
|
|
2625
|
+
} | {}, {
|
|
2626
|
+
overlay: string;
|
|
2627
|
+
content: string[];
|
|
2628
|
+
root: string;
|
|
2629
|
+
search: string;
|
|
2630
|
+
input: string;
|
|
2631
|
+
list: string;
|
|
2632
|
+
empty: string;
|
|
2633
|
+
group: string[];
|
|
2634
|
+
item: string[];
|
|
2635
|
+
itemIcon: string;
|
|
2636
|
+
itemLabel: string;
|
|
2637
|
+
shortcut: string;
|
|
2638
|
+
separator: string;
|
|
2639
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
2640
|
+
overlay: string;
|
|
2641
|
+
content: string[];
|
|
2642
|
+
root: string;
|
|
2643
|
+
search: string;
|
|
2644
|
+
input: string;
|
|
2645
|
+
list: string;
|
|
2646
|
+
empty: string;
|
|
2647
|
+
group: string[];
|
|
2648
|
+
item: string[];
|
|
2649
|
+
itemIcon: string;
|
|
2650
|
+
itemLabel: string;
|
|
2651
|
+
shortcut: string;
|
|
2652
|
+
separator: string;
|
|
2653
|
+
}>>;
|
|
2654
|
+
declare module '@glyphui/tokens' {
|
|
2655
|
+
interface GlyphComponentRegistry {
|
|
2656
|
+
CommandMenu: StylesEntry<typeof commandMenuStyles>;
|
|
2657
|
+
}
|
|
2658
|
+
}
|
|
2659
|
+
//#endregion
|
|
2660
|
+
//#region src/components/container/container.d.ts
|
|
2661
|
+
export declare const containerStyles: import("tailwind-variants").TVReturnType<{
|
|
2662
|
+
size: {
|
|
2663
|
+
sm: "max-w-2xl";
|
|
2664
|
+
md: "max-w-3xl";
|
|
2665
|
+
lg: "max-w-5xl";
|
|
2666
|
+
xl: "max-w-7xl";
|
|
2667
|
+
full: "max-w-none";
|
|
2668
|
+
};
|
|
2669
|
+
}, undefined, "mx-auto w-full px-4 sm:px-6", {
|
|
2670
|
+
size: {
|
|
2671
|
+
sm: "max-w-2xl";
|
|
2672
|
+
md: "max-w-3xl";
|
|
2673
|
+
lg: "max-w-5xl";
|
|
2674
|
+
xl: "max-w-7xl";
|
|
2675
|
+
full: "max-w-none";
|
|
2676
|
+
};
|
|
2677
|
+
}, undefined, import("tailwind-variants").TVReturnTypeLike<{
|
|
2678
|
+
size: {
|
|
2679
|
+
sm: "max-w-2xl";
|
|
2680
|
+
md: "max-w-3xl";
|
|
2681
|
+
lg: "max-w-5xl";
|
|
2682
|
+
xl: "max-w-7xl";
|
|
2683
|
+
full: "max-w-none";
|
|
2684
|
+
};
|
|
2685
|
+
}, undefined>>;
|
|
2686
|
+
interface ContainerProps extends ComponentProps<'div'>, VariantProps<typeof containerStyles> {
|
|
2687
|
+
asChild?: boolean;
|
|
2688
|
+
}
|
|
2689
|
+
/** Centers content at a readable max width with consistent side gutters. */
|
|
2690
|
+
export declare function Container({ size, asChild, className, ...props }: ContainerProps): import("react").JSX.Element;
|
|
2691
|
+
//#endregion
|
|
2692
|
+
//#region src/components/description-list/description-list.styles.d.ts
|
|
2693
|
+
export declare const descriptionListStyles: import("tailwind-variants").TVReturnType<{
|
|
2694
|
+
layout: {
|
|
2695
|
+
stacked: {
|
|
2696
|
+
root: string;
|
|
2697
|
+
};
|
|
2698
|
+
inline: {
|
|
2699
|
+
item: string;
|
|
2700
|
+
};
|
|
2701
|
+
};
|
|
2702
|
+
dividers: {
|
|
2703
|
+
true: {
|
|
2704
|
+
root: string;
|
|
2705
|
+
item: string;
|
|
2706
|
+
};
|
|
2707
|
+
false: {};
|
|
2708
|
+
};
|
|
2709
|
+
}, {
|
|
2710
|
+
root: string;
|
|
2711
|
+
item: string;
|
|
2712
|
+
term: string;
|
|
2713
|
+
details: string;
|
|
2714
|
+
}, undefined, {
|
|
2715
|
+
layout: {
|
|
2716
|
+
stacked: {
|
|
2717
|
+
root: string;
|
|
2718
|
+
};
|
|
2719
|
+
inline: {
|
|
2720
|
+
item: string;
|
|
2721
|
+
};
|
|
2722
|
+
};
|
|
2723
|
+
dividers: {
|
|
2724
|
+
true: {
|
|
2725
|
+
root: string;
|
|
2726
|
+
item: string;
|
|
2727
|
+
};
|
|
2728
|
+
false: {};
|
|
2729
|
+
};
|
|
2730
|
+
}, {
|
|
2731
|
+
root: string;
|
|
2732
|
+
item: string;
|
|
2733
|
+
term: string;
|
|
2734
|
+
details: string;
|
|
2735
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
2736
|
+
layout: {
|
|
2737
|
+
stacked: {
|
|
2738
|
+
root: string;
|
|
2739
|
+
};
|
|
2740
|
+
inline: {
|
|
2741
|
+
item: string;
|
|
2742
|
+
};
|
|
2743
|
+
};
|
|
2744
|
+
dividers: {
|
|
2745
|
+
true: {
|
|
2746
|
+
root: string;
|
|
2747
|
+
item: string;
|
|
2748
|
+
};
|
|
2749
|
+
false: {};
|
|
2750
|
+
};
|
|
2751
|
+
}, {
|
|
2752
|
+
root: string;
|
|
2753
|
+
item: string;
|
|
2754
|
+
term: string;
|
|
2755
|
+
details: string;
|
|
2756
|
+
}>>;
|
|
2757
|
+
type DescriptionListVariants = VariantProps<typeof descriptionListStyles>;
|
|
2758
|
+
declare module '@glyphui/tokens' {
|
|
2759
|
+
interface GlyphComponentRegistry {
|
|
2760
|
+
DescriptionList: StylesEntry<typeof descriptionListStyles>;
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2763
|
+
//#endregion
|
|
2764
|
+
//#region src/components/description-list/description-list.d.ts
|
|
2765
|
+
interface DescriptionListProps extends ComponentProps<'dl'>, DescriptionListVariants {}
|
|
2766
|
+
/**
|
|
2767
|
+
* Label–value pairs, such as account details or order metadata.
|
|
2768
|
+
* `layout="inline"` puts terms and details side by side from the `sm` breakpoint.
|
|
2769
|
+
*/
|
|
2770
|
+
export declare function DescriptionList(inProps: DescriptionListProps): import("react").JSX.Element;
|
|
2771
|
+
interface DescriptionItemProps extends Omit<ComponentProps<'div'>, 'children'> {
|
|
2772
|
+
term: ReactNode;
|
|
2773
|
+
children: ReactNode;
|
|
2774
|
+
}
|
|
2775
|
+
export declare function DescriptionItem({ term, children, className, ...props }: DescriptionItemProps): import("react").JSX.Element;
|
|
2776
|
+
//#endregion
|
|
2777
|
+
//#region src/components/dialog/dialog.styles.d.ts
|
|
2778
|
+
export declare const dialogStyles: import("tailwind-variants").TVReturnType<{
|
|
2779
|
+
size: {
|
|
2780
|
+
sm: {
|
|
2781
|
+
content: string;
|
|
2782
|
+
};
|
|
2783
|
+
md: {
|
|
2784
|
+
content: string;
|
|
2785
|
+
};
|
|
2786
|
+
lg: {
|
|
2787
|
+
content: string;
|
|
2788
|
+
};
|
|
2789
|
+
xl: {
|
|
2790
|
+
content: string;
|
|
2791
|
+
};
|
|
2792
|
+
};
|
|
2793
|
+
}, {
|
|
2794
|
+
overlay: string;
|
|
2795
|
+
content: string[];
|
|
2796
|
+
close: string[];
|
|
2797
|
+
header: string;
|
|
2798
|
+
title: string;
|
|
2799
|
+
description: string;
|
|
2800
|
+
body: string;
|
|
2801
|
+
footer: string;
|
|
2802
|
+
}, undefined, {
|
|
2803
|
+
size: {
|
|
2804
|
+
sm: {
|
|
2805
|
+
content: string;
|
|
2806
|
+
};
|
|
2807
|
+
md: {
|
|
2808
|
+
content: string;
|
|
2809
|
+
};
|
|
2810
|
+
lg: {
|
|
2811
|
+
content: string;
|
|
2812
|
+
};
|
|
2813
|
+
xl: {
|
|
2814
|
+
content: string;
|
|
2815
|
+
};
|
|
2816
|
+
};
|
|
2817
|
+
}, {
|
|
2818
|
+
overlay: string;
|
|
2819
|
+
content: string[];
|
|
2820
|
+
close: string[];
|
|
2821
|
+
header: string;
|
|
2822
|
+
title: string;
|
|
2823
|
+
description: string;
|
|
2824
|
+
body: string;
|
|
2825
|
+
footer: string;
|
|
2826
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
2827
|
+
size: {
|
|
2828
|
+
sm: {
|
|
2829
|
+
content: string;
|
|
2830
|
+
};
|
|
2831
|
+
md: {
|
|
2832
|
+
content: string;
|
|
2833
|
+
};
|
|
2834
|
+
lg: {
|
|
2835
|
+
content: string;
|
|
2836
|
+
};
|
|
2837
|
+
xl: {
|
|
2838
|
+
content: string;
|
|
2839
|
+
};
|
|
2840
|
+
};
|
|
2841
|
+
}, {
|
|
2842
|
+
overlay: string;
|
|
2843
|
+
content: string[];
|
|
2844
|
+
close: string[];
|
|
2845
|
+
header: string;
|
|
2846
|
+
title: string;
|
|
2847
|
+
description: string;
|
|
2848
|
+
body: string;
|
|
2849
|
+
footer: string;
|
|
2850
|
+
}>>;
|
|
2851
|
+
type DialogVariants = VariantProps<typeof dialogStyles>;
|
|
2852
|
+
declare module '@glyphui/tokens' {
|
|
2853
|
+
interface GlyphComponentRegistry {
|
|
2854
|
+
Dialog: StylesEntry<typeof dialogStyles>;
|
|
2855
|
+
}
|
|
2856
|
+
}
|
|
2857
|
+
//#endregion
|
|
2858
|
+
//#region src/components/dialog/dialog.d.ts
|
|
2859
|
+
/** A modal window. Focus is trapped inside and returns to the trigger on close. */
|
|
2860
|
+
export declare const Dialog: import("react").FC<Dialog$1.DialogProps>;
|
|
2861
|
+
export declare const DialogTrigger: import("react").ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
2862
|
+
export declare const DialogClose: import("react").ForwardRefExoticComponent<Dialog$1.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
2863
|
+
interface DialogContentProps extends ComponentProps<typeof Dialog$1.Content>, DialogVariants {
|
|
2864
|
+
/** Show the close button in the corner. Default true. */
|
|
2865
|
+
showClose?: boolean;
|
|
2866
|
+
overlayClassName?: string;
|
|
2867
|
+
}
|
|
2868
|
+
export declare function DialogContent(inProps: DialogContentProps): import("react").JSX.Element;
|
|
2869
|
+
export declare function DialogHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2870
|
+
export declare function DialogTitle({ className, ...props }: ComponentProps<typeof Dialog$1.Title>): import("react").JSX.Element;
|
|
2871
|
+
export declare function DialogDescription({ className, ...props }: ComponentProps<typeof Dialog$1.Description>): import("react").JSX.Element;
|
|
2872
|
+
export declare function DialogBody({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2873
|
+
export declare function DialogFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2874
|
+
//#endregion
|
|
2875
|
+
//#region src/components/dropdown-menu/dropdown-menu.d.ts
|
|
2876
|
+
/** A menu of actions opened from a button: row actions, account menus, "more" buttons. */
|
|
2877
|
+
export declare const DropdownMenu: import("react").FC<DropdownMenu$1.DropdownMenuProps>;
|
|
2878
|
+
export declare const DropdownMenuTrigger: import("react").ForwardRefExoticComponent<DropdownMenu$1.DropdownMenuTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
2879
|
+
export declare const DropdownMenuGroup: import("react").ForwardRefExoticComponent<DropdownMenu$1.DropdownMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2880
|
+
export declare const DropdownMenuRadioGroup: import("react").ForwardRefExoticComponent<DropdownMenu$1.DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
2881
|
+
export declare const DropdownMenuSub: import("react").FC<DropdownMenu$1.DropdownMenuSubProps>;
|
|
2882
|
+
export declare function DropdownMenuContent(inProps: ComponentProps<typeof DropdownMenu$1.Content>): import("react").JSX.Element;
|
|
2883
|
+
interface DropdownMenuItemProps extends ComponentProps<typeof DropdownMenu$1.Item> {
|
|
2884
|
+
icon?: ReactNode;
|
|
2885
|
+
/** Keyboard hint shown at the end, e.g. "⌘D". Display only. */
|
|
2886
|
+
shortcut?: ReactNode;
|
|
2887
|
+
/** `danger` for destructive actions. */
|
|
2888
|
+
tone?: 'default' | 'danger';
|
|
2889
|
+
/** Indent to line up with checkbox and radio items. */
|
|
2890
|
+
inset?: boolean;
|
|
2891
|
+
}
|
|
2892
|
+
export declare function DropdownMenuItem({ icon, shortcut, tone, inset, className, children, ...props }: DropdownMenuItemProps): import("react").JSX.Element;
|
|
2893
|
+
export declare function DropdownMenuCheckboxItem({ className, children, ...props }: ComponentProps<typeof DropdownMenu$1.CheckboxItem>): import("react").JSX.Element;
|
|
2894
|
+
export declare function DropdownMenuRadioItem({ className, children, ...props }: ComponentProps<typeof DropdownMenu$1.RadioItem>): import("react").JSX.Element;
|
|
2895
|
+
export declare function DropdownMenuLabel({ inset, className, ...props }: ComponentProps<typeof DropdownMenu$1.Label> & {
|
|
2896
|
+
inset?: boolean;
|
|
2897
|
+
}): import("react").JSX.Element;
|
|
2898
|
+
export declare function DropdownMenuSeparator({ className, ...props }: ComponentProps<typeof DropdownMenu$1.Separator>): import("react").JSX.Element;
|
|
2899
|
+
export declare function DropdownMenuShortcut({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
2900
|
+
interface DropdownMenuSubTriggerProps extends ComponentProps<typeof DropdownMenu$1.SubTrigger> {
|
|
2901
|
+
icon?: ReactNode;
|
|
2902
|
+
}
|
|
2903
|
+
export declare function DropdownMenuSubTrigger({ icon, className, children, ...props }: DropdownMenuSubTriggerProps): import("react").JSX.Element;
|
|
2904
|
+
export declare function DropdownMenuSubContent({ sideOffset, className, ...props }: ComponentProps<typeof DropdownMenu$1.SubContent>): import("react").JSX.Element;
|
|
2905
|
+
//#endregion
|
|
2906
|
+
//#region src/components/dropdown-menu/dropdown-menu.styles.d.ts
|
|
2907
|
+
export declare const dropdownMenuStyles: import("tailwind-variants").TVReturnType<{
|
|
2908
|
+
tone: {
|
|
2909
|
+
default: {};
|
|
2910
|
+
danger: {
|
|
2911
|
+
item: string;
|
|
2912
|
+
icon: string;
|
|
2913
|
+
};
|
|
2914
|
+
};
|
|
2915
|
+
inset: {
|
|
2916
|
+
true: {
|
|
2917
|
+
item: string;
|
|
2918
|
+
label: string;
|
|
2919
|
+
};
|
|
2920
|
+
};
|
|
2921
|
+
}, {
|
|
2922
|
+
content: string[];
|
|
2923
|
+
item: string[];
|
|
2924
|
+
icon: string;
|
|
2925
|
+
indicator: string;
|
|
2926
|
+
label: string;
|
|
2927
|
+
separator: string;
|
|
2928
|
+
shortcut: string;
|
|
2929
|
+
subTrigger: string[];
|
|
2930
|
+
subContent: string[];
|
|
2931
|
+
}, undefined, {
|
|
2932
|
+
tone: {
|
|
2933
|
+
default: {};
|
|
2934
|
+
danger: {
|
|
2935
|
+
item: string;
|
|
2936
|
+
icon: string;
|
|
2937
|
+
};
|
|
2938
|
+
};
|
|
2939
|
+
inset: {
|
|
2940
|
+
true: {
|
|
2941
|
+
item: string;
|
|
2942
|
+
label: string;
|
|
2943
|
+
};
|
|
2944
|
+
};
|
|
2945
|
+
}, {
|
|
2946
|
+
content: string[];
|
|
2947
|
+
item: string[];
|
|
2948
|
+
icon: string;
|
|
2949
|
+
indicator: string;
|
|
2950
|
+
label: string;
|
|
2951
|
+
separator: string;
|
|
2952
|
+
shortcut: string;
|
|
2953
|
+
subTrigger: string[];
|
|
2954
|
+
subContent: string[];
|
|
2955
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
2956
|
+
tone: {
|
|
2957
|
+
default: {};
|
|
2958
|
+
danger: {
|
|
2959
|
+
item: string;
|
|
2960
|
+
icon: string;
|
|
2961
|
+
};
|
|
2962
|
+
};
|
|
2963
|
+
inset: {
|
|
2964
|
+
true: {
|
|
2965
|
+
item: string;
|
|
2966
|
+
label: string;
|
|
2967
|
+
};
|
|
2968
|
+
};
|
|
2969
|
+
}, {
|
|
2970
|
+
content: string[];
|
|
2971
|
+
item: string[];
|
|
2972
|
+
icon: string;
|
|
2973
|
+
indicator: string;
|
|
2974
|
+
label: string;
|
|
2975
|
+
separator: string;
|
|
2976
|
+
shortcut: string;
|
|
2977
|
+
subTrigger: string[];
|
|
2978
|
+
subContent: string[];
|
|
2979
|
+
}>>;
|
|
2980
|
+
type DropdownMenuVariants = VariantProps<typeof dropdownMenuStyles>;
|
|
2981
|
+
declare module '@glyphui/tokens' {
|
|
2982
|
+
interface GlyphComponentRegistry {
|
|
2983
|
+
DropdownMenu: StylesEntry<typeof dropdownMenuStyles>;
|
|
2984
|
+
}
|
|
2985
|
+
}
|
|
2986
|
+
//#endregion
|
|
2987
|
+
//#region src/components/eyebrow/eyebrow.d.ts
|
|
2988
|
+
interface EyebrowProps extends ComponentProps<'p'>, EyebrowVariants {
|
|
2989
|
+
asChild?: boolean;
|
|
2990
|
+
}
|
|
2991
|
+
/** Small uppercase label that sits above a heading. */
|
|
2992
|
+
export declare function Eyebrow(inProps: EyebrowProps): import("react").JSX.Element;
|
|
2993
|
+
//#endregion
|
|
2994
|
+
//#region src/components/field/field-context.d.ts
|
|
2995
|
+
interface FieldContextValue {
|
|
2996
|
+
id: string;
|
|
2997
|
+
descriptionId: string | undefined;
|
|
2998
|
+
errorId: string | undefined;
|
|
2999
|
+
invalid: boolean;
|
|
3000
|
+
required: boolean;
|
|
3001
|
+
disabled: boolean;
|
|
3002
|
+
}
|
|
3003
|
+
export declare const FieldContext: import("react").Context<FieldContextValue | null>;
|
|
3004
|
+
interface ControlProps {
|
|
3005
|
+
id?: string | undefined;
|
|
3006
|
+
disabled?: boolean | undefined;
|
|
3007
|
+
required?: boolean | undefined;
|
|
3008
|
+
'aria-describedby'?: string | undefined;
|
|
3009
|
+
'aria-invalid'?: boolean | 'true' | 'false' | 'grammar' | 'spelling' | undefined;
|
|
3010
|
+
}
|
|
3011
|
+
/**
|
|
3012
|
+
* Connects a form control to the surrounding `Field`: id for the label, `aria-describedby`
|
|
3013
|
+
* for description and error, `aria-invalid`, `required`, `disabled`. Props passed directly win.
|
|
3014
|
+
*/
|
|
3015
|
+
export declare function useFieldControl<P extends ControlProps>(props: P): P;
|
|
3016
|
+
//#endregion
|
|
3017
|
+
//#region src/components/grid/grid.d.ts
|
|
3018
|
+
type Cols = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
3019
|
+
type Breakpoint = 'base' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3020
|
+
type GridCols = Cols | Partial<Record<Breakpoint, Cols>>;
|
|
3021
|
+
export declare const gridStyles: import("tailwind-variants").TVReturnType<{
|
|
3022
|
+
gap: {
|
|
3023
|
+
0: {
|
|
3024
|
+
base: string;
|
|
3025
|
+
};
|
|
3026
|
+
1: {
|
|
3027
|
+
base: string;
|
|
3028
|
+
};
|
|
3029
|
+
2: {
|
|
3030
|
+
base: string;
|
|
3031
|
+
};
|
|
3032
|
+
3: {
|
|
3033
|
+
base: string;
|
|
3034
|
+
};
|
|
3035
|
+
4: {
|
|
3036
|
+
base: string;
|
|
3037
|
+
};
|
|
3038
|
+
5: {
|
|
3039
|
+
base: string;
|
|
3040
|
+
};
|
|
3041
|
+
6: {
|
|
3042
|
+
base: string;
|
|
3043
|
+
};
|
|
3044
|
+
8: {
|
|
3045
|
+
base: string;
|
|
3046
|
+
};
|
|
3047
|
+
10: {
|
|
3048
|
+
base: string;
|
|
3049
|
+
};
|
|
3050
|
+
12: {
|
|
3051
|
+
base: string;
|
|
3052
|
+
};
|
|
3053
|
+
};
|
|
3054
|
+
align: {
|
|
3055
|
+
start: {
|
|
3056
|
+
base: string;
|
|
3057
|
+
};
|
|
3058
|
+
center: {
|
|
3059
|
+
base: string;
|
|
3060
|
+
};
|
|
3061
|
+
end: {
|
|
3062
|
+
base: string;
|
|
3063
|
+
};
|
|
3064
|
+
stretch: {
|
|
3065
|
+
base: string;
|
|
3066
|
+
};
|
|
3067
|
+
};
|
|
3068
|
+
}, {
|
|
3069
|
+
base: string;
|
|
3070
|
+
}, undefined, {
|
|
3071
|
+
gap: {
|
|
3072
|
+
0: {
|
|
3073
|
+
base: string;
|
|
3074
|
+
};
|
|
3075
|
+
1: {
|
|
3076
|
+
base: string;
|
|
3077
|
+
};
|
|
3078
|
+
2: {
|
|
3079
|
+
base: string;
|
|
3080
|
+
};
|
|
3081
|
+
3: {
|
|
3082
|
+
base: string;
|
|
3083
|
+
};
|
|
3084
|
+
4: {
|
|
3085
|
+
base: string;
|
|
3086
|
+
};
|
|
3087
|
+
5: {
|
|
3088
|
+
base: string;
|
|
3089
|
+
};
|
|
3090
|
+
6: {
|
|
3091
|
+
base: string;
|
|
3092
|
+
};
|
|
3093
|
+
8: {
|
|
3094
|
+
base: string;
|
|
3095
|
+
};
|
|
3096
|
+
10: {
|
|
3097
|
+
base: string;
|
|
3098
|
+
};
|
|
3099
|
+
12: {
|
|
3100
|
+
base: string;
|
|
3101
|
+
};
|
|
3102
|
+
};
|
|
3103
|
+
align: {
|
|
3104
|
+
start: {
|
|
3105
|
+
base: string;
|
|
3106
|
+
};
|
|
3107
|
+
center: {
|
|
3108
|
+
base: string;
|
|
3109
|
+
};
|
|
3110
|
+
end: {
|
|
3111
|
+
base: string;
|
|
3112
|
+
};
|
|
3113
|
+
stretch: {
|
|
3114
|
+
base: string;
|
|
3115
|
+
};
|
|
3116
|
+
};
|
|
3117
|
+
}, {
|
|
3118
|
+
base: string;
|
|
3119
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
3120
|
+
gap: {
|
|
3121
|
+
0: {
|
|
3122
|
+
base: string;
|
|
3123
|
+
};
|
|
3124
|
+
1: {
|
|
3125
|
+
base: string;
|
|
3126
|
+
};
|
|
3127
|
+
2: {
|
|
3128
|
+
base: string;
|
|
3129
|
+
};
|
|
3130
|
+
3: {
|
|
3131
|
+
base: string;
|
|
3132
|
+
};
|
|
3133
|
+
4: {
|
|
3134
|
+
base: string;
|
|
3135
|
+
};
|
|
3136
|
+
5: {
|
|
3137
|
+
base: string;
|
|
3138
|
+
};
|
|
3139
|
+
6: {
|
|
3140
|
+
base: string;
|
|
3141
|
+
};
|
|
3142
|
+
8: {
|
|
3143
|
+
base: string;
|
|
3144
|
+
};
|
|
3145
|
+
10: {
|
|
3146
|
+
base: string;
|
|
3147
|
+
};
|
|
3148
|
+
12: {
|
|
3149
|
+
base: string;
|
|
3150
|
+
};
|
|
3151
|
+
};
|
|
3152
|
+
align: {
|
|
3153
|
+
start: {
|
|
3154
|
+
base: string;
|
|
3155
|
+
};
|
|
3156
|
+
center: {
|
|
3157
|
+
base: string;
|
|
3158
|
+
};
|
|
3159
|
+
end: {
|
|
3160
|
+
base: string;
|
|
3161
|
+
};
|
|
3162
|
+
stretch: {
|
|
3163
|
+
base: string;
|
|
3164
|
+
};
|
|
3165
|
+
};
|
|
3166
|
+
}, {
|
|
3167
|
+
base: string;
|
|
3168
|
+
}>>;
|
|
3169
|
+
declare module '@glyphui/tokens' {
|
|
3170
|
+
interface GlyphComponentRegistry {
|
|
3171
|
+
Grid: StylesEntry<typeof gridStyles>;
|
|
3172
|
+
}
|
|
3173
|
+
}
|
|
3174
|
+
interface GridProps extends ComponentProps<'div'>, VariantProps<typeof gridStyles> {
|
|
3175
|
+
/** Column count, or per breakpoint: `{ base: 1, sm: 2, lg: 4 }`. Default 1. */
|
|
3176
|
+
cols?: GridCols;
|
|
3177
|
+
asChild?: boolean;
|
|
3178
|
+
}
|
|
3179
|
+
/** Responsive equal-width columns with spacing from the scale. */
|
|
3180
|
+
export declare function Grid(inProps: GridProps): import("react").JSX.Element;
|
|
3181
|
+
//#endregion
|
|
3182
|
+
//#region src/components/heading/heading.d.ts
|
|
3183
|
+
type Level = 1 | 2 | 3 | 4 | 5 | 6;
|
|
3184
|
+
interface HeadingProps extends ComponentProps<'h2'>, HeadingVariants {
|
|
3185
|
+
/** Document outline level (h1–h6). Visual size follows it unless `size` is set. */
|
|
3186
|
+
level?: Level;
|
|
3187
|
+
asChild?: boolean;
|
|
3188
|
+
}
|
|
3189
|
+
/** A heading whose semantic level and visual size are set independently. */
|
|
3190
|
+
export declare function Heading(inProps: HeadingProps): import("react").JSX.Element;
|
|
1616
3191
|
//#endregion
|
|
1617
|
-
//#region src/components/
|
|
1618
|
-
interface
|
|
1619
|
-
/**
|
|
1620
|
-
|
|
1621
|
-
|
|
3192
|
+
//#region src/components/input/input.d.ts
|
|
3193
|
+
interface InputProps extends Omit<ComponentProps<'input'>, 'size' | 'prefix'>, InputVariants {
|
|
3194
|
+
/** Content before the text, e.g. an icon or `https://`. */
|
|
3195
|
+
prefix?: ReactNode;
|
|
3196
|
+
/** Content after the text, e.g. a unit or a Kbd hint. */
|
|
3197
|
+
suffix?: ReactNode;
|
|
3198
|
+
/** Classes for the `<input>` element itself. `className` styles the outer frame. */
|
|
3199
|
+
inputClassName?: string;
|
|
3200
|
+
}
|
|
3201
|
+
export declare function Input(inProps: InputProps): import("react").JSX.Element;
|
|
3202
|
+
//#endregion
|
|
3203
|
+
//#region src/components/link/link.styles.d.ts
|
|
3204
|
+
export declare const linkStyles: import("tailwind-variants").TVReturnType<{
|
|
3205
|
+
tone: {
|
|
3206
|
+
default: {
|
|
3207
|
+
base: string;
|
|
3208
|
+
};
|
|
3209
|
+
muted: {
|
|
3210
|
+
base: string;
|
|
3211
|
+
};
|
|
3212
|
+
primary: {
|
|
3213
|
+
base: string;
|
|
3214
|
+
};
|
|
3215
|
+
};
|
|
3216
|
+
underline: {
|
|
3217
|
+
hover: {
|
|
3218
|
+
base: string;
|
|
3219
|
+
};
|
|
3220
|
+
always: {
|
|
3221
|
+
base: string;
|
|
3222
|
+
};
|
|
3223
|
+
none: {
|
|
3224
|
+
base: string;
|
|
3225
|
+
};
|
|
3226
|
+
};
|
|
3227
|
+
}, {
|
|
3228
|
+
base: string[];
|
|
3229
|
+
icon: string;
|
|
3230
|
+
}, undefined, {
|
|
3231
|
+
tone: {
|
|
3232
|
+
default: {
|
|
3233
|
+
base: string;
|
|
3234
|
+
};
|
|
3235
|
+
muted: {
|
|
3236
|
+
base: string;
|
|
3237
|
+
};
|
|
3238
|
+
primary: {
|
|
3239
|
+
base: string;
|
|
3240
|
+
};
|
|
3241
|
+
};
|
|
3242
|
+
underline: {
|
|
3243
|
+
hover: {
|
|
3244
|
+
base: string;
|
|
3245
|
+
};
|
|
3246
|
+
always: {
|
|
3247
|
+
base: string;
|
|
3248
|
+
};
|
|
3249
|
+
none: {
|
|
3250
|
+
base: string;
|
|
3251
|
+
};
|
|
3252
|
+
};
|
|
3253
|
+
}, {
|
|
3254
|
+
base: string[];
|
|
3255
|
+
icon: string;
|
|
3256
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
3257
|
+
tone: {
|
|
3258
|
+
default: {
|
|
3259
|
+
base: string;
|
|
3260
|
+
};
|
|
3261
|
+
muted: {
|
|
3262
|
+
base: string;
|
|
3263
|
+
};
|
|
3264
|
+
primary: {
|
|
3265
|
+
base: string;
|
|
3266
|
+
};
|
|
3267
|
+
};
|
|
3268
|
+
underline: {
|
|
3269
|
+
hover: {
|
|
3270
|
+
base: string;
|
|
3271
|
+
};
|
|
3272
|
+
always: {
|
|
3273
|
+
base: string;
|
|
3274
|
+
};
|
|
3275
|
+
none: {
|
|
3276
|
+
base: string;
|
|
3277
|
+
};
|
|
3278
|
+
};
|
|
3279
|
+
}, {
|
|
3280
|
+
base: string[];
|
|
3281
|
+
icon: string;
|
|
3282
|
+
}>>;
|
|
3283
|
+
type LinkVariants = VariantProps<typeof linkStyles>;
|
|
3284
|
+
declare module '@glyphui/tokens' {
|
|
3285
|
+
interface GlyphComponentRegistry {
|
|
3286
|
+
Link: StylesEntry<typeof linkStyles>;
|
|
3287
|
+
}
|
|
3288
|
+
}
|
|
3289
|
+
//#endregion
|
|
3290
|
+
//#region src/components/link/link.d.ts
|
|
3291
|
+
interface LinkProps extends Omit<ComponentProps<'a'>, 'href'>, LinkVariants {
|
|
3292
|
+
href: string;
|
|
3293
|
+
/** Opens in a new tab with `rel="noopener noreferrer"`, shows an arrow and announces it. */
|
|
3294
|
+
external?: boolean;
|
|
3295
|
+
}
|
|
3296
|
+
/**
|
|
3297
|
+
* A text link with an animated underline. Internal links go through the provider's
|
|
3298
|
+
* `linkComponent` (your router); external links render a plain `<a>`.
|
|
3299
|
+
*/
|
|
3300
|
+
export declare function Link(inProps: LinkProps): import("react").JSX.Element;
|
|
3301
|
+
//#endregion
|
|
3302
|
+
//#region src/components/pagination/pagination.styles.d.ts
|
|
3303
|
+
export declare const paginationStyles: import("tailwind-variants").TVReturnType<{
|
|
3304
|
+
size: {
|
|
3305
|
+
sm: {
|
|
3306
|
+
item: string;
|
|
3307
|
+
ellipsis: string;
|
|
3308
|
+
};
|
|
3309
|
+
md: {
|
|
3310
|
+
item: string;
|
|
3311
|
+
ellipsis: string;
|
|
3312
|
+
};
|
|
3313
|
+
};
|
|
3314
|
+
}, {
|
|
3315
|
+
root: string;
|
|
3316
|
+
list: string;
|
|
3317
|
+
item: string[];
|
|
3318
|
+
ellipsis: string;
|
|
3319
|
+
}, undefined, {
|
|
3320
|
+
size: {
|
|
3321
|
+
sm: {
|
|
3322
|
+
item: string;
|
|
3323
|
+
ellipsis: string;
|
|
3324
|
+
};
|
|
3325
|
+
md: {
|
|
3326
|
+
item: string;
|
|
3327
|
+
ellipsis: string;
|
|
3328
|
+
};
|
|
3329
|
+
};
|
|
3330
|
+
}, {
|
|
3331
|
+
root: string;
|
|
3332
|
+
list: string;
|
|
3333
|
+
item: string[];
|
|
3334
|
+
ellipsis: string;
|
|
3335
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
3336
|
+
size: {
|
|
3337
|
+
sm: {
|
|
3338
|
+
item: string;
|
|
3339
|
+
ellipsis: string;
|
|
3340
|
+
};
|
|
3341
|
+
md: {
|
|
3342
|
+
item: string;
|
|
3343
|
+
ellipsis: string;
|
|
3344
|
+
};
|
|
3345
|
+
};
|
|
3346
|
+
}, {
|
|
3347
|
+
root: string;
|
|
3348
|
+
list: string;
|
|
3349
|
+
item: string[];
|
|
3350
|
+
ellipsis: string;
|
|
3351
|
+
}>>;
|
|
3352
|
+
type PaginationVariants = VariantProps<typeof paginationStyles>;
|
|
3353
|
+
declare module '@glyphui/tokens' {
|
|
3354
|
+
interface GlyphComponentRegistry {
|
|
3355
|
+
Pagination: StylesEntry<typeof paginationStyles>;
|
|
3356
|
+
}
|
|
3357
|
+
}
|
|
3358
|
+
//#endregion
|
|
3359
|
+
//#region src/components/pagination/pagination.d.ts
|
|
3360
|
+
interface PaginationProps extends Omit<ComponentProps<'nav'>, 'onChange'>, PaginationVariants {
|
|
3361
|
+
/** Current page, starting at 1. */
|
|
3362
|
+
page: number;
|
|
3363
|
+
pageCount: number;
|
|
3364
|
+
onPageChange?: (page: number) => void;
|
|
3365
|
+
/** Render pages as links (through the provider's linkComponent) instead of buttons. */
|
|
3366
|
+
getHref?: (page: number) => string;
|
|
3367
|
+
/** Pages shown on each side of the current page. Default 1. */
|
|
3368
|
+
siblingCount?: number;
|
|
3369
|
+
/** Show first / last page buttons. Default true. */
|
|
3370
|
+
showEdges?: boolean;
|
|
3371
|
+
}
|
|
3372
|
+
/** Page navigation for long lists. Controlled: you own `page`. */
|
|
3373
|
+
export declare function Pagination(inProps: PaginationProps): import("react").JSX.Element;
|
|
3374
|
+
//#endregion
|
|
3375
|
+
//#region src/components/pagination/pagination-range.d.ts
|
|
3376
|
+
type PaginationItem = number | 'ellipsis';
|
|
3377
|
+
/**
|
|
3378
|
+
* The page numbers to show, with `'ellipsis'` for gaps. Always includes the first and
|
|
3379
|
+
* last page and `siblingCount` pages on each side of the current one, and keeps the
|
|
3380
|
+
* number of items constant so the control doesn't jump in width.
|
|
3381
|
+
*
|
|
3382
|
+
* `paginationRange(6, 20)` → `[1, 'ellipsis', 5, 6, 7, 'ellipsis', 20]`
|
|
3383
|
+
*/
|
|
3384
|
+
export declare function paginationRange(page: number, pageCount: number, siblingCount?: number): PaginationItem[];
|
|
3385
|
+
//#endregion
|
|
3386
|
+
//#region src/components/popover/popover.d.ts
|
|
3387
|
+
export declare const popoverStyles: import("tailwind-variants").TVReturnType<{
|
|
3388
|
+
[key: string]: {
|
|
3389
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
3390
|
+
content?: import("tailwind-variants").ClassValue;
|
|
3391
|
+
arrow?: import("tailwind-variants").ClassValue;
|
|
3392
|
+
};
|
|
3393
|
+
};
|
|
3394
|
+
} | {
|
|
3395
|
+
[x: string]: {
|
|
3396
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
3397
|
+
content?: import("tailwind-variants").ClassValue;
|
|
3398
|
+
arrow?: import("tailwind-variants").ClassValue;
|
|
3399
|
+
};
|
|
3400
|
+
};
|
|
3401
|
+
} | {}, {
|
|
3402
|
+
content: string[];
|
|
3403
|
+
arrow: string;
|
|
3404
|
+
}, undefined, {
|
|
3405
|
+
[key: string]: {
|
|
3406
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
3407
|
+
content?: import("tailwind-variants").ClassValue;
|
|
3408
|
+
arrow?: import("tailwind-variants").ClassValue;
|
|
3409
|
+
};
|
|
3410
|
+
};
|
|
3411
|
+
} | {}, {
|
|
3412
|
+
content: string[];
|
|
3413
|
+
arrow: string;
|
|
3414
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
3415
|
+
content: string[];
|
|
3416
|
+
arrow: string;
|
|
3417
|
+
}>>;
|
|
3418
|
+
declare module '@glyphui/tokens' {
|
|
3419
|
+
interface GlyphComponentRegistry {
|
|
3420
|
+
Popover: StylesEntry<typeof popoverStyles>;
|
|
3421
|
+
}
|
|
3422
|
+
}
|
|
3423
|
+
/** Floating content anchored to a trigger: quick settings, details, small forms. */
|
|
3424
|
+
export declare const Popover: import("react").FC<Popover$1.PopoverProps>;
|
|
3425
|
+
export declare const PopoverTrigger: import("react").ForwardRefExoticComponent<Popover$1.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
3426
|
+
export declare const PopoverAnchor: import("react").ForwardRefExoticComponent<Popover$1.PopoverAnchorProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3427
|
+
export declare const PopoverClose: import("react").ForwardRefExoticComponent<Popover$1.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
3428
|
+
interface PopoverContentProps extends ComponentProps<typeof Popover$1.Content> {
|
|
3429
|
+
/** Render a small arrow pointing at the trigger. */
|
|
3430
|
+
showArrow?: boolean;
|
|
3431
|
+
}
|
|
3432
|
+
export declare function PopoverContent(inProps: PopoverContentProps): import("react").JSX.Element;
|
|
3433
|
+
//#endregion
|
|
3434
|
+
//#region src/components/progress/progress.styles.d.ts
|
|
3435
|
+
export declare const progressStyles: import("tailwind-variants").TVReturnType<{
|
|
3436
|
+
size: {
|
|
3437
|
+
sm: {
|
|
3438
|
+
track: string;
|
|
3439
|
+
};
|
|
3440
|
+
md: {
|
|
3441
|
+
track: string;
|
|
3442
|
+
};
|
|
3443
|
+
lg: {
|
|
3444
|
+
track: string;
|
|
3445
|
+
};
|
|
3446
|
+
};
|
|
3447
|
+
tone: {
|
|
3448
|
+
primary: {
|
|
3449
|
+
indicator: string;
|
|
3450
|
+
};
|
|
3451
|
+
neutral: {
|
|
3452
|
+
indicator: string;
|
|
3453
|
+
};
|
|
3454
|
+
success: {
|
|
3455
|
+
indicator: string;
|
|
3456
|
+
};
|
|
3457
|
+
warning: {
|
|
3458
|
+
indicator: string;
|
|
3459
|
+
};
|
|
3460
|
+
danger: {
|
|
3461
|
+
indicator: string;
|
|
3462
|
+
};
|
|
3463
|
+
};
|
|
3464
|
+
}, {
|
|
3465
|
+
root: string;
|
|
3466
|
+
header: string;
|
|
3467
|
+
label: string;
|
|
3468
|
+
value: string;
|
|
3469
|
+
track: string;
|
|
3470
|
+
indicator: string[];
|
|
3471
|
+
}, undefined, {
|
|
3472
|
+
size: {
|
|
3473
|
+
sm: {
|
|
3474
|
+
track: string;
|
|
3475
|
+
};
|
|
3476
|
+
md: {
|
|
3477
|
+
track: string;
|
|
3478
|
+
};
|
|
3479
|
+
lg: {
|
|
3480
|
+
track: string;
|
|
3481
|
+
};
|
|
3482
|
+
};
|
|
3483
|
+
tone: {
|
|
3484
|
+
primary: {
|
|
3485
|
+
indicator: string;
|
|
3486
|
+
};
|
|
3487
|
+
neutral: {
|
|
3488
|
+
indicator: string;
|
|
3489
|
+
};
|
|
3490
|
+
success: {
|
|
3491
|
+
indicator: string;
|
|
3492
|
+
};
|
|
3493
|
+
warning: {
|
|
3494
|
+
indicator: string;
|
|
3495
|
+
};
|
|
3496
|
+
danger: {
|
|
3497
|
+
indicator: string;
|
|
3498
|
+
};
|
|
3499
|
+
};
|
|
3500
|
+
}, {
|
|
3501
|
+
root: string;
|
|
3502
|
+
header: string;
|
|
3503
|
+
label: string;
|
|
3504
|
+
value: string;
|
|
3505
|
+
track: string;
|
|
3506
|
+
indicator: string[];
|
|
3507
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
3508
|
+
size: {
|
|
3509
|
+
sm: {
|
|
3510
|
+
track: string;
|
|
3511
|
+
};
|
|
3512
|
+
md: {
|
|
3513
|
+
track: string;
|
|
3514
|
+
};
|
|
3515
|
+
lg: {
|
|
3516
|
+
track: string;
|
|
3517
|
+
};
|
|
3518
|
+
};
|
|
3519
|
+
tone: {
|
|
3520
|
+
primary: {
|
|
3521
|
+
indicator: string;
|
|
3522
|
+
};
|
|
3523
|
+
neutral: {
|
|
3524
|
+
indicator: string;
|
|
3525
|
+
};
|
|
3526
|
+
success: {
|
|
3527
|
+
indicator: string;
|
|
3528
|
+
};
|
|
3529
|
+
warning: {
|
|
3530
|
+
indicator: string;
|
|
3531
|
+
};
|
|
3532
|
+
danger: {
|
|
3533
|
+
indicator: string;
|
|
3534
|
+
};
|
|
3535
|
+
};
|
|
3536
|
+
}, {
|
|
3537
|
+
root: string;
|
|
3538
|
+
header: string;
|
|
3539
|
+
label: string;
|
|
3540
|
+
value: string;
|
|
3541
|
+
track: string;
|
|
3542
|
+
indicator: string[];
|
|
3543
|
+
}>>;
|
|
3544
|
+
type ProgressVariants = VariantProps<typeof progressStyles>;
|
|
3545
|
+
export declare const progressCircleStyles: import("tailwind-variants").TVReturnType<{
|
|
3546
|
+
size: {
|
|
3547
|
+
sm: {
|
|
3548
|
+
root: string;
|
|
3549
|
+
value: string;
|
|
3550
|
+
};
|
|
3551
|
+
md: {
|
|
3552
|
+
root: string;
|
|
3553
|
+
value: string;
|
|
3554
|
+
};
|
|
3555
|
+
lg: {
|
|
3556
|
+
root: string;
|
|
3557
|
+
value: string;
|
|
3558
|
+
};
|
|
3559
|
+
};
|
|
3560
|
+
tone: {
|
|
3561
|
+
primary: {
|
|
3562
|
+
indicator: string;
|
|
3563
|
+
};
|
|
3564
|
+
neutral: {
|
|
3565
|
+
indicator: string;
|
|
3566
|
+
};
|
|
3567
|
+
success: {
|
|
3568
|
+
indicator: string;
|
|
3569
|
+
};
|
|
3570
|
+
warning: {
|
|
3571
|
+
indicator: string;
|
|
3572
|
+
};
|
|
3573
|
+
danger: {
|
|
3574
|
+
indicator: string;
|
|
3575
|
+
};
|
|
3576
|
+
};
|
|
3577
|
+
}, {
|
|
3578
|
+
root: string;
|
|
3579
|
+
svg: string;
|
|
3580
|
+
track: string;
|
|
3581
|
+
indicator: string;
|
|
3582
|
+
value: string;
|
|
3583
|
+
}, undefined, {
|
|
3584
|
+
size: {
|
|
3585
|
+
sm: {
|
|
3586
|
+
root: string;
|
|
3587
|
+
value: string;
|
|
3588
|
+
};
|
|
3589
|
+
md: {
|
|
3590
|
+
root: string;
|
|
3591
|
+
value: string;
|
|
3592
|
+
};
|
|
3593
|
+
lg: {
|
|
3594
|
+
root: string;
|
|
3595
|
+
value: string;
|
|
3596
|
+
};
|
|
3597
|
+
};
|
|
3598
|
+
tone: {
|
|
3599
|
+
primary: {
|
|
3600
|
+
indicator: string;
|
|
3601
|
+
};
|
|
3602
|
+
neutral: {
|
|
3603
|
+
indicator: string;
|
|
3604
|
+
};
|
|
3605
|
+
success: {
|
|
3606
|
+
indicator: string;
|
|
3607
|
+
};
|
|
3608
|
+
warning: {
|
|
3609
|
+
indicator: string;
|
|
3610
|
+
};
|
|
3611
|
+
danger: {
|
|
3612
|
+
indicator: string;
|
|
3613
|
+
};
|
|
3614
|
+
};
|
|
3615
|
+
}, {
|
|
3616
|
+
root: string;
|
|
3617
|
+
svg: string;
|
|
3618
|
+
track: string;
|
|
3619
|
+
indicator: string;
|
|
3620
|
+
value: string;
|
|
3621
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
3622
|
+
size: {
|
|
3623
|
+
sm: {
|
|
3624
|
+
root: string;
|
|
3625
|
+
value: string;
|
|
3626
|
+
};
|
|
3627
|
+
md: {
|
|
3628
|
+
root: string;
|
|
3629
|
+
value: string;
|
|
3630
|
+
};
|
|
3631
|
+
lg: {
|
|
3632
|
+
root: string;
|
|
3633
|
+
value: string;
|
|
3634
|
+
};
|
|
3635
|
+
};
|
|
3636
|
+
tone: {
|
|
3637
|
+
primary: {
|
|
3638
|
+
indicator: string;
|
|
3639
|
+
};
|
|
3640
|
+
neutral: {
|
|
3641
|
+
indicator: string;
|
|
3642
|
+
};
|
|
3643
|
+
success: {
|
|
3644
|
+
indicator: string;
|
|
3645
|
+
};
|
|
3646
|
+
warning: {
|
|
3647
|
+
indicator: string;
|
|
3648
|
+
};
|
|
3649
|
+
danger: {
|
|
3650
|
+
indicator: string;
|
|
3651
|
+
};
|
|
3652
|
+
};
|
|
3653
|
+
}, {
|
|
3654
|
+
root: string;
|
|
3655
|
+
svg: string;
|
|
3656
|
+
track: string;
|
|
3657
|
+
indicator: string;
|
|
3658
|
+
value: string;
|
|
3659
|
+
}>>;
|
|
3660
|
+
type ProgressCircleVariants = VariantProps<typeof progressCircleStyles>;
|
|
3661
|
+
declare module '@glyphui/tokens' {
|
|
3662
|
+
interface GlyphComponentRegistry {
|
|
3663
|
+
Progress: StylesEntry<typeof progressStyles>;
|
|
3664
|
+
ProgressCircle: StylesEntry<typeof progressCircleStyles>;
|
|
3665
|
+
}
|
|
1622
3666
|
}
|
|
1623
|
-
export declare function Badge(inProps: BadgeProps): import("react").JSX.Element;
|
|
1624
3667
|
//#endregion
|
|
1625
|
-
//#region src/components/
|
|
1626
|
-
interface
|
|
1627
|
-
|
|
3668
|
+
//#region src/components/progress/progress.d.ts
|
|
3669
|
+
interface ProgressProps extends Omit<ComponentProps<'div'>, 'children'>, ProgressVariants {
|
|
3670
|
+
/** Current value. `null` or omitted shows an indeterminate bar. */
|
|
3671
|
+
value?: number | null;
|
|
3672
|
+
max?: number;
|
|
3673
|
+
/** Visible label above the bar; also its accessible name. */
|
|
3674
|
+
label?: ReactNode;
|
|
3675
|
+
/** Show the value next to the label. */
|
|
3676
|
+
showValue?: boolean;
|
|
3677
|
+
formatValue?: (value: number, max: number) => string;
|
|
3678
|
+
/** Accessible name when there is no visible label. */
|
|
3679
|
+
'aria-label'?: string;
|
|
1628
3680
|
}
|
|
1629
|
-
/** A
|
|
1630
|
-
export declare function
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
3681
|
+
/** A horizontal bar showing how far a task has progressed. */
|
|
3682
|
+
export declare function Progress(inProps: ProgressProps): import("react").JSX.Element;
|
|
3683
|
+
interface ProgressCircleProps extends Omit<ComponentProps<'div'>, 'children'>, ProgressCircleVariants {
|
|
3684
|
+
value: number;
|
|
3685
|
+
max?: number;
|
|
3686
|
+
/** Show the percentage in the center (md and lg sizes). */
|
|
3687
|
+
showValue?: boolean;
|
|
3688
|
+
formatValue?: (value: number, max: number) => string;
|
|
3689
|
+
/** Accessible name, e.g. "Storage used". */
|
|
3690
|
+
'aria-label'?: string;
|
|
1634
3691
|
}
|
|
1635
|
-
|
|
1636
|
-
export declare function
|
|
1637
|
-
export declare function CardBody({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
1638
|
-
export declare function CardFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
3692
|
+
/** A compact ring for progress or a share of a total. */
|
|
3693
|
+
export declare function ProgressCircle(inProps: ProgressCircleProps): import("react").JSX.Element;
|
|
1639
3694
|
//#endregion
|
|
1640
|
-
//#region src/components/
|
|
1641
|
-
|
|
3695
|
+
//#region src/components/prose/prose.d.ts
|
|
3696
|
+
/**
|
|
3697
|
+
* Element styles for long-form content. Every value comes from theme tokens, so articles
|
|
3698
|
+
* pick up the theme's display font, type scale, colors and radius.
|
|
3699
|
+
*/
|
|
3700
|
+
export declare const proseStyles: import("tailwind-variants").TVReturnType<{
|
|
1642
3701
|
size: {
|
|
1643
|
-
sm:
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
3702
|
+
sm: {
|
|
3703
|
+
base: string;
|
|
3704
|
+
};
|
|
3705
|
+
md: {
|
|
3706
|
+
base: string;
|
|
3707
|
+
};
|
|
3708
|
+
lg: {
|
|
3709
|
+
base: string;
|
|
3710
|
+
};
|
|
1648
3711
|
};
|
|
1649
|
-
|
|
3712
|
+
fullWidth: {
|
|
3713
|
+
true: {
|
|
3714
|
+
base: string;
|
|
3715
|
+
};
|
|
3716
|
+
false: {
|
|
3717
|
+
base: string;
|
|
3718
|
+
};
|
|
3719
|
+
};
|
|
3720
|
+
}, {
|
|
3721
|
+
base: string[];
|
|
3722
|
+
}, undefined, {
|
|
1650
3723
|
size: {
|
|
1651
|
-
sm:
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
3724
|
+
sm: {
|
|
3725
|
+
base: string;
|
|
3726
|
+
};
|
|
3727
|
+
md: {
|
|
3728
|
+
base: string;
|
|
3729
|
+
};
|
|
3730
|
+
lg: {
|
|
3731
|
+
base: string;
|
|
3732
|
+
};
|
|
1656
3733
|
};
|
|
1657
|
-
|
|
3734
|
+
fullWidth: {
|
|
3735
|
+
true: {
|
|
3736
|
+
base: string;
|
|
3737
|
+
};
|
|
3738
|
+
false: {
|
|
3739
|
+
base: string;
|
|
3740
|
+
};
|
|
3741
|
+
};
|
|
3742
|
+
}, {
|
|
3743
|
+
base: string[];
|
|
3744
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
1658
3745
|
size: {
|
|
1659
|
-
sm:
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
3746
|
+
sm: {
|
|
3747
|
+
base: string;
|
|
3748
|
+
};
|
|
3749
|
+
md: {
|
|
3750
|
+
base: string;
|
|
3751
|
+
};
|
|
3752
|
+
lg: {
|
|
3753
|
+
base: string;
|
|
3754
|
+
};
|
|
1664
3755
|
};
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
3756
|
+
fullWidth: {
|
|
3757
|
+
true: {
|
|
3758
|
+
base: string;
|
|
3759
|
+
};
|
|
3760
|
+
false: {
|
|
3761
|
+
base: string;
|
|
3762
|
+
};
|
|
3763
|
+
};
|
|
3764
|
+
}, {
|
|
3765
|
+
base: string[];
|
|
3766
|
+
}>>;
|
|
3767
|
+
declare module '@glyphui/tokens' {
|
|
3768
|
+
interface GlyphComponentRegistry {
|
|
3769
|
+
Prose: StylesEntry<typeof proseStyles>;
|
|
3770
|
+
}
|
|
1668
3771
|
}
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
//#endregion
|
|
1672
|
-
//#region src/components/eyebrow/eyebrow.d.ts
|
|
1673
|
-
interface EyebrowProps extends ComponentProps<'p'>, EyebrowVariants {
|
|
3772
|
+
interface ProseProps extends ComponentProps<'div'>, VariantProps<typeof proseStyles> {
|
|
3773
|
+
/** Render the child element (e.g. `<article>`) instead of a `<div>`. */
|
|
1674
3774
|
asChild?: boolean;
|
|
1675
3775
|
}
|
|
1676
|
-
/**
|
|
1677
|
-
|
|
3776
|
+
/**
|
|
3777
|
+
* Styles raw HTML or MDX (headings, lists, links, quotes, code, tables, images) from theme
|
|
3778
|
+
* tokens. Wrap rendered Markdown or CMS content in it.
|
|
3779
|
+
*/
|
|
3780
|
+
export declare function Prose(inProps: ProseProps): import("react").JSX.Element;
|
|
1678
3781
|
//#endregion
|
|
1679
|
-
//#region src/components/
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
}
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
3782
|
+
//#region src/components/radio-group/radio-group.styles.d.ts
|
|
3783
|
+
export declare const radioGroupStyles: import("tailwind-variants").TVReturnType<{
|
|
3784
|
+
orientation: {
|
|
3785
|
+
vertical: {
|
|
3786
|
+
root: string;
|
|
3787
|
+
};
|
|
3788
|
+
horizontal: {
|
|
3789
|
+
root: string;
|
|
3790
|
+
};
|
|
3791
|
+
};
|
|
3792
|
+
variant: {
|
|
3793
|
+
default: {};
|
|
3794
|
+
card: {};
|
|
3795
|
+
};
|
|
3796
|
+
}, {
|
|
3797
|
+
root: string;
|
|
3798
|
+
option: string;
|
|
3799
|
+
control: string[];
|
|
3800
|
+
indicator: string;
|
|
3801
|
+
text: string;
|
|
3802
|
+
label: string;
|
|
3803
|
+
description: string;
|
|
3804
|
+
card: string[];
|
|
3805
|
+
cardControl: string[];
|
|
3806
|
+
}, undefined, {
|
|
3807
|
+
orientation: {
|
|
3808
|
+
vertical: {
|
|
3809
|
+
root: string;
|
|
3810
|
+
};
|
|
3811
|
+
horizontal: {
|
|
3812
|
+
root: string;
|
|
3813
|
+
};
|
|
3814
|
+
};
|
|
3815
|
+
variant: {
|
|
3816
|
+
default: {};
|
|
3817
|
+
card: {};
|
|
3818
|
+
};
|
|
3819
|
+
}, {
|
|
3820
|
+
root: string;
|
|
3821
|
+
option: string;
|
|
3822
|
+
control: string[];
|
|
3823
|
+
indicator: string;
|
|
3824
|
+
text: string;
|
|
3825
|
+
label: string;
|
|
3826
|
+
description: string;
|
|
3827
|
+
card: string[];
|
|
3828
|
+
cardControl: string[];
|
|
3829
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
3830
|
+
orientation: {
|
|
3831
|
+
vertical: {
|
|
3832
|
+
root: string;
|
|
3833
|
+
};
|
|
3834
|
+
horizontal: {
|
|
3835
|
+
root: string;
|
|
3836
|
+
};
|
|
3837
|
+
};
|
|
3838
|
+
variant: {
|
|
3839
|
+
default: {};
|
|
3840
|
+
card: {};
|
|
3841
|
+
};
|
|
3842
|
+
}, {
|
|
3843
|
+
root: string;
|
|
3844
|
+
option: string;
|
|
3845
|
+
control: string[];
|
|
3846
|
+
indicator: string;
|
|
3847
|
+
text: string;
|
|
3848
|
+
label: string;
|
|
3849
|
+
description: string;
|
|
3850
|
+
card: string[];
|
|
3851
|
+
cardControl: string[];
|
|
3852
|
+
}>>;
|
|
3853
|
+
type RadioGroupVariants = VariantProps<typeof radioGroupStyles>;
|
|
3854
|
+
declare module '@glyphui/tokens' {
|
|
3855
|
+
interface GlyphComponentRegistry {
|
|
3856
|
+
RadioGroup: StylesEntry<typeof radioGroupStyles>;
|
|
3857
|
+
}
|
|
3858
|
+
}
|
|
3859
|
+
//#endregion
|
|
3860
|
+
//#region src/components/radio-group/radio-group.d.ts
|
|
3861
|
+
type RootProps = Omit<ComponentProps<typeof RadioGroup$1.Root>, 'value' | 'defaultValue' | 'onValueChange' | 'orientation'>;
|
|
3862
|
+
interface RadioGroupProps<T extends string> extends RootProps, RadioGroupVariants {
|
|
3863
|
+
value?: T;
|
|
3864
|
+
defaultValue?: T;
|
|
3865
|
+
/** Receives your value type, not `string`. */
|
|
3866
|
+
onValueChange?: (value: T) => void;
|
|
1695
3867
|
}
|
|
1696
3868
|
/**
|
|
1697
|
-
*
|
|
1698
|
-
*
|
|
3869
|
+
* Pick exactly one option from a short visible list. `variant="card"` turns each option
|
|
3870
|
+
* into a bordered card with a title and description.
|
|
1699
3871
|
*/
|
|
1700
|
-
export declare function
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
/**
|
|
1706
|
-
|
|
1707
|
-
asChild?: boolean;
|
|
3872
|
+
export declare function RadioGroup<T extends string>(inProps: RadioGroupProps<T>): import("react").JSX.Element;
|
|
3873
|
+
interface RadioGroupItemProps extends Omit<ComponentProps<typeof RadioGroup$1.Item>, 'children'> {
|
|
3874
|
+
/** Visible label. For card items this is the card title. */
|
|
3875
|
+
label?: ReactNode;
|
|
3876
|
+
description?: ReactNode;
|
|
3877
|
+
/** Extra content inside a card item, below the description. */
|
|
3878
|
+
children?: ReactNode;
|
|
1708
3879
|
}
|
|
1709
|
-
|
|
1710
|
-
export declare function Heading(inProps: HeadingProps): import("react").JSX.Element;
|
|
3880
|
+
export declare function RadioGroupItem({ label, description, children, className, id, ...props }: RadioGroupItemProps): import("react").JSX.Element;
|
|
1711
3881
|
//#endregion
|
|
1712
|
-
//#region src/components/
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
3882
|
+
//#region src/components/scroll-area/scroll-area.d.ts
|
|
3883
|
+
export declare const scrollAreaStyles: import("tailwind-variants").TVReturnType<{
|
|
3884
|
+
[key: string]: {
|
|
3885
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
3886
|
+
root?: import("tailwind-variants").ClassValue;
|
|
3887
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
3888
|
+
thumb?: import("tailwind-variants").ClassValue;
|
|
3889
|
+
scrollbar?: import("tailwind-variants").ClassValue;
|
|
3890
|
+
corner?: import("tailwind-variants").ClassValue;
|
|
3891
|
+
};
|
|
3892
|
+
};
|
|
3893
|
+
} | {
|
|
3894
|
+
[x: string]: {
|
|
3895
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
3896
|
+
root?: import("tailwind-variants").ClassValue;
|
|
3897
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
3898
|
+
thumb?: import("tailwind-variants").ClassValue;
|
|
3899
|
+
scrollbar?: import("tailwind-variants").ClassValue;
|
|
3900
|
+
corner?: import("tailwind-variants").ClassValue;
|
|
3901
|
+
};
|
|
3902
|
+
};
|
|
3903
|
+
} | {}, {
|
|
3904
|
+
root: string;
|
|
3905
|
+
viewport: string[];
|
|
3906
|
+
scrollbar: string[];
|
|
3907
|
+
thumb: string;
|
|
3908
|
+
corner: string;
|
|
3909
|
+
}, undefined, {
|
|
3910
|
+
[key: string]: {
|
|
3911
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
3912
|
+
root?: import("tailwind-variants").ClassValue;
|
|
3913
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
3914
|
+
thumb?: import("tailwind-variants").ClassValue;
|
|
3915
|
+
scrollbar?: import("tailwind-variants").ClassValue;
|
|
3916
|
+
corner?: import("tailwind-variants").ClassValue;
|
|
3917
|
+
};
|
|
3918
|
+
};
|
|
3919
|
+
} | {}, {
|
|
3920
|
+
root: string;
|
|
3921
|
+
viewport: string[];
|
|
3922
|
+
scrollbar: string[];
|
|
3923
|
+
thumb: string;
|
|
3924
|
+
corner: string;
|
|
3925
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
3926
|
+
root: string;
|
|
3927
|
+
viewport: string[];
|
|
3928
|
+
scrollbar: string[];
|
|
3929
|
+
thumb: string;
|
|
3930
|
+
corner: string;
|
|
3931
|
+
}>>;
|
|
3932
|
+
declare module '@glyphui/tokens' {
|
|
3933
|
+
interface GlyphComponentRegistry {
|
|
3934
|
+
ScrollArea: StylesEntry<typeof scrollAreaStyles>;
|
|
3935
|
+
}
|
|
1720
3936
|
}
|
|
1721
|
-
|
|
3937
|
+
interface ScrollAreaProps extends ComponentProps<typeof ScrollArea$1.Root> {
|
|
3938
|
+
/** Which scrollbars to show. Default vertical. */
|
|
3939
|
+
orientation?: 'vertical' | 'horizontal' | 'both';
|
|
3940
|
+
viewportClassName?: string;
|
|
3941
|
+
}
|
|
3942
|
+
/**
|
|
3943
|
+
* A scrollable region with slim, theme-colored scrollbars. Give it a height (or width)
|
|
3944
|
+
* with `className`, e.g. `h-72`.
|
|
3945
|
+
*/
|
|
3946
|
+
export declare function ScrollArea(inProps: ScrollAreaProps): import("react").JSX.Element;
|
|
1722
3947
|
//#endregion
|
|
1723
3948
|
//#region src/components/section/section.d.ts
|
|
1724
3949
|
export declare const sectionStyles: import("tailwind-variants").TVReturnType<{
|
|
@@ -1770,6 +3995,211 @@ interface SectionProps extends ComponentProps<'section'>, VariantProps<typeof se
|
|
|
1770
3995
|
/** A full-width page band with consistent vertical rhythm. Put a Container inside. */
|
|
1771
3996
|
export declare function Section({ spacing, tone, divided, asChild, className, ...props }: SectionProps): import("react").JSX.Element;
|
|
1772
3997
|
//#endregion
|
|
3998
|
+
//#region src/components/sheet/sheet.styles.d.ts
|
|
3999
|
+
export declare const sheetStyles: import("tailwind-variants").TVReturnType<{
|
|
4000
|
+
side: {
|
|
4001
|
+
right: {
|
|
4002
|
+
content: string;
|
|
4003
|
+
};
|
|
4004
|
+
left: {
|
|
4005
|
+
content: string;
|
|
4006
|
+
};
|
|
4007
|
+
top: {
|
|
4008
|
+
content: string;
|
|
4009
|
+
};
|
|
4010
|
+
bottom: {
|
|
4011
|
+
content: string;
|
|
4012
|
+
};
|
|
4013
|
+
};
|
|
4014
|
+
size: {
|
|
4015
|
+
sm: {};
|
|
4016
|
+
md: {};
|
|
4017
|
+
lg: {};
|
|
4018
|
+
xl: {};
|
|
4019
|
+
};
|
|
4020
|
+
}, {
|
|
4021
|
+
overlay: string;
|
|
4022
|
+
content: string[];
|
|
4023
|
+
close: string[];
|
|
4024
|
+
header: string;
|
|
4025
|
+
title: string;
|
|
4026
|
+
description: string;
|
|
4027
|
+
body: string;
|
|
4028
|
+
footer: string;
|
|
4029
|
+
}, undefined, {
|
|
4030
|
+
side: {
|
|
4031
|
+
right: {
|
|
4032
|
+
content: string;
|
|
4033
|
+
};
|
|
4034
|
+
left: {
|
|
4035
|
+
content: string;
|
|
4036
|
+
};
|
|
4037
|
+
top: {
|
|
4038
|
+
content: string;
|
|
4039
|
+
};
|
|
4040
|
+
bottom: {
|
|
4041
|
+
content: string;
|
|
4042
|
+
};
|
|
4043
|
+
};
|
|
4044
|
+
size: {
|
|
4045
|
+
sm: {};
|
|
4046
|
+
md: {};
|
|
4047
|
+
lg: {};
|
|
4048
|
+
xl: {};
|
|
4049
|
+
};
|
|
4050
|
+
}, {
|
|
4051
|
+
overlay: string;
|
|
4052
|
+
content: string[];
|
|
4053
|
+
close: string[];
|
|
4054
|
+
header: string;
|
|
4055
|
+
title: string;
|
|
4056
|
+
description: string;
|
|
4057
|
+
body: string;
|
|
4058
|
+
footer: string;
|
|
4059
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
4060
|
+
side: {
|
|
4061
|
+
right: {
|
|
4062
|
+
content: string;
|
|
4063
|
+
};
|
|
4064
|
+
left: {
|
|
4065
|
+
content: string;
|
|
4066
|
+
};
|
|
4067
|
+
top: {
|
|
4068
|
+
content: string;
|
|
4069
|
+
};
|
|
4070
|
+
bottom: {
|
|
4071
|
+
content: string;
|
|
4072
|
+
};
|
|
4073
|
+
};
|
|
4074
|
+
size: {
|
|
4075
|
+
sm: {};
|
|
4076
|
+
md: {};
|
|
4077
|
+
lg: {};
|
|
4078
|
+
xl: {};
|
|
4079
|
+
};
|
|
4080
|
+
}, {
|
|
4081
|
+
overlay: string;
|
|
4082
|
+
content: string[];
|
|
4083
|
+
close: string[];
|
|
4084
|
+
header: string;
|
|
4085
|
+
title: string;
|
|
4086
|
+
description: string;
|
|
4087
|
+
body: string;
|
|
4088
|
+
footer: string;
|
|
4089
|
+
}>>;
|
|
4090
|
+
type SheetVariants = VariantProps<typeof sheetStyles>;
|
|
4091
|
+
declare module '@glyphui/tokens' {
|
|
4092
|
+
interface GlyphComponentRegistry {
|
|
4093
|
+
Sheet: StylesEntry<typeof sheetStyles>;
|
|
4094
|
+
}
|
|
4095
|
+
}
|
|
4096
|
+
//#endregion
|
|
4097
|
+
//#region src/components/sheet/sheet.d.ts
|
|
4098
|
+
/** A panel that slides in from an edge: filters, details, settings, mobile navigation. */
|
|
4099
|
+
export declare const Sheet: import("react").FC<Dialog$1.DialogProps>;
|
|
4100
|
+
export declare const SheetTrigger: import("react").ForwardRefExoticComponent<Dialog$1.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4101
|
+
export declare const SheetClose: import("react").ForwardRefExoticComponent<Dialog$1.DialogCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
4102
|
+
interface SheetContentProps extends ComponentProps<typeof Dialog$1.Content>, SheetVariants {
|
|
4103
|
+
/** Show the close button in the corner. Default true. */
|
|
4104
|
+
showClose?: boolean;
|
|
4105
|
+
overlayClassName?: string;
|
|
4106
|
+
}
|
|
4107
|
+
export declare function SheetContent(inProps: SheetContentProps): import("react").JSX.Element;
|
|
4108
|
+
export declare function SheetHeader({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
4109
|
+
export declare function SheetTitle({ className, ...props }: ComponentProps<typeof Dialog$1.Title>): import("react").JSX.Element;
|
|
4110
|
+
export declare function SheetDescription({ className, ...props }: ComponentProps<typeof Dialog$1.Description>): import("react").JSX.Element;
|
|
4111
|
+
export declare function SheetBody({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
4112
|
+
export declare function SheetFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
4113
|
+
//#endregion
|
|
4114
|
+
//#region src/components/slider/slider.d.ts
|
|
4115
|
+
type SliderValue = number | readonly [number, number];
|
|
4116
|
+
interface SliderMark {
|
|
4117
|
+
value: number;
|
|
4118
|
+
label?: ReactNode;
|
|
4119
|
+
}
|
|
4120
|
+
interface SliderProps<V extends SliderValue> {
|
|
4121
|
+
/** A number for one thumb, a `[min, max]` tuple for a range. */
|
|
4122
|
+
value?: V;
|
|
4123
|
+
defaultValue?: V;
|
|
4124
|
+
onValueChange?: (value: V) => void;
|
|
4125
|
+
/** Fires once when the user releases the thumb. Use it for expensive updates. */
|
|
4126
|
+
onValueCommit?: (value: V) => void;
|
|
4127
|
+
min?: number;
|
|
4128
|
+
max?: number;
|
|
4129
|
+
step?: number;
|
|
4130
|
+
/** Minimum distance between range thumbs, in steps. */
|
|
4131
|
+
minStepsBetweenThumbs?: number;
|
|
4132
|
+
/** Labels shown under the track at given values. */
|
|
4133
|
+
marks?: readonly (number | SliderMark)[];
|
|
4134
|
+
/** Show the current value above each thumb. Pass a function to format it. */
|
|
4135
|
+
showValue?: boolean | ((value: number) => ReactNode);
|
|
4136
|
+
disabled?: boolean;
|
|
4137
|
+
name?: string;
|
|
4138
|
+
id?: string;
|
|
4139
|
+
className?: string;
|
|
4140
|
+
'aria-label'?: string;
|
|
4141
|
+
'aria-describedby'?: string;
|
|
4142
|
+
'aria-invalid'?: boolean;
|
|
4143
|
+
/** Accessible names for range thumbs. Default: "Minimum", "Maximum". */
|
|
4144
|
+
thumbLabels?: readonly [string, string];
|
|
4145
|
+
}
|
|
4146
|
+
/** Choose a number, or a range with two thumbs, by dragging or with arrow keys. */
|
|
4147
|
+
export declare function Slider<V extends SliderValue = number>(inProps: SliderProps<V>): import("react").JSX.Element;
|
|
4148
|
+
//#endregion
|
|
4149
|
+
//#region src/components/slider/slider.styles.d.ts
|
|
4150
|
+
export declare const sliderStyles: import("tailwind-variants").TVReturnType<{
|
|
4151
|
+
showValue: {
|
|
4152
|
+
true: {
|
|
4153
|
+
wrapper: string;
|
|
4154
|
+
};
|
|
4155
|
+
};
|
|
4156
|
+
}, {
|
|
4157
|
+
wrapper: string;
|
|
4158
|
+
root: string;
|
|
4159
|
+
track: string;
|
|
4160
|
+
range: string;
|
|
4161
|
+
thumb: string[];
|
|
4162
|
+
value: string;
|
|
4163
|
+
marks: string;
|
|
4164
|
+
mark: string;
|
|
4165
|
+
}, undefined, {
|
|
4166
|
+
showValue: {
|
|
4167
|
+
true: {
|
|
4168
|
+
wrapper: string;
|
|
4169
|
+
};
|
|
4170
|
+
};
|
|
4171
|
+
}, {
|
|
4172
|
+
wrapper: string;
|
|
4173
|
+
root: string;
|
|
4174
|
+
track: string;
|
|
4175
|
+
range: string;
|
|
4176
|
+
thumb: string[];
|
|
4177
|
+
value: string;
|
|
4178
|
+
marks: string;
|
|
4179
|
+
mark: string;
|
|
4180
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
4181
|
+
showValue: {
|
|
4182
|
+
true: {
|
|
4183
|
+
wrapper: string;
|
|
4184
|
+
};
|
|
4185
|
+
};
|
|
4186
|
+
}, {
|
|
4187
|
+
wrapper: string;
|
|
4188
|
+
root: string;
|
|
4189
|
+
track: string;
|
|
4190
|
+
range: string;
|
|
4191
|
+
thumb: string[];
|
|
4192
|
+
value: string;
|
|
4193
|
+
marks: string;
|
|
4194
|
+
mark: string;
|
|
4195
|
+
}>>;
|
|
4196
|
+
type SliderVariants = VariantProps<typeof sliderStyles>;
|
|
4197
|
+
declare module '@glyphui/tokens' {
|
|
4198
|
+
interface GlyphComponentRegistry {
|
|
4199
|
+
Slider: StylesEntry<typeof sliderStyles>;
|
|
4200
|
+
}
|
|
4201
|
+
}
|
|
4202
|
+
//#endregion
|
|
1773
4203
|
//#region src/components/spinner/spinner.d.ts
|
|
1774
4204
|
interface SpinnerProps extends Omit<ComponentProps<'svg'>, 'children'>, SpinnerVariants {
|
|
1775
4205
|
/** Accessible label. Omit when the spinner sits inside an element that already says it's busy. */
|
|
@@ -1884,6 +4314,106 @@ interface StackProps extends ComponentProps<'div'>, VariantProps<typeof stackSty
|
|
|
1884
4314
|
/** Flex layout with spacing from the scale. `direction="row"` for horizontal. */
|
|
1885
4315
|
export declare function Stack({ direction, gap, align, justify, wrap, asChild, className, ...props }: StackProps): import("react").JSX.Element;
|
|
1886
4316
|
//#endregion
|
|
4317
|
+
//#region src/components/stat-card/stat-card.d.ts
|
|
4318
|
+
type Trend = 'up' | 'down' | 'neutral';
|
|
4319
|
+
interface StatCardProps extends Omit<CardProps, 'children'> {
|
|
4320
|
+
label: ReactNode;
|
|
4321
|
+
value: ReactNode;
|
|
4322
|
+
/** Change versus the previous period, e.g. "+12.4%". */
|
|
4323
|
+
delta?: ReactNode;
|
|
4324
|
+
/** Direction of the change. Colors the delta: up is good unless `invertTrend` is set. */
|
|
4325
|
+
trend?: Trend;
|
|
4326
|
+
/** For metrics where going down is good (churn, latency, cost). */
|
|
4327
|
+
invertTrend?: boolean;
|
|
4328
|
+
icon?: ReactNode;
|
|
4329
|
+
description?: ReactNode;
|
|
4330
|
+
/** A sparkline or small chart under the value. Colored with the primary color by default. */
|
|
4331
|
+
chart?: ReactNode;
|
|
4332
|
+
}
|
|
4333
|
+
/** A key metric with its label, change versus the last period, and an optional chart. */
|
|
4334
|
+
export declare function StatCard(inProps: StatCardProps): import("react").JSX.Element;
|
|
4335
|
+
//#endregion
|
|
4336
|
+
//#region src/components/stat-card/stat-card.styles.d.ts
|
|
4337
|
+
export declare const statCardStyles: import("tailwind-variants").TVReturnType<{
|
|
4338
|
+
[key: string]: {
|
|
4339
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4340
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
4341
|
+
root?: import("tailwind-variants").ClassValue;
|
|
4342
|
+
label?: import("tailwind-variants").ClassValue;
|
|
4343
|
+
description?: import("tailwind-variants").ClassValue;
|
|
4344
|
+
header?: import("tailwind-variants").ClassValue;
|
|
4345
|
+
value?: import("tailwind-variants").ClassValue;
|
|
4346
|
+
valueRow?: import("tailwind-variants").ClassValue;
|
|
4347
|
+
delta?: import("tailwind-variants").ClassValue;
|
|
4348
|
+
chart?: import("tailwind-variants").ClassValue;
|
|
4349
|
+
};
|
|
4350
|
+
};
|
|
4351
|
+
} | {
|
|
4352
|
+
[x: string]: {
|
|
4353
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
4354
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
4355
|
+
root?: import("tailwind-variants").ClassValue;
|
|
4356
|
+
label?: import("tailwind-variants").ClassValue;
|
|
4357
|
+
description?: import("tailwind-variants").ClassValue;
|
|
4358
|
+
header?: import("tailwind-variants").ClassValue;
|
|
4359
|
+
value?: import("tailwind-variants").ClassValue;
|
|
4360
|
+
valueRow?: import("tailwind-variants").ClassValue;
|
|
4361
|
+
delta?: import("tailwind-variants").ClassValue;
|
|
4362
|
+
chart?: import("tailwind-variants").ClassValue;
|
|
4363
|
+
};
|
|
4364
|
+
};
|
|
4365
|
+
} | {}, {
|
|
4366
|
+
root: string;
|
|
4367
|
+
header: string;
|
|
4368
|
+
label: string;
|
|
4369
|
+
icon: string;
|
|
4370
|
+
valueRow: string;
|
|
4371
|
+
value: string;
|
|
4372
|
+
delta: string;
|
|
4373
|
+
description: string;
|
|
4374
|
+
chart: string;
|
|
4375
|
+
}, undefined, {
|
|
4376
|
+
[key: string]: {
|
|
4377
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4378
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
4379
|
+
root?: import("tailwind-variants").ClassValue;
|
|
4380
|
+
label?: import("tailwind-variants").ClassValue;
|
|
4381
|
+
description?: import("tailwind-variants").ClassValue;
|
|
4382
|
+
header?: import("tailwind-variants").ClassValue;
|
|
4383
|
+
value?: import("tailwind-variants").ClassValue;
|
|
4384
|
+
valueRow?: import("tailwind-variants").ClassValue;
|
|
4385
|
+
delta?: import("tailwind-variants").ClassValue;
|
|
4386
|
+
chart?: import("tailwind-variants").ClassValue;
|
|
4387
|
+
};
|
|
4388
|
+
};
|
|
4389
|
+
} | {}, {
|
|
4390
|
+
root: string;
|
|
4391
|
+
header: string;
|
|
4392
|
+
label: string;
|
|
4393
|
+
icon: string;
|
|
4394
|
+
valueRow: string;
|
|
4395
|
+
value: string;
|
|
4396
|
+
delta: string;
|
|
4397
|
+
description: string;
|
|
4398
|
+
chart: string;
|
|
4399
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
4400
|
+
root: string;
|
|
4401
|
+
header: string;
|
|
4402
|
+
label: string;
|
|
4403
|
+
icon: string;
|
|
4404
|
+
valueRow: string;
|
|
4405
|
+
value: string;
|
|
4406
|
+
delta: string;
|
|
4407
|
+
description: string;
|
|
4408
|
+
chart: string;
|
|
4409
|
+
}>>;
|
|
4410
|
+
type StatCardVariants = VariantProps<typeof statCardStyles>;
|
|
4411
|
+
declare module '@glyphui/tokens' {
|
|
4412
|
+
interface GlyphComponentRegistry {
|
|
4413
|
+
StatCard: StylesEntry<typeof statCardStyles>;
|
|
4414
|
+
}
|
|
4415
|
+
}
|
|
4416
|
+
//#endregion
|
|
1887
4417
|
//#region src/components/text/text.d.ts
|
|
1888
4418
|
interface TextProps extends ComponentProps<'p'>, TextVariants {
|
|
1889
4419
|
/** Render the child element (e.g. `<span>`, `<label>`) with text styles instead of a `<p>`. */
|
|
@@ -1891,6 +4421,121 @@ interface TextProps extends ComponentProps<'p'>, TextVariants {
|
|
|
1891
4421
|
}
|
|
1892
4422
|
export declare function Text(inProps: TextProps): import("react").JSX.Element;
|
|
1893
4423
|
//#endregion
|
|
4424
|
+
//#region src/components/toast/toast.d.ts
|
|
4425
|
+
export declare const toastStyles: import("tailwind-variants").TVReturnType<{
|
|
4426
|
+
[key: string]: {
|
|
4427
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4428
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
4429
|
+
description?: import("tailwind-variants").ClassValue;
|
|
4430
|
+
error?: import("tailwind-variants").ClassValue;
|
|
4431
|
+
title?: import("tailwind-variants").ClassValue;
|
|
4432
|
+
success?: import("tailwind-variants").ClassValue;
|
|
4433
|
+
warning?: import("tailwind-variants").ClassValue;
|
|
4434
|
+
info?: import("tailwind-variants").ClassValue;
|
|
4435
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4436
|
+
loading?: import("tailwind-variants").ClassValue;
|
|
4437
|
+
toast?: import("tailwind-variants").ClassValue;
|
|
4438
|
+
actionButton?: import("tailwind-variants").ClassValue;
|
|
4439
|
+
cancelButton?: import("tailwind-variants").ClassValue;
|
|
4440
|
+
closeButton?: import("tailwind-variants").ClassValue;
|
|
4441
|
+
};
|
|
4442
|
+
};
|
|
4443
|
+
} | {
|
|
4444
|
+
[x: string]: {
|
|
4445
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
4446
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
4447
|
+
description?: import("tailwind-variants").ClassValue;
|
|
4448
|
+
error?: import("tailwind-variants").ClassValue;
|
|
4449
|
+
title?: import("tailwind-variants").ClassValue;
|
|
4450
|
+
success?: import("tailwind-variants").ClassValue;
|
|
4451
|
+
warning?: import("tailwind-variants").ClassValue;
|
|
4452
|
+
info?: import("tailwind-variants").ClassValue;
|
|
4453
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4454
|
+
loading?: import("tailwind-variants").ClassValue;
|
|
4455
|
+
toast?: import("tailwind-variants").ClassValue;
|
|
4456
|
+
actionButton?: import("tailwind-variants").ClassValue;
|
|
4457
|
+
cancelButton?: import("tailwind-variants").ClassValue;
|
|
4458
|
+
closeButton?: import("tailwind-variants").ClassValue;
|
|
4459
|
+
};
|
|
4460
|
+
};
|
|
4461
|
+
} | {}, {
|
|
4462
|
+
toast: string[];
|
|
4463
|
+
content: string;
|
|
4464
|
+
title: string;
|
|
4465
|
+
description: string;
|
|
4466
|
+
icon: string;
|
|
4467
|
+
actionButton: string[];
|
|
4468
|
+
cancelButton: string[];
|
|
4469
|
+
closeButton: string[];
|
|
4470
|
+
success: string;
|
|
4471
|
+
error: string;
|
|
4472
|
+
warning: string;
|
|
4473
|
+
info: string;
|
|
4474
|
+
loading: string;
|
|
4475
|
+
}, undefined, {
|
|
4476
|
+
[key: string]: {
|
|
4477
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4478
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
4479
|
+
description?: import("tailwind-variants").ClassValue;
|
|
4480
|
+
error?: import("tailwind-variants").ClassValue;
|
|
4481
|
+
title?: import("tailwind-variants").ClassValue;
|
|
4482
|
+
success?: import("tailwind-variants").ClassValue;
|
|
4483
|
+
warning?: import("tailwind-variants").ClassValue;
|
|
4484
|
+
info?: import("tailwind-variants").ClassValue;
|
|
4485
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4486
|
+
loading?: import("tailwind-variants").ClassValue;
|
|
4487
|
+
toast?: import("tailwind-variants").ClassValue;
|
|
4488
|
+
actionButton?: import("tailwind-variants").ClassValue;
|
|
4489
|
+
cancelButton?: import("tailwind-variants").ClassValue;
|
|
4490
|
+
closeButton?: import("tailwind-variants").ClassValue;
|
|
4491
|
+
};
|
|
4492
|
+
};
|
|
4493
|
+
} | {}, {
|
|
4494
|
+
toast: string[];
|
|
4495
|
+
content: string;
|
|
4496
|
+
title: string;
|
|
4497
|
+
description: string;
|
|
4498
|
+
icon: string;
|
|
4499
|
+
actionButton: string[];
|
|
4500
|
+
cancelButton: string[];
|
|
4501
|
+
closeButton: string[];
|
|
4502
|
+
success: string;
|
|
4503
|
+
error: string;
|
|
4504
|
+
warning: string;
|
|
4505
|
+
info: string;
|
|
4506
|
+
loading: string;
|
|
4507
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
4508
|
+
toast: string[];
|
|
4509
|
+
content: string;
|
|
4510
|
+
title: string;
|
|
4511
|
+
description: string;
|
|
4512
|
+
icon: string;
|
|
4513
|
+
actionButton: string[];
|
|
4514
|
+
cancelButton: string[];
|
|
4515
|
+
closeButton: string[];
|
|
4516
|
+
success: string;
|
|
4517
|
+
error: string;
|
|
4518
|
+
warning: string;
|
|
4519
|
+
info: string;
|
|
4520
|
+
loading: string;
|
|
4521
|
+
}>>;
|
|
4522
|
+
declare module '@glyphui/tokens' {
|
|
4523
|
+
interface GlyphComponentRegistry {
|
|
4524
|
+
Toast: StylesEntry<typeof toastStyles>;
|
|
4525
|
+
}
|
|
4526
|
+
}
|
|
4527
|
+
type ToasterProps = ComponentProps<typeof Toaster$1>;
|
|
4528
|
+
/**
|
|
4529
|
+
* Renders toasts sent with `toast()`. Mount once near the root. Styled entirely by the
|
|
4530
|
+
* theme's tokens, so it follows the theme and color mode automatically.
|
|
4531
|
+
*
|
|
4532
|
+
* ```tsx
|
|
4533
|
+
* toast.success('Saved')
|
|
4534
|
+
* toast.promise(save(), { loading: 'Saving…', success: 'Saved', error: 'Couldn’t save' })
|
|
4535
|
+
* ```
|
|
4536
|
+
*/
|
|
4537
|
+
export declare function Toaster(inProps: ToasterProps): import("react").JSX.Element;
|
|
4538
|
+
//#endregion
|
|
1894
4539
|
//#region src/hooks/use-component-config.d.ts
|
|
1895
4540
|
type SlotsOf<K extends ComponentName> = GlyphComponentRegistry[K] extends {
|
|
1896
4541
|
slots: infer S extends string;
|
|
@@ -2113,9 +4758,14 @@ interface GlyphProviderProps {
|
|
|
2113
4758
|
storageKey?: string | null;
|
|
2114
4759
|
/** Your router's link, used by Navbar, Sidebar and other navigation components. */
|
|
2115
4760
|
linkComponent?: LinkComponent;
|
|
4761
|
+
/**
|
|
4762
|
+
* Mounts a themed `<Toaster />` so `toast()` works anywhere. `true` for defaults, or pass
|
|
4763
|
+
* Toaster props (e.g. `{ position: 'top-center' }`). Off by default.
|
|
4764
|
+
*/
|
|
4765
|
+
toaster?: boolean | ToasterProps;
|
|
2116
4766
|
}
|
|
2117
|
-
/** Provides the theme, color mode and
|
|
2118
|
-
export declare function GlyphProvider({ children, theme, defaultMode, storageKey, linkComponent }: GlyphProviderProps): import("react").JSX.Element;
|
|
4767
|
+
/** Provides the theme, color mode, tooltips, `useConfirm()` and (optionally) toasts. Render once at the root. */
|
|
4768
|
+
export declare function GlyphProvider({ children, theme, defaultMode, storageKey, linkComponent, toaster }: GlyphProviderProps): import("react").JSX.Element;
|
|
2119
4769
|
//#endregion
|
|
2120
4770
|
//#region src/provider/theme-scope.d.ts
|
|
2121
4771
|
interface ThemeScopeProps extends ComponentProps<'div'> {
|
|
@@ -2152,4 +4802,4 @@ type PresetName = keyof typeof presets;
|
|
|
2152
4802
|
/** Joins class names and resolves Tailwind conflicts (last one wins). */
|
|
2153
4803
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
2154
4804
|
//#endregion
|
|
2155
|
-
export { type AppShellContextValue, type AppShellProps, type AsyncProps, type AsyncResult, type AsyncStatus, type AvatarProps, type AvatarVariants, type BadgeProps, type BadgeVariants, Button, type ButtonProps, type ButtonVariants, type CardProps, type CardTitleProps, type CardVariants, type ClassValue, type ColorMode, type ColorModeContextValue, type ColorModeOptions, type ColorModePreference, type ColorToken, type ComponentOverrides, type ContainerProps, type ErrorStateProps, type EyebrowProps, type EyebrowVariants, Field, type FieldContextValue, type FieldProps, type FieldVariants, type GlyphContextValue, type GlyphProviderProps, type HeadingProps, type HeadingVariants, IconButton, type IconButtonProps, type InputProps, type InputVariants, type LinkComponent, type LinkComponentProps, type LoadingStateProps, type NavLink, type NavbarProps, type PageHeaderProps, type PresetName, type RadiusToken, type SectionProps, type SegmentedControlProps, type SegmentedOption, type SelectItemProps, type SelectProps, type ShadowToken, type SidebarItemProps, type SidebarSectionProps, type SlotClasses, type SpinnerProps, type SpinnerVariants, type StackProps, type StateProps, type SwitchProps, type TabsProps, type TextProps, type TextToken, type TextVariants, type Theme, type ThemeInput, type ThemeScopeProps, type Tone, type TooltipProps, type VariantProps, buttonStyles, defineTheme, fieldStyles, themeToCss, tokenVar, tv };
|
|
4805
|
+
export { type AccordionProps, type AccordionVariants, type AlertDialogActionProps, type AlertDialogContentProps, type AlertProps, type AlertVariants, type AppShellContextValue, type AppShellProps, type AspectRatioProps, type AsyncProps, type AsyncResult, type AsyncStatus, type AvatarProps, type AvatarVariants, type BadgeProps, type BadgeVariants, type BannerProps, type BannerVariants, type BlockquoteProps, type BreadcrumbItemData, type BreadcrumbLinkProps, type BreadcrumbProps, Button, type ButtonProps, type ButtonVariants, type CardProps, type CardTitleProps, type CardVariants, type ClassValue, type CodeBlockProps, type CodeBlockVariants, type ColorMode, type ColorModeContextValue, type ColorModeOptions, type ColorModePreference, type ColorToken, type ComboboxOption, type ComboboxProps, type ComboboxVariants, type CommandItemProps, type CommandMenuProps, type ComponentOverrides, type ConfirmFn, type ConfirmOptions, type ContainerProps, type DescriptionItemProps, type DescriptionListProps, type DescriptionListVariants, type DialogContentProps, type DialogVariants, type DropdownMenuItemProps, type DropdownMenuSubTriggerProps, type DropdownMenuVariants, type ErrorStateProps, type EyebrowProps, type EyebrowVariants, Field, type FieldContextValue, type FieldProps, type FieldVariants, type GlyphContextValue, type GlyphProviderProps, type GridCols, type GridProps, type HeadingProps, type HeadingVariants, IconButton, type IconButtonProps, type InputProps, type InputVariants, type LinkComponent, type LinkComponentProps, type LinkProps, type LinkVariants, type LoadingStateProps, type NavLink, type NavbarProps, type PageHeaderProps, type PaginationItem, type PaginationProps, type PaginationVariants, type PopoverContentProps, type PresetName, type ProgressCircleProps, type ProgressCircleVariants, type ProgressProps, type ProgressVariants, type ProseProps, type RadioGroupItemProps, type RadioGroupProps, type RadioGroupVariants, type RadiusToken, type ScrollAreaProps, type SectionProps, type SegmentedControlProps, type SegmentedOption, type SelectItemProps, type SelectProps, type ShadowToken, type SheetContentProps, type SheetVariants, type SidebarItemProps, type SidebarSectionProps, type SliderMark, type SliderProps, type SliderValue, type SliderVariants, type SlotClasses, type SpinnerProps, type SpinnerVariants, type StackProps, type StatCardProps, type StatCardVariants, type StateProps, type SwitchProps, type TabsProps, type TextProps, type TextToken, type TextVariants, type Theme, type ThemeInput, type ThemeScopeProps, type ToasterProps, type Tone, type TooltipProps, type VariantProps, buttonStyles, defineTheme, fieldStyles, themeToCss, toast, tokenVar, tv };
|