@inntechcorp/it-design 2.1.60 → 2.1.62

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.cjs.js CHANGED
@@ -5364,24 +5364,17 @@ function ga(e,b){if(Da(e))for(let o=0;o<e.length&&!1!==b(e[o],o,e);o++);else e&&
5364
5364
 
5365
5365
  width: 100%;
5366
5366
  min-height: 0;
5367
- margin-bottom: 34px;
5367
+ margin-bottom: 1rem;
5368
5368
 
5369
- &::before {
5370
- background-color: #04112780;
5371
- border-radius: 100px;
5372
- width: 84px;
5373
- height: 84px;
5374
- display: inline;
5375
- content: "";
5376
- position: absolute;
5377
- z-index: 0;
5378
- top: -20px;
5379
- }
5369
+ background-color: #04112780;
5370
+ border-radius: 100px;
5371
+ width: 84px;
5372
+ height: 84px;
5380
5373
 
5381
5374
  img {
5382
5375
  z-index: 0;
5383
5376
  width: 44px;
5384
- height: 44px;
5377
+ height: auto;
5385
5378
  }
5386
5379
 
5387
5380
  `,_f=mt.div`
@@ -5429,7 +5422,7 @@ function ga(e,b){if(Da(e))for(let o=0;o<e.length&&!1!==b(e[o],o,e);o++);else e&&
5429
5422
  font-weight: 500;
5430
5423
  text-align: center;
5431
5424
  max-width: 80%;
5432
- `,If=({image:e="",title:b="",description:p="",extra:z=null,footer:t=null,type:c="default",fill:n=!1,autoCenter:r=!0,background:O=!0,animation:i=!0})=>{const[a,s]=M.useState("");M.useEffect((()=>{""!==e&&s(e)}),[e]);const A=()=>{if(z)return o.jsx(_f,{className:"itd-result-extras",children:z})},d=()=>{if(t)return o.jsx(Cf,{className:"itd-result-footer",children:t})},l=()=>{let e="itd-result";return e+=" itd-result-"+c,r&&(e+=" itd-result-auto-center"),n&&(e+=" itd-result-fill"),O&&(e+=" itd-result-background"),O||(e+=" itd-result-no-background"),e};return o.jsx(Xf,{className:l(),children:o.jsx(kf,{className:"itd-result-content-wrapper",children:o.jsxs(Tf,{className:"itd-result-content",$autoCenter:r,$type:c,$background:O,$animation:i,$fill:n.toString(),children:[o.jsxs(Df,{className:"itd-result-body",children:[o.jsx(Ef,{className:"itd-image-wrapper",children:o.jsx(aa,{src:a})}),o.jsx(Pf,{className:"itd-result-title",children:b}),o.jsx(jf,{className:"itd-result-sub-title",children:p})]}),A(),d()]})})})};If.displayName="ITD-Result";const Ff=mt.div`
5425
+ `,If=({image:e="",title:b="",description:p="",extra:z=null,footer:t=null,type:c="default",fill:n=!1,autoCenter:r=!0,background:O=!0,animation:i=!0})=>{const[a,s]=M.useState("");M.useEffect((()=>{""!==e&&s(e)}),[e]);const A=()=>{if(z)return o.jsx(_f,{className:"itd-result-extras",children:z})},d=()=>{if(t)return o.jsx(Cf,{className:"itd-result-footer",children:t})},l=()=>{let e="itd-result";return e+=" itd-result-"+c,r&&(e+=" itd-result-auto-center"),n&&(e+=" itd-result-fill"),O&&(e+=" itd-result-background"),O||(e+=" itd-result-no-background"),e};return o.jsx(Xf,{className:l(),children:o.jsx(kf,{className:"itd-result-content-wrapper",children:o.jsxs(Tf,{className:"itd-result-content",$autoCenter:r,$type:c,$background:O,$animation:i,$fill:n.toString(),children:[o.jsxs(Df,{className:"itd-result-body",children:[o.jsx(Ef,{className:"itd-image-wrapper",children:"string"==typeof a?o.jsx(aa,{src:a}):a}),o.jsx(Pf,{className:"itd-result-title",children:b}),o.jsx(jf,{className:"itd-result-sub-title",children:p})]}),A(),d()]})})})};If.displayName="ITD-Result";const Ff=mt.div`
5433
5426
  position: fixed;
5434
5427
  bottom: 80px;
5435
5428
  right: 30px;
package/dist/index.d.ts CHANGED
@@ -1415,12 +1415,12 @@ type UploadResultMessageProps = {
1415
1415
  };
1416
1416
 
1417
1417
  type ResultProps = {
1418
- image: string;
1418
+ image: string | ChildrenProps;
1419
1419
  title: string;
1420
1420
  description: string;
1421
1421
  type?: string;
1422
- extra?: React.ReactElement | null;
1423
- footer?: React.ReactElement | null;
1422
+ extra?: ChildrenProps | null;
1423
+ footer?: ChildrenProps | null;
1424
1424
  fill?: boolean;
1425
1425
  autoCenter?: boolean;
1426
1426
  background?: boolean;
package/dist/index.esm.js CHANGED
@@ -5364,24 +5364,17 @@ function kA(e,b){if(YA(e))for(let M=0;M<e.length&&!1!==b(e[M],M,e);M++);else e&&
5364
5364
 
5365
5365
  width: 100%;
5366
5366
  min-height: 0;
5367
- margin-bottom: 34px;
5367
+ margin-bottom: 1rem;
5368
5368
 
5369
- &::before {
5370
- background-color: #04112780;
5371
- border-radius: 100px;
5372
- width: 84px;
5373
- height: 84px;
5374
- display: inline;
5375
- content: "";
5376
- position: absolute;
5377
- z-index: 0;
5378
- top: -20px;
5379
- }
5369
+ background-color: #04112780;
5370
+ border-radius: 100px;
5371
+ width: 84px;
5372
+ height: 84px;
5380
5373
 
5381
5374
  img {
5382
5375
  z-index: 0;
5383
5376
  width: 44px;
5384
- height: 44px;
5377
+ height: auto;
5385
5378
  }
5386
5379
 
5387
5380
  `,UW=pc.div`
@@ -5429,7 +5422,7 @@ function kA(e,b){if(YA(e))for(let M=0;M<e.length&&!1!==b(e[M],M,e);M++);else e&&
5429
5422
  font-weight: 500;
5430
5423
  text-align: center;
5431
5424
  max-width: 80%;
5432
- `,QW=({image:e="",title:b="",description:M="",extra:p=null,footer:t=null,type:c="default",fill:r=!1,autoCenter:i=!0,background:a=!0,animation:A=!0})=>{const[s,d]=n("");O((()=>{""!==e&&d(e)}),[e]);const l=()=>{if(p)return o(UW,{className:"itd-result-extras",children:p})},q=()=>{if(t)return o(HW,{className:"itd-result-footer",children:t})};return o(IW,{className:(()=>{let e="itd-result";return e+=" itd-result-"+c,i&&(e+=" itd-result-auto-center"),r&&(e+=" itd-result-fill"),a&&(e+=" itd-result-background"),a||(e+=" itd-result-no-background"),e})(),children:o($W,{className:"itd-result-content-wrapper",children:z(jW,{className:"itd-result-content",$autoCenter:i,$type:c,$background:a,$animation:A,$fill:r.toString(),children:[z(YW,{className:"itd-result-body",children:[o(VW,{className:"itd-image-wrapper",children:o(hA,{src:s})}),o(GW,{className:"itd-result-title",children:b}),o(KW,{className:"itd-result-sub-title",children:M})]}),l(),q()]})})})};QW.displayName="ITD-Result";const JW=pc.div`
5425
+ `,QW=({image:e="",title:b="",description:M="",extra:p=null,footer:t=null,type:c="default",fill:r=!1,autoCenter:i=!0,background:a=!0,animation:A=!0})=>{const[s,d]=n("");O((()=>{""!==e&&d(e)}),[e]);const l=()=>{if(p)return o(UW,{className:"itd-result-extras",children:p})},q=()=>{if(t)return o(HW,{className:"itd-result-footer",children:t})};return o(IW,{className:(()=>{let e="itd-result";return e+=" itd-result-"+c,i&&(e+=" itd-result-auto-center"),r&&(e+=" itd-result-fill"),a&&(e+=" itd-result-background"),a||(e+=" itd-result-no-background"),e})(),children:o($W,{className:"itd-result-content-wrapper",children:z(jW,{className:"itd-result-content",$autoCenter:i,$type:c,$background:a,$animation:A,$fill:r.toString(),children:[z(YW,{className:"itd-result-body",children:[o(VW,{className:"itd-image-wrapper",children:"string"==typeof s?o(hA,{src:s}):s}),o(GW,{className:"itd-result-title",children:b}),o(KW,{className:"itd-result-sub-title",children:M})]}),l(),q()]})})})};QW.displayName="ITD-Result";const JW=pc.div`
5433
5426
  position: fixed;
5434
5427
  bottom: 80px;
5435
5428
  right: 30px;
@@ -1,10 +1,11 @@
1
+ import { ChildrenProps } from "./ChildrenProps";
1
2
  export type ResultProps = {
2
- image: string;
3
+ image: string | ChildrenProps;
3
4
  title: string;
4
5
  description: string;
5
6
  type?: string;
6
- extra?: React.ReactElement | null;
7
- footer?: React.ReactElement | null;
7
+ extra?: ChildrenProps | null;
8
+ footer?: ChildrenProps | null;
8
9
  fill?: boolean;
9
10
  autoCenter?: boolean;
10
11
  background?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.1.60",
3
+ "version": "2.1.62",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",