@inntechcorp/it-design 2.2.26 → 2.2.28
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/alert/index.d.ts +1 -1
- package/dist/index.cjs.js +35 -40
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +6 -11
- package/dist/types/AlertProps.d.ts +2 -1
- package/package.json +1 -1
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,
|
|
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 |
|
|
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",
|
|
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;
|
|
@@ -4684,7 +4684,7 @@ function(b,z){M.exports?M.exports=z(SO()):z(b.moment)}(FO,(function(M){void 0===
|
|
|
4684
4684
|
}
|
|
4685
4685
|
`;var b}}
|
|
4686
4686
|
|
|
4687
|
-
`;function Xd({status:M,percent:b=0,alwaysShowPercent:z=!1,showInfo:o=!0,className:c=""}){const e=()=>{let z="itd-progress";return z+=" itd-progress-"+M
|
|
4687
|
+
`;function Xd({status:M,percent:b=0,alwaysShowPercent:z=!1,showInfo:o=!0,className:c=""}){const e=()=>{let z="itd-progress";return z+=" itd-progress-percent-"+b,M&&(z+=" itd-progress-"+M),""!==c&&null!==c&&(z+=" "+c),z},t=p("svg",{viewBox:"64 64 896 896",focusable:"false","data-icon":"check-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:p("path",{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"})}),n=p("svg",{fillRule:"evenodd",viewBox:"64 64 896 896",focusable:"false","data-icon":"close-circle",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",children:p("path",{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"})}),A=()=>M||(b<100?"normal":"success"),a=()=>{if(o)return p("span",{className:"itd-progress-status",children:i()})},i=()=>{const M=A();return"active"===M||"normal"===M||z?p("span",{className:"itd-progress-status-text",children:b.toFixed(2)+"%"}):"success"===M?t:"exception"===M?n:void 0};return p(vd,{$status:A(),$percent:b,className:e(),children:O("div",{className:"itd-progress-outer",children:[p("div",{className:"itd-progress-inner",children:p("div",{className:"itd-progress-bg"})}),a()]})})}const yd=k.div`
|
|
4688
4688
|
|
|
4689
4689
|
height: ${M=>M.$height?M.$height+"px":"75px"};
|
|
4690
4690
|
|
|
@@ -4795,17 +4795,13 @@ function(b,z){M.exports?M.exports=z(SO()):z(b.moment)}(FO,(function(M){void 0===
|
|
|
4795
4795
|
border-radius: 8px;
|
|
4796
4796
|
border: 1px solid #F1F1F4;
|
|
4797
4797
|
box-shadow: 0px 3px 4px 0px rgba(0, 0, 0, 0.03);
|
|
4798
|
+
height: 100%;
|
|
4798
4799
|
|
|
4799
4800
|
min-width : ${M=>M.$minWidth?M.$minWidth+"px":"200px"};
|
|
4800
4801
|
min-height : ${M=>M.$minHeight?M.$minHeight+"px":"100px"};
|
|
4801
4802
|
|
|
4802
|
-
display:
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
height: 100%;
|
|
4807
|
-
display: grid;
|
|
4808
|
-
grid-template-rows: ${M=>M.$hasHeader?"75px 1fr":"1fr"};
|
|
4803
|
+
display: grid;
|
|
4804
|
+
grid-template-rows: ${M=>M.$hasHeader?"75px 1fr":"1fr"};
|
|
4809
4805
|
|
|
4810
4806
|
|
|
4811
4807
|
`,Sd=k.div`
|
|
@@ -4832,8 +4828,7 @@ function(b,z){M.exports?M.exports=z(SO()):z(b.moment)}(FO,(function(M){void 0===
|
|
|
4832
4828
|
|
|
4833
4829
|
padding: ${M=>M.$padding?M.$padding:"30px"};
|
|
4834
4830
|
|
|
4835
|
-
display:
|
|
4836
|
-
flex-direction: column;
|
|
4831
|
+
display: grid;
|
|
4837
4832
|
justify-content: space-between;
|
|
4838
4833
|
|
|
4839
4834
|
`,Dd=k.div`
|
|
@@ -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 |
|
|
6
|
+
icon?: string | React.ReactNode;
|
|
6
7
|
title?: string;
|
|
7
8
|
className?: string;
|
|
8
9
|
children?: ChildrenProps;
|