rc-lib-ui 1.4.6 → 1.4.7
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/ControlCards/InteractiveMessages/InteractiveMessage.provider.d.ts +2 -0
- package/dist/ControlCards/InteractiveMessages/alerts/Alerts.styled.d.ts +1 -2
- package/dist/ControlCards/InteractiveMessages/alerts/index.d.ts +1 -0
- package/dist/ControlCards/InteractiveMessages/index.d.ts +3 -1
- package/dist/ControlCards/InteractiveMessages/types.d.ts +1 -1
- package/dist/control-cards.js +8 -4
- package/package.json +1 -1
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
import { SnackbarProviderProps } from 'notistack';
|
|
1
2
|
import { default as React, FC } from 'react';
|
|
2
3
|
interface InteractiveMessageProviderProps {
|
|
3
4
|
children: React.ReactNode;
|
|
5
|
+
Components?: Partial<SnackbarProviderProps['Components']>;
|
|
4
6
|
}
|
|
5
7
|
export declare const InteractiveMessageProvider: FC<InteractiveMessageProviderProps>;
|
|
6
8
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomContentProps } from 'notistack';
|
|
2
|
-
interface CustomSnackbarProps extends CustomContentProps {
|
|
2
|
+
export interface CustomSnackbarProps extends CustomContentProps {
|
|
3
3
|
}
|
|
4
4
|
export type DeleteCountdownAlertProps = {
|
|
5
5
|
onUndo: () => void;
|
|
@@ -18,4 +18,3 @@ export declare const customAlerts: {
|
|
|
18
18
|
info: import('react').ForwardRefExoticComponent<CustomSnackbarProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
19
19
|
deleteCountdown: import('react').ForwardRefExoticComponent<DeleteCountdownAlertProps & CustomContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
20
20
|
};
|
|
21
|
-
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type CustomSnackbarProps } from './Alerts.styled';
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { useSnackbar } from 'notistack';
|
|
2
|
+
export type { InteractiveMessageContextProps, InteractiveMessageAlertProps, InteractiveMessageModalsProps, DefaultShowAlertsVariant } from './types';
|
|
2
3
|
export { InteractiveMessageProvider } from './InteractiveMessage.provider';
|
|
3
4
|
export { useInteractiveMessage } from './controls';
|
|
5
|
+
export type { CustomSnackbarProps } from './alerts';
|
|
@@ -8,7 +8,7 @@ export interface InteractiveMessageItemCommon {
|
|
|
8
8
|
timeout?: number;
|
|
9
9
|
dismissible?: boolean;
|
|
10
10
|
}
|
|
11
|
-
type DefaultShowAlertsVariant = Exclude<VariantType, 'deleteCountdown'>;
|
|
11
|
+
export type DefaultShowAlertsVariant = Exclude<VariantType, 'deleteCountdown'>;
|
|
12
12
|
export type InteractiveMessageAlertProps = InteractiveMessageItemCommon & OptionsObject<DefaultShowAlertsVariant> & {
|
|
13
13
|
animation?: 'Fade' | 'Grow' | 'Zoom' | 'Slide';
|
|
14
14
|
variant?: DefaultShowAlertsVariant;
|
package/dist/control-cards.js
CHANGED
|
@@ -2179,15 +2179,18 @@ const Ar = N.memo(_n), pn = {
|
|
|
2179
2179
|
}
|
|
2180
2180
|
) }, l.id))
|
|
2181
2181
|
] });
|
|
2182
|
-
}, Kr = (e) => /* @__PURE__ */ c(
|
|
2182
|
+
}, Kr = ({ Components: e = {}, ...n }) => /* @__PURE__ */ c(
|
|
2183
2183
|
Bt,
|
|
2184
2184
|
{
|
|
2185
2185
|
maxSnack: 4,
|
|
2186
|
-
Components:
|
|
2186
|
+
Components: {
|
|
2187
|
+
...Gt,
|
|
2188
|
+
...e
|
|
2189
|
+
},
|
|
2187
2190
|
classes: {
|
|
2188
2191
|
containerRoot: Ir["notistack-SnackbarContainer"]
|
|
2189
2192
|
},
|
|
2190
|
-
children: /* @__PURE__ */ c(Lr, { ...
|
|
2193
|
+
children: /* @__PURE__ */ c(Lr, { ...n })
|
|
2191
2194
|
}
|
|
2192
2195
|
), _r = (e) => {
|
|
2193
2196
|
const n = S(({ view: i, ...a }) => {
|
|
@@ -2241,5 +2244,6 @@ export {
|
|
|
2241
2244
|
Ur as useControlCards,
|
|
2242
2245
|
et as useInteractiveMessage,
|
|
2243
2246
|
dt as useLongPress,
|
|
2244
|
-
ot as useSelected
|
|
2247
|
+
ot as useSelected,
|
|
2248
|
+
Q as useSnackbar
|
|
2245
2249
|
};
|