prosperita-dumbo-react 4.1.1 → 4.1.2

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.
@@ -2869,7 +2869,9 @@ const nn = {
2869
2869
  align-items: center;
2870
2870
  align-self: stretch;
2871
2871
  border-radius: ${({ borderNone: e }) => e ? "0px" : "8px"};
2872
+ border: ${({ borderStyle: e }) => e || "2px solid transparent"};
2872
2873
  box-sizing: border-box;
2874
+
2873
2875
  &:active {
2874
2876
  background-color: ${({ disabled: e, kind: t }) => !e && fn[t].active};
2875
2877
  }
@@ -2878,7 +2880,7 @@ const nn = {
2878
2880
  background-color: ${({ disabled: e, kind: t }) => !e && fn[t].hover};
2879
2881
  color: ${({ kind: e, disabled: t }) => !t && W1[e]};
2880
2882
  }
2881
- border: 2px solid transparent;
2883
+
2882
2884
  &:focus {
2883
2885
  border: 2px solid ${d.focus};
2884
2886
  background: ${({ disabled: e, kind: t }) => !e && fn[t].default};
@@ -2964,7 +2966,18 @@ function mt({ children: e, ...t }) {
2964
2966
  return He.createElement(Ms.Provider, { value: t }, e);
2965
2967
  }
2966
2968
  const sr = (e) => {
2967
- const { label: t, size: n, kind: i, loading: r, icon: o, disabled: a, type: c, forModal: s, full: u, hasIconSvg: f } = e, p = {
2969
+ const {
2970
+ label: t,
2971
+ size: n,
2972
+ kind: i,
2973
+ loading: r,
2974
+ icon: o,
2975
+ disabled: a,
2976
+ type: c,
2977
+ forModal: s,
2978
+ full: u,
2979
+ hasIconSvg: f
2980
+ } = e, p = {
2968
2981
  padding: t ? nn.default[n] : nn.onlyIcon[n],
2969
2982
  position: "absolute",
2970
2983
  top: "0",
@@ -2998,15 +3011,13 @@ const sr = (e) => {
2998
3011
  ) : /* @__PURE__ */ I(
2999
3012
  ta,
3000
3013
  {
3001
- style: {
3002
- border: a ? i === "tertiary" || i === "dangerTertiary" ? `1px solid ${d.buttonDisabled}` : "0" : i === "tertiary" ? `1px solid ${d.buttonPrimary}` : i === "dangerTertiary" ? `1px solid ${d.buttonDangerSecondary}` : "0"
3003
- },
3004
3014
  forModal: s,
3005
3015
  ...e,
3006
3016
  kind: i,
3007
3017
  size: n,
3008
3018
  loading: r,
3009
3019
  type: c,
3020
+ borderStyle: a ? i === "tertiary" || i === "dangerTertiary" ? `1px solid ${d.buttonDisabled}` : "0" : i === "tertiary" ? `1px solid ${d.buttonPrimary}` : i === "dangerTertiary" ? `1px solid ${d.buttonDangerSecondary}` : "0",
3010
3021
  children: [
3011
3022
  /* @__PURE__ */ l(ra, { ...e, kind: i, children: t }),
3012
3023
  f ? /* @__PURE__ */ l(j1, { ...e, children: o }) : /* @__PURE__ */ l(na, { src: typeof o == "string" ? o : "", ...e })
@@ -102,7 +102,9 @@ See https://s-c.sh/2BAXzed for more info.`),window[zn]+=1);const V3="",Yt={defau
102
102
  align-items: center;
103
103
  align-self: stretch;
104
104
  border-radius: ${({borderNone:e})=>e?"0px":"8px"};
105
+ border: ${({borderStyle:e})=>e||"2px solid transparent"};
105
106
  box-sizing: border-box;
107
+
106
108
  &:active {
107
109
  background-color: ${({disabled:e,kind:t})=>!e&&un[t].active};
108
110
  }
@@ -111,7 +113,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[zn]+=1);const V3="",Yt={defau
111
113
  background-color: ${({disabled:e,kind:t})=>!e&&un[t].hover};
112
114
  color: ${({kind:e,disabled:t})=>!t&&h1[e]};
113
115
  }
114
- border: 2px solid transparent;
116
+
115
117
  &:focus {
116
118
  border: 2px solid ${u.focus};
117
119
  background: ${({disabled:e,kind:t})=>!e&&un[t].default};
@@ -156,7 +158,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[zn]+=1);const V3="",Yt={defau
156
158
  text-wrap: nowrap;
157
159
  align-self: start;
158
160
  padding: 0;
159
- `,ma=x.createContext({}),va=!0;function C1({baseColor:e,highlightColor:t,width:n,height:i,borderRadius:r,circle:o,direction:a,duration:c,enableAnimation:s=va}){const d={};return a==="rtl"&&(d["--animation-direction"]="reverse"),typeof c=="number"&&(d["--animation-duration"]=`${c}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 Ae({count:e=1,wrapper:t,className:n,containerClassName:i,containerTestId:r,circle:o=!1,style:a,...c}){var s,d,f;const p=x.useContext(ma),g={...c};for(const[B,V]of Object.entries(c))typeof V>"u"&&delete g[B];const b={...p,...g,circle:o},v={...a,...C1(b)};let y="react-loading-skeleton";n&&(y+=` ${n}`);const m=(s=b.inline)!==null&&s!==void 0?s:!1,C=[],P=Math.ceil(e);for(let B=0;B<P;B++){let V=v;if(P>e&&B===P-1){const E=(d=V.width)!==null&&d!==void 0?d:"100%",S=e%1,G=typeof E=="number"?E*S:`calc(${E} * ${S})`;V={...V,width:G}}const A=x.createElement("span",{className:y,style:V,key:B},"‌");m?C.push(A):C.push(x.createElement(x.Fragment,{key:B},A,x.createElement("br",null)))}return x.createElement("span",{className:i,"data-testid":r,"aria-live":"polite","aria-busy":(f=b.enableAnimation)!==null&&f!==void 0?f:va},t?C.map((B,V)=>x.createElement(t,{key:V},B)):C)}function ft({children:e,...t}){return x.createElement(ma.Provider,{value:t},e)}const k3="",dn=e=>{const{label:t,size:n,kind:i,loading:r,icon:o,disabled:a,type:c,forModal:s,full:d,hasIconSvg:f}=e,p={padding:t?Yt.default[n]:Yt.onlyIcon[n],position:"absolute",top:"0",width:"auto",left:"0",right:"0",bottom:"0",borderRadius:"6px"};return l(v1,{full:d,...e,children:r&&!a?w(ga,{...e,kind:i,size:n,loading:r,style:{border:"0"},children:[l(ha,{...e,kind:i,children:t}),l(ft,{baseColor:u.skeletonElement,highlightColor:u.skeletonBackground,children:l(Ae,{count:1,style:p})}),!t&&l(ba,{src:typeof o=="string"?o:"",...e})]}):w(ga,{style:{border:a?i==="tertiary"||i==="dangerTertiary"?`1px solid ${u.buttonDisabled}`:"0":i==="tertiary"?`1px solid ${u.buttonPrimary}`:i==="dangerTertiary"?`1px solid ${u.buttonDangerSecondary}`:"0"},forModal:s,...e,kind:i,size:n,loading:r,type:c,children:[l(ha,{...e,kind:i,children:t}),f?l(y1,{...e,children:o}):l(ba,{src:typeof o=="string"?o:"",...e})]})})},x1={large:"20px ",small:"15px",medium:"18px"},I1={large:"13px",small:"12px",medium:"15px"},_n=e=>{const{disabled:t,error:n}=e;return t?"2px solid transparent":n?`2px solid ${u.supportError}`:"2px solid transparent"},ri=I.input`
161
+ `,ma=x.createContext({}),va=!0;function C1({baseColor:e,highlightColor:t,width:n,height:i,borderRadius:r,circle:o,direction:a,duration:c,enableAnimation:s=va}){const d={};return a==="rtl"&&(d["--animation-direction"]="reverse"),typeof c=="number"&&(d["--animation-duration"]=`${c}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 Ae({count:e=1,wrapper:t,className:n,containerClassName:i,containerTestId:r,circle:o=!1,style:a,...c}){var s,d,f;const p=x.useContext(ma),g={...c};for(const[B,V]of Object.entries(c))typeof V>"u"&&delete g[B];const b={...p,...g,circle:o},v={...a,...C1(b)};let y="react-loading-skeleton";n&&(y+=` ${n}`);const m=(s=b.inline)!==null&&s!==void 0?s:!1,C=[],P=Math.ceil(e);for(let B=0;B<P;B++){let V=v;if(P>e&&B===P-1){const E=(d=V.width)!==null&&d!==void 0?d:"100%",S=e%1,G=typeof E=="number"?E*S:`calc(${E} * ${S})`;V={...V,width:G}}const A=x.createElement("span",{className:y,style:V,key:B},"‌");m?C.push(A):C.push(x.createElement(x.Fragment,{key:B},A,x.createElement("br",null)))}return x.createElement("span",{className:i,"data-testid":r,"aria-live":"polite","aria-busy":(f=b.enableAnimation)!==null&&f!==void 0?f:va},t?C.map((B,V)=>x.createElement(t,{key:V},B)):C)}function ft({children:e,...t}){return x.createElement(ma.Provider,{value:t},e)}const k3="",dn=e=>{const{label:t,size:n,kind:i,loading:r,icon:o,disabled:a,type:c,forModal:s,full:d,hasIconSvg:f}=e,p={padding:t?Yt.default[n]:Yt.onlyIcon[n],position:"absolute",top:"0",width:"auto",left:"0",right:"0",bottom:"0",borderRadius:"6px"};return l(v1,{full:d,...e,children:r&&!a?w(ga,{...e,kind:i,size:n,loading:r,style:{border:"0"},children:[l(ha,{...e,kind:i,children:t}),l(ft,{baseColor:u.skeletonElement,highlightColor:u.skeletonBackground,children:l(Ae,{count:1,style:p})}),!t&&l(ba,{src:typeof o=="string"?o:"",...e})]}):w(ga,{forModal:s,...e,kind:i,size:n,loading:r,type:c,borderStyle:a?i==="tertiary"||i==="dangerTertiary"?`1px solid ${u.buttonDisabled}`:"0":i==="tertiary"?`1px solid ${u.buttonPrimary}`:i==="dangerTertiary"?`1px solid ${u.buttonDangerSecondary}`:"0",children:[l(ha,{...e,kind:i,children:t}),f?l(y1,{...e,children:o}):l(ba,{src:typeof o=="string"?o:"",...e})]})})},x1={large:"20px ",small:"15px",medium:"18px"},I1={large:"13px",small:"12px",medium:"15px"},_n=e=>{const{disabled:t,error:n}=e;return t?"2px solid transparent":n?`2px solid ${u.supportError}`:"2px solid transparent"},ri=I.input`
160
162
  height: ${({size:e})=>e&&I1[e]};
161
163
  box-sizing: border-box;
162
164
  padding: ${({size:e})=>e&&x1[e]};
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUxD,OAAO,0CAA0C,CAAC;AAGlD,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACnE,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,MAAM,IAAI,CAAC;IACrB,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,CAAA;CACrB,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,YAAY,4CAoEzC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/Components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAUxD,OAAO,0CAA0C,CAAC;AAGlD,MAAM,MAAM,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACnE,IAAI,EACA,SAAS,GACT,WAAW,GACX,UAAU,GACV,OAAO,GACP,eAAe,GACf,gBAAgB,GAChB,aAAa,CAAC;IAClB,IAAI,EACA,OAAO,GACP,QAAQ,GACR,OAAO,GACP,YAAY,GACZ,WAAW,GACX,YAAY,CAAC;IACjB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,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;CACtB,CAAC;AAEF,eAAO,MAAM,MAAM,UAAW,YAAY,4CA8EzC,CAAC"}
@@ -8,7 +8,21 @@ 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>, 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>, import("react").ButtonHTMLAttributes<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
+ onClick?: () => void;
17
+ loading?: boolean;
18
+ disabled?: boolean;
19
+ forModal?: boolean;
20
+ full?: boolean;
21
+ borderNone?: boolean;
22
+ hasIconSvg?: boolean;
23
+ } & {
24
+ borderStyle?: string;
25
+ }>> & string;
12
26
  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;
13
27
  export declare const IconSvgContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, IButtonProps>> & string;
14
28
  export declare const LabelText: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, 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;AAEF,eAAO,MAAM,eAAe,6PA+C3B,CAAC;AACF,eAAO,MAAM,OAAO,wPAUnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iPAMV,CAAA;AAEnB,eAAO,MAAM,SAAS,mPAYrB,CAAC"}
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;YAiDjF,CAAC;AAEF,eAAO,MAAM,OAAO,wPAUnB,CAAC;AAEF,eAAO,MAAM,gBAAgB,iPAMV,CAAA;AAEnB,eAAO,MAAM,SAAS,mPAYrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prosperita-dumbo-react",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "main": "dist/prosperita-dumbo-react.umd.js",
5
5
  "module": "dist/prosperita-dumbo-react.es.js",
6
6
  "types": "dist/types/index.d.ts",