@imj_media/ui 1.0.49 → 1.0.50
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.css +1 -1
- package/dist/index.esm.js +197 -195
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/modules/Alert/components/atoms/AlertFooter.d.ts.map +1 -1
- package/dist/modules/Alert/hooks/useAlertStyles.d.ts +4 -4
- package/dist/modules/Alert/hooks/useAlertStyles.d.ts.map +1 -1
- package/dist/modules/Alert/index.d.ts +1 -1
- package/dist/modules/Alert/index.d.ts.map +1 -1
- package/dist/modules/Alert/utils/alert.d.ts +3 -3
- package/dist/modules/Alert/utils/alert.d.ts.map +1 -1
- package/dist/modules/Toast/hooks/useToastService.d.ts +3 -3
- package/dist/modules/Toast/hooks/useToastService.d.ts.map +1 -1
- package/dist/modules/Toast/index.d.ts +1 -1
- package/dist/shared/types/alert.d.ts +5 -4
- package/dist/shared/types/alert.d.ts.map +1 -1
- package/dist/shared/types/toast.d.ts +1 -1
- package/dist/shared/types/toast.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertFooter.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Alert/components/atoms/AlertFooter.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAgB,MAAM,sBAAsB,CAAA;AAErE,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,
|
|
1
|
+
{"version":3,"file":"AlertFooter.d.ts","sourceRoot":"","sources":["../../../../../src/modules/Alert/components/atoms/AlertFooter.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAgB,MAAM,sBAAsB,CAAA;AAErE,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,mDA0ElD,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ToastPosition } from '../../../shared/types/toast';
|
|
2
|
-
import {
|
|
2
|
+
import { AlertColor, VariantAlert } from '../../../shared/types/alert';
|
|
3
3
|
import { IconType } from '../../../shared/types/types';
|
|
4
4
|
export declare const useAlertStyles: () => {
|
|
5
|
-
getAlertClassName: (
|
|
5
|
+
getAlertClassName: (color: AlertColor, isLeaving?: boolean, variant?: VariantAlert) => string;
|
|
6
6
|
getPositionClasses: (position: ToastPosition) => string;
|
|
7
|
-
getIconForType: (
|
|
8
|
-
getProgressBarColor: (
|
|
7
|
+
getIconForType: (color: AlertColor) => IconType;
|
|
8
|
+
getProgressBarColor: (color: AlertColor, variant: VariantAlert) => string;
|
|
9
9
|
};
|
|
10
10
|
//# sourceMappingURL=useAlertStyles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAlertStyles.d.ts","sourceRoot":"","sources":["../../../../src/modules/Alert/hooks/useAlertStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useAlertStyles.d.ts","sourceRoot":"","sources":["../../../../src/modules/Alert/hooks/useAlertStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAE/C,eAAO,MAAM,cAAc;+BAEhB,UAAU,cACL,OAAO,YACV,YAAY;mCAyDe,aAAa;4BAqCpB,UAAU,KAAG,QAAQ;iCApBhB,UAAU,WAAW,YAAY;CA+CtE,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { IAlert } from '../../shared/types/alert';
|
|
2
|
-
export declare const Alert: ({ open,
|
|
2
|
+
export declare const Alert: ({ open, color, variant, className, message, title, showCloseButton, onClose, onClick, onPrimaryClick, onSecondaryClick, primaryButtonText, secondaryButtonText, animation, isLeaving: externalIsLeaving, progressBarColor, duration, }: IAlert) => import("react/jsx-runtime").JSX.Element | null;
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/Alert/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAO7C,eAAO,MAAM,KAAK,GAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/modules/Alert/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAO7C,eAAO,MAAM,KAAK,GAAI,wOAkBnB,MAAM,mDA2DR,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AlertColor, AnimationAlert, VariantAlert } from '../../../shared/types/alert';
|
|
2
2
|
interface AlertClassNameProps {
|
|
3
|
-
|
|
3
|
+
color: AlertColor;
|
|
4
4
|
variant: VariantAlert;
|
|
5
5
|
isLeaving?: boolean;
|
|
6
6
|
animation?: AnimationAlert;
|
|
7
7
|
}
|
|
8
|
-
export declare const getAlertClassName: ({
|
|
8
|
+
export declare const getAlertClassName: ({ color, variant, isLeaving, animation, }: AlertClassNameProps) => string;
|
|
9
9
|
export {};
|
|
10
10
|
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../src/modules/Alert/utils/alert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../../src/modules/Alert/utils/alert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAE/E,UAAU,mBAAmB;IAC3B,KAAK,EAAE,UAAU,CAAA;IACjB,OAAO,EAAE,YAAY,CAAA;IACrB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,cAAc,CAAA;CAC3B;AAED,eAAO,MAAM,iBAAiB,GAAI,2CAK/B,mBAAmB,WA2ErB,CAAA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ToastConfig, ToastListener, ToastOptions } from '../../../shared/types/toast';
|
|
2
|
-
import {
|
|
2
|
+
import { AlertColor } from '../../../shared/types/alert';
|
|
3
3
|
type ToastInput = string | (ToastOptions & {
|
|
4
4
|
message: string;
|
|
5
5
|
});
|
|
6
6
|
export declare const toastService: {
|
|
7
|
-
show(messageOrOptions: ToastInput,
|
|
7
|
+
show(messageOrOptions: ToastInput, color?: AlertColor, options?: ToastOptions): number;
|
|
8
8
|
success(messageOrOptions: ToastInput, options?: ToastOptions): number;
|
|
9
9
|
error(messageOrOptions: ToastInput, options?: ToastOptions): number;
|
|
10
10
|
info(messageOrOptions: ToastInput, options?: ToastOptions): number;
|
|
@@ -15,7 +15,7 @@ export declare const toastService: {
|
|
|
15
15
|
getListeners(): ToastListener[];
|
|
16
16
|
};
|
|
17
17
|
export declare const useToastService: () => {
|
|
18
|
-
show(messageOrOptions: ToastInput,
|
|
18
|
+
show(messageOrOptions: ToastInput, color?: AlertColor, options?: ToastOptions): number;
|
|
19
19
|
success(messageOrOptions: ToastInput, options?: ToastOptions): number;
|
|
20
20
|
error(messageOrOptions: ToastInput, options?: ToastOptions): number;
|
|
21
21
|
info(messageOrOptions: ToastInput, options?: ToastOptions): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useToastService.d.ts","sourceRoot":"","sources":["../../../../src/modules/Toast/hooks/useToastService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAE3F,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"useToastService.d.ts","sourceRoot":"","sources":["../../../../src/modules/Toast/hooks/useToastService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAE3F,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAGjD,KAAK,UAAU,GAAG,MAAM,GAAG,CAAC,YAAY,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAQ/D,eAAO,MAAM,YAAY;2BACA,UAAU,UAAS,UAAU,YAAqB,YAAY;8BA0D3D,UAAU,YAAY,YAAY;4BAIpC,UAAU,YAAY,YAAY;2BAInC,UAAU,YAAY,YAAY;8BAI/B,UAAU,YAAY,YAAY;2BAIrC,UAAU,YAAY,YAAY;gBAI7C,MAAM;uBAgBC,OAAO,CAAC,WAAW,CAAC;;CAOxC,CAAA;AAED,eAAO,MAAM,eAAe;2BAvGH,UAAU,UAAS,UAAU,YAAqB,YAAY;8BA0D3D,UAAU,YAAY,YAAY;4BAIpC,UAAU,YAAY,YAAY;2BAInC,UAAU,YAAY,YAAY;8BAI/B,UAAU,YAAY,YAAY;2BAIrC,UAAU,YAAY,YAAY;gBAI7C,MAAM;uBAgBC,OAAO,CAAC,WAAW,CAAC;;CAWxC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const toast: {
|
|
2
2
|
show(messageOrOptions: string | (import('../..').ToastOptions & {
|
|
3
3
|
message: string;
|
|
4
|
-
}),
|
|
4
|
+
}), color?: import('../..').AlertColor, options?: import('../..').ToastOptions): number;
|
|
5
5
|
success(messageOrOptions: string | (import('../..').ToastOptions & {
|
|
6
6
|
message: string;
|
|
7
7
|
}), options?: import('../..').ToastOptions): number;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type AlertColor = 'green' | 'red' | 'blue' | 'yellow' | 'neutral';
|
|
2
2
|
export type VariantAlert = 'contained' | 'outlined' | 'accent' | 'minimal';
|
|
3
3
|
export type AnimationAlert = 'none' | 'fade' | 'slide' | 'zoom' | 'flip' | 'bounce' | 'slide-up';
|
|
4
4
|
export interface IAlert {
|
|
5
5
|
open: boolean;
|
|
6
6
|
message: string;
|
|
7
|
-
|
|
7
|
+
color?: AlertColor;
|
|
8
8
|
isLeaving?: boolean;
|
|
9
9
|
title?: string;
|
|
10
10
|
duration?: number;
|
|
@@ -18,9 +18,10 @@ export interface IAlert {
|
|
|
18
18
|
secondaryButtonText?: string;
|
|
19
19
|
progressBarColor?: boolean;
|
|
20
20
|
animation?: AnimationAlert;
|
|
21
|
+
className?: string;
|
|
21
22
|
}
|
|
22
|
-
export interface AlertHeaderProps extends Pick<IAlert, 'variant' | 'onClose' | 'title' | '
|
|
23
|
+
export interface AlertHeaderProps extends Pick<IAlert, 'variant' | 'onClose' | 'title' | 'color' | 'title' | 'message' | 'showCloseButton'> {
|
|
23
24
|
}
|
|
24
|
-
export interface AlertFooterProps extends Pick<IAlert, 'variant' | 'onSecondaryClick' | 'onPrimaryClick' | 'primaryButtonText' | 'secondaryButtonText' | '
|
|
25
|
+
export interface AlertFooterProps extends Pick<IAlert, 'variant' | 'onSecondaryClick' | 'onPrimaryClick' | 'primaryButtonText' | 'secondaryButtonText' | 'color'> {
|
|
25
26
|
}
|
|
26
27
|
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/shared/types/alert.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../src/shared/types/alert.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,CAAA;AACxE,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,UAAU,GAAG,QAAQ,GA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boolean;
|
|
17
17
|
}
|
|
18
|
-
export interface ToastOptions extends Omit<ToastProps, 'id' | 'isLeaving' | 'message'
|
|
18
|
+
export interface ToastOptions extends Omit<ToastProps, 'id' | 'isLeaving' | 'message'> {
|
|
19
19
|
}
|
|
20
20
|
export type ToastListener = (toast: ToastProps) => void;
|
|
21
21
|
export type ToastsByPosition = Record<ToastPosition, ToastProps[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/shared/types/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE9C,MAAM,MAAM,aAAa,GACrB,UAAU,GACV,YAAY,GACZ,WAAW,GACX,aAAa,GACb,QAAQ,GACR,cAAc,GACd,aAAa,GACb,eAAe,GACf,cAAc,CAAA;AAElB,MAAM,WAAW,UAAW,SAAQ,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC;IACtD,QAAQ,CAAC,EAAE,aAAa,CAAA;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,aAAa,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAA;IAChB,iBAAiB,EAAE,MAAM,CAAA;IACzB,OAAO,EAAE,YAAY,CAAA;IACrB,iBAAiB,EAAE,MAAM,CAAA;IACzB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,gBAAgB,EAAE,OAAO,CAAA;CAC1B;AAED,MAAM,WAAW,YAAa,SAAQ,IAAI,CAAC,UAAU,EAAE,IAAI,GAAG,WAAW,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../src/shared/types/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,SAAS,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