@risalabs_frontend_org/oasis-ui-kit 0.9.0 → 0.10.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,17 @@
1
+ import React from "react";
2
+ import "./badge.scss";
3
+ export interface BadgeProps {
4
+ text: string;
5
+ backgroundColor?: string;
6
+ textColor?: string;
7
+ leftIcon?: React.ReactNode;
8
+ rightIcon?: React.ReactNode;
9
+ onLeftIconClick?: (event: React.MouseEvent<HTMLSpanElement>) => void;
10
+ onRightIconClick?: (event: React.MouseEvent<HTMLSpanElement>) => void;
11
+ className?: string;
12
+ size?: "small" | "medium" | "large";
13
+ maxWidth?: string;
14
+ borderColor?: string;
15
+ borderWidth?: string;
16
+ }
17
+ export declare const Badge: React.FC<BadgeProps>;
@@ -0,0 +1,14 @@
1
+ import React from "react";
2
+ import { BadgeProps } from "../badge/badge";
3
+ import "./BadgeGroup.scss";
4
+ export type BadgeItem = Omit<BadgeProps, "size" | "className">;
5
+ interface BadgeGroupProps {
6
+ badges: BadgeItem[];
7
+ maxVisible?: number;
8
+ size?: "small" | "medium" | "large";
9
+ className?: string;
10
+ onOverflowClick?: (hiddenBadges: BadgeItem[]) => void;
11
+ showOverflowTooltip?: boolean;
12
+ }
13
+ export declare const BadgeGroup: React.FC<BadgeGroupProps>;
14
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@risalabs_frontend_org/oasis-ui-kit",
3
- "version": "0.9.0",
3
+ "version": "0.10.0",
4
4
  "description": "RISA Oasis UI",
5
5
  "private": false,
6
6
  "main": "dist/index.js",