@risalabs_frontend_org/oasis-ui-kit 0.25.0 → 0.29.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,11 @@
1
+ import React from "react";
2
+ import "./AttachmentCard.scss";
3
+ interface AttachmentCardProps {
4
+ title: string;
5
+ onDelete?: () => void;
6
+ className?: string;
7
+ uploadProgress?: number;
8
+ isUploading?: boolean;
9
+ }
10
+ export declare const AttachmentCard: React.FC<AttachmentCardProps>;
11
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import "./ProfileButton.scss";
3
+ interface ProfileButtonProps {
4
+ name: string;
5
+ initials: string;
6
+ onClick?: () => void;
7
+ className?: string;
8
+ imageUrl?: string;
9
+ avatarBackgroundColor?: string;
10
+ }
11
+ export declare const ProfileButton: React.FC<ProfileButtonProps>;
12
+ export {};
@@ -2,8 +2,8 @@ import React from "react";
2
2
  import "./action-input.scss";
3
3
  export interface ActionInputProps {
4
4
  value: string;
5
- onChange?: (value: string) => void;
6
- onAction?: (value: string) => void;
5
+ onChange?: (value: string, event: React.ChangeEvent<HTMLInputElement>) => void;
6
+ onAction?: (value: string, event: React.MouseEvent<HTMLButtonElement>) => void;
7
7
  placeholder?: string;
8
8
  readOnly?: boolean;
9
9
  disabled?: boolean;
@@ -4,7 +4,7 @@ export interface MultiLineTextWithCopyProps {
4
4
  primaryText: string;
5
5
  secondaryText: string;
6
6
  copyValue?: string;
7
- onCopy?: (value: string) => void;
7
+ onCopy?: (value: string, event: React.MouseEvent<HTMLButtonElement>) => void;
8
8
  copyIconColor?: string;
9
9
  copyIconSize?: number;
10
10
  shouldTruncate?: boolean;
@@ -9,7 +9,7 @@ export interface RadioButtonProps {
9
9
  name: string;
10
10
  options: RadioButtonOption[];
11
11
  value?: string;
12
- onChange?: (value: string) => void;
12
+ onChange?: (value: string, event: React.ChangeEvent<HTMLInputElement>) => void;
13
13
  disabled?: boolean;
14
14
  className?: string;
15
15
  direction?: "vertical" | "horizontal";
@@ -3,8 +3,8 @@ import "./rule-card.scss";
3
3
  export interface RuleCardProps {
4
4
  content: string;
5
5
  index?: number;
6
- onEdit?: () => void;
7
- onDelete?: () => void;
6
+ onEdit?: (event: React.MouseEvent<HTMLButtonElement>) => void;
7
+ onDelete?: (event: React.MouseEvent<HTMLButtonElement>) => void;
8
8
  editIconColor?: string;
9
9
  deleteIconColor?: string;
10
10
  iconSize?: number;
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import type { IconActionMenuItem } from "../icon-action-menu/icon-action-menu";
3
+ import "./section-header-row.scss";
4
+ export interface SectionHeaderRowProps {
5
+ stepNumber?: number;
6
+ title: string;
7
+ description?: string;
8
+ actionMenuItems: IconActionMenuItem[];
9
+ isExpanded?: boolean;
10
+ onExpandClick?: () => void;
11
+ onReorderClick?: () => void;
12
+ draggable?: boolean;
13
+ dragId?: string | number;
14
+ onDragStart?: (e: React.DragEvent) => void;
15
+ onDragEnd?: (e: React.DragEvent) => void;
16
+ onActionMenuItemClick?: (item: IconActionMenuItem) => void;
17
+ className?: string;
18
+ titleClassName?: string;
19
+ descriptionClassName?: string;
20
+ badgeSize?: number;
21
+ actionIconSize?: number;
22
+ getActionMenuPortalContainer?: () => HTMLElement;
23
+ children?: React.ReactNode;
24
+ expandableBgColor?: string;
25
+ }
26
+ export declare function SectionHeaderRow({ stepNumber, title, description, actionMenuItems, isExpanded, onExpandClick, onReorderClick, onDragStart, onDragEnd, onActionMenuItemClick, className, titleClassName, descriptionClassName, badgeSize, actionIconSize, getActionMenuPortalContainer, children, draggable, dragId, expandableBgColor, }: SectionHeaderRowProps): React.JSX.Element;
@@ -13,8 +13,8 @@ export interface TagsProps {
13
13
  textColor?: string;
14
14
  showBorder?: boolean;
15
15
  options?: TagOption[];
16
- onSelect?: (option: TagOption) => void;
17
- onClick?: () => void;
16
+ onSelect?: (option: TagOption, event: React.MouseEvent | React.KeyboardEvent) => void;
17
+ onClick?: (event: React.MouseEvent | React.KeyboardEvent) => void;
18
18
  shouldUsePortal?: boolean;
19
19
  className?: string;
20
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@risalabs_frontend_org/oasis-ui-kit",
3
- "version": "0.25.0",
3
+ "version": "0.29.0",
4
4
  "description": "RISA Oasis UI",
5
5
  "private": false,
6
6
  "main": "dist/index.js",