@glyphui/ui 0.2.0 → 0.4.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 +65 -12
- package/dist/chart.d.ts +202 -0
- package/dist/chart.js +466 -0
- package/dist/color-mode-script-Bf7LYkOj.js +13 -0
- package/dist/color-mode-script-KdwItKN2.d.ts +16 -0
- package/dist/data-table.js +3 -2
- package/dist/{field-CCecIzdq.js → field-CVbywksE.js} +21 -5
- package/dist/{field-context-B6WOcK5m.js → field-context-7I-cWvvS.js} +3 -57
- package/dist/form.d.ts +11 -4
- package/dist/form.js +34 -8
- package/dist/glyph-context-DxGJrdvr.d.ts +50 -0
- package/dist/{index-BWK4czIG.d.ts → index-Bi7rZ6ba.d.ts} +11 -0
- package/dist/index.d.ts +2334 -283
- package/dist/index.js +2952 -326
- package/dist/react-router.d.ts +18 -0
- package/dist/react-router.js +44 -0
- package/dist/{states-Rp8wZ_jH.js → states-IvhjBgna.js} +2 -1
- package/dist/tv-DLbT66dC.js +70 -0
- package/dist/vite.d.ts +27 -0
- package/dist/vite.js +29 -0
- package/fonts.css +10 -0
- package/package.json +47 -5
- package/src/components/accordion/accordion.styles.ts +4 -4
- package/src/components/badge/badge.styles.ts +11 -16
- package/src/components/banner/banner.styles.ts +4 -4
- package/src/components/button/button.styles.ts +3 -1
- package/src/components/calendar/calendar.styles.ts +51 -0
- package/src/components/calendar/calendar.tsx +84 -0
- package/src/components/calendar/index.ts +3 -0
- package/src/components/carousel/carousel.styles.ts +43 -0
- package/src/components/carousel/carousel.tsx +278 -0
- package/src/components/carousel/index.ts +13 -0
- package/src/components/collapsible/collapsible.tsx +66 -0
- package/src/components/collapsible/index.ts +6 -0
- package/src/components/context-menu/context-menu.styles.ts +19 -0
- package/src/components/context-menu/context-menu.tsx +226 -0
- package/src/components/context-menu/index.ts +19 -0
- package/src/components/copy-button/copy-button.tsx +117 -0
- package/src/components/copy-button/index.ts +1 -0
- package/src/components/date-picker/date-picker.styles.ts +42 -0
- package/src/components/date-picker/date-picker.tsx +322 -0
- package/src/components/date-picker/index.ts +8 -0
- package/src/components/dropdown-menu/dropdown-menu.styles.ts +2 -2
- package/src/components/eyebrow/eyebrow.styles.ts +1 -1
- package/src/components/field/field-context.ts +2 -0
- package/src/components/field/field.styles.ts +4 -2
- package/src/components/field/field.tsx +25 -4
- package/src/components/file-upload/file-upload.styles.ts +43 -0
- package/src/components/file-upload/file-upload.tsx +343 -0
- package/src/components/file-upload/index.ts +10 -0
- package/src/components/hover-card/hover-card.tsx +41 -0
- package/src/components/hover-card/index.ts +1 -0
- package/src/components/input-otp/index.ts +10 -0
- package/src/components/input-otp/input-otp.styles.ts +38 -0
- package/src/components/input-otp/input-otp.tsx +116 -0
- package/src/components/link/link.styles.ts +1 -1
- package/src/components/modal/index.ts +2 -0
- package/src/components/modal/modal.styles.ts +20 -0
- package/src/components/modal/modal.tsx +111 -0
- package/src/components/navigation-menu/index.ts +14 -0
- package/src/components/navigation-menu/navigation-menu.styles.ts +48 -0
- package/src/components/navigation-menu/navigation-menu.tsx +208 -0
- package/src/components/number-input/index.ts +2 -0
- package/src/components/number-input/number-input.styles.ts +41 -0
- package/src/components/number-input/number-input.tsx +211 -0
- package/src/components/password-input/index.ts +7 -0
- package/src/components/password-input/password-input.styles.ts +30 -0
- package/src/components/password-input/password-input.tsx +127 -0
- package/src/components/prose/prose.tsx +1 -1
- package/src/components/resizable/index.ts +9 -0
- package/src/components/resizable/resizable.styles.ts +28 -0
- package/src/components/resizable/resizable.tsx +69 -0
- package/src/components/scroll-area/scroll-area.tsx +23 -1
- package/src/components/segmented-control/segmented-control.tsx +17 -2
- package/src/components/sheet/sheet.styles.ts +7 -7
- package/src/components/slider/slider.tsx +9 -2
- package/src/components/stepper/index.ts +2 -0
- package/src/components/stepper/stepper.styles.ts +74 -0
- package/src/components/stepper/stepper.tsx +138 -0
- package/src/components/tag-input/index.ts +2 -0
- package/src/components/tag-input/tag-input.styles.ts +39 -0
- package/src/components/tag-input/tag-input.tsx +198 -0
- package/src/components/text/text.styles.ts +4 -4
- package/src/components/timeline/index.ts +8 -0
- package/src/components/timeline/timeline.styles.ts +56 -0
- package/src/components/timeline/timeline.tsx +91 -0
- package/src/components/toggle/index.ts +9 -0
- package/src/components/toggle/toggle.styles.ts +39 -0
- package/src/components/toggle/toggle.tsx +61 -0
- package/src/components/tree-view/index.ts +2 -0
- package/src/components/tree-view/tree-view.styles.ts +42 -0
- package/src/components/tree-view/tree-view.tsx +274 -0
- package/src/components/visually-hidden/index.ts +1 -0
- package/src/components/visually-hidden/visually-hidden.tsx +10 -0
- package/src/index.ts +20 -0
- package/src/integrations/react-router.tsx +39 -0
- package/src/integrations/vite.test-d.ts +6 -0
- package/src/integrations/vite.test.ts +28 -0
- package/src/integrations/vite.ts +33 -0
- package/src/internal/dev.ts +12 -0
- package/src/patterns/app-shell/app-shell.styles.ts +1 -1
- package/src/patterns/app-shell/navbar.tsx +34 -16
- package/src/patterns/app-shell/sidebar.tsx +7 -2
- package/src/patterns/chart/chart-parts.tsx +179 -0
- package/src/patterns/chart/chart.styles.ts +35 -0
- package/src/patterns/chart/chart.tsx +386 -0
- package/src/patterns/chart/index.ts +13 -0
- package/src/patterns/form/form.tsx +48 -6
- package/src/patterns/form/index.ts +1 -0
- package/src/provider/color-mode-script.ts +28 -0
- package/src/provider/color-mode.tsx +14 -20
- package/src/provider/glyph-context.ts +38 -0
- package/src/provider/glyph-provider.tsx +16 -4
- package/src/provider/index.ts +4 -0
- package/src/provider/theme-scope.tsx +7 -3
- package/styles.css +88 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { n as tv, t as VariantProps } from "./tv-DuMh7UH2.js";
|
|
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-
|
|
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-Bi7rZ6ba.js";
|
|
3
3
|
import { t as StylesEntry } from "./registry-BGSJoiLq.js";
|
|
4
|
+
import { n as ColorModePreference, r as getColorModeScript, t as ColorModeOptions } from "./color-mode-script-KdwItKN2.js";
|
|
5
|
+
import { a as LinkComponentProps, c as useIsActive, i as LinkComponent, l as useLinkComponent, n as GlyphRouter, o as UseIsActive, r as IsActiveOptions, s as useGlyph, t as GlyphContextValue } from "./glyph-context-DxGJrdvr.js";
|
|
4
6
|
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 { 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,
|
|
7
|
+
import { Accordion as Accordion$1, AlertDialog as AlertDialog$1, AspectRatio as AspectRatio$1, Avatar as Avatar$1, Checkbox as Checkbox$1, Collapsible as Collapsible$1, ContextMenu as ContextMenu$1, Dialog as Dialog$1, DropdownMenu as DropdownMenu$1, HoverCard as HoverCard$1, Label as Label$1, NavigationMenu as NavigationMenu$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, Toggle as Toggle$1, ToggleGroup as ToggleGroup$1, Tooltip as Tooltip$1, VisuallyHidden as VisuallyHidden$1 } from "radix-ui";
|
|
8
|
+
import { ComponentProps, DependencyList, Dispatch, FormEvent, MouseEvent, ReactNode, SetStateAction } from "react";
|
|
9
|
+
import { DateRange, DateRange as DateRange$1, DayPickerProps, Matcher, Matcher as Matcher$1 } from "react-day-picker";
|
|
10
|
+
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
11
|
+
import { ClassValue } from "clsx";
|
|
7
12
|
import { Command as Command$1 } from "cmdk";
|
|
13
|
+
import { OTPInputProps, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS } from "input-otp";
|
|
14
|
+
import { Panel, PanelGroup, PanelResizeHandle } from "react-resizable-panels";
|
|
8
15
|
import { Toaster as Toaster$1, toast } from "sonner";
|
|
9
|
-
import { ClassValue } from "clsx";
|
|
10
16
|
//#region src/components/avatar/avatar.styles.d.ts
|
|
11
17
|
export declare const avatarStyles: import("tailwind-variants").TVReturnType<{
|
|
12
18
|
size: {
|
|
@@ -574,7 +580,9 @@ interface SegmentedControlProps<T extends string> extends VariantProps<typeof se
|
|
|
574
580
|
value?: T;
|
|
575
581
|
defaultValue?: T;
|
|
576
582
|
onValueChange?: (value: T) => void;
|
|
577
|
-
|
|
583
|
+
/** Required unless the control sits in a `<Field label>`, which labels it. */
|
|
584
|
+
'aria-label'?: string;
|
|
585
|
+
'aria-labelledby'?: string;
|
|
578
586
|
className?: string;
|
|
579
587
|
id?: string;
|
|
580
588
|
}
|
|
@@ -834,27 +842,27 @@ export declare function Switch(inProps: SwitchProps): import("react").JSX.Elemen
|
|
|
834
842
|
export declare const tableStyles: import("tailwind-variants").TVReturnType<{
|
|
835
843
|
[key: string]: {
|
|
836
844
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
845
|
+
caption?: import("tailwind-variants").ClassValue;
|
|
837
846
|
header?: import("tailwind-variants").ClassValue;
|
|
838
847
|
body?: import("tailwind-variants").ClassValue;
|
|
839
|
-
wrapper?: import("tailwind-variants").ClassValue;
|
|
840
|
-
table?: import("tailwind-variants").ClassValue;
|
|
841
|
-
row?: import("tailwind-variants").ClassValue;
|
|
842
848
|
head?: import("tailwind-variants").ClassValue;
|
|
849
|
+
table?: import("tailwind-variants").ClassValue;
|
|
843
850
|
cell?: import("tailwind-variants").ClassValue;
|
|
844
|
-
|
|
851
|
+
row?: import("tailwind-variants").ClassValue;
|
|
852
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
845
853
|
};
|
|
846
854
|
};
|
|
847
855
|
} | {
|
|
848
856
|
[x: string]: {
|
|
849
857
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
858
|
+
caption?: import("tailwind-variants").ClassValue;
|
|
850
859
|
header?: import("tailwind-variants").ClassValue;
|
|
851
860
|
body?: import("tailwind-variants").ClassValue;
|
|
852
|
-
wrapper?: import("tailwind-variants").ClassValue;
|
|
853
|
-
table?: import("tailwind-variants").ClassValue;
|
|
854
|
-
row?: import("tailwind-variants").ClassValue;
|
|
855
861
|
head?: import("tailwind-variants").ClassValue;
|
|
862
|
+
table?: import("tailwind-variants").ClassValue;
|
|
856
863
|
cell?: import("tailwind-variants").ClassValue;
|
|
857
|
-
|
|
864
|
+
row?: import("tailwind-variants").ClassValue;
|
|
865
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
858
866
|
};
|
|
859
867
|
};
|
|
860
868
|
} | {}, {
|
|
@@ -869,14 +877,14 @@ export declare const tableStyles: import("tailwind-variants").TVReturnType<{
|
|
|
869
877
|
}, undefined, {
|
|
870
878
|
[key: string]: {
|
|
871
879
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
880
|
+
caption?: import("tailwind-variants").ClassValue;
|
|
872
881
|
header?: import("tailwind-variants").ClassValue;
|
|
873
882
|
body?: import("tailwind-variants").ClassValue;
|
|
874
|
-
wrapper?: import("tailwind-variants").ClassValue;
|
|
875
|
-
table?: import("tailwind-variants").ClassValue;
|
|
876
|
-
row?: import("tailwind-variants").ClassValue;
|
|
877
883
|
head?: import("tailwind-variants").ClassValue;
|
|
884
|
+
table?: import("tailwind-variants").ClassValue;
|
|
878
885
|
cell?: import("tailwind-variants").ClassValue;
|
|
879
|
-
|
|
886
|
+
row?: import("tailwind-variants").ClassValue;
|
|
887
|
+
wrapper?: import("tailwind-variants").ClassValue;
|
|
880
888
|
};
|
|
881
889
|
};
|
|
882
890
|
} | {}, {
|
|
@@ -1284,9 +1292,9 @@ export declare const sidebarStyles: import("tailwind-variants").TVReturnType<{
|
|
|
1284
1292
|
root?: import("tailwind-variants").ClassValue;
|
|
1285
1293
|
footer?: import("tailwind-variants").ClassValue;
|
|
1286
1294
|
header?: import("tailwind-variants").ClassValue;
|
|
1287
|
-
item?: import("tailwind-variants").ClassValue;
|
|
1288
1295
|
content?: import("tailwind-variants").ClassValue;
|
|
1289
1296
|
section?: import("tailwind-variants").ClassValue;
|
|
1297
|
+
item?: import("tailwind-variants").ClassValue;
|
|
1290
1298
|
sectionLabel?: import("tailwind-variants").ClassValue;
|
|
1291
1299
|
itemIcon?: import("tailwind-variants").ClassValue;
|
|
1292
1300
|
itemLabel?: import("tailwind-variants").ClassValue;
|
|
@@ -1299,9 +1307,9 @@ export declare const sidebarStyles: import("tailwind-variants").TVReturnType<{
|
|
|
1299
1307
|
root?: import("tailwind-variants").ClassValue;
|
|
1300
1308
|
footer?: import("tailwind-variants").ClassValue;
|
|
1301
1309
|
header?: import("tailwind-variants").ClassValue;
|
|
1302
|
-
item?: import("tailwind-variants").ClassValue;
|
|
1303
1310
|
content?: import("tailwind-variants").ClassValue;
|
|
1304
1311
|
section?: import("tailwind-variants").ClassValue;
|
|
1312
|
+
item?: import("tailwind-variants").ClassValue;
|
|
1305
1313
|
sectionLabel?: import("tailwind-variants").ClassValue;
|
|
1306
1314
|
itemIcon?: import("tailwind-variants").ClassValue;
|
|
1307
1315
|
itemLabel?: import("tailwind-variants").ClassValue;
|
|
@@ -1325,9 +1333,9 @@ export declare const sidebarStyles: import("tailwind-variants").TVReturnType<{
|
|
|
1325
1333
|
root?: import("tailwind-variants").ClassValue;
|
|
1326
1334
|
footer?: import("tailwind-variants").ClassValue;
|
|
1327
1335
|
header?: import("tailwind-variants").ClassValue;
|
|
1328
|
-
item?: import("tailwind-variants").ClassValue;
|
|
1329
1336
|
content?: import("tailwind-variants").ClassValue;
|
|
1330
1337
|
section?: import("tailwind-variants").ClassValue;
|
|
1338
|
+
item?: import("tailwind-variants").ClassValue;
|
|
1331
1339
|
sectionLabel?: import("tailwind-variants").ClassValue;
|
|
1332
1340
|
itemIcon?: import("tailwind-variants").ClassValue;
|
|
1333
1341
|
itemLabel?: import("tailwind-variants").ClassValue;
|
|
@@ -1455,10 +1463,10 @@ export declare const pageHeaderStyles: import("tailwind-variants").TVReturnType<
|
|
|
1455
1463
|
[key: string]: {
|
|
1456
1464
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
1457
1465
|
root?: import("tailwind-variants").ClassValue;
|
|
1466
|
+
title?: import("tailwind-variants").ClassValue;
|
|
1467
|
+
description?: import("tailwind-variants").ClassValue;
|
|
1458
1468
|
actions?: import("tailwind-variants").ClassValue;
|
|
1459
1469
|
text?: import("tailwind-variants").ClassValue;
|
|
1460
|
-
description?: import("tailwind-variants").ClassValue;
|
|
1461
|
-
title?: import("tailwind-variants").ClassValue;
|
|
1462
1470
|
eyebrow?: import("tailwind-variants").ClassValue;
|
|
1463
1471
|
};
|
|
1464
1472
|
};
|
|
@@ -1466,10 +1474,10 @@ export declare const pageHeaderStyles: import("tailwind-variants").TVReturnType<
|
|
|
1466
1474
|
[x: string]: {
|
|
1467
1475
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
1468
1476
|
root?: import("tailwind-variants").ClassValue;
|
|
1477
|
+
title?: import("tailwind-variants").ClassValue;
|
|
1478
|
+
description?: import("tailwind-variants").ClassValue;
|
|
1469
1479
|
actions?: import("tailwind-variants").ClassValue;
|
|
1470
1480
|
text?: import("tailwind-variants").ClassValue;
|
|
1471
|
-
description?: import("tailwind-variants").ClassValue;
|
|
1472
|
-
title?: import("tailwind-variants").ClassValue;
|
|
1473
1481
|
eyebrow?: import("tailwind-variants").ClassValue;
|
|
1474
1482
|
};
|
|
1475
1483
|
};
|
|
@@ -1484,10 +1492,10 @@ export declare const pageHeaderStyles: import("tailwind-variants").TVReturnType<
|
|
|
1484
1492
|
[key: string]: {
|
|
1485
1493
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
1486
1494
|
root?: import("tailwind-variants").ClassValue;
|
|
1495
|
+
title?: import("tailwind-variants").ClassValue;
|
|
1496
|
+
description?: import("tailwind-variants").ClassValue;
|
|
1487
1497
|
actions?: import("tailwind-variants").ClassValue;
|
|
1488
1498
|
text?: import("tailwind-variants").ClassValue;
|
|
1489
|
-
description?: import("tailwind-variants").ClassValue;
|
|
1490
|
-
title?: import("tailwind-variants").ClassValue;
|
|
1491
1499
|
eyebrow?: import("tailwind-variants").ClassValue;
|
|
1492
1500
|
};
|
|
1493
1501
|
};
|
|
@@ -1831,9 +1839,9 @@ export declare function AlertDialogCancel(props: Omit<ButtonProps, 'variant' | '
|
|
|
1831
1839
|
export declare const alertDialogStyles: import("tailwind-variants").TVReturnType<{
|
|
1832
1840
|
[key: string]: {
|
|
1833
1841
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
1834
|
-
footer?: import("tailwind-variants").ClassValue;
|
|
1835
|
-
description?: import("tailwind-variants").ClassValue;
|
|
1836
1842
|
title?: import("tailwind-variants").ClassValue;
|
|
1843
|
+
description?: import("tailwind-variants").ClassValue;
|
|
1844
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
1837
1845
|
header?: import("tailwind-variants").ClassValue;
|
|
1838
1846
|
content?: import("tailwind-variants").ClassValue;
|
|
1839
1847
|
overlay?: import("tailwind-variants").ClassValue;
|
|
@@ -1842,9 +1850,9 @@ export declare const alertDialogStyles: import("tailwind-variants").TVReturnType
|
|
|
1842
1850
|
} | {
|
|
1843
1851
|
[x: string]: {
|
|
1844
1852
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
1845
|
-
footer?: import("tailwind-variants").ClassValue;
|
|
1846
|
-
description?: import("tailwind-variants").ClassValue;
|
|
1847
1853
|
title?: import("tailwind-variants").ClassValue;
|
|
1854
|
+
description?: import("tailwind-variants").ClassValue;
|
|
1855
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
1848
1856
|
header?: import("tailwind-variants").ClassValue;
|
|
1849
1857
|
content?: import("tailwind-variants").ClassValue;
|
|
1850
1858
|
overlay?: import("tailwind-variants").ClassValue;
|
|
@@ -1860,9 +1868,9 @@ export declare const alertDialogStyles: import("tailwind-variants").TVReturnType
|
|
|
1860
1868
|
}, undefined, {
|
|
1861
1869
|
[key: string]: {
|
|
1862
1870
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
1863
|
-
footer?: import("tailwind-variants").ClassValue;
|
|
1864
|
-
description?: import("tailwind-variants").ClassValue;
|
|
1865
1871
|
title?: import("tailwind-variants").ClassValue;
|
|
1872
|
+
description?: import("tailwind-variants").ClassValue;
|
|
1873
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
1866
1874
|
header?: import("tailwind-variants").ClassValue;
|
|
1867
1875
|
content?: import("tailwind-variants").ClassValue;
|
|
1868
1876
|
overlay?: import("tailwind-variants").ClassValue;
|
|
@@ -2198,9 +2206,9 @@ export declare const breadcrumbStyles: import("tailwind-variants").TVReturnType<
|
|
|
2198
2206
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2199
2207
|
root?: import("tailwind-variants").ClassValue;
|
|
2200
2208
|
link?: import("tailwind-variants").ClassValue;
|
|
2201
|
-
item?: import("tailwind-variants").ClassValue;
|
|
2202
2209
|
list?: import("tailwind-variants").ClassValue;
|
|
2203
2210
|
separator?: import("tailwind-variants").ClassValue;
|
|
2211
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2204
2212
|
page?: import("tailwind-variants").ClassValue;
|
|
2205
2213
|
};
|
|
2206
2214
|
};
|
|
@@ -2209,9 +2217,9 @@ export declare const breadcrumbStyles: import("tailwind-variants").TVReturnType<
|
|
|
2209
2217
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
2210
2218
|
root?: import("tailwind-variants").ClassValue;
|
|
2211
2219
|
link?: import("tailwind-variants").ClassValue;
|
|
2212
|
-
item?: import("tailwind-variants").ClassValue;
|
|
2213
2220
|
list?: import("tailwind-variants").ClassValue;
|
|
2214
2221
|
separator?: import("tailwind-variants").ClassValue;
|
|
2222
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2215
2223
|
page?: import("tailwind-variants").ClassValue;
|
|
2216
2224
|
};
|
|
2217
2225
|
};
|
|
@@ -2227,9 +2235,9 @@ export declare const breadcrumbStyles: import("tailwind-variants").TVReturnType<
|
|
|
2227
2235
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2228
2236
|
root?: import("tailwind-variants").ClassValue;
|
|
2229
2237
|
link?: import("tailwind-variants").ClassValue;
|
|
2230
|
-
item?: import("tailwind-variants").ClassValue;
|
|
2231
2238
|
list?: import("tailwind-variants").ClassValue;
|
|
2232
2239
|
separator?: import("tailwind-variants").ClassValue;
|
|
2240
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2233
2241
|
page?: import("tailwind-variants").ClassValue;
|
|
2234
2242
|
};
|
|
2235
2243
|
};
|
|
@@ -2254,6 +2262,184 @@ declare module '@glyphui/tokens' {
|
|
|
2254
2262
|
}
|
|
2255
2263
|
}
|
|
2256
2264
|
//#endregion
|
|
2265
|
+
//#region src/components/calendar/calendar.d.ts
|
|
2266
|
+
type CalendarProps = DayPickerProps;
|
|
2267
|
+
/**
|
|
2268
|
+
* A month grid for picking dates, built on react-day-picker and styled by the theme.
|
|
2269
|
+
* Supports `mode="single" | "multiple" | "range"`, disabled dates and several months.
|
|
2270
|
+
*/
|
|
2271
|
+
export declare function Calendar(inProps: CalendarProps): import("react").JSX.Element;
|
|
2272
|
+
//#endregion
|
|
2273
|
+
//#region src/components/calendar/calendar.styles.d.ts
|
|
2274
|
+
export declare const calendarStyles: import("tailwind-variants").TVReturnType<{
|
|
2275
|
+
[key: string]: {
|
|
2276
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2277
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2278
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
2279
|
+
nav?: import("tailwind-variants").ClassValue;
|
|
2280
|
+
hidden?: import("tailwind-variants").ClassValue;
|
|
2281
|
+
disabled?: import("tailwind-variants").ClassValue;
|
|
2282
|
+
chevron?: import("tailwind-variants").ClassValue;
|
|
2283
|
+
months?: import("tailwind-variants").ClassValue;
|
|
2284
|
+
month?: import("tailwind-variants").ClassValue;
|
|
2285
|
+
monthCaption?: import("tailwind-variants").ClassValue;
|
|
2286
|
+
captionLabel?: import("tailwind-variants").ClassValue;
|
|
2287
|
+
monthGrid?: import("tailwind-variants").ClassValue;
|
|
2288
|
+
weekdays?: import("tailwind-variants").ClassValue;
|
|
2289
|
+
weekday?: import("tailwind-variants").ClassValue;
|
|
2290
|
+
weeks?: import("tailwind-variants").ClassValue;
|
|
2291
|
+
week?: import("tailwind-variants").ClassValue;
|
|
2292
|
+
day?: import("tailwind-variants").ClassValue;
|
|
2293
|
+
today?: import("tailwind-variants").ClassValue;
|
|
2294
|
+
selected?: import("tailwind-variants").ClassValue;
|
|
2295
|
+
outside?: import("tailwind-variants").ClassValue;
|
|
2296
|
+
rangeStart?: import("tailwind-variants").ClassValue;
|
|
2297
|
+
rangeMiddle?: import("tailwind-variants").ClassValue;
|
|
2298
|
+
rangeEnd?: import("tailwind-variants").ClassValue;
|
|
2299
|
+
navButton?: import("tailwind-variants").ClassValue;
|
|
2300
|
+
dayButton?: import("tailwind-variants").ClassValue;
|
|
2301
|
+
};
|
|
2302
|
+
};
|
|
2303
|
+
} | {
|
|
2304
|
+
[x: string]: {
|
|
2305
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
2306
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2307
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
2308
|
+
nav?: import("tailwind-variants").ClassValue;
|
|
2309
|
+
hidden?: import("tailwind-variants").ClassValue;
|
|
2310
|
+
disabled?: import("tailwind-variants").ClassValue;
|
|
2311
|
+
chevron?: import("tailwind-variants").ClassValue;
|
|
2312
|
+
months?: import("tailwind-variants").ClassValue;
|
|
2313
|
+
month?: import("tailwind-variants").ClassValue;
|
|
2314
|
+
monthCaption?: import("tailwind-variants").ClassValue;
|
|
2315
|
+
captionLabel?: import("tailwind-variants").ClassValue;
|
|
2316
|
+
monthGrid?: import("tailwind-variants").ClassValue;
|
|
2317
|
+
weekdays?: import("tailwind-variants").ClassValue;
|
|
2318
|
+
weekday?: import("tailwind-variants").ClassValue;
|
|
2319
|
+
weeks?: import("tailwind-variants").ClassValue;
|
|
2320
|
+
week?: import("tailwind-variants").ClassValue;
|
|
2321
|
+
day?: import("tailwind-variants").ClassValue;
|
|
2322
|
+
today?: import("tailwind-variants").ClassValue;
|
|
2323
|
+
selected?: import("tailwind-variants").ClassValue;
|
|
2324
|
+
outside?: import("tailwind-variants").ClassValue;
|
|
2325
|
+
rangeStart?: import("tailwind-variants").ClassValue;
|
|
2326
|
+
rangeMiddle?: import("tailwind-variants").ClassValue;
|
|
2327
|
+
rangeEnd?: import("tailwind-variants").ClassValue;
|
|
2328
|
+
navButton?: import("tailwind-variants").ClassValue;
|
|
2329
|
+
dayButton?: import("tailwind-variants").ClassValue;
|
|
2330
|
+
};
|
|
2331
|
+
};
|
|
2332
|
+
} | {}, {
|
|
2333
|
+
root: string;
|
|
2334
|
+
months: string;
|
|
2335
|
+
month: string;
|
|
2336
|
+
monthCaption: string;
|
|
2337
|
+
captionLabel: string;
|
|
2338
|
+
nav: string;
|
|
2339
|
+
navButton: string[];
|
|
2340
|
+
chevron: string;
|
|
2341
|
+
monthGrid: string;
|
|
2342
|
+
weekdays: string;
|
|
2343
|
+
weekday: string;
|
|
2344
|
+
weeks: string;
|
|
2345
|
+
week: string;
|
|
2346
|
+
day: string;
|
|
2347
|
+
dayButton: string[];
|
|
2348
|
+
today: string;
|
|
2349
|
+
selected: string;
|
|
2350
|
+
outside: string;
|
|
2351
|
+
disabled: string;
|
|
2352
|
+
rangeStart: string;
|
|
2353
|
+
rangeMiddle: string;
|
|
2354
|
+
rangeEnd: string;
|
|
2355
|
+
hidden: string;
|
|
2356
|
+
footer: string;
|
|
2357
|
+
}, undefined, {
|
|
2358
|
+
[key: string]: {
|
|
2359
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2360
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2361
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
2362
|
+
nav?: import("tailwind-variants").ClassValue;
|
|
2363
|
+
hidden?: import("tailwind-variants").ClassValue;
|
|
2364
|
+
disabled?: import("tailwind-variants").ClassValue;
|
|
2365
|
+
chevron?: import("tailwind-variants").ClassValue;
|
|
2366
|
+
months?: import("tailwind-variants").ClassValue;
|
|
2367
|
+
month?: import("tailwind-variants").ClassValue;
|
|
2368
|
+
monthCaption?: import("tailwind-variants").ClassValue;
|
|
2369
|
+
captionLabel?: import("tailwind-variants").ClassValue;
|
|
2370
|
+
monthGrid?: import("tailwind-variants").ClassValue;
|
|
2371
|
+
weekdays?: import("tailwind-variants").ClassValue;
|
|
2372
|
+
weekday?: import("tailwind-variants").ClassValue;
|
|
2373
|
+
weeks?: import("tailwind-variants").ClassValue;
|
|
2374
|
+
week?: import("tailwind-variants").ClassValue;
|
|
2375
|
+
day?: import("tailwind-variants").ClassValue;
|
|
2376
|
+
today?: import("tailwind-variants").ClassValue;
|
|
2377
|
+
selected?: import("tailwind-variants").ClassValue;
|
|
2378
|
+
outside?: import("tailwind-variants").ClassValue;
|
|
2379
|
+
rangeStart?: import("tailwind-variants").ClassValue;
|
|
2380
|
+
rangeMiddle?: import("tailwind-variants").ClassValue;
|
|
2381
|
+
rangeEnd?: import("tailwind-variants").ClassValue;
|
|
2382
|
+
navButton?: import("tailwind-variants").ClassValue;
|
|
2383
|
+
dayButton?: import("tailwind-variants").ClassValue;
|
|
2384
|
+
};
|
|
2385
|
+
};
|
|
2386
|
+
} | {}, {
|
|
2387
|
+
root: string;
|
|
2388
|
+
months: string;
|
|
2389
|
+
month: string;
|
|
2390
|
+
monthCaption: string;
|
|
2391
|
+
captionLabel: string;
|
|
2392
|
+
nav: string;
|
|
2393
|
+
navButton: string[];
|
|
2394
|
+
chevron: string;
|
|
2395
|
+
monthGrid: string;
|
|
2396
|
+
weekdays: string;
|
|
2397
|
+
weekday: string;
|
|
2398
|
+
weeks: string;
|
|
2399
|
+
week: string;
|
|
2400
|
+
day: string;
|
|
2401
|
+
dayButton: string[];
|
|
2402
|
+
today: string;
|
|
2403
|
+
selected: string;
|
|
2404
|
+
outside: string;
|
|
2405
|
+
disabled: string;
|
|
2406
|
+
rangeStart: string;
|
|
2407
|
+
rangeMiddle: string;
|
|
2408
|
+
rangeEnd: string;
|
|
2409
|
+
hidden: string;
|
|
2410
|
+
footer: string;
|
|
2411
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
2412
|
+
root: string;
|
|
2413
|
+
months: string;
|
|
2414
|
+
month: string;
|
|
2415
|
+
monthCaption: string;
|
|
2416
|
+
captionLabel: string;
|
|
2417
|
+
nav: string;
|
|
2418
|
+
navButton: string[];
|
|
2419
|
+
chevron: string;
|
|
2420
|
+
monthGrid: string;
|
|
2421
|
+
weekdays: string;
|
|
2422
|
+
weekday: string;
|
|
2423
|
+
weeks: string;
|
|
2424
|
+
week: string;
|
|
2425
|
+
day: string;
|
|
2426
|
+
dayButton: string[];
|
|
2427
|
+
today: string;
|
|
2428
|
+
selected: string;
|
|
2429
|
+
outside: string;
|
|
2430
|
+
disabled: string;
|
|
2431
|
+
rangeStart: string;
|
|
2432
|
+
rangeMiddle: string;
|
|
2433
|
+
rangeEnd: string;
|
|
2434
|
+
hidden: string;
|
|
2435
|
+
footer: string;
|
|
2436
|
+
}>>;
|
|
2437
|
+
declare module '@glyphui/tokens' {
|
|
2438
|
+
interface GlyphComponentRegistry {
|
|
2439
|
+
Calendar: StylesEntry<typeof calendarStyles>;
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
//#endregion
|
|
2257
2443
|
//#region src/components/card/card.d.ts
|
|
2258
2444
|
interface CardProps extends ComponentProps<'div'>, CardVariants {
|
|
2259
2445
|
asChild?: boolean;
|
|
@@ -2269,6 +2455,110 @@ export declare function CardDescription({ className, ...props }: ComponentProps<
|
|
|
2269
2455
|
export declare function CardBody({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2270
2456
|
export declare function CardFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2271
2457
|
//#endregion
|
|
2458
|
+
//#region src/components/carousel/carousel.styles.d.ts
|
|
2459
|
+
export declare const carouselStyles: import("tailwind-variants").TVReturnType<{
|
|
2460
|
+
orientation: {
|
|
2461
|
+
horizontal: {
|
|
2462
|
+
container: string;
|
|
2463
|
+
item: string;
|
|
2464
|
+
control: string;
|
|
2465
|
+
};
|
|
2466
|
+
vertical: {
|
|
2467
|
+
container: string;
|
|
2468
|
+
item: string;
|
|
2469
|
+
control: string;
|
|
2470
|
+
};
|
|
2471
|
+
};
|
|
2472
|
+
}, {
|
|
2473
|
+
root: string;
|
|
2474
|
+
viewport: string;
|
|
2475
|
+
container: string;
|
|
2476
|
+
item: string;
|
|
2477
|
+
control: string;
|
|
2478
|
+
dots: string;
|
|
2479
|
+
dot: string[];
|
|
2480
|
+
}, undefined, {
|
|
2481
|
+
orientation: {
|
|
2482
|
+
horizontal: {
|
|
2483
|
+
container: string;
|
|
2484
|
+
item: string;
|
|
2485
|
+
control: string;
|
|
2486
|
+
};
|
|
2487
|
+
vertical: {
|
|
2488
|
+
container: string;
|
|
2489
|
+
item: string;
|
|
2490
|
+
control: string;
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
}, {
|
|
2494
|
+
root: string;
|
|
2495
|
+
viewport: string;
|
|
2496
|
+
container: string;
|
|
2497
|
+
item: string;
|
|
2498
|
+
control: string;
|
|
2499
|
+
dots: string;
|
|
2500
|
+
dot: string[];
|
|
2501
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
2502
|
+
orientation: {
|
|
2503
|
+
horizontal: {
|
|
2504
|
+
container: string;
|
|
2505
|
+
item: string;
|
|
2506
|
+
control: string;
|
|
2507
|
+
};
|
|
2508
|
+
vertical: {
|
|
2509
|
+
container: string;
|
|
2510
|
+
item: string;
|
|
2511
|
+
control: string;
|
|
2512
|
+
};
|
|
2513
|
+
};
|
|
2514
|
+
}, {
|
|
2515
|
+
root: string;
|
|
2516
|
+
viewport: string;
|
|
2517
|
+
container: string;
|
|
2518
|
+
item: string;
|
|
2519
|
+
control: string;
|
|
2520
|
+
dots: string;
|
|
2521
|
+
dot: string[];
|
|
2522
|
+
}>>;
|
|
2523
|
+
type CarouselVariants = VariantProps<typeof carouselStyles>;
|
|
2524
|
+
declare module '@glyphui/tokens' {
|
|
2525
|
+
interface GlyphComponentRegistry {
|
|
2526
|
+
Carousel: StylesEntry<typeof carouselStyles>;
|
|
2527
|
+
}
|
|
2528
|
+
}
|
|
2529
|
+
//#endregion
|
|
2530
|
+
//#region src/components/carousel/carousel.d.ts
|
|
2531
|
+
type CarouselApi = UseEmblaCarouselType[1];
|
|
2532
|
+
type EmblaArgs = Parameters<typeof useEmblaCarousel>;
|
|
2533
|
+
type CarouselOptions = EmblaArgs[0];
|
|
2534
|
+
type CarouselPlugin = NonNullable<EmblaArgs[1]>[number];
|
|
2535
|
+
interface CarouselProps extends Omit<ComponentProps<'section'>, 'aria-label'>, CarouselVariants {
|
|
2536
|
+
/** Embla options, e.g. `{ align: 'start', loop: true }`. */
|
|
2537
|
+
opts?: CarouselOptions;
|
|
2538
|
+
plugins?: CarouselPlugin[];
|
|
2539
|
+
/** Shortcut for `opts.loop`. */
|
|
2540
|
+
loop?: boolean;
|
|
2541
|
+
/** Receives the Embla API for custom controls. */
|
|
2542
|
+
setApi?: (api: CarouselApi) => void;
|
|
2543
|
+
/** Required: describes the content, e.g. "Customer stories". */
|
|
2544
|
+
'aria-label': string;
|
|
2545
|
+
}
|
|
2546
|
+
/**
|
|
2547
|
+
* Swipeable, keyboard-accessible slides. Compose with CarouselContent, CarouselItem,
|
|
2548
|
+
* CarouselPrevious, CarouselNext and CarouselDots.
|
|
2549
|
+
*/
|
|
2550
|
+
export declare function Carousel(inProps: CarouselProps): import("react").JSX.Element;
|
|
2551
|
+
export declare function CarouselContent({ className, children, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2552
|
+
export declare function CarouselItem({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
2553
|
+
type ControlProps$1 = Omit<IconButtonProps, 'icon' | 'aria-label'> & {
|
|
2554
|
+
'aria-label'?: string;
|
|
2555
|
+
icon?: ReactNode;
|
|
2556
|
+
};
|
|
2557
|
+
export declare function CarouselPrevious({ className, icon, ...props }: ControlProps$1): import("react").JSX.Element;
|
|
2558
|
+
export declare function CarouselNext({ className, icon, ...props }: ControlProps$1): import("react").JSX.Element;
|
|
2559
|
+
/** One button per snap point; the current one is highlighted. */
|
|
2560
|
+
export declare function CarouselDots({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element | null;
|
|
2561
|
+
//#endregion
|
|
2272
2562
|
//#region src/components/code/code.styles.d.ts
|
|
2273
2563
|
export declare const codeStyles: import("tailwind-variants").TVReturnType<{
|
|
2274
2564
|
[key: string]: {
|
|
@@ -2359,6 +2649,58 @@ interface CodeBlockProps extends Omit<ComponentProps<'figure'>, 'children' | 'ti
|
|
|
2359
2649
|
/** A block of code with an optional file name and a copy button. No syntax highlighting is applied. */
|
|
2360
2650
|
export declare function CodeBlock(inProps: CodeBlockProps): import("react").JSX.Element;
|
|
2361
2651
|
//#endregion
|
|
2652
|
+
//#region src/components/collapsible/collapsible.d.ts
|
|
2653
|
+
export declare const collapsibleStyles: import("tailwind-variants").TVReturnType<{
|
|
2654
|
+
[key: string]: {
|
|
2655
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2656
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2657
|
+
content?: import("tailwind-variants").ClassValue;
|
|
2658
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
2659
|
+
};
|
|
2660
|
+
};
|
|
2661
|
+
} | {
|
|
2662
|
+
[x: string]: {
|
|
2663
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
2664
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2665
|
+
content?: import("tailwind-variants").ClassValue;
|
|
2666
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
2667
|
+
};
|
|
2668
|
+
};
|
|
2669
|
+
} | {}, {
|
|
2670
|
+
root: string;
|
|
2671
|
+
trigger: string;
|
|
2672
|
+
content: string;
|
|
2673
|
+
}, undefined, {
|
|
2674
|
+
[key: string]: {
|
|
2675
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2676
|
+
root?: import("tailwind-variants").ClassValue;
|
|
2677
|
+
content?: import("tailwind-variants").ClassValue;
|
|
2678
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
2679
|
+
};
|
|
2680
|
+
};
|
|
2681
|
+
} | {}, {
|
|
2682
|
+
root: string;
|
|
2683
|
+
trigger: string;
|
|
2684
|
+
content: string;
|
|
2685
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
2686
|
+
root: string;
|
|
2687
|
+
trigger: string;
|
|
2688
|
+
content: string;
|
|
2689
|
+
}>>;
|
|
2690
|
+
declare module '@glyphui/tokens' {
|
|
2691
|
+
interface GlyphComponentRegistry {
|
|
2692
|
+
Collapsible: StylesEntry<typeof collapsibleStyles>;
|
|
2693
|
+
}
|
|
2694
|
+
}
|
|
2695
|
+
/**
|
|
2696
|
+
* Shows and hides one region, e.g. "Show advanced options". For a list of expandable
|
|
2697
|
+
* sections use Accordion.
|
|
2698
|
+
*/
|
|
2699
|
+
export declare function Collapsible(inProps: ComponentProps<typeof Collapsible$1.Root>): import("react").JSX.Element;
|
|
2700
|
+
export declare function CollapsibleTrigger({ className, ...props }: ComponentProps<typeof Collapsible$1.Trigger>): import("react").JSX.Element;
|
|
2701
|
+
/** Animates its height open and closed; stays mounted until the closing animation ends. */
|
|
2702
|
+
export declare function CollapsibleContent({ className, ...props }: ComponentProps<typeof Collapsible$1.Content>): import("react").JSX.Element;
|
|
2703
|
+
//#endregion
|
|
2362
2704
|
//#region src/components/combobox/combobox.d.ts
|
|
2363
2705
|
interface ComboboxOption<T extends string = string> {
|
|
2364
2706
|
value: T;
|
|
@@ -2381,7 +2723,7 @@ interface MultipleProps<T extends string> {
|
|
|
2381
2723
|
defaultValue?: readonly T[];
|
|
2382
2724
|
onValueChange?: (value: T[]) => void;
|
|
2383
2725
|
}
|
|
2384
|
-
interface SharedProps<T extends string> {
|
|
2726
|
+
interface SharedProps$1<T extends string> {
|
|
2385
2727
|
options: readonly ComboboxOption<T>[];
|
|
2386
2728
|
placeholder?: ReactNode;
|
|
2387
2729
|
searchPlaceholder?: string;
|
|
@@ -2401,7 +2743,7 @@ interface SharedProps<T extends string> {
|
|
|
2401
2743
|
'aria-describedby'?: string;
|
|
2402
2744
|
'aria-invalid'?: boolean;
|
|
2403
2745
|
}
|
|
2404
|
-
type ComboboxProps<T extends string = string> = SharedProps<T> & (SingleProps<T> | MultipleProps<T>);
|
|
2746
|
+
type ComboboxProps<T extends string = string> = SharedProps$1<T> & (SingleProps<T> | MultipleProps<T>);
|
|
2405
2747
|
/**
|
|
2406
2748
|
* A select with search, for long option lists. `multiple` allows several values, shown
|
|
2407
2749
|
* as chips. The value type is inferred from `options`.
|
|
@@ -2559,12 +2901,12 @@ export declare const commandMenuStyles: import("tailwind-variants").TVReturnType
|
|
|
2559
2901
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2560
2902
|
root?: import("tailwind-variants").ClassValue;
|
|
2561
2903
|
search?: import("tailwind-variants").ClassValue;
|
|
2562
|
-
group?: import("tailwind-variants").ClassValue;
|
|
2563
2904
|
input?: import("tailwind-variants").ClassValue;
|
|
2564
|
-
|
|
2905
|
+
group?: import("tailwind-variants").ClassValue;
|
|
2565
2906
|
content?: import("tailwind-variants").ClassValue;
|
|
2566
2907
|
list?: import("tailwind-variants").ClassValue;
|
|
2567
2908
|
separator?: import("tailwind-variants").ClassValue;
|
|
2909
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2568
2910
|
overlay?: import("tailwind-variants").ClassValue;
|
|
2569
2911
|
itemIcon?: import("tailwind-variants").ClassValue;
|
|
2570
2912
|
itemLabel?: import("tailwind-variants").ClassValue;
|
|
@@ -2577,12 +2919,12 @@ export declare const commandMenuStyles: import("tailwind-variants").TVReturnType
|
|
|
2577
2919
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
2578
2920
|
root?: import("tailwind-variants").ClassValue;
|
|
2579
2921
|
search?: import("tailwind-variants").ClassValue;
|
|
2580
|
-
group?: import("tailwind-variants").ClassValue;
|
|
2581
2922
|
input?: import("tailwind-variants").ClassValue;
|
|
2582
|
-
|
|
2923
|
+
group?: import("tailwind-variants").ClassValue;
|
|
2583
2924
|
content?: import("tailwind-variants").ClassValue;
|
|
2584
2925
|
list?: import("tailwind-variants").ClassValue;
|
|
2585
2926
|
separator?: import("tailwind-variants").ClassValue;
|
|
2927
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2586
2928
|
overlay?: import("tailwind-variants").ClassValue;
|
|
2587
2929
|
itemIcon?: import("tailwind-variants").ClassValue;
|
|
2588
2930
|
itemLabel?: import("tailwind-variants").ClassValue;
|
|
@@ -2609,12 +2951,12 @@ export declare const commandMenuStyles: import("tailwind-variants").TVReturnType
|
|
|
2609
2951
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
2610
2952
|
root?: import("tailwind-variants").ClassValue;
|
|
2611
2953
|
search?: import("tailwind-variants").ClassValue;
|
|
2612
|
-
group?: import("tailwind-variants").ClassValue;
|
|
2613
2954
|
input?: import("tailwind-variants").ClassValue;
|
|
2614
|
-
|
|
2955
|
+
group?: import("tailwind-variants").ClassValue;
|
|
2615
2956
|
content?: import("tailwind-variants").ClassValue;
|
|
2616
2957
|
list?: import("tailwind-variants").ClassValue;
|
|
2617
2958
|
separator?: import("tailwind-variants").ClassValue;
|
|
2959
|
+
item?: import("tailwind-variants").ClassValue;
|
|
2618
2960
|
overlay?: import("tailwind-variants").ClassValue;
|
|
2619
2961
|
itemIcon?: import("tailwind-variants").ClassValue;
|
|
2620
2962
|
itemLabel?: import("tailwind-variants").ClassValue;
|
|
@@ -2689,34 +3031,373 @@ interface ContainerProps extends ComponentProps<'div'>, VariantProps<typeof cont
|
|
|
2689
3031
|
/** Centers content at a readable max width with consistent side gutters. */
|
|
2690
3032
|
export declare function Container({ size, asChild, className, ...props }: ContainerProps): import("react").JSX.Element;
|
|
2691
3033
|
//#endregion
|
|
2692
|
-
//#region src/components/
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
3034
|
+
//#region src/components/context-menu/context-menu.d.ts
|
|
3035
|
+
/** A menu opened by right-click or long-press on an area. Same items as DropdownMenu. */
|
|
3036
|
+
export declare const ContextMenu: import("react").FC<ContextMenu$1.ContextMenuProps>;
|
|
3037
|
+
export declare const ContextMenuTrigger: import("react").ForwardRefExoticComponent<ContextMenu$1.ContextMenuTriggerProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
3038
|
+
export declare const ContextMenuGroup: import("react").ForwardRefExoticComponent<ContextMenu$1.ContextMenuGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3039
|
+
export declare const ContextMenuRadioGroup: import("react").ForwardRefExoticComponent<ContextMenu$1.ContextMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3040
|
+
export declare const ContextMenuSub: import("react").FC<ContextMenu$1.ContextMenuSubProps>;
|
|
3041
|
+
export declare function ContextMenuContent(inProps: ComponentProps<typeof ContextMenu$1.Content>): import("react").JSX.Element;
|
|
3042
|
+
interface ContextMenuItemProps extends ComponentProps<typeof ContextMenu$1.Item> {
|
|
3043
|
+
icon?: ReactNode;
|
|
3044
|
+
/** Keyboard hint shown at the end, e.g. "⌘C". Display only. */
|
|
3045
|
+
shortcut?: ReactNode;
|
|
3046
|
+
/** `danger` for destructive actions. */
|
|
3047
|
+
tone?: 'default' | 'danger';
|
|
3048
|
+
/** Indent to line up with checkbox and radio items. */
|
|
3049
|
+
inset?: boolean;
|
|
3050
|
+
}
|
|
3051
|
+
export declare function ContextMenuItem({ icon, shortcut, tone, inset, className, children, ...props }: ContextMenuItemProps): import("react").JSX.Element;
|
|
3052
|
+
export declare function ContextMenuCheckboxItem({ className, children, ...props }: ComponentProps<typeof ContextMenu$1.CheckboxItem>): import("react").JSX.Element;
|
|
3053
|
+
export declare function ContextMenuRadioItem({ className, children, ...props }: ComponentProps<typeof ContextMenu$1.RadioItem>): import("react").JSX.Element;
|
|
3054
|
+
export declare function ContextMenuLabel({ inset, className, ...props }: ComponentProps<typeof ContextMenu$1.Label> & {
|
|
3055
|
+
inset?: boolean;
|
|
3056
|
+
}): import("react").JSX.Element;
|
|
3057
|
+
export declare function ContextMenuSeparator({ className, ...props }: ComponentProps<typeof ContextMenu$1.Separator>): import("react").JSX.Element;
|
|
3058
|
+
export declare function ContextMenuShortcut({ className, ...props }: ComponentProps<'span'>): import("react").JSX.Element;
|
|
3059
|
+
interface ContextMenuSubTriggerProps extends ComponentProps<typeof ContextMenu$1.SubTrigger> {
|
|
3060
|
+
icon?: ReactNode;
|
|
3061
|
+
}
|
|
3062
|
+
export declare function ContextMenuSubTrigger({ icon, className, children, ...props }: ContextMenuSubTriggerProps): import("react").JSX.Element;
|
|
3063
|
+
export declare function ContextMenuSubContent({ className, ...props }: ComponentProps<typeof ContextMenu$1.SubContent>): import("react").JSX.Element;
|
|
3064
|
+
//#endregion
|
|
3065
|
+
//#region src/components/context-menu/context-menu.styles.d.ts
|
|
3066
|
+
/** Same look as DropdownMenu; only the available-height variable differs. */
|
|
3067
|
+
export declare const contextMenuStyles: import("tailwind-variants").TVReturnType<{
|
|
3068
|
+
[key: string]: {
|
|
3069
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
3070
|
+
content?: import("tailwind-variants").ClassValue;
|
|
2697
3071
|
};
|
|
2698
|
-
|
|
2699
|
-
|
|
3072
|
+
};
|
|
3073
|
+
} | {
|
|
3074
|
+
tone: {
|
|
3075
|
+
default: import("tailwind-variants").ClassValue | {
|
|
3076
|
+
content?: import("tailwind-variants").ClassValue;
|
|
3077
|
+
};
|
|
3078
|
+
danger: import("tailwind-variants").ClassValue | {
|
|
3079
|
+
content?: import("tailwind-variants").ClassValue;
|
|
2700
3080
|
};
|
|
2701
3081
|
};
|
|
2702
|
-
|
|
2703
|
-
true: {
|
|
2704
|
-
|
|
2705
|
-
item: string;
|
|
3082
|
+
inset: {
|
|
3083
|
+
true: import("tailwind-variants").ClassValue | {
|
|
3084
|
+
content?: import("tailwind-variants").ClassValue;
|
|
2706
3085
|
};
|
|
2707
|
-
false: {};
|
|
2708
3086
|
};
|
|
2709
3087
|
}, {
|
|
2710
|
-
|
|
2711
|
-
item: string;
|
|
2712
|
-
term: string;
|
|
2713
|
-
details: string;
|
|
3088
|
+
content: string;
|
|
2714
3089
|
}, undefined, {
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
3090
|
+
tone: {
|
|
3091
|
+
default: {};
|
|
3092
|
+
danger: {
|
|
3093
|
+
item: string;
|
|
3094
|
+
icon: string;
|
|
3095
|
+
};
|
|
3096
|
+
};
|
|
3097
|
+
inset: {
|
|
3098
|
+
true: {
|
|
3099
|
+
item: string;
|
|
3100
|
+
label: string;
|
|
3101
|
+
};
|
|
3102
|
+
};
|
|
3103
|
+
}, {
|
|
3104
|
+
content: string[];
|
|
3105
|
+
item: string[];
|
|
3106
|
+
icon: string;
|
|
3107
|
+
indicator: string;
|
|
3108
|
+
label: string;
|
|
3109
|
+
separator: string;
|
|
3110
|
+
shortcut: string;
|
|
3111
|
+
subTrigger: string[];
|
|
3112
|
+
subContent: string[];
|
|
3113
|
+
}, import("tailwind-variants").TVReturnType<{
|
|
3114
|
+
tone: {
|
|
3115
|
+
default: {};
|
|
3116
|
+
danger: {
|
|
3117
|
+
item: string;
|
|
3118
|
+
icon: string;
|
|
3119
|
+
};
|
|
3120
|
+
};
|
|
3121
|
+
inset: {
|
|
3122
|
+
true: {
|
|
3123
|
+
item: string;
|
|
3124
|
+
label: string;
|
|
3125
|
+
};
|
|
3126
|
+
};
|
|
3127
|
+
}, {
|
|
3128
|
+
content: string[];
|
|
3129
|
+
item: string[];
|
|
3130
|
+
icon: string;
|
|
3131
|
+
indicator: string;
|
|
3132
|
+
label: string;
|
|
3133
|
+
separator: string;
|
|
3134
|
+
shortcut: string;
|
|
3135
|
+
subTrigger: string[];
|
|
3136
|
+
subContent: string[];
|
|
3137
|
+
}, undefined, {
|
|
3138
|
+
tone: {
|
|
3139
|
+
default: {};
|
|
3140
|
+
danger: {
|
|
3141
|
+
item: string;
|
|
3142
|
+
icon: string;
|
|
3143
|
+
};
|
|
3144
|
+
};
|
|
3145
|
+
inset: {
|
|
3146
|
+
true: {
|
|
3147
|
+
item: string;
|
|
3148
|
+
label: string;
|
|
3149
|
+
};
|
|
3150
|
+
};
|
|
3151
|
+
}, {
|
|
3152
|
+
content: string[];
|
|
3153
|
+
item: string[];
|
|
3154
|
+
icon: string;
|
|
3155
|
+
indicator: string;
|
|
3156
|
+
label: string;
|
|
3157
|
+
separator: string;
|
|
3158
|
+
shortcut: string;
|
|
3159
|
+
subTrigger: string[];
|
|
3160
|
+
subContent: string[];
|
|
3161
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
3162
|
+
tone: {
|
|
3163
|
+
default: {};
|
|
3164
|
+
danger: {
|
|
3165
|
+
item: string;
|
|
3166
|
+
icon: string;
|
|
3167
|
+
};
|
|
3168
|
+
};
|
|
3169
|
+
inset: {
|
|
3170
|
+
true: {
|
|
3171
|
+
item: string;
|
|
3172
|
+
label: string;
|
|
3173
|
+
};
|
|
3174
|
+
};
|
|
3175
|
+
}, {
|
|
3176
|
+
content: string[];
|
|
3177
|
+
item: string[];
|
|
3178
|
+
icon: string;
|
|
3179
|
+
indicator: string;
|
|
3180
|
+
label: string;
|
|
3181
|
+
separator: string;
|
|
3182
|
+
shortcut: string;
|
|
3183
|
+
subTrigger: string[];
|
|
3184
|
+
subContent: string[];
|
|
3185
|
+
}>>>;
|
|
3186
|
+
type ContextMenuVariants = VariantProps<typeof contextMenuStyles>;
|
|
3187
|
+
declare module '@glyphui/tokens' {
|
|
3188
|
+
interface GlyphComponentRegistry {
|
|
3189
|
+
ContextMenu: StylesEntry<typeof contextMenuStyles>;
|
|
3190
|
+
}
|
|
3191
|
+
}
|
|
3192
|
+
//#endregion
|
|
3193
|
+
//#region src/components/copy-button/copy-button.d.ts
|
|
3194
|
+
export declare const copyButtonStyles: import("tailwind-variants").TVReturnType<{
|
|
3195
|
+
[key: string]: {
|
|
3196
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
3197
|
+
base?: import("tailwind-variants").ClassValue;
|
|
3198
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
3199
|
+
status?: import("tailwind-variants").ClassValue;
|
|
3200
|
+
};
|
|
3201
|
+
};
|
|
3202
|
+
} | {
|
|
3203
|
+
[x: string]: {
|
|
3204
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
3205
|
+
base?: import("tailwind-variants").ClassValue;
|
|
3206
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
3207
|
+
status?: import("tailwind-variants").ClassValue;
|
|
3208
|
+
};
|
|
3209
|
+
};
|
|
3210
|
+
} | {}, {
|
|
3211
|
+
base: string;
|
|
3212
|
+
icon: string;
|
|
3213
|
+
status: string;
|
|
3214
|
+
}, undefined, {
|
|
3215
|
+
[key: string]: {
|
|
3216
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
3217
|
+
base?: import("tailwind-variants").ClassValue;
|
|
3218
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
3219
|
+
status?: import("tailwind-variants").ClassValue;
|
|
3220
|
+
};
|
|
3221
|
+
};
|
|
3222
|
+
} | {}, {
|
|
3223
|
+
base: string;
|
|
3224
|
+
icon: string;
|
|
3225
|
+
status: string;
|
|
3226
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
3227
|
+
base: string;
|
|
3228
|
+
icon: string;
|
|
3229
|
+
status: string;
|
|
3230
|
+
}>>;
|
|
3231
|
+
declare module '@glyphui/tokens' {
|
|
3232
|
+
interface GlyphComponentRegistry {
|
|
3233
|
+
CopyButton: StylesEntry<typeof copyButtonStyles>;
|
|
3234
|
+
}
|
|
3235
|
+
}
|
|
3236
|
+
interface CopyButtonProps extends Omit<ButtonProps, 'onClick' | 'onCopy' | 'leftIcon' | 'rightIcon' | 'iconOnly' | 'asChild' | 'value'> {
|
|
3237
|
+
/** Text written to the clipboard. */
|
|
3238
|
+
value: string;
|
|
3239
|
+
/** Visible label. Without it the button is icon-only, labelled "Copy". */
|
|
3240
|
+
children?: ReactNode;
|
|
3241
|
+
/** Announced and shown after copying. Default "Copied". */
|
|
3242
|
+
copiedLabel?: string;
|
|
3243
|
+
/** How long the copied state lasts, in ms. Default 1500. */
|
|
3244
|
+
timeout?: number;
|
|
3245
|
+
onCopy?: (value: string) => void;
|
|
3246
|
+
}
|
|
3247
|
+
/** Copies a value to the clipboard and confirms it visually and to screen readers. */
|
|
3248
|
+
export declare function CopyButton(inProps: CopyButtonProps): import("react").JSX.Element;
|
|
3249
|
+
//#endregion
|
|
3250
|
+
//#region src/components/date-picker/date-picker.styles.d.ts
|
|
3251
|
+
export declare const datePickerStyles: import("tailwind-variants").TVReturnType<{
|
|
3252
|
+
size: {
|
|
3253
|
+
sm: {
|
|
3254
|
+
trigger: string;
|
|
3255
|
+
};
|
|
3256
|
+
md: {
|
|
3257
|
+
trigger: string;
|
|
3258
|
+
};
|
|
3259
|
+
lg: {
|
|
3260
|
+
trigger: string;
|
|
3261
|
+
};
|
|
3262
|
+
};
|
|
3263
|
+
}, {
|
|
3264
|
+
trigger: string[];
|
|
3265
|
+
icon: string;
|
|
3266
|
+
value: string;
|
|
3267
|
+
placeholder: string;
|
|
3268
|
+
clear: string;
|
|
3269
|
+
content: string[];
|
|
3270
|
+
layout: string;
|
|
3271
|
+
presets: string;
|
|
3272
|
+
preset: string;
|
|
3273
|
+
}, undefined, {
|
|
3274
|
+
size: {
|
|
3275
|
+
sm: {
|
|
3276
|
+
trigger: string;
|
|
3277
|
+
};
|
|
3278
|
+
md: {
|
|
3279
|
+
trigger: string;
|
|
3280
|
+
};
|
|
3281
|
+
lg: {
|
|
3282
|
+
trigger: string;
|
|
3283
|
+
};
|
|
3284
|
+
};
|
|
3285
|
+
}, {
|
|
3286
|
+
trigger: string[];
|
|
3287
|
+
icon: string;
|
|
3288
|
+
value: string;
|
|
3289
|
+
placeholder: string;
|
|
3290
|
+
clear: string;
|
|
3291
|
+
content: string[];
|
|
3292
|
+
layout: string;
|
|
3293
|
+
presets: string;
|
|
3294
|
+
preset: string;
|
|
3295
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
3296
|
+
size: {
|
|
3297
|
+
sm: {
|
|
3298
|
+
trigger: string;
|
|
3299
|
+
};
|
|
3300
|
+
md: {
|
|
3301
|
+
trigger: string;
|
|
3302
|
+
};
|
|
3303
|
+
lg: {
|
|
3304
|
+
trigger: string;
|
|
3305
|
+
};
|
|
3306
|
+
};
|
|
3307
|
+
}, {
|
|
3308
|
+
trigger: string[];
|
|
3309
|
+
icon: string;
|
|
3310
|
+
value: string;
|
|
3311
|
+
placeholder: string;
|
|
3312
|
+
clear: string;
|
|
3313
|
+
content: string[];
|
|
3314
|
+
layout: string;
|
|
3315
|
+
presets: string;
|
|
3316
|
+
preset: string;
|
|
3317
|
+
}>>;
|
|
3318
|
+
type DatePickerVariants = VariantProps<typeof datePickerStyles>;
|
|
3319
|
+
declare module '@glyphui/tokens' {
|
|
3320
|
+
interface GlyphComponentRegistry {
|
|
3321
|
+
DatePicker: StylesEntry<typeof datePickerStyles>;
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
//#endregion
|
|
3325
|
+
//#region src/components/date-picker/date-picker.d.ts
|
|
3326
|
+
interface SharedProps extends DatePickerVariants {
|
|
3327
|
+
placeholder?: ReactNode;
|
|
3328
|
+
/** date-fns format string for the trigger. Default `"MMM d, yyyy"`. */
|
|
3329
|
+
format?: string;
|
|
3330
|
+
/** Earliest selectable date. */
|
|
3331
|
+
minDate?: Date;
|
|
3332
|
+
/** Latest selectable date. */
|
|
3333
|
+
maxDate?: Date;
|
|
3334
|
+
/** Extra disabled dates, in react-day-picker matcher form. */
|
|
3335
|
+
disabledDates?: Matcher$1 | Matcher$1[];
|
|
3336
|
+
/** Show a button that clears the value. */
|
|
3337
|
+
clearable?: boolean;
|
|
3338
|
+
disabled?: boolean;
|
|
3339
|
+
required?: boolean;
|
|
3340
|
+
/** Submits the ISO date (yyyy-MM-dd) with a native form. */
|
|
3341
|
+
name?: string;
|
|
3342
|
+
id?: string;
|
|
3343
|
+
className?: string;
|
|
3344
|
+
contentClassName?: string;
|
|
3345
|
+
'aria-label'?: string;
|
|
3346
|
+
'aria-describedby'?: string;
|
|
3347
|
+
'aria-invalid'?: boolean;
|
|
3348
|
+
}
|
|
3349
|
+
interface DatePickerProps extends SharedProps {
|
|
3350
|
+
value?: Date | undefined;
|
|
3351
|
+
defaultValue?: Date | undefined;
|
|
3352
|
+
onValueChange?: (date: Date | undefined) => void;
|
|
3353
|
+
}
|
|
3354
|
+
/** A date field that opens a calendar. Works with Field and with `Form` (`value` + `onValueChange`). */
|
|
3355
|
+
export declare function DatePicker(inProps: DatePickerProps): import("react").JSX.Element;
|
|
3356
|
+
interface DateRangePreset {
|
|
3357
|
+
label: string;
|
|
3358
|
+
/** Called when chosen, so relative ranges ("Last 7 days") are computed at that moment. */
|
|
3359
|
+
range: () => DateRange$1;
|
|
3360
|
+
}
|
|
3361
|
+
interface DateRangePickerProps extends SharedProps {
|
|
3362
|
+
value?: DateRange$1 | undefined;
|
|
3363
|
+
defaultValue?: DateRange$1 | undefined;
|
|
3364
|
+
onValueChange?: (range: DateRange$1 | undefined) => void;
|
|
3365
|
+
/** Quick picks shown beside the calendar. */
|
|
3366
|
+
presets?: readonly DateRangePreset[];
|
|
3367
|
+
/** Months shown side by side. Default 2. */
|
|
3368
|
+
numberOfMonths?: number;
|
|
3369
|
+
}
|
|
3370
|
+
/** A date-range field with a two-month calendar and optional presets. */
|
|
3371
|
+
export declare function DateRangePicker(inProps: DateRangePickerProps): import("react").JSX.Element;
|
|
3372
|
+
//#endregion
|
|
3373
|
+
//#region src/components/description-list/description-list.styles.d.ts
|
|
3374
|
+
export declare const descriptionListStyles: import("tailwind-variants").TVReturnType<{
|
|
3375
|
+
layout: {
|
|
3376
|
+
stacked: {
|
|
3377
|
+
root: string;
|
|
3378
|
+
};
|
|
3379
|
+
inline: {
|
|
3380
|
+
item: string;
|
|
3381
|
+
};
|
|
3382
|
+
};
|
|
3383
|
+
dividers: {
|
|
3384
|
+
true: {
|
|
3385
|
+
root: string;
|
|
3386
|
+
item: string;
|
|
3387
|
+
};
|
|
3388
|
+
false: {};
|
|
3389
|
+
};
|
|
3390
|
+
}, {
|
|
3391
|
+
root: string;
|
|
3392
|
+
item: string;
|
|
3393
|
+
term: string;
|
|
3394
|
+
details: string;
|
|
3395
|
+
}, undefined, {
|
|
3396
|
+
layout: {
|
|
3397
|
+
stacked: {
|
|
3398
|
+
root: string;
|
|
3399
|
+
};
|
|
3400
|
+
inline: {
|
|
2720
3401
|
item: string;
|
|
2721
3402
|
};
|
|
2722
3403
|
};
|
|
@@ -2994,6 +3675,8 @@ export declare function Eyebrow(inProps: EyebrowProps): import("react").JSX.Elem
|
|
|
2994
3675
|
//#region src/components/field/field-context.d.ts
|
|
2995
3676
|
interface FieldContextValue {
|
|
2996
3677
|
id: string;
|
|
3678
|
+
/** Id of the visible label, for controls labelled by reference (aria-labelledby). */
|
|
3679
|
+
labelId: string | undefined;
|
|
2997
3680
|
descriptionId: string | undefined;
|
|
2998
3681
|
errorId: string | undefined;
|
|
2999
3682
|
invalid: boolean;
|
|
@@ -3014,26 +3697,199 @@ interface ControlProps {
|
|
|
3014
3697
|
*/
|
|
3015
3698
|
export declare function useFieldControl<P extends ControlProps>(props: P): P;
|
|
3016
3699
|
//#endregion
|
|
3017
|
-
//#region src/components/
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3700
|
+
//#region src/components/file-upload/file-upload.d.ts
|
|
3701
|
+
interface FileItem {
|
|
3702
|
+
/** Stable id for keys and updates. Generated when files are added. */
|
|
3703
|
+
id: string;
|
|
3704
|
+
file: File;
|
|
3705
|
+
/** Upload progress, 0–100. Shows a bar while below 100. */
|
|
3706
|
+
progress?: number;
|
|
3707
|
+
/** Shown under the file name, e.g. "Upload failed". */
|
|
3708
|
+
error?: string;
|
|
3709
|
+
}
|
|
3710
|
+
type FileRejectionReason = 'too-large' | 'wrong-type' | 'too-many';
|
|
3711
|
+
interface FileRejection {
|
|
3712
|
+
file: File;
|
|
3713
|
+
reason: FileRejectionReason;
|
|
3714
|
+
message: string;
|
|
3715
|
+
}
|
|
3716
|
+
/** Formats bytes for people: 1 KB = 1024 bytes. */
|
|
3717
|
+
export declare function formatBytes(bytes: number): string;
|
|
3718
|
+
/** Matches a file against an `accept` string like `"image/*,.pdf,application/zip"`. */
|
|
3719
|
+
export declare function matchesAccept(file: File, accept: string | undefined): boolean;
|
|
3720
|
+
interface FileUploadProps {
|
|
3721
|
+
files?: FileItem[];
|
|
3722
|
+
defaultFiles?: FileItem[];
|
|
3723
|
+
onFilesChange?: (files: FileItem[]) => void;
|
|
3724
|
+
/** Called with files that were not added and why. */
|
|
3725
|
+
onReject?: (rejections: FileRejection[]) => void;
|
|
3726
|
+
/** Allowed types, as for `<input type="file" accept>`. */
|
|
3727
|
+
accept?: string;
|
|
3728
|
+
/** Maximum size per file, in bytes. */
|
|
3729
|
+
maxSize?: number;
|
|
3730
|
+
/** Maximum number of files in the list. */
|
|
3731
|
+
maxFiles?: number;
|
|
3732
|
+
/** Allow several files. Default true. */
|
|
3733
|
+
multiple?: boolean;
|
|
3734
|
+
disabled?: boolean;
|
|
3735
|
+
/** Main dropzone text. */
|
|
3736
|
+
label?: ReactNode;
|
|
3737
|
+
/** Secondary dropzone text. Defaults to a summary of `accept` and `maxSize`. */
|
|
3738
|
+
hint?: ReactNode;
|
|
3739
|
+
id?: string;
|
|
3740
|
+
className?: string;
|
|
3741
|
+
'aria-describedby'?: string;
|
|
3742
|
+
'aria-invalid'?: boolean;
|
|
3743
|
+
}
|
|
3744
|
+
/**
|
|
3745
|
+
* Drag-and-drop or click to choose files, with type, size and count checks and a file
|
|
3746
|
+
* list. It does no uploading: you get `File` objects and can set `progress` and `error`
|
|
3747
|
+
* on each item while your own code uploads them.
|
|
3748
|
+
*/
|
|
3749
|
+
export declare function FileUpload(inProps: FileUploadProps): import("react").JSX.Element;
|
|
3750
|
+
//#endregion
|
|
3751
|
+
//#region src/components/file-upload/file-upload.styles.d.ts
|
|
3752
|
+
export declare const fileUploadStyles: import("tailwind-variants").TVReturnType<{
|
|
3753
|
+
[key: string]: {
|
|
3754
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
3755
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
3756
|
+
root?: import("tailwind-variants").ClassValue;
|
|
3757
|
+
title?: import("tailwind-variants").ClassValue;
|
|
3758
|
+
progress?: import("tailwind-variants").ClassValue;
|
|
3759
|
+
list?: import("tailwind-variants").ClassValue;
|
|
3760
|
+
hint?: import("tailwind-variants").ClassValue;
|
|
3761
|
+
item?: import("tailwind-variants").ClassValue;
|
|
3762
|
+
highlight?: import("tailwind-variants").ClassValue;
|
|
3763
|
+
rejections?: import("tailwind-variants").ClassValue;
|
|
3764
|
+
fileIcon?: import("tailwind-variants").ClassValue;
|
|
3765
|
+
fileText?: import("tailwind-variants").ClassValue;
|
|
3766
|
+
fileName?: import("tailwind-variants").ClassValue;
|
|
3767
|
+
fileMeta?: import("tailwind-variants").ClassValue;
|
|
3768
|
+
fileError?: import("tailwind-variants").ClassValue;
|
|
3769
|
+
progressBar?: import("tailwind-variants").ClassValue;
|
|
3770
|
+
dropzone?: import("tailwind-variants").ClassValue;
|
|
3771
|
+
};
|
|
3772
|
+
};
|
|
3773
|
+
} | {
|
|
3774
|
+
[x: string]: {
|
|
3775
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
3776
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
3777
|
+
root?: import("tailwind-variants").ClassValue;
|
|
3778
|
+
title?: import("tailwind-variants").ClassValue;
|
|
3779
|
+
progress?: import("tailwind-variants").ClassValue;
|
|
3780
|
+
list?: import("tailwind-variants").ClassValue;
|
|
3781
|
+
hint?: import("tailwind-variants").ClassValue;
|
|
3782
|
+
item?: import("tailwind-variants").ClassValue;
|
|
3783
|
+
highlight?: import("tailwind-variants").ClassValue;
|
|
3784
|
+
rejections?: import("tailwind-variants").ClassValue;
|
|
3785
|
+
fileIcon?: import("tailwind-variants").ClassValue;
|
|
3786
|
+
fileText?: import("tailwind-variants").ClassValue;
|
|
3787
|
+
fileName?: import("tailwind-variants").ClassValue;
|
|
3788
|
+
fileMeta?: import("tailwind-variants").ClassValue;
|
|
3789
|
+
fileError?: import("tailwind-variants").ClassValue;
|
|
3790
|
+
progressBar?: import("tailwind-variants").ClassValue;
|
|
3791
|
+
dropzone?: import("tailwind-variants").ClassValue;
|
|
3792
|
+
};
|
|
3793
|
+
};
|
|
3794
|
+
} | {}, {
|
|
3795
|
+
root: string;
|
|
3796
|
+
dropzone: string[];
|
|
3797
|
+
icon: string;
|
|
3798
|
+
title: string;
|
|
3799
|
+
highlight: string;
|
|
3800
|
+
hint: string;
|
|
3801
|
+
rejections: string;
|
|
3802
|
+
list: string;
|
|
3803
|
+
item: string[];
|
|
3804
|
+
fileIcon: string;
|
|
3805
|
+
fileText: string;
|
|
3806
|
+
fileName: string;
|
|
3807
|
+
fileMeta: string;
|
|
3808
|
+
fileError: string;
|
|
3809
|
+
progress: string;
|
|
3810
|
+
progressBar: string;
|
|
3811
|
+
}, undefined, {
|
|
3812
|
+
[key: string]: {
|
|
3813
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
3814
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
3815
|
+
root?: import("tailwind-variants").ClassValue;
|
|
3816
|
+
title?: import("tailwind-variants").ClassValue;
|
|
3817
|
+
progress?: import("tailwind-variants").ClassValue;
|
|
3818
|
+
list?: import("tailwind-variants").ClassValue;
|
|
3819
|
+
hint?: import("tailwind-variants").ClassValue;
|
|
3820
|
+
item?: import("tailwind-variants").ClassValue;
|
|
3821
|
+
highlight?: import("tailwind-variants").ClassValue;
|
|
3822
|
+
rejections?: import("tailwind-variants").ClassValue;
|
|
3823
|
+
fileIcon?: import("tailwind-variants").ClassValue;
|
|
3824
|
+
fileText?: import("tailwind-variants").ClassValue;
|
|
3825
|
+
fileName?: import("tailwind-variants").ClassValue;
|
|
3826
|
+
fileMeta?: import("tailwind-variants").ClassValue;
|
|
3827
|
+
fileError?: import("tailwind-variants").ClassValue;
|
|
3828
|
+
progressBar?: import("tailwind-variants").ClassValue;
|
|
3829
|
+
dropzone?: import("tailwind-variants").ClassValue;
|
|
3830
|
+
};
|
|
3831
|
+
};
|
|
3832
|
+
} | {}, {
|
|
3833
|
+
root: string;
|
|
3834
|
+
dropzone: string[];
|
|
3835
|
+
icon: string;
|
|
3836
|
+
title: string;
|
|
3837
|
+
highlight: string;
|
|
3838
|
+
hint: string;
|
|
3839
|
+
rejections: string;
|
|
3840
|
+
list: string;
|
|
3841
|
+
item: string[];
|
|
3842
|
+
fileIcon: string;
|
|
3843
|
+
fileText: string;
|
|
3844
|
+
fileName: string;
|
|
3845
|
+
fileMeta: string;
|
|
3846
|
+
fileError: string;
|
|
3847
|
+
progress: string;
|
|
3848
|
+
progressBar: string;
|
|
3849
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
3850
|
+
root: string;
|
|
3851
|
+
dropzone: string[];
|
|
3852
|
+
icon: string;
|
|
3853
|
+
title: string;
|
|
3854
|
+
highlight: string;
|
|
3855
|
+
hint: string;
|
|
3856
|
+
rejections: string;
|
|
3857
|
+
list: string;
|
|
3858
|
+
item: string[];
|
|
3859
|
+
fileIcon: string;
|
|
3860
|
+
fileText: string;
|
|
3861
|
+
fileName: string;
|
|
3862
|
+
fileMeta: string;
|
|
3863
|
+
fileError: string;
|
|
3864
|
+
progress: string;
|
|
3865
|
+
progressBar: string;
|
|
3866
|
+
}>>;
|
|
3867
|
+
declare module '@glyphui/tokens' {
|
|
3868
|
+
interface GlyphComponentRegistry {
|
|
3869
|
+
FileUpload: StylesEntry<typeof fileUploadStyles>;
|
|
3870
|
+
}
|
|
3871
|
+
}
|
|
3872
|
+
//#endregion
|
|
3873
|
+
//#region src/components/grid/grid.d.ts
|
|
3874
|
+
type Cols = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
3875
|
+
type Breakpoint = 'base' | 'sm' | 'md' | 'lg' | 'xl';
|
|
3876
|
+
type GridCols = Cols | Partial<Record<Breakpoint, Cols>>;
|
|
3877
|
+
export declare const gridStyles: import("tailwind-variants").TVReturnType<{
|
|
3878
|
+
gap: {
|
|
3879
|
+
0: {
|
|
3880
|
+
base: string;
|
|
3881
|
+
};
|
|
3882
|
+
1: {
|
|
3883
|
+
base: string;
|
|
3884
|
+
};
|
|
3885
|
+
2: {
|
|
3886
|
+
base: string;
|
|
3887
|
+
};
|
|
3888
|
+
3: {
|
|
3889
|
+
base: string;
|
|
3890
|
+
};
|
|
3891
|
+
4: {
|
|
3892
|
+
base: string;
|
|
3037
3893
|
};
|
|
3038
3894
|
5: {
|
|
3039
3895
|
base: string;
|
|
@@ -3159,145 +4015,601 @@ export declare const gridStyles: import("tailwind-variants").TVReturnType<{
|
|
|
3159
4015
|
end: {
|
|
3160
4016
|
base: string;
|
|
3161
4017
|
};
|
|
3162
|
-
stretch: {
|
|
3163
|
-
base: string;
|
|
4018
|
+
stretch: {
|
|
4019
|
+
base: string;
|
|
4020
|
+
};
|
|
4021
|
+
};
|
|
4022
|
+
}, {
|
|
4023
|
+
base: string;
|
|
4024
|
+
}>>;
|
|
4025
|
+
declare module '@glyphui/tokens' {
|
|
4026
|
+
interface GlyphComponentRegistry {
|
|
4027
|
+
Grid: StylesEntry<typeof gridStyles>;
|
|
4028
|
+
}
|
|
4029
|
+
}
|
|
4030
|
+
interface GridProps extends ComponentProps<'div'>, VariantProps<typeof gridStyles> {
|
|
4031
|
+
/** Column count, or per breakpoint: `{ base: 1, sm: 2, lg: 4 }`. Default 1. */
|
|
4032
|
+
cols?: GridCols;
|
|
4033
|
+
asChild?: boolean;
|
|
4034
|
+
}
|
|
4035
|
+
/** Responsive equal-width columns with spacing from the scale. */
|
|
4036
|
+
export declare function Grid(inProps: GridProps): import("react").JSX.Element;
|
|
4037
|
+
//#endregion
|
|
4038
|
+
//#region src/components/heading/heading.d.ts
|
|
4039
|
+
type Level = 1 | 2 | 3 | 4 | 5 | 6;
|
|
4040
|
+
interface HeadingProps extends ComponentProps<'h2'>, HeadingVariants {
|
|
4041
|
+
/** Document outline level (h1–h6). Visual size follows it unless `size` is set. */
|
|
4042
|
+
level?: Level;
|
|
4043
|
+
asChild?: boolean;
|
|
4044
|
+
}
|
|
4045
|
+
/** A heading whose semantic level and visual size are set independently. */
|
|
4046
|
+
export declare function Heading(inProps: HeadingProps): import("react").JSX.Element;
|
|
4047
|
+
//#endregion
|
|
4048
|
+
//#region src/components/hover-card/hover-card.d.ts
|
|
4049
|
+
export declare const hoverCardStyles: import("tailwind-variants").TVReturnType<{
|
|
4050
|
+
[key: string]: {
|
|
4051
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4052
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4053
|
+
};
|
|
4054
|
+
};
|
|
4055
|
+
} | {
|
|
4056
|
+
[x: string]: {
|
|
4057
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
4058
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4059
|
+
};
|
|
4060
|
+
};
|
|
4061
|
+
} | {}, {
|
|
4062
|
+
content: string[];
|
|
4063
|
+
}, undefined, {
|
|
4064
|
+
[key: string]: {
|
|
4065
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4066
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4067
|
+
};
|
|
4068
|
+
};
|
|
4069
|
+
} | {}, {
|
|
4070
|
+
content: string[];
|
|
4071
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
4072
|
+
content: string[];
|
|
4073
|
+
}>>;
|
|
4074
|
+
declare module '@glyphui/tokens' {
|
|
4075
|
+
interface GlyphComponentRegistry {
|
|
4076
|
+
HoverCard: StylesEntry<typeof hoverCardStyles>;
|
|
4077
|
+
}
|
|
4078
|
+
}
|
|
4079
|
+
/**
|
|
4080
|
+
* A rich preview shown while hovering or focusing a link, such as a user or repository card.
|
|
4081
|
+
* Sighted mouse users only see it on hover; keep the same information reachable elsewhere.
|
|
4082
|
+
*/
|
|
4083
|
+
export declare const HoverCard: import("react").FC<HoverCard$1.HoverCardProps>;
|
|
4084
|
+
export declare const HoverCardTrigger: import("react").ForwardRefExoticComponent<HoverCard$1.HoverCardTriggerProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
4085
|
+
export declare function HoverCardContent(inProps: ComponentProps<typeof HoverCard$1.Content>): import("react").JSX.Element;
|
|
4086
|
+
//#endregion
|
|
4087
|
+
//#region src/components/input/input.d.ts
|
|
4088
|
+
interface InputProps extends Omit<ComponentProps<'input'>, 'size' | 'prefix'>, InputVariants {
|
|
4089
|
+
/** Content before the text, e.g. an icon or `https://`. */
|
|
4090
|
+
prefix?: ReactNode;
|
|
4091
|
+
/** Content after the text, e.g. a unit or a Kbd hint. */
|
|
4092
|
+
suffix?: ReactNode;
|
|
4093
|
+
/** Classes for the `<input>` element itself. `className` styles the outer frame. */
|
|
4094
|
+
inputClassName?: string;
|
|
4095
|
+
}
|
|
4096
|
+
export declare function Input(inProps: InputProps): import("react").JSX.Element;
|
|
4097
|
+
//#endregion
|
|
4098
|
+
//#region src/components/input-otp/input-otp.styles.d.ts
|
|
4099
|
+
export declare const inputOtpStyles: import("tailwind-variants").TVReturnType<{
|
|
4100
|
+
size: {
|
|
4101
|
+
sm: {
|
|
4102
|
+
slot: string;
|
|
4103
|
+
};
|
|
4104
|
+
md: {
|
|
4105
|
+
slot: string;
|
|
4106
|
+
};
|
|
4107
|
+
lg: {
|
|
4108
|
+
slot: string;
|
|
4109
|
+
};
|
|
4110
|
+
};
|
|
4111
|
+
}, {
|
|
4112
|
+
root: string;
|
|
4113
|
+
input: string;
|
|
4114
|
+
group: string;
|
|
4115
|
+
slot: string[];
|
|
4116
|
+
caret: string;
|
|
4117
|
+
caretBar: string;
|
|
4118
|
+
separator: string;
|
|
4119
|
+
}, undefined, {
|
|
4120
|
+
size: {
|
|
4121
|
+
sm: {
|
|
4122
|
+
slot: string;
|
|
4123
|
+
};
|
|
4124
|
+
md: {
|
|
4125
|
+
slot: string;
|
|
4126
|
+
};
|
|
4127
|
+
lg: {
|
|
4128
|
+
slot: string;
|
|
4129
|
+
};
|
|
4130
|
+
};
|
|
4131
|
+
}, {
|
|
4132
|
+
root: string;
|
|
4133
|
+
input: string;
|
|
4134
|
+
group: string;
|
|
4135
|
+
slot: string[];
|
|
4136
|
+
caret: string;
|
|
4137
|
+
caretBar: string;
|
|
4138
|
+
separator: string;
|
|
4139
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
4140
|
+
size: {
|
|
4141
|
+
sm: {
|
|
4142
|
+
slot: string;
|
|
4143
|
+
};
|
|
4144
|
+
md: {
|
|
4145
|
+
slot: string;
|
|
4146
|
+
};
|
|
4147
|
+
lg: {
|
|
4148
|
+
slot: string;
|
|
4149
|
+
};
|
|
4150
|
+
};
|
|
4151
|
+
}, {
|
|
4152
|
+
root: string;
|
|
4153
|
+
input: string;
|
|
4154
|
+
group: string;
|
|
4155
|
+
slot: string[];
|
|
4156
|
+
caret: string;
|
|
4157
|
+
caretBar: string;
|
|
4158
|
+
separator: string;
|
|
4159
|
+
}>>;
|
|
4160
|
+
type InputOTPVariants = VariantProps<typeof inputOtpStyles>;
|
|
4161
|
+
declare module '@glyphui/tokens' {
|
|
4162
|
+
interface GlyphComponentRegistry {
|
|
4163
|
+
InputOTP: StylesEntry<typeof inputOtpStyles>;
|
|
4164
|
+
}
|
|
4165
|
+
}
|
|
4166
|
+
//#endregion
|
|
4167
|
+
//#region src/components/input-otp/input-otp.d.ts
|
|
4168
|
+
type InputOTPProps = Omit<OTPInputProps, 'render' | 'children' | 'maxLength'> & InputOTPVariants & {
|
|
4169
|
+
/** Number of characters. Default 6. */
|
|
4170
|
+
length?: number;
|
|
4171
|
+
/** Custom slot layout (InputOTPGroup, InputOTPSlot, InputOTPSeparator). Defaults to one group of `length` slots. */
|
|
4172
|
+
children?: ReactNode;
|
|
4173
|
+
};
|
|
4174
|
+
/**
|
|
4175
|
+
* One-time code input: one box per character, paste support, and autofill from SMS on
|
|
4176
|
+
* mobile. Built on input-otp. Restrict characters with `pattern`, e.g. `REGEXP_ONLY_DIGITS`.
|
|
4177
|
+
*/
|
|
4178
|
+
export declare function InputOTP(inProps: InputOTPProps): import("react").JSX.Element;
|
|
4179
|
+
export declare function InputOTPGroup({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
4180
|
+
interface InputOTPSlotProps extends ComponentProps<'div'> {
|
|
4181
|
+
/** Position of the character this box shows, starting at 0. */
|
|
4182
|
+
index: number;
|
|
4183
|
+
}
|
|
4184
|
+
export declare function InputOTPSlot({ index, className, ...props }: InputOTPSlotProps): import("react").JSX.Element;
|
|
4185
|
+
export declare function InputOTPSeparator({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
4186
|
+
//#endregion
|
|
4187
|
+
//#region src/components/link/link.styles.d.ts
|
|
4188
|
+
export declare const linkStyles: import("tailwind-variants").TVReturnType<{
|
|
4189
|
+
tone: {
|
|
4190
|
+
default: {
|
|
4191
|
+
base: string;
|
|
4192
|
+
};
|
|
4193
|
+
muted: {
|
|
4194
|
+
base: string;
|
|
4195
|
+
};
|
|
4196
|
+
primary: {
|
|
4197
|
+
base: string;
|
|
4198
|
+
};
|
|
4199
|
+
};
|
|
4200
|
+
underline: {
|
|
4201
|
+
hover: {
|
|
4202
|
+
base: string;
|
|
4203
|
+
};
|
|
4204
|
+
always: {
|
|
4205
|
+
base: string;
|
|
4206
|
+
};
|
|
4207
|
+
none: {
|
|
4208
|
+
base: string;
|
|
4209
|
+
};
|
|
4210
|
+
};
|
|
4211
|
+
}, {
|
|
4212
|
+
base: string[];
|
|
4213
|
+
icon: string;
|
|
4214
|
+
}, undefined, {
|
|
4215
|
+
tone: {
|
|
4216
|
+
default: {
|
|
4217
|
+
base: string;
|
|
4218
|
+
};
|
|
4219
|
+
muted: {
|
|
4220
|
+
base: string;
|
|
4221
|
+
};
|
|
4222
|
+
primary: {
|
|
4223
|
+
base: string;
|
|
4224
|
+
};
|
|
4225
|
+
};
|
|
4226
|
+
underline: {
|
|
4227
|
+
hover: {
|
|
4228
|
+
base: string;
|
|
4229
|
+
};
|
|
4230
|
+
always: {
|
|
4231
|
+
base: string;
|
|
4232
|
+
};
|
|
4233
|
+
none: {
|
|
4234
|
+
base: string;
|
|
4235
|
+
};
|
|
4236
|
+
};
|
|
4237
|
+
}, {
|
|
4238
|
+
base: string[];
|
|
4239
|
+
icon: string;
|
|
4240
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
4241
|
+
tone: {
|
|
4242
|
+
default: {
|
|
4243
|
+
base: string;
|
|
4244
|
+
};
|
|
4245
|
+
muted: {
|
|
4246
|
+
base: string;
|
|
4247
|
+
};
|
|
4248
|
+
primary: {
|
|
4249
|
+
base: string;
|
|
4250
|
+
};
|
|
4251
|
+
};
|
|
4252
|
+
underline: {
|
|
4253
|
+
hover: {
|
|
4254
|
+
base: string;
|
|
4255
|
+
};
|
|
4256
|
+
always: {
|
|
4257
|
+
base: string;
|
|
4258
|
+
};
|
|
4259
|
+
none: {
|
|
4260
|
+
base: string;
|
|
4261
|
+
};
|
|
4262
|
+
};
|
|
4263
|
+
}, {
|
|
4264
|
+
base: string[];
|
|
4265
|
+
icon: string;
|
|
4266
|
+
}>>;
|
|
4267
|
+
type LinkVariants = VariantProps<typeof linkStyles>;
|
|
4268
|
+
declare module '@glyphui/tokens' {
|
|
4269
|
+
interface GlyphComponentRegistry {
|
|
4270
|
+
Link: StylesEntry<typeof linkStyles>;
|
|
4271
|
+
}
|
|
4272
|
+
}
|
|
4273
|
+
//#endregion
|
|
4274
|
+
//#region src/components/link/link.d.ts
|
|
4275
|
+
interface LinkProps extends Omit<ComponentProps<'a'>, 'href'>, LinkVariants {
|
|
4276
|
+
href: string;
|
|
4277
|
+
/** Opens in a new tab with `rel="noopener noreferrer"`, shows an arrow and announces it. */
|
|
4278
|
+
external?: boolean;
|
|
4279
|
+
}
|
|
4280
|
+
/**
|
|
4281
|
+
* A text link with an animated underline. Internal links go through the provider's
|
|
4282
|
+
* `linkComponent` (your router); external links render a plain `<a>`.
|
|
4283
|
+
*/
|
|
4284
|
+
export declare function Link(inProps: LinkProps): import("react").JSX.Element;
|
|
4285
|
+
//#endregion
|
|
4286
|
+
//#region src/components/modal/modal.d.ts
|
|
4287
|
+
interface ModalProps extends Omit<DialogContentProps, 'title' | 'children' | 'onSubmit'> {
|
|
4288
|
+
open?: boolean;
|
|
4289
|
+
defaultOpen?: boolean;
|
|
4290
|
+
onOpenChange?: (open: boolean) => void;
|
|
4291
|
+
/** Heading of the modal. Also its accessible name. */
|
|
4292
|
+
title: ReactNode;
|
|
4293
|
+
description?: ReactNode;
|
|
4294
|
+
/** Element that opens the modal, e.g. a Button. Optional when you control `open`. */
|
|
4295
|
+
trigger?: ReactNode;
|
|
4296
|
+
/** Actions at the bottom. Wrap a button in `ModalClose` to close on click. */
|
|
4297
|
+
footer?: ReactNode;
|
|
4298
|
+
/** Close when the backdrop is clicked. Default true. */
|
|
4299
|
+
closeOnOverlayClick?: boolean;
|
|
4300
|
+
/**
|
|
4301
|
+
* Turns the body and footer into one `<form>`, so a `type="submit"` button in the footer
|
|
4302
|
+
* submits the fields in the body. The page does not reload. With `@glyphui/ui/form`, use
|
|
4303
|
+
* `<Form>` in the body and `<FormSubmit form={form}>` in the footer instead.
|
|
4304
|
+
*/
|
|
4305
|
+
onSubmit?: (event: FormEvent<HTMLFormElement>) => void;
|
|
4306
|
+
children?: ReactNode;
|
|
4307
|
+
}
|
|
4308
|
+
/**
|
|
4309
|
+
* The everyday modal in one component: title, description, body and footer as props.
|
|
4310
|
+
* For custom layouts use the Dialog parts; for yes/no decisions use `useConfirm()`.
|
|
4311
|
+
*/
|
|
4312
|
+
export declare function Modal(inProps: ModalProps): import("react").JSX.Element;
|
|
4313
|
+
/** Closes the surrounding Modal. Use with `asChild` around a button. */
|
|
4314
|
+
export declare const ModalClose: typeof DialogClose;
|
|
4315
|
+
//#endregion
|
|
4316
|
+
//#region src/components/modal/modal.styles.d.ts
|
|
4317
|
+
/** Modal is built from Dialog parts; these slots add Modal-specific classes on top. */
|
|
4318
|
+
export declare const modalStyles: import("tailwind-variants").TVReturnType<{
|
|
4319
|
+
[key: string]: {
|
|
4320
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4321
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
4322
|
+
header?: import("tailwind-variants").ClassValue;
|
|
4323
|
+
body?: import("tailwind-variants").ClassValue;
|
|
4324
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4325
|
+
form?: import("tailwind-variants").ClassValue;
|
|
4326
|
+
};
|
|
4327
|
+
};
|
|
4328
|
+
} | {
|
|
4329
|
+
[x: string]: {
|
|
4330
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
4331
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
4332
|
+
header?: import("tailwind-variants").ClassValue;
|
|
4333
|
+
body?: import("tailwind-variants").ClassValue;
|
|
4334
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4335
|
+
form?: import("tailwind-variants").ClassValue;
|
|
4336
|
+
};
|
|
4337
|
+
};
|
|
4338
|
+
} | {}, {
|
|
4339
|
+
content: string;
|
|
4340
|
+
header: string;
|
|
4341
|
+
body: string;
|
|
4342
|
+
footer: string;
|
|
4343
|
+
/** Wraps body and footer when `onSubmit` is set; `contents` keeps the dialog layout. */
|
|
4344
|
+
form: string;
|
|
4345
|
+
}, undefined, {
|
|
4346
|
+
[key: string]: {
|
|
4347
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4348
|
+
footer?: import("tailwind-variants").ClassValue;
|
|
4349
|
+
header?: import("tailwind-variants").ClassValue;
|
|
4350
|
+
body?: import("tailwind-variants").ClassValue;
|
|
4351
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4352
|
+
form?: import("tailwind-variants").ClassValue;
|
|
4353
|
+
};
|
|
4354
|
+
};
|
|
4355
|
+
} | {}, {
|
|
4356
|
+
content: string;
|
|
4357
|
+
header: string;
|
|
4358
|
+
body: string;
|
|
4359
|
+
footer: string;
|
|
4360
|
+
/** Wraps body and footer when `onSubmit` is set; `contents` keeps the dialog layout. */
|
|
4361
|
+
form: string;
|
|
4362
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
4363
|
+
content: string;
|
|
4364
|
+
header: string;
|
|
4365
|
+
body: string;
|
|
4366
|
+
footer: string;
|
|
4367
|
+
/** Wraps body and footer when `onSubmit` is set; `contents` keeps the dialog layout. */
|
|
4368
|
+
form: string;
|
|
4369
|
+
}>>;
|
|
4370
|
+
declare module '@glyphui/tokens' {
|
|
4371
|
+
interface GlyphComponentRegistry {
|
|
4372
|
+
Modal: StylesEntry<typeof modalStyles>;
|
|
4373
|
+
}
|
|
4374
|
+
}
|
|
4375
|
+
//#endregion
|
|
4376
|
+
//#region src/components/navigation-menu/navigation-menu.d.ts
|
|
4377
|
+
interface NavigationMenuProps extends ComponentProps<typeof NavigationMenu$1.Root> {
|
|
4378
|
+
/** Render the shared animated panel below the menu. Default true. */
|
|
4379
|
+
viewport?: boolean;
|
|
4380
|
+
}
|
|
4381
|
+
/**
|
|
4382
|
+
* Site navigation with dropdown panels (mega menus) for marketing headers.
|
|
4383
|
+
* Keyboard: Tab between items, arrows inside panels, Escape to close.
|
|
4384
|
+
*/
|
|
4385
|
+
export declare function NavigationMenu(inProps: NavigationMenuProps): import("react").JSX.Element;
|
|
4386
|
+
export declare function NavigationMenuList({ className, ...props }: ComponentProps<typeof NavigationMenu$1.List>): import("react").JSX.Element;
|
|
4387
|
+
export declare function NavigationMenuItem({ className, ...props }: ComponentProps<typeof NavigationMenu$1.Item>): import("react").JSX.Element;
|
|
4388
|
+
export declare function NavigationMenuTrigger({ className, children, ...props }: ComponentProps<typeof NavigationMenu$1.Trigger>): import("react").JSX.Element;
|
|
4389
|
+
export declare function NavigationMenuContent({ className, ...props }: ComponentProps<typeof NavigationMenu$1.Content>): import("react").JSX.Element;
|
|
4390
|
+
export declare function NavigationMenuViewport({ className, ...props }: ComponentProps<typeof NavigationMenu$1.Viewport>): import("react").JSX.Element;
|
|
4391
|
+
interface NavigationMenuLinkProps extends Omit<ComponentProps<typeof NavigationMenu$1.Link>, 'href'> {
|
|
4392
|
+
/** Rendered through the provider's `linkComponent`, so it uses your router. */
|
|
4393
|
+
href?: string;
|
|
4394
|
+
}
|
|
4395
|
+
/**
|
|
4396
|
+
* A top-level link (no panel). Marked active automatically from the provider's `router`;
|
|
4397
|
+
* set `active` to override.
|
|
4398
|
+
*/
|
|
4399
|
+
export declare function NavigationMenuLink({ href, active: activeProp, className, children, ...props }: NavigationMenuLinkProps): import("react").JSX.Element;
|
|
4400
|
+
interface NavigationMenuCardProps {
|
|
4401
|
+
href: string;
|
|
4402
|
+
title: ReactNode;
|
|
4403
|
+
description?: ReactNode;
|
|
4404
|
+
icon?: ReactNode;
|
|
4405
|
+
className?: string;
|
|
4406
|
+
}
|
|
4407
|
+
/** A link tile for mega-menu panels: icon, title and one line of description. */
|
|
4408
|
+
export declare function NavigationMenuCard({ href, title, description, icon, className }: NavigationMenuCardProps): import("react").JSX.Element;
|
|
4409
|
+
//#endregion
|
|
4410
|
+
//#region src/components/navigation-menu/navigation-menu.styles.d.ts
|
|
4411
|
+
export declare const navigationMenuStyles: import("tailwind-variants").TVReturnType<{
|
|
4412
|
+
[key: string]: {
|
|
4413
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4414
|
+
root?: import("tailwind-variants").ClassValue;
|
|
4415
|
+
card?: import("tailwind-variants").ClassValue;
|
|
4416
|
+
link?: import("tailwind-variants").ClassValue;
|
|
4417
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4418
|
+
list?: import("tailwind-variants").ClassValue;
|
|
4419
|
+
item?: import("tailwind-variants").ClassValue;
|
|
4420
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
4421
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
4422
|
+
chevron?: import("tailwind-variants").ClassValue;
|
|
4423
|
+
viewportWrapper?: import("tailwind-variants").ClassValue;
|
|
4424
|
+
cardIcon?: import("tailwind-variants").ClassValue;
|
|
4425
|
+
cardText?: import("tailwind-variants").ClassValue;
|
|
4426
|
+
cardTitle?: import("tailwind-variants").ClassValue;
|
|
4427
|
+
cardDescription?: import("tailwind-variants").ClassValue;
|
|
4428
|
+
};
|
|
4429
|
+
};
|
|
4430
|
+
} | {
|
|
4431
|
+
[x: string]: {
|
|
4432
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
4433
|
+
root?: import("tailwind-variants").ClassValue;
|
|
4434
|
+
card?: import("tailwind-variants").ClassValue;
|
|
4435
|
+
link?: import("tailwind-variants").ClassValue;
|
|
4436
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4437
|
+
list?: import("tailwind-variants").ClassValue;
|
|
4438
|
+
item?: import("tailwind-variants").ClassValue;
|
|
4439
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
4440
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
4441
|
+
chevron?: import("tailwind-variants").ClassValue;
|
|
4442
|
+
viewportWrapper?: import("tailwind-variants").ClassValue;
|
|
4443
|
+
cardIcon?: import("tailwind-variants").ClassValue;
|
|
4444
|
+
cardText?: import("tailwind-variants").ClassValue;
|
|
4445
|
+
cardTitle?: import("tailwind-variants").ClassValue;
|
|
4446
|
+
cardDescription?: import("tailwind-variants").ClassValue;
|
|
4447
|
+
};
|
|
4448
|
+
};
|
|
4449
|
+
} | {}, {
|
|
4450
|
+
root: string;
|
|
4451
|
+
list: string;
|
|
4452
|
+
item: string;
|
|
4453
|
+
trigger: string[];
|
|
4454
|
+
chevron: string;
|
|
4455
|
+
content: string;
|
|
4456
|
+
viewportWrapper: string;
|
|
4457
|
+
viewport: string[];
|
|
4458
|
+
link: string[];
|
|
4459
|
+
card: string[];
|
|
4460
|
+
cardIcon: string;
|
|
4461
|
+
cardText: string;
|
|
4462
|
+
cardTitle: string;
|
|
4463
|
+
cardDescription: string;
|
|
4464
|
+
}, undefined, {
|
|
4465
|
+
[key: string]: {
|
|
4466
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4467
|
+
root?: import("tailwind-variants").ClassValue;
|
|
4468
|
+
card?: import("tailwind-variants").ClassValue;
|
|
4469
|
+
link?: import("tailwind-variants").ClassValue;
|
|
4470
|
+
content?: import("tailwind-variants").ClassValue;
|
|
4471
|
+
list?: import("tailwind-variants").ClassValue;
|
|
4472
|
+
item?: import("tailwind-variants").ClassValue;
|
|
4473
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
4474
|
+
trigger?: import("tailwind-variants").ClassValue;
|
|
4475
|
+
chevron?: import("tailwind-variants").ClassValue;
|
|
4476
|
+
viewportWrapper?: import("tailwind-variants").ClassValue;
|
|
4477
|
+
cardIcon?: import("tailwind-variants").ClassValue;
|
|
4478
|
+
cardText?: import("tailwind-variants").ClassValue;
|
|
4479
|
+
cardTitle?: import("tailwind-variants").ClassValue;
|
|
4480
|
+
cardDescription?: import("tailwind-variants").ClassValue;
|
|
3164
4481
|
};
|
|
3165
4482
|
};
|
|
3166
|
-
}, {
|
|
3167
|
-
|
|
4483
|
+
} | {}, {
|
|
4484
|
+
root: string;
|
|
4485
|
+
list: string;
|
|
4486
|
+
item: string;
|
|
4487
|
+
trigger: string[];
|
|
4488
|
+
chevron: string;
|
|
4489
|
+
content: string;
|
|
4490
|
+
viewportWrapper: string;
|
|
4491
|
+
viewport: string[];
|
|
4492
|
+
link: string[];
|
|
4493
|
+
card: string[];
|
|
4494
|
+
cardIcon: string;
|
|
4495
|
+
cardText: string;
|
|
4496
|
+
cardTitle: string;
|
|
4497
|
+
cardDescription: string;
|
|
4498
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
4499
|
+
root: string;
|
|
4500
|
+
list: string;
|
|
4501
|
+
item: string;
|
|
4502
|
+
trigger: string[];
|
|
4503
|
+
chevron: string;
|
|
4504
|
+
content: string;
|
|
4505
|
+
viewportWrapper: string;
|
|
4506
|
+
viewport: string[];
|
|
4507
|
+
link: string[];
|
|
4508
|
+
card: string[];
|
|
4509
|
+
cardIcon: string;
|
|
4510
|
+
cardText: string;
|
|
4511
|
+
cardTitle: string;
|
|
4512
|
+
cardDescription: string;
|
|
3168
4513
|
}>>;
|
|
3169
4514
|
declare module '@glyphui/tokens' {
|
|
3170
4515
|
interface GlyphComponentRegistry {
|
|
3171
|
-
|
|
4516
|
+
NavigationMenu: StylesEntry<typeof navigationMenuStyles>;
|
|
3172
4517
|
}
|
|
3173
4518
|
}
|
|
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;
|
|
3191
|
-
//#endregion
|
|
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
4519
|
//#endregion
|
|
3203
|
-
//#region src/components/
|
|
3204
|
-
export declare const
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
};
|
|
3209
|
-
muted: {
|
|
3210
|
-
base: string;
|
|
3211
|
-
};
|
|
3212
|
-
primary: {
|
|
3213
|
-
base: string;
|
|
3214
|
-
};
|
|
3215
|
-
};
|
|
3216
|
-
underline: {
|
|
3217
|
-
hover: {
|
|
3218
|
-
base: string;
|
|
4520
|
+
//#region src/components/number-input/number-input.styles.d.ts
|
|
4521
|
+
export declare const numberInputStyles: import("tailwind-variants").TVReturnType<{
|
|
4522
|
+
size: {
|
|
4523
|
+
sm: {
|
|
4524
|
+
root: string;
|
|
3219
4525
|
};
|
|
3220
|
-
|
|
3221
|
-
|
|
4526
|
+
md: {
|
|
4527
|
+
root: string;
|
|
3222
4528
|
};
|
|
3223
|
-
|
|
3224
|
-
|
|
4529
|
+
lg: {
|
|
4530
|
+
root: string;
|
|
4531
|
+
stepper: string;
|
|
3225
4532
|
};
|
|
3226
4533
|
};
|
|
3227
4534
|
}, {
|
|
3228
|
-
|
|
3229
|
-
|
|
4535
|
+
root: string[];
|
|
4536
|
+
input: string;
|
|
4537
|
+
adornment: string;
|
|
4538
|
+
steppers: string;
|
|
4539
|
+
stepper: string[];
|
|
3230
4540
|
}, undefined, {
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
};
|
|
3235
|
-
muted: {
|
|
3236
|
-
base: string;
|
|
3237
|
-
};
|
|
3238
|
-
primary: {
|
|
3239
|
-
base: string;
|
|
3240
|
-
};
|
|
3241
|
-
};
|
|
3242
|
-
underline: {
|
|
3243
|
-
hover: {
|
|
3244
|
-
base: string;
|
|
4541
|
+
size: {
|
|
4542
|
+
sm: {
|
|
4543
|
+
root: string;
|
|
3245
4544
|
};
|
|
3246
|
-
|
|
3247
|
-
|
|
4545
|
+
md: {
|
|
4546
|
+
root: string;
|
|
3248
4547
|
};
|
|
3249
|
-
|
|
3250
|
-
|
|
4548
|
+
lg: {
|
|
4549
|
+
root: string;
|
|
4550
|
+
stepper: string;
|
|
3251
4551
|
};
|
|
3252
4552
|
};
|
|
3253
4553
|
}, {
|
|
3254
|
-
|
|
3255
|
-
|
|
4554
|
+
root: string[];
|
|
4555
|
+
input: string;
|
|
4556
|
+
adornment: string;
|
|
4557
|
+
steppers: string;
|
|
4558
|
+
stepper: string[];
|
|
3256
4559
|
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
};
|
|
3261
|
-
muted: {
|
|
3262
|
-
base: string;
|
|
3263
|
-
};
|
|
3264
|
-
primary: {
|
|
3265
|
-
base: string;
|
|
3266
|
-
};
|
|
3267
|
-
};
|
|
3268
|
-
underline: {
|
|
3269
|
-
hover: {
|
|
3270
|
-
base: string;
|
|
4560
|
+
size: {
|
|
4561
|
+
sm: {
|
|
4562
|
+
root: string;
|
|
3271
4563
|
};
|
|
3272
|
-
|
|
3273
|
-
|
|
4564
|
+
md: {
|
|
4565
|
+
root: string;
|
|
3274
4566
|
};
|
|
3275
|
-
|
|
3276
|
-
|
|
4567
|
+
lg: {
|
|
4568
|
+
root: string;
|
|
4569
|
+
stepper: string;
|
|
3277
4570
|
};
|
|
3278
4571
|
};
|
|
3279
4572
|
}, {
|
|
3280
|
-
|
|
3281
|
-
|
|
4573
|
+
root: string[];
|
|
4574
|
+
input: string;
|
|
4575
|
+
adornment: string;
|
|
4576
|
+
steppers: string;
|
|
4577
|
+
stepper: string[];
|
|
3282
4578
|
}>>;
|
|
3283
|
-
type
|
|
4579
|
+
type NumberInputVariants = VariantProps<typeof numberInputStyles>;
|
|
3284
4580
|
declare module '@glyphui/tokens' {
|
|
3285
4581
|
interface GlyphComponentRegistry {
|
|
3286
|
-
|
|
4582
|
+
NumberInput: StylesEntry<typeof numberInputStyles>;
|
|
3287
4583
|
}
|
|
3288
4584
|
}
|
|
3289
4585
|
//#endregion
|
|
3290
|
-
//#region src/components/
|
|
3291
|
-
interface
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
4586
|
+
//#region src/components/number-input/number-input.d.ts
|
|
4587
|
+
interface NumberInputProps extends Omit<ComponentProps<'input'>, 'value' | 'defaultValue' | 'onChange' | 'size' | 'type' | 'min' | 'max' | 'step' | 'prefix'>, NumberInputVariants {
|
|
4588
|
+
/** `null` means empty. */
|
|
4589
|
+
value?: number | null;
|
|
4590
|
+
defaultValue?: number | null;
|
|
4591
|
+
onValueChange?: (value: number | null) => void;
|
|
4592
|
+
min?: number;
|
|
4593
|
+
max?: number;
|
|
4594
|
+
/** Amount added or removed by the steppers and arrow keys. Shift multiplies by 10. Default 1. */
|
|
4595
|
+
step?: number;
|
|
4596
|
+
/** Display formatting when the field isn't focused, e.g. `{ style: 'currency', currency: 'USD' }`. */
|
|
4597
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
4598
|
+
/** Locale for formatting. Defaults to the browser's. */
|
|
4599
|
+
locale?: string;
|
|
4600
|
+
prefix?: ReactNode;
|
|
4601
|
+
/** Content after the number, before the steppers, e.g. a unit. */
|
|
4602
|
+
suffix?: ReactNode;
|
|
4603
|
+
/** Hide the − / + buttons. */
|
|
4604
|
+
hideSteppers?: boolean;
|
|
4605
|
+
/** Classes for the `<input>` element. `className` styles the outer frame. */
|
|
4606
|
+
inputClassName?: string;
|
|
3295
4607
|
}
|
|
3296
4608
|
/**
|
|
3297
|
-
* A
|
|
3298
|
-
*
|
|
4609
|
+
* A number field with − / + steppers, arrow-key stepping, min/max clamping on blur, and
|
|
4610
|
+
* locale formatting when not focused. The value is a `number`, never a string.
|
|
3299
4611
|
*/
|
|
3300
|
-
export declare function
|
|
4612
|
+
export declare function NumberInput(inProps: NumberInputProps): import("react").JSX.Element;
|
|
3301
4613
|
//#endregion
|
|
3302
4614
|
//#region src/components/pagination/pagination.styles.d.ts
|
|
3303
4615
|
export declare const paginationStyles: import("tailwind-variants").TVReturnType<{
|
|
@@ -3383,6 +4695,90 @@ type PaginationItem = number | 'ellipsis';
|
|
|
3383
4695
|
*/
|
|
3384
4696
|
export declare function paginationRange(page: number, pageCount: number, siblingCount?: number): PaginationItem[];
|
|
3385
4697
|
//#endregion
|
|
4698
|
+
//#region src/components/password-input/password-input.d.ts
|
|
4699
|
+
type PasswordStrength = 'weak' | 'fair' | 'strong';
|
|
4700
|
+
/**
|
|
4701
|
+
* A quick strength estimate from length and character variety. A hint for users,
|
|
4702
|
+
* not a security check: enforce real rules on the server.
|
|
4703
|
+
*/
|
|
4704
|
+
export declare function passwordStrength(password: string): {
|
|
4705
|
+
score: number;
|
|
4706
|
+
strength: PasswordStrength;
|
|
4707
|
+
};
|
|
4708
|
+
interface PasswordInputProps extends Omit<InputProps, 'type' | 'suffix'> {
|
|
4709
|
+
/** Show a strength meter under the field once the user starts typing. */
|
|
4710
|
+
showStrength?: boolean;
|
|
4711
|
+
/** Start with the password visible. */
|
|
4712
|
+
defaultVisible?: boolean;
|
|
4713
|
+
}
|
|
4714
|
+
/** A password field with a show/hide toggle and an optional strength meter. */
|
|
4715
|
+
export declare function PasswordInput(inProps: PasswordInputProps): import("react").JSX.Element;
|
|
4716
|
+
//#endregion
|
|
4717
|
+
//#region src/components/password-input/password-input.styles.d.ts
|
|
4718
|
+
export declare const passwordInputStyles: import("tailwind-variants").TVReturnType<{
|
|
4719
|
+
strength: {
|
|
4720
|
+
weak: {
|
|
4721
|
+
label: string;
|
|
4722
|
+
};
|
|
4723
|
+
fair: {
|
|
4724
|
+
label: string;
|
|
4725
|
+
};
|
|
4726
|
+
strong: {
|
|
4727
|
+
label: string;
|
|
4728
|
+
};
|
|
4729
|
+
};
|
|
4730
|
+
}, {
|
|
4731
|
+
root: string;
|
|
4732
|
+
toggle: string[];
|
|
4733
|
+
meter: string;
|
|
4734
|
+
bars: string;
|
|
4735
|
+
bar: string;
|
|
4736
|
+
label: string;
|
|
4737
|
+
}, undefined, {
|
|
4738
|
+
strength: {
|
|
4739
|
+
weak: {
|
|
4740
|
+
label: string;
|
|
4741
|
+
};
|
|
4742
|
+
fair: {
|
|
4743
|
+
label: string;
|
|
4744
|
+
};
|
|
4745
|
+
strong: {
|
|
4746
|
+
label: string;
|
|
4747
|
+
};
|
|
4748
|
+
};
|
|
4749
|
+
}, {
|
|
4750
|
+
root: string;
|
|
4751
|
+
toggle: string[];
|
|
4752
|
+
meter: string;
|
|
4753
|
+
bars: string;
|
|
4754
|
+
bar: string;
|
|
4755
|
+
label: string;
|
|
4756
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
4757
|
+
strength: {
|
|
4758
|
+
weak: {
|
|
4759
|
+
label: string;
|
|
4760
|
+
};
|
|
4761
|
+
fair: {
|
|
4762
|
+
label: string;
|
|
4763
|
+
};
|
|
4764
|
+
strong: {
|
|
4765
|
+
label: string;
|
|
4766
|
+
};
|
|
4767
|
+
};
|
|
4768
|
+
}, {
|
|
4769
|
+
root: string;
|
|
4770
|
+
toggle: string[];
|
|
4771
|
+
meter: string;
|
|
4772
|
+
bars: string;
|
|
4773
|
+
bar: string;
|
|
4774
|
+
label: string;
|
|
4775
|
+
}>>;
|
|
4776
|
+
declare module '@glyphui/tokens' {
|
|
4777
|
+
interface GlyphComponentRegistry {
|
|
4778
|
+
PasswordInput: StylesEntry<typeof passwordInputStyles>;
|
|
4779
|
+
}
|
|
4780
|
+
}
|
|
4781
|
+
//#endregion
|
|
3386
4782
|
//#region src/components/popover/popover.d.ts
|
|
3387
4783
|
export declare const popoverStyles: import("tailwind-variants").TVReturnType<{
|
|
3388
4784
|
[key: string]: {
|
|
@@ -3877,16 +5273,82 @@ interface RadioGroupItemProps extends Omit<ComponentProps<typeof RadioGroup$1.It
|
|
|
3877
5273
|
/** Extra content inside a card item, below the description. */
|
|
3878
5274
|
children?: ReactNode;
|
|
3879
5275
|
}
|
|
3880
|
-
export declare function RadioGroupItem({ label, description, children, className, id, ...props }: RadioGroupItemProps): import("react").JSX.Element;
|
|
5276
|
+
export declare function RadioGroupItem({ label, description, children, className, id, ...props }: RadioGroupItemProps): import("react").JSX.Element;
|
|
5277
|
+
//#endregion
|
|
5278
|
+
//#region src/components/resizable/resizable.d.ts
|
|
5279
|
+
type ResizablePanelGroupProps = ComponentProps<typeof PanelGroup>;
|
|
5280
|
+
/**
|
|
5281
|
+
* Panels separated by draggable, keyboard-accessible dividers, for editors and split views.
|
|
5282
|
+
* Set `direction` to "horizontal" or "vertical"; pass `autoSaveId` to remember sizes.
|
|
5283
|
+
*/
|
|
5284
|
+
export declare function ResizablePanelGroup({ className, ...props }: ResizablePanelGroupProps): import("react").JSX.Element;
|
|
5285
|
+
type ResizablePanelProps = ComponentProps<typeof Panel>;
|
|
5286
|
+
export declare function ResizablePanel({ className, ...props }: ResizablePanelProps): import("react").JSX.Element;
|
|
5287
|
+
interface ResizableHandleProps extends ComponentProps<typeof PanelResizeHandle> {
|
|
5288
|
+
/** Show a visible grip on the divider. */
|
|
5289
|
+
withHandle?: boolean;
|
|
5290
|
+
}
|
|
5291
|
+
export declare function ResizableHandle({ withHandle, className, ...props }: ResizableHandleProps): import("react").JSX.Element;
|
|
5292
|
+
//#endregion
|
|
5293
|
+
//#region src/components/resizable/resizable.styles.d.ts
|
|
5294
|
+
export declare const resizableStyles: import("tailwind-variants").TVReturnType<{
|
|
5295
|
+
[key: string]: {
|
|
5296
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
5297
|
+
group?: import("tailwind-variants").ClassValue;
|
|
5298
|
+
panel?: import("tailwind-variants").ClassValue;
|
|
5299
|
+
grip?: import("tailwind-variants").ClassValue;
|
|
5300
|
+
handle?: import("tailwind-variants").ClassValue;
|
|
5301
|
+
};
|
|
5302
|
+
};
|
|
5303
|
+
} | {
|
|
5304
|
+
[x: string]: {
|
|
5305
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
5306
|
+
group?: import("tailwind-variants").ClassValue;
|
|
5307
|
+
panel?: import("tailwind-variants").ClassValue;
|
|
5308
|
+
grip?: import("tailwind-variants").ClassValue;
|
|
5309
|
+
handle?: import("tailwind-variants").ClassValue;
|
|
5310
|
+
};
|
|
5311
|
+
};
|
|
5312
|
+
} | {}, {
|
|
5313
|
+
group: string;
|
|
5314
|
+
panel: string;
|
|
5315
|
+
handle: string[];
|
|
5316
|
+
grip: string;
|
|
5317
|
+
}, undefined, {
|
|
5318
|
+
[key: string]: {
|
|
5319
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
5320
|
+
group?: import("tailwind-variants").ClassValue;
|
|
5321
|
+
panel?: import("tailwind-variants").ClassValue;
|
|
5322
|
+
grip?: import("tailwind-variants").ClassValue;
|
|
5323
|
+
handle?: import("tailwind-variants").ClassValue;
|
|
5324
|
+
};
|
|
5325
|
+
};
|
|
5326
|
+
} | {}, {
|
|
5327
|
+
group: string;
|
|
5328
|
+
panel: string;
|
|
5329
|
+
handle: string[];
|
|
5330
|
+
grip: string;
|
|
5331
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
5332
|
+
group: string;
|
|
5333
|
+
panel: string;
|
|
5334
|
+
handle: string[];
|
|
5335
|
+
grip: string;
|
|
5336
|
+
}>>;
|
|
5337
|
+
type ResizableVariants = VariantProps<typeof resizableStyles>;
|
|
5338
|
+
declare module '@glyphui/tokens' {
|
|
5339
|
+
interface GlyphComponentRegistry {
|
|
5340
|
+
Resizable: StylesEntry<typeof resizableStyles>;
|
|
5341
|
+
}
|
|
5342
|
+
}
|
|
3881
5343
|
//#endregion
|
|
3882
5344
|
//#region src/components/scroll-area/scroll-area.d.ts
|
|
3883
5345
|
export declare const scrollAreaStyles: import("tailwind-variants").TVReturnType<{
|
|
3884
5346
|
[key: string]: {
|
|
3885
5347
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
3886
5348
|
root?: import("tailwind-variants").ClassValue;
|
|
3887
|
-
viewport?: import("tailwind-variants").ClassValue;
|
|
3888
5349
|
thumb?: import("tailwind-variants").ClassValue;
|
|
3889
5350
|
scrollbar?: import("tailwind-variants").ClassValue;
|
|
5351
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
3890
5352
|
corner?: import("tailwind-variants").ClassValue;
|
|
3891
5353
|
};
|
|
3892
5354
|
};
|
|
@@ -3894,9 +5356,9 @@ export declare const scrollAreaStyles: import("tailwind-variants").TVReturnType<
|
|
|
3894
5356
|
[x: string]: {
|
|
3895
5357
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
3896
5358
|
root?: import("tailwind-variants").ClassValue;
|
|
3897
|
-
viewport?: import("tailwind-variants").ClassValue;
|
|
3898
5359
|
thumb?: import("tailwind-variants").ClassValue;
|
|
3899
5360
|
scrollbar?: import("tailwind-variants").ClassValue;
|
|
5361
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
3900
5362
|
corner?: import("tailwind-variants").ClassValue;
|
|
3901
5363
|
};
|
|
3902
5364
|
};
|
|
@@ -3910,9 +5372,9 @@ export declare const scrollAreaStyles: import("tailwind-variants").TVReturnType<
|
|
|
3910
5372
|
[key: string]: {
|
|
3911
5373
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
3912
5374
|
root?: import("tailwind-variants").ClassValue;
|
|
3913
|
-
viewport?: import("tailwind-variants").ClassValue;
|
|
3914
5375
|
thumb?: import("tailwind-variants").ClassValue;
|
|
3915
5376
|
scrollbar?: import("tailwind-variants").ClassValue;
|
|
5377
|
+
viewport?: import("tailwind-variants").ClassValue;
|
|
3916
5378
|
corner?: import("tailwind-variants").ClassValue;
|
|
3917
5379
|
};
|
|
3918
5380
|
};
|
|
@@ -4137,7 +5599,9 @@ interface SliderProps<V extends SliderValue> {
|
|
|
4137
5599
|
name?: string;
|
|
4138
5600
|
id?: string;
|
|
4139
5601
|
className?: string;
|
|
5602
|
+
/** Accessible name. Inside a `Field`, the field's label is used when this is not set. */
|
|
4140
5603
|
'aria-label'?: string;
|
|
5604
|
+
'aria-labelledby'?: string;
|
|
4141
5605
|
'aria-describedby'?: string;
|
|
4142
5606
|
'aria-invalid'?: boolean;
|
|
4143
5607
|
/** Accessible names for range thumbs. Default: "Minimum", "Maximum". */
|
|
@@ -4339,96 +5803,515 @@ export declare const statCardStyles: import("tailwind-variants").TVReturnType<{
|
|
|
4339
5803
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4340
5804
|
icon?: import("tailwind-variants").ClassValue;
|
|
4341
5805
|
root?: import("tailwind-variants").ClassValue;
|
|
5806
|
+
description?: import("tailwind-variants").ClassValue;
|
|
5807
|
+
label?: import("tailwind-variants").ClassValue;
|
|
5808
|
+
header?: import("tailwind-variants").ClassValue;
|
|
5809
|
+
value?: import("tailwind-variants").ClassValue;
|
|
5810
|
+
valueRow?: import("tailwind-variants").ClassValue;
|
|
5811
|
+
delta?: import("tailwind-variants").ClassValue;
|
|
5812
|
+
chart?: import("tailwind-variants").ClassValue;
|
|
5813
|
+
};
|
|
5814
|
+
};
|
|
5815
|
+
} | {
|
|
5816
|
+
[x: string]: {
|
|
5817
|
+
[x: string]: import("tailwind-variants").ClassValue | {
|
|
5818
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
5819
|
+
root?: import("tailwind-variants").ClassValue;
|
|
5820
|
+
description?: import("tailwind-variants").ClassValue;
|
|
4342
5821
|
label?: import("tailwind-variants").ClassValue;
|
|
5822
|
+
header?: import("tailwind-variants").ClassValue;
|
|
5823
|
+
value?: import("tailwind-variants").ClassValue;
|
|
5824
|
+
valueRow?: import("tailwind-variants").ClassValue;
|
|
5825
|
+
delta?: import("tailwind-variants").ClassValue;
|
|
5826
|
+
chart?: import("tailwind-variants").ClassValue;
|
|
5827
|
+
};
|
|
5828
|
+
};
|
|
5829
|
+
} | {}, {
|
|
5830
|
+
root: string;
|
|
5831
|
+
header: string;
|
|
5832
|
+
label: string;
|
|
5833
|
+
icon: string;
|
|
5834
|
+
valueRow: string;
|
|
5835
|
+
value: string;
|
|
5836
|
+
delta: string;
|
|
5837
|
+
description: string;
|
|
5838
|
+
chart: string;
|
|
5839
|
+
}, undefined, {
|
|
5840
|
+
[key: string]: {
|
|
5841
|
+
[key: string]: import("tailwind-variants").ClassValue | {
|
|
5842
|
+
icon?: import("tailwind-variants").ClassValue;
|
|
5843
|
+
root?: import("tailwind-variants").ClassValue;
|
|
4343
5844
|
description?: import("tailwind-variants").ClassValue;
|
|
5845
|
+
label?: import("tailwind-variants").ClassValue;
|
|
4344
5846
|
header?: import("tailwind-variants").ClassValue;
|
|
4345
5847
|
value?: import("tailwind-variants").ClassValue;
|
|
4346
5848
|
valueRow?: import("tailwind-variants").ClassValue;
|
|
4347
5849
|
delta?: import("tailwind-variants").ClassValue;
|
|
4348
5850
|
chart?: import("tailwind-variants").ClassValue;
|
|
4349
5851
|
};
|
|
4350
|
-
};
|
|
4351
|
-
} | {
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
5852
|
+
};
|
|
5853
|
+
} | {}, {
|
|
5854
|
+
root: string;
|
|
5855
|
+
header: string;
|
|
5856
|
+
label: string;
|
|
5857
|
+
icon: string;
|
|
5858
|
+
valueRow: string;
|
|
5859
|
+
value: string;
|
|
5860
|
+
delta: string;
|
|
5861
|
+
description: string;
|
|
5862
|
+
chart: string;
|
|
5863
|
+
}, import("tailwind-variants").TVReturnTypeLike<unknown, {
|
|
5864
|
+
root: string;
|
|
5865
|
+
header: string;
|
|
5866
|
+
label: string;
|
|
5867
|
+
icon: string;
|
|
5868
|
+
valueRow: string;
|
|
5869
|
+
value: string;
|
|
5870
|
+
delta: string;
|
|
5871
|
+
description: string;
|
|
5872
|
+
chart: string;
|
|
5873
|
+
}>>;
|
|
5874
|
+
type StatCardVariants = VariantProps<typeof statCardStyles>;
|
|
5875
|
+
declare module '@glyphui/tokens' {
|
|
5876
|
+
interface GlyphComponentRegistry {
|
|
5877
|
+
StatCard: StylesEntry<typeof statCardStyles>;
|
|
5878
|
+
}
|
|
5879
|
+
}
|
|
5880
|
+
//#endregion
|
|
5881
|
+
//#region src/components/stepper/stepper.d.ts
|
|
5882
|
+
type StepStatus = 'complete' | 'current' | 'upcoming' | 'error';
|
|
5883
|
+
interface StepperStep {
|
|
5884
|
+
title: ReactNode;
|
|
5885
|
+
description?: ReactNode;
|
|
5886
|
+
/** Override the status derived from `current`, e.g. `'error'` for a failed step. */
|
|
5887
|
+
status?: StepStatus;
|
|
5888
|
+
}
|
|
5889
|
+
interface StepperProps extends Omit<ComponentProps<'ol'>, 'children'> {
|
|
5890
|
+
steps: readonly StepperStep[];
|
|
5891
|
+
/** Index of the current step. Earlier steps are complete, later ones upcoming. */
|
|
5892
|
+
current: number;
|
|
5893
|
+
orientation?: 'horizontal' | 'vertical';
|
|
5894
|
+
/** Makes completed steps clickable, e.g. to go back in a wizard. */
|
|
5895
|
+
onStepClick?: (index: number) => void;
|
|
5896
|
+
}
|
|
5897
|
+
/** Progress through a multi-step flow such as onboarding or checkout. */
|
|
5898
|
+
export declare function Stepper(inProps: StepperProps): import("react").JSX.Element;
|
|
5899
|
+
//#endregion
|
|
5900
|
+
//#region src/components/stepper/stepper.styles.d.ts
|
|
5901
|
+
export declare const stepperStyles: import("tailwind-variants").TVReturnType<{
|
|
5902
|
+
orientation: {
|
|
5903
|
+
horizontal: {
|
|
5904
|
+
root: string;
|
|
5905
|
+
step: string;
|
|
5906
|
+
trigger: string;
|
|
5907
|
+
connector: string;
|
|
5908
|
+
text: string;
|
|
5909
|
+
};
|
|
5910
|
+
vertical: {
|
|
5911
|
+
root: string;
|
|
5912
|
+
step: string;
|
|
5913
|
+
trigger: string;
|
|
5914
|
+
connector: string;
|
|
5915
|
+
text: string;
|
|
5916
|
+
};
|
|
5917
|
+
};
|
|
5918
|
+
status: {
|
|
5919
|
+
complete: {
|
|
5920
|
+
indicator: string;
|
|
5921
|
+
connector: string;
|
|
5922
|
+
title: string;
|
|
5923
|
+
};
|
|
5924
|
+
current: {
|
|
5925
|
+
indicator: string;
|
|
5926
|
+
connector: string;
|
|
5927
|
+
title: string;
|
|
5928
|
+
};
|
|
5929
|
+
upcoming: {
|
|
5930
|
+
indicator: string;
|
|
5931
|
+
connector: string;
|
|
5932
|
+
title: string;
|
|
5933
|
+
};
|
|
5934
|
+
error: {
|
|
5935
|
+
indicator: string;
|
|
5936
|
+
connector: string;
|
|
5937
|
+
title: string;
|
|
5938
|
+
};
|
|
5939
|
+
};
|
|
5940
|
+
clickable: {
|
|
5941
|
+
true: {
|
|
5942
|
+
trigger: string;
|
|
5943
|
+
};
|
|
5944
|
+
};
|
|
5945
|
+
}, {
|
|
5946
|
+
root: string;
|
|
5947
|
+
step: string;
|
|
5948
|
+
trigger: string[];
|
|
5949
|
+
indicator: string[];
|
|
5950
|
+
connector: string;
|
|
5951
|
+
text: string;
|
|
5952
|
+
title: string;
|
|
5953
|
+
description: string;
|
|
5954
|
+
}, undefined, {
|
|
5955
|
+
orientation: {
|
|
5956
|
+
horizontal: {
|
|
5957
|
+
root: string;
|
|
5958
|
+
step: string;
|
|
5959
|
+
trigger: string;
|
|
5960
|
+
connector: string;
|
|
5961
|
+
text: string;
|
|
5962
|
+
};
|
|
5963
|
+
vertical: {
|
|
5964
|
+
root: string;
|
|
5965
|
+
step: string;
|
|
5966
|
+
trigger: string;
|
|
5967
|
+
connector: string;
|
|
5968
|
+
text: string;
|
|
5969
|
+
};
|
|
5970
|
+
};
|
|
5971
|
+
status: {
|
|
5972
|
+
complete: {
|
|
5973
|
+
indicator: string;
|
|
5974
|
+
connector: string;
|
|
5975
|
+
title: string;
|
|
5976
|
+
};
|
|
5977
|
+
current: {
|
|
5978
|
+
indicator: string;
|
|
5979
|
+
connector: string;
|
|
5980
|
+
title: string;
|
|
5981
|
+
};
|
|
5982
|
+
upcoming: {
|
|
5983
|
+
indicator: string;
|
|
5984
|
+
connector: string;
|
|
5985
|
+
title: string;
|
|
5986
|
+
};
|
|
5987
|
+
error: {
|
|
5988
|
+
indicator: string;
|
|
5989
|
+
connector: string;
|
|
5990
|
+
title: string;
|
|
5991
|
+
};
|
|
5992
|
+
};
|
|
5993
|
+
clickable: {
|
|
5994
|
+
true: {
|
|
5995
|
+
trigger: string;
|
|
5996
|
+
};
|
|
5997
|
+
};
|
|
5998
|
+
}, {
|
|
5999
|
+
root: string;
|
|
6000
|
+
step: string;
|
|
6001
|
+
trigger: string[];
|
|
6002
|
+
indicator: string[];
|
|
6003
|
+
connector: string;
|
|
6004
|
+
text: string;
|
|
6005
|
+
title: string;
|
|
6006
|
+
description: string;
|
|
6007
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
6008
|
+
orientation: {
|
|
6009
|
+
horizontal: {
|
|
6010
|
+
root: string;
|
|
6011
|
+
step: string;
|
|
6012
|
+
trigger: string;
|
|
6013
|
+
connector: string;
|
|
6014
|
+
text: string;
|
|
6015
|
+
};
|
|
6016
|
+
vertical: {
|
|
6017
|
+
root: string;
|
|
6018
|
+
step: string;
|
|
6019
|
+
trigger: string;
|
|
6020
|
+
connector: string;
|
|
6021
|
+
text: string;
|
|
6022
|
+
};
|
|
6023
|
+
};
|
|
6024
|
+
status: {
|
|
6025
|
+
complete: {
|
|
6026
|
+
indicator: string;
|
|
6027
|
+
connector: string;
|
|
6028
|
+
title: string;
|
|
6029
|
+
};
|
|
6030
|
+
current: {
|
|
6031
|
+
indicator: string;
|
|
6032
|
+
connector: string;
|
|
6033
|
+
title: string;
|
|
6034
|
+
};
|
|
6035
|
+
upcoming: {
|
|
6036
|
+
indicator: string;
|
|
6037
|
+
connector: string;
|
|
6038
|
+
title: string;
|
|
6039
|
+
};
|
|
6040
|
+
error: {
|
|
6041
|
+
indicator: string;
|
|
6042
|
+
connector: string;
|
|
6043
|
+
title: string;
|
|
6044
|
+
};
|
|
6045
|
+
};
|
|
6046
|
+
clickable: {
|
|
6047
|
+
true: {
|
|
6048
|
+
trigger: string;
|
|
6049
|
+
};
|
|
6050
|
+
};
|
|
6051
|
+
}, {
|
|
6052
|
+
root: string;
|
|
6053
|
+
step: string;
|
|
6054
|
+
trigger: string[];
|
|
6055
|
+
indicator: string[];
|
|
6056
|
+
connector: string;
|
|
6057
|
+
text: string;
|
|
6058
|
+
title: string;
|
|
6059
|
+
description: string;
|
|
6060
|
+
}>>;
|
|
6061
|
+
type StepperVariants = VariantProps<typeof stepperStyles>;
|
|
6062
|
+
declare module '@glyphui/tokens' {
|
|
6063
|
+
interface GlyphComponentRegistry {
|
|
6064
|
+
Stepper: StylesEntry<typeof stepperStyles>;
|
|
6065
|
+
}
|
|
6066
|
+
}
|
|
6067
|
+
//#endregion
|
|
6068
|
+
//#region src/components/tag-input/tag-input.styles.d.ts
|
|
6069
|
+
export declare const tagInputStyles: import("tailwind-variants").TVReturnType<{
|
|
6070
|
+
size: {
|
|
6071
|
+
sm: {
|
|
6072
|
+
frame: string;
|
|
6073
|
+
};
|
|
6074
|
+
md: {
|
|
6075
|
+
frame: string;
|
|
6076
|
+
};
|
|
6077
|
+
lg: {
|
|
6078
|
+
frame: string;
|
|
6079
|
+
};
|
|
6080
|
+
};
|
|
6081
|
+
}, {
|
|
6082
|
+
root: string;
|
|
6083
|
+
frame: string[];
|
|
6084
|
+
tag: string;
|
|
6085
|
+
tagLabel: string;
|
|
6086
|
+
remove: string;
|
|
6087
|
+
input: string;
|
|
6088
|
+
message: string;
|
|
6089
|
+
}, undefined, {
|
|
6090
|
+
size: {
|
|
6091
|
+
sm: {
|
|
6092
|
+
frame: string;
|
|
6093
|
+
};
|
|
6094
|
+
md: {
|
|
6095
|
+
frame: string;
|
|
6096
|
+
};
|
|
6097
|
+
lg: {
|
|
6098
|
+
frame: string;
|
|
6099
|
+
};
|
|
6100
|
+
};
|
|
6101
|
+
}, {
|
|
6102
|
+
root: string;
|
|
6103
|
+
frame: string[];
|
|
6104
|
+
tag: string;
|
|
6105
|
+
tagLabel: string;
|
|
6106
|
+
remove: string;
|
|
6107
|
+
input: string;
|
|
6108
|
+
message: string;
|
|
6109
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
6110
|
+
size: {
|
|
6111
|
+
sm: {
|
|
6112
|
+
frame: string;
|
|
6113
|
+
};
|
|
6114
|
+
md: {
|
|
6115
|
+
frame: string;
|
|
6116
|
+
};
|
|
6117
|
+
lg: {
|
|
6118
|
+
frame: string;
|
|
6119
|
+
};
|
|
6120
|
+
};
|
|
6121
|
+
}, {
|
|
6122
|
+
root: string;
|
|
6123
|
+
frame: string[];
|
|
6124
|
+
tag: string;
|
|
6125
|
+
tagLabel: string;
|
|
6126
|
+
remove: string;
|
|
6127
|
+
input: string;
|
|
6128
|
+
message: string;
|
|
6129
|
+
}>>;
|
|
6130
|
+
type TagInputVariants = VariantProps<typeof tagInputStyles>;
|
|
6131
|
+
declare module '@glyphui/tokens' {
|
|
6132
|
+
interface GlyphComponentRegistry {
|
|
6133
|
+
TagInput: StylesEntry<typeof tagInputStyles>;
|
|
6134
|
+
}
|
|
6135
|
+
}
|
|
6136
|
+
//#endregion
|
|
6137
|
+
//#region src/components/tag-input/tag-input.d.ts
|
|
6138
|
+
interface TagInputProps extends TagInputVariants {
|
|
6139
|
+
value?: string[];
|
|
6140
|
+
defaultValue?: string[];
|
|
6141
|
+
onValueChange?: (tags: string[]) => void;
|
|
6142
|
+
placeholder?: string;
|
|
6143
|
+
/** Stop accepting tags after this many. */
|
|
6144
|
+
maxTags?: number;
|
|
6145
|
+
/** Return an error message to reject a tag, or `true` to accept it. */
|
|
6146
|
+
validate?: (tag: string, tags: readonly string[]) => string | true;
|
|
6147
|
+
/** Allow the same tag more than once. Default false. */
|
|
6148
|
+
allowDuplicates?: boolean;
|
|
6149
|
+
/** Keys (besides Enter) that turn the typed text into a tag. Default `[',']`. */
|
|
6150
|
+
separators?: readonly string[];
|
|
6151
|
+
disabled?: boolean;
|
|
6152
|
+
/** Submits each tag as its own hidden input with this name. */
|
|
6153
|
+
name?: string;
|
|
6154
|
+
id?: string;
|
|
6155
|
+
className?: string;
|
|
6156
|
+
'aria-label'?: string;
|
|
6157
|
+
'aria-describedby'?: string;
|
|
6158
|
+
'aria-invalid'?: boolean;
|
|
6159
|
+
}
|
|
6160
|
+
/**
|
|
6161
|
+
* Free-form multi-value input. Enter or a comma turns the text into a removable tag;
|
|
6162
|
+
* Backspace on an empty input removes the last one. Pasting a comma-separated list adds them all.
|
|
6163
|
+
*/
|
|
6164
|
+
export declare function TagInput(inProps: TagInputProps): import("react").JSX.Element;
|
|
6165
|
+
//#endregion
|
|
6166
|
+
//#region src/components/text/text.d.ts
|
|
6167
|
+
interface TextProps extends ComponentProps<'p'>, TextVariants {
|
|
6168
|
+
/** Render the child element (e.g. `<span>`, `<label>`) with text styles instead of a `<p>`. */
|
|
6169
|
+
asChild?: boolean;
|
|
6170
|
+
}
|
|
6171
|
+
export declare function Text(inProps: TextProps): import("react").JSX.Element;
|
|
6172
|
+
//#endregion
|
|
6173
|
+
//#region src/components/timeline/timeline.styles.d.ts
|
|
6174
|
+
export declare const timelineStyles: import("tailwind-variants").TVReturnType<{
|
|
6175
|
+
tone: {
|
|
6176
|
+
neutral: {
|
|
6177
|
+
marker: string;
|
|
6178
|
+
};
|
|
6179
|
+
primary: {
|
|
6180
|
+
marker: string;
|
|
6181
|
+
};
|
|
6182
|
+
info: {
|
|
6183
|
+
marker: string;
|
|
6184
|
+
};
|
|
6185
|
+
success: {
|
|
6186
|
+
marker: string;
|
|
6187
|
+
};
|
|
6188
|
+
warning: {
|
|
6189
|
+
marker: string;
|
|
6190
|
+
};
|
|
6191
|
+
danger: {
|
|
6192
|
+
marker: string;
|
|
4363
6193
|
};
|
|
4364
6194
|
};
|
|
4365
|
-
}
|
|
6195
|
+
}, {
|
|
4366
6196
|
root: string;
|
|
6197
|
+
item: string;
|
|
6198
|
+
rail: string;
|
|
6199
|
+
marker: string[];
|
|
6200
|
+
dot: string;
|
|
6201
|
+
connector: string;
|
|
6202
|
+
content: string;
|
|
4367
6203
|
header: string;
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
valueRow: string;
|
|
4371
|
-
value: string;
|
|
4372
|
-
delta: string;
|
|
6204
|
+
title: string;
|
|
6205
|
+
time: string;
|
|
4373
6206
|
description: string;
|
|
4374
|
-
chart: string;
|
|
4375
6207
|
}, undefined, {
|
|
4376
|
-
|
|
4377
|
-
|
|
4378
|
-
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
6208
|
+
tone: {
|
|
6209
|
+
neutral: {
|
|
6210
|
+
marker: string;
|
|
6211
|
+
};
|
|
6212
|
+
primary: {
|
|
6213
|
+
marker: string;
|
|
6214
|
+
};
|
|
6215
|
+
info: {
|
|
6216
|
+
marker: string;
|
|
6217
|
+
};
|
|
6218
|
+
success: {
|
|
6219
|
+
marker: string;
|
|
6220
|
+
};
|
|
6221
|
+
warning: {
|
|
6222
|
+
marker: string;
|
|
6223
|
+
};
|
|
6224
|
+
danger: {
|
|
6225
|
+
marker: string;
|
|
4387
6226
|
};
|
|
4388
6227
|
};
|
|
4389
|
-
}
|
|
6228
|
+
}, {
|
|
4390
6229
|
root: string;
|
|
6230
|
+
item: string;
|
|
6231
|
+
rail: string;
|
|
6232
|
+
marker: string[];
|
|
6233
|
+
dot: string;
|
|
6234
|
+
connector: string;
|
|
6235
|
+
content: string;
|
|
4391
6236
|
header: string;
|
|
4392
|
-
|
|
4393
|
-
|
|
4394
|
-
valueRow: string;
|
|
4395
|
-
value: string;
|
|
4396
|
-
delta: string;
|
|
6237
|
+
title: string;
|
|
6238
|
+
time: string;
|
|
4397
6239
|
description: string;
|
|
4398
|
-
|
|
4399
|
-
|
|
6240
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
6241
|
+
tone: {
|
|
6242
|
+
neutral: {
|
|
6243
|
+
marker: string;
|
|
6244
|
+
};
|
|
6245
|
+
primary: {
|
|
6246
|
+
marker: string;
|
|
6247
|
+
};
|
|
6248
|
+
info: {
|
|
6249
|
+
marker: string;
|
|
6250
|
+
};
|
|
6251
|
+
success: {
|
|
6252
|
+
marker: string;
|
|
6253
|
+
};
|
|
6254
|
+
warning: {
|
|
6255
|
+
marker: string;
|
|
6256
|
+
};
|
|
6257
|
+
danger: {
|
|
6258
|
+
marker: string;
|
|
6259
|
+
};
|
|
6260
|
+
};
|
|
6261
|
+
}, {
|
|
4400
6262
|
root: string;
|
|
6263
|
+
item: string;
|
|
6264
|
+
rail: string;
|
|
6265
|
+
marker: string[];
|
|
6266
|
+
dot: string;
|
|
6267
|
+
connector: string;
|
|
6268
|
+
content: string;
|
|
4401
6269
|
header: string;
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
valueRow: string;
|
|
4405
|
-
value: string;
|
|
4406
|
-
delta: string;
|
|
6270
|
+
title: string;
|
|
6271
|
+
time: string;
|
|
4407
6272
|
description: string;
|
|
4408
|
-
chart: string;
|
|
4409
6273
|
}>>;
|
|
4410
|
-
type
|
|
6274
|
+
type TimelineVariants = VariantProps<typeof timelineStyles>;
|
|
4411
6275
|
declare module '@glyphui/tokens' {
|
|
4412
6276
|
interface GlyphComponentRegistry {
|
|
4413
|
-
|
|
6277
|
+
Timeline: StylesEntry<typeof timelineStyles>;
|
|
4414
6278
|
}
|
|
4415
6279
|
}
|
|
4416
6280
|
//#endregion
|
|
4417
|
-
//#region src/components/
|
|
4418
|
-
interface
|
|
4419
|
-
/**
|
|
4420
|
-
|
|
6281
|
+
//#region src/components/timeline/timeline.d.ts
|
|
6282
|
+
interface TimelineItemData extends TimelineVariants {
|
|
6283
|
+
/** Stable key. Falls back to the index. */
|
|
6284
|
+
id?: string;
|
|
6285
|
+
title: ReactNode;
|
|
6286
|
+
/** Display text for when it happened, e.g. "2h ago" or "Oct 12". */
|
|
6287
|
+
time?: ReactNode;
|
|
6288
|
+
/** Machine-readable date for the `<time>` element, e.g. "2026-10-12T09:41". */
|
|
6289
|
+
dateTime?: string;
|
|
6290
|
+
description?: ReactNode;
|
|
6291
|
+
/** Replaces the dot in the marker. */
|
|
6292
|
+
icon?: ReactNode;
|
|
4421
6293
|
}
|
|
4422
|
-
|
|
6294
|
+
interface TimelineProps extends Omit<ComponentProps<'ol'>, 'children'> {
|
|
6295
|
+
/** Data-driven items. Use `children` with TimelineItem for custom content. */
|
|
6296
|
+
items?: readonly TimelineItemData[];
|
|
6297
|
+
children?: ReactNode;
|
|
6298
|
+
}
|
|
6299
|
+
/** A vertical list of events in order, for activity feeds, changelogs and order tracking. */
|
|
6300
|
+
export declare function Timeline(inProps: TimelineProps): import("react").JSX.Element;
|
|
6301
|
+
interface TimelineItemProps extends Omit<ComponentProps<'li'>, 'title'>, Omit<TimelineItemData, 'id' | 'description'> {
|
|
6302
|
+
/** Description below the title. */
|
|
6303
|
+
children?: ReactNode;
|
|
6304
|
+
}
|
|
6305
|
+
export declare function TimelineItem({ title, time, dateTime, icon, tone, className, children, ...props }: TimelineItemProps): import("react").JSX.Element;
|
|
4423
6306
|
//#endregion
|
|
4424
6307
|
//#region src/components/toast/toast.d.ts
|
|
4425
6308
|
export declare const toastStyles: import("tailwind-variants").TVReturnType<{
|
|
4426
6309
|
[key: string]: {
|
|
4427
6310
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4428
6311
|
icon?: import("tailwind-variants").ClassValue;
|
|
6312
|
+
title?: import("tailwind-variants").ClassValue;
|
|
4429
6313
|
description?: import("tailwind-variants").ClassValue;
|
|
4430
6314
|
error?: import("tailwind-variants").ClassValue;
|
|
4431
|
-
title?: import("tailwind-variants").ClassValue;
|
|
4432
6315
|
success?: import("tailwind-variants").ClassValue;
|
|
4433
6316
|
warning?: import("tailwind-variants").ClassValue;
|
|
4434
6317
|
info?: import("tailwind-variants").ClassValue;
|
|
@@ -4444,9 +6327,9 @@ export declare const toastStyles: import("tailwind-variants").TVReturnType<{
|
|
|
4444
6327
|
[x: string]: {
|
|
4445
6328
|
[x: string]: import("tailwind-variants").ClassValue | {
|
|
4446
6329
|
icon?: import("tailwind-variants").ClassValue;
|
|
6330
|
+
title?: import("tailwind-variants").ClassValue;
|
|
4447
6331
|
description?: import("tailwind-variants").ClassValue;
|
|
4448
6332
|
error?: import("tailwind-variants").ClassValue;
|
|
4449
|
-
title?: import("tailwind-variants").ClassValue;
|
|
4450
6333
|
success?: import("tailwind-variants").ClassValue;
|
|
4451
6334
|
warning?: import("tailwind-variants").ClassValue;
|
|
4452
6335
|
info?: import("tailwind-variants").ClassValue;
|
|
@@ -4476,9 +6359,9 @@ export declare const toastStyles: import("tailwind-variants").TVReturnType<{
|
|
|
4476
6359
|
[key: string]: {
|
|
4477
6360
|
[key: string]: import("tailwind-variants").ClassValue | {
|
|
4478
6361
|
icon?: import("tailwind-variants").ClassValue;
|
|
6362
|
+
title?: import("tailwind-variants").ClassValue;
|
|
4479
6363
|
description?: import("tailwind-variants").ClassValue;
|
|
4480
6364
|
error?: import("tailwind-variants").ClassValue;
|
|
4481
|
-
title?: import("tailwind-variants").ClassValue;
|
|
4482
6365
|
success?: import("tailwind-variants").ClassValue;
|
|
4483
6366
|
warning?: import("tailwind-variants").ClassValue;
|
|
4484
6367
|
info?: import("tailwind-variants").ClassValue;
|
|
@@ -4536,6 +6419,193 @@ type ToasterProps = ComponentProps<typeof Toaster$1>;
|
|
|
4536
6419
|
*/
|
|
4537
6420
|
export declare function Toaster(inProps: ToasterProps): import("react").JSX.Element;
|
|
4538
6421
|
//#endregion
|
|
6422
|
+
//#region src/components/toggle/toggle.styles.d.ts
|
|
6423
|
+
export declare const toggleStyles: import("tailwind-variants").TVReturnType<{
|
|
6424
|
+
variant: {
|
|
6425
|
+
default: {
|
|
6426
|
+
base: string;
|
|
6427
|
+
};
|
|
6428
|
+
outline: {
|
|
6429
|
+
base: string[];
|
|
6430
|
+
};
|
|
6431
|
+
};
|
|
6432
|
+
size: {
|
|
6433
|
+
sm: {
|
|
6434
|
+
base: string;
|
|
6435
|
+
};
|
|
6436
|
+
md: {
|
|
6437
|
+
base: string;
|
|
6438
|
+
};
|
|
6439
|
+
lg: {
|
|
6440
|
+
base: string;
|
|
6441
|
+
};
|
|
6442
|
+
};
|
|
6443
|
+
}, {
|
|
6444
|
+
base: string[];
|
|
6445
|
+
group: string;
|
|
6446
|
+
}, undefined, {
|
|
6447
|
+
variant: {
|
|
6448
|
+
default: {
|
|
6449
|
+
base: string;
|
|
6450
|
+
};
|
|
6451
|
+
outline: {
|
|
6452
|
+
base: string[];
|
|
6453
|
+
};
|
|
6454
|
+
};
|
|
6455
|
+
size: {
|
|
6456
|
+
sm: {
|
|
6457
|
+
base: string;
|
|
6458
|
+
};
|
|
6459
|
+
md: {
|
|
6460
|
+
base: string;
|
|
6461
|
+
};
|
|
6462
|
+
lg: {
|
|
6463
|
+
base: string;
|
|
6464
|
+
};
|
|
6465
|
+
};
|
|
6466
|
+
}, {
|
|
6467
|
+
base: string[];
|
|
6468
|
+
group: string;
|
|
6469
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
6470
|
+
variant: {
|
|
6471
|
+
default: {
|
|
6472
|
+
base: string;
|
|
6473
|
+
};
|
|
6474
|
+
outline: {
|
|
6475
|
+
base: string[];
|
|
6476
|
+
};
|
|
6477
|
+
};
|
|
6478
|
+
size: {
|
|
6479
|
+
sm: {
|
|
6480
|
+
base: string;
|
|
6481
|
+
};
|
|
6482
|
+
md: {
|
|
6483
|
+
base: string;
|
|
6484
|
+
};
|
|
6485
|
+
lg: {
|
|
6486
|
+
base: string;
|
|
6487
|
+
};
|
|
6488
|
+
};
|
|
6489
|
+
}, {
|
|
6490
|
+
base: string[];
|
|
6491
|
+
group: string;
|
|
6492
|
+
}>>;
|
|
6493
|
+
type ToggleVariants = VariantProps<typeof toggleStyles>;
|
|
6494
|
+
declare module '@glyphui/tokens' {
|
|
6495
|
+
interface GlyphComponentRegistry {
|
|
6496
|
+
Toggle: StylesEntry<typeof toggleStyles>;
|
|
6497
|
+
}
|
|
6498
|
+
}
|
|
6499
|
+
//#endregion
|
|
6500
|
+
//#region src/components/toggle/toggle.d.ts
|
|
6501
|
+
interface ToggleProps extends ComponentProps<typeof Toggle$1.Root>, ToggleVariants {}
|
|
6502
|
+
/**
|
|
6503
|
+
* A two-state button, e.g. Bold in a toolbar. Use Switch for settings that take effect
|
|
6504
|
+
* immediately, and Checkbox inside forms.
|
|
6505
|
+
*/
|
|
6506
|
+
export declare function Toggle(inProps: ToggleProps): import("react").JSX.Element;
|
|
6507
|
+
type ToggleGroupProps = ComponentProps<typeof ToggleGroup$1.Root> & ToggleVariants;
|
|
6508
|
+
/**
|
|
6509
|
+
* A set of toggles. `type="single"` behaves like a radio group (text alignment),
|
|
6510
|
+
* `type="multiple"` like checkboxes (bold, italic, underline). Arrow keys move between items.
|
|
6511
|
+
*/
|
|
6512
|
+
export declare function ToggleGroup(inProps: ToggleGroupProps): import("react").JSX.Element;
|
|
6513
|
+
interface ToggleGroupItemProps extends ComponentProps<typeof ToggleGroup$1.Item>, ToggleVariants {}
|
|
6514
|
+
export declare function ToggleGroupItem({ variant, size, className, ...props }: ToggleGroupItemProps): import("react").JSX.Element;
|
|
6515
|
+
//#endregion
|
|
6516
|
+
//#region src/components/tree-view/tree-view.styles.d.ts
|
|
6517
|
+
export declare const treeViewStyles: import("tailwind-variants").TVReturnType<{
|
|
6518
|
+
size: {
|
|
6519
|
+
sm: {
|
|
6520
|
+
row: string;
|
|
6521
|
+
};
|
|
6522
|
+
md: {};
|
|
6523
|
+
};
|
|
6524
|
+
}, {
|
|
6525
|
+
root: string;
|
|
6526
|
+
item: string[];
|
|
6527
|
+
row: string[];
|
|
6528
|
+
chevron: string;
|
|
6529
|
+
spacer: string;
|
|
6530
|
+
icon: string;
|
|
6531
|
+
label: string;
|
|
6532
|
+
group: string;
|
|
6533
|
+
}, undefined, {
|
|
6534
|
+
size: {
|
|
6535
|
+
sm: {
|
|
6536
|
+
row: string;
|
|
6537
|
+
};
|
|
6538
|
+
md: {};
|
|
6539
|
+
};
|
|
6540
|
+
}, {
|
|
6541
|
+
root: string;
|
|
6542
|
+
item: string[];
|
|
6543
|
+
row: string[];
|
|
6544
|
+
chevron: string;
|
|
6545
|
+
spacer: string;
|
|
6546
|
+
icon: string;
|
|
6547
|
+
label: string;
|
|
6548
|
+
group: string;
|
|
6549
|
+
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
6550
|
+
size: {
|
|
6551
|
+
sm: {
|
|
6552
|
+
row: string;
|
|
6553
|
+
};
|
|
6554
|
+
md: {};
|
|
6555
|
+
};
|
|
6556
|
+
}, {
|
|
6557
|
+
root: string;
|
|
6558
|
+
item: string[];
|
|
6559
|
+
row: string[];
|
|
6560
|
+
chevron: string;
|
|
6561
|
+
spacer: string;
|
|
6562
|
+
icon: string;
|
|
6563
|
+
label: string;
|
|
6564
|
+
group: string;
|
|
6565
|
+
}>>;
|
|
6566
|
+
type TreeViewVariants = VariantProps<typeof treeViewStyles>;
|
|
6567
|
+
declare module '@glyphui/tokens' {
|
|
6568
|
+
interface GlyphComponentRegistry {
|
|
6569
|
+
TreeView: StylesEntry<typeof treeViewStyles>;
|
|
6570
|
+
}
|
|
6571
|
+
}
|
|
6572
|
+
//#endregion
|
|
6573
|
+
//#region src/components/tree-view/tree-view.d.ts
|
|
6574
|
+
interface TreeNode {
|
|
6575
|
+
id: string;
|
|
6576
|
+
label: ReactNode;
|
|
6577
|
+
icon?: ReactNode;
|
|
6578
|
+
children?: readonly TreeNode[];
|
|
6579
|
+
disabled?: boolean;
|
|
6580
|
+
/** Text used for type-to-find when `label` is not a string. */
|
|
6581
|
+
textValue?: string;
|
|
6582
|
+
}
|
|
6583
|
+
interface TreeViewProps extends Omit<ComponentProps<'div'>, 'onSelect' | 'children' | 'defaultValue'>, TreeViewVariants {
|
|
6584
|
+
nodes: readonly TreeNode[];
|
|
6585
|
+
/** Ids of expanded nodes (controlled). */
|
|
6586
|
+
expanded?: readonly string[];
|
|
6587
|
+
defaultExpanded?: readonly string[];
|
|
6588
|
+
onExpandedChange?: (expanded: string[]) => void;
|
|
6589
|
+
/** Id of the selected node (controlled). `null` for none. */
|
|
6590
|
+
selected?: string | null;
|
|
6591
|
+
defaultSelected?: string | null;
|
|
6592
|
+
onSelect?: (id: string, node: TreeNode) => void;
|
|
6593
|
+
/** Required: describes the tree, e.g. "Project files". */
|
|
6594
|
+
'aria-label': string;
|
|
6595
|
+
}
|
|
6596
|
+
/**
|
|
6597
|
+
* An accessible tree for file browsers and nested navigation. Arrow keys move and
|
|
6598
|
+
* expand/collapse, Home/End jump, typing a letter finds the next match, Enter or Space selects.
|
|
6599
|
+
*/
|
|
6600
|
+
export declare function TreeView(inProps: TreeViewProps): import("react").JSX.Element;
|
|
6601
|
+
//#endregion
|
|
6602
|
+
//#region src/components/visually-hidden/visually-hidden.d.ts
|
|
6603
|
+
/**
|
|
6604
|
+
* Hides content visually while keeping it available to screen readers, e.g. a label for an
|
|
6605
|
+
* icon-only control or extra context in a table cell.
|
|
6606
|
+
*/
|
|
6607
|
+
export declare function VisuallyHidden(props: ComponentProps<typeof VisuallyHidden$1.Root>): import("react").JSX.Element;
|
|
6608
|
+
//#endregion
|
|
4539
6609
|
//#region src/hooks/use-component-config.d.ts
|
|
4540
6610
|
type SlotsOf<K extends ComponentName> = GlyphComponentRegistry[K] extends {
|
|
4541
6611
|
slots: infer S extends string;
|
|
@@ -4602,7 +6672,10 @@ export declare function useAppShell(): AppShellContextValue;
|
|
|
4602
6672
|
interface NavLink {
|
|
4603
6673
|
label: ReactNode;
|
|
4604
6674
|
href: string;
|
|
6675
|
+
/** Marks the current page. Computed from the provider's `router` when not set. */
|
|
4605
6676
|
active?: boolean;
|
|
6677
|
+
/** With automatic matching, only the exact path is active (not its children). */
|
|
6678
|
+
end?: boolean;
|
|
4606
6679
|
}
|
|
4607
6680
|
interface NavbarProps extends Omit<ComponentProps<'header'>, 'children'> {
|
|
4608
6681
|
brand: ReactNode;
|
|
@@ -4647,12 +6720,15 @@ interface SidebarItemProps {
|
|
|
4647
6720
|
icon?: ReactNode;
|
|
4648
6721
|
/** Count or short status shown at the end. */
|
|
4649
6722
|
badge?: ReactNode;
|
|
6723
|
+
/** Marks the current page. Computed from the provider's `router` when not set. */
|
|
4650
6724
|
active?: boolean;
|
|
6725
|
+
/** With automatic matching, only the exact path is active (not its children). */
|
|
6726
|
+
end?: boolean;
|
|
4651
6727
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
4652
6728
|
className?: string;
|
|
4653
6729
|
children: ReactNode;
|
|
4654
6730
|
}
|
|
4655
|
-
export declare function SidebarItem({ href, icon, badge, active, onClick, className, children }: SidebarItemProps): import("react").JSX.Element;
|
|
6731
|
+
export declare function SidebarItem({ href, icon, badge, active: activeProp, end, onClick, className, children }: SidebarItemProps): import("react").JSX.Element;
|
|
4656
6732
|
export declare function SidebarFooter({ className, ...props }: ComponentProps<'div'>): import("react").JSX.Element;
|
|
4657
6733
|
/** Collapses the sidebar on desktop; opens the navigation drawer on mobile. */
|
|
4658
6734
|
export declare function SidebarTrigger(props: Partial<IconButtonProps>): import("react").JSX.Element | null;
|
|
@@ -4697,7 +6773,6 @@ export declare function Async<T>({ result, children, isEmpty, loading, empty, er
|
|
|
4697
6773
|
export declare function useAsync<T>(fn: () => Promise<T>, deps: DependencyList): AsyncResult<T>;
|
|
4698
6774
|
//#endregion
|
|
4699
6775
|
//#region src/provider/color-mode.d.ts
|
|
4700
|
-
type ColorModePreference = ColorMode$1 | 'system';
|
|
4701
6776
|
interface ColorModeContextValue {
|
|
4702
6777
|
/** What the user chose. */
|
|
4703
6778
|
mode: ColorModePreference;
|
|
@@ -4705,12 +6780,6 @@ interface ColorModeContextValue {
|
|
|
4705
6780
|
resolvedMode: ColorMode$1;
|
|
4706
6781
|
setMode: (mode: ColorModePreference) => void;
|
|
4707
6782
|
}
|
|
4708
|
-
interface ColorModeOptions {
|
|
4709
|
-
/** Used when nothing is stored yet. */
|
|
4710
|
-
defaultMode?: ColorModePreference;
|
|
4711
|
-
/** localStorage key. Set to `null` to disable persistence. */
|
|
4712
|
-
storageKey?: string | null;
|
|
4713
|
-
}
|
|
4714
6783
|
export declare function ColorModeProvider({ children, defaultMode, storageKey }: ColorModeOptions & {
|
|
4715
6784
|
children: ReactNode;
|
|
4716
6785
|
}): import("react").JSX.Element;
|
|
@@ -4720,33 +6789,9 @@ export declare function useColorMode(): ColorModeContextValue;
|
|
|
4720
6789
|
* Inline script that sets `data-mode` on `<html>` before first paint, so a dark-mode
|
|
4721
6790
|
* visitor never sees a light flash. Put it in `<head>`.
|
|
4722
6791
|
*/
|
|
4723
|
-
export declare function getColorModeScript({ defaultMode, storageKey }?: ColorModeOptions): string;
|
|
4724
6792
|
/** `<script>` element version of `getColorModeScript` for SSR frameworks. */
|
|
4725
6793
|
export declare function ColorModeScript(props: ColorModeOptions): import("react").JSX.Element;
|
|
4726
6794
|
//#endregion
|
|
4727
|
-
//#region src/provider/glyph-context.d.ts
|
|
4728
|
-
/** Props Glyph passes to your router's link component. */
|
|
4729
|
-
interface LinkComponentProps {
|
|
4730
|
-
href: string;
|
|
4731
|
-
className?: string;
|
|
4732
|
-
children?: ReactNode;
|
|
4733
|
-
onClick?: MouseEventHandler<HTMLAnchorElement>;
|
|
4734
|
-
'aria-current'?: 'page' | undefined;
|
|
4735
|
-
}
|
|
4736
|
-
/**
|
|
4737
|
-
* Any component that renders a link from these props. Plain `'a'` by default.
|
|
4738
|
-
* React Router: `({ href, ...props }) => <Link to={href} {...props} />`
|
|
4739
|
-
*/
|
|
4740
|
-
type LinkComponent = ElementType<LinkComponentProps>;
|
|
4741
|
-
interface GlyphContextValue {
|
|
4742
|
-
theme: Theme$1;
|
|
4743
|
-
linkComponent: LinkComponent;
|
|
4744
|
-
}
|
|
4745
|
-
/** The active theme and app-level settings. Must be used under `GlyphProvider`. */
|
|
4746
|
-
export declare function useGlyph(): GlyphContextValue;
|
|
4747
|
-
/** The router-aware link component configured on `GlyphProvider`. */
|
|
4748
|
-
export declare function useLinkComponent(): LinkComponent;
|
|
4749
|
-
//#endregion
|
|
4750
6795
|
//#region src/provider/glyph-provider.d.ts
|
|
4751
6796
|
interface GlyphProviderProps {
|
|
4752
6797
|
children: ReactNode;
|
|
@@ -4756,7 +6801,13 @@ interface GlyphProviderProps {
|
|
|
4756
6801
|
defaultMode?: ColorModePreference;
|
|
4757
6802
|
/** localStorage key for the user's color mode. `null` disables persistence. */
|
|
4758
6803
|
storageKey?: string | null;
|
|
4759
|
-
/**
|
|
6804
|
+
/**
|
|
6805
|
+
* Your router: its link component, plus an optional `useIsActive` hook that marks the
|
|
6806
|
+
* current page in Sidebar, Navbar and NavigationMenu. React Router:
|
|
6807
|
+
* `import { reactRouter } from '@glyphui/ui/react-router'`.
|
|
6808
|
+
*/
|
|
6809
|
+
router?: GlyphRouter;
|
|
6810
|
+
/** Your router's link only. Prefer `router`, which also handles active items. */
|
|
4760
6811
|
linkComponent?: LinkComponent;
|
|
4761
6812
|
/**
|
|
4762
6813
|
* Mounts a themed `<Toaster />` so `toast()` works anywhere. `true` for defaults, or pass
|
|
@@ -4765,7 +6816,7 @@ interface GlyphProviderProps {
|
|
|
4765
6816
|
toaster?: boolean | ToasterProps;
|
|
4766
6817
|
}
|
|
4767
6818
|
/** 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;
|
|
6819
|
+
export declare function GlyphProvider({ children, theme, defaultMode, storageKey, router, linkComponent, toaster }: GlyphProviderProps): import("react").JSX.Element;
|
|
4769
6820
|
//#endregion
|
|
4770
6821
|
//#region src/provider/theme-scope.d.ts
|
|
4771
6822
|
interface ThemeScopeProps extends ComponentProps<'div'> {
|
|
@@ -4802,4 +6853,4 @@ type PresetName = keyof typeof presets;
|
|
|
4802
6853
|
/** Joins class names and resolves Tailwind conflicts (last one wins). */
|
|
4803
6854
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
4804
6855
|
//#endregion
|
|
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 };
|
|
6856
|
+
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 CalendarProps, type CardProps, type CardTitleProps, type CardVariants, type CarouselApi, type CarouselOptions, type CarouselPlugin, type CarouselProps, type CarouselVariants, 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 ContextMenuItemProps, type ContextMenuSubTriggerProps, type ContextMenuVariants, type CopyButtonProps, type DatePickerProps, type DatePickerVariants, type DateRange, type DateRangePickerProps, type DateRangePreset, 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 FileItem, type FileRejection, type FileRejectionReason, type FileUploadProps, type GlyphContextValue, type GlyphProviderProps, type GlyphRouter, type GridCols, type GridProps, type HeadingProps, type HeadingVariants, IconButton, type IconButtonProps, type InputOTPProps, type InputOTPSlotProps, type InputOTPVariants, type InputProps, type InputVariants, type IsActiveOptions, type LinkComponent, type LinkComponentProps, type LinkProps, type LinkVariants, type LoadingStateProps, type Matcher, type ModalProps, type NavLink, type NavbarProps, type NavigationMenuCardProps, type NavigationMenuLinkProps, type NavigationMenuProps, type NumberInputProps, type NumberInputVariants, type PageHeaderProps, type PaginationItem, type PaginationProps, type PaginationVariants, type PasswordInputProps, type PasswordStrength, type PopoverContentProps, type PresetName, type ProgressCircleProps, type ProgressCircleVariants, type ProgressProps, type ProgressVariants, type ProseProps, REGEXP_ONLY_CHARS, REGEXP_ONLY_DIGITS, REGEXP_ONLY_DIGITS_AND_CHARS, type RadioGroupItemProps, type RadioGroupProps, type RadioGroupVariants, type RadiusToken, type ResizableHandleProps, type ResizablePanelGroupProps, type ResizablePanelProps, type ResizableVariants, 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 StepStatus, type StepperProps, type StepperStep, type StepperVariants, type SwitchProps, type TabsProps, type TagInputProps, type TagInputVariants, type TextProps, type TextToken, type TextVariants, type Theme, type ThemeInput, type ThemeScopeProps, type TimelineItemData, type TimelineItemProps, type TimelineProps, type TimelineVariants, type ToasterProps, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, type ToggleVariants, type Tone, type TooltipProps, type TreeNode, type TreeViewProps, type TreeViewVariants, type UseIsActive, type VariantProps, buttonStyles, defineTheme, fieldStyles, getColorModeScript, themeToCss, toast, tokenVar, tv, useGlyph, useIsActive, useLinkComponent };
|