@ufal-lccv/gpsub-ds 0.0.21 → 0.0.22
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-BxGOZl_G.cjs +1 -0
- package/dist/{RequiredLabel.view-vhY8Ifny.js → RequiredLabel.view-DXN5uPK2.js} +18 -17
- package/dist/{Table.view-DrGCSijo.js → Table.view-CaOutm0A.js} +16 -16
- package/dist/{Table.view-Cq1l_7IE.cjs → Table.view-qhca9qPp.cjs} +9 -10
- package/dist/{Title.view-Bw6K4U1v.cjs → Title.view-Bu6ZRsfK.cjs} +1 -1
- package/dist/{Title.view-lFI_ZPGv.js → Title.view-DIVNVZPb.js} +1 -1
- package/dist/Tooltip.view-CAXE23gx.cjs +1455 -0
- package/dist/{Tooltip.view-B2Qudmep.js → Tooltip.view-ZTmLiut5.js} +2333 -2175
- package/dist/components/atoms/LoadingBar/LoadingBar.styles.d.ts +1 -0
- package/dist/components/atoms/Tooltip/Tooltip.view.d.ts +4 -2
- 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 +37 -33
- package/dist/components/molecules/ActionButton/ActionButton.view.d.ts +1 -1
- package/dist/components/molecules/Alert/Alert.view.d.ts +1 -0
- package/dist/components/molecules/Alert/index.d.ts +1 -0
- package/dist/components/molecules/AlertInline/AlertInline.view.d.ts +1 -1
- package/dist/components/molecules/Confirm/ConfirmModal.view.d.ts +1 -1
- package/dist/components/molecules/Empty/Empty.types.d.ts +2 -1
- package/dist/components/molecules/Loading/Loading.view.d.ts +1 -1
- package/dist/components/molecules/Modal/DefaultFooter/DefaultFooter.types.d.ts +10 -0
- package/dist/components/molecules/Modal/DefaultFooter/DefaultFooter.view.d.ts +3 -0
- package/dist/components/molecules/Modal/DefaultFooter/index.d.ts +2 -0
- package/dist/components/molecules/Modal/Modal.view.d.ts +5 -1
- package/dist/components/molecules/MultiSelect/MultiSelect.view.d.ts +1 -0
- package/dist/components/molecules/MultiSelect/index.d.ts +1 -0
- package/dist/components/molecules/index.cjs.js +1 -1
- package/dist/components/molecules/index.d.ts +2 -0
- package/dist/components/molecules/index.es.js +19 -16
- package/dist/components/organisms/Autocomplete/Autocomplete.view.d.ts +1 -0
- package/dist/components/organisms/Autocomplete/index.d.ts +1 -0
- package/dist/components/organisms/index.cjs.js +1 -1
- package/dist/components/organisms/index.d.ts +1 -0
- package/dist/components/organisms/index.es.js +13 -11
- package/dist/hash-BtT4jVLO.js +25 -0
- package/dist/hash-CJrPvUOz.cjs +1 -0
- package/dist/helpers/functions/getLabelText.d.ts +2 -0
- package/dist/helpers/functions/index.d.ts +1 -0
- package/dist/helpers/index.cjs.js +1 -1
- package/dist/helpers/index.es.js +10 -18
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +45 -40
- package/dist/types/baseProps.d.ts +8 -0
- package/dist/types/icons.d.ts +1 -0
- package/dist/types/styleGuide/index.d.ts +174 -0
- package/dist/types/styleGuide/position.d.ts +1 -0
- package/package.json +3 -2
- package/dist/RequiredLabel.view-Dn02h8aL.cjs +0 -1
- package/dist/Tooltip.view-DGl4VmmK.cjs +0 -1456
|
@@ -3,6 +3,180 @@ import * as direction from './direction';
|
|
|
3
3
|
import * as icon from './icon';
|
|
4
4
|
import * as position from './position';
|
|
5
5
|
declare const _default: {
|
|
6
|
+
sg: Readonly<{
|
|
7
|
+
fonts: {
|
|
8
|
+
fontFamily: {
|
|
9
|
+
fontFamilyPrimary: string;
|
|
10
|
+
fontFamilySecondary: string;
|
|
11
|
+
fontFamilyAuxiliary: string;
|
|
12
|
+
};
|
|
13
|
+
fontWeight: {
|
|
14
|
+
fontWeightLight: number;
|
|
15
|
+
fontWeightRegular: number;
|
|
16
|
+
fontWeightSemiBold: number;
|
|
17
|
+
fontWeightBold: number;
|
|
18
|
+
};
|
|
19
|
+
fontSize: {
|
|
20
|
+
fontSizeBodySm: string;
|
|
21
|
+
fontSizeBodyMd: string;
|
|
22
|
+
fontSizeBodyLg: string;
|
|
23
|
+
fontSizeTitleSm: string;
|
|
24
|
+
fontSizeTitleMd: string;
|
|
25
|
+
fontSizeTitleLg: string;
|
|
26
|
+
fontSizeH3: string;
|
|
27
|
+
fontSizeH2: string;
|
|
28
|
+
fontSizeH1: string;
|
|
29
|
+
};
|
|
30
|
+
lineHeight: {
|
|
31
|
+
lineHeightSm: (fontSize: string) => string;
|
|
32
|
+
lineHeightMd: (fontSize: string) => string;
|
|
33
|
+
lineHeightLg: (fontSize: string) => string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
icons: {
|
|
37
|
+
iconSizeXl: string;
|
|
38
|
+
iconSizeLg: string;
|
|
39
|
+
iconSizeMd: string;
|
|
40
|
+
iconSizeAnt: string;
|
|
41
|
+
iconSizeSm: string;
|
|
42
|
+
iconSizeXs: string;
|
|
43
|
+
};
|
|
44
|
+
avatars: {
|
|
45
|
+
avatarSizeLg: string;
|
|
46
|
+
avatarSizeMd: string;
|
|
47
|
+
avatarSizeSm: string;
|
|
48
|
+
avatarSizeXs: string;
|
|
49
|
+
avatarSizeNano: string;
|
|
50
|
+
};
|
|
51
|
+
borders: {
|
|
52
|
+
borderRadius: {
|
|
53
|
+
borderRadiusNone: string;
|
|
54
|
+
borderExtraSmall: string;
|
|
55
|
+
borderRadiusSm: string;
|
|
56
|
+
borderRadiusMd: string;
|
|
57
|
+
borderRadiusLg: string;
|
|
58
|
+
borderRadiusPill: string;
|
|
59
|
+
borderRadiusXs: string;
|
|
60
|
+
};
|
|
61
|
+
borderWidth: {
|
|
62
|
+
borderWidthNone: string;
|
|
63
|
+
borderWidthThinner: string;
|
|
64
|
+
borderWidthThin: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
shadows: {
|
|
68
|
+
shadowLevelNear: string;
|
|
69
|
+
shadowLeveldistant: string;
|
|
70
|
+
shadowLevelAnt: string;
|
|
71
|
+
shadowLevelElevation: string;
|
|
72
|
+
};
|
|
73
|
+
spacings: {
|
|
74
|
+
spacingInset: {
|
|
75
|
+
spacingInsetNano: string;
|
|
76
|
+
spacingInsetXs: string;
|
|
77
|
+
spacingInsetSm: string;
|
|
78
|
+
spacingInsetMd: string;
|
|
79
|
+
spacingInsetLg: string;
|
|
80
|
+
};
|
|
81
|
+
spacingSquish: {
|
|
82
|
+
spacingSquishNano: string;
|
|
83
|
+
spacingSquishXs: string;
|
|
84
|
+
spacingSquishSm: string;
|
|
85
|
+
spacingSquishMd: string;
|
|
86
|
+
spacingSquishLg: string;
|
|
87
|
+
};
|
|
88
|
+
spacingInline: {
|
|
89
|
+
spacingInlineNano: string;
|
|
90
|
+
spacingInlineXs: string;
|
|
91
|
+
spacingInlineAnt: string;
|
|
92
|
+
spacingInlineSm: string;
|
|
93
|
+
spacingInlineMd: string;
|
|
94
|
+
spacingInlineLg: string;
|
|
95
|
+
spacingInlineXl: string;
|
|
96
|
+
spacingInlineGiant: string;
|
|
97
|
+
spacingInlineXGiant: string;
|
|
98
|
+
spacingInlineAwesome: string;
|
|
99
|
+
};
|
|
100
|
+
spacingStack: {
|
|
101
|
+
spacingStackNano: string;
|
|
102
|
+
spacingStackXs: string;
|
|
103
|
+
spacingStackAnt: string;
|
|
104
|
+
spacingStackSm: string;
|
|
105
|
+
spacingStackLowMd: string;
|
|
106
|
+
spacingStackMd: string;
|
|
107
|
+
spacingStackLg: string;
|
|
108
|
+
spacingStackXl: string;
|
|
109
|
+
spacingStackGiant: string;
|
|
110
|
+
spacingStackXGiant: string;
|
|
111
|
+
spacingStackAwesome: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
colors: {
|
|
115
|
+
brandColors: {
|
|
116
|
+
colorBrandPrimary: string;
|
|
117
|
+
colorBrandSecondary: string;
|
|
118
|
+
colorBrandSecDark: string;
|
|
119
|
+
colorBrandSeSoft: string;
|
|
120
|
+
colorBrandDark: string;
|
|
121
|
+
colorBrandSoft: string;
|
|
122
|
+
};
|
|
123
|
+
backgroundColors: {
|
|
124
|
+
colorBackgroundSolo: string;
|
|
125
|
+
colorBackgroundSky: string;
|
|
126
|
+
colorBackgroundGrass: string;
|
|
127
|
+
colorBackgroundCarpet: string;
|
|
128
|
+
colorBackgroundSnow: string;
|
|
129
|
+
};
|
|
130
|
+
neutralColors: {
|
|
131
|
+
colorNeutralBlack: string;
|
|
132
|
+
colorNeutralDarkest: string;
|
|
133
|
+
colorNeutralDark: string;
|
|
134
|
+
colorNeutralCloudy: string;
|
|
135
|
+
colorNeutralCleanest: string;
|
|
136
|
+
colorNeutralClean: string;
|
|
137
|
+
colorNeutralSoft: string;
|
|
138
|
+
colorNeutralLighest: string;
|
|
139
|
+
colorNeutralLight: string;
|
|
140
|
+
colorNeutralSnow: string;
|
|
141
|
+
};
|
|
142
|
+
feedbackColors: {
|
|
143
|
+
colorFeedbackError: string;
|
|
144
|
+
colorFeedbackSuccess: string;
|
|
145
|
+
colorFeedbackWarning: string;
|
|
146
|
+
colorFeedbackInfo: string;
|
|
147
|
+
colorFeedbackNeutral: string;
|
|
148
|
+
};
|
|
149
|
+
auxiliariesColors: {
|
|
150
|
+
colorAuxOneDark: string;
|
|
151
|
+
colorAuxTwoDark: string;
|
|
152
|
+
colorAuxThreeDark: string;
|
|
153
|
+
colorAuxFourDark: string;
|
|
154
|
+
colorAuxFiveDark: string;
|
|
155
|
+
colorAuxOneLight: string;
|
|
156
|
+
colorAuxTwoLight: string;
|
|
157
|
+
colorAuxThreeLight: string;
|
|
158
|
+
colorAuxFourLight: string;
|
|
159
|
+
colorAuxFiveLight: string;
|
|
160
|
+
};
|
|
161
|
+
petrobrasColors: {
|
|
162
|
+
colorPetrobrasVerdePetrobras: string;
|
|
163
|
+
colorPetrobrasAmareloPetrobras: string;
|
|
164
|
+
colorPetrobrasVerdeAgua: string;
|
|
165
|
+
colorPetrobrasVerdeClaro: string;
|
|
166
|
+
colorPetrobrasAmareloClaro: string;
|
|
167
|
+
colorPetrobrasLaranja: string;
|
|
168
|
+
colorPetrobrasAzulEscuro: string;
|
|
169
|
+
colorPetrobrasAzulClaro: string;
|
|
170
|
+
colorPetrobrasCinza: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
opacityLevels: {
|
|
174
|
+
dark: number;
|
|
175
|
+
clarifying: number;
|
|
176
|
+
clear: number;
|
|
177
|
+
light: number;
|
|
178
|
+
};
|
|
179
|
+
}>;
|
|
6
180
|
direction: typeof direction;
|
|
7
181
|
icon: typeof icon;
|
|
8
182
|
position: typeof position;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export type OrthogonalPositions = 'top' | 'bottom' | 'left' | 'right';
|
|
2
2
|
export type DiagonalPositions = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
3
|
+
export type ArrowPositions = 'start' | 'center' | 'end';
|
|
3
4
|
export type Position = OrthogonalPositions | DiagonalPositions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ufal-lccv/gpsub-ds",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Design system temporário do GP-SUB para auxiliar na futura migração para o DS Subweb 2.0",
|
|
6
6
|
"repository": {
|
|
@@ -70,7 +70,8 @@
|
|
|
70
70
|
"react": "^18.2.0",
|
|
71
71
|
"react-dom": "^18.2.0",
|
|
72
72
|
"react-hook-form": "7.55.0",
|
|
73
|
-
"sbwb-ds": "1.2.2"
|
|
73
|
+
"sbwb-ds": "1.2.2",
|
|
74
|
+
"sbwb-ds-latest": "npm:sbwb-ds@^3.18.0"
|
|
74
75
|
},
|
|
75
76
|
"dependencies": {
|
|
76
77
|
"debounce": "^1.2.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("./Tooltip.view-DGl4VmmK.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,{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;
|