@smart-factor/gem-ui-components 0.0.152 → 0.0.153

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.
@@ -2,7 +2,7 @@ import './assets/SignEditor.css';var N4 = Object.defineProperty;
2
2
  var I4 = (o, e, t) => e in o ? N4(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var Eu = (o, e, t) => I4(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { jsx as Vt, jsxs as ia, Fragment as o_ } from "react/jsx-runtime";
5
- import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./index-fxYPQ0eL.js";
5
+ import { G as Ib, u as i_, a as rA, Q as uc, b as hs, c as Lp, D as KE, B as sp, d as ow, e as M4, z as Dc, f as a_, s as $E, I as Of, A as WE, F as O4, U as Ax, g as q4, h as R4, i as Q4, j as G4, T as V4, K as D4, k as H4 } from "./index-BLSlZb7B.js";
6
6
  import { q as XE, s as Di, I as tu, J as r_, H as YE, S as lp } from "./Stack-hsHMA5b6.js";
7
7
  import { createContext as U4, useContext as z4, useState as vl, useCallback as zu, useEffect as oc, useMemo as cp, useRef as K4 } from "react";
8
8
  import "react-dom";
@@ -5,3 +5,4 @@ type Story = StoryObj<typeof meta>;
5
5
  export declare const Success: Story;
6
6
  export declare const Error: Story;
7
7
  export declare const Info: Story;
8
+ export declare const Warning: Story;
@@ -7,5 +7,5 @@ export declare const StyledToastClose: import('@emotion/styled').StyledComponent
7
7
  export declare const ToastWrapper: import('@emotion/styled').StyledComponent<import('@mui/material').StackOwnProps & import('@mui/material/OverridableComponent').CommonProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
8
8
  ref?: ((instance: HTMLDivElement | null) => void | import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import('react').DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import('react').RefObject<HTMLDivElement> | null | undefined;
9
9
  }, keyof import('@mui/material/OverridableComponent').CommonProps | keyof import('@mui/material').StackOwnProps> & import('@mui/system').MUIStyledCommonProps<import('@mui/material').Theme> & {
10
- type: "success" | "error" | "info";
10
+ type: "success" | "error" | "info" | "warning";
11
11
  }, {}, {}>;
@@ -1,3 +1,4 @@
1
1
  export { errorToast } from './errorToast';
2
2
  export { infoToast } from './infoToast';
3
3
  export { successToast } from './successToast';
4
+ export { warningToast } from './warningToast';
@@ -0,0 +1,3 @@
1
+ import { ReactNode } from 'react';
2
+ import { ToastOptions } from 'react-hot-toast';
3
+ export declare const warningToast: (message: ReactNode, options?: ToastOptions) => void;
@@ -284156,6 +284156,8 @@ const StyledToastMessage = styled$1(Typography)`
284156
284156
  return s0.palette.error.main;
284157
284157
  case "info":
284158
284158
  return s0.palette.info.main;
284159
+ case "warning":
284160
+ return s0.palette.warning.main;
284159
284161
  default:
284160
284162
  return s0.palette.grey[300];
284161
284163
  }