@ttoss/ui 1.32.7 → 1.33.0

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/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ## Installation
6
6
 
7
7
  ```shell
8
- yarn add @ttoss/ui
8
+ pnpm add @ttoss/ui
9
9
  ```
10
10
 
11
11
  ## Quick start
@@ -62,10 +62,33 @@ export const Component = () => {
62
62
 
63
63
  :::note Note
64
64
 
65
- You don't need to use the custom /\*\* @jsxImportSource theme-ui \*/ pragma if you use the `sx` prop directly on the components of the library.
65
+ You don't need to use the custom `/** @jsxImportSource theme-ui */` pragma if you use the `sx` prop directly on the components of the library.
66
66
 
67
67
  :::
68
68
 
69
69
  ## Components
70
70
 
71
71
  You can check all the components of the library `@ttoss/ui` on the [Storybook](https://storybook.ttoss.dev/?path=/story/ui).
72
+
73
+ ### Global
74
+
75
+ Wrapper around the Emotion Global component, made Theme UI theme-aware.
76
+
77
+ ```tsx
78
+ import { Global } from '@ttoss/ui';
79
+
80
+ export const Provider = (props) => {
81
+ return (
82
+ <Global
83
+ styles={{
84
+ button: {
85
+ m: 0,
86
+ bg: 'primary',
87
+ color: 'background',
88
+ border: 0,
89
+ },
90
+ }}
91
+ />
92
+ );
93
+ };
94
+ ```
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /** Powered by @ttoss/config. https://ttoss.dev/docs/modules/packages/config/ */
2
2
 
3
3
  // src/index.ts
4
- import { BaseStyles } from "theme-ui";
4
+ import { BaseStyles, Global as Global2 } from "theme-ui";
5
5
  import { useResponsiveValue, useBreakpointIndex } from "@theme-ui/match-media";
6
6
 
7
7
  // src/theme/ThemeProvider.tsx
@@ -563,4 +563,4 @@ var Stack = /*#__PURE__*/React12.forwardRef((props, ref) => {
563
563
  });
564
564
  });
565
565
  Stack.displayName = "Stack";
566
- export { Badge, BaseStyles, Box, Button, Card, Checkbox, CloseButton, Container, Divider, Flex, Grid, Heading, HelpText, Icon, IconButton, Image, InfiniteLinearProgress, Input, InputNumber, Label, Progress as LinearProgress, Link, Radio, Select, Slider, Spinner, Stack, Text, Textarea, ThemeProvider, useBreakpointIndex, useResponsiveValue, useTheme };
566
+ export { Badge, BaseStyles, Box, Button, Card, Checkbox, CloseButton, Container, Divider, Flex, Global2 as Global, Grid, Heading, HelpText, Icon, IconButton, Image, InfiniteLinearProgress, Input, InputNumber, Label, Progress as LinearProgress, Link, Radio, Select, Slider, Spinner, Stack, Text, Textarea, ThemeProvider, useBreakpointIndex, useResponsiveValue, useTheme };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as theme_ui from 'theme-ui';
2
2
  import { Theme, BadgeProps as BadgeProps$1, ButtonProps as ButtonProps$1, InputProps as InputProps$1, LabelProps as LabelProps$1, LinkProps as LinkProps$1, SelectProps, IconButtonProps, TextareaProps as TextareaProps$1, TextProps, FlexProps } from 'theme-ui';
3
- export { BaseStyles, Box, BoxProps, Card, CardProps, Checkbox, CheckboxProps, Container, ContainerProps, Divider, DividerProps, Flex, FlexProps, Grid, GridProps, Heading, HeadingProps, IconButtonProps, Image, ImageProps, Progress as LinearProgress, ProgressProps as LinearProgressProps, Radio, RadioProps, SelectProps, Slider, SliderProps, Spinner, SpinnerProps, Text, TextProps, Theme } from 'theme-ui';
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, Radio, RadioProps, SelectProps, Slider, SliderProps, Spinner, SpinnerProps, Text, TextProps, Theme } from 'theme-ui';
4
4
  export { useBreakpointIndex, useResponsiveValue } from '@theme-ui/match-media';
5
5
  import * as React from 'react';
6
6
  import React__default from 'react';
package/dist/index.js CHANGED
@@ -48,6 +48,7 @@ __export(src_exports, {
48
48
  Container: () => import_theme_ui24.Container,
49
49
  Divider: () => import_theme_ui7.Divider,
50
50
  Flex: () => import_theme_ui8.Flex,
51
+ Global: () => import_theme_ui27.Global,
51
52
  Grid: () => import_theme_ui9.Grid,
52
53
  Heading: () => import_theme_ui10.Heading,
53
54
  HelpText: () => HelpText,
@@ -647,6 +648,7 @@ Stack.displayName = "Stack";
647
648
  Container,
648
649
  Divider,
649
650
  Flex,
651
+ Global,
650
652
  Grid,
651
653
  Heading,
652
654
  HelpText,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/ui",
3
- "version": "1.32.7",
3
+ "version": "1.33.0",
4
4
  "description": "Primitive layout, typographic, and other components for styling applications.",
5
5
  "license": "UNLICENSED",
6
6
  "author": "ttoss",
@@ -23,7 +23,7 @@
23
23
  "@emotion/react": "^11.10.6",
24
24
  "@iconify-icon/react": "^1.0.7",
25
25
  "@theme-ui/match-media": "^0.15.7",
26
- "@ttoss/theme": "^1.4.22",
26
+ "@ttoss/theme": "^1.4.23",
27
27
  "theme-ui": "^0.15.7"
28
28
  },
29
29
  "peerDependencies": {
@@ -48,5 +48,5 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "f30779a5ea50d60cf3099e5fde712e1ef7b7882c"
51
+ "gitHead": "0e907d5340ddbdebfa3f81c736542db198ca8a07"
52
52
  }
package/src/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { BaseStyles, type Theme } from 'theme-ui';
1
+ export { BaseStyles, type Theme, Global } from 'theme-ui';
2
2
  export { useResponsiveValue, useBreakpointIndex } from '@theme-ui/match-media';
3
3
 
4
4
  export { ThemeProvider, type ThemeProviderProps } from './theme/ThemeProvider';