@ttoss/ui 1.36.6 → 1.36.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.
package/dist/esm/index.js CHANGED
@@ -61,6 +61,12 @@ var Badge = ({
61
61
  sx: {
62
62
  display: "flex",
63
63
  alignItems: "center",
64
+ fontFamily: "caption",
65
+ fontWeight: "normal",
66
+ lineHeight: "base",
67
+ fontSize: "xs",
68
+ paddingX: "xs",
69
+ paddingY: "2xs",
64
70
  gap: "xs",
65
71
  ...sx
66
72
  },
@@ -166,6 +172,9 @@ var Input = /*#__PURE__*/React3.forwardRef(({
166
172
  }), /* @__PURE__ */jsx5(InputUI, {
167
173
  ref,
168
174
  sx: {
175
+ fontFamily: "body",
176
+ paddingY: "lg",
177
+ paddingX: "xl",
169
178
  ...sx,
170
179
  paddingLeft: leadingIcon ? "3xl" : void 0,
171
180
  paddingRight: trailingIcon ? "3xl" : void 0,
@@ -199,9 +208,16 @@ var Label = ({
199
208
  children,
200
209
  onTooltipClick,
201
210
  tooltip,
211
+ sx,
202
212
  ...props
203
213
  }) => {
204
214
  return /* @__PURE__ */jsxs5(LabelUi, {
215
+ sx: {
216
+ fontFamily: "caption",
217
+ alignItems: "center",
218
+ fontSize: "sm",
219
+ ...sx
220
+ },
205
221
  ...props,
206
222
  children: [children, tooltip && /* @__PURE__ */jsx6(Text, {
207
223
  sx: {
@@ -219,8 +235,8 @@ var Label = ({
219
235
  };
220
236
 
221
237
  // src/components/Link.tsx
238
+ import * as React4 from "react";
222
239
  import { Link as LinkUi } from "theme-ui";
223
- import React4 from "react";
224
240
  import { jsx as jsx7 } from "react/jsx-runtime";
225
241
  var Link = /*#__PURE__*/React4.forwardRef(({
226
242
  quiet,
@@ -247,6 +263,7 @@ import { Select as SelectUi } from "theme-ui";
247
263
  import { Fragment as Fragment2, jsx as jsx8, jsxs as jsxs6 } from "react/jsx-runtime";
248
264
  var Select = /*#__PURE__*/React5.forwardRef(({
249
265
  arrow,
266
+ sx,
250
267
  ...props
251
268
  }, ref) => {
252
269
  return /* @__PURE__ */jsx8(SelectUi, {
@@ -282,6 +299,13 @@ var Select = /*#__PURE__*/React5.forwardRef(({
282
299
  })
283
300
  })]
284
301
  }),
302
+ sx: {
303
+ fontFamily: "body",
304
+ width: "100%",
305
+ paddingY: "lg",
306
+ paddingX: "xl",
307
+ ...sx
308
+ },
285
309
  ref,
286
310
  ...props
287
311
  });
@@ -348,8 +372,8 @@ var InfiniteLinearProgress = () => {
348
372
  };
349
373
 
350
374
  // src/components/Textarea.tsx
375
+ import * as React8 from "react";
351
376
  import { Textarea as TextareaUI } from "theme-ui";
352
- import React8 from "react";
353
377
  import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
354
378
  var Textarea = /*#__PURE__*/React8.forwardRef(({
355
379
  trailingIcon,
@@ -368,6 +392,9 @@ var Textarea = /*#__PURE__*/React8.forwardRef(({
368
392
  children: [/* @__PURE__ */jsx11(TextareaUI, {
369
393
  ref,
370
394
  sx: {
395
+ fontFamily: "body",
396
+ paddingY: "lg",
397
+ paddingX: "xl",
371
398
  ...sx,
372
399
  paddingRight: trailingIcon ? "3xl" : void 0,
373
400
  margin: 0
@@ -395,6 +422,7 @@ import { Container } from "theme-ui";
395
422
  // src/components/HelpText.tsx
396
423
  import { jsx as jsx12 } from "react/jsx-runtime";
397
424
  var HelpText = ({
425
+ sx,
398
426
  disabled,
399
427
  negative,
400
428
  ...props
@@ -402,6 +430,11 @@ var HelpText = ({
402
430
  const variant = ["text.help", negative ? "negative" : void 0].filter(Boolean).join(".");
403
431
  return /* @__PURE__ */jsx12(Text, {
404
432
  variant,
433
+ sx: {
434
+ fontSize: "xs",
435
+ fontFamily: "caption",
436
+ ...sx
437
+ },
405
438
  "aria-disabled": disabled ? "true" : void 0,
406
439
  ...props
407
440
  });
@@ -413,6 +446,7 @@ import { Button as Button2 } from "theme-ui";
413
446
  import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
414
447
  var CloseButton = /*#__PURE__*/React9.forwardRef(({
415
448
  label,
449
+ sx,
416
450
  onlyText,
417
451
  ...props
418
452
  }, ref) => {
@@ -423,6 +457,17 @@ var CloseButton = /*#__PURE__*/React9.forwardRef(({
423
457
  variant: "buttons.closeButton",
424
458
  type: "button",
425
459
  "aria-label": label,
460
+ sx: {
461
+ fontFamily: "caption",
462
+ fontSize: "xs",
463
+ display: "inline-flex",
464
+ alignItems: "center",
465
+ cursor: "pointer",
466
+ gap: "sm",
467
+ padding: "sm",
468
+ width: "fit-content",
469
+ ...sx
470
+ },
426
471
  ...props,
427
472
  ref,
428
473
  children: [label, !onlyText && /* @__PURE__ */jsx13(Icon, {
@@ -467,6 +512,9 @@ var InputNumber = /*#__PURE__*/React10.forwardRef(({
467
512
  WebkitAppearance: "none",
468
513
  margin: 0
469
514
  },
515
+ fontFamily: "body",
516
+ paddingY: "lg",
517
+ paddingX: "xl",
470
518
  ...sx,
471
519
  paddingLeft: "2xl",
472
520
  paddingRight: "2xl",
package/dist/index.d.ts CHANGED
@@ -3,8 +3,8 @@ import { Theme, BadgeProps as BadgeProps$1, ButtonProps as ButtonProps$1, InputP
3
3
  export { BaseStyles, Box, BoxProps, Card, CardProps, Checkbox, CheckboxProps, Container, ContainerProps, Divider, DividerProps, Flex, FlexProps, Global, Grid, GridProps, Heading, HeadingProps, IconButtonProps, Image, ImageProps, Progress as LinearProgress, ProgressProps as LinearProgressProps, Paragraph, ParagraphProps, Radio, RadioProps, SelectProps, Slider, SliderProps, Spinner, SpinnerProps, SxProp, Text, TextProps, Theme } from 'theme-ui';
4
4
  export { useBreakpointIndex, useResponsiveValue } from '@theme-ui/match-media';
5
5
  export { Keyframes, keyframes } from '@emotion/react';
6
+ import * as react_jsx_runtime from 'react/jsx-runtime';
6
7
  import * as React from 'react';
7
- import React__default from 'react';
8
8
  import { IconifyIconProps, IconifyIconHTMLElement } from '@iconify-icon/react';
9
9
  import { IconifyIcon } from '@iconify/types';
10
10
 
@@ -16,7 +16,7 @@ type ThemeProviderProps = {
16
16
  */
17
17
  fonts?: string[];
18
18
  };
19
- declare const ThemeProvider: ({ children, theme, fonts, }: ThemeProviderProps) => JSX.Element;
19
+ declare const ThemeProvider: ({ children, theme, fonts, }: ThemeProviderProps) => react_jsx_runtime.JSX.Element;
20
20
 
21
21
  declare const useTheme: () => theme_ui.ThemeUIContextValue;
22
22
 
@@ -27,7 +27,7 @@ declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttribu
27
27
  type BadgeProps = BadgeProps$1 & {
28
28
  icon?: IconType;
29
29
  };
30
- declare const Badge: ({ icon, children, sx, ...props }: BadgeProps) => JSX.Element;
30
+ declare const Badge: ({ icon, children, sx, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
31
31
 
32
32
  type ButtonProps = ButtonProps$1 & {
33
33
  leftIcon?: IconType;
@@ -47,29 +47,29 @@ type LabelProps = LabelProps$1 & {
47
47
  tooltip?: boolean;
48
48
  onTooltipClick?: () => void;
49
49
  };
50
- declare const Label: ({ children, onTooltipClick, tooltip, ...props }: LabelProps) => JSX.Element;
50
+ declare const Label: ({ children, onTooltipClick, tooltip, sx, ...props }: LabelProps) => react_jsx_runtime.JSX.Element;
51
51
 
52
52
  type LinkProps = LinkProps$1 & {
53
53
  quiet?: boolean;
54
54
  };
55
- declare const Link: React__default.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React__default.RefAttributes<HTMLAnchorElement>>;
55
+ declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
56
56
 
57
57
  declare const Select: React.ForwardRefExoticComponent<Omit<SelectProps, "ref"> & React.RefAttributes<HTMLSelectElement>>;
58
58
 
59
59
  declare const IconButton: React.ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
60
60
 
61
- declare const InfiniteLinearProgress: () => JSX.Element;
61
+ declare const InfiniteLinearProgress: () => react_jsx_runtime.JSX.Element;
62
62
 
63
63
  interface TextareaProps extends TextareaProps$1 {
64
64
  trailingIcon?: IconType;
65
65
  }
66
- declare const Textarea: React__default.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React__default.RefAttributes<HTMLTextAreaElement>>;
66
+ declare const Textarea: React.ForwardRefExoticComponent<Omit<TextareaProps, "ref"> & React.RefAttributes<HTMLTextAreaElement>>;
67
67
 
68
68
  type HelpTextProps = Omit<TextProps, 'variant'> & {
69
69
  disabled?: boolean;
70
70
  negative?: boolean;
71
71
  };
72
- declare const HelpText: ({ disabled, negative, ...props }: HelpTextProps) => JSX.Element;
72
+ declare const HelpText: ({ sx, disabled, negative, ...props }: HelpTextProps) => react_jsx_runtime.JSX.Element;
73
73
 
74
74
  type CloseButtonProps = ButtonProps$1 & {
75
75
  label?: string;
package/dist/index.js CHANGED
@@ -71,7 +71,7 @@ __export(src_exports, {
71
71
  Text: () => import_theme_ui16.Text,
72
72
  Textarea: () => Textarea,
73
73
  ThemeProvider: () => ThemeProvider,
74
- keyframes: () => import_react5.keyframes,
74
+ keyframes: () => import_react3.keyframes,
75
75
  useBreakpointIndex: () => import_match_media.useBreakpointIndex,
76
76
  useResponsiveValue: () => import_match_media.useResponsiveValue,
77
77
  useTheme: () => useTheme
@@ -79,7 +79,7 @@ __export(src_exports, {
79
79
  module.exports = __toCommonJS(src_exports);
80
80
  var import_theme_ui28 = require("theme-ui");
81
81
  var import_match_media = require("@theme-ui/match-media");
82
- var import_react5 = require("@emotion/react");
82
+ var import_react3 = require("@emotion/react");
83
83
 
84
84
  // src/theme/ThemeProvider.tsx
85
85
  var import_Bruttal = require("@ttoss/theme/Bruttal");
@@ -137,6 +137,12 @@ var Badge = ({
137
137
  sx: {
138
138
  display: "flex",
139
139
  alignItems: "center",
140
+ fontFamily: "caption",
141
+ fontWeight: "normal",
142
+ lineHeight: "base",
143
+ fontSize: "xs",
144
+ paddingX: "xs",
145
+ paddingY: "2xs",
140
146
  gap: "xs",
141
147
  ...sx
142
148
  },
@@ -242,6 +248,9 @@ var Input = React3.forwardRef(({
242
248
  }), /* @__PURE__ */(0, import_jsx_runtime5.jsx)(import_theme_ui12.Input, {
243
249
  ref,
244
250
  sx: {
251
+ fontFamily: "body",
252
+ paddingY: "lg",
253
+ paddingX: "xl",
245
254
  ...sx,
246
255
  paddingLeft: leadingIcon ? "3xl" : void 0,
247
256
  paddingRight: trailingIcon ? "3xl" : void 0,
@@ -275,9 +284,16 @@ var Label = ({
275
284
  children,
276
285
  onTooltipClick,
277
286
  tooltip,
287
+ sx,
278
288
  ...props
279
289
  }) => {
280
290
  return /* @__PURE__ */(0, import_jsx_runtime6.jsxs)(import_theme_ui13.Label, {
291
+ sx: {
292
+ fontFamily: "caption",
293
+ alignItems: "center",
294
+ fontSize: "sm",
295
+ ...sx
296
+ },
281
297
  ...props,
282
298
  children: [children, tooltip && /* @__PURE__ */(0, import_jsx_runtime6.jsx)(import_theme_ui16.Text, {
283
299
  sx: {
@@ -295,10 +311,10 @@ var Label = ({
295
311
  };
296
312
 
297
313
  // src/components/Link.tsx
314
+ var React4 = __toESM(require("react"));
298
315
  var import_theme_ui14 = require("theme-ui");
299
- var import_react3 = __toESM(require("react"));
300
316
  var import_jsx_runtime7 = require("react/jsx-runtime");
301
- var Link = import_react3.default.forwardRef(({
317
+ var Link = React4.forwardRef(({
302
318
  quiet,
303
319
  className,
304
320
  ...props
@@ -323,6 +339,7 @@ var import_theme_ui17 = require("theme-ui");
323
339
  var import_jsx_runtime8 = require("react/jsx-runtime");
324
340
  var Select = React5.forwardRef(({
325
341
  arrow,
342
+ sx,
326
343
  ...props
327
344
  }, ref) => {
328
345
  return /* @__PURE__ */(0, import_jsx_runtime8.jsx)(import_theme_ui17.Select, {
@@ -358,6 +375,13 @@ var Select = React5.forwardRef(({
358
375
  })
359
376
  })]
360
377
  }),
378
+ sx: {
379
+ fontFamily: "body",
380
+ width: "100%",
381
+ paddingY: "lg",
382
+ paddingX: "xl",
383
+ ...sx
384
+ },
361
385
  ref,
362
386
  ...props
363
387
  });
@@ -424,10 +448,10 @@ var InfiniteLinearProgress = () => {
424
448
  };
425
449
 
426
450
  // src/components/Textarea.tsx
451
+ var React8 = __toESM(require("react"));
427
452
  var import_theme_ui23 = require("theme-ui");
428
- var import_react4 = __toESM(require("react"));
429
453
  var import_jsx_runtime11 = require("react/jsx-runtime");
430
- var Textarea = import_react4.default.forwardRef(({
454
+ var Textarea = React8.forwardRef(({
431
455
  trailingIcon,
432
456
  className,
433
457
  sx,
@@ -444,6 +468,9 @@ var Textarea = import_react4.default.forwardRef(({
444
468
  children: [/* @__PURE__ */(0, import_jsx_runtime11.jsx)(import_theme_ui23.Textarea, {
445
469
  ref,
446
470
  sx: {
471
+ fontFamily: "body",
472
+ paddingY: "lg",
473
+ paddingX: "xl",
447
474
  ...sx,
448
475
  paddingRight: trailingIcon ? "3xl" : void 0,
449
476
  margin: 0
@@ -471,6 +498,7 @@ var import_theme_ui24 = require("theme-ui");
471
498
  // src/components/HelpText.tsx
472
499
  var import_jsx_runtime12 = require("react/jsx-runtime");
473
500
  var HelpText = ({
501
+ sx,
474
502
  disabled,
475
503
  negative,
476
504
  ...props
@@ -478,6 +506,11 @@ var HelpText = ({
478
506
  const variant = ["text.help", negative ? "negative" : void 0].filter(Boolean).join(".");
479
507
  return /* @__PURE__ */(0, import_jsx_runtime12.jsx)(import_theme_ui16.Text, {
480
508
  variant,
509
+ sx: {
510
+ fontSize: "xs",
511
+ fontFamily: "caption",
512
+ ...sx
513
+ },
481
514
  "aria-disabled": disabled ? "true" : void 0,
482
515
  ...props
483
516
  });
@@ -489,6 +522,7 @@ var import_theme_ui25 = require("theme-ui");
489
522
  var import_jsx_runtime13 = require("react/jsx-runtime");
490
523
  var CloseButton = React9.forwardRef(({
491
524
  label,
525
+ sx,
492
526
  onlyText,
493
527
  ...props
494
528
  }, ref) => {
@@ -499,6 +533,17 @@ var CloseButton = React9.forwardRef(({
499
533
  variant: "buttons.closeButton",
500
534
  type: "button",
501
535
  "aria-label": label,
536
+ sx: {
537
+ fontFamily: "caption",
538
+ fontSize: "xs",
539
+ display: "inline-flex",
540
+ alignItems: "center",
541
+ cursor: "pointer",
542
+ gap: "sm",
543
+ padding: "sm",
544
+ width: "fit-content",
545
+ ...sx
546
+ },
502
547
  ...props,
503
548
  ref,
504
549
  children: [label, !onlyText && /* @__PURE__ */(0, import_jsx_runtime13.jsx)(Icon, {
@@ -543,6 +588,9 @@ var InputNumber = React10.forwardRef(({
543
588
  WebkitAppearance: "none",
544
589
  margin: 0
545
590
  },
591
+ fontFamily: "body",
592
+ paddingY: "lg",
593
+ paddingX: "xl",
546
594
  ...sx,
547
595
  paddingLeft: "2xl",
548
596
  paddingRight: "2xl",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/ui",
3
- "version": "1.36.6",
3
+ "version": "1.36.8",
4
4
  "description": "Primitive layout, typographic, and other components for styling applications.",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -19,7 +19,7 @@
19
19
  "@iconify-icon/react": "^1.0.7",
20
20
  "@theme-ui/match-media": "^0.15.7",
21
21
  "theme-ui": "^0.15.7",
22
- "@ttoss/theme": "^1.4.33"
22
+ "@ttoss/theme": "^1.4.35"
23
23
  },
24
24
  "peerDependencies": {
25
25
  "react": ">=16.8.0"
@@ -28,12 +28,12 @@
28
28
  "@iconify-icons/mdi-light": "^1.2.5",
29
29
  "@iconify/types": "^2.0.0",
30
30
  "@types/jest": "^29.5.1",
31
- "@types/react": "^18.2.5",
31
+ "@types/react": "^18.2.6",
32
32
  "jest": "^29.5.0",
33
33
  "react": "^18.2.0",
34
34
  "tsup": "^6.7.0",
35
35
  "@ttoss/config": "^1.30.0",
36
- "@ttoss/test-utils": "^1.23.0"
36
+ "@ttoss/test-utils": "^1.23.1"
37
37
  },
38
38
  "keywords": [
39
39
  "React",
@@ -12,6 +12,12 @@ export const Badge = ({ icon, children, sx, ...props }: BadgeProps) => {
12
12
  sx={{
13
13
  display: 'flex',
14
14
  alignItems: 'center',
15
+ fontFamily: 'caption',
16
+ fontWeight: 'normal',
17
+ lineHeight: 'base',
18
+ fontSize: 'xs',
19
+ paddingX: 'xs',
20
+ paddingY: '2xs',
15
21
  gap: 'xs',
16
22
  ...sx,
17
23
  }}
@@ -10,7 +10,7 @@ export type CloseButtonProps = ButtonProps & {
10
10
  export const CloseButton = React.forwardRef<
11
11
  HTMLButtonElement,
12
12
  CloseButtonProps
13
- >(({ label, onlyText, ...props }, ref) => {
13
+ >(({ label, sx, onlyText, ...props }, ref) => {
14
14
  if (onlyText && !label) {
15
15
  return null;
16
16
  }
@@ -20,6 +20,17 @@ export const CloseButton = React.forwardRef<
20
20
  variant="buttons.closeButton"
21
21
  type="button"
22
22
  aria-label={label}
23
+ sx={{
24
+ fontFamily: 'caption',
25
+ fontSize: 'xs',
26
+ display: 'inline-flex',
27
+ alignItems: 'center',
28
+ cursor: 'pointer',
29
+ gap: 'sm',
30
+ padding: 'sm',
31
+ width: 'fit-content',
32
+ ...sx,
33
+ }}
23
34
  {...props}
24
35
  ref={ref}
25
36
  >
@@ -5,7 +5,12 @@ export type HelpTextProps = Omit<TextProps, 'variant'> & {
5
5
  negative?: boolean;
6
6
  };
7
7
 
8
- export const HelpText = ({ disabled, negative, ...props }: HelpTextProps) => {
8
+ export const HelpText = ({
9
+ sx,
10
+ disabled,
11
+ negative,
12
+ ...props
13
+ }: HelpTextProps) => {
9
14
  const variant = ['text.help', negative ? 'negative' : undefined]
10
15
  .filter(Boolean)
11
16
  .join('.');
@@ -13,6 +18,11 @@ export const HelpText = ({ disabled, negative, ...props }: HelpTextProps) => {
13
18
  return (
14
19
  <Text
15
20
  variant={variant}
21
+ sx={{
22
+ fontSize: 'xs',
23
+ fontFamily: 'caption',
24
+ ...sx,
25
+ }}
16
26
  aria-disabled={disabled ? 'true' : undefined}
17
27
  {...props}
18
28
  />
@@ -44,6 +44,9 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
44
44
  <InputUI
45
45
  ref={ref}
46
46
  sx={{
47
+ fontFamily: 'body',
48
+ paddingY: 'lg',
49
+ paddingX: 'xl',
47
50
  ...sx,
48
51
  paddingLeft: leadingIcon ? '3xl' : undefined,
49
52
  paddingRight: trailingIcon ? '3xl' : undefined,
@@ -41,6 +41,9 @@ export const InputNumber = React.forwardRef<HTMLInputElement, InputNumberProps>(
41
41
  WebkitAppearance: 'none',
42
42
  margin: 0,
43
43
  },
44
+ fontFamily: 'body',
45
+ paddingY: 'lg',
46
+ paddingX: 'xl',
44
47
  ...sx,
45
48
  paddingLeft: '2xl',
46
49
  paddingRight: '2xl',
@@ -12,10 +12,19 @@ export const Label = ({
12
12
  children,
13
13
  onTooltipClick,
14
14
  tooltip,
15
+ sx,
15
16
  ...props
16
17
  }: LabelProps) => {
17
18
  return (
18
- <LabelUi {...props}>
19
+ <LabelUi
20
+ sx={{
21
+ fontFamily: 'caption',
22
+ alignItems: 'center',
23
+ fontSize: 'sm',
24
+ ...sx,
25
+ }}
26
+ {...props}
27
+ >
19
28
  {children}
20
29
 
21
30
  {tooltip && (
@@ -1,5 +1,5 @@
1
+ import * as React from 'react';
1
2
  import { type LinkProps as LinkPropsUi, Link as LinkUi } from 'theme-ui';
2
- import React from 'react';
3
3
 
4
4
  export type LinkProps = LinkPropsUi & {
5
5
  quiet?: boolean;
@@ -5,7 +5,7 @@ import { type SelectProps, Select as SelectUi } from 'theme-ui';
5
5
  export { SelectProps };
6
6
 
7
7
  export const Select = React.forwardRef<HTMLSelectElement, SelectProps>(
8
- ({ arrow, ...props }, ref) => {
8
+ ({ arrow, sx, ...props }, ref) => {
9
9
  return (
10
10
  <SelectUi
11
11
  // https://theme-ui.com/components/select#custom-arrow-icon
@@ -45,6 +45,13 @@ export const Select = React.forwardRef<HTMLSelectElement, SelectProps>(
45
45
  )}
46
46
  </>
47
47
  }
48
+ sx={{
49
+ fontFamily: 'body',
50
+ width: '100%',
51
+ paddingY: 'lg',
52
+ paddingX: 'xl',
53
+ ...sx,
54
+ }}
48
55
  ref={ref}
49
56
  {...props}
50
57
  />
@@ -1,9 +1,9 @@
1
+ import * as React from 'react';
1
2
  import { Flex, Icon, type IconType, Text } from '..';
2
3
  import {
3
4
  type TextareaProps as TextareaPropsUI,
4
5
  Textarea as TextareaUI,
5
6
  } from 'theme-ui';
6
- import React from 'react';
7
7
 
8
8
  export interface TextareaProps extends TextareaPropsUI {
9
9
  trailingIcon?: IconType;
@@ -14,11 +14,19 @@ export const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
14
14
  return (
15
15
  <Flex
16
16
  className={className}
17
- sx={{ ...sx, position: 'relative', padding: 0, border: 'none' }}
17
+ sx={{
18
+ ...sx,
19
+ position: 'relative',
20
+ padding: 0,
21
+ border: 'none',
22
+ }}
18
23
  >
19
24
  <TextareaUI
20
25
  ref={ref}
21
26
  sx={{
27
+ fontFamily: 'body',
28
+ paddingY: 'lg',
29
+ paddingX: 'xl',
22
30
  ...sx,
23
31
  paddingRight: trailingIcon ? '3xl' : undefined,
24
32
  margin: 0,