Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@chakra-ui/system

Package Overview
Dependencies
Maintainers
4
Versions
639
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chakra-ui/system - npm Package Compare versions

Comparing version 1.0.0-rc.8 to 1.0.0

16

CHANGELOG.md

@@ -6,13 +6,23 @@ # Change Log

# 1.0.0-rc.8 (2020-10-29)
# 1.0.0 (2020-11-13)
**Note:** Version bump only for package @chakra-ui/system
### Bug Fixes
* **toast:** allow custom render in update ([eb8bff9](https://github.com/chakra-ui/chakra-ui/commit/eb8bff911e6ec9de0165ab1e8f5ca10d5e022459)), closes [#2362](https://github.com/chakra-ui/chakra-ui/issues/2362)
# Change Log
All notable changes to this project will be documented in this file. See
[Conventional Commits](https://conventionalcommits.org) for commit guidelines.
# 1.0.0-rc.8 (2020-10-29)
### Bug Fixes
- **toast:** allow custom render in update
([eb8bff9](https://github.com/chakra-ui/chakra-ui/commit/eb8bff911e6ec9de0165ab1e8f5ca10d5e022459)),
closes [#2362](https://github.com/chakra-ui/chakra-ui/issues/2362)
# Change Log

@@ -19,0 +29,0 @@

16

dist/cjs/index.js

@@ -6,10 +6,5 @@ "use strict";

keyframes: true,
CacheProvider: true,
ThemeContext: true,
Global: true,
jsx: true,
ClassNames: true,
omitThemingProps: true
};
exports.omitThemingProps = exports.ClassNames = exports.jsx = exports.Global = exports.ThemeContext = exports.CacheProvider = exports.keyframes = void 0;
exports.omitThemingProps = exports.keyframes = void 0;

@@ -34,10 +29,5 @@ var _colorMode = require("@chakra-ui/color-mode");

var _core = require("@emotion/core");
var _react = require("@emotion/react");
exports.keyframes = _core.keyframes;
exports.CacheProvider = _core.CacheProvider;
exports.ThemeContext = _core.ThemeContext;
exports.Global = _core.Global;
exports.jsx = _core.jsx;
exports.ClassNames = _core.ClassNames;
exports.keyframes = _react.keyframes;

@@ -44,0 +34,0 @@ var _hooks = require("./hooks");

@@ -13,4 +13,6 @@ "use strict";

var _core = require("@emotion/core");
var _react = require("@emotion/react");
exports.ThemeProvider = _react.ThemeProvider;
var React = _interopRequireWildcard(require("react"));

@@ -22,16 +24,4 @@

var ThemeProvider = function ThemeProvider(props) {
var children = props.children,
theme = props.theme;
var outerTheme = React.useContext(_core.ThemeContext);
var mergedTheme = (0, _utils.mergeWith)({}, outerTheme, theme);
return /*#__PURE__*/React.createElement(_core.ThemeContext.Provider, {
value: mergedTheme
}, children);
};
exports.ThemeProvider = ThemeProvider;
function useTheme() {
var theme = React.useContext(_core.ThemeContext);
var theme = React.useContext(_react.ThemeContext);

@@ -63,3 +53,3 @@ if (!theme) {

return /*#__PURE__*/React.createElement(_core.Global, {
return /*#__PURE__*/React.createElement(_react.Global, {
styles: function styles(theme) {

@@ -66,0 +56,0 @@ var styleObjectOrFn = (0, _utils.memoizedGet)(theme, "styles.global");

@@ -11,3 +11,3 @@ "use strict";

var _styled2 = _interopRequireDefault(require("@emotion/styled"));
var _styled = _interopRequireDefault(require("@emotion/styled"));

@@ -112,10 +112,7 @@ var _shouldForwardProp = require("./should-forward-prop");

var _styled = (0, _styled2["default"])(component, opts);
var interpolation = styleResolver({
var styledFn = (0, _styled["default"])(component, opts);
var args = styleResolver({
baseStyle: baseStyle
});
var StyledComponent = _styled(interpolation);
var StyledComponent = styledFn(args);
return StyledComponent;

@@ -122,0 +119,0 @@ }

export * from "@chakra-ui/color-mode";
export * from "@chakra-ui/styled-system";
export { keyframes, CacheProvider, ThemeContext, Global, jsx, ClassNames } from "@emotion/core";
export { keyframes } from "@emotion/react";
export * from "./hooks";

@@ -5,0 +5,0 @@ export * from "./system.types";

import { useColorMode } from "@chakra-ui/color-mode";
import { css } from "@chakra-ui/styled-system";
import { createContext, memoizedGet as get, mergeWith, runIfFn } from "@chakra-ui/utils";
import { Global, ThemeContext } from "@emotion/core";
import { createContext, memoizedGet as get, runIfFn } from "@chakra-ui/utils";
import { Global, ThemeContext } from "@emotion/react";
import * as React from "react";
export var ThemeProvider = props => {
var {
children,
theme
} = props;
var outerTheme = React.useContext(ThemeContext);
var mergedTheme = mergeWith({}, outerTheme, theme);
return /*#__PURE__*/React.createElement(ThemeContext.Provider, {
value: mergedTheme
}, children);
};
export { ThemeProvider } from "@emotion/react";
export function useTheme() {

@@ -18,0 +8,0 @@ var theme = React.useContext(ThemeContext);

@@ -7,3 +7,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

import { memoizedGet as get, objectFilter, objectAssign, isFunction } from "@chakra-ui/utils";
import createStyled from "@emotion/styled";
import emotionStyled from "@emotion/styled";
import { shouldForwardProp } from "./should-forward-prop";

@@ -101,10 +101,7 @@ import { domElements } from "./system.utils";

var _styled = createStyled(component, opts);
var interpolation = styleResolver({
var styledFn = emotionStyled(component, opts);
var args = styleResolver({
baseStyle
});
var StyledComponent = _styled(interpolation);
var StyledComponent = styledFn(args);
return StyledComponent;

@@ -111,0 +108,0 @@ }

export * from "@chakra-ui/color-mode";
export * from "@chakra-ui/styled-system";
export { keyframes, CacheProvider, ThemeContext, Global, jsx, ClassNames, } from "@emotion/core";
export type { InterpolationWithTheme, ObjectInterpolation } from "@emotion/core";
export { keyframes } from "@emotion/react";
export type { Interpolation } from "@emotion/react";
export * from "./hooks";

@@ -6,0 +6,0 @@ export * from "./system.types";

import { SystemStyleObject } from "@chakra-ui/styled-system";
import { Dict } from "@chakra-ui/utils";
import * as React from "react";
export interface ThemeProviderProps {
/**
* The theme to use for your application
*/
theme: Dict;
}
export declare const ThemeProvider: React.FC<ThemeProviderProps>;
export { ThemeProvider } from "@emotion/react";
export type { ThemeProviderProps } from "@emotion/react";
export declare function useTheme<T extends object = Dict>(): T;

@@ -12,0 +7,0 @@ declare const StylesProvider: React.Provider<Record<string, SystemStyleObject>>, useStyles: () => Record<string, SystemStyleObject>;

import { ResponsiveValue, SystemProps, SystemStyleObject } from "@chakra-ui/styled-system";
import { Dict } from "@chakra-ui/utils";
import { Interpolation } from "@emotion/react";
import * as React from "react";

@@ -50,2 +51,6 @@ import { ComponentWithAs } from "./forward-ref";

sx?: SystemStyleObject;
/**
* The emotion's css style object
*/
css?: Interpolation<{}>;
}

@@ -52,0 +57,0 @@ export declare type As = React.ElementType;

{
"name": "@chakra-ui/system",
"version": "1.0.0-rc.8",
"version": "1.0.0",
"description": "Chakra UI system primitives",

@@ -57,13 +57,13 @@ "keywords": [

"dependencies": {
"@chakra-ui/color-mode": "1.0.0-rc.8",
"@chakra-ui/styled-system": "1.0.0-rc.8",
"@chakra-ui/utils": "1.0.0-rc.8",
"@emotion/core": "10.0.35",
"@emotion/styled": "10.0.27",
"@chakra-ui/color-mode": "1.0.0",
"@chakra-ui/styled-system": "1.0.0",
"@chakra-ui/utils": "1.0.0",
"react-fast-compare": "3.2.0"
},
"peerDependencies": {
"react": "16.x || 17.x"
"@emotion/react": "^11.0.0",
"@emotion/styled": "^11.0.0",
"react": ">=16.8.6"
},
"gitHead": "de4cffb1638e8d10cd74515b0289d70eb94931be"
"gitHead": "c98ca366cec7151fe7ea4e0b6f893088797c5398"
}

@@ -116,3 +116,3 @@ # @chakra-ui/system

// 2. create or import Button from chakra-ui
import { Button } from "@chakra-ui/core"
import { Button } from "@chakra-ui/react"

@@ -119,0 +119,0 @@ // or your own button

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc