@ufal-lccv/gpsub-ds 0.1.6 → 0.1.8

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.
Files changed (40) hide show
  1. package/dist/RequiredLabel.view--zomsHqj.js +130 -0
  2. package/dist/RequiredLabel.view-bs4uu8t3.cjs +1 -0
  3. package/dist/{Table.view-CJAcj1d_.js → Table.view-B-hxaM0l.js} +541 -541
  4. package/dist/{Table.view-DrJfP2Na.cjs → Table.view-B9VoPu9A.cjs} +19 -25
  5. package/dist/Title.view-6pDDXp2W.cjs +1 -0
  6. package/dist/Title.view-DVRAw3Gj.js +55 -0
  7. package/dist/{Tooltip.view-DVB8eHlQ.js → Tooltip.view-CFhTAlxb.js} +16378 -16281
  8. package/dist/{Tooltip.view-DqslW6MW.cjs → Tooltip.view-De9mbx2q.cjs} +1009 -1012
  9. package/dist/components/atoms/LibraryCard/LibraryCard.view.d.ts +1 -1
  10. package/dist/components/atoms/Required/Required.styles.d.ts +1 -0
  11. package/dist/components/atoms/Required/Required.view.d.ts +1 -0
  12. package/dist/components/atoms/Required/index.d.ts +1 -0
  13. package/dist/components/atoms/index.cjs.js +1 -1
  14. package/dist/components/atoms/index.d.ts +1 -0
  15. package/dist/components/atoms/index.es.js +12 -11
  16. package/dist/components/index.cjs.js +1 -1
  17. package/dist/components/index.es.js +27 -26
  18. package/dist/components/molecules/AlertInline/AlertInline.view.d.ts +2 -1
  19. package/dist/components/molecules/Confirm/ConfirmButton.view.d.ts +3 -1
  20. package/dist/components/molecules/Input/Input.styles.d.ts +0 -1
  21. package/dist/components/molecules/LabelField/LabelField.styles.d.ts +0 -1
  22. package/dist/components/molecules/Modal/DefaultFooter/DefaultFooter.types.d.ts +1 -0
  23. package/dist/components/molecules/Modal/Modal.styles.d.ts +1 -0
  24. package/dist/components/molecules/Modal/showModal.d.ts +1 -1
  25. package/dist/components/molecules/Textarea/Textarea.view.d.ts +1 -0
  26. package/dist/components/molecules/index.cjs.js +1 -1
  27. package/dist/components/molecules/index.es.js +11 -11
  28. package/dist/components/organisms/Form/SelectField.view.d.ts +2 -1
  29. package/dist/components/organisms/Select/Select.styles.d.ts +0 -1
  30. package/dist/components/organisms/index.cjs.js +1 -1
  31. package/dist/components/organisms/index.es.js +2 -2
  32. package/dist/helpers/functions/multiplyRemValues.d.ts +1 -1
  33. package/dist/index.cjs.js +1 -1
  34. package/dist/index.es.js +42 -41
  35. package/dist/types/styleGuide/index.d.ts +174 -1
  36. package/package.json +1 -1
  37. package/dist/RequiredLabel.view-BKaMhPpg.cjs +0 -1
  38. package/dist/RequiredLabel.view-CN5tjtpP.js +0 -129
  39. package/dist/Title.view-BCEujosl.js +0 -53
  40. package/dist/Title.view-DLUml0ng.cjs +0 -1
@@ -0,0 +1,130 @@
1
+ import { q as o, G as j, o as r, H as F, u as f, b as c, J as m, W as I, K as E, N as S, O as w, P as R, e as A, I as L, Q as O } from "./Tooltip.view-CFhTAlxb.js";
2
+ import { useState as _ } from "react";
3
+ const W = ({
4
+ width: l = "100%",
5
+ height: a = "fit-content",
6
+ type: e,
7
+ variant: n = "small",
8
+ title: i,
9
+ message: t,
10
+ margin: d,
11
+ open: p = !0,
12
+ onClose: u,
13
+ canClose: g = !0
14
+ }) => {
15
+ var x, b;
16
+ const [h, k] = _(p), 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: "24px",
25
+ width: "24px"
26
+ }
27
+ )
28
+ },
29
+ success: {
30
+ backgroundColor: "#DAF9DB",
31
+ borderColor: r.colors.feedbackColors.colorFeedbackSuccess,
32
+ icon: /* @__PURE__ */ o.jsx(
33
+ F,
34
+ {
35
+ color: r.colors.feedbackColors.colorFeedbackSuccess,
36
+ height: "24px",
37
+ width: "24px"
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
+ j,
50
+ {
51
+ color: r.colors.feedbackColors.colorFeedbackError,
52
+ height: "24px",
53
+ width: "24px"
54
+ }
55
+ )
56
+ }
57
+ };
58
+ function C() {
59
+ k(!1), u == null || u();
60
+ }
61
+ return /* @__PURE__ */ o.jsx(o.Fragment, { children: h ? /* @__PURE__ */ o.jsxs(
62
+ c,
63
+ {
64
+ width: l,
65
+ height: a,
66
+ direction: "horizontal",
67
+ verticalAlign: i ? "top" : "center",
68
+ gap: r.spacings.spacingInline.spacingInlineAnt,
69
+ padding: n == "small" ? `${r.spacings.spacingStack.spacingStackXs} ${r.spacings.spacingInline.spacingInlineAnt}` : r.spacings.spacingInline.spacingInlineSm,
70
+ backgroundColor: (x = s == null ? void 0 : s[e]) == null ? void 0 : x.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(m, { children: /* @__PURE__ */ o.jsx(I, { width: "24px", height: "24px" }) }) : /* @__PURE__ */ o.jsx(o.Fragment, { children: s == null ? void 0 : s[e].icon }),
79
+ /* @__PURE__ */ o.jsxs(c, { width: "100%", flex: "1", height: "100%", children: [
80
+ /* @__PURE__ */ o.jsx(E, { children: i }),
81
+ /* @__PURE__ */ o.jsx(S, { children: t })
82
+ ] }),
83
+ g && /* @__PURE__ */ o.jsx(c, { children: /* @__PURE__ */ o.jsx(
84
+ w,
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
+ }, q = ({
97
+ label: l,
98
+ labelRender: a,
99
+ infoProps: e = {},
100
+ withInfo: n = !0,
101
+ flex: i,
102
+ width: t = "100%",
103
+ isRequired: d = !1
104
+ }) => {
105
+ const p = {
106
+ tooltipProps: {
107
+ position: "top",
108
+ ...e == null ? void 0 : e.tooltipProps,
109
+ size: "Small"
110
+ }
111
+ };
112
+ return /* @__PURE__ */ o.jsxs(c, { width: t, direction: "horizontal", gap: "4px", flex: i, children: [
113
+ a ?? /* @__PURE__ */ o.jsxs(R, { children: [
114
+ l,
115
+ " ",
116
+ d ? /* @__PURE__ */ o.jsx(A, {}) : null
117
+ ] }),
118
+ n && /* @__PURE__ */ o.jsx(L, { ...p })
119
+ ] });
120
+ }, z = ({
121
+ width: l = "100%",
122
+ flex: a,
123
+ label: e = "Obrigatório",
124
+ margin: n = "0 0 16px 0"
125
+ }) => /* @__PURE__ */ o.jsx(c, { width: l, flex: a, customStyles: { margin: n }, children: /* @__PURE__ */ o.jsx(O, { children: `* ${e}` }) });
126
+ export {
127
+ W as A,
128
+ q as L,
129
+ z as R
130
+ };
@@ -0,0 +1 @@
1
+ "use strict";const r=require("./Tooltip.view-De9mbx2q.cjs"),h=require("react"),m=({width:s="100%",height:n="fit-content",type:o,variant:t="small",title:i,message:l,margin:c,open:a=!0,onClose:x,canClose:p=!0})=>{var d,u;const[g,j]=h.useState(a),e={info:{backgroundColor:"#D5EBFD",borderColor:r.sg.colors.feedbackColors.colorFeedbackInfo,icon:r.jsxRuntimeExports.jsx(r.InfoFill_default,{color:r.sg.colors.feedbackColors.colorFeedbackInfo,height:"24px",width:"24px"})},success:{backgroundColor:"#DAF9DB",borderColor:r.sg.colors.feedbackColors.colorFeedbackSuccess,icon:r.jsxRuntimeExports.jsx(r.CheckCircleFill_default,{color:r.sg.colors.feedbackColors.colorFeedbackSuccess,height:"24px",width:"24px"})},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:"24px",width:"24px"})}};function b(){j(!1),x==null||x()}return r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{children:g?r.jsxRuntimeExports.jsxs(r.Container,{width:s,height:n,direction:"horizontal",verticalAlign:i?"top":"center",gap:r.sg.spacings.spacingInline.spacingInlineAnt,padding:t=="small"?`${r.sg.spacings.spacingStack.spacingStackXs} ${r.sg.spacings.spacingInline.spacingInlineAnt}`:r.sg.spacings.spacingInline.spacingInlineSm,backgroundColor:(d=e==null?void 0:e[o])==null?void 0:d.backgroundColor,customStyles:{border:`1px solid ${(u=e==null?void 0:e[o])==null?void 0:u.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:"24px",height:"24px"})}):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:i}),r.jsxRuntimeExports.jsx(r.Message,{children:l})]}),p&&r.jsxRuntimeExports.jsx(r.Container,{children:r.jsxRuntimeExports.jsx(r.Close_default,{color:r.sg.colors.neutralColors.colorNeutralCloudy,cursor:"pointer",onClick:b,height:"20px",width:"20px"})})]}):r.jsxRuntimeExports.jsx(r.jsxRuntimeExports.Fragment,{})})},E=({label:s,labelRender:n,infoProps:o={},withInfo:t=!0,flex:i,width:l="100%",isRequired:c=!1})=>{const a={tooltipProps:{position:"top",...o==null?void 0:o.tooltipProps,size:"Small"}};return r.jsxRuntimeExports.jsxs(r.Container,{width:l,direction:"horizontal",gap:"4px",flex:i,children:[n??r.jsxRuntimeExports.jsxs(r.Label$1,{children:[s," ",c?r.jsxRuntimeExports.jsx(r.Required,{}):null]}),t&&r.jsxRuntimeExports.jsx(r.Info,{...a})]})},R=({width:s="100%",flex:n,label:o="Obrigatório",margin:t="0 0 16px 0"})=>r.jsxRuntimeExports.jsx(r.Container,{width:s,flex:n,customStyles:{margin:t},children:r.jsxRuntimeExports.jsx(r.Label$2,{children:`* ${o}`})});exports.AlertInline=m;exports.LabelField=E;exports.RequiredLabelView=R;