@ttoss/ui 5.1.4 → 5.1.6

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
@@ -126,12 +126,30 @@ var Badge = ({
126
126
  import { Box } from "theme-ui";
127
127
 
128
128
  // src/components/Card.tsx
129
- import { Card } from "theme-ui";
129
+ import { Card as CardUi } from "theme-ui";
130
+ import { jsx as jsx4 } from "react/jsx-runtime";
131
+ var Card = props => {
132
+ return /* @__PURE__ */jsx4(CardUi, {
133
+ ...props,
134
+ sx: {
135
+ backgroundColor: "display.background.secondary.default",
136
+ border: "md",
137
+ borderColor: "display.border.muted.default",
138
+ borderRadius: "lg",
139
+ display: "flex",
140
+ flexDirection: "column",
141
+ alignItems: "center",
142
+ width: "fit-content",
143
+ boxShadow: "2px 4px 8px #E5E7EB",
144
+ ...props.sx
145
+ }
146
+ });
147
+ };
130
148
 
131
149
  // src/components/Checkbox.tsx
132
150
  import * as React2 from "react";
133
151
  import { Checkbox as CheckBoxUi } from "theme-ui";
134
- import { jsx as jsx4 } from "react/jsx-runtime";
152
+ import { jsx as jsx5 } from "react/jsx-runtime";
135
153
  var Checkbox = React2.forwardRef(({
136
154
  indeterminate = false,
137
155
  ...rest
@@ -146,13 +164,13 @@ var Checkbox = React2.forwardRef(({
146
164
  }
147
165
  }, [indeterminate]);
148
166
  if (indeterminate) {
149
- return /* @__PURE__ */jsx4("input", {
167
+ return /* @__PURE__ */jsx5("input", {
150
168
  type: "checkbox",
151
169
  ref: innerRef,
152
170
  ...rest
153
171
  });
154
172
  }
155
- return /* @__PURE__ */jsx4(CheckBoxUi, {
173
+ return /* @__PURE__ */jsx5(CheckBoxUi, {
156
174
  ref: innerRef,
157
175
  ...rest
158
176
  });
@@ -162,7 +180,7 @@ Checkbox.displayName = "Checkbox";
162
180
  // src/components/CloseButton.tsx
163
181
  import { Icon as Icon3 } from "@ttoss/react-icons";
164
182
  import * as React3 from "react";
165
- import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
183
+ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
166
184
  var CloseButton = React3.forwardRef(({
167
185
  label,
168
186
  sx,
@@ -194,7 +212,7 @@ var CloseButton = React3.forwardRef(({
194
212
  },
195
213
  ...props,
196
214
  ref,
197
- children: [label, !onlyText && /* @__PURE__ */jsx5(Icon3, {
215
+ children: [label, !onlyText && /* @__PURE__ */jsx6(Icon3, {
198
216
  icon: "close"
199
217
  })]
200
218
  });
@@ -204,9 +222,9 @@ CloseButton.displayName = "CloseButton";
204
222
  // src/components/Container.tsx
205
223
  import * as React4 from "react";
206
224
  import { Container as ContainerUi } from "theme-ui";
207
- import { jsx as jsx6 } from "react/jsx-runtime";
225
+ import { jsx as jsx7 } from "react/jsx-runtime";
208
226
  var Container = React4.forwardRef((props, ref) => {
209
- return /* @__PURE__ */jsx6(ContainerUi, {
227
+ return /* @__PURE__ */jsx7(ContainerUi, {
210
228
  ref,
211
229
  ...props
212
230
  });
@@ -226,7 +244,7 @@ import { Grid } from "theme-ui";
226
244
  import { Heading } from "theme-ui";
227
245
 
228
246
  // src/components/HelpText.tsx
229
- import { jsx as jsx7 } from "react/jsx-runtime";
247
+ import { jsx as jsx8 } from "react/jsx-runtime";
230
248
  var HelpText = ({
231
249
  sx,
232
250
  disabled,
@@ -234,7 +252,7 @@ var HelpText = ({
234
252
  ...props
235
253
  }) => {
236
254
  const variant = ["text.help", negative ? "negative" : void 0].filter(Boolean).join(".");
237
- return /* @__PURE__ */jsx7(Text, {
255
+ return /* @__PURE__ */jsx8(Text, {
238
256
  variant,
239
257
  sx: {
240
258
  fontSize: "sm",
@@ -250,9 +268,9 @@ var HelpText = ({
250
268
  // src/components/IconButton.tsx
251
269
  import * as React5 from "react";
252
270
  import { IconButton as IconButtonUi } from "theme-ui";
253
- import { jsx as jsx8 } from "react/jsx-runtime";
271
+ import { jsx as jsx9 } from "react/jsx-runtime";
254
272
  var IconButton = React5.forwardRef((props, ref) => {
255
- return /* @__PURE__ */jsx8(IconButtonUi, {
273
+ return /* @__PURE__ */jsx9(IconButtonUi, {
256
274
  type: "button",
257
275
  ...props,
258
276
  ref
@@ -270,7 +288,7 @@ import * as React6 from "react";
270
288
  import { Progress } from "theme-ui";
271
289
 
272
290
  // src/components/InfiniteLinearProgress.tsx
273
- import { jsx as jsx9 } from "react/jsx-runtime";
291
+ import { jsx as jsx10 } from "react/jsx-runtime";
274
292
  var MAX_PROGRESS = 100;
275
293
  var InfiniteLinearProgress = () => {
276
294
  const [progress, setProgress] = React6.useState(0);
@@ -295,7 +313,7 @@ var InfiniteLinearProgress = () => {
295
313
  clearInterval(timer);
296
314
  };
297
315
  }, []);
298
- return /* @__PURE__ */jsx9(Progress, {
316
+ return /* @__PURE__ */jsx10(Progress, {
299
317
  max: MAX_PROGRESS,
300
318
  value: progress,
301
319
  role: "progressbar"
@@ -306,7 +324,7 @@ var InfiniteLinearProgress = () => {
306
324
  import { Icon as Icon4 } from "@ttoss/react-icons";
307
325
  import * as React7 from "react";
308
326
  import { Input as InputUI } from "theme-ui";
309
- import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
327
+ import { jsx as jsx11, jsxs as jsxs4 } from "react/jsx-runtime";
310
328
  var Input = React7.forwardRef(({
311
329
  leadingIcon,
312
330
  trailingIcon: trailingIconProp,
@@ -325,7 +343,7 @@ var Input = React7.forwardRef(({
325
343
  padding: 0,
326
344
  border: "none"
327
345
  },
328
- children: [leadingIcon && /* @__PURE__ */jsx10(Text, {
346
+ children: [leadingIcon && /* @__PURE__ */jsx11(Text, {
329
347
  sx: {
330
348
  position: "absolute",
331
349
  alignSelf: "center",
@@ -334,11 +352,11 @@ var Input = React7.forwardRef(({
334
352
  },
335
353
  onClick: onLeadingIconClick,
336
354
  variant: "leading-icon",
337
- children: /* @__PURE__ */jsx10(Icon4, {
355
+ children: /* @__PURE__ */jsx11(Icon4, {
338
356
  inline: true,
339
357
  icon: leadingIcon
340
358
  })
341
- }), /* @__PURE__ */jsx10(InputUI, {
359
+ }), /* @__PURE__ */jsx11(InputUI, {
342
360
  ref,
343
361
  sx: {
344
362
  fontFamily: "body",
@@ -351,7 +369,7 @@ var Input = React7.forwardRef(({
351
369
  },
352
370
  className,
353
371
  ...inputProps
354
- }), trailingIcon && /* @__PURE__ */jsx10(Text, {
372
+ }), trailingIcon && /* @__PURE__ */jsx11(Text, {
355
373
  sx: {
356
374
  position: "absolute",
357
375
  right: "1rem",
@@ -360,7 +378,7 @@ var Input = React7.forwardRef(({
360
378
  },
361
379
  variant: "trailing-icon",
362
380
  onClick: onTrailingIconClick,
363
- children: /* @__PURE__ */jsx10(Icon4, {
381
+ children: /* @__PURE__ */jsx11(Icon4, {
364
382
  inline: true,
365
383
  icon: trailingIcon
366
384
  })
@@ -373,7 +391,7 @@ Input.displayName = "Input";
373
391
  import { Icon as Icon5 } from "@ttoss/react-icons";
374
392
  import * as React8 from "react";
375
393
  import { Input as Input2 } from "theme-ui";
376
- import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
394
+ import { jsx as jsx12, jsxs as jsxs5 } from "react/jsx-runtime";
377
395
  var InputNumber = React8.forwardRef(({
378
396
  sx,
379
397
  value,
@@ -444,7 +462,7 @@ var InputNumber = React8.forwardRef(({
444
462
  },
445
463
  ref,
446
464
  "aria-invalid": inputProps["aria-invalid"],
447
- children: [/* @__PURE__ */jsx11(Input2, {
465
+ children: [/* @__PURE__ */jsx12(Input2, {
448
466
  ref,
449
467
  variant: "forms.inputNumber",
450
468
  sx: sxProps,
@@ -454,7 +472,7 @@ var InputNumber = React8.forwardRef(({
454
472
  },
455
473
  value,
456
474
  ...inputProps
457
- }), /* @__PURE__ */jsx11(Text, {
475
+ }), /* @__PURE__ */jsx12(Text, {
458
476
  sx: {
459
477
  position: "absolute",
460
478
  alignSelf: "center",
@@ -463,10 +481,10 @@ var InputNumber = React8.forwardRef(({
463
481
  cursor: "pointer"
464
482
  },
465
483
  onClick: handleChangeUp,
466
- children: /* @__PURE__ */jsx11(Icon5, {
484
+ children: /* @__PURE__ */jsx12(Icon5, {
467
485
  icon: "picker-down"
468
486
  })
469
- }), infoIcon && /* @__PURE__ */jsx11(Text, {
487
+ }), infoIcon && /* @__PURE__ */jsx12(Text, {
470
488
  sx: {
471
489
  position: "absolute",
472
490
  alignSelf: "center",
@@ -475,10 +493,10 @@ var InputNumber = React8.forwardRef(({
475
493
  cursor: onClickInfoIcon ? "pointer" : "default"
476
494
  },
477
495
  onClick: onClickInfoIcon,
478
- children: /* @__PURE__ */jsx11(Icon5, {
496
+ children: /* @__PURE__ */jsx12(Icon5, {
479
497
  icon: "info"
480
498
  })
481
- }), /* @__PURE__ */jsx11(Text, {
499
+ }), /* @__PURE__ */jsx12(Text, {
482
500
  sx: {
483
501
  position: "absolute",
484
502
  alignSelf: "center",
@@ -487,7 +505,7 @@ var InputNumber = React8.forwardRef(({
487
505
  cursor: "pointer"
488
506
  },
489
507
  onClick: handleChangeDown,
490
- children: /* @__PURE__ */jsx11(Icon5, {
508
+ children: /* @__PURE__ */jsx12(Icon5, {
491
509
  icon: "picker-up"
492
510
  })
493
511
  })]
@@ -524,7 +542,7 @@ var useHidePassInput = (defaultValue = true) => {
524
542
  };
525
543
 
526
544
  // src/components/InputPassword/InputPassword.tsx
527
- import { jsx as jsx12 } from "react/jsx-runtime";
545
+ import { jsx as jsx13 } from "react/jsx-runtime";
528
546
  var InputPassword = React10.forwardRef(({
529
547
  showPasswordByDefault,
530
548
  ...inputPasswordProps
@@ -534,7 +552,7 @@ var InputPassword = React10.forwardRef(({
534
552
  icon,
535
553
  inputType
536
554
  } = useHidePassInput(!showPasswordByDefault);
537
- return /* @__PURE__ */jsx12(Input, {
555
+ return /* @__PURE__ */jsx13(Input, {
538
556
  ref,
539
557
  ...inputPasswordProps,
540
558
  trailingIcon: icon,
@@ -547,7 +565,7 @@ InputPassword.displayName = "InputPassword";
547
565
  // src/components/Label.tsx
548
566
  import { Icon as Icon6 } from "@ttoss/react-icons";
549
567
  import { Label as LabelUi } from "theme-ui";
550
- import { jsx as jsx13, jsxs as jsxs6 } from "react/jsx-runtime";
568
+ import { jsx as jsx14, jsxs as jsxs6 } from "react/jsx-runtime";
551
569
  var TOOLTIP_LABEL = "tooltip";
552
570
  var Label = ({
553
571
  children,
@@ -564,14 +582,14 @@ var Label = ({
564
582
  ...sx
565
583
  },
566
584
  ...props,
567
- children: [children, tooltip && /* @__PURE__ */jsx13(Text, {
585
+ children: [children, tooltip && /* @__PURE__ */jsx14(Text, {
568
586
  sx: {
569
587
  color: "currentcolor",
570
588
  cursor: onTooltipClick ? "pointer" : void 0
571
589
  },
572
590
  onClick: onTooltipClick,
573
591
  "aria-label": TOOLTIP_LABEL,
574
- children: /* @__PURE__ */jsx13(Icon6, {
592
+ children: /* @__PURE__ */jsx14(Icon6, {
575
593
  inline: true,
576
594
  icon: "info"
577
595
  })
@@ -582,13 +600,13 @@ var Label = ({
582
600
  // src/components/Link.tsx
583
601
  import * as React11 from "react";
584
602
  import { Link as LinkUi } from "theme-ui";
585
- import { jsx as jsx14 } from "react/jsx-runtime";
603
+ import { jsx as jsx15 } from "react/jsx-runtime";
586
604
  var Link = React11.forwardRef(({
587
605
  quiet,
588
606
  className,
589
607
  ...props
590
608
  }, ref) => {
591
- return /* @__PURE__ */jsx14(LinkUi, {
609
+ return /* @__PURE__ */jsx15(LinkUi, {
592
610
  className: `${quiet ? "quiet" : ""} ${className ?? ""}`,
593
611
  ...props,
594
612
  ref
@@ -606,7 +624,7 @@ import { Radio } from "theme-ui";
606
624
  import { Icon as Icon7 } from "@ttoss/react-icons";
607
625
  import * as React12 from "react";
608
626
  import ReactSelect, { components } from "react-select";
609
- import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
627
+ import { jsx as jsx16, jsxs as jsxs7 } from "react/jsx-runtime";
610
628
  var Control = props => {
611
629
  const isDisabled = props.selectProps.isDisabled;
612
630
  const hasError = props.selectProps["aria-invalid"] === "true";
@@ -625,7 +643,7 @@ var Control = props => {
625
643
  }
626
644
  return "display.background.secondary.default";
627
645
  })();
628
- return /* @__PURE__ */jsx15(Box, {
646
+ return /* @__PURE__ */jsx16(Box, {
629
647
  sx: {
630
648
  ".react-select__control": {
631
649
  borderColor,
@@ -634,7 +652,7 @@ var Control = props => {
634
652
  paddingY: "2"
635
653
  }
636
654
  },
637
- children: /* @__PURE__ */jsx15(components.Control, {
655
+ children: /* @__PURE__ */jsx16(components.Control, {
638
656
  ...props
639
657
  })
640
658
  });
@@ -647,7 +665,7 @@ var DropdownIndicator = props => {
647
665
  }
648
666
  return "text";
649
667
  })();
650
- return /* @__PURE__ */jsx15(Text, {
668
+ return /* @__PURE__ */jsx16(Text, {
651
669
  sx: {
652
670
  fontSize: "md",
653
671
  color,
@@ -655,7 +673,7 @@ var DropdownIndicator = props => {
655
673
  display: "flex",
656
674
  alignItems: "center"
657
675
  },
658
- children: /* @__PURE__ */jsx15(Icon7, {
676
+ children: /* @__PURE__ */jsx16(Icon7, {
659
677
  icon: "picker-down"
660
678
  })
661
679
  });
@@ -663,7 +681,7 @@ var DropdownIndicator = props => {
663
681
  var IndicatorsContainer = ({
664
682
  children
665
683
  }) => {
666
- return /* @__PURE__ */jsx15(Box, {
684
+ return /* @__PURE__ */jsx16(Box, {
667
685
  sx: {
668
686
  marginLeft: "4",
669
687
  border: "none"
@@ -674,7 +692,7 @@ var IndicatorsContainer = ({
674
692
  var Placeholder = ({
675
693
  children
676
694
  }) => {
677
- return /* @__PURE__ */jsx15(Text, {
695
+ return /* @__PURE__ */jsx16(Text, {
678
696
  sx: {
679
697
  color: "onMuted",
680
698
  alignSelf: "center"
@@ -693,10 +711,10 @@ var SelectContainer = ({
693
711
  return (
694
712
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
695
713
  /* @__PURE__ */
696
- jsx15(Box, {
714
+ jsx16(Box, {
697
715
  sx,
698
716
  css: css2,
699
- children: /* @__PURE__ */jsx15(components.SelectContainer, {
717
+ children: /* @__PURE__ */jsx16(components.SelectContainer, {
700
718
  ...props,
701
719
  children
702
720
  })
@@ -731,23 +749,23 @@ var ValueContainer = ({
731
749
  gap: "4",
732
750
  flex: 1
733
751
  },
734
- children: [finalLeadingIcon && /* @__PURE__ */jsx15(Text, {
752
+ children: [finalLeadingIcon && /* @__PURE__ */jsx16(Text, {
735
753
  sx: {
736
754
  alignSelf: "center",
737
755
  pointerEvents: "none",
738
756
  lineHeight: 0,
739
757
  fontSize: "md"
740
758
  },
741
- children: /* @__PURE__ */jsx15(Icon7, {
759
+ children: /* @__PURE__ */jsx16(Icon7, {
742
760
  icon: finalLeadingIcon
743
761
  })
744
- }), /* @__PURE__ */jsx15(Flex, {
762
+ }), /* @__PURE__ */jsx16(Flex, {
745
763
  sx: {
746
764
  flex: 1,
747
765
  alignItems: "center"
748
766
  },
749
767
  children
750
- }), (trailingIcon || hasError) && /* @__PURE__ */jsx15(Text, {
768
+ }), (trailingIcon || hasError) && /* @__PURE__ */jsx16(Text, {
751
769
  className: hasError ? "error-icon" : "",
752
770
  sx: {
753
771
  alignSelf: "center",
@@ -756,7 +774,7 @@ var ValueContainer = ({
756
774
  fontSize: "md",
757
775
  color: trailingIconColor
758
776
  },
759
- children: /* @__PURE__ */jsx15(Icon7, {
777
+ children: /* @__PURE__ */jsx16(Icon7, {
760
778
  icon: hasError ? "warning-alt" : trailingIcon
761
779
  })
762
780
  })]
@@ -771,7 +789,7 @@ var Select = React12.forwardRef(({
771
789
  }
772
790
  return false;
773
791
  });
774
- return /* @__PURE__ */jsx15(ReactSelect, {
792
+ return /* @__PURE__ */jsx16(ReactSelect, {
775
793
  ref,
776
794
  components: {
777
795
  Control,
@@ -807,9 +825,9 @@ import { Slider } from "theme-ui";
807
825
  import { Spinner } from "theme-ui";
808
826
 
809
827
  // src/components/Stack.tsx
810
- import { jsx as jsx16 } from "react/jsx-runtime";
828
+ import { jsx as jsx17 } from "react/jsx-runtime";
811
829
  var Stack = props => {
812
- return /* @__PURE__ */jsx16(Flex, {
830
+ return /* @__PURE__ */jsx17(Flex, {
813
831
  ...props,
814
832
  sx: {
815
833
  flexDirection: "column",
@@ -821,9 +839,9 @@ var Stack = props => {
821
839
 
822
840
  // src/components/Switch.tsx
823
841
  import { Switch as SwitchUi } from "theme-ui";
824
- import { jsx as jsx17 } from "react/jsx-runtime";
842
+ import { jsx as jsx18 } from "react/jsx-runtime";
825
843
  var Switch = props => {
826
- return /* @__PURE__ */jsx17(SwitchUi, {
844
+ return /* @__PURE__ */jsx18(SwitchUi, {
827
845
  ...props,
828
846
  role: "switch",
829
847
  "aria-checked": props.checked || false,
@@ -851,7 +869,7 @@ var Switch = props => {
851
869
  import { Icon as Icon8 } from "@ttoss/react-icons";
852
870
  import * as React13 from "react";
853
871
  import { Textarea as TextareaUI } from "theme-ui";
854
- import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
872
+ import { jsx as jsx19, jsxs as jsxs8 } from "react/jsx-runtime";
855
873
  var Textarea = React13.forwardRef(({
856
874
  trailingIcon,
857
875
  className,
@@ -866,7 +884,7 @@ var Textarea = React13.forwardRef(({
866
884
  padding: 0,
867
885
  border: "none"
868
886
  },
869
- children: [/* @__PURE__ */jsx18(TextareaUI, {
887
+ children: [/* @__PURE__ */jsx19(TextareaUI, {
870
888
  ref,
871
889
  sx: {
872
890
  fontFamily: "body",
@@ -878,13 +896,13 @@ var Textarea = React13.forwardRef(({
878
896
  },
879
897
  className,
880
898
  ...textareaProps
881
- }), trailingIcon && /* @__PURE__ */jsx18(Text, {
899
+ }), trailingIcon && /* @__PURE__ */jsx19(Text, {
882
900
  sx: {
883
901
  position: "absolute",
884
902
  right: "1.25rem",
885
903
  top: "0.75rem"
886
904
  },
887
- children: /* @__PURE__ */jsx18(Icon8, {
905
+ children: /* @__PURE__ */jsx19(Icon8, {
888
906
  inline: true,
889
907
  icon: trailingIcon
890
908
  })
@@ -897,16 +915,16 @@ Textarea.displayName = "Textarea";
897
915
  import { BruttalFonts, BruttalTheme } from "@ttoss/theme/Bruttal";
898
916
  import { Global, css } from "@emotion/react";
899
917
  import { ThemeUIProvider } from "theme-ui";
900
- import { Fragment, jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
918
+ import { Fragment, jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
901
919
  var ThemeProvider = ({
902
920
  children,
903
921
  theme = BruttalTheme,
904
922
  fonts = BruttalFonts
905
923
  }) => {
906
- return /* @__PURE__ */jsx19(Fragment, {
924
+ return /* @__PURE__ */jsx20(Fragment, {
907
925
  children: /* @__PURE__ */jsxs9(ThemeUIProvider, {
908
926
  theme,
909
- children: [/* @__PURE__ */jsx19(Global, {
927
+ children: [/* @__PURE__ */jsx20(Global, {
910
928
  styles: css`
911
929
  ${fonts.map(url => {
912
930
  return `@import url('${url}');`;
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { IconType } from '@ttoss/react-icons';
3
3
  import * as React from 'react';
4
4
  import * as theme_ui from 'theme-ui';
5
- import { ButtonProps as ButtonProps$1, BadgeProps as BadgeProps$1, CheckboxProps as CheckboxProps$1, TextProps, IconButtonProps, InputProps as InputProps$1, LabelProps as LabelProps$1, LinkProps as LinkProps$1, SxProp, FlexProps, SwitchProps, TextareaProps as TextareaProps$1, Theme } from 'theme-ui';
6
- export { BaseStyles, Box, BoxProps, Card, CardProps, ContainerProps, Divider, DividerProps, Flex, FlexProps, Global, Grid, GridProps, Heading, HeadingProps, IconButtonProps, Image, ImageProps, Progress as LinearProgress, ProgressProps as LinearProgressProps, Paragraph, ParagraphProps, Radio, RadioProps, Slider, SliderProps, Spinner, SpinnerProps, SwitchProps, SxProp, Text, TextProps, Theme, ThemeUIStyleObject } from 'theme-ui';
5
+ import { ButtonProps as ButtonProps$1, BadgeProps as BadgeProps$1, CardProps, CheckboxProps as CheckboxProps$1, TextProps, IconButtonProps, InputProps as InputProps$1, LabelProps as LabelProps$1, LinkProps as LinkProps$1, SxProp, FlexProps, SwitchProps, TextareaProps as TextareaProps$1, Theme } from 'theme-ui';
6
+ export { BaseStyles, Box, BoxProps, CardProps, ContainerProps, Divider, DividerProps, Flex, FlexProps, Global, Grid, GridProps, Heading, HeadingProps, IconButtonProps, Image, ImageProps, Progress as LinearProgress, ProgressProps as LinearProgressProps, Paragraph, ParagraphProps, Radio, RadioProps, Slider, SliderProps, Spinner, SpinnerProps, SwitchProps, SxProp, Text, TextProps, Theme, ThemeUIStyleObject } from 'theme-ui';
7
7
  import { Props } from 'react-select';
8
8
  export { Keyframes, keyframes } from '@emotion/react';
9
9
  export { useBreakpointIndex, useResponsiveValue } from '@theme-ui/match-media';
@@ -28,6 +28,8 @@ type BadgeProps = BadgeProps$1 & {
28
28
  };
29
29
  declare const Badge: ({ icon, children, sx, chip, onDelete, ...props }: BadgeProps) => react_jsx_runtime.JSX.Element;
30
30
 
31
+ declare const Card: (props: CardProps) => react_jsx_runtime.JSX.Element;
32
+
31
33
  interface CheckboxProps extends CheckboxProps$1 {
32
34
  indeterminate?: boolean;
33
35
  }
@@ -142,4 +144,4 @@ declare const ThemeProvider: ({ children, theme, fonts, }: ThemeProviderProps) =
142
144
 
143
145
  declare const useTheme: () => theme_ui.ThemeUIContextValue;
144
146
 
145
- export { ActionButton, type ActionButtonProps, Badge, type BadgeProps, Button, type ButtonProps, Checkbox, type CheckboxProps, CloseButton, type CloseButtonProps, Container, HelpText, type HelpTextProps, IconButton, InfiniteLinearProgress, Input, InputNumber, type InputNumberProps, InputPassword, type InputPasswordProps, type InputProps, Label, type LabelProps, Link, type LinkProps, Select, type SelectOption, type SelectOptions, type SelectProps, Stack, type StackProps, Switch, Textarea, type TextareaProps, ThemeProvider, type ThemeProviderProps, useTheme };
147
+ export { ActionButton, type ActionButtonProps, Badge, type BadgeProps, Button, type ButtonProps, Card, Checkbox, type CheckboxProps, CloseButton, type CloseButtonProps, Container, HelpText, type HelpTextProps, IconButton, InfiniteLinearProgress, Input, InputNumber, type InputNumberProps, InputPassword, type InputPasswordProps, type InputProps, Label, type LabelProps, Link, type LinkProps, Select, type SelectOption, type SelectOptions, type SelectProps, Stack, type StackProps, Switch, Textarea, type TextareaProps, ThemeProvider, type ThemeProviderProps, useTheme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/ui",
3
- "version": "5.1.4",
3
+ "version": "5.1.6",
4
4
  "description": "Primitive layout, typographic, and other components for styling applications.",
5
5
  "license": "MIT",
6
6
  "author": "ttoss",
@@ -27,7 +27,7 @@
27
27
  "@theme-ui/match-media": "^0.17.1",
28
28
  "react-select": "^5.9.0",
29
29
  "theme-ui": "^0.17.1",
30
- "@ttoss/theme": "^2.1.0"
30
+ "@ttoss/theme": "^2.1.1"
31
31
  },
32
32
  "peerDependencies": {
33
33
  "@emotion/react": "^11",