@inntechcorp/it-design 2.2.26 → 2.2.27

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 CHANGED
@@ -674,7 +674,7 @@ declare function table(data: any): void;
674
674
  declare const Button: ({ id, disabled, loading, selected, circle, strecth, justify, contentPosition, type, variant, size, state, icon, href, target, className, children, onClick }: ButtonProps) => react_jsx_runtime.JSX.Element;
675
675
 
676
676
  declare const Alert: {
677
- ({ type, size, icon, title, className, children }: AlertProps): react_jsx_runtime.JSX.Element;
677
+ ({ type, size, title, className, children, icon, }: AlertProps): react_jsx_runtime.JSX.Element;
678
678
  displayName: string;
679
679
  };
680
680
 
@@ -1120,7 +1120,7 @@ type NotificationsProps = {
1120
1120
  type AlertProps = {
1121
1121
  type?: AlertType;
1122
1122
  size?: AlertSize;
1123
- icon?: string | ChildrenProps | SVGElement;
1123
+ icon?: string | react__default.ReactNode;
1124
1124
  title?: string;
1125
1125
  className?: string;
1126
1126
  children?: ChildrenProps;
package/dist/index.esm.js CHANGED
@@ -4420,7 +4420,7 @@ function(b,z){M.exports?M.exports=z(SO()):z(b.moment)}(FO,(function(M){void 0===
4420
4420
  align-self: flex-start;
4421
4421
  }
4422
4422
 
4423
- `,td=({type:M="info",size:b="small",icon:z="",title:o="",className:c="",children:e=""})=>O(pd,{className:(()=>{let z="itd-alert";return z+=" itd-alert-"+M,z+=" itd-alert-"+("x-small"===b?"xs":"small"===b?"sm":"medium"===b?"md":"default"===b?"df":"large"===b?"lg":"x-large"===b?"xlg":"df"),""!==c&&(z+=" "+c),z})(),children:[p(ed,{children:""!==z?p(v,{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' strokeWidth='2' stroke-linecap='round' stroke-linejoin='round'%3e %3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e %3cline x1='12' x2='12' y1='8' y2='12'%3e%3c/line%3e %3cline x1='12' x2='12.01' y1='16' y2='16'%3e%3c/line%3e%3c/svg%3e"}):z}),O(cd,{$noTitle:!o,children:[""!==o?p(od,{children:o}):null,""!==e?p(Od,{children:e}):null]})]});td.displayName="ITD-Alert";const nd=k.section`
4423
+ `,td=({type:M="info",size:b="small",title:z,className:o,children:c,icon:e})=>O(pd,{className:(()=>{let z="itd-alert";return z+=" itd-alert-"+M,z+=" itd-alert-"+("x-small"===b?"xs":"small"===b?"sm":"medium"===b?"md":"default"===b?"df":"large"===b?"lg":"x-large"===b?"xlg":"df"),""!==o&&(z+=" "+o),z})(),children:[p(ed,{children:e?"string"==typeof e?p(v,{src:e}):e:p(v,{src:"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' strokeWidth='2' stroke-linecap='round' stroke-linejoin='round'%3e %3ccircle cx='12' cy='12' r='10'%3e%3c/circle%3e %3cline x1='12' x2='12' y1='8' y2='12'%3e%3c/line%3e %3cline x1='12' x2='12.01' y1='16' y2='16'%3e%3c/line%3e%3c/svg%3e"})}),O(cd,{$noTitle:!z,children:[""!==z?p(od,{children:z}):null,""!==c?p(Od,{children:c}):null]})]});td.displayName="ITD-Alert";const nd=k.section`
4424
4424
  width: 100%;
4425
4425
  height: 100%;
4426
4426
  position: relative;
@@ -1,8 +1,9 @@
1
+ import React from "react";
1
2
  import { ChildrenProps } from "./ChildrenProps";
2
3
  export type AlertProps = {
3
4
  type?: AlertType;
4
5
  size?: AlertSize;
5
- icon?: string | ChildrenProps | SVGElement;
6
+ icon?: string | React.ReactNode;
6
7
  title?: string;
7
8
  className?: string;
8
9
  children?: ChildrenProps;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.2.26",
3
+ "version": "2.2.27",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",