@harnessio/ui 0.5.0 → 0.5.1

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
@@ -1475,6 +1475,7 @@ declare namespace components {
1475
1475
  ButtonGroupProps,
1476
1476
  ButtonGroup,
1477
1477
  BaseButtonProps as ButtonGroupBaseButtonProps,
1478
+ ViewOnlyItemLayout,
1478
1479
  ViewOnlyItemData,
1479
1480
  ViewOnlyItem,
1480
1481
  ViewOnlyProps,
@@ -7749,12 +7750,13 @@ declare interface ValueOption<T = string> {
7749
7750
  declare interface VerticalProps extends Omit<FlexProps, 'direction'> {
7750
7751
  }
7751
7752
 
7752
- declare const ViewOnly: ({ className, title, data, layout, isLoading }: ViewOnlyProps) => JSX_2.Element | null;
7753
+ declare const ViewOnly: ({ className, title, data, layout, itemLayout, isLoading, forceColumns }: ViewOnlyProps) => JSX_2.Element | null;
7753
7754
 
7754
- declare const ViewOnlyItem: ({ label, value, isLoading }: {
7755
+ declare const ViewOnlyItem: ({ label, value, isLoading, itemLayout }: {
7755
7756
  label: string;
7756
7757
  value: ReactNode;
7757
7758
  isLoading?: boolean;
7759
+ itemLayout?: ViewOnlyItemLayout;
7758
7760
  }) => JSX_2.Element;
7759
7761
 
7760
7762
  declare type ViewOnlyItemData = {
@@ -7762,12 +7764,16 @@ declare type ViewOnlyItemData = {
7762
7764
  value: ReactNode;
7763
7765
  } | ReactNode;
7764
7766
 
7767
+ declare type ViewOnlyItemLayout = 'horizontal' | 'vertical';
7768
+
7765
7769
  declare interface ViewOnlyProps {
7766
7770
  title?: string;
7767
7771
  data: ViewOnlyItemData[];
7768
7772
  layout?: 'singleColumn' | 'columns';
7773
+ itemLayout?: ViewOnlyItemLayout;
7769
7774
  className?: string;
7770
7775
  isLoading?: boolean;
7776
+ forceColumns?: boolean;
7771
7777
  }
7772
7778
 
7773
7779
  declare type ViewTypeValue = 'preview' | 'code' | 'blame' | 'history';
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { i as s } from "./index-Bvr23CG5.js";
2
- import { i as e } from "./index-DVCUCWNG.js";
2
+ import { i as e } from "./index-5RwaFhKM.js";
3
3
  import { i as a } from "./index-ByZmYyz8.js";
4
4
  import { i as m } from "./index-DygHpwlj.js";
5
5
  import { i as f } from "./index-yGuTXfMI.js";