@risalabs_frontend_org/oasis-ui-kit 0.106.0 → 0.110.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,24 @@
1
+ import React from "react";
2
+ import "./dropdown-input.scss";
3
+ export interface DropdownInputOption {
4
+ label: string;
5
+ value: string;
6
+ }
7
+ export type DropdownInputSize = "small" | "medium" | "large";
8
+ export interface DropdownInputProps {
9
+ label?: string;
10
+ options: DropdownInputOption[];
11
+ value?: string;
12
+ defaultValue?: string;
13
+ placeholder?: string;
14
+ onChange?: (value: string, option: DropdownInputOption) => void;
15
+ disabled?: boolean;
16
+ required?: boolean;
17
+ error?: string;
18
+ hint?: string;
19
+ size?: DropdownInputSize;
20
+ shouldUsePortal?: boolean;
21
+ className?: string;
22
+ id?: string;
23
+ }
24
+ export declare const DropdownInput: React.FC<DropdownInputProps>;
@@ -0,0 +1,46 @@
1
+ import React from "react";
2
+ import "./editable-text.scss";
3
+ export type EditableTextSize = "small" | "medium" | "large";
4
+ export type EditableTextVariant = "default" | "outlined" | "filled";
5
+ export interface EditableTextProps {
6
+ value?: string;
7
+ defaultValue?: string;
8
+ onSave?: (value: string) => void;
9
+ onChange?: (value: string) => void;
10
+ onCancel?: () => void;
11
+ onEditStart?: () => void;
12
+ placeholder?: string;
13
+ emptyText?: string;
14
+ className?: string;
15
+ id?: string;
16
+ disabled?: boolean;
17
+ readOnly?: boolean;
18
+ size?: EditableTextSize;
19
+ variant?: EditableTextVariant;
20
+ maxLength?: number;
21
+ minLength?: number;
22
+ iconColor?: string;
23
+ iconSize?: number;
24
+ textColor?: string;
25
+ fontWeight?: number | string;
26
+ showSaveButton?: boolean;
27
+ showCancelButton?: boolean;
28
+ saveOnBlur?: boolean;
29
+ saveOnEnter?: boolean;
30
+ cancelOnEscape?: boolean;
31
+ editIcon?: React.ReactNode;
32
+ saveIcon?: React.ReactNode;
33
+ cancelIcon?: React.ReactNode;
34
+ inputWidth?: string;
35
+ borderRadius?: string;
36
+ backgroundColor?: string;
37
+ padding?: string;
38
+ gap?: string;
39
+ ariaLabel?: string;
40
+ autoSelectOnEdit?: boolean;
41
+ validate?: (value: string) => string | undefined;
42
+ editTooltip?: string;
43
+ loading?: boolean;
44
+ inputType?: string;
45
+ }
46
+ export declare const EditableText: React.FC<EditableTextProps>;
@@ -0,0 +1,29 @@
1
+ import React from "react";
2
+ import "./searchable-card.scss";
3
+ export interface SearchableCardOption {
4
+ label: string;
5
+ value: string;
6
+ }
7
+ export type SearchableCardSize = "small" | "medium" | "large";
8
+ export interface SearchableCardProps {
9
+ label?: string;
10
+ options: SearchableCardOption[];
11
+ value?: string;
12
+ defaultValue?: string;
13
+ placeholder?: string;
14
+ onChange?: (value: string, option: SearchableCardOption) => void;
15
+ searchPlaceholder?: string;
16
+ heading?: string;
17
+ onSearchChange?: (searchTerm: string) => void;
18
+ onCreateOption?: (value: string) => void;
19
+ onOptionClick?: (option: SearchableCardOption) => void;
20
+ disabled?: boolean;
21
+ required?: boolean;
22
+ error?: string;
23
+ hint?: string;
24
+ size?: SearchableCardSize;
25
+ shouldUsePortal?: boolean;
26
+ className?: string;
27
+ id?: string;
28
+ }
29
+ export declare const SearchableCard: React.FC<SearchableCardProps>;
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import "./searchable-popover.scss";
3
+ export interface SearchablePopoverOption {
4
+ label: string;
5
+ value: string;
6
+ }
7
+ export interface SearchablePopoverProps {
8
+ options: SearchablePopoverOption[];
9
+ value?: string;
10
+ defaultValue?: string;
11
+ onChange?: (value: string, option: SearchablePopoverOption) => void;
12
+ searchPlaceholder?: string;
13
+ heading?: string;
14
+ onSearchChange?: (searchTerm: string) => void;
15
+ onCreateOption?: (value: string) => void;
16
+ shouldUsePortal?: boolean;
17
+ anchorRef?: React.RefObject<HTMLElement>;
18
+ disabled?: boolean;
19
+ className?: string;
20
+ id?: string;
21
+ }
22
+ export declare const SearchablePopover: React.FC<SearchablePopoverProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@risalabs_frontend_org/oasis-ui-kit",
3
- "version": "0.106.0",
3
+ "version": "0.110.0",
4
4
  "description": "RISA Oasis UI",
5
5
  "private": false,
6
6
  "main": "dist/index.js",