@ufal-lccv/gpsub-ds 0.0.11 → 0.0.13
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/{Checkbox.view-B-GrHFEa.js → Checkbox.view-D75146I3.js} +1033 -982
- package/dist/{Checkbox.view-DpYmvx5w.cjs → Checkbox.view-DFbiE7Mi.cjs} +118 -118
- package/dist/RequiredLabel.view-Cv_y1fuR.js +130 -0
- package/dist/RequiredLabel.view-DRKx7lq3.cjs +1 -0
- package/dist/Table.view-BipNpove.cjs +586 -0
- package/dist/{Table.view-B9_6CG4G.js → Table.view-CHEV4kuX.js} +826 -711
- package/dist/{Title.view-CxaPmd5z.cjs → Title.view-B2dLqH4V.cjs} +1 -1
- package/dist/{Title.view-D-L8EJcc.js → Title.view-DGXidSXd.js} +1 -1
- package/dist/components/atoms/index.cjs.js +1 -1
- package/dist/components/atoms/index.es.js +2 -2
- package/dist/components/index.cjs.js +1 -1
- package/dist/components/index.es.js +16 -15
- package/dist/components/molecules/AlertInline/AlertInline.view.d.ts +4 -1
- package/dist/components/molecules/index.cjs.js +1 -1
- package/dist/components/molecules/index.es.js +2 -2
- package/dist/components/organisms/CollapseSection/CollapseSection.view.d.ts +2 -1
- package/dist/components/organisms/TabInfo/TabInfo.style.d.ts +5 -0
- package/dist/components/organisms/TabInfo/TabInfo.view.d.ts +19 -0
- package/dist/components/organisms/TabInfo/index.d.ts +1 -0
- package/dist/components/organisms/index.cjs.js +1 -1
- package/dist/components/organisms/index.d.ts +2 -1
- package/dist/components/organisms/index.es.js +6 -5
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +25 -24
- package/package.json +1 -1
- package/dist/RequiredLabel.view-CVWg_TdI.cjs +0 -1
- package/dist/RequiredLabel.view-DM5zIUlt.js +0 -98
- package/dist/Table.view-BJO6XwCO.cjs +0 -541
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { l as o, v as k, w as j, n as F, C as i, x as f, W as m, y as I, z as w, D as E, G as S, H as R, I as D, J as L } from "./Checkbox.view-D75146I3.js";
|
|
2
|
+
import { useState as _ } from "react";
|
|
3
|
+
import { sg as r } from "sbwb-ds";
|
|
4
|
+
const W = ({
|
|
5
|
+
width: c = "100%",
|
|
6
|
+
height: a = "fit-content",
|
|
7
|
+
type: e,
|
|
8
|
+
title: l,
|
|
9
|
+
message: t,
|
|
10
|
+
margin: d,
|
|
11
|
+
open: x = !0,
|
|
12
|
+
onClose: n,
|
|
13
|
+
canClose: h = !0
|
|
14
|
+
}) => {
|
|
15
|
+
var u, b;
|
|
16
|
+
const [p, g] = _(x), s = {
|
|
17
|
+
info: {
|
|
18
|
+
backgroundColor: "#D5EBFD",
|
|
19
|
+
borderColor: r.colors.feedbackColors.colorFeedbackInfo,
|
|
20
|
+
icon: /* @__PURE__ */ o.jsx(
|
|
21
|
+
F,
|
|
22
|
+
{
|
|
23
|
+
color: r.colors.feedbackColors.colorFeedbackInfo,
|
|
24
|
+
height: "20px",
|
|
25
|
+
width: "20px"
|
|
26
|
+
}
|
|
27
|
+
)
|
|
28
|
+
},
|
|
29
|
+
success: {
|
|
30
|
+
backgroundColor: "#DAF9DB",
|
|
31
|
+
borderColor: r.colors.feedbackColors.colorFeedbackSuccess,
|
|
32
|
+
icon: /* @__PURE__ */ o.jsx(
|
|
33
|
+
j,
|
|
34
|
+
{
|
|
35
|
+
color: r.colors.feedbackColors.colorFeedbackSuccess,
|
|
36
|
+
height: "20px",
|
|
37
|
+
width: "20px"
|
|
38
|
+
}
|
|
39
|
+
)
|
|
40
|
+
},
|
|
41
|
+
warning: {
|
|
42
|
+
backgroundColor: "#FEEECF",
|
|
43
|
+
borderColor: r.colors.feedbackColors.colorFeedbackWarning
|
|
44
|
+
},
|
|
45
|
+
error: {
|
|
46
|
+
backgroundColor: "#FFE1E1",
|
|
47
|
+
borderColor: r.colors.feedbackColors.colorFeedbackError,
|
|
48
|
+
icon: /* @__PURE__ */ o.jsx(
|
|
49
|
+
k,
|
|
50
|
+
{
|
|
51
|
+
color: r.colors.feedbackColors.colorFeedbackError,
|
|
52
|
+
height: "20px",
|
|
53
|
+
width: "20px"
|
|
54
|
+
}
|
|
55
|
+
)
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
function C() {
|
|
59
|
+
g(!1), n == null || n();
|
|
60
|
+
}
|
|
61
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: p ? /* @__PURE__ */ o.jsxs(
|
|
62
|
+
i,
|
|
63
|
+
{
|
|
64
|
+
width: c,
|
|
65
|
+
height: a,
|
|
66
|
+
direction: "horizontal",
|
|
67
|
+
verticalAlign: l ? "top" : "center",
|
|
68
|
+
gap: r.spacings.spacingInset.spacingInsetXs,
|
|
69
|
+
padding: r.spacings.spacingInline.spacingInlineSm,
|
|
70
|
+
backgroundColor: (u = s == null ? void 0 : s[e]) == null ? void 0 : u.backgroundColor,
|
|
71
|
+
customStyles: {
|
|
72
|
+
border: `1px solid ${(b = s == null ? void 0 : s[e]) == null ? void 0 : b.borderColor}`,
|
|
73
|
+
borderRadius: r.borders.borderRadius.borderRadiusSm,
|
|
74
|
+
margin: d,
|
|
75
|
+
position: "relative"
|
|
76
|
+
},
|
|
77
|
+
children: [
|
|
78
|
+
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(i, { width: "100%", flex: "1", height: "100%", children: [
|
|
80
|
+
/* @__PURE__ */ o.jsx(I, { children: l }),
|
|
81
|
+
/* @__PURE__ */ o.jsx(w, { children: t })
|
|
82
|
+
] }),
|
|
83
|
+
h && /* @__PURE__ */ o.jsx(i, { children: /* @__PURE__ */ o.jsx(
|
|
84
|
+
E,
|
|
85
|
+
{
|
|
86
|
+
color: r.colors.neutralColors.colorNeutralCloudy,
|
|
87
|
+
cursor: "pointer",
|
|
88
|
+
onClick: C,
|
|
89
|
+
height: "20px",
|
|
90
|
+
width: "20px"
|
|
91
|
+
}
|
|
92
|
+
) })
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
) : /* @__PURE__ */ o.jsx(o.Fragment, {}) });
|
|
96
|
+
}, v = ({
|
|
97
|
+
label: c,
|
|
98
|
+
labelRender: a,
|
|
99
|
+
infoProps: e = {},
|
|
100
|
+
withInfo: l = !0,
|
|
101
|
+
flex: t,
|
|
102
|
+
width: d = "100%",
|
|
103
|
+
isRequired: x = !1
|
|
104
|
+
}) => {
|
|
105
|
+
const n = {
|
|
106
|
+
tooltipProps: {
|
|
107
|
+
position: "top",
|
|
108
|
+
...e == null ? void 0 : e.tooltipProps,
|
|
109
|
+
size: "Small"
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
return /* @__PURE__ */ o.jsxs(i, { width: d, direction: "horizontal", gap: "4px", flex: t, children: [
|
|
113
|
+
a ?? /* @__PURE__ */ o.jsxs(S, { children: [
|
|
114
|
+
c,
|
|
115
|
+
" ",
|
|
116
|
+
x ? /* @__PURE__ */ o.jsx(R, { children: "*" }) : null
|
|
117
|
+
] }),
|
|
118
|
+
l && /* @__PURE__ */ o.jsx(D, { ...n })
|
|
119
|
+
] });
|
|
120
|
+
}, $ = ({
|
|
121
|
+
width: c = "100%",
|
|
122
|
+
flex: a,
|
|
123
|
+
label: e = "Obrigatório",
|
|
124
|
+
margin: l = "0 0 16px 0"
|
|
125
|
+
}) => /* @__PURE__ */ o.jsx(i, { width: c, flex: a, customStyles: { margin: l }, children: /* @__PURE__ */ o.jsx(L, { children: `* ${e}` }) });
|
|
126
|
+
export {
|
|
127
|
+
W as A,
|
|
128
|
+
v as L,
|
|
129
|
+
$ as R
|
|
130
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./Checkbox.view-DFbiE7Mi.cjs"),h=require("react"),e=require("sbwb-ds"),m=({width:n="100%",height:i="fit-content",type:o,title:t,message:c,margin:x,open:a=!0,onClose:l,canClose:p=!0})=>{var d,u;const[j,b]=h.useState(a),s={info:{backgroundColor:"#D5EBFD",borderColor:e.sg.colors.feedbackColors.colorFeedbackInfo,icon:r.jsxRuntimeExports.jsx(r.InfoFill_default,{color:e.sg.colors.feedbackColors.colorFeedbackInfo,height:"20px",width:"20px"})},success:{backgroundColor:"#DAF9DB",borderColor:e.sg.colors.feedbackColors.colorFeedbackSuccess,icon:r.jsxRuntimeExports.jsx(r.CheckCircleFill_default,{color:e.sg.colors.feedbackColors.colorFeedbackSuccess,height:"20px",width:"20px"})},warning:{backgroundColor:"#FEEECF",borderColor:e.sg.colors.feedbackColors.colorFeedbackWarning},error:{backgroundColor:"#FFE1E1",borderColor:e.sg.colors.feedbackColors.colorFeedbackError,icon:r.jsxRuntimeExports.jsx(r.ErrorFill_default,{color:e.sg.colors.feedbackColors.colorFeedbackError,height:"20px",width:"20px"})}};function g(){b(!1),l==null||l()}return r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{children:j?r.jsxRuntimeExports.jsxs(r.Container,{width:n,height:i,direction:"horizontal",verticalAlign:t?"top":"center",gap:e.sg.spacings.spacingInset.spacingInsetXs,padding:e.sg.spacings.spacingInline.spacingInlineSm,backgroundColor:(d=s==null?void 0:s[o])==null?void 0:d.backgroundColor,customStyles:{border:`1px solid ${(u=s==null?void 0:s[o])==null?void 0:u.borderColor}`,borderRadius:e.sg.borders.borderRadius.borderRadiusSm,margin:x,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:s==null?void 0:s[o].icon}),r.jsxRuntimeExports.jsxs(r.Container,{width:"100%",flex:"1",height:"100%",children:[r.jsxRuntimeExports.jsx(r.Title$1,{children:t}),r.jsxRuntimeExports.jsx(r.Message,{children:c})]}),p&&r.jsxRuntimeExports.jsx(r.Container,{children:r.jsxRuntimeExports.jsx(r.Close_default,{color:e.sg.colors.neutralColors.colorNeutralCloudy,cursor:"pointer",onClick:g,height:"20px",width:"20px"})})]}):r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{})})},E=({label:n,labelRender:i,infoProps:o={},withInfo:t=!0,flex:c,width:x="100%",isRequired:a=!1})=>{const l={tooltipProps:{position:"top",...o==null?void 0:o.tooltipProps,size:"Small"}};return r.jsxRuntimeExports.jsxs(r.Container,{width:x,direction:"horizontal",gap:"4px",flex:c,children:[i??r.jsxRuntimeExports.jsxs(r.Label$1,{children:[n," ",a?r.jsxRuntimeExports.jsx(r.Required,{children:"*"}):null]}),t&&r.jsxRuntimeExports.jsx(r.Info,{...l})]})},R=({width:n="100%",flex:i,label:o="Obrigatório",margin:t="0 0 16px 0"})=>r.jsxRuntimeExports.jsx(r.Container,{width:n,flex:i,customStyles:{margin:t},children:r.jsxRuntimeExports.jsx(r.Label$2,{children:`* ${o}`})});exports.AlertInline=m;exports.LabelField=E;exports.RequiredLabelView=R;
|