@ufal-lccv/gpsub-ds 0.1.5 → 0.1.6

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.
@@ -0,0 +1 @@
1
+ "use strict";const r=require("./Tooltip.view-DqslW6MW.cjs"),b=require("react"),h=({width:t="100%",height:n="fit-content",type:o,title:s,message:l,margin:c,open:x=!0,onClose:i,canClose:u=!0})=>{var a,d;const[p,j]=b.useState(x),e={info:{backgroundColor:"#D5EBFD",borderColor:r.sg.colors.feedbackColors.colorFeedbackInfo,icon:r.jsxRuntimeExports.jsx(r.InfoFill_default,{color:r.sg.colors.feedbackColors.colorFeedbackInfo,height:"20px",width:"20px"})},success:{backgroundColor:"#DAF9DB",borderColor:r.sg.colors.feedbackColors.colorFeedbackSuccess,icon:r.jsxRuntimeExports.jsx(r.CheckCircleFill_default,{color:r.sg.colors.feedbackColors.colorFeedbackSuccess,height:"20px",width:"20px"})},warning:{backgroundColor:"#FEEECF",borderColor:r.sg.colors.feedbackColors.colorFeedbackWarning},error:{backgroundColor:"#FFE1E1",borderColor:r.sg.colors.feedbackColors.colorFeedbackError,icon:r.jsxRuntimeExports.jsx(r.ErrorFill_default,{color:r.sg.colors.feedbackColors.colorFeedbackError,height:"20px",width:"20px"})}};function g(){j(!1),i==null||i()}return r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{children:p?r.jsxRuntimeExports.jsxs(r.Container,{width:t,height:n,direction:"horizontal",verticalAlign:s?"top":"center",gap:r.sg.spacings.spacingInset.spacingInsetXs,padding:r.sg.spacings.spacingInline.spacingInlineSm,backgroundColor:(a=e==null?void 0:e[o])==null?void 0:a.backgroundColor,customStyles:{border:`1px solid ${(d=e==null?void 0:e[o])==null?void 0:d.borderColor}`,borderRadius:r.sg.borders.borderRadius.borderRadiusSm,margin:c,position:"relative"},children:[o==="warning"?r.jsxRuntimeExports.jsx(r.ContainerWarning,{children:r.jsxRuntimeExports.jsx(r.WarningFill_default,{width:"20px",height:"20px"})}):r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{children:e==null?void 0:e[o].icon}),r.jsxRuntimeExports.jsxs(r.Container,{width:"100%",flex:"1",height:"100%",children:[r.jsxRuntimeExports.jsx(r.Title$1,{children:s}),r.jsxRuntimeExports.jsx(r.Message,{children:l})]}),u&&r.jsxRuntimeExports.jsx(r.Container,{children:r.jsxRuntimeExports.jsx(r.Close_default,{color:r.sg.colors.neutralColors.colorNeutralCloudy,cursor:"pointer",onClick:g,height:"20px",width:"20px"})})]}):r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{})})},m=({label:t,labelRender:n,infoProps:o={},withInfo:s=!0,flex:l,width:c="100%",isRequired:x=!1})=>{const i={tooltipProps:{position:"top",...o==null?void 0:o.tooltipProps,size:"Small"}};return r.jsxRuntimeExports.jsxs(r.Container,{width:c,direction:"horizontal",gap:"4px",flex:l,children:[n??r.jsxRuntimeExports.jsxs(r.Label$1,{children:[t," ",x?r.jsxRuntimeExports.jsx(r.Required,{children:"*"}):null]}),s&&r.jsxRuntimeExports.jsx(r.Info,{...i})]})},E=({width:t="100%",flex:n,label:o="Obrigatório",margin:s="0 0 16px 0"})=>r.jsxRuntimeExports.jsx(r.Container,{width:t,flex:n,customStyles:{margin:s},children:r.jsxRuntimeExports.jsx(r.Label$2,{children:`* ${o}`})});exports.AlertInline=h;exports.LabelField=m;exports.RequiredLabelView=E;
@@ -1,7 +1,6 @@
1
- import { p as o, D as k, G as j, t as F, b as n, H as f, W as m, J as I, K as E, N as w, O as S, P as R, I as D, Q as L } from "./Tooltip.view-CH0ns5c-.js";
1
+ import { p as o, D as k, n as r, G as j, t as F, b as i, H as f, W as m, J as I, K as E, N as w, O as S, P as R, I as D, Q as L } from "./Tooltip.view-DVB8eHlQ.js";
2
2
  import { useState as O } from "react";
3
- import { sg as r } from "sbwb-ds";
4
- const z = ({
3
+ const W = ({
5
4
  width: c = "100%",
6
5
  height: a = "fit-content",
7
6
  type: e,
@@ -9,7 +8,7 @@ const z = ({
9
8
  message: t,
10
9
  margin: d,
11
10
  open: x = !0,
12
- onClose: i,
11
+ onClose: n,
13
12
  canClose: h = !0
14
13
  }) => {
15
14
  var b, u;
@@ -56,10 +55,10 @@ const z = ({
56
55
  }
57
56
  };
58
57
  function C() {
59
- g(!1), i == null || i();
58
+ g(!1), n == null || n();
60
59
  }
61
60
  return /* @__PURE__ */ o.jsx(o.Fragment, { children: p ? /* @__PURE__ */ o.jsxs(
62
- n,
61
+ i,
63
62
  {
64
63
  width: c,
65
64
  height: a,
@@ -76,11 +75,11 @@ const z = ({
76
75
  },
77
76
  children: [
78
77
  e === "warning" ? /* @__PURE__ */ o.jsx(f, { children: /* @__PURE__ */ o.jsx(m, { width: "20px", height: "20px" }) }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: s == null ? void 0 : s[e].icon }),
79
- /* @__PURE__ */ o.jsxs(n, { width: "100%", flex: "1", height: "100%", children: [
78
+ /* @__PURE__ */ o.jsxs(i, { width: "100%", flex: "1", height: "100%", children: [
80
79
  /* @__PURE__ */ o.jsx(I, { children: l }),
81
80
  /* @__PURE__ */ o.jsx(E, { children: t })
82
81
  ] }),
83
- h && /* @__PURE__ */ o.jsx(n, { children: /* @__PURE__ */ o.jsx(
82
+ h && /* @__PURE__ */ o.jsx(i, { children: /* @__PURE__ */ o.jsx(
84
83
  w,
85
84
  {
86
85
  color: r.colors.neutralColors.colorNeutralCloudy,
@@ -93,7 +92,7 @@ const z = ({
93
92
  ]
94
93
  }
95
94
  ) : /* @__PURE__ */ o.jsx(o.Fragment, {}) });
96
- }, $ = ({
95
+ }, z = ({
97
96
  label: c,
98
97
  labelRender: a,
99
98
  infoProps: e = {},
@@ -102,29 +101,29 @@ const z = ({
102
101
  width: d = "100%",
103
102
  isRequired: x = !1
104
103
  }) => {
105
- const i = {
104
+ const n = {
106
105
  tooltipProps: {
107
106
  position: "top",
108
107
  ...e == null ? void 0 : e.tooltipProps,
109
108
  size: "Small"
110
109
  }
111
110
  };
112
- return /* @__PURE__ */ o.jsxs(n, { width: d, direction: "horizontal", gap: "4px", flex: t, children: [
111
+ return /* @__PURE__ */ o.jsxs(i, { width: d, direction: "horizontal", gap: "4px", flex: t, children: [
113
112
  a ?? /* @__PURE__ */ o.jsxs(S, { children: [
114
113
  c,
115
114
  " ",
116
115
  x ? /* @__PURE__ */ o.jsx(R, { children: "*" }) : null
117
116
  ] }),
118
- l && /* @__PURE__ */ o.jsx(D, { ...i })
117
+ l && /* @__PURE__ */ o.jsx(D, { ...n })
119
118
  ] });
120
- }, q = ({
119
+ }, $ = ({
121
120
  width: c = "100%",
122
121
  flex: a,
123
122
  label: e = "Obrigatório",
124
123
  margin: l = "0 0 16px 0"
125
- }) => /* @__PURE__ */ o.jsx(n, { width: c, flex: a, customStyles: { margin: l }, children: /* @__PURE__ */ o.jsx(L, { children: `* ${e}` }) });
124
+ }) => /* @__PURE__ */ o.jsx(i, { width: c, flex: a, customStyles: { margin: l }, children: /* @__PURE__ */ o.jsx(L, { children: `* ${e}` }) });
126
125
  export {
127
- z as A,
128
- $ as L,
129
- q as R
126
+ W as A,
127
+ z as L,
128
+ $ as R
130
129
  };
@@ -1,8 +1,8 @@
1
- import { p as n, b as _, l as fe, U as we, m as ye, C as Ce, V as x, X as M, s as ke, T as ue, S as ze, I as Be, Y as je, E as he } from "./Tooltip.view-CH0ns5c-.js";
1
+ import { p as n, b as _, l as fe, U as we, m as ye, C as Ce, n as o, V as x, X as M, s as ke, T as ue, S as ze, I as Be, Y as je, E as he } from "./Tooltip.view-DVB8eHlQ.js";
2
2
  import Ne, { useState as D, useEffect as Z, useCallback as ge, useMemo as V, useRef as U, forwardRef as me, isValidElement as se, useLayoutEffect as We } from "react";
3
- import { sg as o, Icon as Q } from "sbwb-ds";
4
- import { v as G, r as q, b as Ie } from "./multiplyRemValues-B_PFYi3M.js";
3
+ import { v as G, r as q, b as Ie } from "./index-BU7Rzx2_.js";
5
4
  import { Controller as re } from "react-hook-form";
5
+ import { Icon as Q } from "sbwb-ds";
6
6
  const ae = 350, Co = ({
7
7
  title: e,
8
8
  children: t,