@ufal-lccv/gpsub-ds 0.1.5 → 0.1.7
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/RequiredLabel.view-ByC3GxjA.cjs +1 -0
- package/dist/{RequiredLabel.view-BinSwLE3.js → RequiredLabel.view-C7kko1RO.js} +16 -17
- package/dist/{Table.view-DOdTOVkU.js → Table.view-C1FtT55K.js} +10 -4
- package/dist/Table.view-JOmOs3yA.cjs +596 -0
- package/dist/Title.view-BViiOlLC.cjs +1 -0
- package/dist/Title.view-DbJMzCfa.js +55 -0
- package/dist/{Tooltip.view-BPNudlxk.cjs → Tooltip.view-DyXH42TD.cjs} +2043 -2043
- package/dist/{Tooltip.view-CH0ns5c-.js → Tooltip.view-a2lBpUDy.js} +22358 -22334
- package/dist/components/atoms/LibraryCard/LibraryCard.view.d.ts +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 +4 -4
- package/dist/components/molecules/index.cjs.js +1 -1
- package/dist/components/molecules/index.es.js +2 -2
- package/dist/components/organisms/index.cjs.js +1 -1
- package/dist/components/organisms/index.es.js +2 -2
- package/dist/helpers/index.cjs.js +1 -1
- package/dist/helpers/index.es.js +1 -1
- package/dist/{multiplyRemValues-B_PFYi3M.js → index-BU7Rzx2_.js} +15 -15
- package/dist/{multiplyRemValues-BsUvyKS7.cjs → index-mEVOkuDx.cjs} +3 -3
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +5 -5
- package/package.json +1 -1
- package/dist/RequiredLabel.view-BnLrXXhJ.cjs +0 -1
- package/dist/Table.view-CyX2rsVe.cjs +0 -596
- package/dist/Title.view-DFFmRRG3.js +0 -54
- package/dist/Title.view-DwCd3Jb1.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const r=require("./Tooltip.view-DyXH42TD.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
|
|
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-a2lBpUDy.js";
|
|
2
2
|
import { useState as O } from "react";
|
|
3
|
-
|
|
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:
|
|
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),
|
|
58
|
+
g(!1), n == null || n();
|
|
60
59
|
}
|
|
61
60
|
return /* @__PURE__ */ o.jsx(o.Fragment, { children: p ? /* @__PURE__ */ o.jsxs(
|
|
62
|
-
|
|
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(
|
|
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(
|
|
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
|
|
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(
|
|
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, { ...
|
|
117
|
+
l && /* @__PURE__ */ o.jsx(D, { ...n })
|
|
119
118
|
] });
|
|
120
|
-
},
|
|
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(
|
|
124
|
+
}) => /* @__PURE__ */ o.jsx(i, { width: c, flex: a, customStyles: { margin: l }, children: /* @__PURE__ */ o.jsx(L, { children: `* ${e}` }) });
|
|
126
125
|
export {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
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-
|
|
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-a2lBpUDy.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 {
|
|
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,
|
|
@@ -579,6 +579,8 @@ const zo = ({
|
|
|
579
579
|
{
|
|
580
580
|
isOptionSelected: y(r),
|
|
581
581
|
highlightedIndex: S === T,
|
|
582
|
+
id: `option-${r.value}`,
|
|
583
|
+
"data-cy": `option-${r.value}`,
|
|
582
584
|
onClick: (X) => {
|
|
583
585
|
X.stopPropagation(), r.disabled || (B ? ke({
|
|
584
586
|
id: "select-option",
|
|
@@ -1018,6 +1020,7 @@ const Ke = x.p`
|
|
|
1018
1020
|
disabled: h,
|
|
1019
1021
|
helpText: p,
|
|
1020
1022
|
variant: w,
|
|
1023
|
+
"data-cy": `select-${d}`,
|
|
1021
1024
|
children: [
|
|
1022
1025
|
/* @__PURE__ */ n.jsxs(qe, { children: [
|
|
1023
1026
|
G(H) ? /* @__PURE__ */ n.jsx(ce, { size: s, variant: w, isDisplayText: !0, children: /* @__PURE__ */ n.jsx("p", { title: e == null ? void 0 : e.label, ...B, children: H }) }) : /* @__PURE__ */ n.jsxs(ce, { size: s, variant: w, children: [
|
|
@@ -1036,7 +1039,9 @@ const Ke = x.p`
|
|
|
1036
1039
|
width: v.length,
|
|
1037
1040
|
size: s,
|
|
1038
1041
|
disabled: h,
|
|
1039
|
-
variant: w
|
|
1042
|
+
variant: w,
|
|
1043
|
+
id: `select-input-${d}`,
|
|
1044
|
+
"data-cy": `select-input-${d}`
|
|
1040
1045
|
}
|
|
1041
1046
|
)
|
|
1042
1047
|
] }),
|
|
@@ -1252,6 +1257,7 @@ const ro = x.div`
|
|
|
1252
1257
|
isLoading: d,
|
|
1253
1258
|
onClick: () => !d && j(!$),
|
|
1254
1259
|
id: `button-component-${e}`,
|
|
1260
|
+
"data-cy": `button-component-${e}`,
|
|
1255
1261
|
children: [
|
|
1256
1262
|
d && /* @__PURE__ */ n.jsx(ro, { size: a, disabled: i, variant: t, children: /* @__PURE__ */ n.jsx(
|
|
1257
1263
|
Q,
|