@ttoss/ui 1.37.4 → 2.0.1

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
- pnpm add @ttoss/ui
8
+ pnpm add @ttoss/ui @emotion/react
9
9
  ```
10
10
 
11
11
  ## Quickstart
package/dist/esm/index.js CHANGED
@@ -8,7 +8,7 @@ import { keyframes } from "@emotion/react";
8
8
  // src/theme/ThemeProvider.tsx
9
9
  import { BruttalFonts, BruttalTheme } from "@ttoss/theme/Bruttal";
10
10
  import { Global, css } from "@emotion/react";
11
- import { ThemeProvider as ThemeUiProvider } from "theme-ui";
11
+ import { ThemeUIProvider } from "theme-ui";
12
12
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
13
13
  var ThemeProvider = ({
14
14
  children,
@@ -16,7 +16,7 @@ var ThemeProvider = ({
16
16
  fonts = BruttalFonts
17
17
  }) => {
18
18
  return /* @__PURE__ */jsx(Fragment, {
19
- children: /* @__PURE__ */jsxs(ThemeUiProvider, {
19
+ children: /* @__PURE__ */jsxs(ThemeUIProvider, {
20
20
  theme,
21
21
  children: [/* @__PURE__ */jsx(Global, {
22
22
  styles: css`
package/dist/index.js CHANGED
@@ -93,7 +93,7 @@ var ThemeProvider = ({
93
93
  fonts = import_Bruttal.BruttalFonts
94
94
  }) => {
95
95
  return /* @__PURE__ */(0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
96
- children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_theme_ui.ThemeProvider, {
96
+ children: /* @__PURE__ */(0, import_jsx_runtime.jsxs)(import_theme_ui.ThemeUIProvider, {
97
97
  theme,
98
98
  children: [/* @__PURE__ */(0, import_jsx_runtime.jsx)(import_react.Global, {
99
99
  styles: import_react.css`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ttoss/ui",
3
- "version": "1.37.4",
3
+ "version": "2.0.1",
4
4
  "description": "Primitive layout, typographic, and other components for styling applications.",
5
5
  "author": "ttoss",
6
6
  "contributors": [
@@ -20,28 +20,30 @@
20
20
  "sideEffects": false,
21
21
  "typings": "dist/index.d.ts",
22
22
  "dependencies": {
23
- "@emotion/react": "^11.11.1",
24
23
  "@iconify-icon/react": "^1.0.7",
25
- "@theme-ui/match-media": "^0.15.7",
26
- "theme-ui": "^0.15.7",
27
- "@ttoss/theme": "^1.5.3"
24
+ "@theme-ui/match-media": "^0.16.0",
25
+ "theme-ui": "^0.16.0",
26
+ "@ttoss/theme": "^1.5.4"
28
27
  },
29
28
  "peerDependencies": {
29
+ "@emotion/react": "^11",
30
30
  "react": ">=16.8.0"
31
31
  },
32
32
  "devDependencies": {
33
+ "@emotion/react": "^11.11.1",
33
34
  "@iconify-icons/mdi-light": "^1.2.5",
34
35
  "@iconify/types": "^2.0.0",
35
36
  "@types/jest": "^29.5.2",
36
- "@types/react": "^18.2.11",
37
+ "@types/react": "^18.2.12",
37
38
  "jest": "^29.5.0",
38
39
  "react": "^18.2.0",
39
- "tsup": "^6.7.0",
40
- "@ttoss/config": "^1.30.3",
41
- "@ttoss/test-utils": "^1.23.4"
40
+ "tsup": "^7.0.0",
41
+ "@ttoss/config": "^1.30.4",
42
+ "@ttoss/test-utils": "^1.23.5"
42
43
  },
43
44
  "keywords": [
44
45
  "React",
46
+ "ThemeUi",
45
47
  "ui",
46
48
  "user interface"
47
49
  ],
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import { BruttalFonts, BruttalTheme } from '@ttoss/theme/Bruttal';
3
3
  import { Global, css } from '@emotion/react';
4
- import { Theme, ThemeProvider as ThemeUiProvider } from 'theme-ui';
4
+ import { Theme, ThemeUIProvider } from 'theme-ui';
5
5
 
6
6
  export type ThemeProviderProps = {
7
7
  children?: React.ReactNode;
@@ -19,7 +19,7 @@ export const ThemeProvider = ({
19
19
  }: ThemeProviderProps) => {
20
20
  return (
21
21
  <>
22
- <ThemeUiProvider theme={theme}>
22
+ <ThemeUIProvider theme={theme}>
23
23
  <Global
24
24
  styles={css`
25
25
  ${fonts
@@ -30,7 +30,7 @@ export const ThemeProvider = ({
30
30
  `}
31
31
  />
32
32
  {children}
33
- </ThemeUiProvider>
33
+ </ThemeUIProvider>
34
34
  </>
35
35
  );
36
36
  };