@quadrats/react 0.5.8 → 0.5.9
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/line-break/defaultRenderLineBreakElement.d.ts +1 -1
- package/line-break/defaultRenderLineBreakElement.js +1 -2
- package/line-break/index.cjs.js +2 -4
- package/line-break/renderLineBreakElementWithSymbol.d.ts +1 -1
- package/line-break/renderLineBreakElementWithSymbol.js +1 -2
- package/package.json +3 -3
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RenderLineBreakElementProps } from './typings';
|
|
3
|
-
export declare const defaultRenderLineBreakElement: ({ attributes }: RenderLineBreakElementProps) => JSX.Element;
|
|
3
|
+
export declare const defaultRenderLineBreakElement: ({ attributes, children }: RenderLineBreakElementProps) => JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
const defaultRenderLineBreakElement = ({ attributes }) => (React.createElement("span", Object.assign({}, attributes, {
|
|
4
|
-
React.createElement("br", null)));
|
|
3
|
+
const defaultRenderLineBreakElement = ({ attributes, children }) => (React.createElement("span", Object.assign({}, attributes, { className: "qdr-line-break" }), children));
|
|
5
4
|
|
|
6
5
|
export { defaultRenderLineBreakElement };
|
package/line-break/index.cjs.js
CHANGED
|
@@ -84,8 +84,7 @@ const COMMON_ON_KEY_DOWN_BREAK = createOnKeyDownBreak({
|
|
|
84
84
|
},
|
|
85
85
|
});
|
|
86
86
|
|
|
87
|
-
const defaultRenderLineBreakElement = ({ attributes }) => (React__default.createElement("span", Object.assign({}, attributes, {
|
|
88
|
-
React__default.createElement("br", null)));
|
|
87
|
+
const defaultRenderLineBreakElement = ({ attributes, children }) => (React__default.createElement("span", Object.assign({}, attributes, { className: "qdr-line-break" }), children));
|
|
89
88
|
|
|
90
89
|
function createReactLineBreak(options = {}) {
|
|
91
90
|
const core$1 = core.createLineBreak(options);
|
|
@@ -95,8 +94,7 @@ function createReactLineBreak(options = {}) {
|
|
|
95
94
|
}), createRenderElement: ({ render = defaultRenderLineBreakElement } = {}) => react.createRenderElement({ type, render }) });
|
|
96
95
|
}
|
|
97
96
|
|
|
98
|
-
const renderLineBreakElementWithSymbol = ({ attributes }) => (React__default.createElement("span", Object.assign({}, attributes, {
|
|
99
|
-
React__default.createElement("br", null)));
|
|
97
|
+
const renderLineBreakElementWithSymbol = ({ attributes, children }) => (React__default.createElement("span", Object.assign({}, attributes, { className: "qdr-line-break qdr-line-break__with-symbol" }), children));
|
|
100
98
|
|
|
101
99
|
exports.COMMON_EXIT_BREAK_ON_AFTER_HOTKEY = COMMON_EXIT_BREAK_ON_AFTER_HOTKEY;
|
|
102
100
|
exports.COMMON_EXIT_BREAK_ON_AFTER_RULE = COMMON_EXIT_BREAK_ON_AFTER_RULE;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { RenderLineBreakElementProps } from './typings';
|
|
3
|
-
export declare const renderLineBreakElementWithSymbol: ({ attributes }: RenderLineBreakElementProps) => JSX.Element;
|
|
3
|
+
export declare const renderLineBreakElementWithSymbol: ({ attributes, children }: RenderLineBreakElementProps) => JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
|
-
const renderLineBreakElementWithSymbol = ({ attributes }) => (React.createElement("span", Object.assign({}, attributes, {
|
|
4
|
-
React.createElement("br", null)));
|
|
3
|
+
const renderLineBreakElementWithSymbol = ({ attributes, children }) => (React.createElement("span", Object.assign({}, attributes, { className: "qdr-line-break qdr-line-break__with-symbol" }), children));
|
|
5
4
|
|
|
6
5
|
export { renderLineBreakElementWithSymbol };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quadrats/react",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.9",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "Rytass",
|
|
6
6
|
"homepage": "https://github.com/Quadrats/quadrats#readme",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"url": "https://github.com/Quadrats/quadrats/issues"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@quadrats/common": "^0.5.
|
|
24
|
-
"@quadrats/core": "^0.5.
|
|
23
|
+
"@quadrats/common": "^0.5.9",
|
|
24
|
+
"@quadrats/core": "^0.5.9",
|
|
25
25
|
"@quadrats/icons": "^0.5.0",
|
|
26
26
|
"@quadrats/locales": "^0.5.0",
|
|
27
27
|
"@quadrats/theme": "^0.5.0",
|