@risalabs_frontend_org/oasis-ui-kit 0.53.0 → 0.55.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.
- package/dist/index.d.ts +11 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/action-chip/action-chip.d.ts +19 -0
- package/dist/src/components/criterion-checklist/criterion-checklist.d.ts +34 -0
- package/dist/src/components/criterion-detailed-checklist/criterion-detailed-checklist.d.ts +38 -0
- package/dist/src/components/criterion-detailed-question/criterion-detailed-question.d.ts +38 -0
- package/dist/src/components/criterion-freetext/criterion-freetext.d.ts +30 -0
- package/dist/src/components/criterion-question/criterion-question.d.ts +33 -0
- package/dist/src/components/detail-card/detail-card.d.ts +13 -0
- package/dist/src/components/evidence-card/evidence-card.d.ts +12 -0
- package/dist/src/components/info-strip/info-strip.d.ts +18 -0
- package/dist/src/components/labeled-value/labeled-value.d.ts +23 -0
- package/dist/src/components/review-line-item/review-line-item.d.ts +21 -0
- package/package.json +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./action-chip.scss";
|
|
3
|
+
export interface ActionChipProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
|
|
4
|
+
label: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
iconPosition?: "left" | "right";
|
|
7
|
+
backgroundColor?: string;
|
|
8
|
+
textColor?: string;
|
|
9
|
+
size?: "small" | "medium";
|
|
10
|
+
active?: boolean;
|
|
11
|
+
defaultActive?: boolean;
|
|
12
|
+
activeIcon?: React.ReactNode;
|
|
13
|
+
activeBackgroundColor?: string;
|
|
14
|
+
activeTextColor?: string;
|
|
15
|
+
onActiveChange?: (active: boolean, id?: string) => void;
|
|
16
|
+
}
|
|
17
|
+
declare const ActionChip: ({ label, icon, iconPosition, backgroundColor, textColor, size, active, defaultActive, activeIcon, activeBackgroundColor, activeTextColor, onActiveChange, className, style, disabled, type, onClick, ...rest }: ActionChipProps) => React.JSX.Element;
|
|
18
|
+
export { ActionChip };
|
|
19
|
+
export default ActionChip;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { EvidenceCardConfig } from "../criterion-question/criterion-question";
|
|
3
|
+
import "./criterion-checklist.scss";
|
|
4
|
+
export type { EvidenceCardConfig };
|
|
5
|
+
export interface ChecklistOption {
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface CriterionChecklistProps {
|
|
11
|
+
stepNumber?: number | string;
|
|
12
|
+
title: string;
|
|
13
|
+
badge?: React.ReactNode;
|
|
14
|
+
checklistName: string;
|
|
15
|
+
checklistOptions: ChecklistOption[];
|
|
16
|
+
checkedValues?: string[];
|
|
17
|
+
onCheckChange?: (value: string, checked: boolean, allChecked: string[]) => void;
|
|
18
|
+
checklistDisabled?: boolean;
|
|
19
|
+
checkedColor?: string;
|
|
20
|
+
evidenceCards?: EvidenceCardConfig[];
|
|
21
|
+
evidenceTitle?: string;
|
|
22
|
+
evidenceStatements?: string[];
|
|
23
|
+
evidenceCardBackGroundColor?: string;
|
|
24
|
+
collapsible?: boolean;
|
|
25
|
+
defaultExpanded?: boolean;
|
|
26
|
+
expanded?: boolean;
|
|
27
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
className?: string;
|
|
30
|
+
id?: string;
|
|
31
|
+
}
|
|
32
|
+
declare const CriterionChecklist: ({ stepNumber, title, badge, checklistName, checklistOptions, checkedValues, onCheckChange, checklistDisabled, checkedColor, evidenceCards, evidenceTitle, evidenceStatements, evidenceCardBackGroundColor, collapsible, defaultExpanded, expanded: expandedProp, onExpandedChange, children, className, id, }: CriterionChecklistProps) => React.JSX.Element;
|
|
33
|
+
export { CriterionChecklist };
|
|
34
|
+
export default CriterionChecklist;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { EvidenceCardConfig } from "../criterion-question/criterion-question";
|
|
3
|
+
import type { ChecklistOption } from "../criterion-checklist/criterion-checklist";
|
|
4
|
+
import "./criterion-detailed-checklist.scss";
|
|
5
|
+
export type { EvidenceCardConfig, ChecklistOption };
|
|
6
|
+
export interface CriterionDetailedChecklistProps {
|
|
7
|
+
stepNumber?: number | string;
|
|
8
|
+
title: string;
|
|
9
|
+
badge?: React.ReactNode;
|
|
10
|
+
checklistName: string;
|
|
11
|
+
checklistOptions: ChecklistOption[];
|
|
12
|
+
checkedValues?: string[];
|
|
13
|
+
onCheckChange?: (value: string, checked: boolean, allChecked: string[]) => void;
|
|
14
|
+
checklistDisabled?: boolean;
|
|
15
|
+
checkedColor?: string;
|
|
16
|
+
textareaName?: string;
|
|
17
|
+
textareaValue?: string;
|
|
18
|
+
onTextChange?: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
19
|
+
textareaPlaceholder?: string;
|
|
20
|
+
textareaDisabled?: boolean;
|
|
21
|
+
textareaRows?: number;
|
|
22
|
+
textareaMaxLength?: number;
|
|
23
|
+
textareaLabel?: string;
|
|
24
|
+
evidenceCards?: EvidenceCardConfig[];
|
|
25
|
+
evidenceTitle?: string;
|
|
26
|
+
evidenceStatements?: string[];
|
|
27
|
+
evidenceCardBackGroundColor?: string;
|
|
28
|
+
collapsible?: boolean;
|
|
29
|
+
defaultExpanded?: boolean;
|
|
30
|
+
expanded?: boolean;
|
|
31
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
className?: string;
|
|
34
|
+
id?: string;
|
|
35
|
+
}
|
|
36
|
+
declare const CriterionDetailedChecklist: ({ stepNumber, title, badge, checklistName, checklistOptions, checkedValues, onCheckChange, checklistDisabled, checkedColor, textareaName, textareaValue, onTextChange, textareaPlaceholder, textareaDisabled, textareaRows, textareaMaxLength, textareaLabel, evidenceCards, evidenceTitle, evidenceStatements, evidenceCardBackGroundColor, collapsible, defaultExpanded, expanded: expandedProp, onExpandedChange, children, className, id, }: CriterionDetailedChecklistProps) => React.JSX.Element;
|
|
37
|
+
export { CriterionDetailedChecklist };
|
|
38
|
+
export default CriterionDetailedChecklist;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RadioButtonOption } from "../radio-button/radio-button";
|
|
3
|
+
import type { EvidenceCardConfig } from "../criterion-question/criterion-question";
|
|
4
|
+
import "./criterion-detailed-question.scss";
|
|
5
|
+
export type { EvidenceCardConfig };
|
|
6
|
+
export interface CriterionDetailedQuestionProps {
|
|
7
|
+
stepNumber?: number | string;
|
|
8
|
+
title: string;
|
|
9
|
+
badge?: React.ReactNode;
|
|
10
|
+
radioName: string;
|
|
11
|
+
radioOptions: RadioButtonOption[];
|
|
12
|
+
radioValue?: string;
|
|
13
|
+
onRadioChange?: (value: string, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
14
|
+
radioDisabled?: boolean;
|
|
15
|
+
radioSelectedColor?: string;
|
|
16
|
+
textareaName?: string;
|
|
17
|
+
textareaValue?: string;
|
|
18
|
+
onTextChange?: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
19
|
+
textareaPlaceholder?: string;
|
|
20
|
+
textareaDisabled?: boolean;
|
|
21
|
+
textareaRows?: number;
|
|
22
|
+
textareaMaxLength?: number;
|
|
23
|
+
textareaLabel?: string;
|
|
24
|
+
evidenceCards?: EvidenceCardConfig[];
|
|
25
|
+
evidenceTitle?: string;
|
|
26
|
+
evidenceStatements?: string[];
|
|
27
|
+
evidenceCardBackGroundColor?: string;
|
|
28
|
+
collapsible?: boolean;
|
|
29
|
+
defaultExpanded?: boolean;
|
|
30
|
+
expanded?: boolean;
|
|
31
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
32
|
+
children?: React.ReactNode;
|
|
33
|
+
className?: string;
|
|
34
|
+
id?: string;
|
|
35
|
+
}
|
|
36
|
+
declare const CriterionDetailedQuestion: ({ stepNumber, title, badge, radioName, radioOptions, radioValue, onRadioChange, radioDisabled, radioSelectedColor, textareaName, textareaValue, onTextChange, textareaPlaceholder, textareaDisabled, textareaRows, textareaMaxLength, textareaLabel, evidenceCards, evidenceTitle, evidenceStatements, evidenceCardBackGroundColor, collapsible, defaultExpanded, expanded: expandedProp, onExpandedChange, children, className, id, }: CriterionDetailedQuestionProps) => React.JSX.Element;
|
|
37
|
+
export { CriterionDetailedQuestion };
|
|
38
|
+
export default CriterionDetailedQuestion;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import type { EvidenceCardConfig } from "../criterion-question/criterion-question";
|
|
3
|
+
import "./criterion-freetext.scss";
|
|
4
|
+
export type { EvidenceCardConfig };
|
|
5
|
+
export interface CriterionFreeTextProps {
|
|
6
|
+
stepNumber?: number | string;
|
|
7
|
+
title: string;
|
|
8
|
+
badge?: React.ReactNode;
|
|
9
|
+
textareaName?: string;
|
|
10
|
+
textareaValue?: string;
|
|
11
|
+
onTextChange?: (value: string, event: React.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
12
|
+
textareaPlaceholder?: string;
|
|
13
|
+
textareaDisabled?: boolean;
|
|
14
|
+
textareaRows?: number;
|
|
15
|
+
textareaMaxLength?: number;
|
|
16
|
+
evidenceCards?: EvidenceCardConfig[];
|
|
17
|
+
evidenceTitle?: string;
|
|
18
|
+
evidenceStatements?: string[];
|
|
19
|
+
evidenceCardBackGroundColor?: string;
|
|
20
|
+
collapsible?: boolean;
|
|
21
|
+
defaultExpanded?: boolean;
|
|
22
|
+
expanded?: boolean;
|
|
23
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
24
|
+
children?: React.ReactNode;
|
|
25
|
+
className?: string;
|
|
26
|
+
id?: string;
|
|
27
|
+
}
|
|
28
|
+
declare const CriterionFreeText: ({ stepNumber, title, badge, textareaName, textareaValue, onTextChange, textareaPlaceholder, textareaDisabled, textareaRows, textareaMaxLength, evidenceCards, evidenceTitle, evidenceStatements, evidenceCardBackGroundColor, collapsible, defaultExpanded, expanded: expandedProp, onExpandedChange, children, className, id, }: CriterionFreeTextProps) => React.JSX.Element;
|
|
29
|
+
export { CriterionFreeText };
|
|
30
|
+
export default CriterionFreeText;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { RadioButtonOption } from "../radio-button/radio-button";
|
|
3
|
+
import "./criterion-question.scss";
|
|
4
|
+
export interface EvidenceCardConfig {
|
|
5
|
+
title?: string;
|
|
6
|
+
statements?: string[];
|
|
7
|
+
cardBackGroundColor?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CriterionQuestionProps {
|
|
10
|
+
stepNumber?: number | string;
|
|
11
|
+
title: string;
|
|
12
|
+
badge?: React.ReactNode;
|
|
13
|
+
radioName: string;
|
|
14
|
+
radioOptions: RadioButtonOption[];
|
|
15
|
+
radioValue?: string;
|
|
16
|
+
onRadioChange?: (value: string, event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
+
radioDisabled?: boolean;
|
|
18
|
+
radioSelectedColor?: string;
|
|
19
|
+
evidenceCards?: EvidenceCardConfig[];
|
|
20
|
+
evidenceTitle?: string;
|
|
21
|
+
evidenceStatements?: string[];
|
|
22
|
+
evidenceCardBackGroundColor?: string;
|
|
23
|
+
collapsible?: boolean;
|
|
24
|
+
defaultExpanded?: boolean;
|
|
25
|
+
expanded?: boolean;
|
|
26
|
+
onExpandedChange?: (expanded: boolean) => void;
|
|
27
|
+
children?: React.ReactNode;
|
|
28
|
+
className?: string;
|
|
29
|
+
id?: string;
|
|
30
|
+
}
|
|
31
|
+
declare const CriterionQuestion: ({ stepNumber, title, badge, radioName, radioOptions, radioValue, onRadioChange, radioDisabled, radioSelectedColor, evidenceCards, evidenceTitle, evidenceStatements, evidenceCardBackGroundColor, collapsible, defaultExpanded, expanded: expandedProp, onExpandedChange, children, className, id, }: CriterionQuestionProps) => React.JSX.Element;
|
|
32
|
+
export { CriterionQuestion };
|
|
33
|
+
export default CriterionQuestion;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./detail-card.scss";
|
|
3
|
+
export interface DetailCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
title: string;
|
|
5
|
+
badge?: React.ReactNode;
|
|
6
|
+
actions?: React.ReactNode;
|
|
7
|
+
headerClassName?: string;
|
|
8
|
+
bodyClassName?: string;
|
|
9
|
+
borderColor?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const DetailCard: ({ title, badge, actions, headerClassName, bodyClassName, borderColor, children, className, style, id, ...rest }: DetailCardProps) => React.JSX.Element;
|
|
12
|
+
export { DetailCard };
|
|
13
|
+
export default DetailCard;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./evidence-card.scss";
|
|
3
|
+
export interface EvidenceCardProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title" | "children"> {
|
|
4
|
+
cardBackGroundColor?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
statements?: string[];
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const EvidenceCard: ({ cardBackGroundColor, title, statements, children, className, style, ...rest }: EvidenceCardProps) => React.JSX.Element;
|
|
11
|
+
export { EvidenceCard };
|
|
12
|
+
export default EvidenceCard;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./info-strip.scss";
|
|
3
|
+
export interface InfoStripItem {
|
|
4
|
+
label: string | React.ReactNode;
|
|
5
|
+
key?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface InfoStripProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
8
|
+
items: (string | React.ReactNode | InfoStripItem)[];
|
|
9
|
+
separator?: React.ReactNode;
|
|
10
|
+
backgroundColor?: string;
|
|
11
|
+
textColor?: string;
|
|
12
|
+
dotColor?: string;
|
|
13
|
+
dotSize?: number | string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const InfoStrip: ({ items, separator, backgroundColor, textColor, dotColor, dotSize, className, style, ...rest }: InfoStripProps) => React.JSX.Element | null;
|
|
17
|
+
export { InfoStrip };
|
|
18
|
+
export default InfoStrip;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./labeled-value.scss";
|
|
3
|
+
export interface LabeledValueProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
4
|
+
label: string;
|
|
5
|
+
value?: string | React.ReactNode;
|
|
6
|
+
labelColor?: string;
|
|
7
|
+
valueColor?: string;
|
|
8
|
+
labelIcon?: React.ReactNode;
|
|
9
|
+
labelIconTooltip?: string;
|
|
10
|
+
valueIconLeft?: React.ReactNode;
|
|
11
|
+
valueIconLeftTooltip?: string;
|
|
12
|
+
valueIconRight?: React.ReactNode;
|
|
13
|
+
valueIconRightTooltip?: string;
|
|
14
|
+
labelClassName?: string;
|
|
15
|
+
valueClassName?: string;
|
|
16
|
+
direction?: "vertical" | "horizontal";
|
|
17
|
+
gap?: string | number;
|
|
18
|
+
truncate?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const LabeledValue: ({ label, value, labelColor, valueColor, labelIcon, labelIconTooltip, valueIconLeft, valueIconLeftTooltip, valueIconRight, valueIconRightTooltip, labelClassName, valueClassName, direction, gap, truncate, className, style, ...rest }: LabeledValueProps) => React.JSX.Element;
|
|
22
|
+
export { LabeledValue };
|
|
23
|
+
export default LabeledValue;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./review-line-item.scss";
|
|
3
|
+
export interface ReviewLineItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
4
|
+
code?: string;
|
|
5
|
+
name: string;
|
|
6
|
+
subtitle?: string;
|
|
7
|
+
badge?: React.ReactNode;
|
|
8
|
+
actions?: React.ReactNode;
|
|
9
|
+
collapsible?: boolean;
|
|
10
|
+
expanded?: boolean;
|
|
11
|
+
defaultExpanded?: boolean;
|
|
12
|
+
onExpandChange?: (expanded: boolean) => void;
|
|
13
|
+
hideBorderTop?: boolean;
|
|
14
|
+
hideBorderRight?: boolean;
|
|
15
|
+
hideBorderBottom?: boolean;
|
|
16
|
+
hideBorderLeft?: boolean;
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
}
|
|
19
|
+
declare const ReviewLineItem: ({ code, name, subtitle, badge, actions, collapsible, expanded, defaultExpanded, onExpandChange, hideBorderTop, hideBorderRight, hideBorderBottom, hideBorderLeft, children, className, style, id, ...rest }: ReviewLineItemProps) => React.JSX.Element;
|
|
20
|
+
export { ReviewLineItem };
|
|
21
|
+
export default ReviewLineItem;
|