@risalabs_frontend_org/oasis-ui-kit 0.133.0 → 0.135.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,25 @@
1
+ import React from "react";
2
+ import "./div-modal.scss";
3
+ interface DivModalProps {
4
+ dialogId: string;
5
+ onSave: () => void | Promise<void>;
6
+ children: React.ReactNode;
7
+ title: string;
8
+ saveButtonText: string;
9
+ onCancel?: () => void | Promise<void>;
10
+ onClose?: () => void | Promise<void>;
11
+ cancelText: string;
12
+ heightPercentage?: number;
13
+ maxHeightPercentage?: number;
14
+ showSingleButton?: boolean;
15
+ disableSave?: boolean;
16
+ hideFooter?: boolean;
17
+ autoCloseOnSave?: boolean;
18
+ disableOnCloseFunc?: boolean;
19
+ hideCloseButton?: boolean;
20
+ disableCloseOnOutsideClick?: boolean;
21
+ }
22
+ export declare function DivModal(props: DivModalProps): React.ReactPortal | null;
23
+ export declare function openDivModal(arg0: string): void;
24
+ export declare function closeDivModal(arg0: string, onCloseFunc?: any): void;
25
+ export {};
@@ -1,7 +1,8 @@
1
1
  import React from "react";
2
2
  import { SelectInputOption } from "../select-input/select-input";
3
+ import { TagOption } from "../tags/tags";
3
4
  import "./editable-table.scss";
4
- export type EditableTableColumnType = "input" | "select" | "textarea";
5
+ export type EditableTableColumnType = "input" | "select" | "textarea" | "tag";
5
6
  export interface EditableTableColumn {
6
7
  key: string;
7
8
  header: string;
@@ -10,6 +11,8 @@ export interface EditableTableColumn {
10
11
  placeholder?: string;
11
12
  options?: SelectInputOption[];
12
13
  rows?: number;
14
+ tagOptions?: TagOption[];
15
+ fallbackTagStyle?: Pick<TagOption, "backgroundColor" | "textColor" | "showBorder">;
13
16
  }
14
17
  export interface EditableTableRow {
15
18
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@risalabs_frontend_org/oasis-ui-kit",
3
- "version": "0.133.0",
3
+ "version": "0.135.0",
4
4
  "description": "RISA Oasis UI",
5
5
  "private": false,
6
6
  "main": "dist/index.js",