@appkit/dek-ui 0.26.0 → 0.28.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.
@@ -3,6 +3,7 @@ import { ViewProps } from '../View/View';
3
3
  export type CardVariant = 'normal' | 'clear';
4
4
  export type CardProps = Omit<ViewProps, 'collapse' | 'vscroll' | 'hscroll' | 'fixed'> & {
5
5
  variant?: CardVariant;
6
+ square?: boolean;
6
7
  children?: ReactNode;
7
8
  };
8
9
  declare const Card: (props: CardProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,6 @@
1
1
  import { ButtonProps } from '../Button/Button';
2
- export type CardButtonProps = ButtonProps;
2
+ export type CardButtonProps = ButtonProps & {
3
+ square?: boolean;
4
+ };
3
5
  declare const CardButton: (props: CardButtonProps) => import("react/jsx-runtime").JSX.Element;
4
6
  export default CardButton;
@@ -7,7 +7,8 @@ type MenuBarProps = {
7
7
  items: MenuItemType[];
8
8
  direction?: ViewDirection;
9
9
  initialKey?: string;
10
+ compact?: boolean;
10
11
  onSelect?: (key: string) => void;
11
12
  };
12
- declare const MenuBar: ({ items, initialKey, direction, onSelect, }: MenuBarProps) => import("react/jsx-runtime").JSX.Element;
13
+ declare const MenuBar: ({ items, initialKey, direction, compact, onSelect, }: MenuBarProps) => import("react/jsx-runtime").JSX.Element;
13
14
  export default MenuBar;
@@ -1,7 +1,8 @@
1
1
  type MenuBarItemProps = {
2
2
  title: string;
3
3
  active?: boolean;
4
+ compact?: boolean;
4
5
  onClick?: () => void;
5
6
  };
6
- declare const MenuBarItem: ({ title, active, onClick }: MenuBarItemProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const MenuBarItem: ({ title, active, compact, onClick, }: MenuBarItemProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export default MenuBarItem;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  export * from './components/Button/Button';
2
2
  export * from './components/Button/types';
3
+ export * from './components/Card/Card';
3
4
  export * from './components/CardButton/CardButton';
4
5
  export * from './components/IconButton/IconButton';
5
6
  export * from './components/MenuBar/MenuBar';