@types/theme-ui
Advanced tools
Comparing version 0.2.8 to 0.3.0
@@ -1,2 +0,2 @@ | ||
// Type definitions for theme-ui 0.2 | ||
// Type definitions for theme-ui 0.3 | ||
// Project: https://github.com/system-ui/theme-ui#readme | ||
@@ -9,20 +9,17 @@ // Definitions by: Erik Stockmeier <https://github.com/erikdstock> | ||
// Prateek Kathal <https://github.com/prateekkathal> | ||
// Piotr Monwid-Olechnowicz <https://github.com/hasparus> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 3.1 | ||
// TypeScript Version: 3.5 | ||
import { ResponsiveStyleValue, SystemStyleObject } from '@styled-system/css'; | ||
import { SystemStyleObject } from '@styled-system/css'; | ||
import * as CSS from 'csstype'; | ||
import * as React from 'react'; | ||
import { lineHeight, Theme as StyledSystemTheme } from 'styled-system'; | ||
import { Theme as StyledSystemTheme } from 'styled-system'; | ||
import { Interpolation, SerializedStyles } from '@emotion/serialize'; | ||
export * from '@theme-ui/components'; | ||
export {}; | ||
type Omit<T, K> = Pick<T, Exclude<keyof T, K>>; | ||
type ObjectOrArray<T> = T[] | { [K: string]: T | ObjectOrArray<T> }; | ||
interface Object<T> { | ||
[k: string]: T | Object<T>; | ||
} | ||
export interface ThemeProviderProps<Theme> { | ||
@@ -43,3 +40,3 @@ theme: Partial<Theme> | ((outerTheme: Theme) => Theme); | ||
* typically light and dark are used for applications with a dark mode. The | ||
* initialColorMode key is required to enable color modes and will be used as | ||
* initialColorModeName key is required to enable color modes and will be used as | ||
* the name for the root color palette. | ||
@@ -94,3 +91,3 @@ */ | ||
*/ | ||
initialColorMode?: string; | ||
initialColorModeName?: string; | ||
@@ -103,3 +100,3 @@ /** | ||
* Nested color modes can provide overrides when used in conjunction with | ||
* `Theme.initialColorMode and `useColorMode()` | ||
* `Theme.initialColorModeName and `useColorMode()` | ||
*/ | ||
@@ -164,10 +161,2 @@ modes?: { | ||
export const Box: SxComponent; | ||
export const Container: SxComponent; | ||
export const Flex: SxComponent; | ||
export const Header: SxComponent; | ||
export const Footer: SxComponent; | ||
export const Layout: SxComponent; | ||
export const Main: SxComponent; | ||
export interface IntrinsicSxElements { | ||
@@ -174,0 +163,0 @@ p: JSX.IntrinsicElements['p'] & SxProps; |
{ | ||
"name": "@types/theme-ui", | ||
"version": "0.2.8", | ||
"version": "0.3.0", | ||
"description": "TypeScript definitions for theme-ui", | ||
@@ -36,2 +36,7 @@ "license": "MIT", | ||
"githubUsername": "prateekkathal" | ||
}, | ||
{ | ||
"name": "Piotr Monwid-Olechnowicz", | ||
"url": "https://github.com/hasparus", | ||
"githubUsername": "hasparus" | ||
} | ||
@@ -52,6 +57,7 @@ ], | ||
"@types/styled-system__css": "*", | ||
"@types/theme-ui__components": "*", | ||
"csstype": "^2.6.6" | ||
}, | ||
"typesPublisherContentHash": "6550b2c7a20f11c3fef3efd9287be73774dabe7180619d4d86da58026f18b5a2", | ||
"typeScriptVersion": "3.1" | ||
"typesPublisherContentHash": "e81a289215e3cc59a2c2a0f718077e81e9a0d6fc8547281a2bf53c6dac6dad00", | ||
"typeScriptVersion": "3.5" | ||
} |
@@ -11,7 +11,7 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 30 Jan 2020 20:00:06 GMT | ||
* Dependencies: [@types/styled-system__css](https://npmjs.com/package/@types/styled-system__css), [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/react](https://npmjs.com/package/@types/react), [@types/styled-system](https://npmjs.com/package/@types/styled-system), [@types/emotion__serialize](https://npmjs.com/package/@types/emotion__serialize) | ||
* Last updated: Thu, 30 Jan 2020 21:23:43 GMT | ||
* Dependencies: [@types/styled-system__css](https://npmjs.com/package/@types/styled-system__css), [@types/csstype](https://npmjs.com/package/@types/csstype), [@types/react](https://npmjs.com/package/@types/react), [@types/styled-system](https://npmjs.com/package/@types/styled-system), [@types/emotion__serialize](https://npmjs.com/package/@types/emotion__serialize), [@types/theme-ui__components](https://npmjs.com/package/@types/theme-ui__components) | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Erik Stockmeier (https://github.com/erikdstock), Ifiok Jr. (https://github.com/ifiokjr), Brian Andrews (https://github.com/sbardian), Rodrigo Pombo (https://github.com/pomber), Justin Hall (https://github.com/wKovacs64), and Prateek Kathal (https://github.com/prateekkathal). | ||
These definitions were written by Erik Stockmeier (https://github.com/erikdstock), Ifiok Jr. (https://github.com/ifiokjr), Brian Andrews (https://github.com/sbardian), Rodrigo Pombo (https://github.com/pomber), Justin Hall (https://github.com/wKovacs64), Prateek Kathal (https://github.com/prateekkathal), and Piotr Monwid-Olechnowicz (https://github.com/hasparus). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11933
6
201
+ Added@babel/code-frame@7.24.7(transitive)
+ Added@babel/generator@7.25.6(transitive)
+ Added@babel/helper-module-imports@7.24.7(transitive)
+ Added@babel/helper-string-parser@7.24.8(transitive)
+ Added@babel/helper-validator-identifier@7.24.7(transitive)
+ Added@babel/highlight@7.24.7(transitive)
+ Added@babel/parser@7.25.6(transitive)
+ Added@babel/runtime@7.25.6(transitive)
+ Added@babel/template@7.25.0(transitive)
+ Added@babel/traverse@7.25.6(transitive)
+ Added@babel/types@7.25.6(transitive)
+ Added@emotion/babel-plugin@11.12.0(transitive)
+ Added@emotion/cache@11.13.1(transitive)
+ Added@emotion/hash@0.9.2(transitive)
+ Added@emotion/is-prop-valid@0.8.8(transitive)
+ Added@emotion/memoize@0.9.0(transitive)
+ Added@emotion/react@11.13.3(transitive)
+ Added@emotion/serialize@1.3.1(transitive)
+ Added@emotion/sheet@1.4.0(transitive)
+ Added@emotion/unitless@0.10.0(transitive)
+ Added@emotion/use-insertion-effect-with-fallbacks@1.1.0(transitive)
+ Added@emotion/utils@1.4.0(transitive)
+ Added@emotion/weak-memoize@0.4.0(transitive)
+ Added@jridgewell/gen-mapping@0.3.5(transitive)
+ Added@jridgewell/resolve-uri@3.1.2(transitive)
+ Added@jridgewell/set-array@1.2.1(transitive)
+ Added@jridgewell/sourcemap-codec@1.5.0(transitive)
+ Added@jridgewell/trace-mapping@0.3.25(transitive)
+ Added@styled-system/background@5.1.2(transitive)
+ Added@styled-system/border@5.1.5(transitive)
+ Added@styled-system/color@5.1.2(transitive)
+ Added@styled-system/core@5.1.2(transitive)
+ Added@styled-system/css@5.1.5(transitive)
+ Added@styled-system/flexbox@5.1.2(transitive)
+ Added@styled-system/grid@5.1.2(transitive)
+ Added@styled-system/layout@5.1.2(transitive)
+ Added@styled-system/position@5.1.2(transitive)
+ Added@styled-system/shadow@5.1.2(transitive)
+ Added@styled-system/should-forward-prop@5.1.5(transitive)
+ Added@styled-system/space@5.1.2(transitive)
+ Added@styled-system/typography@5.1.2(transitive)
+ Added@styled-system/variant@5.1.5(transitive)
+ Added@theme-ui/color-modes@0.16.2(transitive)
+ Added@theme-ui/components@0.16.2(transitive)
+ Added@theme-ui/core@0.16.2(transitive)
+ Added@theme-ui/css@0.16.2(transitive)
+ Added@theme-ui/theme-provider@0.16.2(transitive)
+ Added@types/parse-json@4.0.2(transitive)
+ Added@types/theme-ui__components@0.6.0(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedbabel-plugin-macros@3.1.0(transitive)
+ Addedcallsites@3.1.0(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedconvert-source-map@1.9.0(transitive)
+ Addedcosmiconfig@7.1.0(transitive)
+ Addeddebug@4.3.7(transitive)
+ Addeddeepmerge@4.3.1(transitive)
+ Addederror-ex@1.3.2(transitive)
+ Addedescape-string-regexp@1.0.54.0.0(transitive)
+ Addedfind-root@1.1.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedglobals@11.12.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhoist-non-react-statics@3.3.2(transitive)
+ Addedimport-fresh@3.3.0(transitive)
+ Addedis-arrayish@0.2.1(transitive)
+ Addedis-core-module@2.15.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjsesc@2.5.2(transitive)
+ Addedjson-parse-even-better-errors@2.3.1(transitive)
+ Addedlines-and-columns@1.2.4(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedms@2.1.3(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedparent-module@1.0.1(transitive)
+ Addedparse-json@5.2.0(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicocolors@1.1.0(transitive)
+ Addedreact@18.3.1(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedresolve-from@4.0.0(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addedstyled-system@5.1.5(transitive)
+ Addedstylis@4.2.0(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedto-fast-properties@2.0.0(transitive)
+ Addedyaml@1.10.2(transitive)