@udecode/plate-styled-components
Advanced tools
Comparing version 6.1.0 to 6.2.0
# @udecode/plate-styled-components | ||
## 6.2.0 | ||
### Minor Changes | ||
- [#1173](https://github.com/udecode/plate/pull/1173) by [@zbeyens](https://github.com/zbeyens) – New component: `Divider` | ||
## 6.1.0 | ||
@@ -4,0 +10,0 @@ |
/** | ||
* @file Automatically generated by barrelsby. | ||
*/ | ||
export * from './Divider/index'; | ||
export * from './PortalBody/index'; | ||
@@ -5,0 +6,0 @@ export * from './StyledElement/index'; |
@@ -1,7 +0,21 @@ | ||
import * as ReactDOM from 'react-dom'; | ||
import _styled from 'styled-components'; | ||
import * as React from 'react'; | ||
import React__default from 'react'; | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import clsx from 'clsx'; | ||
const Divider = props => /*#__PURE__*/React.createElement(_StyledDiv$1, props); | ||
var _StyledDiv$1 = _styled("div").withConfig({ | ||
displayName: "Divider___StyledDiv", | ||
componentId: "sc-n6iu2k-0" | ||
})({ | ||
"marginLeft": "0.5rem", | ||
"marginRight": "0.5rem", | ||
"marginTop": "0.125rem", | ||
"marginBottom": "0.125rem", | ||
"width": "1px", | ||
"--tw-bg-opacity": "1", | ||
"backgroundColor": "rgba(229, 231, 235, var(--tw-bg-opacity))" | ||
}); | ||
const PortalBody = ({ | ||
@@ -244,3 +258,3 @@ children, | ||
}); | ||
return /*#__PURE__*/React__default.createElement(Component, _extends({}, _props, { | ||
return /*#__PURE__*/React.createElement(Component, _extends({}, _props, { | ||
styles: styles | ||
@@ -250,3 +264,3 @@ })); | ||
export { PortalBody, StyledElement, StyledLeaf, createStyles, getStyledNodeStyles, withStyledProps }; | ||
export { Divider, PortalBody, StyledElement, StyledLeaf, createStyles, getStyledNodeStyles, withStyledProps }; | ||
//# sourceMappingURL=index.es.js.map |
@@ -5,5 +5,5 @@ 'use strict'; | ||
var ReactDOM = require('react-dom'); | ||
var _styled = require('styled-components'); | ||
var React = require('react'); | ||
var ReactDOM = require('react-dom'); | ||
var clsx = require('clsx'); | ||
@@ -13,32 +13,26 @@ | ||
function _interopNamespace(e) { | ||
if (e && e.__esModule) return e; | ||
var n = Object.create(null); | ||
if (e) { | ||
Object.keys(e).forEach(function (k) { | ||
if (k !== 'default') { | ||
var d = Object.getOwnPropertyDescriptor(e, k); | ||
Object.defineProperty(n, k, d.get ? d : { | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
}); | ||
} | ||
}); | ||
} | ||
n['default'] = e; | ||
return Object.freeze(n); | ||
} | ||
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM); | ||
var _styled__default = /*#__PURE__*/_interopDefaultLegacy(_styled); | ||
var React__namespace = /*#__PURE__*/_interopNamespace(React); | ||
var React__default = /*#__PURE__*/_interopDefaultLegacy(React); | ||
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM); | ||
var clsx__default = /*#__PURE__*/_interopDefaultLegacy(clsx); | ||
const Divider = props => /*#__PURE__*/React__default['default'].createElement(_StyledDiv$1, props); | ||
var _StyledDiv$1 = _styled__default['default']("div").withConfig({ | ||
displayName: "Divider___StyledDiv", | ||
componentId: "sc-n6iu2k-0" | ||
})({ | ||
"marginLeft": "0.5rem", | ||
"marginRight": "0.5rem", | ||
"marginTop": "0.125rem", | ||
"marginBottom": "0.125rem", | ||
"width": "1px", | ||
"--tw-bg-opacity": "1", | ||
"backgroundColor": "rgba(229, 231, 235, var(--tw-bg-opacity))" | ||
}); | ||
const PortalBody = ({ | ||
children, | ||
element | ||
}) => /*#__PURE__*/ReactDOM__namespace.createPortal(children, element || document.body); | ||
}) => /*#__PURE__*/ReactDOM__default['default'].createPortal(children, element || document.body); | ||
@@ -205,3 +199,3 @@ function _extends() { | ||
}); | ||
return /*#__PURE__*/React__namespace.createElement(_StyledDiv, _extends({}, attributes, rootProps, nodeProps, { | ||
return /*#__PURE__*/React__default['default'].createElement(_StyledDiv, _extends({}, attributes, rootProps, nodeProps, { | ||
$_css: root.css | ||
@@ -242,3 +236,3 @@ }), children); | ||
}); | ||
return /*#__PURE__*/React__namespace.createElement(_StyledSpan, _extends({}, attributes, rootProps, nodeProps, { | ||
return /*#__PURE__*/React__default['default'].createElement(_StyledSpan, _extends({}, attributes, rootProps, nodeProps, { | ||
$_css: root.css | ||
@@ -284,2 +278,3 @@ }), children); | ||
exports.Divider = Divider; | ||
exports.PortalBody = PortalBody; | ||
@@ -286,0 +281,0 @@ exports.StyledElement = StyledElement; |
{ | ||
"name": "@udecode/plate-styled-components", | ||
"version": "6.1.0", | ||
"version": "6.2.0", | ||
"description": "Standard UI for Plate", | ||
@@ -35,4 +35,4 @@ "keywords": [ | ||
"dependencies": { | ||
"@udecode/plate-common": "6.1.0", | ||
"@udecode/plate-core": "6.0.0", | ||
"@udecode/plate-common": "6.2.0", | ||
"@udecode/plate-core": "6.2.0", | ||
"clsx": "^1.1.1" | ||
@@ -39,0 +39,0 @@ }, |
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
60392
49
622
+ Added@udecode/plate-common@6.2.0(transitive)
+ Added@udecode/plate-core@6.2.0(transitive)
- Removed@udecode/plate-common@6.1.0(transitive)
- Removed@udecode/plate-core@6.0.0(transitive)
Updated@udecode/plate-common@6.2.0
Updated@udecode/plate-core@6.2.0