@hybr1d-tech/charizard 0.7.63 → 0.7.64
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/hybr1d-ui.js +3128 -3116
- package/dist/hybr1d-ui.umd.cjs +12 -12
- package/dist/index.d.ts +33 -4
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { SingleValue } from 'react-select';
|
|
|
21
21
|
import { StoreApi } from 'zustand';
|
|
22
22
|
import { StylesConfig } from 'react-select';
|
|
23
23
|
import { ToastOptions } from 'react-toastify';
|
|
24
|
+
import { ToastPosition } from 'react-toastify';
|
|
24
25
|
import { UseBoundStore } from 'zustand';
|
|
25
26
|
|
|
26
27
|
export declare const ActionsDropdown: React_2.ForwardRefExoticComponent<ActionsDropdownProps & React_2.RefAttributes<unknown>>;
|
|
@@ -288,6 +289,29 @@ declare interface ColorPickerProps {
|
|
|
288
289
|
defaultColor?: string;
|
|
289
290
|
}
|
|
290
291
|
|
|
292
|
+
declare interface CommonOptions {
|
|
293
|
+
/**
|
|
294
|
+
* Set the delay in ms to close the toast automatically.
|
|
295
|
+
* Use `false` to prevent the toast from closing.
|
|
296
|
+
* `Default: 5000`
|
|
297
|
+
*/
|
|
298
|
+
autoClose?: number | false;
|
|
299
|
+
/**
|
|
300
|
+
* Set the default position to use.
|
|
301
|
+
* `One of: 'top-right', 'top-center', 'top-left', 'bottom-right', 'bottom-center', 'bottom-left'`
|
|
302
|
+
* `Default: 'top-right'`
|
|
303
|
+
*/
|
|
304
|
+
position?: ToastPosition;
|
|
305
|
+
/**
|
|
306
|
+
* Set id to handle multiple container
|
|
307
|
+
*/
|
|
308
|
+
containerId?: Id;
|
|
309
|
+
/**
|
|
310
|
+
* Fired when clicking inside toaster
|
|
311
|
+
*/
|
|
312
|
+
onClick?: (event: React_2.MouseEvent) => void;
|
|
313
|
+
}
|
|
314
|
+
|
|
291
315
|
export declare function CreatableSelect({ options, onChange, name, id, className, placeholder, selectStyles, defaultValue, formatGroupLabel, customContainerStyles, menuPlacement, errorMsg, extraprops, isDisabled, isSearchable, isMulti, isClearable, createNewOption, refetchOptions, }: CreatableSelectProps): JSX_2.Element;
|
|
292
316
|
|
|
293
317
|
declare interface CreatableSelectProps {
|
|
@@ -1493,6 +1517,8 @@ declare interface ITask {
|
|
|
1493
1517
|
leaveFrom?: string;
|
|
1494
1518
|
}
|
|
1495
1519
|
|
|
1520
|
+
declare type IToastOptions = ToastOptions & CommonOptions;
|
|
1521
|
+
|
|
1496
1522
|
/**
|
|
1497
1523
|
* Props for the Label component, used to provide descriptive text for form inputs.
|
|
1498
1524
|
*
|
|
@@ -2808,10 +2834,13 @@ export declare const toastInfo: ToastType;
|
|
|
2808
2834
|
|
|
2809
2835
|
export declare const toastSuccess: ToastType;
|
|
2810
2836
|
|
|
2811
|
-
declare type ToastType = ({ msg, options }:
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2837
|
+
declare type ToastType = ({ msg, info, options }: ToastTypeArgs) => Id;
|
|
2838
|
+
|
|
2839
|
+
declare type ToastTypeArgs = {
|
|
2840
|
+
msg: string;
|
|
2841
|
+
info?: string;
|
|
2842
|
+
options?: IToastOptions;
|
|
2843
|
+
};
|
|
2815
2844
|
|
|
2816
2845
|
export declare const toastWarning: ToastType;
|
|
2817
2846
|
|