@soygalo/ui 0.0.1 → 0.1.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.
Files changed (230) hide show
  1. package/dist/controls/Accordion.js +42 -0
  2. package/dist/controls/ActionMenu.js +64 -0
  3. package/dist/controls/AlertDialog.js +62 -0
  4. package/dist/controls/ChipGroup.js +90 -0
  5. package/dist/controls/Collapsible.js +6 -0
  6. package/dist/controls/Command.js +88 -0
  7. package/dist/controls/ConfirmDialog.js +42 -0
  8. package/dist/controls/Dialog.js +66 -0
  9. package/dist/controls/FilterPopover.js +161 -0
  10. package/dist/controls/Kbd.js +12 -0
  11. package/dist/controls/Popover.js +55 -0
  12. package/dist/controls/SegmentedControl.js +52 -0
  13. package/dist/controls/Sheet.js +123 -0
  14. package/dist/controls/Tooltip.js +15 -0
  15. package/dist/controls/overlay-container.js +20 -0
  16. package/dist/controls/return-focus.js +16 -0
  17. package/dist/controls.js +17 -0
  18. package/dist/data-attr.js +5 -0
  19. package/dist/data-display/Avatar.js +47 -0
  20. package/dist/data-display/Badge.js +88 -0
  21. package/dist/data-display/Board.js +73 -0
  22. package/dist/data-display/Card.js +141 -0
  23. package/dist/data-display/ChatBubble.js +44 -0
  24. package/dist/data-display/Code.js +32 -0
  25. package/dist/data-display/DataTable.js +114 -0
  26. package/dist/data-display/IconTile.js +60 -0
  27. package/dist/data-display/Item.js +128 -0
  28. package/dist/data-display/Overline.js +13 -0
  29. package/dist/data-display/Separator.js +19 -0
  30. package/dist/data-display/Stat.js +36 -0
  31. package/dist/data-display/TablePagination.js +98 -0
  32. package/dist/data-display/Timeline.js +58 -0
  33. package/dist/data-display/chart-colors.js +36 -0
  34. package/dist/data-display.js +16 -0
  35. package/dist/feedback/Callout.js +107 -0
  36. package/dist/feedback/FeedbackState.js +55 -0
  37. package/dist/feedback/LoadingState.js +24 -0
  38. package/dist/feedback/Progress.js +51 -0
  39. package/dist/feedback/ProgressRing.js +50 -0
  40. package/dist/feedback/Skeleton.js +12 -0
  41. package/dist/feedback/SplashScreen.js +145 -0
  42. package/dist/feedback/StatusDot.js +34 -0
  43. package/dist/feedback/Stepper.js +48 -0
  44. package/dist/feedback/Toaster.js +38 -0
  45. package/dist/feedback.js +11 -0
  46. package/dist/fonts.css +7 -0
  47. package/dist/forms/Button.js +128 -0
  48. package/dist/forms/ButtonGroup.js +14 -0
  49. package/dist/forms/Calendar.js +51 -0
  50. package/dist/forms/Checkbox.js +30 -0
  51. package/dist/forms/Combobox.js +118 -0
  52. package/dist/forms/CopyButton.js +24 -0
  53. package/dist/forms/DatePicker.js +146 -0
  54. package/dist/forms/DateTimePicker.js +97 -0
  55. package/dist/forms/EditableValue.js +49 -0
  56. package/dist/forms/FileUpload.js +99 -0
  57. package/dist/forms/FormField.js +47 -0
  58. package/dist/forms/Input.js +58 -0
  59. package/dist/forms/Label.js +42 -0
  60. package/dist/forms/MultiSelect.js +132 -0
  61. package/dist/forms/QuantityStepper.js +71 -0
  62. package/dist/forms/RadioGroup.js +21 -0
  63. package/dist/forms/SearchField.js +55 -0
  64. package/dist/forms/Select.js +79 -0
  65. package/dist/forms/Slider.js +23 -0
  66. package/dist/forms/Switch.js +23 -0
  67. package/dist/forms/TagInput.js +64 -0
  68. package/dist/forms/Textarea.js +41 -0
  69. package/dist/forms/control-size.js +44 -0
  70. package/dist/forms/use-copy-to-clipboard.js +23 -0
  71. package/dist/forms.js +25 -0
  72. package/dist/icons/create-icon.js +20 -0
  73. package/dist/icons/glyphs.js +9 -0
  74. package/dist/icons.js +3 -0
  75. package/dist/index.js +101 -0
  76. package/dist/layout/FilterBar.js +29 -0
  77. package/dist/layout/Page.js +44 -0
  78. package/dist/layout/PageHeader.js +65 -0
  79. package/dist/layout/PageShell.js +20 -0
  80. package/dist/layout/PageSurface.js +19 -0
  81. package/dist/layout/Resizable.js +21 -0
  82. package/dist/layout/ScrollArea.js +35 -0
  83. package/dist/layout/SelectionBar.js +41 -0
  84. package/dist/layout.js +9 -0
  85. package/dist/lite/Contact.js +59 -0
  86. package/dist/lite/Coupon.js +56 -0
  87. package/dist/lite/Loading.js +79 -0
  88. package/dist/lite/Order.js +216 -0
  89. package/dist/lite/Product.js +124 -0
  90. package/dist/lite/Resolver.js +181 -0
  91. package/dist/lite/Shell.js +178 -0
  92. package/dist/lite/Smart.js +48 -0
  93. package/dist/lite.js +9 -0
  94. package/dist/navigation/ApplicationSidebar.js +101 -0
  95. package/dist/navigation/NavigationRail.js +45 -0
  96. package/dist/navigation/SidebarAccountSummary.js +20 -0
  97. package/dist/navigation/SidebarBrandContent.js +24 -0
  98. package/dist/navigation/SidebarNavigationItem.js +14 -0
  99. package/dist/navigation/SidebarSubnavigation.js +26 -0
  100. package/dist/navigation/navigation-path.js +21 -0
  101. package/dist/navigation/sidebar-styles.js +17 -0
  102. package/dist/navigation.js +9 -0
  103. package/dist/password-manager.js +11 -0
  104. package/dist/preflight.css +445 -0
  105. package/dist/sidebar/primitives.js +253 -0
  106. package/dist/sidebar/use-sidebar-shortcut.js +15 -0
  107. package/dist/sidebar.js +2 -0
  108. package/dist/styles.css +3773 -0
  109. package/dist/tabs/Tabs.js +48 -0
  110. package/dist/tabs.js +2 -0
  111. package/dist/tailwind-preset.js +213 -0
  112. package/dist/type-scale.js +45 -0
  113. package/dist/types/src/controls/Accordion.d.ts +10 -0
  114. package/dist/types/src/controls/ActionMenu.d.ts +17 -0
  115. package/dist/types/src/controls/AlertDialog.d.ts +15 -0
  116. package/dist/types/src/controls/ChipGroup.d.ts +43 -0
  117. package/dist/types/src/controls/Collapsible.d.ts +4 -0
  118. package/dist/types/src/controls/Command.d.ts +83 -0
  119. package/dist/types/src/controls/ConfirmDialog.d.ts +17 -0
  120. package/dist/types/src/controls/Dialog.d.ts +20 -0
  121. package/dist/types/src/controls/FilterPopover.d.ts +47 -0
  122. package/dist/types/src/controls/Kbd.d.ts +2 -0
  123. package/dist/types/src/controls/Popover.d.ts +31 -0
  124. package/dist/types/src/controls/SegmentedControl.d.ts +32 -0
  125. package/dist/types/src/controls/Sheet.d.ts +34 -0
  126. package/dist/types/src/controls/Tooltip.d.ts +6 -0
  127. package/dist/types/src/controls/index.d.ts +16 -0
  128. package/dist/types/src/controls/overlay-container.d.ts +11 -0
  129. package/dist/types/src/controls/return-focus.d.ts +6 -0
  130. package/dist/types/src/data-attr.d.ts +3 -0
  131. package/dist/types/src/data-display/Avatar.d.ts +30 -0
  132. package/dist/types/src/data-display/Badge.d.ts +28 -0
  133. package/dist/types/src/data-display/Board.d.ts +21 -0
  134. package/dist/types/src/data-display/Card.d.ts +45 -0
  135. package/dist/types/src/data-display/ChatBubble.d.ts +24 -0
  136. package/dist/types/src/data-display/Code.d.ts +25 -0
  137. package/dist/types/src/data-display/DataTable.d.ts +74 -0
  138. package/dist/types/src/data-display/IconTile.d.ts +22 -0
  139. package/dist/types/src/data-display/Item.d.ts +24 -0
  140. package/dist/types/src/data-display/Overline.d.ts +5 -0
  141. package/dist/types/src/data-display/Separator.d.ts +9 -0
  142. package/dist/types/src/data-display/Stat.d.ts +17 -0
  143. package/dist/types/src/data-display/TablePagination.d.ts +23 -0
  144. package/dist/types/src/data-display/Timeline.d.ts +16 -0
  145. package/dist/types/src/data-display/chart-colors.d.ts +51 -0
  146. package/dist/types/src/data-display/index.d.ts +15 -0
  147. package/dist/types/src/feedback/Callout.d.ts +17 -0
  148. package/dist/types/src/feedback/FeedbackState.d.ts +16 -0
  149. package/dist/types/src/feedback/LoadingState.d.ts +7 -0
  150. package/dist/types/src/feedback/Progress.d.ts +37 -0
  151. package/dist/types/src/feedback/ProgressRing.d.ts +11 -0
  152. package/dist/types/src/feedback/Skeleton.d.ts +2 -0
  153. package/dist/types/src/feedback/SplashScreen.d.ts +11 -0
  154. package/dist/types/src/feedback/StatusDot.d.ts +27 -0
  155. package/dist/types/src/feedback/Stepper.d.ts +16 -0
  156. package/dist/types/src/feedback/Toaster.d.ts +4 -0
  157. package/dist/types/src/feedback/index.d.ts +10 -0
  158. package/dist/types/src/forms/Button.d.ts +26 -0
  159. package/dist/types/src/forms/ButtonGroup.d.ts +7 -0
  160. package/dist/types/src/forms/Calendar.d.ts +4 -0
  161. package/dist/types/src/forms/Checkbox.d.ts +11 -0
  162. package/dist/types/src/forms/Combobox.d.ts +51 -0
  163. package/dist/types/src/forms/CopyButton.d.ts +8 -0
  164. package/dist/types/src/forms/DatePicker.d.ts +34 -0
  165. package/dist/types/src/forms/DateTimePicker.d.ts +20 -0
  166. package/dist/types/src/forms/EditableValue.d.ts +14 -0
  167. package/dist/types/src/forms/FileUpload.d.ts +28 -0
  168. package/dist/types/src/forms/FormField.d.ts +12 -0
  169. package/dist/types/src/forms/Input.d.ts +11 -0
  170. package/dist/types/src/forms/Label.d.ts +11 -0
  171. package/dist/types/src/forms/MultiSelect.d.ts +45 -0
  172. package/dist/types/src/forms/QuantityStepper.d.ts +36 -0
  173. package/dist/types/src/forms/RadioGroup.d.ts +4 -0
  174. package/dist/types/src/forms/SearchField.d.ts +13 -0
  175. package/dist/types/src/forms/Select.d.ts +15 -0
  176. package/dist/types/src/forms/Slider.d.ts +9 -0
  177. package/dist/types/src/forms/Switch.d.ts +14 -0
  178. package/dist/types/src/forms/TagInput.d.ts +19 -0
  179. package/dist/types/src/forms/Textarea.d.ts +10 -0
  180. package/dist/types/src/forms/control-size.d.ts +17 -0
  181. package/dist/types/src/forms/index.d.ts +24 -0
  182. package/dist/types/src/forms/use-copy-to-clipboard.d.ts +5 -0
  183. package/dist/types/src/icons/create-icon.d.ts +16 -0
  184. package/dist/types/src/icons/glyphs.d.ts +294 -0
  185. package/dist/types/src/icons/index.d.ts +2 -0
  186. package/dist/types/src/index.d.ts +12 -0
  187. package/dist/types/src/layout/FilterBar.d.ts +11 -0
  188. package/dist/types/src/layout/Page.d.ts +19 -0
  189. package/dist/types/src/layout/PageHeader.d.ts +14 -0
  190. package/dist/types/src/layout/PageShell.d.ts +8 -0
  191. package/dist/types/src/layout/PageSurface.d.ts +13 -0
  192. package/dist/types/src/layout/Resizable.d.ts +23 -0
  193. package/dist/types/src/layout/ScrollArea.d.ts +9 -0
  194. package/dist/types/src/layout/SelectionBar.d.ts +15 -0
  195. package/dist/types/src/layout/index.d.ts +8 -0
  196. package/dist/types/src/lite/Contact.d.ts +14 -0
  197. package/dist/types/src/lite/Coupon.d.ts +11 -0
  198. package/dist/types/src/lite/Loading.d.ts +13 -0
  199. package/dist/types/src/lite/Order.d.ts +49 -0
  200. package/dist/types/src/lite/Product.d.ts +16 -0
  201. package/dist/types/src/lite/Resolver.d.ts +41 -0
  202. package/dist/types/src/lite/Shell.d.ts +44 -0
  203. package/dist/types/src/lite/Smart.d.ts +9 -0
  204. package/dist/types/src/lite/index.d.ts +8 -0
  205. package/dist/types/src/navigation/ApplicationSidebar.d.ts +15 -0
  206. package/dist/types/src/navigation/NavigationRail.d.ts +21 -0
  207. package/dist/types/src/navigation/SidebarAccountSummary.d.ts +8 -0
  208. package/dist/types/src/navigation/SidebarBrandContent.d.ts +7 -0
  209. package/dist/types/src/navigation/SidebarNavigationItem.d.ts +9 -0
  210. package/dist/types/src/navigation/SidebarSubnavigation.d.ts +15 -0
  211. package/dist/types/src/navigation/index.d.ts +28 -0
  212. package/dist/types/src/navigation/navigation-path.d.ts +9 -0
  213. package/dist/types/src/navigation/sidebar-styles.d.ts +14 -0
  214. package/dist/types/src/password-manager.d.ts +3 -0
  215. package/dist/types/src/sidebar/index.d.ts +1 -0
  216. package/dist/types/src/sidebar/primitives.d.ts +51 -0
  217. package/dist/types/src/sidebar/use-sidebar-shortcut.d.ts +9 -0
  218. package/dist/types/src/tabs/Tabs.d.ts +21 -0
  219. package/dist/types/src/tabs/index.d.ts +1 -0
  220. package/dist/types/src/type-scale.d.ts +51 -0
  221. package/dist/types/src/use-media-query.d.ts +2 -0
  222. package/dist/types/src/utils.d.ts +5 -0
  223. package/dist/types/tailwind-preset.d.ts +214 -0
  224. package/dist/use-media-query.js +12 -0
  225. package/dist/utils.js +24 -0
  226. package/eslint/eslint-plugin-galo-ds.js +314 -0
  227. package/eslint/eslint.design-system.js +99 -0
  228. package/eslint/index.js +9 -0
  229. package/package.json +117 -1
  230. package/src/styles.css +540 -0
@@ -0,0 +1,34 @@
1
+ import * as SheetPrimitive from "@radix-ui/react-dialog";
2
+ import { type VariantProps } from "class-variance-authority";
3
+ import * as React from "react";
4
+ declare const Sheet: React.FC<SheetPrimitive.DialogProps>;
5
+ declare const SheetTrigger: React.ForwardRefExoticComponent<SheetPrimitive.DialogTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ declare const SheetClose: React.ForwardRefExoticComponent<SheetPrimitive.DialogCloseProps & React.RefAttributes<HTMLButtonElement>>;
7
+ declare const SheetPortal: React.FC<SheetPrimitive.DialogPortalProps>;
8
+ declare const SheetOverlay: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogOverlayProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
9
+ declare const sheetVariants: (props?: {
10
+ side?: "bottom" | "left" | "responsive" | "right" | "top";
11
+ size?: "full" | "lg" | "md";
12
+ } & import("class-variance-authority/types").ClassProp) => string;
13
+ interface SheetContentProps extends React.ComponentPropsWithoutRef<typeof SheetPrimitive.Content>, VariantProps<typeof sheetVariants> {
14
+ closeLabel?: string;
15
+ showClose?: boolean;
16
+ }
17
+ declare const SheetContent: React.ForwardRefExoticComponent<SheetContentProps & React.RefAttributes<HTMLDivElement>>;
18
+ declare function SheetHeader({ className, density, ...props }: React.HTMLAttributes<HTMLDivElement> & {
19
+ density?: "default" | "compact";
20
+ }): React.JSX.Element;
21
+ declare namespace SheetHeader {
22
+ var displayName: string;
23
+ }
24
+ declare function SheetFooter({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
25
+ declare namespace SheetFooter {
26
+ var displayName: string;
27
+ }
28
+ declare function SheetBody({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
29
+ declare namespace SheetBody {
30
+ var displayName: string;
31
+ }
32
+ declare const SheetTitle: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
33
+ declare const SheetDescription: React.ForwardRefExoticComponent<Omit<SheetPrimitive.DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
34
+ export { Sheet, SheetClose, SheetBody, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger };
@@ -0,0 +1,6 @@
1
+ import * as React from 'react';
2
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
+ export declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
4
+ export declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
5
+ export declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
6
+ export declare const TooltipContent: React.ForwardRefExoticComponent<Omit<TooltipPrimitive.TooltipContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,16 @@
1
+ export * from './SegmentedControl';
2
+ export * from './Dialog';
3
+ export * from './Sheet';
4
+ export * from './AlertDialog';
5
+ export * from './ActionMenu';
6
+ export * from './Accordion';
7
+ export * from './Popover';
8
+ export * from './Tooltip';
9
+ export * from './Collapsible';
10
+ export * from './Command';
11
+ export { defaultFilter, useCommandState } from 'cmdk';
12
+ export * from './ConfirmDialog';
13
+ export * from './Kbd';
14
+ export * from './FilterPopover';
15
+ export * from './ChipGroup';
16
+ export * from './overlay-container';
@@ -0,0 +1,11 @@
1
+ import * as React from 'react';
2
+ export declare const useOverlayContainer: () => HTMLElement;
3
+ /** Callback ref + provider value for a Sheet/Dialog content element. */
4
+ export declare function useOverlayContainerRef<T extends HTMLElement>(forwardedRef: React.ForwardedRef<T>): {
5
+ ref: (node: T | null) => void;
6
+ element: T;
7
+ };
8
+ export declare const OverlayContainerProvider: ({ value, children }: {
9
+ value: HTMLElement | null;
10
+ children: React.ReactNode;
11
+ }) => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ interface AutoFocusHandlers {
2
+ onOpenAutoFocus?: (event: Event) => void;
3
+ onCloseAutoFocus?: (event: Event) => void;
4
+ }
5
+ export declare const useReturnFocus: ({ onOpenAutoFocus, onCloseAutoFocus }: AutoFocusHandlers) => Required<AutoFocusHandlers>;
6
+ export {};
@@ -0,0 +1,3 @@
1
+ import type { ReactNode } from 'react';
2
+ export declare const slugify: (text: string) => string | undefined;
3
+ export declare const resolveDataAttr: (explicit: string | undefined, children: ReactNode) => string | undefined;
@@ -0,0 +1,30 @@
1
+ import * as React from 'react';
2
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
3
+ import type { IdentityColor } from './chart-colors';
4
+ declare const AVATAR_SIZE: {
5
+ readonly xs: 'size-6 text-label-xs';
6
+ readonly sm: 'size-8 text-body-xs';
7
+ readonly md: 'size-10 text-body-md';
8
+ readonly lg: 'size-12 text-body-lg';
9
+ readonly xl: 'size-20 text-heading-md';
10
+ };
11
+ declare const FALLBACK_TONE: {
12
+ readonly neutral: 'bg-muted text-muted-foreground';
13
+ readonly primary: 'bg-primary text-primary-foreground';
14
+ readonly 'primary-soft': 'bg-primary/10 text-primary';
15
+ readonly accent: 'bg-accent text-accent-foreground';
16
+ };
17
+ export interface AvatarProps extends React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root> {
18
+ size?: keyof typeof AVATAR_SIZE;
19
+ /** Ring that separates the avatar from its surface (stacked avatars, avatars over photos). */
20
+ bordered?: boolean;
21
+ }
22
+ export declare const Avatar: React.ForwardRefExoticComponent<AvatarProps & React.RefAttributes<HTMLSpanElement>>;
23
+ export declare const AvatarImage: React.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarImageProps & React.RefAttributes<HTMLImageElement>, "ref"> & React.RefAttributes<HTMLImageElement>>;
24
+ export interface AvatarFallbackProps extends Omit<React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>, 'color'> {
25
+ tone?: keyof typeof FALLBACK_TONE;
26
+ /** Data-driven color: a vivid color (white initials) or a soft `IdentityColor` pair; overrides `tone`. */
27
+ color?: string | IdentityColor;
28
+ }
29
+ export declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>;
30
+ export {};
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ export type BadgeVariant = 'solid' | 'soft' | 'outline';
4
+ export type BadgeTone = 'neutral' | 'muted' | 'primary' | 'tertiary' | 'success' | 'warning' | 'info' | 'error' | 'inverse';
5
+ export declare const BADGE_APPEARANCES: {
6
+ variant: BadgeVariant;
7
+ tone: BadgeTone;
8
+ }[];
9
+ declare const badgeBase: (props?: {
10
+ size?: "lg" | "md" | "sm" | "xs";
11
+ placement?: "corner" | "inline";
12
+ counter?: boolean;
13
+ caps?: boolean;
14
+ dashed?: boolean;
15
+ } & import("class-variance-authority/types").ClassProp) => string;
16
+ export interface BadgeStyleOptions extends VariantProps<typeof badgeBase> {
17
+ variant?: BadgeVariant;
18
+ tone?: BadgeTone;
19
+ }
20
+ export type BadgeAppearance = Pick<BadgeStyleOptions, 'variant' | 'tone' | 'dashed'>;
21
+ export declare const badgeVariants: ({ variant, tone, size, placement, counter, caps, dashed }?: BadgeStyleOptions) => string;
22
+ export interface BadgeProps extends React.HTMLAttributes<HTMLSpanElement>, BadgeStyleOptions {
23
+ onRemove?: () => void;
24
+ removeLabel?: string;
25
+ removeDataAttr?: string;
26
+ }
27
+ export declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLSpanElement>>;
28
+ export {};
@@ -0,0 +1,21 @@
1
+ import * as React from 'react';
2
+ export interface BoardProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ trackClassName?: string;
4
+ }
5
+ export declare const Board: React.ForwardRefExoticComponent<BoardProps & React.RefAttributes<HTMLDivElement>>;
6
+ export interface BoardColumnProps extends Omit<React.HTMLAttributes<HTMLElement>, 'title'> {
7
+ title: React.ReactNode;
8
+ description?: React.ReactNode;
9
+ count?: React.ReactNode;
10
+ indicator?: React.ReactNode;
11
+ actions?: React.ReactNode;
12
+ footer?: React.ReactNode;
13
+ variant?: 'default' | 'solid';
14
+ layout?: 'board' | 'panel';
15
+ }
16
+ export declare const BoardColumn: React.ForwardRefExoticComponent<BoardColumnProps & React.RefAttributes<HTMLElement>>;
17
+ export interface BoardCardProps extends React.HTMLAttributes<HTMLElement> {
18
+ selected?: boolean;
19
+ padding?: 'md' | 'none';
20
+ }
21
+ export declare const BoardCard: React.ForwardRefExoticComponent<BoardCardProps & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,45 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ export type CardVariant = 'default' | 'elevated' | 'outline' | 'soft' | 'inset' | 'dashed' | 'solid' | 'pane' | 'flush' | 'bare';
4
+ export type CardTone = 'neutral' | 'primary' | 'success' | 'warning' | 'info' | 'error';
5
+ export declare const CARD_VARIANTS: CardVariant[];
6
+ export declare const CARD_TONES: CardTone[];
7
+ declare const cardModifiers: (props?: {
8
+ accent?: "error" | "info" | "muted" | "primary" | "success" | "warning";
9
+ shape?: "pill";
10
+ interactive?: boolean;
11
+ selected?: boolean;
12
+ dimmed?: boolean;
13
+ } & import("class-variance-authority/types").ClassProp) => string;
14
+ export interface CardStyleOptions extends VariantProps<typeof cardModifiers> {
15
+ variant?: CardVariant;
16
+ tone?: CardTone;
17
+ }
18
+ export declare const cardVariants: ({ variant, tone, accent, shape, interactive, selected, dimmed }?: CardStyleOptions) => string;
19
+ export interface CardProps extends React.HTMLAttributes<HTMLElement>, CardStyleOptions {
20
+ as?: 'div' | 'button';
21
+ asChild?: boolean;
22
+ type?: 'button' | 'submit';
23
+ disabled?: boolean;
24
+ 'data-attr'?: string;
25
+ }
26
+ export declare const Card: React.ForwardRefExoticComponent<CardProps & React.RefAttributes<HTMLElement>>;
27
+ export interface CardHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
28
+ /** Status tint of the header band (board columns, grouped sections). */
29
+ tone?: 'neutral' | 'primary' | 'info' | 'success' | 'warning' | 'error';
30
+ /** Clickable header (collapsible cards): hover tint + pointer. */
31
+ interactive?: boolean;
32
+ /** Tinted header band. */
33
+ muted?: boolean;
34
+ /** Bottom rule between header and content. */
35
+ divided?: boolean;
36
+ }
37
+ export declare const CardHeader: React.ForwardRefExoticComponent<CardHeaderProps & React.RefAttributes<HTMLDivElement>>;
38
+ export interface CardTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
39
+ size?: 'sm' | 'md' | 'lg';
40
+ }
41
+ export declare const CardTitle: React.ForwardRefExoticComponent<CardTitleProps & React.RefAttributes<HTMLHeadingElement>>;
42
+ export declare const CardDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
43
+ export declare const CardContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
44
+ export declare const CardFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
45
+ export {};
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ export interface ChatBubbleProps extends React.HTMLAttributes<HTMLDivElement> {
3
+ /** `out`: sent by the business (right, green). `in`: sent by the customer (left, white). */
4
+ direction?: 'in' | 'out';
5
+ /** Squares the top corner on the sender side, marking the first bubble of a group. */
6
+ tail?: boolean;
7
+ }
8
+ export declare const ChatBubble: React.ForwardRefExoticComponent<ChatBubbleProps & React.RefAttributes<HTMLDivElement>>;
9
+ /** Attachment slot inside a bubble: image, document or its placeholder. */
10
+ export declare const ChatBubbleMedia: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
11
+ export interface ChatBubbleQuoteProps extends React.HTMLAttributes<HTMLDivElement> {
12
+ /** `out`: quoting a message sent by the business. */
13
+ direction?: 'in' | 'out';
14
+ }
15
+ /** Quoted (replied-to) message inside a bubble, with the left accent bar. */
16
+ export declare const ChatBubbleQuote: React.ForwardRefExoticComponent<ChatBubbleQuoteProps & React.RefAttributes<HTMLDivElement>>;
17
+ /** Timestamp / ticks line at the end of a bubble. */
18
+ export declare const ChatBubbleMeta: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLSpanElement> & React.RefAttributes<HTMLSpanElement>>;
19
+ export interface ChatWallpaperProps extends React.HTMLAttributes<HTMLDivElement> {
20
+ /** Rounded, bordered frame (a standalone preview); without it the wallpaper fills its parent. */
21
+ framed?: boolean;
22
+ }
23
+ /** WhatsApp chat background behind ChatBubble previews. */
24
+ export declare const ChatWallpaper: React.ForwardRefExoticComponent<ChatWallpaperProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,25 @@
1
+ import * as React from 'react';
2
+ declare const CODE_TONE: {
3
+ readonly neutral: 'border-border bg-muted/40 text-foreground';
4
+ readonly warning: 'border-warning-border bg-warning-bg text-warning';
5
+ readonly error: 'border-error-border bg-error-bg text-error';
6
+ };
7
+ export interface CodeProps extends React.HTMLAttributes<HTMLElement> {
8
+ tone?: keyof typeof CODE_TONE;
9
+ }
10
+ /** Inline code: identifiers, SKUs, keys, tokens inside running text. */
11
+ export declare const Code: React.ForwardRefExoticComponent<CodeProps & React.RefAttributes<HTMLElement>>;
12
+ export interface CodeBlockProps extends React.HTMLAttributes<HTMLPreElement> {
13
+ tone?: keyof typeof CODE_TONE;
14
+ size?: 'xs' | 'sm';
15
+ /** Keep long lines on one line and scroll horizontally instead of wrapping. */
16
+ nowrap?: boolean;
17
+ }
18
+ /** Preformatted block: JSON, prompts, payloads, logs. Height limits (`max-h-*`) go in className. */
19
+ export declare const CodeBlock: React.ForwardRefExoticComponent<CodeBlockProps & React.RefAttributes<HTMLPreElement>>;
20
+ export interface HighlightProps extends React.HTMLAttributes<HTMLElement> {
21
+ tone?: 'warning' | 'accent' | 'success';
22
+ }
23
+ /** Search-match highlight inside text. */
24
+ export declare const Highlight: React.ForwardRefExoticComponent<HighlightProps & React.RefAttributes<HTMLElement>>;
25
+ export {};
@@ -0,0 +1,74 @@
1
+ import * as React from 'react';
2
+ export declare const tableCellTones: {
3
+ readonly neutral: '';
4
+ readonly muted: 'text-muted-foreground';
5
+ readonly strong: 'font-medium text-foreground';
6
+ readonly success: 'text-success';
7
+ readonly warning: 'text-warning';
8
+ readonly error: 'text-error';
9
+ readonly info: 'text-info';
10
+ };
11
+ export type TableCellTone = keyof typeof tableCellTones;
12
+ export interface DataTableProps extends React.TableHTMLAttributes<HTMLTableElement> {
13
+ /** Classes for the scroll container (e.g. `min-h-0 flex-1` to fill a column layout). */
14
+ containerClassName?: string;
15
+ }
16
+ export declare const DataTable: React.ForwardRefExoticComponent<DataTableProps & React.RefAttributes<HTMLTableElement>>;
17
+ export interface DataTableHeaderProps extends React.HTMLAttributes<HTMLTableSectionElement> {
18
+ /** Keep the header visible while the container scrolls vertically. */
19
+ sticky?: boolean;
20
+ }
21
+ export declare const DataTableHeader: React.ForwardRefExoticComponent<DataTableHeaderProps & React.RefAttributes<HTMLTableSectionElement>>;
22
+ export declare const DataTableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
23
+ export interface DataTableRowProps extends React.HTMLAttributes<HTMLTableRowElement> {
24
+ /** No hover: summary, empty and loading rows. */
25
+ static?: boolean;
26
+ selected?: boolean;
27
+ /** Tinted row for a row-level state (an error, a warning, a success). */
28
+ tone?: 'error' | 'warning' | 'success';
29
+ /** Faded row (archived, disabled, not applicable). */
30
+ dimmed?: boolean;
31
+ /** Tinted section row that groups the rows below (implies static). */
32
+ group?: boolean;
33
+ }
34
+ export declare const DataTableRow: React.ForwardRefExoticComponent<DataTableRowProps & React.RefAttributes<HTMLTableRowElement>>;
35
+ export interface DataTableHeadProps extends React.ThHTMLAttributes<HTMLTableCellElement> {
36
+ /** Pin this column to the end edge while the container scrolls horizontally. */
37
+ stickyEnd?: boolean;
38
+ /** Pin this column to the start edge (the first column, e.g. the name) while scrolling horizontally. */
39
+ stickyStart?: boolean;
40
+ /** Right-aligned column for numbers and amounts (pair with `DataTableCell numeric`). */
41
+ numeric?: boolean;
42
+ }
43
+ export declare const DataTableHead: React.ForwardRefExoticComponent<DataTableHeadProps & React.RefAttributes<HTMLTableCellElement>>;
44
+ export interface DataTableCellProps extends React.TdHTMLAttributes<HTMLTableCellElement> {
45
+ /** Pin this cell's column to the end edge (pair with `DataTableHead stickyEnd`). */
46
+ stickyEnd?: boolean;
47
+ /** Pin this cell's column to the start edge (pair with `DataTableHead stickyStart`). */
48
+ stickyStart?: boolean;
49
+ tone?: TableCellTone;
50
+ numeric?: boolean;
51
+ }
52
+ export declare const DataTableCell: React.ForwardRefExoticComponent<DataTableCellProps & React.RefAttributes<HTMLTableCellElement>>;
53
+ export declare const DataTableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
54
+ export declare const DataTableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
55
+ export interface DataTableEmptyProps {
56
+ colSpan: number;
57
+ title: string;
58
+ description?: React.ReactNode;
59
+ icon?: React.ReactNode;
60
+ actionLabel?: string;
61
+ onAction?: () => void;
62
+ actionDataAttr?: string;
63
+ }
64
+ /** The empty row of a table: the DS EmptyState in a full-width cell. */
65
+ export declare function DataTableEmpty({ colSpan, ...state }: DataTableEmptyProps): React.JSX.Element;
66
+ export type DataTableSortDirection = 'ascending' | 'descending' | 'none';
67
+ export declare function DataTableSortButton({ direction, children, className, ...props }: React.ButtonHTMLAttributes<HTMLButtonElement> & {
68
+ direction?: DataTableSortDirection;
69
+ }): React.JSX.Element;
70
+ export declare function DataTableLoading({ columns, rows, label }: {
71
+ columns: number;
72
+ rows?: number;
73
+ label?: string;
74
+ }): React.JSX.Element;
@@ -0,0 +1,22 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ export type IconTileVariant = 'soft' | 'solid' | 'outline';
4
+ export type IconTileTone = 'neutral' | 'muted' | 'primary' | 'tertiary' | 'success' | 'warning' | 'info' | 'error';
5
+ export declare const ICON_TILE_APPEARANCES: {
6
+ variant: IconTileVariant;
7
+ tone: IconTileTone;
8
+ }[];
9
+ declare const iconTileBase: (props?: {
10
+ size?: "2xl" | "lg" | "md" | "sm" | "xl" | "xs";
11
+ shape?: "circle" | "square";
12
+ } & import("class-variance-authority/types").ClassProp) => string;
13
+ export interface IconTileStyleOptions extends VariantProps<typeof iconTileBase> {
14
+ variant?: IconTileVariant;
15
+ tone?: IconTileTone;
16
+ }
17
+ export type IconTileAppearance = Pick<IconTileStyleOptions, 'variant' | 'tone'>;
18
+ export declare const iconTileVariants: ({ variant, tone, size, shape }?: IconTileStyleOptions) => string;
19
+ export interface IconTileProps extends React.HTMLAttributes<HTMLSpanElement>, IconTileStyleOptions {
20
+ }
21
+ export declare const IconTile: React.ForwardRefExoticComponent<IconTileProps & React.RefAttributes<HTMLSpanElement>>;
22
+ export {};
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const itemVariants: (props?: {
4
+ variant?: "default" | "flush" | "outline" | "soft";
5
+ interactive?: boolean;
6
+ size?: "md" | "sm";
7
+ tone?: "error" | "info" | "success" | "warning";
8
+ selected?: boolean;
9
+ highlighted?: boolean;
10
+ dimmed?: boolean;
11
+ disabled?: boolean;
12
+ } & import("class-variance-authority/types").ClassProp) => string;
13
+ export interface ItemProps extends React.HTMLAttributes<HTMLElement>, VariantProps<typeof itemVariants> {
14
+ asChild?: boolean;
15
+ as?: 'div' | 'button';
16
+ type?: 'button' | 'submit';
17
+ 'data-attr'?: string;
18
+ }
19
+ export declare const Item: React.ForwardRefExoticComponent<ItemProps & React.RefAttributes<HTMLElement>>;
20
+ export declare const ItemContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
21
+ export declare const ItemTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
22
+ export declare const ItemDescription: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
23
+ export declare const ItemActions: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
24
+ export {};
@@ -0,0 +1,5 @@
1
+ import * as React from 'react';
2
+ export interface OverlineProps extends React.HTMLAttributes<HTMLElement> {
3
+ asChild?: boolean;
4
+ }
5
+ export declare const Overline: React.ForwardRefExoticComponent<OverlineProps & React.RefAttributes<HTMLElement>>;
@@ -0,0 +1,9 @@
1
+ import * as React from 'react';
2
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
3
+ export interface SeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
4
+ /** `muted`: visible over tinted surfaces (a chat thread, a muted panel). */
5
+ tone?: 'default' | 'muted';
6
+ /** `dashed`: a softer line for secondary markers (events inside a timeline). */
7
+ variant?: 'solid' | 'dashed';
8
+ }
9
+ export declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
@@ -0,0 +1,17 @@
1
+ import * as React from 'react';
2
+ export interface StatProps {
3
+ label: React.ReactNode;
4
+ value: React.ReactNode;
5
+ /** Secondary line: a hint, a period or a delta. */
6
+ hint?: React.ReactNode;
7
+ /** Colors the hint (a delta that improved or got worse). */
8
+ tone?: 'neutral' | 'success' | 'error' | 'warning';
9
+ className?: string;
10
+ }
11
+ /** One KPI: muted label, big tabular value, optional hint. Lay several out with StatGroup. */
12
+ export declare const Stat: ({ label, value, hint, tone, className }: StatProps) => React.JSX.Element;
13
+ /** A row of Stats that wraps into a grid on small screens. */
14
+ export declare const StatGroup: ({ children, className }: {
15
+ children: React.ReactNode;
16
+ className?: string;
17
+ }) => React.JSX.Element;
@@ -0,0 +1,23 @@
1
+ export interface TablePaginationProps {
2
+ /** 1-based. */
3
+ page: number;
4
+ pageCount: number;
5
+ onPageChange: (page: number) => void;
6
+ pageSize?: number;
7
+ pageSizeOptions?: number[];
8
+ totalItems?: number;
9
+ /** Omit to hide the page-size control. */
10
+ onPageSizeChange?: (pageSize: number) => void;
11
+ label?: string;
12
+ className?: string;
13
+ previousLabel?: string;
14
+ nextLabel?: string;
15
+ pageSizeLabel?: string;
16
+ emptyLabel?: string;
17
+ formatRange?: (range: {
18
+ from: number;
19
+ to: number;
20
+ total: number;
21
+ }) => string;
22
+ }
23
+ export declare function TablePagination({ page, pageCount, onPageChange, pageSize, pageSizeOptions, totalItems, onPageSizeChange, label, className, previousLabel, nextLabel, pageSizeLabel, emptyLabel, formatRange, }: TablePaginationProps): import("react").JSX.Element;
@@ -0,0 +1,16 @@
1
+ import * as React from 'react';
2
+ export declare const Timeline: React.ForwardRefExoticComponent<React.OlHTMLAttributes<HTMLOListElement> & React.RefAttributes<HTMLOListElement>>;
3
+ export interface TimelineItemProps extends React.LiHTMLAttributes<HTMLLIElement> {
4
+ marker: React.ReactNode;
5
+ current?: boolean;
6
+ last?: boolean;
7
+ tone?: 'neutral' | 'info' | 'success' | 'warning' | 'error';
8
+ }
9
+ export declare const TimelineItem: React.ForwardRefExoticComponent<TimelineItemProps & React.RefAttributes<HTMLLIElement>>;
10
+ export declare const DescriptionList: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDListElement> & React.RefAttributes<HTMLDListElement>>;
11
+ export declare function DescriptionItem({ label, children, layout, className, }: {
12
+ label: React.ReactNode;
13
+ children: React.ReactNode;
14
+ layout?: 'inline' | 'stacked';
15
+ className?: string;
16
+ }): React.JSX.Element;
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Data-viz palette for SVG charts (recharts `fill`/`stroke`). Each value reads its token
3
+ * through var(), so charts follow light and dark like the rest of the UI.
4
+ * For UI color (backgrounds, text, borders) use the semantic tokens, never this.
5
+ */
6
+ export declare const chartColors: {
7
+ /** Brand olive, `--chart-1`. Main series. */
8
+ readonly primary: 'hsl(var(--chart-1))';
9
+ /** Mid olive, `--chart-3`. Second olive series. */
10
+ readonly primarySoft: 'hsl(var(--chart-3))';
11
+ /** Dark lime, `--chart-2`. Accent series. */
12
+ readonly accent: 'hsl(var(--chart-2))';
13
+ /** Mid lime, `--chart-5`. */
14
+ readonly accentSoft: 'hsl(var(--chart-5))';
15
+ /** Positive trend / good values. */
16
+ readonly positive: 'hsl(var(--success))';
17
+ /** Stone neutral, `--chart-6`. Axes, grids, neutral series. */
18
+ readonly neutral: 'hsl(var(--chart-6))';
19
+ /** Warm beige, `--chart-4`. Soft separators / series surfaces. */
20
+ readonly neutralSoft: 'hsl(var(--chart-4))';
21
+ /** Empty bar backgrounds. */
22
+ readonly surface: 'hsl(var(--muted))';
23
+ /** Warning state. */
24
+ readonly warning: 'hsl(var(--warning))';
25
+ /** Informational state. */
26
+ readonly info: 'hsl(var(--info))';
27
+ /** Negative state / loss. */
28
+ readonly error: 'hsl(var(--error))';
29
+ };
30
+ /** Default order for multi-series charts (`--chart-1…6`). */
31
+ export declare const chartSeries: readonly string[];
32
+ /** Categorical colors (`--categorical-1…8`): user-defined columns. */
33
+ export declare const categoricalColors: readonly string[];
34
+ /** Stable categorical color for a key: the same key always gets the same color. */
35
+ export declare const categoricalColor: (key: string | number) => string;
36
+ /** A soft identity color: pastel surface and the ink to write on it. */
37
+ export interface IdentityColor {
38
+ background: string;
39
+ foreground: string;
40
+ }
41
+ /** Soft identity colors (`--identity-1…18`: nine hues in two lightness tiers): avatars of people without a contact type. Pastel, never a brand or status hue, and ordered so neighbors contrast: similar keys land on opposite colors. */
42
+ export declare const identityColors: readonly IdentityColor[];
43
+ /** Stable soft identity color for a key: the same key always gets the same pair. */
44
+ export declare const identityColor: (key: string | number) => IdentityColor;
45
+ /** Business entity a contact belongs to; each has one hue (client teal, lead violet, seller pink). */
46
+ export type EntityKind = 'client' | 'lead' | 'seller';
47
+ /** The entity's color for the dot on its type tag. */
48
+ export declare const entityColor: (entity: EntityKind) => string;
49
+ /** A tone of the entity's hue for a person's avatar: same key, same tone; people of one type differ only in shade. */
50
+ export declare const entityTone: (entity: EntityKind, key: string | number) => IdentityColor;
51
+ export type ChartColorKey = keyof typeof chartColors;
@@ -0,0 +1,15 @@
1
+ export * from './Badge';
2
+ export * from './DataTable';
3
+ export * from './TablePagination';
4
+ export * from './Board';
5
+ export * from './Card';
6
+ export * from './Item';
7
+ export * from './Avatar';
8
+ export * from './Separator';
9
+ export * from './Timeline';
10
+ export * from './Overline';
11
+ export * from './chart-colors';
12
+ export * from './IconTile';
13
+ export * from './Code';
14
+ export * from './ChatBubble';
15
+ export * from './Stat';
@@ -0,0 +1,17 @@
1
+ import type { ReactNode } from 'react';
2
+ import { type VariantProps } from 'class-variance-authority';
3
+ declare const calloutVariants: (props?: {
4
+ tone?: "error" | "info" | "neutral" | "success" | "warning";
5
+ size?: "md" | "sm";
6
+ variant?: "banner" | "card";
7
+ } & import("class-variance-authority/types").ClassProp) => string;
8
+ export interface CalloutProps extends VariantProps<typeof calloutVariants> {
9
+ title?: ReactNode;
10
+ children?: ReactNode;
11
+ /** Replaces the tone's default icon; `false` hides it. */
12
+ icon?: ReactNode | false;
13
+ action?: ReactNode;
14
+ className?: string;
15
+ }
16
+ export declare const Callout: ({ tone, size, variant, title, children, icon, action, className }: CalloutProps) => import("react").JSX.Element;
17
+ export {};
@@ -0,0 +1,16 @@
1
+ import type { ReactNode } from 'react';
2
+ export interface FeedbackStateProps {
3
+ title: string;
4
+ description?: ReactNode;
5
+ icon?: ReactNode;
6
+ actionLabel?: string;
7
+ onAction?: () => void;
8
+ actionDataAttr?: string;
9
+ variant?: 'empty' | 'error' | 'success'; /** No dashed frame: the state sits inside a card, table or panel that already frames it. */
10
+ plain?: boolean;
11
+ className?: string;
12
+ }
13
+ export declare function FeedbackState({ title, description, icon, actionLabel, onAction, actionDataAttr, variant, plain, className }: FeedbackStateProps): import("react").JSX.Element;
14
+ export declare const EmptyState: (props: Omit<FeedbackStateProps, 'variant'>) => import("react").JSX.Element;
15
+ export declare const ErrorState: (props: Omit<FeedbackStateProps, 'variant'>) => import("react").JSX.Element;
16
+ export declare const SuccessState: (props: Omit<FeedbackStateProps, 'variant'>) => import("react").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export type LoadingStateLayout = 'block' | 'page' | 'inline' | 'overlay';
2
+ export interface LoadingStateProps {
3
+ text?: string;
4
+ layout?: LoadingStateLayout;
5
+ className?: string;
6
+ }
7
+ export declare const LoadingState: ({ text, layout, className }: LoadingStateProps) => import("react").JSX.Element;
@@ -0,0 +1,37 @@
1
+ import * as React from 'react';
2
+ import * as ProgressPrimitive from '@radix-ui/react-progress';
3
+ export declare const progressTones: {
4
+ readonly primary: 'bg-primary';
5
+ readonly tertiary: 'bg-tertiary';
6
+ readonly success: 'bg-success';
7
+ readonly warning: 'bg-warning';
8
+ readonly error: 'bg-error';
9
+ readonly info: 'bg-info';
10
+ readonly muted: 'bg-muted-foreground/40';
11
+ };
12
+ export type ProgressTone = keyof typeof progressTones;
13
+ declare const SIZE: {
14
+ readonly xs: 'h-1';
15
+ readonly sm: 'h-1.5';
16
+ readonly md: 'h-2';
17
+ readonly lg: 'h-3';
18
+ readonly xl: 'h-4';
19
+ };
20
+ export interface ProgressSegment {
21
+ value: number;
22
+ tone: ProgressTone;
23
+ /** Accessible description of the segment ("12 OK"). */
24
+ label?: string;
25
+ }
26
+ export interface ProgressProps extends Omit<React.ComponentPropsWithoutRef<typeof ProgressPrimitive.Root>, 'children'> {
27
+ tone?: ProgressTone;
28
+ size?: keyof typeof SIZE;
29
+ /** `vertical`: a column that fills from the bottom (bar charts); its width goes in className. */
30
+ orientation?: 'horizontal' | 'vertical';
31
+ /** Data-driven indicator color (a category or stage color from the data); overrides `tone`. */
32
+ color?: string;
33
+ /** Stacked bar: segments share the track in order; values are percentages of the track. */
34
+ segments?: readonly ProgressSegment[];
35
+ }
36
+ export declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
37
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ export interface ProgressRingProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
3
+ value: number;
4
+ max?: number;
5
+ size?: number;
6
+ strokeWidth?: number;
7
+ label?: ReactNode;
8
+ showValue?: boolean;
9
+ valueLabel?: (percentage: number) => string;
10
+ }
11
+ export declare function ProgressRing({ value, max, size, strokeWidth, label, showValue, valueLabel, className, style, ...props }: ProgressRingProps): import("react").JSX.Element;