@flodesk/grain 10.0.0 → 10.1.0
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 +10 -2
- package/es/components/provider.js +1 -0
- package/es/icons/icon-column-and-rows.js +21 -0
- package/es/icons/icon-columns-and-row.js +21 -0
- package/es/icons/icon-columns.js +21 -0
- package/es/icons/icon-row-and-columns.js +21 -0
- package/es/icons/icon-rows-and-column.js +21 -0
- package/es/icons/icon-rows.js +21 -0
- package/es/icons/index.js +7 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,12 +6,20 @@
|
|
|
6
6
|
npm install @flodesk/grain
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Wrap your application root component with GrainProvider.
|
|
10
10
|
|
|
11
11
|
`base.css` contains all Grain global styles. Import it in the highest component possible so that it's accessible everywhere in the UI.
|
|
12
12
|
|
|
13
13
|
```js
|
|
14
|
-
import '@flodesk/grain
|
|
14
|
+
import { GrainProvider } from '@flodesk/grain';
|
|
15
|
+
|
|
16
|
+
function Demo() {
|
|
17
|
+
return (
|
|
18
|
+
<GrainProvider>
|
|
19
|
+
<App />
|
|
20
|
+
</GrainProvider>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
15
23
|
```
|
|
16
24
|
|
|
17
25
|
### Add text styles context
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "core-js/modules/es.object.assign.js";
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
4
|
+
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
|
+
|
|
8
|
+
var LayoutColumnAndRows = function LayoutColumnAndRows(props) {
|
|
9
|
+
return ___EmotionJSX("svg", _extends({
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
13
|
+
}, props), ___EmotionJSX("path", {
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
clipRule: "evenodd",
|
|
16
|
+
d: "M0 2a2 2 0 012-2h20a2 2 0 012 2v20a2 2 0 01-2 2H2a2 2 0 01-2-2V2zm22 0h-9v9h9V2zm0 11h-9v9h9v-9zM2 2h9v20H2V2z",
|
|
17
|
+
fill: "currentColor"
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default LayoutColumnAndRows;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "core-js/modules/es.object.assign.js";
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
4
|
+
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
|
+
|
|
8
|
+
var LayoutColumnsAndRow = function LayoutColumnsAndRow(props) {
|
|
9
|
+
return ___EmotionJSX("svg", _extends({
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
13
|
+
}, props), ___EmotionJSX("path", {
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
clipRule: "evenodd",
|
|
16
|
+
d: "M0 2a2 2 0 012-2h20a2 2 0 012 2v20a2 2 0 01-2 2H2a2 2 0 01-2-2V2zm22 0h-9v9h9V2zm0 11H2v9h20v-9zM2 11h9V2H2v9z",
|
|
17
|
+
fill: "currentColor"
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default LayoutColumnsAndRow;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "core-js/modules/es.object.assign.js";
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
4
|
+
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
|
+
|
|
8
|
+
var LayoutColumns = function LayoutColumns(props) {
|
|
9
|
+
return ___EmotionJSX("svg", _extends({
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
13
|
+
}, props), ___EmotionJSX("path", {
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
clipRule: "evenodd",
|
|
16
|
+
d: "M2 0a2 2 0 00-2 2v20a2 2 0 002 2h20a2 2 0 002-2V2a2 2 0 00-2-2H2zm11 2h9v20h-9V2zm-2 0H2v20h9V2z",
|
|
17
|
+
fill: "currentColor"
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default LayoutColumns;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "core-js/modules/es.object.assign.js";
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
4
|
+
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
|
+
|
|
8
|
+
var LayoutRowAndColumns = function LayoutRowAndColumns(props) {
|
|
9
|
+
return ___EmotionJSX("svg", _extends({
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
13
|
+
}, props), ___EmotionJSX("path", {
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
clipRule: "evenodd",
|
|
16
|
+
d: "M0 2a2 2 0 012-2h20a2 2 0 012 2v20a2 2 0 01-2 2H2a2 2 0 01-2-2V2zm22 0H2v9h20V2zm0 11h-9v9h9v-9zm-11 0H2v9h9v-9z",
|
|
17
|
+
fill: "currentColor"
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default LayoutRowAndColumns;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "core-js/modules/es.object.assign.js";
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
4
|
+
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
|
+
|
|
8
|
+
var LayoutRowsAndColumn = function LayoutRowsAndColumn(props) {
|
|
9
|
+
return ___EmotionJSX("svg", _extends({
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
13
|
+
}, props), ___EmotionJSX("path", {
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
clipRule: "evenodd",
|
|
16
|
+
d: "M0 2a2 2 0 012-2h20a2 2 0 012 2v20a2 2 0 01-2 2H2a2 2 0 01-2-2V2zm22 0h-9v20h9V2zM2 2h9v9H2V2zm0 11v9h9v-9H2z",
|
|
17
|
+
fill: "currentColor"
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default LayoutRowsAndColumn;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import "core-js/modules/es.object.assign.js";
|
|
2
|
+
|
|
3
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
4
|
+
|
|
5
|
+
import * as React from 'react';
|
|
6
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
|
7
|
+
|
|
8
|
+
var LayoutRows = function LayoutRows(props) {
|
|
9
|
+
return ___EmotionJSX("svg", _extends({
|
|
10
|
+
viewBox: "0 0 24 24",
|
|
11
|
+
fill: "none",
|
|
12
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
13
|
+
}, props), ___EmotionJSX("path", {
|
|
14
|
+
fillRule: "evenodd",
|
|
15
|
+
clipRule: "evenodd",
|
|
16
|
+
d: "M2 0a2 2 0 00-2 2v20a2 2 0 002 2h20a2 2 0 002-2V2a2 2 0 00-2-2H2zm0 2h20v9H2V2zm0 11v9h20v-9H2z",
|
|
17
|
+
fill: "currentColor"
|
|
18
|
+
}));
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default LayoutRows;
|
package/es/icons/index.js
CHANGED
|
@@ -59,4 +59,10 @@ export { default as IconReset } from './icon-reset';
|
|
|
59
59
|
export { default as IconDrag } from './icon-drag';
|
|
60
60
|
export { default as IconLocation } from './icon-location';
|
|
61
61
|
export { default as IconPlay } from './icon-play';
|
|
62
|
-
export { default as IconArchive } from './icon-archive';
|
|
62
|
+
export { default as IconArchive } from './icon-archive';
|
|
63
|
+
export { default as ColumnsAndRow } from './icon-columns-and-row';
|
|
64
|
+
export { default as ColumnAndRows } from './icon-column-and-rows';
|
|
65
|
+
export { default as Columns } from './icon-columns';
|
|
66
|
+
export { default as Rows } from './icon-rows';
|
|
67
|
+
export { default as RowAndColumns } from './icon-row-and-columns';
|
|
68
|
+
export { default as RowsAndColumn } from './icon-rows-and-column';
|