@risalabs_frontend_org/oasis-ui-kit 0.22.0 → 0.23.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,33 @@
1
+ import React from "react";
2
+ import "./checkbox-list.scss";
3
+ export interface CheckboxListItem {
4
+ id: string;
5
+ label: string;
6
+ checked: boolean;
7
+ disabled?: boolean;
8
+ }
9
+ export interface CheckboxListProps {
10
+ items: CheckboxListItem[];
11
+ onSelectionChange?: (items: CheckboxListItem[], changedId: string) => void;
12
+ selectAllLabel?: string;
13
+ showSelectAll?: boolean;
14
+ width?: string | number;
15
+ rowPaddingY?: number;
16
+ checkboxLabelGap?: number;
17
+ paddingX?: number;
18
+ paddingY?: number;
19
+ borderRadius?: number;
20
+ backgroundColor?: string;
21
+ labelColor?: string;
22
+ checkboxBorderColor?: string;
23
+ checkboxCheckedColor?: string;
24
+ checkmarkColor?: string;
25
+ selectAllLabelFontWeight?: "bold" | "regular";
26
+ labelFontSize?: number;
27
+ itemLabelLineHeight?: number;
28
+ selectAllLabelLineHeight?: number;
29
+ className?: string;
30
+ style?: React.CSSProperties;
31
+ ariaLabel?: string;
32
+ }
33
+ export declare const CheckboxList: React.FC<CheckboxListProps>;
@@ -0,0 +1,40 @@
1
+ import React from "react";
2
+ import "./footer-actions.scss";
3
+ export interface FooterActionItem {
4
+ label: string;
5
+ onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
6
+ variant: "primary" | "secondary";
7
+ disabled?: boolean;
8
+ startIcon?: React.ReactNode;
9
+ endIcon?: React.ReactNode;
10
+ ariaLabel?: string;
11
+ type?: "button" | "submit" | "reset";
12
+ }
13
+ export interface FooterActionsProps {
14
+ primaryAction: {
15
+ label: string;
16
+ onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
17
+ disabled?: boolean;
18
+ startIcon?: React.ReactNode;
19
+ endIcon?: React.ReactNode;
20
+ ariaLabel?: string;
21
+ type?: "button" | "submit" | "reset";
22
+ };
23
+ secondaryAction?: {
24
+ label: string;
25
+ onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
26
+ disabled?: boolean;
27
+ startIcon?: React.ReactNode;
28
+ endIcon?: React.ReactNode;
29
+ ariaLabel?: string;
30
+ type?: "button" | "submit" | "reset";
31
+ };
32
+ actions?: FooterActionItem[];
33
+ align?: "start" | "center" | "end";
34
+ fullWidthButtons?: boolean;
35
+ padding?: [number, number];
36
+ showTopBorder?: boolean;
37
+ className?: string;
38
+ style?: React.CSSProperties;
39
+ }
40
+ export declare const FooterActions: React.FC<FooterActionsProps>;
@@ -0,0 +1,50 @@
1
+ import React from "react";
2
+ import "./multi-select-with-tag.scss";
3
+ export interface MultiSelectWithTagOption {
4
+ id: string;
5
+ label: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface MultiSelectWithTagProps {
9
+ options: MultiSelectWithTagOption[];
10
+ value?: string[];
11
+ defaultValue?: string[];
12
+ onChange?: (selectedIds: string[]) => void;
13
+ selectAllLabel?: string;
14
+ showSelectAll?: boolean;
15
+ showTagRemoveIcon?: boolean;
16
+ placeholder?: string;
17
+ barWidth?: string | number;
18
+ barMinWidth?: string | number;
19
+ dropdownWidth?: string | number;
20
+ dropdownMinWidth?: string | number;
21
+ dynamicWidth?: boolean;
22
+ dropdownMaxHeight?: string | number;
23
+ open?: boolean;
24
+ onOpenChange?: (open: boolean) => void;
25
+ tagBackgroundColor?: string;
26
+ tagTextColor?: string;
27
+ tagBorderColor?: string;
28
+ checkboxListProps?: Partial<{
29
+ rowPaddingY: number;
30
+ checkboxLabelGap: number;
31
+ paddingX: number;
32
+ paddingY: number;
33
+ labelColor: string;
34
+ checkboxBorderColor: string;
35
+ checkboxCheckedColor: string;
36
+ checkmarkColor: string;
37
+ selectAllLabelFontWeight: "bold" | "regular";
38
+ }>;
39
+ dropdownAriaLabel?: string;
40
+ className?: string;
41
+ style?: React.CSSProperties;
42
+ disabled?: boolean;
43
+ hideFooter?: boolean;
44
+ footerPrimaryLabel?: string;
45
+ footerSecondaryLabel?: string;
46
+ onFooterApply?: (selectedIds: string[]) => void;
47
+ onFooterCancel?: () => void;
48
+ horizontalScrollTags?: boolean;
49
+ }
50
+ export declare const MultiSelectWithTag: React.FC<MultiSelectWithTagProps>;
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import "./tag-filter-bar.scss";
3
+ export type TagFilterBarTag = string | {
4
+ id?: string;
5
+ label: string;
6
+ };
7
+ export interface TagFilterBarProps {
8
+ tags: TagFilterBarTag[];
9
+ onTagRemove?: (label: string, index: number) => void;
10
+ onDropdownClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
11
+ showDropdown?: boolean;
12
+ closable?: boolean;
13
+ dropdownAriaLabel?: string;
14
+ className?: string;
15
+ style?: React.CSSProperties;
16
+ tagBackgroundColor?: string;
17
+ tagTextColor?: string;
18
+ tagBorderColor?: string;
19
+ closeIcon?: React.ReactNode;
20
+ singleLineScrollable?: boolean;
21
+ }
22
+ export declare const TagFilterBar: React.FC<TagFilterBarProps>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@risalabs_frontend_org/oasis-ui-kit",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "RISA Oasis UI",
5
5
  "private": false,
6
6
  "main": "dist/index.js",