@risalabs_frontend_org/oasis-ui-kit 0.34.0 → 0.35.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.
@@ -0,0 +1,31 @@
1
+ import React from "react";
2
+ import "./info-detail-cell.scss";
3
+ export interface InfoDetailCellItem {
4
+ text: string;
5
+ color?: string;
6
+ maxWidth?: string;
7
+ }
8
+ export interface InfoDetailCellRow {
9
+ items: InfoDetailCellItem[];
10
+ className?: string;
11
+ separatorColor?: string;
12
+ }
13
+ export interface InfoDetailCellAction {
14
+ icon: React.ReactNode;
15
+ onClick: (e: React.MouseEvent<HTMLButtonElement>) => void;
16
+ ariaLabel?: string;
17
+ iconColor?: string;
18
+ }
19
+ export interface InfoDetailCellProps {
20
+ title: string;
21
+ titleAction?: InfoDetailCellAction;
22
+ rows?: InfoDetailCellRow[];
23
+ className?: string;
24
+ truncate?: boolean;
25
+ backgroundColor?: string;
26
+ borderColor?: string;
27
+ borderWidth?: string;
28
+ border?: string;
29
+ borderRadius?: string;
30
+ }
31
+ export declare function InfoDetailCell({ title, titleAction, rows, className, truncate, backgroundColor, borderColor, borderWidth, border, borderRadius, }: InfoDetailCellProps): React.JSX.Element;
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import "./nav-menu-item.scss";
3
+ export interface NavMenuItemProps {
4
+ label: string;
5
+ active?: boolean;
6
+ accentColor?: string;
7
+ onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
8
+ prefix?: React.ReactNode;
9
+ suffix?: React.ReactNode;
10
+ disabled?: boolean;
11
+ className?: string;
12
+ backgroundColor?: string;
13
+ activeLabelClassName?: string;
14
+ inactiveLabelClassName?: string;
15
+ }
16
+ export declare function NavMenuItem({ label, active, accentColor, onClick, prefix, suffix, disabled, className, backgroundColor, activeLabelClassName, inactiveLabelClassName, }: NavMenuItemProps): React.JSX.Element;
@@ -5,7 +5,13 @@ export interface PopOverWithClickableOptionsProps {
5
5
  text: string;
6
6
  icon?: React.ReactNode;
7
7
  id: string;
8
+ className?: string;
8
9
  }[];
9
10
  onClick: (id: string) => void;
11
+ shouldUsePortal?: boolean;
12
+ getPortalContainer?: () => HTMLElement;
13
+ anchorRef?: React.RefObject<HTMLElement>;
14
+ portalPlacement?: "bottom-start" | "bottom-end" | "top-start" | "top-end";
15
+ className?: string;
10
16
  }
11
17
  export declare const PopOverWithClickableOptions: (props: PopOverWithClickableOptionsProps) => React.JSX.Element;
@@ -16,6 +16,7 @@ export interface TagsProps {
16
16
  onSelect?: (option: TagOption, event: React.MouseEvent | React.KeyboardEvent) => void;
17
17
  onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
18
18
  shouldUsePortal?: boolean;
19
+ showSeparator?: boolean;
19
20
  className?: string;
20
21
  }
21
22
  export declare const Tags: React.FC<TagsProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@risalabs_frontend_org/oasis-ui-kit",
3
- "version": "0.34.0",
3
+ "version": "0.35.0",
4
4
  "description": "RISA Oasis UI",
5
5
  "private": false,
6
6
  "main": "dist/index.js",