@tomny-dev/uzi 0.1.9 → 0.1.10-pr.3.11.1.0955f0c

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 (68) hide show
  1. package/README.md +132 -103
  2. package/dist/components/alert/Alert.d.ts +9 -0
  3. package/dist/components/alert/Alert.d.ts.map +1 -0
  4. package/dist/components/app-shell/AppShell.d.ts +46 -0
  5. package/dist/components/app-shell/AppShell.d.ts.map +1 -0
  6. package/dist/components/avatar/Avatar.d.ts +10 -0
  7. package/dist/components/avatar/Avatar.d.ts.map +1 -0
  8. package/dist/components/button/Button.d.ts +20 -0
  9. package/dist/components/button/Button.d.ts.map +1 -0
  10. package/dist/components/card/Card.d.ts +28 -0
  11. package/dist/components/card/Card.d.ts.map +1 -0
  12. package/dist/components/checkbox/Checkbox.d.ts +4 -0
  13. package/dist/components/checkbox/Checkbox.d.ts.map +1 -0
  14. package/dist/components/dropdown/Dropdown.d.ts +18 -0
  15. package/dist/components/dropdown/Dropdown.d.ts.map +1 -0
  16. package/dist/components/dropdown-menu/DropdownMenu.d.ts +24 -0
  17. package/dist/components/dropdown-menu/DropdownMenu.d.ts.map +1 -0
  18. package/dist/components/input/Input.d.ts +4 -0
  19. package/dist/components/input/Input.d.ts.map +1 -0
  20. package/dist/components/label/Label.d.ts +4 -0
  21. package/dist/components/label/Label.d.ts.map +1 -0
  22. package/dist/components/modal/Modal.d.ts +21 -0
  23. package/dist/components/modal/Modal.d.ts.map +1 -0
  24. package/dist/components/multi-select/MultiSelect.d.ts +21 -0
  25. package/dist/components/multi-select/MultiSelect.d.ts.map +1 -0
  26. package/dist/components/pill/Pill.d.ts +28 -0
  27. package/dist/components/pill/Pill.d.ts.map +1 -0
  28. package/dist/components/progress/Progress.d.ts +12 -0
  29. package/dist/components/progress/Progress.d.ts.map +1 -0
  30. package/dist/components/select/Select.d.ts +28 -0
  31. package/dist/components/select/Select.d.ts.map +1 -0
  32. package/dist/components/sidebar-nav/SidebarNav.d.ts +36 -0
  33. package/dist/components/sidebar-nav/SidebarNav.d.ts.map +1 -0
  34. package/dist/components/skeleton/Skeleton.d.ts +11 -0
  35. package/dist/components/skeleton/Skeleton.d.ts.map +1 -0
  36. package/dist/components/theme-toggle-button/ThemeToggleButton.d.ts +8 -0
  37. package/dist/components/theme-toggle-button/ThemeToggleButton.d.ts.map +1 -0
  38. package/dist/components/toast/ToastContext.d.ts +27 -0
  39. package/dist/components/toast/ToastContext.d.ts.map +1 -0
  40. package/dist/components/toast/types.d.ts +46 -0
  41. package/dist/components/toast/types.d.ts.map +1 -0
  42. package/dist/components/top-bar/TopBar.d.ts +20 -0
  43. package/dist/components/top-bar/TopBar.d.ts.map +1 -0
  44. package/dist/index.cjs +46 -1487
  45. package/dist/index.cjs.map +1 -1
  46. package/dist/index.d.ts +44 -390
  47. package/dist/index.d.ts.map +1 -0
  48. package/dist/index.js +6774 -1152
  49. package/dist/index.js.map +1 -1
  50. package/dist/server.cjs +7 -51
  51. package/dist/server.cjs.map +1 -1
  52. package/dist/server.d.ts +2 -16
  53. package/dist/server.d.ts.map +1 -0
  54. package/dist/server.js +13 -18
  55. package/dist/server.js.map +1 -1
  56. package/dist/style.css +1 -0
  57. package/dist/theme/ThemeProvider.d.ts +29 -0
  58. package/dist/theme/ThemeProvider.d.ts.map +1 -0
  59. package/dist/theme/constants.d.ts +5 -0
  60. package/dist/theme/constants.d.ts.map +1 -0
  61. package/dist/{server.d.cts → theme/themeScript.d.ts} +2 -3
  62. package/dist/theme/themeScript.d.ts.map +1 -0
  63. package/dist/utils/cx.d.ts +2 -0
  64. package/dist/utils/cx.d.ts.map +1 -0
  65. package/package.json +11 -7
  66. package/dist/index.css +0 -1428
  67. package/dist/index.css.map +0 -1
  68. package/dist/index.d.cts +0 -390
package/dist/index.d.ts CHANGED
@@ -1,390 +1,44 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import * as React from 'react';
3
- import { HTMLAttributes, ReactNode, ButtonHTMLAttributes, AnchorHTMLAttributes } from 'react';
4
- import * as AvatarPrimitive from '@radix-ui/react-avatar';
5
- import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
6
-
7
- type ButtonVariant = "default" | "primary" | "secondary" | "outline" | "ghost" | "destructive" | "link";
8
- type ButtonSize = "default" | "sm" | "md" | "lg" | "icon";
9
- type BaseProps = {
10
- variant?: ButtonVariant;
11
- size?: ButtonSize;
12
- className?: string;
13
- children?: React.ReactNode;
14
- asChild?: boolean;
15
- };
16
- type AsButton = BaseProps & React.ButtonHTMLAttributes<HTMLButtonElement> & {
17
- as?: "button";
18
- };
19
- type AsAnchor = BaseProps & React.AnchorHTMLAttributes<HTMLAnchorElement> & {
20
- as: "a";
21
- };
22
- type ButtonProps = AsButton | AsAnchor;
23
- declare function Button({ as, variant, size, className, children, asChild, ...rest }: ButtonProps): react_jsx_runtime.JSX.Element;
24
-
25
- type AvatarSize = "sm" | "md" | "lg";
26
- type AvatarProps = React.ComponentProps<typeof AvatarPrimitive.Root> & {
27
- size?: AvatarSize;
28
- };
29
- declare function Avatar({ className, size, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
30
- declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime.JSX.Element;
31
- declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime.JSX.Element;
32
-
33
- type CardTone = "default" | "muted" | "contrast";
34
- type CardPadding = "none" | "sm" | "md" | "lg";
35
- type CardElement = "div" | "section" | "article";
36
- type CardProps = HTMLAttributes<HTMLElement> & {
37
- /** Optional semantic element type. Defaults to `div`. */
38
- as?: CardElement;
39
- /** Visual tone; drives background/border CSS vars. */
40
- tone?: CardTone;
41
- /** Padding preset; maps to CSS variables so consumers can override globally. */
42
- padding?: CardPadding;
43
- /** Adds hover/focus affordance (lift + outline). */
44
- interactive?: boolean;
45
- };
46
- declare function Card({ as, tone, padding, interactive, className, children, ...rest }: CardProps): react_jsx_runtime.JSX.Element;
47
-
48
- type PillTone = "neutral" | "success" | "warning" | "info" | "danger";
49
- type PillSize = "sm" | "md";
50
- type PillElement = "span" | "div" | "button";
51
- type PillProps = HTMLAttributes<HTMLElement> & {
52
- /** Optional rendered element; defaults to `span`. */
53
- as?: PillElement;
54
- /** Visual tone; adjusts color and border. */
55
- tone?: PillTone;
56
- /** Size preset. */
57
- size?: PillSize;
58
- /** Leading icon node (not focusable). */
59
- icon?: ReactNode;
60
- };
61
- declare function Pill({ as, tone, size, icon, className, children, ...rest }: PillProps): react_jsx_runtime.JSX.Element;
62
-
63
- type ModalOverlayProps = {
64
- open: boolean;
65
- onClose: () => void;
66
- /** Extra class applied to the backdrop */
67
- className?: string;
68
- children: ReactNode;
69
- };
70
- declare function ModalOverlay({ open, onClose, className, children }: ModalOverlayProps): react_jsx_runtime.JSX.Element | null;
71
- type ModalSize = "sm" | "md" | "lg" | "xl";
72
- type ModalProps = {
73
- open: boolean;
74
- onClose: () => void;
75
- title: string;
76
- subtitle?: string;
77
- size?: ModalSize;
78
- children: ReactNode;
79
- footer?: ReactNode;
80
- };
81
- declare function Modal({ open, onClose, title, subtitle, size, children, footer }: ModalProps): react_jsx_runtime.JSX.Element;
82
-
83
- type AlertTone = "success" | "error" | "warning" | "info";
84
- type AlertProps = {
85
- tone: AlertTone;
86
- children: ReactNode;
87
- className?: string;
88
- };
89
- declare function Alert({ tone, children, className }: AlertProps): react_jsx_runtime.JSX.Element;
90
-
91
- /** Visual intent for a toast. Drives colors and icons. */
92
- type ToastType = "success" | "error" | "warning" | "info";
93
- /** Where toast stack is anchored in the viewport. */
94
- type ToastPosition = "top-right" | "top-left" | "top-center" | "bottom-right" | "bottom-left" | "bottom-center";
95
- /** A single toast entry. */
96
- interface Toast {
97
- id: string;
98
- message: string;
99
- type: ToastType;
100
- duration?: number;
101
- dismissible?: boolean;
102
- action?: {
103
- label: string;
104
- onClick: () => void;
105
- };
106
- }
107
- /** Options when pushing a toast. */
108
- interface ToastOptions {
109
- type?: ToastType;
110
- duration?: number;
111
- dismissible?: boolean;
112
- action?: {
113
- label: string;
114
- onClick: () => void;
115
- };
116
- }
117
- /** Provider configuration. */
118
- interface ToastConfig {
119
- position?: ToastPosition;
120
- maxToasts?: number;
121
- defaultDuration?: number;
122
- pauseOnHover?: boolean;
123
- pauseOnFocusLoss?: boolean;
124
- }
125
- /** Public API exposed by the toast context. */
126
- interface ToastContextValue {
127
- toasts: Toast[];
128
- push: (message: string, options?: ToastOptions) => string;
129
- success: (message: string, options?: Omit<ToastOptions, "type">) => string;
130
- error: (message: string, options?: Omit<ToastOptions, "type">) => string;
131
- warning: (message: string, options?: Omit<ToastOptions, "type">) => string;
132
- info: (message: string, options?: Omit<ToastOptions, "type">) => string;
133
- dismiss: (id: string) => void;
134
- dismissAll: () => void;
135
- }
136
-
137
- /**
138
- * Toast notification context provider.
139
- *
140
- * @remarks
141
- * Wrap your app (or a section) to enable `useToast` calls. Supports configurable placement,
142
- * maximum visible toasts, and pause behavior on hover or window blur.
143
- *
144
- * @param props.children - React subtree that can consume the toast context.
145
- * @param props.config - Optional provider configuration overrides.
146
- */
147
- declare function ToastProvider({ children, config, }: {
148
- children: ReactNode;
149
- config?: ToastConfig;
150
- }): react_jsx_runtime.JSX.Element;
151
- /**
152
- * Hook to access the toast API.
153
- *
154
- * @remarks
155
- * Exposes `push`, intent helpers (`success`, `error`, `warning`, `info`), and dismissal helpers.
156
- * Must be called within a `ToastProvider`.
157
- *
158
- * @throws Error if used outside of a `ToastProvider`.
159
- */
160
- declare function useToast(): ToastContextValue;
161
-
162
- type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
163
- declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
164
-
165
- type LabelProps = React.LabelHTMLAttributes<HTMLLabelElement>;
166
- declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
167
-
168
- type CheckboxProps = React.InputHTMLAttributes<HTMLInputElement>;
169
- declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
170
-
171
- interface DropdownOption {
172
- label: string;
173
- value: string;
174
- }
175
- interface DropdownProps {
176
- /** List of options to display in the menu. */
177
- options: DropdownOption[];
178
- /** Currently selected value. Use empty string for "no selection". */
179
- value: string;
180
- /** Called when the user selects an option. */
181
- onChange: (value: string) => void;
182
- /** Label shown when no option is selected. Defaults to "All". */
183
- placeholder?: string;
184
- /** Additional class name for the wrapper element. */
185
- className?: string;
186
- /** Whether to show the placeholder as a clearable option. Defaults to true. */
187
- allowClear?: boolean;
188
- /** Associates the trigger button with an external label element via its id. */
189
- "aria-labelledby"?: string;
190
- /** Provides an accessible label directly on the trigger button. */
191
- "aria-label"?: string;
192
- }
193
- declare function Dropdown({ options, value, onChange, placeholder, className, allowClear, "aria-labelledby": ariaLabelledBy, "aria-label": ariaLabel, }: DropdownProps): react_jsx_runtime.JSX.Element;
194
-
195
- declare function DropdownMenu(props: React.ComponentProps<typeof DropdownMenuPrimitive.Root>): react_jsx_runtime.JSX.Element;
196
- declare function DropdownMenuTrigger(props: React.ComponentProps<typeof DropdownMenuPrimitive.Trigger>): react_jsx_runtime.JSX.Element;
197
- declare function DropdownMenuGroup(props: React.ComponentProps<typeof DropdownMenuPrimitive.Group>): react_jsx_runtime.JSX.Element;
198
- declare function DropdownMenuPortal(props: React.ComponentProps<typeof DropdownMenuPrimitive.Portal>): react_jsx_runtime.JSX.Element;
199
- declare function DropdownMenuSub(props: React.ComponentProps<typeof DropdownMenuPrimitive.Sub>): react_jsx_runtime.JSX.Element;
200
- declare function DropdownMenuRadioGroup(props: React.ComponentProps<typeof DropdownMenuPrimitive.RadioGroup>): react_jsx_runtime.JSX.Element;
201
- declare function DropdownMenuContent({ className, sideOffset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Content>): react_jsx_runtime.JSX.Element;
202
- declare function DropdownMenuItem({ className, inset, variant, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Item> & {
203
- inset?: boolean;
204
- variant?: "default" | "destructive";
205
- }): react_jsx_runtime.JSX.Element;
206
- declare function DropdownMenuCheckboxItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.CheckboxItem>): react_jsx_runtime.JSX.Element;
207
- declare function DropdownMenuRadioItem({ className, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.RadioItem>): react_jsx_runtime.JSX.Element;
208
- declare function DropdownMenuLabel({ className, inset, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Label> & {
209
- inset?: boolean;
210
- }): react_jsx_runtime.JSX.Element;
211
- declare function DropdownMenuSeparator({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.Separator>): react_jsx_runtime.JSX.Element;
212
- declare function DropdownMenuSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubTrigger> & {
213
- inset?: boolean;
214
- }): react_jsx_runtime.JSX.Element;
215
- declare function DropdownMenuSubContent({ className, ...props }: React.ComponentProps<typeof DropdownMenuPrimitive.SubContent>): react_jsx_runtime.JSX.Element;
216
-
217
- type ThemeToggleButtonProps = Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> & {
218
- showLabel?: boolean;
219
- lightLabel?: string;
220
- darkLabel?: string;
221
- };
222
- declare function ThemeToggleButton({ showLabel, lightLabel, darkLabel, className, onClick, ...rest }: ThemeToggleButtonProps): react_jsx_runtime.JSX.Element;
223
-
224
- type TopBarProps = HTMLAttributes<HTMLElement> & {
225
- leading?: ReactNode;
226
- brand?: ReactNode;
227
- brandHref?: string;
228
- brandingLocation?: "left" | "center";
229
- /** Content rendered after the brand in the left region (e.g. breadcrumbs, search). */
230
- start?: ReactNode;
231
- /** Content rendered in the center region. */
232
- center?: ReactNode;
233
- actions?: ReactNode;
234
- showThemeToggle?: boolean;
235
- themeToggleProps?: ThemeToggleButtonProps;
236
- innerClassName?: string;
237
- isSticky?: boolean;
238
- sticky?: boolean;
239
- };
240
- declare function TopBar({ leading, brand, brandHref, brandingLocation, start, center, actions, showThemeToggle, themeToggleProps, className, innerClassName, isSticky, sticky, children, ...rest }: TopBarProps): react_jsx_runtime.JSX.Element;
241
-
242
- type AppShellProps = {
243
- /** Primary page content rendered in the main area. */
244
- children: ReactNode;
245
- /** Sidebar navigation or custom content. */
246
- sidebar: ReactNode;
247
- /** Brand element rendered next to the hamburger (text or JSX). */
248
- brand?: ReactNode;
249
- /** Optional brand href; when provided the brand renders as an anchor. */
250
- brandHref?: string;
251
- /** Optional content after the brand on the left side of the top bar. */
252
- topbarStart?: ReactNode;
253
- /** Optional content aligned to the right side of the top bar. */
254
- topbarEnd?: ReactNode;
255
- /** Optional built-in theme toggle for the top bar. */
256
- showThemeToggle?: boolean;
257
- themeToggleProps?: TopBarProps["themeToggleProps"];
258
- topBarBrandingLocation?: TopBarProps["brandingLocation"];
259
- /** Custom class names for styling overrides. */
260
- className?: string;
261
- sidebarClassName?: string;
262
- topbarClassName?: string;
263
- mainClassName?: string;
264
- /** Sets the sidebar width (e.g., `260`, `"18rem"`). */
265
- sidebarWidth?: number | string;
266
- /**
267
- * Closes the sidebar on mobile whenever this value changes.
268
- * Useful for reacting to route/pathname changes.
269
- */
270
- closeSidebarOnChangeKey?: unknown;
271
- /** Label for the hamburger button (aria-label). */
272
- hamburgerLabel?: string;
273
- /** Optional callback fired whenever the sidebar open state changes. */
274
- onSidebarToggle?: (open: boolean) => void;
275
- };
276
- /**
277
- * Responsive application shell with a collapsible sidebar and sticky top bar.
278
- *
279
- * - Sidebar opens by default on desktop, collapses on mobile.
280
- * - Closes on outside click/scroll/touch when in mobile mode.
281
- * - Provides optional hook to close the sidebar when a prop value changes
282
- * (e.g., route transitions).
283
- */
284
- declare function AppShell({ children, sidebar, brand, brandHref, topbarStart, topbarEnd, showThemeToggle, themeToggleProps, topBarBrandingLocation, className, sidebarClassName, topbarClassName, mainClassName, sidebarWidth, closeSidebarOnChangeKey, hamburgerLabel, onSidebarToggle, }: AppShellProps): react_jsx_runtime.JSX.Element;
285
-
286
- type SidebarNavItem = {
287
- label: string;
288
- href?: string;
289
- icon?: ReactNode;
290
- description?: ReactNode;
291
- badge?: ReactNode;
292
- active?: boolean;
293
- disabled?: boolean;
294
- title?: string;
295
- target?: AnchorHTMLAttributes<HTMLAnchorElement>["target"];
296
- rel?: AnchorHTMLAttributes<HTMLAnchorElement>["rel"];
297
- onClick?: () => void;
298
- };
299
- type SidebarNavSection = {
300
- id?: string;
301
- label?: ReactNode;
302
- items: SidebarNavItem[];
303
- };
304
- type SidebarNavProps = {
305
- items?: SidebarNavItem[];
306
- sections?: SidebarNavSection[];
307
- currentPath?: string;
308
- getIsActive?: (item: SidebarNavItem, currentPath?: string) => boolean;
309
- onItemClick?: (item: SidebarNavItem) => void;
310
- header?: ReactNode;
311
- footer?: ReactNode;
312
- ariaLabel?: string;
313
- collapsed?: boolean;
314
- iconSize?: number | string;
315
- className?: string;
316
- itemClassName?: string;
317
- sectionClassName?: string;
318
- };
319
- declare function SidebarNav({ items, sections, currentPath, getIsActive, onItemClick, header, footer, ariaLabel, collapsed, iconSize, className, itemClassName, sectionClassName, }: SidebarNavProps): react_jsx_runtime.JSX.Element;
320
-
321
- declare const UZI_THEMES: readonly ["light", "dark", "system"];
322
- declare const UZI_ACCENTS: readonly ["blue", "cyan", "violet", "emerald", "amber", "rose"];
323
-
324
- type UziTheme = typeof UZI_THEMES[number];
325
- type UziResolvedTheme = "light" | "dark";
326
- type UziAccent = typeof UZI_ACCENTS[number];
327
- type ThemeContextValue = {
328
- theme: UziTheme;
329
- resolvedTheme: UziResolvedTheme;
330
- accent: UziAccent;
331
- setTheme: (theme: UziTheme) => void;
332
- setAccent: (accent: UziAccent) => void;
333
- toggleTheme: () => void;
334
- };
335
- type ThemeProviderProps = {
336
- children: ReactNode;
337
- theme?: UziTheme;
338
- defaultTheme?: UziTheme;
339
- accent?: UziAccent;
340
- defaultAccent?: UziAccent;
341
- onThemeChange?: (theme: UziTheme) => void;
342
- onAccentChange?: (accent: UziAccent) => void;
343
- storageKey?: string;
344
- accentStorageKey?: string;
345
- disableStorage?: boolean;
346
- };
347
- declare function ThemeProvider({ children, theme, defaultTheme, accent, defaultAccent, onThemeChange, onAccentChange, storageKey, accentStorageKey, disableStorage, }: ThemeProviderProps): react_jsx_runtime.JSX.Element;
348
- declare function useTheme(): ThemeContextValue;
349
-
350
- declare function cx(...values: Array<string | false | null | undefined>): string;
351
-
352
- type SkeletonProps = HTMLAttributes<HTMLDivElement> & {
353
- /** Width as a CSS value. */
354
- width?: string;
355
- /** Height as a CSS value. */
356
- height?: string;
357
- /** Border radius preset. Defaults to "md". */
358
- radius?: "sm" | "md" | "lg" | "full";
359
- };
360
- declare function Skeleton({ width, height, radius, className, style, ...rest }: SkeletonProps): react_jsx_runtime.JSX.Element;
361
-
362
- type ProgressTone = "default" | "success" | "warning" | "danger";
363
- type ProgressProps = HTMLAttributes<HTMLDivElement> & {
364
- /** Value 0–100. */
365
- value: number;
366
- /** Visual tone. Defaults to "default". */
367
- tone?: ProgressTone;
368
- /** Accessible label. */
369
- "aria-label"?: string;
370
- };
371
- declare function Progress({ value, tone, className, "aria-label": ariaLabel, ...rest }: ProgressProps): react_jsx_runtime.JSX.Element;
372
-
373
- type SelectOption = {
374
- label: string;
375
- value: string;
376
- };
377
- type SelectProps = Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "onChange"> & {
378
- options: SelectOption[];
379
- value: string;
380
- onChange: (value: string) => void;
381
- placeholder?: string;
382
- };
383
- declare const Select: React.ForwardRefExoticComponent<Omit<React.SelectHTMLAttributes<HTMLSelectElement>, "onChange"> & {
384
- options: SelectOption[];
385
- value: string;
386
- onChange: (value: string) => void;
387
- placeholder?: string;
388
- } & React.RefAttributes<HTMLSelectElement>>;
389
-
390
- export { Alert, type AlertProps, type AlertTone, AppShell, type AppShellProps, Avatar, AvatarFallback, AvatarImage, type AvatarProps, type AvatarSize, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardPadding, type CardProps, type CardTone, Checkbox, type CheckboxProps, Dropdown, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, type DropdownOption, type DropdownProps, Input, type InputProps, Label, type LabelProps, Modal, ModalOverlay, type ModalOverlayProps, type ModalProps, type ModalSize, Pill, type PillProps, type PillSize, type PillTone, Progress, type ProgressProps, type ProgressTone, Select, type SelectOption, type SelectProps, SidebarNav, type SidebarNavItem, type SidebarNavProps, type SidebarNavSection, Skeleton, type SkeletonProps, ThemeProvider, ThemeToggleButton, type ThemeToggleButtonProps, type Toast, type ToastConfig, type ToastContextValue, type ToastOptions, type ToastPosition, ToastProvider, type ToastType, TopBar, type TopBarProps, type UziAccent, type UziResolvedTheme, type UziTheme, cx, useTheme, useToast };
1
+ import "./theme/theme.css";
2
+ export type { ButtonProps, ButtonVariant, ButtonSize } from "./components/button/Button";
3
+ export { Button } from "./components/button/Button";
4
+ export type { AvatarProps, AvatarSize } from "./components/avatar/Avatar";
5
+ export { Avatar, AvatarFallback, AvatarImage } from "./components/avatar/Avatar";
6
+ export type { CardProps, CardPadding, CardTone } from "./components/card/Card";
7
+ export { Card } from "./components/card/Card";
8
+ export type { PillProps, PillSize, PillTone } from "./components/pill/Pill";
9
+ export { Pill } from "./components/pill/Pill";
10
+ export type { ModalOverlayProps, ModalProps, ModalSize } from "./components/modal/Modal";
11
+ export { Modal, ModalOverlay } from "./components/modal/Modal";
12
+ export type { AlertProps, AlertTone } from "./components/alert/Alert";
13
+ export { Alert } from "./components/alert/Alert";
14
+ export { ToastProvider, useToast } from "./components/toast/ToastContext";
15
+ export type { Toast, ToastConfig, ToastContextValue, ToastOptions, ToastPosition, ToastType, } from "./components/toast/types";
16
+ export type { InputProps } from "./components/input/Input";
17
+ export { Input } from "./components/input/Input";
18
+ export type { LabelProps } from "./components/label/Label";
19
+ export { Label } from "./components/label/Label";
20
+ export type { CheckboxProps } from "./components/checkbox/Checkbox";
21
+ export { Checkbox } from "./components/checkbox/Checkbox";
22
+ export type { MultiSelectProps, MultiSelectOption } from "./components/multi-select/MultiSelect";
23
+ export { MultiSelect } from "./components/multi-select/MultiSelect";
24
+ export type { DropdownProps, DropdownOption } from "./components/dropdown/Dropdown";
25
+ export { Dropdown } from "./components/dropdown/Dropdown";
26
+ export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, } from "./components/dropdown-menu/DropdownMenu";
27
+ export type { AppShellProps } from "./components/app-shell/AppShell";
28
+ export { AppShell } from "./components/app-shell/AppShell";
29
+ export type { SidebarNavItem, SidebarNavProps, SidebarNavSection } from "./components/sidebar-nav/SidebarNav";
30
+ export { SidebarNav } from "./components/sidebar-nav/SidebarNav";
31
+ export type { TopBarProps } from "./components/top-bar/TopBar";
32
+ export { TopBar } from "./components/top-bar/TopBar";
33
+ export type { ThemeToggleButtonProps } from "./components/theme-toggle-button/ThemeToggleButton";
34
+ export { ThemeToggleButton } from "./components/theme-toggle-button/ThemeToggleButton";
35
+ export type { UziAccent, UziResolvedTheme, UziTheme } from "./theme/ThemeProvider";
36
+ export { ThemeProvider, useTheme } from "./theme/ThemeProvider";
37
+ export { cx } from "./utils/cx";
38
+ export type { SkeletonProps } from "./components/skeleton/Skeleton";
39
+ export { Skeleton } from "./components/skeleton/Skeleton";
40
+ export type { ProgressProps, ProgressTone } from "./components/progress/Progress";
41
+ export { Progress } from "./components/progress/Progress";
42
+ export type { SelectProps, SelectOption } from "./components/select/Select";
43
+ export { Select } from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