@risalabs_frontend_org/oasis-ui-kit 0.136.0 → 0.138.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 +3 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/dots-with-popup/dots-with-popup.d.ts +14 -0
- package/dist/src/components/popup-with-api/popup-with-api.d.ts +23 -0
- package/dist/src/hooks/use-portal.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type PopupWithApiProps } from "../popup-with-api/popup-with-api";
|
|
3
|
+
import "./dots-with-popup.scss";
|
|
4
|
+
export interface DotsWithPopupProps {
|
|
5
|
+
popup: PopupWithApiProps;
|
|
6
|
+
className?: string;
|
|
7
|
+
triggerClassName?: string;
|
|
8
|
+
triggerAriaLabel?: string;
|
|
9
|
+
closeOnMarkSuccess?: boolean;
|
|
10
|
+
open?: boolean;
|
|
11
|
+
onOpenChange?: (open: boolean) => void;
|
|
12
|
+
getPortalContainer?: () => HTMLElement;
|
|
13
|
+
}
|
|
14
|
+
export declare function DotsWithPopup(props: DotsWithPopupProps): React.JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./popup-with-api.scss";
|
|
3
|
+
export interface PopupWithApiItem {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const POPUP_WITH_API_DEFAULT_ITEMS: PopupWithApiItem[];
|
|
9
|
+
export interface PopupWithApiProps {
|
|
10
|
+
items?: PopupWithApiItem[];
|
|
11
|
+
checkedById?: Record<string, boolean>;
|
|
12
|
+
defaultCheckedById?: Record<string, boolean>;
|
|
13
|
+
onCheckedChange?: (next: Record<string, boolean>) => void;
|
|
14
|
+
onCancel?: () => void;
|
|
15
|
+
onMarkAsSuccess: () => void | Promise<void>;
|
|
16
|
+
cancelLabel?: string;
|
|
17
|
+
markSuccessLabel?: string;
|
|
18
|
+
submittingLabel?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
style?: React.CSSProperties;
|
|
21
|
+
checkboxesGroupLabel?: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function PopupWithApi(props: PopupWithApiProps): React.JSX.Element;
|