@xenide-io/the-old-ui-theme 0.5.2 → 0.5.4

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.
Files changed (59) hide show
  1. package/README.md +47 -34
  2. package/dist/{index-Od4pIP4F.d.mts → Chip-C5hRFAhe.d.mts} +10 -606
  3. package/dist/{index-Od4pIP4F.d.ts → Chip-C5hRFAhe.d.ts} +10 -606
  4. package/dist/{chunk-G53YLHVE.mjs → chunk-E5ZBQYEX.mjs} +59 -9
  5. package/dist/{chunk-RZXHZWUB.mjs → chunk-SBBKXV35.mjs} +174 -222
  6. package/dist/index.d.mts +4 -80
  7. package/dist/index.d.ts +4 -80
  8. package/dist/index.js +562 -3746
  9. package/dist/index.mjs +3 -765
  10. package/dist/suite.d.mts +56 -25
  11. package/dist/suite.d.ts +56 -25
  12. package/dist/suite.js +248 -107
  13. package/dist/suite.mjs +217 -105
  14. package/dist/ui.d.mts +608 -2
  15. package/dist/ui.d.ts +608 -2
  16. package/dist/ui.js +232 -230
  17. package/dist/ui.mjs +2 -2
  18. package/package.json +2 -6
  19. package/scripts/install-theme-dev.sh +60 -0
  20. package/scripts/sync-posthog-icons.mjs +75 -0
  21. package/src/app/globals.css +1 -0
  22. package/src/components/ui/Chip.tsx +36 -18
  23. package/src/components/ui/CommandPalette.test.tsx +41 -0
  24. package/src/components/ui/CommandPalette.tsx +58 -9
  25. package/src/components/ui/DropdownMenu.tsx +50 -11
  26. package/src/components/ui/SegmentedControl.tsx +2 -1
  27. package/src/components/ui/SettingsLayout.tsx +19 -5
  28. package/src/components/ui/ThemeSwitcher.tsx +12 -3
  29. package/src/components/ui/interaction-primitives.test.tsx +52 -0
  30. package/src/styles/suite-skin.css +53 -1
  31. package/src/styles/themes.css +445 -1656
  32. package/src/suite/components/app-switcher.tsx +32 -25
  33. package/src/suite/components/command-palette-host.tsx +20 -8
  34. package/src/suite/components/suite-app-layout.tsx +31 -10
  35. package/src/suite/components/suite-bottom-nav.tsx +23 -18
  36. package/src/suite/components/suite-layout.test.tsx +44 -0
  37. package/src/suite/components/suite-layout.tsx +3 -3
  38. package/src/suite/components/suite-mobile-drawer.tsx +12 -0
  39. package/src/suite/components/suite-mobile-header.tsx +15 -9
  40. package/src/suite/components/suite-notification-bell.tsx +23 -11
  41. package/src/suite/components/suite-settings-mobile-nav.tsx +2 -0
  42. package/src/suite/components/suite-sidebar.tsx +54 -43
  43. package/src/suite/components/suite-user-menu.tsx +54 -26
  44. package/src/suite/components/today-page-frame.tsx +1 -1
  45. package/src/suite/icons/app-accents.ts +38 -43
  46. package/src/suite/icons/glyph-parts.tsx +16 -9
  47. package/src/suite/icons/glyphs.ts +130 -99
  48. package/src/suite/lib/apps.ts +1 -1
  49. package/src/suite/lib/injected.ts +12 -11
  50. package/src/suite/lib/use-sidebar-width.ts +23 -8
  51. package/src/components/charts/index.ts +0 -9
  52. package/src/components/charts/quill/BarChart.tsx +0 -85
  53. package/src/components/charts/quill/FunnelChart.tsx +0 -49
  54. package/src/components/charts/quill/InsightShell.tsx +0 -27
  55. package/src/components/charts/quill/MetricCard.tsx +0 -44
  56. package/src/components/charts/quill/PieChart.tsx +0 -81
  57. package/src/components/charts/quill/Sparkline.tsx +0 -57
  58. package/src/components/charts/quill/TimeSeriesLineChart.tsx +0 -62
  59. package/src/components/charts/quill/index.ts +0 -9
package/dist/ui.d.mts CHANGED
@@ -1,3 +1,609 @@
1
- export { A as Accordion, a as Alert, b as AlertDialog, c as AlertDialogProps, d as AlertProps, e as AlertStatus, f as AppLayout, g as AppLayoutProps, h as AuthCard, i as AuthCardProps, j as AuthDivider, k as AuthDividerProps, l as AuthLayout, m as AuthLayoutProps, n as Autocomplete, o as AutocompleteOption, p as AutocompleteProps, q as Avatar, r as AvatarGroup, s as AvatarGroupProps, t as AvatarProps, u as AvatarSize, v as AvatarStatus, B as Badge, w as BadgeProps, x as BadgeSize, y as BadgeVariant, z as Banner, C as BannerProps, D as BannerType, E as BreadcrumbItem, F as Breadcrumbs, G as BreadcrumbsProps, H as Button, I as ButtonChrome, J as ButtonChromeProps, K as ButtonGroup, L as ButtonGroupProps, M as ButtonProps, N as ButtonShape, O as ButtonSize, P as ButtonVariant, R as Calendar, S as CanonicalIconName, T as Caption, U as Card, V as CardProps, W as CardVariant, X as ChatBubble, Y as ChatBubbleProps, Z as ChatBubbleVariant, _ as Checkbox, $ as CheckboxProps, a0 as Chip, a1 as ChipProps, a2 as CodeBlock, a3 as Collapsible, a4 as CollapsibleProps, a5 as CollapsibleSection, a6 as Combobox, a7 as ComboboxOption, a8 as ComboboxProps, a9 as CommandPalette, aa as ComponentDocs, ab as ComponentDocsProps, ac as ComponentPropRow, ad as ContextMenu, ae as ContextMenuItem, af as ContextMenuProps, ag as DataTable, ah as DataTableColumn, ai as DataTableProps, aj as DatePicker, ak as DatePickerProps, al as Dialog, am as DialogProps, an as Display, ao as Divider, ap as DividerProps, aq as Dot, ar as DotProps, as as Drawer, at as DrawerProps, au as DrawerSide, av as DrawerSize, aw as DropdownAlign, ax as DropdownButton, ay as DropdownButtonProps, az as DropdownItem, aA as DropdownItemProps, aB as DropdownMenu, aC as DropdownMenuProps, aD as DropdownRadioGroup, aE as DropdownRadioGroupProps, aF as DropdownRadioItem, aG as DropdownRadioItemProps, aH as DropdownSide, aI as EmptyState, aJ as FileUpload, aK as FileUploadProps, aL as FilterBar, aM as FilterBarProps, aN as FilterChip, aO as FilterChips, aP as FilterChipsProps, aQ as FilterControls, aR as FilterControlsProps, aS as FilterMenu, aT as FilterMenuOption, aU as FilterMenuProps, aV as FormField, aW as FormFieldControlProps, aX as FormFieldProps, aY as H1, aZ as H2, a_ as H3, a$ as H4, b0 as H5, b1 as HoverCard, b7 as Icon, b3 as IconAliasName, bc as IconByName, bN as IconName, bU as IconProps, cj as Indicator, ck as IndicatorPosition, cl as IndicatorProps, cm as Input, cn as InputGroup, co as InputGroupProps, cp as InputProps, cq as InputSize, cr as InputVariant, cs as Kbd, ct as KbdPlatform, cu as KbdProps, cv as KbdVariant, cw as Label, cx as Lead, cy as Lettermark, cz as LettermarkProps, cA as Link, cB as LinkProps, cC as Loader, cD as LoaderProps, cE as LoaderSize, cF as LoaderVariant, cG as LoadingBar, cH as LoadingBarProps, cI as LoadingState, cJ as LoadingStateProps, cK as Menubar, cL as MenubarItem, cM as MenubarProps, cN as Metric, cO as MetricProps, cP as Modal, cQ as ModalProps, cR as ModalSize, cS as Mono, cT as NumberField, cU as NumberFieldProps, cW as Overline, cX as P, c_ as Pagination, c$ as PaginationProps, d0 as Panel, d1 as PanelProps, d2 as Popover, d3 as PopoverProps, d4 as Progress, d5 as ProgressCircle, d6 as ProgressCircleProps, d7 as ProgressProps, d8 as Radio, d9 as RadioProps, da as Range, db as RangeProps, dc as Rating, dd as RatingProps, de as Resizable, df as ResizableProps, dg as Row, dh as RowProps, di as ScrollArea, dj as ScrollAreaProps, dk as SearchGroup, dl as SearchGroupProps, dm as SearchInput, dn as SearchInputProps, dp as SegmentedControl, dq as Select, dr as SelectProps, ds as SettingsLayout, dt as SettingsLayoutProps, du as SettingsNav, dv as SettingsNavGroup, dw as SettingsNavItem, dx as SettingsNavProps, dy as ShowcaseWrapper, dz as Sidebar, dA as SidebarGroup, dB as SidebarItemDef, dC as SidebarProps, dD as Skeleton, dE as SkeletonProps, dF as SkeletonShape, dG as Small, dH as Snack, dI as SnackProps, dJ as SortMenu, dK as SortMenuProps, dL as Spinner, dM as SpinnerProps, dN as Splotch, dO as SplotchColor, dP as SplotchProps, dQ as Stat, dR as StatProps, dS as StatTone, dT as Stepper, dU as TabItem, dV as Table, dW as TableColumn, dX as TableProps, dY as Tabs, dZ as TabsProps, d_ as TabsVariant, d$ as Tag, e0 as TagProps, e1 as TagType, e2 as Terminal, e3 as TerminalProps, e4 as Textarea, e5 as TextareaProps, e6 as ThemeDomSync, e7 as ThemeManager, e8 as ThemeManagerProps, e9 as ThemeSwitcher, ea as ThemeSwitcherProps, eb as Timeline, ec as TimelineEvent, ed as TimelineProps, ee as Toast, ef as ToastProps, eg as ToastStack, eh as ToastStackProps, ei as ToastStatus, ej as Toggle, ek as ToggleButton, el as ToggleButtonProps, em as ToggleGroup, en as ToggleGroupProps, eo as ToggleProps, ep as Tooltip, eq as TooltipAlign, er as TooltipProps, es as TooltipProvider, et as TooltipProviderProps, eu as TooltipSide, ev as Widget, ew as WidgetProps } from './index-Od4pIP4F.mjs';
2
- import 'react';
1
+ import { a4 as FilterBarProps, a7 as FilterChipsProps, bP as ModalProps, v as ButtonProps } from './Chip-C5hRFAhe.mjs';
2
+ export { A as Accordion, a as Alert, b as AlertProps, c as AlertStatus, d as AuthCard, e as AuthCardProps, f as AuthDivider, g as AuthDividerProps, h as AuthLayout, i as AuthLayoutProps, j as Avatar, k as AvatarGroup, l as AvatarGroupProps, m as AvatarProps, n as AvatarSize, o as AvatarStatus, B as Badge, p as BadgeProps, q as BadgeSize, r as BadgeVariant, s as Button, t as ButtonChrome, u as ButtonChromeProps, w as ButtonShape, x as ButtonSize, y as ButtonVariant, z as Calendar, D as CanonicalIconName, E as Caption, F as Card, G as CardProps, H as CardVariant, I as Checkbox, J as CheckboxProps, K as Chip, L as ChipProps, M as CommandPalette, N as Display, O as Dot, P as DotProps, Q as DropdownAlign, R as DropdownButton, S as DropdownButtonProps, T as DropdownItem, U as DropdownItemProps, V as DropdownMenu, W as DropdownMenuProps, X as DropdownRadioGroup, Y as DropdownRadioGroupProps, Z as DropdownRadioItem, _ as DropdownRadioItemProps, $ as DropdownSide, a0 as EmptyState, a1 as FileUpload, a2 as FileUploadProps, a3 as FilterBar, a5 as FilterChip, a6 as FilterChips, a8 as FilterMenu, a9 as FilterMenuOption, aa as FilterMenuProps, ab as FormField, ac as FormFieldControlProps, ad as FormFieldProps, ae as H1, af as H2, ag as H3, ah as H4, ai as H5, ao as Icon, ak as IconAliasName, at as IconByName, b2 as IconName, b9 as IconProps, bA as Input, bB as InputProps, bC as InputSize, bD as InputVariant, bE as Label, bF as Lead, bG as Link, bH as LinkProps, bI as Loader, bJ as LoaderProps, bK as LoaderSize, bL as LoaderVariant, bM as LoadingState, bN as LoadingStateProps, bO as Modal, bQ as ModalSize, bR as Mono, bT as Overline, bU as P, bX as Panel, bY as PanelProps, bZ as Progress, b_ as ProgressProps, b$ as Radio, c0 as RadioProps, c1 as Range, c2 as RangeProps, c3 as SearchGroup, c4 as SearchGroupProps, c5 as SearchInput, c6 as SearchInputProps, c7 as SegmentedControl, c8 as Select, c9 as SelectProps, ca as SettingsLayout, cb as SettingsLayoutProps, cc as SettingsNav, cd as SettingsNavGroup, ce as SettingsNavItem, cf as SettingsNavProps, cg as Skeleton, ch as SkeletonProps, ci as SkeletonShape, cj as Small, ck as SortMenu, cl as SortMenuProps, cm as Spinner, cn as SpinnerProps, co as Stat, cp as StatProps, cq as StatTone, cr as Table, cs as TableColumn, ct as TableProps, cu as Textarea, cv as TextareaProps, cw as Toggle, cx as ToggleProps, cy as Tooltip, cz as TooltipAlign, cA as TooltipProps, cB as TooltipProvider, cC as TooltipProviderProps, cD as TooltipSide } from './Chip-C5hRFAhe.mjs';
3
+ import * as react from 'react';
4
+ import { ReactNode, HTMLAttributes, ComponentPropsWithoutRef, ReactElement, InputHTMLAttributes, ButtonHTMLAttributes } from 'react';
3
5
  import '@radix-ui/react-dropdown-menu';
6
+
7
+ type DrawerSide = "left" | "right";
8
+ type DrawerSize = "sm" | "md" | "lg";
9
+ interface DrawerProps {
10
+ open?: boolean;
11
+ onClose?: () => void;
12
+ title?: ReactNode;
13
+ children?: ReactNode;
14
+ footer?: ReactNode;
15
+ side?: DrawerSide;
16
+ size?: DrawerSize;
17
+ className?: string;
18
+ showCloseButton?: boolean;
19
+ }
20
+ declare function Drawer({ open, onClose, title, children, footer, side, size, className, showCloseButton, }: DrawerProps): react.JSX.Element | null;
21
+
22
+ type KbdVariant = "shortcut" | "key" | "token";
23
+ type KbdPlatform = "text" | "mac" | "windows";
24
+ interface KbdProps extends HTMLAttributes<HTMLElement> {
25
+ variant?: KbdVariant;
26
+ keys?: readonly ReactNode[];
27
+ platform?: KbdPlatform;
28
+ separator?: ReactNode;
29
+ children?: ReactNode;
30
+ }
31
+ declare function Kbd({ variant, keys, platform, separator, children, className, "aria-label": ariaLabel, ...props }: KbdProps): react.JSX.Element;
32
+
33
+ interface BreadcrumbItem {
34
+ label: string;
35
+ href?: string;
36
+ current?: boolean;
37
+ }
38
+ interface BreadcrumbsProps {
39
+ items: BreadcrumbItem[];
40
+ label?: string;
41
+ className?: string;
42
+ }
43
+ declare function Breadcrumbs({ items, label, className }: BreadcrumbsProps): react.JSX.Element;
44
+ interface PaginationProps {
45
+ page: number;
46
+ totalPages: number;
47
+ onPageChange?: (page: number) => void;
48
+ label?: string;
49
+ compact?: boolean;
50
+ className?: string;
51
+ }
52
+ declare function Pagination({ page, totalPages, onPageChange, label, compact, className, }: PaginationProps): react.JSX.Element;
53
+
54
+ interface RatingProps extends Omit<ComponentPropsWithoutRef<"div">, "onChange"> {
55
+ label?: string;
56
+ value?: number;
57
+ max?: number;
58
+ readOnly?: boolean;
59
+ onChange?: (value: number) => void;
60
+ wrapperClassName?: string;
61
+ }
62
+ declare function Rating({ label, value, max, readOnly, onChange, className, wrapperClassName, ...props }: RatingProps): react.JSX.Element;
63
+
64
+ type ToastStatus = "info" | "success" | "warning" | "danger";
65
+ interface ToastProps {
66
+ status?: ToastStatus;
67
+ title: string;
68
+ description?: string;
69
+ onDismiss?: () => void;
70
+ className?: string;
71
+ }
72
+ declare function Toast({ status, title, description, onDismiss, className, }: ToastProps): react.JSX.Element;
73
+ interface ToastStackProps {
74
+ children?: ReactNode;
75
+ className?: string;
76
+ }
77
+ declare function ToastStack({ children, className }: ToastStackProps): react.JSX.Element;
78
+
79
+ interface TabItem {
80
+ value: string;
81
+ label: string;
82
+ }
83
+ type TabsVariant = "pill" | "underline";
84
+ interface TabsProps {
85
+ items: TabItem[];
86
+ value: string;
87
+ onChange: (value: string) => void;
88
+ variant?: TabsVariant;
89
+ className?: string;
90
+ }
91
+ declare function Tabs({ items, value, onChange, variant, className }: TabsProps): react.JSX.Element;
92
+
93
+ /**
94
+ * Re-applies `html[data-theme]` after React commits. Hydration can clear attributes
95
+ * that were set only by `THEME_INIT_SCRIPT` — without this sync, `:root`-scoped
96
+ * light tokens effectively win visually.
97
+ */
98
+ declare function ThemeDomSync(): null;
99
+
100
+ interface ThemeManagerProps {
101
+ children?: ReactNode;
102
+ }
103
+ /** Client wrapper that keeps html[data-theme] synced with localStorage. */
104
+ declare function ThemeManager({ children }: ThemeManagerProps): react.JSX.Element;
105
+
106
+ interface ThemeSwitcherProps {
107
+ className?: string;
108
+ }
109
+ /** Colour-only theme picker — persists to localStorage and sets html[data-theme]. */
110
+ declare function ThemeSwitcher({ className }: ThemeSwitcherProps): react.JSX.Element;
111
+
112
+ interface Step {
113
+ id: string;
114
+ label: string;
115
+ description?: string;
116
+ status?: "pending" | "current" | "completed" | "error";
117
+ }
118
+ interface StepperProps {
119
+ steps: Step[];
120
+ currentStep: number;
121
+ className?: string;
122
+ }
123
+ declare function Stepper({ steps, currentStep, className }: StepperProps): react.JSX.Element;
124
+
125
+ interface HoverCardProps {
126
+ trigger: React.ReactNode;
127
+ children: React.ReactNode;
128
+ className?: string;
129
+ }
130
+ declare function HoverCard({ trigger, children, className }: HoverCardProps): react.JSX.Element;
131
+
132
+ interface FilterControlsProps extends ComponentPropsWithoutRef<"div"> {
133
+ children: ReactNode;
134
+ barProps?: Omit<FilterBarProps, "children">;
135
+ chipsProps?: FilterChipsProps;
136
+ emptyState?: ReactNode;
137
+ }
138
+ /** Combines filter controls and their applied chips without owning filter state. */
139
+ declare function FilterControls({ children, barProps, chipsProps, emptyState, className, ...props }: FilterControlsProps): react.JSX.Element;
140
+
141
+ interface CodeBlockProps {
142
+ code: string;
143
+ language?: string;
144
+ filename?: string;
145
+ className?: string;
146
+ }
147
+ declare function CodeBlock({ code, language, filename, className }: CodeBlockProps): react.JSX.Element;
148
+
149
+ interface ComponentPropRow {
150
+ name: string;
151
+ type: string;
152
+ defaultValue?: string;
153
+ description?: ReactNode;
154
+ }
155
+ interface ComponentDocsProps {
156
+ title?: string;
157
+ rows: ComponentPropRow[];
158
+ defaultOpen?: boolean;
159
+ className?: string;
160
+ }
161
+ declare function ComponentDocs({ title, rows, defaultOpen, className }: ComponentDocsProps): react.JSX.Element;
162
+
163
+ interface ShowcaseWrapperProps {
164
+ id?: string;
165
+ title: string;
166
+ description?: string;
167
+ docs?: ReactNode;
168
+ code: string;
169
+ filename?: string;
170
+ children: ReactNode;
171
+ className?: string;
172
+ }
173
+ declare function ShowcaseWrapper({ id, title, description, docs, code, filename, children, className, }: ShowcaseWrapperProps): react.JSX.Element;
174
+
175
+ interface CollapsibleSectionProps {
176
+ title: string;
177
+ children: React.ReactNode;
178
+ defaultOpen?: boolean;
179
+ id?: string;
180
+ }
181
+ declare function CollapsibleSection({ title, children, defaultOpen, id }: CollapsibleSectionProps): react.JSX.Element;
182
+
183
+ type ChatBubbleVariant = "from" | "self";
184
+ interface ChatBubbleProps extends ComponentPropsWithoutRef<"div"> {
185
+ /** Message content */
186
+ children?: ReactNode;
187
+ /** Avatar or icon */
188
+ avatar?: ReactNode;
189
+ /** Sender name */
190
+ name?: string;
191
+ /** Timestamp */
192
+ time?: string;
193
+ /** "from" = left/grey, "self" = right/brand */
194
+ variant?: ChatBubbleVariant;
195
+ /** Footer text (e.g. "Synced with...") */
196
+ footer?: ReactNode;
197
+ }
198
+ declare function ChatBubble({ children, avatar, name, time, variant, footer, className, ...props }: ChatBubbleProps): react.JSX.Element;
199
+
200
+ interface TerminalProps extends ComponentPropsWithoutRef<"div"> {
201
+ /** Window title */
202
+ title?: string;
203
+ /** Terminal lines — array of { text, color? } or plain strings */
204
+ lines?: Array<{
205
+ text: string;
206
+ color?: string;
207
+ } | string>;
208
+ /** Custom content instead of lines */
209
+ children?: ReactNode;
210
+ }
211
+ declare function Terminal({ title, lines, children, className, ...props }: TerminalProps): react.JSX.Element;
212
+
213
+ type IndicatorPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left";
214
+ interface IndicatorProps extends ComponentPropsWithoutRef<"div"> {
215
+ /** The element to attach the indicator to */
216
+ children: ReactNode;
217
+ /** Badge content (number, text, or "!") */
218
+ badge?: ReactNode;
219
+ /** Indicator colour */
220
+ color?: string;
221
+ /** Position of the indicator dot */
222
+ position?: IndicatorPosition;
223
+ /** Show a simple dot instead of a badge */
224
+ dot?: boolean;
225
+ /** Offset from corner (default: 2px) */
226
+ offset?: number;
227
+ }
228
+ declare function Indicator({ children, badge, color, position, dot, className, ...props }: IndicatorProps): react.JSX.Element;
229
+
230
+ interface TimelineEvent {
231
+ id: string;
232
+ title: string;
233
+ description?: string;
234
+ time?: string;
235
+ icon?: ReactNode;
236
+ color?: string;
237
+ }
238
+ interface TimelineProps extends ComponentPropsWithoutRef<"ol"> {
239
+ events: TimelineEvent[];
240
+ /** Alternate left/right layout on large screens */
241
+ alternate?: boolean;
242
+ }
243
+ declare function Timeline({ events, alternate, className, ...props }: TimelineProps): react.JSX.Element;
244
+
245
+ type BannerType = "info" | "success" | "warning" | "danger" | "ai";
246
+ interface BannerProps extends HTMLAttributes<HTMLDivElement> {
247
+ type?: BannerType;
248
+ onClose?: () => void;
249
+ action?: ReactNode;
250
+ hideIcon?: boolean;
251
+ square?: boolean;
252
+ icon?: ReactNode;
253
+ children: ReactNode;
254
+ }
255
+ declare const Banner: react.ForwardRefExoticComponent<BannerProps & react.RefAttributes<HTMLDivElement>>;
256
+
257
+ interface DialogProps extends Omit<ModalProps, "onClose"> {
258
+ isOpen?: boolean;
259
+ onClose?: () => void;
260
+ onConfirm?: () => void | Promise<void>;
261
+ confirmText?: string;
262
+ cancelText?: string;
263
+ confirmProps?: Partial<ButtonProps>;
264
+ cancelProps?: Partial<ButtonProps>;
265
+ children?: ReactNode;
266
+ }
267
+ declare function Dialog({ isOpen: openProp, onClose, onConfirm, confirmText, cancelText, confirmProps, cancelProps, children, title, ...modalProps }: DialogProps): react.JSX.Element;
268
+ declare namespace Dialog {
269
+ var displayName: string;
270
+ }
271
+
272
+ interface DividerProps extends HTMLAttributes<HTMLDivElement> {
273
+ vertical?: boolean;
274
+ dashed?: boolean;
275
+ thick?: boolean;
276
+ label?: string;
277
+ }
278
+ declare function Divider({ vertical, dashed, thick, label, className, ...props }: DividerProps): react.JSX.Element;
279
+ declare namespace Divider {
280
+ var displayName: string;
281
+ }
282
+
283
+ type TagType = "default" | "primary" | "success" | "warning" | "danger" | "info" | "muted" | "highlight";
284
+ interface TagProps extends HTMLAttributes<HTMLDivElement> {
285
+ type?: TagType;
286
+ size?: "sm" | "md";
287
+ icon?: ReactNode;
288
+ closable?: boolean;
289
+ onClose?: () => void;
290
+ children: ReactNode;
291
+ }
292
+ declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLDivElement>>;
293
+
294
+ interface ProgressCircleProps extends HTMLAttributes<HTMLSpanElement> {
295
+ progress: number;
296
+ size?: number;
297
+ strokeWidth?: number;
298
+ children?: ReactNode;
299
+ }
300
+ declare function ProgressCircle({ progress, size, strokeWidth: sw, children, className, ...props }: ProgressCircleProps): react.JSX.Element;
301
+ declare namespace ProgressCircle {
302
+ var displayName: string;
303
+ }
304
+
305
+ interface RowProps extends HTMLAttributes<HTMLDivElement> {
306
+ icon?: ReactElement | null;
307
+ sideIcon?: ReactElement | null;
308
+ status?: "default" | "success" | "warning" | "danger" | "muted";
309
+ fullWidth?: boolean;
310
+ center?: boolean;
311
+ size?: "sm" | "md" | "lg";
312
+ children?: ReactNode;
313
+ }
314
+ declare const Row: react.ForwardRefExoticComponent<RowProps & react.RefAttributes<HTMLDivElement>>;
315
+
316
+ interface WidgetProps {
317
+ title: ReactNode;
318
+ onClose?: () => void;
319
+ actions?: ReactNode;
320
+ children?: ReactNode;
321
+ className?: string;
322
+ }
323
+ declare function Widget({ title, onClose, actions, children, className }: WidgetProps): react.JSX.Element;
324
+ declare namespace Widget {
325
+ var displayName: string;
326
+ }
327
+
328
+ interface LettermarkProps extends HTMLAttributes<HTMLDivElement> {
329
+ name?: string | number | null;
330
+ index?: number;
331
+ rounded?: boolean;
332
+ outlined?: boolean;
333
+ size?: "xs" | "sm" | "md" | "lg";
334
+ }
335
+ declare const Lettermark: react.ForwardRefExoticComponent<LettermarkProps & react.RefAttributes<HTMLDivElement>>;
336
+
337
+ type SplotchColor = "purple" | "blue" | "green" | "black" | "white" | "orange" | "red" | "yellow";
338
+ interface SplotchProps extends HTMLAttributes<HTMLDivElement> {
339
+ color: SplotchColor;
340
+ }
341
+ declare function Splotch({ color, className, ...props }: SplotchProps): react.JSX.Element;
342
+ declare namespace Splotch {
343
+ var displayName: string;
344
+ }
345
+
346
+ interface PopoverProps extends HTMLAttributes<HTMLDivElement> {
347
+ trigger: ReactNode;
348
+ children: ReactNode;
349
+ open?: boolean;
350
+ onOpenChange?: (open: boolean) => void;
351
+ placement?: "top" | "bottom" | "left" | "right";
352
+ matchTriggerWidth?: boolean;
353
+ padded?: boolean;
354
+ }
355
+ declare function Popover({ trigger, children, open: controlledOpen, onOpenChange, placement, matchTriggerWidth, padded, className, ...props }: PopoverProps): react.JSX.Element;
356
+ declare namespace Popover {
357
+ var displayName: string;
358
+ }
359
+
360
+ interface LoadingBarProps extends HTMLAttributes<HTMLDivElement> {
361
+ active?: boolean;
362
+ }
363
+ declare function LoadingBar({ active, className, ...props }: LoadingBarProps): react.JSX.Element;
364
+ declare namespace LoadingBar {
365
+ var displayName: string;
366
+ }
367
+
368
+ interface SnackProps extends HTMLAttributes<HTMLSpanElement> {
369
+ type?: "regular" | "pill";
370
+ onClose?: () => void;
371
+ wrap?: boolean;
372
+ children: ReactNode;
373
+ }
374
+ declare const Snack: react.ForwardRefExoticComponent<SnackProps & react.RefAttributes<HTMLSpanElement>>;
375
+
376
+ interface ComboboxOption {
377
+ value: string;
378
+ label: string;
379
+ }
380
+ interface ComboboxProps {
381
+ options: ComboboxOption[];
382
+ value?: string[];
383
+ onChange?: (value: string[]) => void;
384
+ placeholder?: string;
385
+ className?: string;
386
+ disabled?: boolean;
387
+ }
388
+ declare function Combobox({ options, value, onChange, placeholder, className, disabled, }: ComboboxProps): react.JSX.Element;
389
+ declare namespace Combobox {
390
+ var displayName: string;
391
+ }
392
+
393
+ interface AutocompleteOption {
394
+ value: string;
395
+ label: string;
396
+ }
397
+ interface AutocompleteProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "onSelect"> {
398
+ options: AutocompleteOption[];
399
+ onSelect?: (option: AutocompleteOption) => void;
400
+ }
401
+ declare function Autocomplete({ options, onSelect, className, value: controlledValue, onChange, placeholder, ...inputProps }: AutocompleteProps): react.JSX.Element;
402
+ declare namespace Autocomplete {
403
+ var displayName: string;
404
+ }
405
+
406
+ interface ContextMenuItem {
407
+ label?: string;
408
+ onClick?: () => void;
409
+ disabled?: boolean;
410
+ separator?: boolean;
411
+ icon?: ReactNode;
412
+ }
413
+ interface ContextMenuProps extends HTMLAttributes<HTMLDivElement> {
414
+ items: ContextMenuItem[];
415
+ children: ReactNode;
416
+ }
417
+ declare function ContextMenu({ items, children, className, ...props }: ContextMenuProps): react.JSX.Element;
418
+ declare namespace ContextMenu {
419
+ var displayName: string;
420
+ }
421
+
422
+ interface ResizableProps extends HTMLAttributes<HTMLDivElement> {
423
+ left: ReactNode;
424
+ right: ReactNode;
425
+ defaultLeftWidth?: number;
426
+ minLeftWidth?: number;
427
+ minRightWidth?: number;
428
+ }
429
+ declare function Resizable({ left, right, defaultLeftWidth, minLeftWidth, minRightWidth, className, ...props }: ResizableProps): react.JSX.Element;
430
+ declare namespace Resizable {
431
+ var displayName: string;
432
+ }
433
+
434
+ interface ScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
435
+ children: ReactNode;
436
+ orientation?: "vertical" | "horizontal" | "both";
437
+ }
438
+ declare function ScrollArea({ children, orientation, className, ...props }: ScrollAreaProps): react.JSX.Element;
439
+ declare namespace ScrollArea {
440
+ var displayName: string;
441
+ }
442
+
443
+ interface NumberFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "onChange"> {
444
+ value?: number;
445
+ onChange?: (value: number) => void;
446
+ min?: number;
447
+ max?: number;
448
+ step?: number;
449
+ label?: string;
450
+ }
451
+ declare function NumberField({ value: controlledValue, onChange, min, max, step, label, className, disabled, defaultValue, ...inputProps }: NumberFieldProps): react.JSX.Element;
452
+ declare namespace NumberField {
453
+ var displayName: string;
454
+ }
455
+
456
+ interface InputGroupProps extends HTMLAttributes<HTMLDivElement> {
457
+ children: ReactNode;
458
+ }
459
+ declare function InputGroup({ children, className, ...props }: InputGroupProps): react.JSX.Element;
460
+ declare namespace InputGroup {
461
+ var displayName: string;
462
+ }
463
+
464
+ interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
465
+ children: ReactNode;
466
+ }
467
+ declare function ButtonGroup({ children, className, ...props }: ButtonGroupProps): react.JSX.Element;
468
+ declare namespace ButtonGroup {
469
+ var displayName: string;
470
+ }
471
+
472
+ interface ToggleButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
473
+ pressed?: boolean;
474
+ onPressedChange?: (pressed: boolean) => void;
475
+ icon?: ReactNode;
476
+ children?: ReactNode;
477
+ }
478
+ declare const ToggleButton: react.ForwardRefExoticComponent<ToggleButtonProps & react.RefAttributes<HTMLButtonElement>>;
479
+ interface ToggleGroupProps {
480
+ type?: "single" | "multiple";
481
+ value?: string | string[];
482
+ onValueChange?: (value: string | string[]) => void;
483
+ children: ReactNode;
484
+ className?: string;
485
+ }
486
+ declare function ToggleGroup({ type, value, onValueChange, children, className, }: ToggleGroupProps): react.JSX.Element;
487
+ declare namespace ToggleGroup {
488
+ var displayName: string;
489
+ }
490
+
491
+ interface MenubarItem {
492
+ label: string;
493
+ items?: {
494
+ label?: string;
495
+ onClick?: () => void;
496
+ disabled?: boolean;
497
+ separator?: boolean;
498
+ }[];
499
+ }
500
+ interface MenubarProps extends HTMLAttributes<HTMLDivElement> {
501
+ items: MenubarItem[];
502
+ }
503
+ declare function Menubar({ items, className, ...props }: MenubarProps): react.JSX.Element;
504
+ declare namespace Menubar {
505
+ var displayName: string;
506
+ }
507
+
508
+ interface AlertDialogProps extends Omit<ModalProps, "onClose"> {
509
+ isOpen?: boolean;
510
+ onClose?: () => void;
511
+ onConfirm?: () => void | Promise<void>;
512
+ confirmText?: string;
513
+ cancelText?: string;
514
+ confirmProps?: Partial<ButtonProps>;
515
+ cancelProps?: Partial<ButtonProps>;
516
+ children?: ReactNode;
517
+ }
518
+ declare function AlertDialog({ isOpen: openProp, onClose, onConfirm, confirmText, cancelText, confirmProps, cancelProps, children, title, ...modalProps }: AlertDialogProps): react.JSX.Element;
519
+ declare namespace AlertDialog {
520
+ var displayName: string;
521
+ }
522
+
523
+ interface CollapsibleProps extends HTMLAttributes<HTMLDivElement> {
524
+ trigger: ReactNode;
525
+ open?: boolean;
526
+ onOpenChange?: (open: boolean) => void;
527
+ children: ReactNode;
528
+ }
529
+ declare function Collapsible({ trigger, open: controlledOpen, onOpenChange, children, className, ...props }: CollapsibleProps): react.JSX.Element;
530
+ declare namespace Collapsible {
531
+ var displayName: string;
532
+ }
533
+
534
+ interface MetricProps extends HTMLAttributes<HTMLDivElement> {
535
+ value: string | number;
536
+ label: string;
537
+ badge?: ReactNode;
538
+ trend?: ReactNode;
539
+ icon?: ReactNode;
540
+ }
541
+ declare function Metric({ value, label, badge, trend, icon, className, ...props }: MetricProps): react.JSX.Element;
542
+ declare namespace Metric {
543
+ var displayName: string;
544
+ }
545
+
546
+ interface DataTableColumn<T> {
547
+ key: string;
548
+ label: string;
549
+ render?: (item: T) => ReactNode;
550
+ sortable?: boolean;
551
+ className?: string;
552
+ }
553
+ interface DataTableProps<T> {
554
+ columns: DataTableColumn<T>[];
555
+ data: T[];
556
+ pageSize?: number;
557
+ searchable?: boolean;
558
+ searchPlaceholder?: string;
559
+ className?: string;
560
+ }
561
+ declare function DataTable<T extends Record<string, any>>({ columns, data, pageSize, searchable, searchPlaceholder, className, }: DataTableProps<T>): react.JSX.Element;
562
+ declare namespace DataTable {
563
+ var displayName: string;
564
+ }
565
+
566
+ interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "value" | "onChange" | "type"> {
567
+ value?: Date;
568
+ onChange?: (date: Date) => void;
569
+ }
570
+ declare function DatePicker({ value, onChange, className, ...props }: DatePickerProps): react.JSX.Element;
571
+ declare namespace DatePicker {
572
+ var displayName: string;
573
+ }
574
+
575
+ interface AppLayoutProps {
576
+ sidebar: ReactNode;
577
+ children: ReactNode;
578
+ sidebarWidth?: number;
579
+ className?: string;
580
+ }
581
+ declare function AppLayout({ sidebar, children, sidebarWidth, className }: AppLayoutProps): react.JSX.Element;
582
+
583
+ interface SidebarGroup {
584
+ label?: string;
585
+ items: SidebarItemDef[];
586
+ }
587
+ interface SidebarItemDef {
588
+ label: string;
589
+ icon?: ReactNode;
590
+ href?: string;
591
+ badge?: ReactNode;
592
+ active?: boolean;
593
+ onClick?: () => void;
594
+ }
595
+ interface SidebarProps {
596
+ groups: SidebarGroup[];
597
+ className?: string;
598
+ header?: ReactNode;
599
+ footer?: ReactNode;
600
+ children?: ReactNode;
601
+ collapsed?: boolean;
602
+ onCollapse?: (collapsed: boolean) => void;
603
+ }
604
+ declare function Sidebar({ groups, className, header, footer, children, collapsed, onCollapse }: SidebarProps): react.JSX.Element;
605
+ declare namespace Sidebar {
606
+ var displayName: string;
607
+ }
608
+
609
+ export { AlertDialog, type AlertDialogProps, AppLayout, type AppLayoutProps, Autocomplete, type AutocompleteOption, type AutocompleteProps, Banner, type BannerProps, type BannerType, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, ButtonGroup, type ButtonGroupProps, ButtonProps, ChatBubble, type ChatBubbleProps, type ChatBubbleVariant, CodeBlock, Collapsible, type CollapsibleProps, CollapsibleSection, Combobox, type ComboboxOption, type ComboboxProps, ComponentDocs, type ComponentDocsProps, type ComponentPropRow, ContextMenu, type ContextMenuItem, type ContextMenuProps, DataTable, type DataTableColumn, type DataTableProps, DatePicker, type DatePickerProps, Dialog, type DialogProps, Divider, type DividerProps, Drawer, type DrawerProps, type DrawerSide, type DrawerSize, FilterBarProps, FilterChipsProps, FilterControls, type FilterControlsProps, HoverCard, Indicator, type IndicatorPosition, type IndicatorProps, InputGroup, type InputGroupProps, Kbd, type KbdPlatform, type KbdProps, type KbdVariant, Lettermark, type LettermarkProps, LoadingBar, type LoadingBarProps, Menubar, type MenubarItem, type MenubarProps, Metric, type MetricProps, ModalProps, NumberField, type NumberFieldProps, Pagination, type PaginationProps, Popover, type PopoverProps, ProgressCircle, type ProgressCircleProps, Rating, type RatingProps, Resizable, type ResizableProps, Row, type RowProps, ScrollArea, type ScrollAreaProps, ShowcaseWrapper, Sidebar, type SidebarGroup, type SidebarItemDef, type SidebarProps, Snack, type SnackProps, Splotch, type SplotchColor, type SplotchProps, Stepper, type TabItem, Tabs, type TabsProps, type TabsVariant, Tag, type TagProps, type TagType, Terminal, type TerminalProps, ThemeDomSync, ThemeManager, type ThemeManagerProps, ThemeSwitcher, type ThemeSwitcherProps, Timeline, type TimelineEvent, type TimelineProps, Toast, type ToastProps, ToastStack, type ToastStackProps, type ToastStatus, ToggleButton, type ToggleButtonProps, ToggleGroup, type ToggleGroupProps, Widget, type WidgetProps };