@clarlabs/ui 0.1.13 → 0.1.14

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/index.d.ts CHANGED
@@ -1548,6 +1548,47 @@ export declare interface ToggleSwitchProps {
1548
1548
 
1549
1549
  export declare type ToggleSwitchSize = 'sm' | 'md' | 'lg';
1550
1550
 
1551
+ export declare function Toolbar({ menuItems, statusItems, children, className }: ToolbarProps): default_2.JSX.Element;
1552
+
1553
+ export declare interface ToolbarMenuItem {
1554
+ /** Unique identifier */
1555
+ id: string;
1556
+ /** Label to display */
1557
+ label: string;
1558
+ /** Icon element */
1559
+ icon?: default_2.ReactNode;
1560
+ /** Whether the item is disabled */
1561
+ disabled?: boolean;
1562
+ /** Submenu items for dropdown */
1563
+ submenu?: ToolbarMenuItem[];
1564
+ /** Callback when item is clicked (if no submenu) */
1565
+ onClick?: () => void;
1566
+ /** Separator after this item */
1567
+ separator?: boolean;
1568
+ /** Badge or count to display */
1569
+ badge?: string | number;
1570
+ }
1571
+
1572
+ export declare interface ToolbarProps {
1573
+ /** Menu items with optional dropdowns */
1574
+ menuItems?: ToolbarMenuItem[];
1575
+ /** Status information sections */
1576
+ statusItems?: ToolbarStatus[];
1577
+ /** Additional custom content */
1578
+ children?: default_2.ReactNode;
1579
+ /** Custom className */
1580
+ className?: string;
1581
+ }
1582
+
1583
+ export declare interface ToolbarStatus {
1584
+ /** Status text */
1585
+ text: string;
1586
+ /** Optional icon */
1587
+ icon?: default_2.ReactNode;
1588
+ /** Optional tooltip */
1589
+ tooltip?: string;
1590
+ }
1591
+
1551
1592
  export declare function Tooltip({ children, content, position, delay, className }: TooltipProps): default_2.JSX.Element;
1552
1593
 
1553
1594
  export declare type TooltipPosition = 'top' | 'bottom' | 'left' | 'right';