prosperita-dumbo-react 1.0.58 → 1.0.60
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 +12 -9
- package/dist/prosperita-dumbo-react.umd.js +8 -7
- package/dist/types/Components/Button/index.d.ts +3 -2
- package/dist/types/Components/Button/index.d.ts.map +1 -1
- package/dist/types/Components/Button/styles.d.ts +1 -14
- package/dist/types/Components/Button/styles.d.ts.map +1 -1
- package/dist/types/Components/TableData/style.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -2971,8 +2971,9 @@ const mt = (e) => {
|
|
|
2971
2971
|
disabled: l,
|
|
2972
2972
|
forModal: u,
|
|
2973
2973
|
full: s,
|
|
2974
|
-
hasIconSvg: d
|
|
2975
|
-
|
|
2974
|
+
hasIconSvg: d,
|
|
2975
|
+
onClick: f
|
|
2976
|
+
} = e, p = {
|
|
2976
2977
|
padding: t ? rn.default[n] : rn.onlyIcon[n],
|
|
2977
2978
|
position: "absolute",
|
|
2978
2979
|
top: "0",
|
|
@@ -2997,7 +2998,7 @@ const mt = (e) => {
|
|
|
2997
2998
|
{
|
|
2998
2999
|
baseColor: c.skeletonElement,
|
|
2999
3000
|
highlightColor: c.skeletonBackground,
|
|
3000
|
-
children: /* @__PURE__ */ a(Ae, { count: 1, style:
|
|
3001
|
+
children: /* @__PURE__ */ a(Ae, { count: 1, style: p })
|
|
3001
3002
|
}
|
|
3002
3003
|
),
|
|
3003
3004
|
!t && /* @__PURE__ */ a(ra, { src: typeof o == "string" ? o : "", ...e })
|
|
@@ -3011,6 +3012,7 @@ const mt = (e) => {
|
|
|
3011
3012
|
kind: i,
|
|
3012
3013
|
size: n,
|
|
3013
3014
|
loading: r,
|
|
3015
|
+
onClick: f,
|
|
3014
3016
|
borderStyle: l ? i === "tertiary" || i === "dangerTertiary" ? `2px solid ${c.buttonDisabled}` : "2px solid transparent" : i === "tertiary" ? `2px solid ${c.buttonPrimary}` : i === "dangerTertiary" ? `2px solid ${c.buttonDangerSecondary}` : "2px solid transparent",
|
|
3015
3017
|
children: [
|
|
3016
3018
|
/* @__PURE__ */ a(ia, { ...e, kind: i, children: t }),
|
|
@@ -14228,7 +14230,8 @@ const $6 = v.input`
|
|
|
14228
14230
|
font-weight: 600;
|
|
14229
14231
|
line-height: 18px;
|
|
14230
14232
|
letter-spacing: 0.16px;
|
|
14231
|
-
margin: 0;
|
|
14233
|
+
margin: 0;
|
|
14234
|
+
white-space: nowrap;
|
|
14232
14235
|
|
|
14233
14236
|
`, H6 = v.td`
|
|
14234
14237
|
padding: .7em 1em;
|
|
@@ -14236,8 +14239,8 @@ const $6 = v.input`
|
|
|
14236
14239
|
box-sizing: border-box;
|
|
14237
14240
|
margin: 0;
|
|
14238
14241
|
width: 1%;
|
|
14239
|
-
white-space: nowrap;
|
|
14240
|
-
|
|
14242
|
+
white-space: nowrap;
|
|
14243
|
+
vertical-align: middle;
|
|
14241
14244
|
`, W6 = v.tr`
|
|
14242
14245
|
background: ${c.layer01};
|
|
14243
14246
|
text-align: start;
|
|
@@ -14255,13 +14258,13 @@ const $6 = v.input`
|
|
|
14255
14258
|
}
|
|
14256
14259
|
margin: 0;
|
|
14257
14260
|
border-top:1px solid ${c.borderSubtle01};
|
|
14258
|
-
|
|
14259
14261
|
`, cs = v.th`
|
|
14260
14262
|
padding: 0.9em;
|
|
14261
14263
|
text-align: start;
|
|
14262
14264
|
margin: 0;
|
|
14263
14265
|
font-family: IBM Plex Sans;
|
|
14264
|
-
font-size:14px
|
|
14266
|
+
font-size:14px;
|
|
14267
|
+
white-warp:nowrap
|
|
14265
14268
|
|
|
14266
14269
|
`, Z6 = v.p`
|
|
14267
14270
|
font-family:IBM Plex Sans;
|
|
@@ -14276,7 +14279,6 @@ const $6 = v.input`
|
|
|
14276
14279
|
letter-spacing: 0.16px;
|
|
14277
14280
|
cursor: pointer;
|
|
14278
14281
|
`, us = v.h4`
|
|
14279
|
-
font-family:Andale Mono, sans-serif;
|
|
14280
14282
|
font-size:14px;
|
|
14281
14283
|
display:flex;
|
|
14282
14284
|
padding:0;
|
|
@@ -14287,6 +14289,7 @@ const $6 = v.input`
|
|
|
14287
14289
|
font-weight: bold;
|
|
14288
14290
|
letter-spacing: 0.16px;
|
|
14289
14291
|
cursor: pointer;
|
|
14292
|
+
white-warp:nowrap
|
|
14290
14293
|
`, X6 = v.div`
|
|
14291
14294
|
font-family: IBM Plex Sans;
|
|
14292
14295
|
background: ${c.layer01};
|
|
@@ -154,7 +154,7 @@ padding: ${({size:e,label:t,fortable:n})=>n?"8px 55px 8px 10px":t?Bu:Ut.onlyIcon
|
|
|
154
154
|
text-wrap: nowrap;
|
|
155
155
|
align-self: start;
|
|
156
156
|
padding: 0;
|
|
157
|
-
`,ba=I.createContext({}),ma=!0;function Mu({baseColor:e,highlightColor:t,width:n,height:i,borderRadius:r,circle:o,direction:l,duration:u,enableAnimation:s=ma}){const d={};return l==="rtl"&&(d["--animation-direction"]="reverse"),typeof u=="number"&&(d["--animation-duration"]=`${u}s`),s||(d["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(d.width=n),(typeof i=="string"||typeof i=="number")&&(d.height=i),(typeof r=="string"||typeof r=="number")&&(d.borderRadius=r),o&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),d}function xe({count:e=1,wrapper:t,className:n,containerClassName:i,containerTestId:r,circle:o=!1,style:l,...u}){var s,d,f;const p=I.useContext(ba),g={...u};for(const[P,B]of Object.entries(u))typeof B>"u"&&delete g[P];const b={...p,...g,circle:o},h={...l,...Mu(b)};let y="react-loading-skeleton";n&&(y+=` ${n}`);const C=(s=b.inline)!==null&&s!==void 0?s:!1,w=[],E=Math.ceil(e);for(let P=0;P<E;P++){let B=h;if(E>e&&P===E-1){const k=(d=B.width)!==null&&d!==void 0?d:"100%",A=e%1,F=typeof k=="number"?k*A:`calc(${k} * ${A})`;B={...B,width:F}}const S=I.createElement("span",{className:y,style:B,key:P},"");C?w.push(S):w.push(I.createElement(I.Fragment,{key:P},S,I.createElement("br",null)))}return I.createElement("span",{className:i,"data-testid":r,"aria-live":"polite","aria-busy":(f=b.enableAnimation)!==null&&f!==void 0?f:ma},t?w.map((P,B)=>I.createElement(t,{key:B},P)):w)}function gt({children:e,...t}){return I.createElement(ba.Provider,{value:t},e)}const O3="",at=e=>{const{label:t,size:n,kind:i,loading:r,icon:o,disabled:l,forModal:u,full:s,hasIconSvg:d}=e,
|
|
157
|
+
`,ba=I.createContext({}),ma=!0;function Mu({baseColor:e,highlightColor:t,width:n,height:i,borderRadius:r,circle:o,direction:l,duration:u,enableAnimation:s=ma}){const d={};return l==="rtl"&&(d["--animation-direction"]="reverse"),typeof u=="number"&&(d["--animation-duration"]=`${u}s`),s||(d["--pseudo-element-display"]="none"),(typeof n=="string"||typeof n=="number")&&(d.width=n),(typeof i=="string"||typeof i=="number")&&(d.height=i),(typeof r=="string"||typeof r=="number")&&(d.borderRadius=r),o&&(d.borderRadius="50%"),typeof e<"u"&&(d["--base-color"]=e),typeof t<"u"&&(d["--highlight-color"]=t),d}function xe({count:e=1,wrapper:t,className:n,containerClassName:i,containerTestId:r,circle:o=!1,style:l,...u}){var s,d,f;const p=I.useContext(ba),g={...u};for(const[P,B]of Object.entries(u))typeof B>"u"&&delete g[P];const b={...p,...g,circle:o},h={...l,...Mu(b)};let y="react-loading-skeleton";n&&(y+=` ${n}`);const C=(s=b.inline)!==null&&s!==void 0?s:!1,w=[],E=Math.ceil(e);for(let P=0;P<E;P++){let B=h;if(E>e&&P===E-1){const k=(d=B.width)!==null&&d!==void 0?d:"100%",A=e%1,F=typeof k=="number"?k*A:`calc(${k} * ${A})`;B={...B,width:F}}const S=I.createElement("span",{className:y,style:B,key:P},"");C?w.push(S):w.push(I.createElement(I.Fragment,{key:P},S,I.createElement("br",null)))}return I.createElement("span",{className:i,"data-testid":r,"aria-live":"polite","aria-busy":(f=b.enableAnimation)!==null&&f!==void 0?f:ma},t?w.map((P,B)=>I.createElement(t,{key:B},P)):w)}function gt({children:e,...t}){return I.createElement(ba.Provider,{value:t},e)}const O3="",at=e=>{const{label:t,size:n,kind:i,loading:r,icon:o,disabled:l,forModal:u,full:s,hasIconSvg:d,onClick:f}=e,p={padding:t?Ut.default[n]:Ut.onlyIcon[n],position:"absolute",top:"0",width:"auto",left:"0",right:"0",bottom:"0",borderRadius:"6px"};return a(Vu,{full:s,...e,children:r&&!l?x(pa,{...e,kind:i,size:n,loading:r,style:{border:"0"},children:[a(ha,{...e,kind:i,children:t}),a(gt,{baseColor:c.skeletonElement,highlightColor:c.skeletonBackground,children:a(xe,{count:1,style:p})}),!t&&a(ga,{src:typeof o=="string"?o:"",...e})]}):x(pa,{forModal:u,...e,kind:i,size:n,loading:r,onClick:f,borderStyle:l?i==="tertiary"||i==="dangerTertiary"?`2px solid ${c.buttonDisabled}`:"2px solid transparent":i==="tertiary"?`2px solid ${c.buttonPrimary}`:i==="dangerTertiary"?`2px solid ${c.buttonDangerSecondary}`:"2px solid transparent",children:[a(ha,{...e,kind:i,children:t}),d?a(Fu,{...e,children:o}):a(ga,{src:typeof o=="string"?o:"",...e})]})})},$u={large:"20px ",small:"15px",medium:"18px"},Gu={large:"13px",small:"12px",medium:"15px"},Yn=e=>{const{disabled:t,error:n}=e;return t?"2px solid transparent":n?`2px solid ${c.supportError}`:"2px solid transparent"},ii=v.input`
|
|
158
158
|
height: ${({size:e})=>e&&Gu[e]};
|
|
159
159
|
box-sizing: border-box;
|
|
160
160
|
padding: ${({size:e})=>e&&$u[e]};
|
|
@@ -2401,7 +2401,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2401
2401
|
font-weight: 600;
|
|
2402
2402
|
line-height: 18px;
|
|
2403
2403
|
letter-spacing: 0.16px;
|
|
2404
|
-
margin: 0;
|
|
2404
|
+
margin: 0;
|
|
2405
|
+
white-space: nowrap;
|
|
2405
2406
|
|
|
2406
2407
|
`,B6=v.td`
|
|
2407
2408
|
padding: .7em 1em;
|
|
@@ -2409,8 +2410,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2409
2410
|
box-sizing: border-box;
|
|
2410
2411
|
margin: 0;
|
|
2411
2412
|
width: 1%;
|
|
2412
|
-
white-space: nowrap;
|
|
2413
|
-
|
|
2413
|
+
white-space: nowrap;
|
|
2414
|
+
vertical-align: middle;
|
|
2414
2415
|
`,V6=v.tr`
|
|
2415
2416
|
background: ${c.layer01};
|
|
2416
2417
|
text-align: start;
|
|
@@ -2428,13 +2429,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2428
2429
|
}
|
|
2429
2430
|
margin: 0;
|
|
2430
2431
|
border-top:1px solid ${c.borderSubtle01};
|
|
2431
|
-
|
|
2432
2432
|
`,Uc=v.th`
|
|
2433
2433
|
padding: 0.9em;
|
|
2434
2434
|
text-align: start;
|
|
2435
2435
|
margin: 0;
|
|
2436
2436
|
font-family: IBM Plex Sans;
|
|
2437
|
-
font-size:14px
|
|
2437
|
+
font-size:14px;
|
|
2438
|
+
white-warp:nowrap
|
|
2438
2439
|
|
|
2439
2440
|
`,F6=v.p`
|
|
2440
2441
|
font-family:IBM Plex Sans;
|
|
@@ -2449,7 +2450,6 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2449
2450
|
letter-spacing: 0.16px;
|
|
2450
2451
|
cursor: pointer;
|
|
2451
2452
|
`,Qc=v.h4`
|
|
2452
|
-
font-family:Andale Mono, sans-serif;
|
|
2453
2453
|
font-size:14px;
|
|
2454
2454
|
display:flex;
|
|
2455
2455
|
padding:0;
|
|
@@ -2460,6 +2460,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2460
2460
|
font-weight: bold;
|
|
2461
2461
|
letter-spacing: 0.16px;
|
|
2462
2462
|
cursor: pointer;
|
|
2463
|
+
white-warp:nowrap
|
|
2463
2464
|
`,M6=v.div`
|
|
2464
2465
|
font-family: IBM Plex Sans;
|
|
2465
2466
|
background: ${c.layer01};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
2
|
import "react-loading-skeleton/dist/skeleton.css";
|
|
3
|
-
export type IButtonProps =
|
|
3
|
+
export type IButtonProps = {
|
|
4
4
|
kind: "primary" | "secondary" | "tertiary" | "ghost" | "dangerPrimary" | "dangerTertiary" | "dangerGhost";
|
|
5
5
|
size: "large" | "medium" | "small" | "extraLarge" | "twoXLarge" | "expressive";
|
|
6
6
|
label?: ReactNode;
|
|
@@ -13,6 +13,7 @@ export type IButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
|
13
13
|
hasIconSvg?: boolean;
|
|
14
14
|
fortable?: boolean;
|
|
15
15
|
dimension?: string;
|
|
16
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
16
17
|
};
|
|
17
18
|
export declare const Button: (props: IButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUlC,OAAO,0CAA0C,CAAC;AAIlD,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,EACF,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,eAAe,GACf,gBAAgB,GAChB,aAAa,CAAC;IAChB,IAAI,EACF,OAAO,GACP,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,WAAW,GACX,YAAY,CAAC;IACf,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,IAAI,CAAC;CAChE,CAAC;AAGF,eAAO,MAAM,MAAM,UAAW,YAAY,4CA+EzC,CAAC"}
|
|
@@ -8,20 +8,7 @@ export declare const paddingDict: {
|
|
|
8
8
|
[key: string]: IDictsStyle;
|
|
9
9
|
};
|
|
10
10
|
export declare const GeneralContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IButtonProps>> & string;
|
|
11
|
-
export declare const ButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>,
|
|
12
|
-
kind: "ghost" | "primary" | "secondary" | "tertiary" | "dangerPrimary" | "dangerTertiary" | "dangerGhost";
|
|
13
|
-
size: "small" | "medium" | "large" | "extraLarge" | "twoXLarge" | "expressive";
|
|
14
|
-
label?: import("react").ReactNode;
|
|
15
|
-
icon?: import("react").ReactNode;
|
|
16
|
-
loading?: boolean;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
forModal?: boolean;
|
|
19
|
-
full?: boolean;
|
|
20
|
-
borderNone?: boolean;
|
|
21
|
-
hasIconSvg?: boolean;
|
|
22
|
-
fortable?: boolean;
|
|
23
|
-
dimension?: string;
|
|
24
|
-
} & {
|
|
11
|
+
export declare const ButtonContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, IButtonProps & {
|
|
25
12
|
borderStyle?: string;
|
|
26
13
|
}>> & string;
|
|
27
14
|
export declare const IconTag: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, IButtonProps>> & string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/Components/Button/styles.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AACjC,OAAO,2BAA2B,CAAC;AAGnC,KAAK,WAAW,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAUF,eAAO,MAAM,WAAW,EAAE;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC;CA0B5B,CAAC;AAiFF,eAAO,MAAM,gBAAgB,iPAE5B,CAAC;AACF,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/Components/Button/styles.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AACjC,OAAO,2BAA2B,CAAC;AAGnC,KAAK,WAAW,GAAG;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAUF,eAAO,MAAM,WAAW,EAAE;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,CAAC;CA0B5B,CAAC;AAiFF,eAAO,MAAM,gBAAgB,iPAE5B,CAAC;AACF,eAAO,MAAM,eAAe;kBAAgD,MAAM;YA+CjF,CAAC;AAEF,eAAO,MAAM,OAAO,wPAQnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iPAUV,CAAA;AAEnB,eAAO,MAAM,SAAS,mPAYrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableData/style.tsx"],"names":[],"mappings":";AACA,OAAO,2BAA2B,CAAC;AAInC,eAAO,MAAM,SAAS,sOAMrB,CAAC;AAEF,eAAO,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../../../src/Components/TableData/style.tsx"],"names":[],"mappings":";AACA,OAAO,2BAA2B,CAAC;AAInC,eAAO,MAAM,SAAS,sOAMrB,CAAC;AAEF,eAAO,MAAM,GAAG,uOAaf,CAAC;AAEF,eAAO,MAAM,GAAG,mPAQf,CAAC;AAGF,eAAO,MAAM,QAAQ,uOAiBpB,CAAC;AAEF,eAAO,MAAM,GAAG,uPAQf,CAAC;AAEF,eAAO,MAAM,UAAU,yOAYtB,CAAC;AAGF,eAAO,MAAM,aAAa,qOAYzB,CAAC;AAEF,eAAO,MAAM,UAAU,6NAWtB,CAAC;AACF,eAAO,MAAM,OAAO,6NAOnB,CAAC;AACF,eAAO,MAAM,cAAc,yOAW1B,CAAC;AACF,eAAO,MAAM,UAAU,yOAItB,CAAC;AACF,eAAO,MAAM,SAAS,yOAoBrB,CAAC;AACF,eAAO,MAAM,QAAQ,yOAUpB,CAAC;AAEF,eAAO,MAAM,cAAc,6NAkD1B,CAAC"}
|