@harnessio/ui 0.0.231 → 0.0.232
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/components.d.ts +18 -8
- package/dist/index.d.ts +18 -8
- package/dist/types-nN33a2Dv.js.map +1 -1
- package/package.json +4 -4
package/dist/components.d.ts
CHANGED
|
@@ -339,6 +339,13 @@ export declare interface BaseInputWithWrapperProps extends BaseInputProps {
|
|
|
339
339
|
children: ReactNode;
|
|
340
340
|
}
|
|
341
341
|
|
|
342
|
+
declare interface BaseItemProps {
|
|
343
|
+
icon: NonNullable<IconPropsV2['name']>;
|
|
344
|
+
hideIcon?: boolean;
|
|
345
|
+
isActive?: boolean;
|
|
346
|
+
actionButtons?: SidebarItemActionButtonPropsType[];
|
|
347
|
+
}
|
|
348
|
+
|
|
342
349
|
declare interface BaseLogoPropsV2 extends SVGProps<SVGSVGElement> {
|
|
343
350
|
size?: VariantProps<typeof logoVariants>['size'];
|
|
344
351
|
skipSize?: boolean;
|
|
@@ -1589,17 +1596,15 @@ export declare interface FileItem {
|
|
|
1589
1596
|
|
|
1590
1597
|
declare function FileItem_2({ children, isActive, value, link, onClick, tooltip, icon, ...dataProps }: FileItemProps): JSX_2.Element;
|
|
1591
1598
|
|
|
1592
|
-
declare
|
|
1599
|
+
declare interface FileItemProps extends Partial<Omit<BaseItemProps, 'actionButtons'>> {
|
|
1593
1600
|
level: number;
|
|
1594
1601
|
children: ReactNode;
|
|
1595
|
-
isActive?: boolean;
|
|
1596
1602
|
link?: string;
|
|
1597
1603
|
value: string;
|
|
1598
1604
|
onClick?: (value: string) => void;
|
|
1599
1605
|
tooltip?: TooltipProps['content'];
|
|
1600
1606
|
[key: `data-${string}`]: any;
|
|
1601
|
-
|
|
1602
|
-
};
|
|
1607
|
+
}
|
|
1603
1608
|
|
|
1604
1609
|
export declare const FileToolbarActions: FC<FileToolbarActionsProps>;
|
|
1605
1610
|
|
|
@@ -1718,15 +1723,13 @@ export declare const Folder: React_2.ForwardRefExoticComponent<{
|
|
|
1718
1723
|
|
|
1719
1724
|
declare function FolderItem({ children, value, isActive, content, link, onClick, icon, ...otherProps }: FolderItemProps): JSX_2.Element;
|
|
1720
1725
|
|
|
1721
|
-
declare interface FolderItemProps {
|
|
1726
|
+
declare interface FolderItemProps extends Partial<Omit<BaseItemProps, 'actionButtons'>> {
|
|
1722
1727
|
children: ReactNode;
|
|
1723
1728
|
level: number;
|
|
1724
1729
|
value: string;
|
|
1725
|
-
isActive?: boolean;
|
|
1726
1730
|
content?: ReactNode;
|
|
1727
1731
|
onClick?: (value: string) => void;
|
|
1728
1732
|
link?: string;
|
|
1729
|
-
icon?: IconV2NamesType;
|
|
1730
1733
|
}
|
|
1731
1734
|
|
|
1732
1735
|
/**
|
|
@@ -4153,6 +4156,13 @@ declare type SidebarItemActionButtonPropsType = ButtonProps & {
|
|
|
4153
4156
|
onClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
4154
4157
|
};
|
|
4155
4158
|
|
|
4159
|
+
declare type SidebarItemActionButtonPropsType_2 = ButtonProps & {
|
|
4160
|
+
title?: string;
|
|
4161
|
+
iconName?: IconV2NamesType;
|
|
4162
|
+
iconProps?: Omit<IconPropsV2, 'ref' | 'name' | 'fallback'>;
|
|
4163
|
+
onClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
4164
|
+
};
|
|
4165
|
+
|
|
4156
4166
|
declare type SidebarItemAvatarProps = SidebarItemBaseProps & {
|
|
4157
4167
|
avatarFallback?: AvatarProps['name'];
|
|
4158
4168
|
src?: AvatarProps['src'];
|
|
@@ -4169,7 +4179,7 @@ declare interface SidebarItemCommonProps extends ComponentPropsWithoutRef<'butto
|
|
|
4169
4179
|
description?: string;
|
|
4170
4180
|
tooltip?: ReactNode;
|
|
4171
4181
|
active?: boolean;
|
|
4172
|
-
actionButtons?:
|
|
4182
|
+
actionButtons?: SidebarItemActionButtonPropsType_2[];
|
|
4173
4183
|
draggable?: boolean;
|
|
4174
4184
|
dragAttributes?: React.HTMLAttributes<HTMLElement>;
|
|
4175
4185
|
dragListeners?: SyntheticListenerMap;
|
package/dist/index.d.ts
CHANGED
|
@@ -475,6 +475,13 @@ declare interface BaseInputWithWrapperProps extends BaseInputProps_2 {
|
|
|
475
475
|
children: ReactNode;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
|
+
declare interface BaseItemProps {
|
|
479
|
+
icon: NonNullable<IconPropsV2['name']>;
|
|
480
|
+
hideIcon?: boolean;
|
|
481
|
+
isActive?: boolean;
|
|
482
|
+
actionButtons?: SidebarItemActionButtonPropsType[];
|
|
483
|
+
}
|
|
484
|
+
|
|
478
485
|
declare interface BaseLogoPropsV2 extends SVGProps<SVGSVGElement> {
|
|
479
486
|
size?: VariantProps<typeof logoVariants>['size'];
|
|
480
487
|
skipSize?: boolean;
|
|
@@ -3544,17 +3551,15 @@ declare interface FileItem_2 {
|
|
|
3544
3551
|
value: string;
|
|
3545
3552
|
}
|
|
3546
3553
|
|
|
3547
|
-
declare
|
|
3554
|
+
declare interface FileItemProps extends Partial<Omit<BaseItemProps, 'actionButtons'>> {
|
|
3548
3555
|
level: number;
|
|
3549
3556
|
children: ReactNode;
|
|
3550
|
-
isActive?: boolean;
|
|
3551
3557
|
link?: string;
|
|
3552
3558
|
value: string;
|
|
3553
3559
|
onClick?: (value: string) => void;
|
|
3554
3560
|
tooltip?: TooltipProps['content'];
|
|
3555
3561
|
[key: `data-${string}`]: any;
|
|
3556
|
-
|
|
3557
|
-
};
|
|
3562
|
+
}
|
|
3558
3563
|
|
|
3559
3564
|
declare const FileLastChangeBar: FC<FileLastChangeBarProps>;
|
|
3560
3565
|
|
|
@@ -3761,15 +3766,13 @@ declare const Folder: React_2.ForwardRefExoticComponent<{
|
|
|
3761
3766
|
|
|
3762
3767
|
declare function FolderItem({ children, value, isActive, content, link, onClick, icon, ...otherProps }: FolderItemProps): JSX_2.Element;
|
|
3763
3768
|
|
|
3764
|
-
declare interface FolderItemProps {
|
|
3769
|
+
declare interface FolderItemProps extends Partial<Omit<BaseItemProps, 'actionButtons'>> {
|
|
3765
3770
|
children: ReactNode;
|
|
3766
3771
|
level: number;
|
|
3767
3772
|
value: string;
|
|
3768
|
-
isActive?: boolean;
|
|
3769
3773
|
content?: ReactNode;
|
|
3770
3774
|
onClick?: (value: string) => void;
|
|
3771
3775
|
link?: string;
|
|
3772
|
-
icon?: IconV2NamesType;
|
|
3773
3776
|
}
|
|
3774
3777
|
|
|
3775
3778
|
/**
|
|
@@ -13607,6 +13610,13 @@ declare type SidebarItemActionButtonPropsType = ButtonProps & {
|
|
|
13607
13610
|
onClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
13608
13611
|
};
|
|
13609
13612
|
|
|
13613
|
+
declare type SidebarItemActionButtonPropsType_2 = ButtonProps & {
|
|
13614
|
+
title?: string;
|
|
13615
|
+
iconName?: IconV2NamesType;
|
|
13616
|
+
iconProps?: Omit<IconPropsV2, 'ref' | 'name' | 'fallback'>;
|
|
13617
|
+
onClick: React.MouseEventHandler<HTMLButtonElement>;
|
|
13618
|
+
};
|
|
13619
|
+
|
|
13610
13620
|
declare type SidebarItemAvatarProps = SidebarItemBaseProps & {
|
|
13611
13621
|
avatarFallback?: AvatarProps['name'];
|
|
13612
13622
|
src?: AvatarProps['src'];
|
|
@@ -13623,7 +13633,7 @@ declare interface SidebarItemCommonProps extends ComponentPropsWithoutRef<'butto
|
|
|
13623
13633
|
description?: string;
|
|
13624
13634
|
tooltip?: ReactNode;
|
|
13625
13635
|
active?: boolean;
|
|
13626
|
-
actionButtons?:
|
|
13636
|
+
actionButtons?: SidebarItemActionButtonPropsType_2[];
|
|
13627
13637
|
draggable?: boolean;
|
|
13628
13638
|
dragAttributes?: React.HTMLAttributes<HTMLElement>;
|
|
13629
13639
|
dragListeners?: SyntheticListenerMap;
|