@xenide-io/the-old-ui-theme 0.3.2 → 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/dist/{chunk-5HSOBJ4F.mjs → chunk-KORWJCIO.mjs} +600 -932
- package/dist/{index-BgG8Homu.d.mts → index-B5NOyoKS.d.mts} +100 -100
- package/dist/{index-BgG8Homu.d.ts → index-B5NOyoKS.d.ts} +100 -100
- package/dist/index.d.mts +9 -145
- package/dist/index.d.ts +9 -145
- package/dist/index.js +653 -1111
- package/dist/index.mjs +9 -267
- package/dist/suite.d.mts +760 -0
- package/dist/suite.d.ts +760 -0
- package/dist/suite.js +2564 -0
- package/dist/suite.mjs +2465 -0
- package/dist/ui.d.mts +1 -2
- package/dist/ui.d.ts +1 -2
- package/dist/ui.js +14 -10
- package/dist/ui.mjs +1 -1
- package/package.json +43 -24
- package/src/components/icons/icons.tsx +0 -2
- package/src/components/icons/index.ts +0 -3
- package/src/components/sections/IconShowcase.tsx +1 -110
- package/src/components/sections/NewComponentsShowcase.tsx +4 -4
- package/src/components/sections/SidebarShowcase.tsx +3 -3
- package/src/components/sections/SuiteShowcase.tsx +669 -0
- package/src/components/ui/ComponentDocs.tsx +2 -2
- package/src/components/ui/ContextMenu.tsx +1 -1
- package/src/components/ui/Menubar.tsx +1 -1
- package/src/components/ui/Sidebar.tsx +10 -8
- package/src/styles/suite-skin.css +255 -0
- package/src/suite/components/ai-panel.tsx +202 -0
- package/src/suite/components/app-switcher.tsx +196 -0
- package/src/suite/components/command-palette-host.tsx +62 -0
- package/src/suite/components/deferred-chrome.tsx +12 -0
- package/src/suite/components/suite-app-layout.tsx +69 -0
- package/src/suite/components/suite-bottom-nav.tsx +113 -0
- package/src/suite/components/suite-layout.tsx +287 -0
- package/src/suite/components/suite-mobile-drawer.tsx +150 -0
- package/src/suite/components/suite-mobile-header.tsx +71 -0
- package/src/suite/components/suite-notification-bell.tsx +227 -0
- package/src/suite/components/suite-settings-mobile-nav.tsx +83 -0
- package/src/suite/components/suite-sidebar.tsx +191 -0
- package/src/suite/components/suite-skeleton.tsx +191 -0
- package/src/suite/components/suite-user-menu.tsx +128 -0
- package/src/suite/components/theme-provider.tsx +174 -0
- package/src/suite/components/today-calibrating.tsx +95 -0
- package/src/suite/components/today-page-frame.tsx +28 -0
- package/src/suite/components/today-ui.tsx +370 -0
- package/src/suite/icons/app-accents.ts +75 -0
- package/src/suite/icons/glyph-parts.tsx +67 -0
- package/src/suite/icons/glyphs.ts +203 -0
- package/src/suite/icons/index.ts +12 -0
- package/src/suite/icons/suite-app-icon.tsx +68 -0
- package/src/suite/icons/suite-icon.tsx +93 -0
- package/src/suite/index.ts +108 -0
- package/src/suite/lib/apps.ts +75 -0
- package/src/suite/lib/cn.ts +6 -0
- package/src/suite/lib/injected.ts +54 -0
- package/src/suite/lib/motion.tsx +48 -0
- package/src/suite/lib/use-idle-mount.ts +25 -0
- package/src/components/icons/lemon-brand-icons.tsx +0 -16
- package/src/components/icons/lemon-category-icons.tsx +0 -72
- package/src/components/icons/lemon-icons.tsx +0 -57
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ButtonHTMLAttributes, ReactNode, HTMLAttributes, AriaAttributes, ComponentPropsWithoutRef, CSSProperties, SVGAttributes, ReactElement, AnchorHTMLAttributes, InputHTMLAttributes } from 'react';
|
|
3
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
3
|
import * as DropdownPrimitive from '@radix-ui/react-dropdown-menu';
|
|
5
4
|
|
|
6
5
|
type ButtonVariant = "primary" | "secondary" | "tertiary" | "signal" | "accent" | "neutral" | "info" | "success" | "warning" | "danger" | "ghost" | "link";
|
|
@@ -29,7 +28,7 @@ interface ButtonChromeProps {
|
|
|
29
28
|
split?: boolean;
|
|
30
29
|
}
|
|
31
30
|
/** Content layer for tactile variants; CSS moves it with the independently rendered face. */
|
|
32
|
-
declare function ButtonChrome({ label, icon, sideIcon, split }: ButtonChromeProps):
|
|
31
|
+
declare function ButtonChrome({ label, icon, sideIcon, split }: ButtonChromeProps): react.JSX.Element;
|
|
33
32
|
|
|
34
33
|
type AlertStatus = "info" | "success" | "warning" | "danger";
|
|
35
34
|
interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title"> {
|
|
@@ -84,7 +83,7 @@ interface DrawerProps {
|
|
|
84
83
|
className?: string;
|
|
85
84
|
showCloseButton?: boolean;
|
|
86
85
|
}
|
|
87
|
-
declare function Drawer({ open, onClose, title, children, footer, side, size, className, showCloseButton, }: DrawerProps):
|
|
86
|
+
declare function Drawer({ open, onClose, title, children, footer, side, size, className, showCloseButton, }: DrawerProps): react.JSX.Element | null;
|
|
88
87
|
|
|
89
88
|
type KbdVariant = "shortcut" | "key" | "token";
|
|
90
89
|
type KbdPlatform = "text" | "mac" | "windows";
|
|
@@ -95,7 +94,7 @@ interface KbdProps extends HTMLAttributes<HTMLElement> {
|
|
|
95
94
|
separator?: ReactNode;
|
|
96
95
|
children?: ReactNode;
|
|
97
96
|
}
|
|
98
|
-
declare function Kbd({ variant, keys, platform, separator, children, className, "aria-label": ariaLabel, ...props }: KbdProps):
|
|
97
|
+
declare function Kbd({ variant, keys, platform, separator, children, className, "aria-label": ariaLabel, ...props }: KbdProps): react.JSX.Element;
|
|
99
98
|
|
|
100
99
|
type LoaderVariant = "spinner" | "dots" | "pulse";
|
|
101
100
|
type LoaderSize = "sm" | "md" | "lg";
|
|
@@ -115,9 +114,9 @@ interface LoadingStateProps extends Omit<ComponentPropsWithoutRef<"div">, "title
|
|
|
115
114
|
variant?: LoaderVariant;
|
|
116
115
|
size?: LoaderSize;
|
|
117
116
|
}
|
|
118
|
-
declare function Loader({ variant, size, label, className, ...props }: LoaderProps):
|
|
119
|
-
declare function Skeleton({ shape, className, ...props }: SkeletonProps):
|
|
120
|
-
declare function LoadingState({ label, title, description, variant, size, className, ...props }: LoadingStateProps):
|
|
117
|
+
declare function Loader({ variant, size, label, className, ...props }: LoaderProps): react.JSX.Element;
|
|
118
|
+
declare function Skeleton({ shape, className, ...props }: SkeletonProps): react.JSX.Element;
|
|
119
|
+
declare function LoadingState({ label, title, description, variant, size, className, ...props }: LoadingStateProps): react.JSX.Element;
|
|
121
120
|
|
|
122
121
|
interface AuthLayoutProps extends ComponentPropsWithoutRef<"div"> {
|
|
123
122
|
brand?: ReactNode;
|
|
@@ -134,9 +133,9 @@ interface AuthCardProps extends Omit<ComponentPropsWithoutRef<"section">, "title
|
|
|
134
133
|
interface AuthDividerProps extends ComponentPropsWithoutRef<"div"> {
|
|
135
134
|
children?: ReactNode;
|
|
136
135
|
}
|
|
137
|
-
declare function AuthLayout({ brand, footer, aside, children, className, ...props }: AuthLayoutProps):
|
|
138
|
-
declare function AuthCard({ title, description, footer, children, className, ...props }: AuthCardProps):
|
|
139
|
-
declare function AuthDivider({ children, className, ...props }: AuthDividerProps):
|
|
136
|
+
declare function AuthLayout({ brand, footer, aside, children, className, ...props }: AuthLayoutProps): react.JSX.Element;
|
|
137
|
+
declare function AuthCard({ title, description, footer, children, className, ...props }: AuthCardProps): react.JSX.Element;
|
|
138
|
+
declare function AuthDivider({ children, className, ...props }: AuthDividerProps): react.JSX.Element;
|
|
140
139
|
|
|
141
140
|
interface SettingsNavItem {
|
|
142
141
|
id: string;
|
|
@@ -161,8 +160,8 @@ interface SettingsLayoutProps extends Omit<ComponentPropsWithoutRef<"section">,
|
|
|
161
160
|
navigationLabel?: string;
|
|
162
161
|
children: ReactNode;
|
|
163
162
|
}
|
|
164
|
-
declare function SettingsNav({ groups, className, ...props }: SettingsNavProps):
|
|
165
|
-
declare function SettingsLayout({ title, description, actions, navigation, navigationLabel, children, className, ...props }: SettingsLayoutProps):
|
|
163
|
+
declare function SettingsNav({ groups, className, ...props }: SettingsNavProps): react.JSX.Element;
|
|
164
|
+
declare function SettingsLayout({ title, description, actions, navigation, navigationLabel, children, className, ...props }: SettingsLayoutProps): react.JSX.Element;
|
|
166
165
|
|
|
167
166
|
type ContentProps = ComponentPropsWithoutRef<typeof DropdownPrimitive.Content>;
|
|
168
167
|
type DropdownAlign = NonNullable<ContentProps["align"]>;
|
|
@@ -210,12 +209,12 @@ type DropdownItemProps = ButtonHTMLAttributes<HTMLButtonElement>;
|
|
|
210
209
|
type DropdownRadioGroupProps = ComponentPropsWithoutRef<typeof DropdownPrimitive.RadioGroup>;
|
|
211
210
|
type DropdownRadioItemProps = ComponentPropsWithoutRef<typeof DropdownPrimitive.RadioItem>;
|
|
212
211
|
/** Collision-aware menu that flips sides and shifts its alignment to remain visible. */
|
|
213
|
-
declare function DropdownMenu({ trigger, children, align, side, sideOffset, alignOffset, collisionPadding, avoidCollisions, className, panelClassName, "aria-label": ariaLabel, open, defaultOpen, onOpenChange, modal, disabled, ...props }: DropdownMenuProps):
|
|
212
|
+
declare function DropdownMenu({ trigger, children, align, side, sideOffset, alignOffset, collisionPadding, avoidCollisions, className, panelClassName, "aria-label": ariaLabel, open, defaultOpen, onOpenChange, modal, disabled, ...props }: DropdownMenuProps): react.JSX.Element;
|
|
214
213
|
/** Tactile dropdown trigger backed by the same adaptive menu positioning. */
|
|
215
|
-
declare function DropdownButton({ label, variant, outline, size, split, icon, sideIcon, children, align, side, sideOffset, alignOffset, collisionPadding, avoidCollisions, className, panelClassName, "aria-label": ariaLabel, open, defaultOpen, onOpenChange, modal, disabled, ...props }: DropdownButtonProps):
|
|
216
|
-
declare function DropdownItem({ className, children, disabled, ...props }: DropdownItemProps):
|
|
217
|
-
declare function DropdownRadioGroup(props: DropdownRadioGroupProps):
|
|
218
|
-
declare function DropdownRadioItem({ className, children, ...props }: DropdownRadioItemProps):
|
|
214
|
+
declare function DropdownButton({ label, variant, outline, size, split, icon, sideIcon, children, align, side, sideOffset, alignOffset, collisionPadding, avoidCollisions, className, panelClassName, "aria-label": ariaLabel, open, defaultOpen, onOpenChange, modal, disabled, ...props }: DropdownButtonProps): react.JSX.Element;
|
|
215
|
+
declare function DropdownItem({ className, children, disabled, ...props }: DropdownItemProps): react.JSX.Element;
|
|
216
|
+
declare function DropdownRadioGroup(props: DropdownRadioGroupProps): react.JSX.Element;
|
|
217
|
+
declare function DropdownRadioItem({ className, children, ...props }: DropdownRadioItemProps): react.JSX.Element;
|
|
219
218
|
|
|
220
219
|
type InputSize = "sm" | "md" | "lg";
|
|
221
220
|
type InputVariant = "default" | "ghost";
|
|
@@ -296,7 +295,7 @@ interface FormFieldProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"
|
|
|
296
295
|
disabled?: boolean;
|
|
297
296
|
children: ReactNode | ((controlProps: FormFieldControlProps) => ReactNode);
|
|
298
297
|
}
|
|
299
|
-
declare function FormField({ controlId, label, hideLabel, helperText, error, required, disabled, children, className, ...props }: FormFieldProps):
|
|
298
|
+
declare function FormField({ controlId, label, hideLabel, helperText, error, required, disabled, children, className, ...props }: FormFieldProps): react.JSX.Element;
|
|
300
299
|
|
|
301
300
|
type ModalSize = "sm" | "md" | "lg" | "xl" | "full";
|
|
302
301
|
interface ModalProps {
|
|
@@ -313,7 +312,7 @@ interface ModalProps {
|
|
|
313
312
|
closeOnEscape?: boolean;
|
|
314
313
|
"aria-label"?: string;
|
|
315
314
|
}
|
|
316
|
-
declare function Modal({ open, onClose, title, description, children, footer, size, className, showCloseButton, closeOnOutsideClick, closeOnEscape, "aria-label": ariaLabel, }: ModalProps):
|
|
315
|
+
declare function Modal({ open, onClose, title, description, children, footer, size, className, showCloseButton, closeOnOutsideClick, closeOnEscape, "aria-label": ariaLabel, }: ModalProps): react.JSX.Element;
|
|
317
316
|
|
|
318
317
|
interface BreadcrumbItem {
|
|
319
318
|
label: string;
|
|
@@ -325,7 +324,7 @@ interface BreadcrumbsProps {
|
|
|
325
324
|
label?: string;
|
|
326
325
|
className?: string;
|
|
327
326
|
}
|
|
328
|
-
declare function Breadcrumbs({ items, label, className }: BreadcrumbsProps):
|
|
327
|
+
declare function Breadcrumbs({ items, label, className }: BreadcrumbsProps): react.JSX.Element;
|
|
329
328
|
interface PaginationProps {
|
|
330
329
|
page: number;
|
|
331
330
|
totalPages: number;
|
|
@@ -334,14 +333,14 @@ interface PaginationProps {
|
|
|
334
333
|
compact?: boolean;
|
|
335
334
|
className?: string;
|
|
336
335
|
}
|
|
337
|
-
declare function Pagination({ page, totalPages, onPageChange, label, compact, className, }: PaginationProps):
|
|
336
|
+
declare function Pagination({ page, totalPages, onPageChange, label, compact, className, }: PaginationProps): react.JSX.Element;
|
|
338
337
|
|
|
339
338
|
interface PanelProps extends Omit<ComponentPropsWithoutRef<"div">, "title"> {
|
|
340
339
|
title?: ReactNode;
|
|
341
340
|
description?: ReactNode;
|
|
342
341
|
children?: ReactNode;
|
|
343
342
|
}
|
|
344
|
-
declare function Panel({ title, description, children, className, ...props }: PanelProps):
|
|
343
|
+
declare function Panel({ title, description, children, className, ...props }: PanelProps): react.JSX.Element;
|
|
345
344
|
|
|
346
345
|
interface RatingProps extends Omit<ComponentPropsWithoutRef<"div">, "onChange"> {
|
|
347
346
|
label?: string;
|
|
@@ -351,7 +350,7 @@ interface RatingProps extends Omit<ComponentPropsWithoutRef<"div">, "onChange">
|
|
|
351
350
|
onChange?: (value: number) => void;
|
|
352
351
|
wrapperClassName?: string;
|
|
353
352
|
}
|
|
354
|
-
declare function Rating({ label, value, max, readOnly, onChange, className, wrapperClassName, ...props }: RatingProps):
|
|
353
|
+
declare function Rating({ label, value, max, readOnly, onChange, className, wrapperClassName, ...props }: RatingProps): react.JSX.Element;
|
|
355
354
|
|
|
356
355
|
interface SearchInputProps extends Omit<ComponentPropsWithoutRef<"input">, "type"> {
|
|
357
356
|
/** Associated label text — always rendered (visually hidden when `hideLabel`) */
|
|
@@ -363,14 +362,14 @@ interface SearchInputProps extends Omit<ComponentPropsWithoutRef<"input">, "type
|
|
|
363
362
|
wrapperClassName?: string;
|
|
364
363
|
}
|
|
365
364
|
/** Labelled search field — use in nav bars and toolbars. */
|
|
366
|
-
declare function SearchInput({ id: idProp, label, hideLabel, shortcut, density, className, wrapperClassName, placeholder, ...props }: SearchInputProps):
|
|
365
|
+
declare function SearchInput({ id: idProp, label, hideLabel, shortcut, density, className, wrapperClassName, placeholder, ...props }: SearchInputProps): react.JSX.Element;
|
|
367
366
|
interface SearchGroupProps extends Omit<ComponentPropsWithoutRef<"input">, "type"> {
|
|
368
367
|
label?: string;
|
|
369
368
|
submitLabel?: string;
|
|
370
369
|
wrapperClassName?: string;
|
|
371
370
|
}
|
|
372
371
|
/** Input + primary search — one control shell, 1px vertical seam, matched height to `ph-input`. */
|
|
373
|
-
declare function SearchGroup({ id: idProp, label, submitLabel, placeholder, wrapperClassName, className, ...props }: SearchGroupProps):
|
|
372
|
+
declare function SearchGroup({ id: idProp, label, submitLabel, placeholder, wrapperClassName, className, ...props }: SearchGroupProps): react.JSX.Element;
|
|
374
373
|
|
|
375
374
|
interface TableColumn<T> {
|
|
376
375
|
key: string;
|
|
@@ -388,7 +387,7 @@ interface TableProps<T> {
|
|
|
388
387
|
className?: string;
|
|
389
388
|
caption?: string;
|
|
390
389
|
}
|
|
391
|
-
declare function Table<T>({ data, columns, zebra, compact, ribbon, getRowStyle, className, caption, }: TableProps<T>):
|
|
390
|
+
declare function Table<T>({ data, columns, zebra, compact, ribbon, getRowStyle, className, caption, }: TableProps<T>): react.JSX.Element;
|
|
392
391
|
|
|
393
392
|
type StatTone = "default" | "brand" | "blue" | "purple" | "warning";
|
|
394
393
|
interface StatProps extends ComponentPropsWithoutRef<"article"> {
|
|
@@ -398,7 +397,7 @@ interface StatProps extends ComponentPropsWithoutRef<"article"> {
|
|
|
398
397
|
footer?: ReactNode;
|
|
399
398
|
tone?: StatTone;
|
|
400
399
|
}
|
|
401
|
-
declare function Stat({ icon, label, value, footer, tone, className, ...props }: StatProps):
|
|
400
|
+
declare function Stat({ icon, label, value, footer, tone, className, ...props }: StatProps): react.JSX.Element;
|
|
402
401
|
|
|
403
402
|
type ToastStatus = "info" | "success" | "warning" | "danger";
|
|
404
403
|
interface ToastProps {
|
|
@@ -408,12 +407,12 @@ interface ToastProps {
|
|
|
408
407
|
onDismiss?: () => void;
|
|
409
408
|
className?: string;
|
|
410
409
|
}
|
|
411
|
-
declare function Toast({ status, title, description, onDismiss, className, }: ToastProps):
|
|
410
|
+
declare function Toast({ status, title, description, onDismiss, className, }: ToastProps): react.JSX.Element;
|
|
412
411
|
interface ToastStackProps {
|
|
413
412
|
children?: ReactNode;
|
|
414
413
|
className?: string;
|
|
415
414
|
}
|
|
416
|
-
declare function ToastStack({ children, className }: ToastStackProps):
|
|
415
|
+
declare function ToastStack({ children, className }: ToastStackProps): react.JSX.Element;
|
|
417
416
|
|
|
418
417
|
interface TabItem {
|
|
419
418
|
value: string;
|
|
@@ -427,7 +426,7 @@ interface TabsProps {
|
|
|
427
426
|
variant?: TabsVariant;
|
|
428
427
|
className?: string;
|
|
429
428
|
}
|
|
430
|
-
declare function Tabs({ items, value, onChange, variant, className }: TabsProps):
|
|
429
|
+
declare function Tabs({ items, value, onChange, variant, className }: TabsProps): react.JSX.Element;
|
|
431
430
|
|
|
432
431
|
/**
|
|
433
432
|
* Re-applies `html[data-theme]` after React commits. Hydration can clear attributes
|
|
@@ -440,13 +439,13 @@ interface ThemeManagerProps {
|
|
|
440
439
|
children?: ReactNode;
|
|
441
440
|
}
|
|
442
441
|
/** Client wrapper that keeps html[data-theme] synced with localStorage. */
|
|
443
|
-
declare function ThemeManager({ children }: ThemeManagerProps):
|
|
442
|
+
declare function ThemeManager({ children }: ThemeManagerProps): react.JSX.Element;
|
|
444
443
|
|
|
445
444
|
interface ThemeSwitcherProps {
|
|
446
445
|
className?: string;
|
|
447
446
|
}
|
|
448
447
|
/** Colour-only theme picker — persists to localStorage and sets html[data-theme]. */
|
|
449
|
-
declare function ThemeSwitcher({ className }: ThemeSwitcherProps):
|
|
448
|
+
declare function ThemeSwitcher({ className }: ThemeSwitcherProps): react.JSX.Element;
|
|
450
449
|
|
|
451
450
|
interface IconProps extends SVGAttributes<SVGSVGElement> {
|
|
452
451
|
/** Pixel size or CSS length; defaults to `1em`. */
|
|
@@ -739,7 +738,7 @@ interface AccordionProps {
|
|
|
739
738
|
defaultOpen?: string[];
|
|
740
739
|
className?: string;
|
|
741
740
|
}
|
|
742
|
-
declare function Accordion({ items, allowMultiple, defaultOpen, className, }: AccordionProps):
|
|
741
|
+
declare function Accordion({ items, allowMultiple, defaultOpen, className, }: AccordionProps): react.JSX.Element;
|
|
743
742
|
|
|
744
743
|
interface Step {
|
|
745
744
|
id: string;
|
|
@@ -752,7 +751,7 @@ interface StepperProps {
|
|
|
752
751
|
currentStep: number;
|
|
753
752
|
className?: string;
|
|
754
753
|
}
|
|
755
|
-
declare function Stepper({ steps, currentStep, className }: StepperProps):
|
|
754
|
+
declare function Stepper({ steps, currentStep, className }: StepperProps): react.JSX.Element;
|
|
756
755
|
|
|
757
756
|
interface SegmentedControlOption {
|
|
758
757
|
value: string;
|
|
@@ -765,7 +764,7 @@ interface SegmentedControlProps {
|
|
|
765
764
|
onChange: (value: string) => void;
|
|
766
765
|
className?: string;
|
|
767
766
|
}
|
|
768
|
-
declare function SegmentedControl({ options, value, onChange, className }: SegmentedControlProps):
|
|
767
|
+
declare function SegmentedControl({ options, value, onChange, className }: SegmentedControlProps): react.JSX.Element;
|
|
769
768
|
|
|
770
769
|
interface CommandItem {
|
|
771
770
|
id: string;
|
|
@@ -781,21 +780,21 @@ interface CommandPaletteProps {
|
|
|
781
780
|
placeholder?: string;
|
|
782
781
|
className?: string;
|
|
783
782
|
}
|
|
784
|
-
declare function CommandPalette({ items, isOpen, onClose, placeholder, className, }: CommandPaletteProps):
|
|
783
|
+
declare function CommandPalette({ items, isOpen, onClose, placeholder, className, }: CommandPaletteProps): react.JSX.Element | null;
|
|
785
784
|
|
|
786
785
|
interface CalendarProps {
|
|
787
786
|
value?: Date;
|
|
788
787
|
onChange?: (date: Date) => void;
|
|
789
788
|
className?: string;
|
|
790
789
|
}
|
|
791
|
-
declare function Calendar({ value, onChange, className }: CalendarProps):
|
|
790
|
+
declare function Calendar({ value, onChange, className }: CalendarProps): react.JSX.Element;
|
|
792
791
|
|
|
793
792
|
interface HoverCardProps {
|
|
794
793
|
trigger: React.ReactNode;
|
|
795
794
|
children: React.ReactNode;
|
|
796
795
|
className?: string;
|
|
797
796
|
}
|
|
798
|
-
declare function HoverCard({ trigger, children, className }: HoverCardProps):
|
|
797
|
+
declare function HoverCard({ trigger, children, className }: HoverCardProps): react.JSX.Element;
|
|
799
798
|
|
|
800
799
|
type TooltipSide = "top" | "right" | "bottom" | "left";
|
|
801
800
|
type TooltipAlign = "start" | "center" | "end";
|
|
@@ -817,8 +816,8 @@ interface TooltipProps {
|
|
|
817
816
|
delayDuration?: number;
|
|
818
817
|
disableHoverableContent?: boolean;
|
|
819
818
|
}
|
|
820
|
-
declare function TooltipProvider({ children, delayDuration, }: TooltipProviderProps):
|
|
821
|
-
declare function Tooltip({ content, children, side, align, sideOffset, className, open, defaultOpen, onOpenChange, delayDuration, }: TooltipProps):
|
|
819
|
+
declare function TooltipProvider({ children, delayDuration, }: TooltipProviderProps): react.JSX.Element;
|
|
820
|
+
declare function Tooltip({ content, children, side, align, sideOffset, className, open, defaultOpen, onOpenChange, delayDuration, }: TooltipProps): react.JSX.Element;
|
|
822
821
|
|
|
823
822
|
interface EmptyStateProps {
|
|
824
823
|
icon?: React.ReactNode;
|
|
@@ -827,7 +826,7 @@ interface EmptyStateProps {
|
|
|
827
826
|
action?: React.ReactNode;
|
|
828
827
|
className?: string;
|
|
829
828
|
}
|
|
830
|
-
declare function EmptyState({ icon, title, description, action, className }: EmptyStateProps):
|
|
829
|
+
declare function EmptyState({ icon, title, description, action, className }: EmptyStateProps): react.JSX.Element;
|
|
831
830
|
|
|
832
831
|
interface FilterChip {
|
|
833
832
|
id: string;
|
|
@@ -843,7 +842,7 @@ interface FilterChipsProps {
|
|
|
843
842
|
className?: string;
|
|
844
843
|
"aria-label"?: string;
|
|
845
844
|
}
|
|
846
|
-
declare function FilterChips({ chips, onToggle, onRemove, className, "aria-label": ariaLabel, }: FilterChipsProps):
|
|
845
|
+
declare function FilterChips({ chips, onToggle, onRemove, className, "aria-label": ariaLabel, }: FilterChipsProps): react.JSX.Element;
|
|
847
846
|
|
|
848
847
|
interface FilterMenuOption {
|
|
849
848
|
value: string;
|
|
@@ -872,9 +871,9 @@ interface FilterBarProps extends Omit<HTMLAttributes<HTMLDivElement>, "children"
|
|
|
872
871
|
clearLabel?: string;
|
|
873
872
|
resultCount?: ReactNode;
|
|
874
873
|
}
|
|
875
|
-
declare function FilterBar({ children, label, onClear, clearLabel, resultCount, className, ...props }: FilterBarProps):
|
|
876
|
-
declare function FilterMenu({ label, value, options, onValueChange, placeholder, align, disabled, className, }: FilterMenuProps):
|
|
877
|
-
declare function SortMenu({ label, value, options, onValueChange, direction, align, disabled, className, }: SortMenuProps):
|
|
874
|
+
declare function FilterBar({ children, label, onClear, clearLabel, resultCount, className, ...props }: FilterBarProps): react.JSX.Element;
|
|
875
|
+
declare function FilterMenu({ label, value, options, onValueChange, placeholder, align, disabled, className, }: FilterMenuProps): react.JSX.Element;
|
|
876
|
+
declare function SortMenu({ label, value, options, onValueChange, direction, align, disabled, className, }: SortMenuProps): react.JSX.Element;
|
|
878
877
|
|
|
879
878
|
interface FilterControlsProps extends ComponentPropsWithoutRef<"div"> {
|
|
880
879
|
children: ReactNode;
|
|
@@ -883,7 +882,7 @@ interface FilterControlsProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
883
882
|
emptyState?: ReactNode;
|
|
884
883
|
}
|
|
885
884
|
/** Combines filter controls and their applied chips without owning filter state. */
|
|
886
|
-
declare function FilterControls({ children, barProps, chipsProps, emptyState, className, ...props }: FilterControlsProps):
|
|
885
|
+
declare function FilterControls({ children, barProps, chipsProps, emptyState, className, ...props }: FilterControlsProps): react.JSX.Element;
|
|
887
886
|
|
|
888
887
|
interface CodeBlockProps {
|
|
889
888
|
code: string;
|
|
@@ -891,13 +890,13 @@ interface CodeBlockProps {
|
|
|
891
890
|
filename?: string;
|
|
892
891
|
className?: string;
|
|
893
892
|
}
|
|
894
|
-
declare function CodeBlock({ code, language, filename, className }: CodeBlockProps):
|
|
893
|
+
declare function CodeBlock({ code, language, filename, className }: CodeBlockProps): react.JSX.Element;
|
|
895
894
|
|
|
896
895
|
interface ComponentPropRow {
|
|
897
896
|
name: string;
|
|
898
897
|
type: string;
|
|
899
898
|
defaultValue?: string;
|
|
900
|
-
description
|
|
899
|
+
description?: ReactNode;
|
|
901
900
|
}
|
|
902
901
|
interface ComponentDocsProps {
|
|
903
902
|
title?: string;
|
|
@@ -905,7 +904,7 @@ interface ComponentDocsProps {
|
|
|
905
904
|
defaultOpen?: boolean;
|
|
906
905
|
className?: string;
|
|
907
906
|
}
|
|
908
|
-
declare function ComponentDocs({ title, rows, defaultOpen, className }: ComponentDocsProps):
|
|
907
|
+
declare function ComponentDocs({ title, rows, defaultOpen, className }: ComponentDocsProps): react.JSX.Element;
|
|
909
908
|
|
|
910
909
|
interface ShowcaseWrapperProps {
|
|
911
910
|
id?: string;
|
|
@@ -917,7 +916,7 @@ interface ShowcaseWrapperProps {
|
|
|
917
916
|
children: ReactNode;
|
|
918
917
|
className?: string;
|
|
919
918
|
}
|
|
920
|
-
declare function ShowcaseWrapper({ id, title, description, docs, code, filename, children, className, }: ShowcaseWrapperProps):
|
|
919
|
+
declare function ShowcaseWrapper({ id, title, description, docs, code, filename, children, className, }: ShowcaseWrapperProps): react.JSX.Element;
|
|
921
920
|
|
|
922
921
|
interface CollapsibleSectionProps {
|
|
923
922
|
title: string;
|
|
@@ -925,7 +924,7 @@ interface CollapsibleSectionProps {
|
|
|
925
924
|
defaultOpen?: boolean;
|
|
926
925
|
id?: string;
|
|
927
926
|
}
|
|
928
|
-
declare function CollapsibleSection({ title, children, defaultOpen, id }: CollapsibleSectionProps):
|
|
927
|
+
declare function CollapsibleSection({ title, children, defaultOpen, id }: CollapsibleSectionProps): react.JSX.Element;
|
|
929
928
|
|
|
930
929
|
type TextTone = "default" | "muted" | "subtle" | "brand" | "danger" | "success" | "warning" | "info" | "inherit";
|
|
931
930
|
type TextWeight = "normal" | "medium" | "semibold" | "bold" | "extrabold";
|
|
@@ -937,31 +936,31 @@ interface TextBaseProps {
|
|
|
937
936
|
truncate?: boolean;
|
|
938
937
|
}
|
|
939
938
|
/** Display text — largest heading, use once per page */
|
|
940
|
-
declare function Display({ children, tone, weight, truncate, className, }: TextBaseProps):
|
|
939
|
+
declare function Display({ children, tone, weight, truncate, className, }: TextBaseProps): react.JSX.Element;
|
|
941
940
|
/** H1 — page title */
|
|
942
|
-
declare function H1({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
941
|
+
declare function H1({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
943
942
|
/** H2 — section title */
|
|
944
|
-
declare function H2({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
943
|
+
declare function H2({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
945
944
|
/** H3 — subsection title */
|
|
946
|
-
declare function H3({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
945
|
+
declare function H3({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
947
946
|
/** H4 — card / panel title */
|
|
948
|
-
declare function H4({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
947
|
+
declare function H4({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
949
948
|
/** H5 — small heading */
|
|
950
|
-
declare function H5({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
949
|
+
declare function H5({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
951
950
|
/** Body — default paragraph text */
|
|
952
|
-
declare function P({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
951
|
+
declare function P({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
953
952
|
/** Small body text */
|
|
954
|
-
declare function Small({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
953
|
+
declare function Small({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
955
954
|
/** Extra small text — captions, meta */
|
|
956
|
-
declare function Caption({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
955
|
+
declare function Caption({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
957
956
|
/** Overline — tiny eyebrow text */
|
|
958
|
-
declare function Overline({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
957
|
+
declare function Overline({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
959
958
|
/** Lead — intro paragraph, larger and muted */
|
|
960
|
-
declare function Lead({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
959
|
+
declare function Lead({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
961
960
|
/** Mono — code, data, technical text */
|
|
962
|
-
declare function Mono({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
961
|
+
declare function Mono({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
963
962
|
/** Label — form labels, tags */
|
|
964
|
-
declare function Label({ children, tone, weight, truncate, className }: TextBaseProps):
|
|
963
|
+
declare function Label({ children, tone, weight, truncate, className }: TextBaseProps): react.JSX.Element;
|
|
965
964
|
|
|
966
965
|
type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
967
966
|
type AvatarStatus = "online" | "offline" | "away" | "busy";
|
|
@@ -979,12 +978,12 @@ interface AvatarProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
979
978
|
/** Badge count or text */
|
|
980
979
|
badge?: string;
|
|
981
980
|
}
|
|
982
|
-
declare function Avatar({ label, icon, size, color, status, badge, className, ...props }: AvatarProps):
|
|
981
|
+
declare function Avatar({ label, icon, size, color, status, badge, className, ...props }: AvatarProps): react.JSX.Element;
|
|
983
982
|
interface AvatarGroupProps extends ComponentPropsWithoutRef<"div"> {
|
|
984
983
|
children?: ReactNode;
|
|
985
984
|
max?: number;
|
|
986
985
|
}
|
|
987
|
-
declare function AvatarGroup({ children, max, className, ...props }: AvatarGroupProps):
|
|
986
|
+
declare function AvatarGroup({ children, max, className, ...props }: AvatarGroupProps): react.JSX.Element;
|
|
988
987
|
|
|
989
988
|
interface ProgressProps extends ComponentPropsWithoutRef<"div"> {
|
|
990
989
|
/** Current value (0-100) */
|
|
@@ -1000,7 +999,7 @@ interface ProgressProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
1000
999
|
/** Size variant */
|
|
1001
1000
|
size?: "sm" | "md" | "lg";
|
|
1002
1001
|
}
|
|
1003
|
-
declare function Progress({ value, max, color, label, showPercentage, size, className, ...props }: ProgressProps):
|
|
1002
|
+
declare function Progress({ value, max, color, label, showPercentage, size, className, ...props }: ProgressProps): react.JSX.Element;
|
|
1004
1003
|
|
|
1005
1004
|
type ChatBubbleVariant = "from" | "self";
|
|
1006
1005
|
interface ChatBubbleProps extends ComponentPropsWithoutRef<"div"> {
|
|
@@ -1017,7 +1016,7 @@ interface ChatBubbleProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
1017
1016
|
/** Footer text (e.g. "Synced with...") */
|
|
1018
1017
|
footer?: ReactNode;
|
|
1019
1018
|
}
|
|
1020
|
-
declare function ChatBubble({ children, avatar, name, time, variant, footer, className, ...props }: ChatBubbleProps):
|
|
1019
|
+
declare function ChatBubble({ children, avatar, name, time, variant, footer, className, ...props }: ChatBubbleProps): react.JSX.Element;
|
|
1021
1020
|
|
|
1022
1021
|
interface TerminalProps extends ComponentPropsWithoutRef<"div"> {
|
|
1023
1022
|
/** Window title */
|
|
@@ -1030,7 +1029,7 @@ interface TerminalProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
1030
1029
|
/** Custom content instead of lines */
|
|
1031
1030
|
children?: ReactNode;
|
|
1032
1031
|
}
|
|
1033
|
-
declare function Terminal({ title, lines, children, className, ...props }: TerminalProps):
|
|
1032
|
+
declare function Terminal({ title, lines, children, className, ...props }: TerminalProps): react.JSX.Element;
|
|
1034
1033
|
|
|
1035
1034
|
type IndicatorPosition = "top-right" | "top-left" | "bottom-right" | "bottom-left";
|
|
1036
1035
|
interface IndicatorProps extends ComponentPropsWithoutRef<"div"> {
|
|
@@ -1047,7 +1046,7 @@ interface IndicatorProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
1047
1046
|
/** Offset from corner (default: 2px) */
|
|
1048
1047
|
offset?: number;
|
|
1049
1048
|
}
|
|
1050
|
-
declare function Indicator({ children, badge, color, position, dot, className, ...props }: IndicatorProps):
|
|
1049
|
+
declare function Indicator({ children, badge, color, position, dot, className, ...props }: IndicatorProps): react.JSX.Element;
|
|
1051
1050
|
|
|
1052
1051
|
interface TimelineEvent {
|
|
1053
1052
|
id: string;
|
|
@@ -1062,7 +1061,7 @@ interface TimelineProps extends ComponentPropsWithoutRef<"ol"> {
|
|
|
1062
1061
|
/** Alternate left/right layout on large screens */
|
|
1063
1062
|
alternate?: boolean;
|
|
1064
1063
|
}
|
|
1065
|
-
declare function Timeline({ events, alternate, className, ...props }: TimelineProps):
|
|
1064
|
+
declare function Timeline({ events, alternate, className, ...props }: TimelineProps): react.JSX.Element;
|
|
1066
1065
|
|
|
1067
1066
|
type BannerType = "info" | "success" | "warning" | "danger" | "ai";
|
|
1068
1067
|
interface BannerProps extends HTMLAttributes<HTMLDivElement> {
|
|
@@ -1086,7 +1085,7 @@ interface DialogProps extends Omit<ModalProps, "onClose"> {
|
|
|
1086
1085
|
cancelProps?: Partial<ButtonProps>;
|
|
1087
1086
|
children?: ReactNode;
|
|
1088
1087
|
}
|
|
1089
|
-
declare function Dialog({ isOpen: openProp, onClose, onConfirm, confirmText, cancelText, confirmProps, cancelProps, children, title, ...modalProps }: DialogProps):
|
|
1088
|
+
declare function Dialog({ isOpen: openProp, onClose, onConfirm, confirmText, cancelText, confirmProps, cancelProps, children, title, ...modalProps }: DialogProps): react.JSX.Element;
|
|
1090
1089
|
declare namespace Dialog {
|
|
1091
1090
|
var displayName: string;
|
|
1092
1091
|
}
|
|
@@ -1097,7 +1096,7 @@ interface DividerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1097
1096
|
thick?: boolean;
|
|
1098
1097
|
label?: string;
|
|
1099
1098
|
}
|
|
1100
|
-
declare function Divider({ vertical, dashed, thick, label, className, ...props }: DividerProps):
|
|
1099
|
+
declare function Divider({ vertical, dashed, thick, label, className, ...props }: DividerProps): react.JSX.Element;
|
|
1101
1100
|
declare namespace Divider {
|
|
1102
1101
|
var displayName: string;
|
|
1103
1102
|
}
|
|
@@ -1119,7 +1118,7 @@ interface ProgressCircleProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
1119
1118
|
strokeWidth?: number;
|
|
1120
1119
|
children?: ReactNode;
|
|
1121
1120
|
}
|
|
1122
|
-
declare function ProgressCircle({ progress, size, strokeWidth: sw, children, className, ...props }: ProgressCircleProps):
|
|
1121
|
+
declare function ProgressCircle({ progress, size, strokeWidth: sw, children, className, ...props }: ProgressCircleProps): react.JSX.Element;
|
|
1123
1122
|
declare namespace ProgressCircle {
|
|
1124
1123
|
var displayName: string;
|
|
1125
1124
|
}
|
|
@@ -1142,7 +1141,7 @@ interface WidgetProps {
|
|
|
1142
1141
|
children?: ReactNode;
|
|
1143
1142
|
className?: string;
|
|
1144
1143
|
}
|
|
1145
|
-
declare function Widget({ title, onClose, actions, children, className }: WidgetProps):
|
|
1144
|
+
declare function Widget({ title, onClose, actions, children, className }: WidgetProps): react.JSX.Element;
|
|
1146
1145
|
declare namespace Widget {
|
|
1147
1146
|
var displayName: string;
|
|
1148
1147
|
}
|
|
@@ -1160,7 +1159,7 @@ type SplotchColor = "purple" | "blue" | "green" | "black" | "white" | "orange" |
|
|
|
1160
1159
|
interface SplotchProps extends HTMLAttributes<HTMLDivElement> {
|
|
1161
1160
|
color: SplotchColor;
|
|
1162
1161
|
}
|
|
1163
|
-
declare function Splotch({ color, className, ...props }: SplotchProps):
|
|
1162
|
+
declare function Splotch({ color, className, ...props }: SplotchProps): react.JSX.Element;
|
|
1164
1163
|
declare namespace Splotch {
|
|
1165
1164
|
var displayName: string;
|
|
1166
1165
|
}
|
|
@@ -1174,7 +1173,7 @@ interface PopoverProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1174
1173
|
matchTriggerWidth?: boolean;
|
|
1175
1174
|
padded?: boolean;
|
|
1176
1175
|
}
|
|
1177
|
-
declare function Popover({ trigger, children, open: controlledOpen, onOpenChange, placement, matchTriggerWidth, padded, className, ...props }: PopoverProps):
|
|
1176
|
+
declare function Popover({ trigger, children, open: controlledOpen, onOpenChange, placement, matchTriggerWidth, padded, className, ...props }: PopoverProps): react.JSX.Element;
|
|
1178
1177
|
declare namespace Popover {
|
|
1179
1178
|
var displayName: string;
|
|
1180
1179
|
}
|
|
@@ -1182,7 +1181,7 @@ declare namespace Popover {
|
|
|
1182
1181
|
interface LoadingBarProps extends HTMLAttributes<HTMLDivElement> {
|
|
1183
1182
|
active?: boolean;
|
|
1184
1183
|
}
|
|
1185
|
-
declare function LoadingBar({ active, className, ...props }: LoadingBarProps):
|
|
1184
|
+
declare function LoadingBar({ active, className, ...props }: LoadingBarProps): react.JSX.Element;
|
|
1186
1185
|
declare namespace LoadingBar {
|
|
1187
1186
|
var displayName: string;
|
|
1188
1187
|
}
|
|
@@ -1197,7 +1196,7 @@ interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
1197
1196
|
size?: "sm" | "md" | "lg";
|
|
1198
1197
|
textColored?: boolean;
|
|
1199
1198
|
}
|
|
1200
|
-
declare function Spinner({ size, textColored, className, ...props }: SpinnerProps):
|
|
1199
|
+
declare function Spinner({ size, textColored, className, ...props }: SpinnerProps): react.JSX.Element;
|
|
1201
1200
|
declare namespace Spinner {
|
|
1202
1201
|
var displayName: string;
|
|
1203
1202
|
}
|
|
@@ -1222,7 +1221,7 @@ interface ComboboxProps {
|
|
|
1222
1221
|
className?: string;
|
|
1223
1222
|
disabled?: boolean;
|
|
1224
1223
|
}
|
|
1225
|
-
declare function Combobox({ options, value, onChange, placeholder, className, disabled, }: ComboboxProps):
|
|
1224
|
+
declare function Combobox({ options, value, onChange, placeholder, className, disabled, }: ComboboxProps): react.JSX.Element;
|
|
1226
1225
|
declare namespace Combobox {
|
|
1227
1226
|
var displayName: string;
|
|
1228
1227
|
}
|
|
@@ -1235,13 +1234,13 @@ interface AutocompleteProps extends Omit<InputHTMLAttributes<HTMLInputElement>,
|
|
|
1235
1234
|
options: AutocompleteOption[];
|
|
1236
1235
|
onSelect?: (option: AutocompleteOption) => void;
|
|
1237
1236
|
}
|
|
1238
|
-
declare function Autocomplete({ options, onSelect, className, value: controlledValue, onChange, placeholder, ...inputProps }: AutocompleteProps):
|
|
1237
|
+
declare function Autocomplete({ options, onSelect, className, value: controlledValue, onChange, placeholder, ...inputProps }: AutocompleteProps): react.JSX.Element;
|
|
1239
1238
|
declare namespace Autocomplete {
|
|
1240
1239
|
var displayName: string;
|
|
1241
1240
|
}
|
|
1242
1241
|
|
|
1243
1242
|
interface ContextMenuItem {
|
|
1244
|
-
label
|
|
1243
|
+
label?: string;
|
|
1245
1244
|
onClick?: () => void;
|
|
1246
1245
|
disabled?: boolean;
|
|
1247
1246
|
separator?: boolean;
|
|
@@ -1251,7 +1250,7 @@ interface ContextMenuProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1251
1250
|
items: ContextMenuItem[];
|
|
1252
1251
|
children: ReactNode;
|
|
1253
1252
|
}
|
|
1254
|
-
declare function ContextMenu({ items, children, className, ...props }: ContextMenuProps):
|
|
1253
|
+
declare function ContextMenu({ items, children, className, ...props }: ContextMenuProps): react.JSX.Element;
|
|
1255
1254
|
declare namespace ContextMenu {
|
|
1256
1255
|
var displayName: string;
|
|
1257
1256
|
}
|
|
@@ -1263,7 +1262,7 @@ interface ResizableProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1263
1262
|
minLeftWidth?: number;
|
|
1264
1263
|
minRightWidth?: number;
|
|
1265
1264
|
}
|
|
1266
|
-
declare function Resizable({ left, right, defaultLeftWidth, minLeftWidth, minRightWidth, className, ...props }: ResizableProps):
|
|
1265
|
+
declare function Resizable({ left, right, defaultLeftWidth, minLeftWidth, minRightWidth, className, ...props }: ResizableProps): react.JSX.Element;
|
|
1267
1266
|
declare namespace Resizable {
|
|
1268
1267
|
var displayName: string;
|
|
1269
1268
|
}
|
|
@@ -1272,7 +1271,7 @@ interface ScrollAreaProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1272
1271
|
children: ReactNode;
|
|
1273
1272
|
orientation?: "vertical" | "horizontal" | "both";
|
|
1274
1273
|
}
|
|
1275
|
-
declare function ScrollArea({ children, orientation, className, ...props }: ScrollAreaProps):
|
|
1274
|
+
declare function ScrollArea({ children, orientation, className, ...props }: ScrollAreaProps): react.JSX.Element;
|
|
1276
1275
|
declare namespace ScrollArea {
|
|
1277
1276
|
var displayName: string;
|
|
1278
1277
|
}
|
|
@@ -1285,7 +1284,7 @@ interface NumberFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
|
1285
1284
|
step?: number;
|
|
1286
1285
|
label?: string;
|
|
1287
1286
|
}
|
|
1288
|
-
declare function NumberField({ value: controlledValue, onChange, min, max, step, label, className, disabled, defaultValue, ...inputProps }: NumberFieldProps):
|
|
1287
|
+
declare function NumberField({ value: controlledValue, onChange, min, max, step, label, className, disabled, defaultValue, ...inputProps }: NumberFieldProps): react.JSX.Element;
|
|
1289
1288
|
declare namespace NumberField {
|
|
1290
1289
|
var displayName: string;
|
|
1291
1290
|
}
|
|
@@ -1293,7 +1292,7 @@ declare namespace NumberField {
|
|
|
1293
1292
|
interface InputGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
1294
1293
|
children: ReactNode;
|
|
1295
1294
|
}
|
|
1296
|
-
declare function InputGroup({ children, className, ...props }: InputGroupProps):
|
|
1295
|
+
declare function InputGroup({ children, className, ...props }: InputGroupProps): react.JSX.Element;
|
|
1297
1296
|
declare namespace InputGroup {
|
|
1298
1297
|
var displayName: string;
|
|
1299
1298
|
}
|
|
@@ -1301,7 +1300,7 @@ declare namespace InputGroup {
|
|
|
1301
1300
|
interface ButtonGroupProps extends HTMLAttributes<HTMLDivElement> {
|
|
1302
1301
|
children: ReactNode;
|
|
1303
1302
|
}
|
|
1304
|
-
declare function ButtonGroup({ children, className, ...props }: ButtonGroupProps):
|
|
1303
|
+
declare function ButtonGroup({ children, className, ...props }: ButtonGroupProps): react.JSX.Element;
|
|
1305
1304
|
declare namespace ButtonGroup {
|
|
1306
1305
|
var displayName: string;
|
|
1307
1306
|
}
|
|
@@ -1320,7 +1319,7 @@ interface ToggleGroupProps {
|
|
|
1320
1319
|
children: ReactNode;
|
|
1321
1320
|
className?: string;
|
|
1322
1321
|
}
|
|
1323
|
-
declare function ToggleGroup({ type, value, onValueChange, children, className, }: ToggleGroupProps):
|
|
1322
|
+
declare function ToggleGroup({ type, value, onValueChange, children, className, }: ToggleGroupProps): react.JSX.Element;
|
|
1324
1323
|
declare namespace ToggleGroup {
|
|
1325
1324
|
var displayName: string;
|
|
1326
1325
|
}
|
|
@@ -1328,7 +1327,7 @@ declare namespace ToggleGroup {
|
|
|
1328
1327
|
interface MenubarItem {
|
|
1329
1328
|
label: string;
|
|
1330
1329
|
items?: {
|
|
1331
|
-
label
|
|
1330
|
+
label?: string;
|
|
1332
1331
|
onClick?: () => void;
|
|
1333
1332
|
disabled?: boolean;
|
|
1334
1333
|
separator?: boolean;
|
|
@@ -1337,7 +1336,7 @@ interface MenubarItem {
|
|
|
1337
1336
|
interface MenubarProps extends HTMLAttributes<HTMLDivElement> {
|
|
1338
1337
|
items: MenubarItem[];
|
|
1339
1338
|
}
|
|
1340
|
-
declare function Menubar({ items, className, ...props }: MenubarProps):
|
|
1339
|
+
declare function Menubar({ items, className, ...props }: MenubarProps): react.JSX.Element;
|
|
1341
1340
|
declare namespace Menubar {
|
|
1342
1341
|
var displayName: string;
|
|
1343
1342
|
}
|
|
@@ -1352,7 +1351,7 @@ interface AlertDialogProps extends Omit<ModalProps, "onClose"> {
|
|
|
1352
1351
|
cancelProps?: Partial<ButtonProps>;
|
|
1353
1352
|
children?: ReactNode;
|
|
1354
1353
|
}
|
|
1355
|
-
declare function AlertDialog({ isOpen: openProp, onClose, onConfirm, confirmText, cancelText, confirmProps, cancelProps, children, title, ...modalProps }: AlertDialogProps):
|
|
1354
|
+
declare function AlertDialog({ isOpen: openProp, onClose, onConfirm, confirmText, cancelText, confirmProps, cancelProps, children, title, ...modalProps }: AlertDialogProps): react.JSX.Element;
|
|
1356
1355
|
declare namespace AlertDialog {
|
|
1357
1356
|
var displayName: string;
|
|
1358
1357
|
}
|
|
@@ -1361,7 +1360,7 @@ interface DotProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
1361
1360
|
color?: "green" | "yellow" | "red" | "blue" | "gray";
|
|
1362
1361
|
size?: "sm" | "md";
|
|
1363
1362
|
}
|
|
1364
|
-
declare function Dot({ color, size, className, ...props }: DotProps):
|
|
1363
|
+
declare function Dot({ color, size, className, ...props }: DotProps): react.JSX.Element;
|
|
1365
1364
|
declare namespace Dot {
|
|
1366
1365
|
var displayName: string;
|
|
1367
1366
|
}
|
|
@@ -1372,7 +1371,7 @@ interface CollapsibleProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1372
1371
|
onOpenChange?: (open: boolean) => void;
|
|
1373
1372
|
children: ReactNode;
|
|
1374
1373
|
}
|
|
1375
|
-
declare function Collapsible({ trigger, open: controlledOpen, onOpenChange, children, className, ...props }: CollapsibleProps):
|
|
1374
|
+
declare function Collapsible({ trigger, open: controlledOpen, onOpenChange, children, className, ...props }: CollapsibleProps): react.JSX.Element;
|
|
1376
1375
|
declare namespace Collapsible {
|
|
1377
1376
|
var displayName: string;
|
|
1378
1377
|
}
|
|
@@ -1384,7 +1383,7 @@ interface MetricProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
1384
1383
|
trend?: ReactNode;
|
|
1385
1384
|
icon?: ReactNode;
|
|
1386
1385
|
}
|
|
1387
|
-
declare function Metric({ value, label, badge, trend, icon, className, ...props }: MetricProps):
|
|
1386
|
+
declare function Metric({ value, label, badge, trend, icon, className, ...props }: MetricProps): react.JSX.Element;
|
|
1388
1387
|
declare namespace Metric {
|
|
1389
1388
|
var displayName: string;
|
|
1390
1389
|
}
|
|
@@ -1411,7 +1410,7 @@ interface DataTableProps<T> {
|
|
|
1411
1410
|
searchPlaceholder?: string;
|
|
1412
1411
|
className?: string;
|
|
1413
1412
|
}
|
|
1414
|
-
declare function DataTable<T extends Record<string, any>>({ columns, data, pageSize, searchable, searchPlaceholder, className, }: DataTableProps<T>):
|
|
1413
|
+
declare function DataTable<T extends Record<string, any>>({ columns, data, pageSize, searchable, searchPlaceholder, className, }: DataTableProps<T>): react.JSX.Element;
|
|
1415
1414
|
declare namespace DataTable {
|
|
1416
1415
|
var displayName: string;
|
|
1417
1416
|
}
|
|
@@ -1420,7 +1419,7 @@ interface DatePickerProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "v
|
|
|
1420
1419
|
value?: Date;
|
|
1421
1420
|
onChange?: (date: Date) => void;
|
|
1422
1421
|
}
|
|
1423
|
-
declare function DatePicker({ value, onChange, className, ...props }: DatePickerProps):
|
|
1422
|
+
declare function DatePicker({ value, onChange, className, ...props }: DatePickerProps): react.JSX.Element;
|
|
1424
1423
|
declare namespace DatePicker {
|
|
1425
1424
|
var displayName: string;
|
|
1426
1425
|
}
|
|
@@ -1431,10 +1430,10 @@ interface AppLayoutProps {
|
|
|
1431
1430
|
sidebarWidth?: number;
|
|
1432
1431
|
className?: string;
|
|
1433
1432
|
}
|
|
1434
|
-
declare function AppLayout({ sidebar, children, sidebarWidth, className }: AppLayoutProps):
|
|
1433
|
+
declare function AppLayout({ sidebar, children, sidebarWidth, className }: AppLayoutProps): react.JSX.Element;
|
|
1435
1434
|
|
|
1436
1435
|
interface SidebarGroup {
|
|
1437
|
-
label
|
|
1436
|
+
label?: string;
|
|
1438
1437
|
items: SidebarItemDef[];
|
|
1439
1438
|
}
|
|
1440
1439
|
interface SidebarItemDef {
|
|
@@ -1450,10 +1449,11 @@ interface SidebarProps {
|
|
|
1450
1449
|
className?: string;
|
|
1451
1450
|
header?: ReactNode;
|
|
1452
1451
|
footer?: ReactNode;
|
|
1452
|
+
children?: ReactNode;
|
|
1453
1453
|
collapsed?: boolean;
|
|
1454
1454
|
onCollapse?: (collapsed: boolean) => void;
|
|
1455
1455
|
}
|
|
1456
|
-
declare function Sidebar({ groups, className, header, footer, collapsed, onCollapse }: SidebarProps):
|
|
1456
|
+
declare function Sidebar({ groups, className, header, footer, children, collapsed, onCollapse }: SidebarProps): react.JSX.Element;
|
|
1457
1457
|
declare namespace Sidebar {
|
|
1458
1458
|
var displayName: string;
|
|
1459
1459
|
}
|