0.0.2-5a16e38b • Published 7 months ago

@reltio/console v0.0.2-5a16e38b

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

@reltio/console

A collection of reusable UI components and utility functions for the Reltio Console, designed to standardize UI across Reltio applications.

Installation

To install the package, run:

npm install @reltio/console

Make sure to install peer dependencies like react, @mui/material, and others if they're not already in your project:

npm install react react-dom @mui/material clsx lodash

Usage

You can import individual components or utility functions from the package:

import { ApplicationHeader } from '@reltio/console';

const MyApp = () => (
  <ApplicationHeader notificationsUrl="/notifications" />
);

Components

ApplicationHeader

A flexible header component with integrated notification and user management buttons, as well as an apps drawer.

Props

  • children (ReactNode, optional): Additional content to be rendered within the header.
  • className (string, optional): Custom CSS class for the root element.
  • style (CSSProperties, optional): Custom CSS styles for the root element.
  • notificationsUrl (string, optional): URL for the notification button. If not defined, the notification button is hidden. Default is "/notifications?env={query.env}&tenant={query.tenant}".

Features

  • Includes a menu button that toggles an apps drawer.
  • Displays the Reltio logo with a link to the home page.
  • Shows a "Console" icon and title.
  • Renders optional child components.
  • Includes a notification bell (if URL is provided).
  • Displays an apps button and a user button.

Usage Example

import { ApplicationHeader } from '@reltio/console';

const MyApp = () => (
  <ApplicationHeader notificationsUrl="/custom-notifications" className="my-custom-header">
    <div>Additional header content</div>
  </ApplicationHeader>
);

Contributing

  1. Clone the repository.
  2. Run npm install.
  3. Run npm run dev to start the development environment.

Dependencies

This package relies on several peer dependencies that you should have installed in your project:

  • react
  • react-dom
  • @mui/material
  • clsx
  • lodash

Ensure these are installed in your project when using the @reltio/console package.

0.0.2-afe405a0

11 months ago

0.0.0-3024

11 months ago

0.0.2-ccc57c60

11 months ago

0.0.0-3857

7 months ago

0.0.0-2922

11 months ago

0.0.2-5a16e38b

11 months ago

0.0.2-d8996570

11 months ago

0.0.2-b7751d9c

11 months ago

0.0.0-2949

11 months ago

0.0.0-2945

11 months ago

0.0.0-2947

11 months ago

0.0.0-3535

8 months ago

0.0.0-2963

11 months ago

0.0.0-3537

8 months ago

0.0.2-23c8236a

11 months ago

0.0.1-1aa9e4f7

1 year ago

0.0.1-43134608

1 year ago

0.0.1

1 year ago

0.0.1-314da5e6

1 year ago

0.0.1-df6c543b

1 year ago

0.0.1-33145058

1 year ago

0.0.1-f33228ba

1 year ago

0.0.1-7e8e0839

1 year ago

0.0.1-6de9172e

1 year ago

0.0.1-8d3e21a9

1 year ago

0.0.1-e0590f69

1 year ago

0.0.1-52b824fd

1 year ago

0.0.1-02261b24

1 year ago

0.0.1-fb0f3db0

1 year ago

0.0.1-f2689e63

1 year ago

0.0.1-78766f02

1 year ago

0.0.1-d78c9246

1 year ago

0.0.1-52670bb1

1 year ago

0.0.1-23f88eab

1 year ago

0.0.1-b260f2f5

1 year ago

0.0.1-e590d6eb

1 year ago

0.0.1-57907c0a

1 year ago

0.0.1-f25960d0

1 year ago

0.0.1-7675518c

1 year ago

0.0.1-1a7b33b4

1 year ago

0.0.1-a7f91e17

1 year ago

0.0.1-c8052220

1 year ago

0.0.1-1764fa1d

1 year ago

0.0.1-fb2af179

1 year ago

0.0.1-2c5a2927

1 year ago

0.0.1-3d079e4c

1 year ago

0.0.1-121b4c74

1 year ago

0.0.1-9f022b3d

1 year ago

0.0.1-987d4447

1 year ago

0.0.1-7dec4981

1 year ago

0.0.1-3ece4915

1 year ago

0.0.1-0e2f17fb

1 year ago

0.0.1-960ad6bd

1 year ago

0.0.1-db315e48

1 year ago

0.0.1-8b35e342

1 year ago

0.0.1-27815315

1 year ago

0.0.1-001a9aa2

1 year ago

0.0.1-19428671

1 year ago

0.0.1-959f9727

1 year ago

0.0.1-b298401e

1 year ago

0.0.1-7e8eb624

1 year ago

0.0.1-819e2c3d

1 year ago

0.0.1-b39d731c

1 year ago

0.0.1-5da3b8c5

1 year ago

0.0.1-c80bba4a

1 year ago

0.0.1-a878a171

1 year ago

0.0.1-c56a0661

1 year ago

0.0.1-96c77e36

1 year ago

0.0.1-2063d447

1 year ago

0.0.1-3262470f

1 year ago

0.0.1-9645c45a

1 year ago

0.0.1-798f9151

1 year ago

0.0.1-f34c1f74

1 year ago

0.0.1-258a3a22

1 year ago

0.0.1-94086812

1 year ago

0.0.1-682917b8

1 year ago