@risalabs_frontend_org/oasis-ui-kit 0.105.0 → 0.108.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,41 @@
1
+ import React from "react";
2
+ import "./analysis-feedback-form.scss";
3
+ export interface AnalysisFeedbackOption {
4
+ value: string;
5
+ label: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface AnalysisFeedbackPayload {
9
+ selectedValues: string[];
10
+ comments: string;
11
+ }
12
+ export type AnalysisFeedbackSelectionMode = "checkbox" | "radio";
13
+ export interface AnalysisFeedbackFormProps {
14
+ title?: React.ReactNode;
15
+ options: AnalysisFeedbackOption[];
16
+ selectionMode?: AnalysisFeedbackSelectionMode;
17
+ selectedValues?: string[];
18
+ defaultSelectedValues?: string[];
19
+ onSelectedValuesChange?: (values: string[]) => void;
20
+ commentsLabel?: React.ReactNode;
21
+ commentsPlaceholder?: string;
22
+ comments?: string;
23
+ defaultComments?: string;
24
+ onCommentsChange?: (value: string) => void;
25
+ commentsMaxLength?: number;
26
+ hideComments?: boolean;
27
+ commentsRequired?: boolean;
28
+ requireSelection?: boolean;
29
+ submitLabel?: React.ReactNode;
30
+ cancelLabel?: React.ReactNode;
31
+ hideCancel?: boolean;
32
+ disabled?: boolean;
33
+ isSubmitting?: boolean;
34
+ onSubmit?: (payload: AnalysisFeedbackPayload) => void;
35
+ onCancel?: () => void;
36
+ backgroundColor?: string;
37
+ className?: string;
38
+ id?: string;
39
+ }
40
+ export declare const AnalysisFeedbackForm: React.FC<AnalysisFeedbackFormProps>;
41
+ export default AnalysisFeedbackForm;
@@ -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,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.105.0",
3
+ "version": "0.108.0",
4
4
  "description": "RISA Oasis UI",
5
5
  "private": false,
6
6
  "main": "dist/index.js",