sbwb-ds 2.2.1 → 2.2.2

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/sbwb-ds.js CHANGED
@@ -5594,7 +5594,7 @@ const y3e = X.div`
5594
5594
  `, _3e = X.input`
5595
5595
  ${j}
5596
5596
  font-family: ${y.fonts.fontFamily.fontFamilyPrimary};
5597
- font-size: ${({ size: e }) => e === "Small" ? y.fonts.fontSize.fontSizeBodyMd : y.fonts.fontSize.fontSizeBodyLg};
5597
+ font-size: ${({ size: e, variant: t }) => t === "table" ? e === "large" ? "12px" : "10px" : e === "Small" ? y.fonts.fontSize.fontSizeBodyMd : y.fonts.fontSize.fontSizeBodyLg};
5598
5598
  background-color: ${({ disabled: e }) => e ? y.colors.brandColors.colorBrandSeSoft : "transparent"};
5599
5599
  outline: none;
5600
5600
  border: none;
@@ -5603,7 +5603,7 @@ const y3e = X.div`
5603
5603
 
5604
5604
  &::placeholder {
5605
5605
  font-family: ${y.fonts.fontFamily.fontFamilyPrimary};
5606
- font-size: ${({ size: e }) => e === "Small" ? y.fonts.fontSize.fontSizeBodyMd : y.fonts.fontSize.fontSizeBodyLg};
5606
+ font-size: ${({ size: e, variant: t }) => t === "table" ? e === "large" ? "12px" : "10px" : e === "Small" ? y.fonts.fontSize.fontSizeBodyMd : y.fonts.fontSize.fontSizeBodyLg};
5607
5607
  color: ${({ error: e, variant: t }) => e && t === "table" ? y.colors.feedbackColors.colorFeedbackError : y.colors.neutralColors.colorNeutralCleanest};
5608
5608
  }
5609
5609
 
@@ -1216,7 +1216,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
1216
1216
  `,UG=X.input`
1217
1217
  ${j}
1218
1218
  font-family: ${y.fonts.fontFamily.fontFamilyPrimary};
1219
- font-size: ${({size:e})=>e==="Small"?y.fonts.fontSize.fontSizeBodyMd:y.fonts.fontSize.fontSizeBodyLg};
1219
+ font-size: ${({size:e,variant:t})=>t==="table"?e==="large"?"12px":"10px":e==="Small"?y.fonts.fontSize.fontSizeBodyMd:y.fonts.fontSize.fontSizeBodyLg};
1220
1220
  background-color: ${({disabled:e})=>e?y.colors.brandColors.colorBrandSeSoft:"transparent"};
1221
1221
  outline: none;
1222
1222
  border: none;
@@ -1225,7 +1225,7 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
1225
1225
 
1226
1226
  &::placeholder {
1227
1227
  font-family: ${y.fonts.fontFamily.fontFamilyPrimary};
1228
- font-size: ${({size:e})=>e==="Small"?y.fonts.fontSize.fontSizeBodyMd:y.fonts.fontSize.fontSizeBodyLg};
1228
+ font-size: ${({size:e,variant:t})=>t==="table"?e==="large"?"12px":"10px":e==="Small"?y.fonts.fontSize.fontSizeBodyMd:y.fonts.fontSize.fontSizeBodyLg};
1229
1229
  color: ${({error:e,variant:t})=>e&&t==="table"?y.colors.feedbackColors.colorFeedbackError:y.colors.neutralColors.colorNeutralCleanest};
1230
1230
  }
1231
1231
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbwb-ds",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "type": "module",
5
5
  "description": "Sistema de design para padronização dos processos visuais do portal SUBWEB",
6
6
  "main": "dist/sbwb-ds.js",
@@ -226,10 +226,15 @@ interface InputProps {
226
226
  export const Input = styled.input<InputProps>`
227
227
  ${resetStyles}
228
228
  font-family: ${sg.fonts.fontFamily.fontFamilyPrimary};
229
- font-size: ${({ size }) =>
230
- size === 'Small'
231
- ? sg.fonts.fontSize.fontSizeBodyMd
232
- : sg.fonts.fontSize.fontSizeBodyLg};
229
+ font-size: ${({ size, variant }) => {
230
+ if (variant === 'table') {
231
+ return size === 'large' ? '12px' : '10px';
232
+ } else {
233
+ return size === 'Small'
234
+ ? sg.fonts.fontSize.fontSizeBodyMd
235
+ : sg.fonts.fontSize.fontSizeBodyLg;
236
+ }
237
+ }};
233
238
  background-color: ${({ disabled }) =>
234
239
  disabled ? sg.colors.brandColors.colorBrandSeSoft : 'transparent'};
235
240
  outline: none;
@@ -239,10 +244,15 @@ export const Input = styled.input<InputProps>`
239
244
 
240
245
  &::placeholder {
241
246
  font-family: ${sg.fonts.fontFamily.fontFamilyPrimary};
242
- font-size: ${({ size }) =>
243
- size === 'Small'
244
- ? sg.fonts.fontSize.fontSizeBodyMd
245
- : sg.fonts.fontSize.fontSizeBodyLg};
247
+ font-size: ${({ size, variant }) => {
248
+ if (variant === 'table') {
249
+ return size === 'large' ? '12px' : '10px';
250
+ } else {
251
+ return size === 'Small'
252
+ ? sg.fonts.fontSize.fontSizeBodyMd
253
+ : sg.fonts.fontSize.fontSizeBodyLg;
254
+ }
255
+ }};
246
256
  color: ${({ error, variant }) => {
247
257
  if (error && variant === 'table') {
248
258
  return sg.colors.feedbackColors.colorFeedbackError;