@mriqbox/ui-kit 3.3.1 → 3.3.2

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/bin/cli.js CHANGED
@@ -57,6 +57,7 @@ const COMPONENT_MAP = {
57
57
  'MriKeyboardVisualizer': 'organisms',
58
58
  'MriPageHeader': 'organisms',
59
59
  'MriSidebar': 'organisms',
60
+ 'MriTopbar': 'organisms',
60
61
  'MriTable': 'organisms',
61
62
  };
62
63
 
@@ -173,7 +174,7 @@ async function checkDependencies(filePath, installDir) {
173
174
  program
174
175
  .name('mri-ui')
175
176
  .description('Add Mri UI components to your project')
176
- .version('3.3.1');
177
+ .version('3.3.2');
177
178
 
178
179
  program
179
180
  .command('add <component>')
@@ -0,0 +1,19 @@
1
+ import { ElementType, ReactNode } from 'react';
2
+
3
+ export interface MriTopbarItem {
4
+ label: string;
5
+ route?: string;
6
+ icon: ElementType;
7
+ onClick?: () => void;
8
+ divider?: boolean;
9
+ }
10
+ export interface MriTopbarProps {
11
+ items: MriTopbarItem[];
12
+ activeRoute?: string;
13
+ onNavigate?: (route: string) => void;
14
+ logo?: ReactNode;
15
+ rightContent?: ReactNode;
16
+ children?: ReactNode;
17
+ className?: string;
18
+ }
19
+ export declare function MriTopbar({ items, activeRoute, onNavigate, logo, rightContent, children, className }: MriTopbarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { MriTopbar } from './MriTopbar';
3
+
4
+ declare const meta: Meta<typeof MriTopbar>;
5
+ export default meta;
6
+ export declare const Default: StoryObj<typeof MriTopbar>;
package/dist/index.d.ts CHANGED
@@ -32,6 +32,7 @@ export * from './components/molecules/MriCreatableCombobox';
32
32
  export * from './components/organisms/MriCalendar';
33
33
  export * from './components/organisms/MriPageHeader';
34
34
  export * from './components/organisms/MriSidebar';
35
+ export * from './components/organisms/MriTopbar';
35
36
  export * from './components/organisms/MriTable';
36
37
  export * from './components/organisms/MriKeyboardVisualizer';
37
38
  export * from './lib/utils';