prosperita-dumbo-react 1.0.55 → 1.0.57
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/prosperita-dumbo-react.es.js +7 -6
- package/dist/prosperita-dumbo-react.umd.js +4 -3
- package/dist/types/Components/Notification/index.d.ts +2 -0
- package/dist/types/Components/Notification/index.d.ts.map +1 -1
- package/dist/types/Components/Notification/style.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -15285,8 +15285,9 @@ letter-spacing: 0.32px;
|
|
|
15285
15285
|
color: ${c.textPrimary};
|
|
15286
15286
|
position: fixed;
|
|
15287
15287
|
transform: ${({ actived: e }) => e ? "translateX(0)" : "translateX(500px)"};
|
|
15288
|
-
|
|
15289
|
-
|
|
15288
|
+
right: ${({ right: e }) => e || "30px"};
|
|
15289
|
+
top: ${({ top: e }) => e || "40px"};
|
|
15290
|
+
z-index:6;
|
|
15290
15291
|
animation: ${({ actived: e }) => e ? g3 : h3};
|
|
15291
15292
|
`, m3 = v.div`
|
|
15292
15293
|
color: ${c.textPrimary};
|
|
@@ -15330,10 +15331,10 @@ letter-spacing: 0.32px;
|
|
|
15330
15331
|
margin: ${({ type: e }) => e === "short" ? "0 10px 0 6px" : "0 10px"};
|
|
15331
15332
|
display: flex;
|
|
15332
15333
|
`, _3 = (e) => {
|
|
15333
|
-
const { status: t, type: n, title: i, message: r, actived: o, buttons: l, children: u, borderNone: s } = e, [
|
|
15334
|
-
|
|
15334
|
+
const { status: t, type: n, title: i, message: r, actived: o, buttons: l, children: u, borderNone: s, right: d, top: f } = e, [p, g] = q(!o), b = () => {
|
|
15335
|
+
g((h) => !h);
|
|
15335
15336
|
};
|
|
15336
|
-
return /* @__PURE__ */ C(b3, { borderNone: s, actived:
|
|
15337
|
+
return /* @__PURE__ */ C(b3, { right: d, top: f, borderNone: s, actived: p, type: n, ...e, children: [
|
|
15337
15338
|
/* @__PURE__ */ C(
|
|
15338
15339
|
"div",
|
|
15339
15340
|
{
|
|
@@ -15352,7 +15353,7 @@ letter-spacing: 0.32px;
|
|
|
15352
15353
|
/* @__PURE__ */ a(v3, { ...e, children: r })
|
|
15353
15354
|
] }),
|
|
15354
15355
|
l && /* @__PURE__ */ a(C3, { onClick: l.onClick, ...e, children: l.label }),
|
|
15355
|
-
/* @__PURE__ */ a(x3, { actived:
|
|
15356
|
+
/* @__PURE__ */ a(x3, { actived: p, onClick: b, ...e, children: Pd })
|
|
15356
15357
|
]
|
|
15357
15358
|
}
|
|
15358
15359
|
),
|
|
@@ -2850,8 +2850,9 @@ letter-spacing: 0.32px;
|
|
|
2850
2850
|
color: ${c.textPrimary};
|
|
2851
2851
|
position: fixed;
|
|
2852
2852
|
transform: ${({actived:e})=>e?"translateX(0)":"translateX(500px)"};
|
|
2853
|
-
|
|
2854
|
-
|
|
2853
|
+
right: ${({right:e})=>e||"30px"};
|
|
2854
|
+
top: ${({top:e})=>e||"40px"};
|
|
2855
|
+
z-index:6;
|
|
2855
2856
|
animation: ${({actived:e})=>e?a3:l3};
|
|
2856
2857
|
`,c3=v.div`
|
|
2857
2858
|
color: ${c.textPrimary};
|
|
@@ -2894,4 +2895,4 @@ letter-spacing: 0.32px;
|
|
|
2894
2895
|
align-self: ${({type:e})=>e==="short"?"center":"start"};
|
|
2895
2896
|
margin: ${({type:e})=>e==="short"?"0 10px 0 6px":"0 10px"};
|
|
2896
2897
|
display: flex;
|
|
2897
|
-
`,h3=e=>{const{status:t,type:n,title:i,message:r,actived:o,buttons:l,children:u,borderNone:s}=e,[
|
|
2898
|
+
`,h3=e=>{const{status:t,type:n,title:i,message:r,actived:o,buttons:l,children:u,borderNone:s,right:d,top:f}=e,[p,g]=I.useState(!o),b=()=>{g(h=>!h)};return x(s3,{right:d,top:f,borderNone:s,actived:p,type:n,...e,children:[x("div",{style:{display:"flex",width:"100%",justifyContent:"space-around",margin:0,padding:0,alignItems:"center"},children:[a(g3,{...e,children:r3[t]}),x(c3,{...e,children:[a(d3,{children:i}),a(u3,{...e,children:r})]}),l&&a(p3,{onClick:l.onClick,...e,children:l.label}),a(f3,{actived:p,onClick:b,...e,children:td})]}),u&&a("div",{children:u})]})};J.Breadcrumb=v5,J.Button=at,J.Checkbox=Od,J.CodeSnippet=t3,J.ContentSwitcher=_2,J.DataTable=D6,J.Dropdown=B0,J.FileUploader=g0,J.InlineLoading=Ya,J.Input=Pa,J.InputFluid=hd,J.InputSelect=N2,J.Loading=ui,J.Margin=R2,J.MenuButton=qd,J.Modal=$a,J.Notification=h3,J.Radio=w0,J.Search=qn,J.Slider=w6,J.Tab=M5,J.TabPane=F5,J.Table=Q6,J.TableBatchActions=B5,J.Tag=t0,J.Tile=y0,J.Toogle=F0,J.Tooltip=je,J.UIHeader=k6,J.UIHeaderNav=d5,J.theme=c,Object.defineProperty(J,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -12,6 +12,8 @@ export type INotificationType = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
12
12
|
};
|
|
13
13
|
children?: React.ReactNode;
|
|
14
14
|
borderNone?: boolean;
|
|
15
|
+
right?: string;
|
|
16
|
+
top?: string;
|
|
15
17
|
};
|
|
16
18
|
export declare const Notification: (props: INotificationType) => import("react/jsx-runtime").JSX.Element;
|
|
17
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/Notification/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,OAAO,CAAC;AACtD,OAAO,2BAA2B,CAAC;AAanC,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IACtE,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;IACF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/Notification/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAY,MAAM,OAAO,CAAC;AACtD,OAAO,2BAA2B,CAAC;AAanC,MAAM,MAAM,iBAAiB,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IACtE,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;KACtB,CAAC;IACF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAA;CACb,CAAC;AAEF,eAAO,MAAM,YAAY,UAAW,iBAAiB,4CAuCpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/Notification/style.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAQ5C,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;CAKlC,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;CAK3B,CAAC;AA4BF,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/Notification/style.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAQ5C,eAAO,MAAM,gBAAgB;;;;;CAK5B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;CAKlC,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;CAK3B,CAAC;AA4BF,eAAO,MAAM,cAAc,sPAuB1B,CAAC;AAEF,eAAO,MAAM,cAAc,sPAU1B,CAAC;AAEF,eAAO,MAAM,QAAQ,kQAKpB,CAAC;AAEF,eAAO,MAAM,KAAK,qOAKjB,CAAC;AAEF,eAAO,MAAM,MAAM,kQAMlB,CAAC;AAEF,eAAO,MAAM,MAAM,kQAWlB,CAAC;AAEF,eAAO,MAAM,OAAO,sPAInB,CAAC"}
|