@granto-umbrella/umbrella-components 3.0.65 → 3.0.67

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.
@@ -84706,7 +84706,9 @@ const q32 = ({
84706
84706
  onConfirm: l,
84707
84707
  isLoading: r = !1,
84708
84708
  title: c = "Você tem certeza que deseja excluir essa cotação?",
84709
- description: o = "Essa cotação será excluída mas ainda será mantida no nosso sistema, caso queira restaurar, precisa entrar em contato conosco."
84709
+ description: o = "Essa cotação será excluída mas ainda será mantida no nosso sistema, caso queira restaurar, precisa entrar em contato conosco.",
84710
+ confirmButtonText: m = "Sim, excluir",
84711
+ cancelButtonText: i = "Cancelar"
84710
84712
  }) => /* @__PURE__ */ L.jsxs(ul, { open: a, onOpenChange: t, children: [
84711
84713
  /* @__PURE__ */ L.jsx(J32, {}),
84712
84714
  /* @__PURE__ */ L.jsxs(K32, { children: [
@@ -84714,8 +84716,8 @@ const q32 = ({
84714
84716
  /* @__PURE__ */ L.jsx(_32, { children: c }),
84715
84717
  /* @__PURE__ */ L.jsx(e52, { children: o }),
84716
84718
  /* @__PURE__ */ L.jsxs(a52, { children: [
84717
- /* @__PURE__ */ L.jsx(t52, { onClick: n, children: "Cancelar" }),
84718
- /* @__PURE__ */ L.jsx(n52, { onClick: l, disabled: r, children: r ? "Excluindo..." : "Sim, excluir" })
84719
+ /* @__PURE__ */ L.jsx(t52, { onClick: n, children: i }),
84720
+ /* @__PURE__ */ L.jsx(n52, { onClick: l, disabled: r, children: r ? "Excluindo..." : m })
84719
84721
  ] })
84720
84722
  ] })
84721
84723
  ] }), c52 = N(Yt)`
@@ -2344,7 +2344,7 @@ ${p0.current.stack}
2344
2344
  &:hover svg {
2345
2345
  color: ${F.global.text.default.enabled};
2346
2346
  }
2347
- `,k32=({open:a,onOpenChange:t,onClose:n,onConfirm:l,isLoading:r=!1,title:c="Você tem certeza que deseja excluir essa cotação?",description:o="Essa cotação será excluída mas ainda será mantida no nosso sistema, caso queira restaurar, precisa entrar em contato conosco."})=>w.jsxs(O3,{open:a,onOpenChange:t,children:[w.jsx(I32,{}),w.jsxs(S32,{children:[w.jsx(D32,{"aria-label":"Fechar",onClick:n,children:w.jsx(ve,{size:28})}),w.jsx(N32,{children:c}),w.jsx(x32,{children:o}),w.jsxs($32,{children:[w.jsx(R32,{onClick:n,children:"Cancelar"}),w.jsx(P32,{onClick:l,disabled:r,children:r?"Excluindo...":"Sim, excluir"})]})]})]}),O32=N(pa)`
2347
+ `,k32=({open:a,onOpenChange:t,onClose:n,onConfirm:l,isLoading:r=!1,title:c="Você tem certeza que deseja excluir essa cotação?",description:o="Essa cotação será excluída mas ainda será mantida no nosso sistema, caso queira restaurar, precisa entrar em contato conosco.",confirmButtonText:m="Sim, excluir",cancelButtonText:i="Cancelar"})=>w.jsxs(O3,{open:a,onOpenChange:t,children:[w.jsx(I32,{}),w.jsxs(S32,{children:[w.jsx(D32,{"aria-label":"Fechar",onClick:n,children:w.jsx(ve,{size:28})}),w.jsx(N32,{children:c}),w.jsx(x32,{children:o}),w.jsxs($32,{children:[w.jsx(R32,{onClick:n,children:i}),w.jsx(P32,{onClick:l,disabled:r,children:r?"Excluindo...":m})]})]})]}),O32=N(pa)`
2348
2348
  position: fixed;
2349
2349
  inset: 0;
2350
2350
  background-color: rgba(0, 0, 0, 0.6);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@granto-umbrella/umbrella-components",
3
- "version": "3.0.65",
3
+ "version": "3.0.67",
4
4
  "description": "Umbrella Components for React",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -7,8 +7,7 @@ import {
7
7
  TooltipLink,
8
8
  } from '../Tooltip/Tootip.styles';
9
9
  import { TooltipProps } from './tooltip.types';
10
- import { ArrowSquareOut } from '@phosphor-icons/react';
11
- import info from '../../../assets/info.png';
10
+ import { ArrowSquareOut, WarningCircle } from '@phosphor-icons/react';
12
11
 
13
12
  const Tooltip: React.FC<TooltipProps> = ({
14
13
  children,
@@ -33,7 +32,7 @@ const Tooltip: React.FC<TooltipProps> = ({
33
32
  onMouseEnter={handleMouseEnter}
34
33
  onMouseLeave={handleMouseLeave}
35
34
  >
36
- <img src={info} alt="Informação" />
35
+ <WarningCircle className="icon" />
37
36
  </TooltipTrigger>
38
37
  <TooltipContent
39
38
  $position={position}
@@ -88,7 +88,7 @@ export const TooltipTrigger = styled.div`
88
88
  display: inline-flex;
89
89
  cursor: pointer;
90
90
 
91
- img {
91
+ .icon {
92
92
  width: 16px;
93
93
  height: 16px;
94
94
  color: ${semanticColors.global.text.subtitle.enabled};
@@ -21,6 +21,8 @@ const ExcludeModal: React.FC<ExcludeModalProps> = ({
21
21
  isLoading = false,
22
22
  title = 'Você tem certeza que deseja excluir essa cotação?',
23
23
  description = 'Essa cotação será excluída mas ainda será mantida no nosso sistema, caso queira restaurar, precisa entrar em contato conosco.',
24
+ confirmButtonText = 'Sim, excluir',
25
+ cancelButtonText = 'Cancelar',
24
26
  }) => {
25
27
  return (
26
28
  <Dialog.Root open={open} onOpenChange={onOpenChange}>
@@ -35,9 +37,9 @@ const ExcludeModal: React.FC<ExcludeModalProps> = ({
35
37
  <Description>{description}</Description>
36
38
 
37
39
  <Footer>
38
- <CancelButton onClick={onClose}>Cancelar</CancelButton>
40
+ <CancelButton onClick={onClose}>{cancelButtonText}</CancelButton>
39
41
  <ConfirmButton onClick={onConfirm} disabled={isLoading}>
40
- {isLoading ? 'Excluindo...' : 'Sim, excluir'}
42
+ {isLoading ? 'Excluindo...' : confirmButtonText}
41
43
  </ConfirmButton>
42
44
  </Footer>
43
45
  </Content>
@@ -7,4 +7,6 @@ export interface ExcludeModalProps {
7
7
  isLoading?: boolean;
8
8
  title?: string;
9
9
  description?: string;
10
+ confirmButtonText?: string;
11
+ cancelButtonText?: string;
10
12
  }