pallote-react 0.3.6 → 0.3.7
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/dist/components/Button.js +1 -1
- package/dist/components/Buttons.js +1 -1
- package/dist/components/Card.js +1 -1
- package/dist/components/CardActions.js +1 -1
- package/dist/components/CardContent.js +1 -1
- package/dist/components/CardHeader.js +1 -1
- package/dist/components/Chip.js +1 -1
- package/dist/components/Component.js +1 -1
- package/dist/components/Grid.js +1 -1
- package/dist/components/Link.js +1 -1
- package/dist/components/ListItem.js +1 -1
- package/dist/components/ModalActions.js +1 -1
- package/dist/components/ModalContent.js +1 -1
- package/dist/components/Nav.js +1 -1
- package/dist/components/NavBar.js +1 -1
- package/dist/components/NavGroup.js +1 -1
- package/dist/components/Page.js +1 -1
- package/dist/components/Paragraph.js +1 -1
- package/dist/components/Section.js +1 -1
- package/dist/components/SectionContent.js +1 -1
- package/dist/components/SectionHeader.js +7 -3
- package/dist/components/Status.js +1 -1
- package/dist/components/Table.js +1 -1
- package/dist/components/TableBody.js +1 -1
- package/dist/components/TableHead.js +1 -1
- package/dist/components/TableRow.js +1 -1
- package/dist/components/Tabs.js +2 -2
- package/dist/components/Tag.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/utilities/Color.js +2 -2
- package/dist/utilities/Display.js +1 -1
- package/dist/utilities/Text.js +1 -1
- package/package.json +2 -2
|
@@ -60,5 +60,5 @@ Button.propTypes = {
|
|
|
60
60
|
iconLeft: _propTypes.default.node,
|
|
61
61
|
iconRight: _propTypes.default.node,
|
|
62
62
|
className: _propTypes.default.node,
|
|
63
|
-
children: _propTypes.default.
|
|
63
|
+
children: _propTypes.default.node
|
|
64
64
|
};
|
|
@@ -36,7 +36,7 @@ Buttons.propTypes = {
|
|
|
36
36
|
fullWidth: _propTypes.default.bool,
|
|
37
37
|
wide: _propTypes.default.bool,
|
|
38
38
|
className: _propTypes.default.node,
|
|
39
|
-
children: _propTypes.default.
|
|
39
|
+
children: _propTypes.default.node
|
|
40
40
|
};
|
|
41
41
|
Buttons.defaultProps = {
|
|
42
42
|
direction: 'landscape'
|
package/dist/components/Card.js
CHANGED
package/dist/components/Chip.js
CHANGED
|
@@ -33,6 +33,6 @@ Component.propTypes = {
|
|
|
33
33
|
prop1: _propTypes.default.oneOf(['option1', 'option2']),
|
|
34
34
|
prop2: _propTypes.default.bool,
|
|
35
35
|
className: _propTypes.default.node,
|
|
36
|
-
children: _propTypes.default.
|
|
36
|
+
children: _propTypes.default.node
|
|
37
37
|
};
|
|
38
38
|
Component.defaultProps = {};
|
package/dist/components/Grid.js
CHANGED
|
@@ -69,5 +69,5 @@ Grid.propTypes = {
|
|
|
69
69
|
xl: _propTypes.default.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
|
|
70
70
|
spacing: _propTypes.default.oneOf([1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]),
|
|
71
71
|
className: _propTypes.default.node,
|
|
72
|
-
children: _propTypes.default.
|
|
72
|
+
children: _propTypes.default.node
|
|
73
73
|
};
|
package/dist/components/Link.js
CHANGED
|
@@ -35,7 +35,7 @@ Link.propTypes = {
|
|
|
35
35
|
icon: _propTypes.default.node,
|
|
36
36
|
color: _propTypes.default.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
|
|
37
37
|
className: _propTypes.default.node,
|
|
38
|
-
children: _propTypes.default.
|
|
38
|
+
children: _propTypes.default.node
|
|
39
39
|
};
|
|
40
40
|
Link.defaultProps = {
|
|
41
41
|
children: 'Link'
|
|
@@ -36,7 +36,7 @@ ListItem.propTypes = {
|
|
|
36
36
|
icon: _propTypes.default.node,
|
|
37
37
|
bold: _propTypes.default.bool,
|
|
38
38
|
className: _propTypes.default.node,
|
|
39
|
-
children: _propTypes.default.
|
|
39
|
+
children: _propTypes.default.node
|
|
40
40
|
};
|
|
41
41
|
ListItem.defaultProps = {
|
|
42
42
|
children: 'List item'
|
package/dist/components/Nav.js
CHANGED
package/dist/components/Page.js
CHANGED
|
@@ -45,7 +45,7 @@ Paragraph.propTypes = {
|
|
|
45
45
|
italic: _propTypes.default.bool,
|
|
46
46
|
color: _propTypes.default.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
|
|
47
47
|
className: _propTypes.default.node,
|
|
48
|
-
children: _propTypes.default.
|
|
48
|
+
children: _propTypes.default.node
|
|
49
49
|
};
|
|
50
50
|
Paragraph.defaultProps = {
|
|
51
51
|
variant: 'body',
|
|
@@ -30,7 +30,7 @@ exports.SectionContent = SectionContent;
|
|
|
30
30
|
SectionContent.propTypes = {
|
|
31
31
|
align: _propTypes.default.oneOf(['left', 'center', 'right']),
|
|
32
32
|
className: _propTypes.default.node,
|
|
33
|
-
children: _propTypes.default.
|
|
33
|
+
children: _propTypes.default.node
|
|
34
34
|
};
|
|
35
35
|
SectionContent.defaultProps = {
|
|
36
36
|
align: 'left'
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _Text = require("../utilities/Text");
|
|
12
|
-
const _excluded = ["label", "title", "promoteTitle", "titleComponent", "subtitle", "className"];
|
|
12
|
+
const _excluded = ["label", "title", "promoteTitle", "titleComponent", "subtitle", "actions", "className"];
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
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); }
|
|
15
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
@@ -21,6 +21,7 @@ const SectionHeader = _ref => {
|
|
|
21
21
|
promoteTitle,
|
|
22
22
|
titleComponent,
|
|
23
23
|
subtitle,
|
|
24
|
+
actions,
|
|
24
25
|
className
|
|
25
26
|
} = _ref,
|
|
26
27
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -33,7 +34,9 @@ const SectionHeader = _ref => {
|
|
|
33
34
|
component: titleComponent || (promoteTitle ? 'h1' : 'h2')
|
|
34
35
|
}, title), subtitle ? /*#__PURE__*/_react.default.createElement(_Text.Text, {
|
|
35
36
|
className: (0, _classnames.default)('section_subtitle')
|
|
36
|
-
}, subtitle) : null
|
|
37
|
+
}, subtitle) : null, actions ? /*#__PURE__*/_react.default.createElement("div", {
|
|
38
|
+
className: "section_actions"
|
|
39
|
+
}, actions) : null);
|
|
37
40
|
};
|
|
38
41
|
exports.SectionHeader = SectionHeader;
|
|
39
42
|
SectionHeader.propTypes = {
|
|
@@ -42,7 +45,8 @@ SectionHeader.propTypes = {
|
|
|
42
45
|
promoteTitle: _propTypes.default.bool,
|
|
43
46
|
titleComponent: _propTypes.default.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p']),
|
|
44
47
|
subtitle: _propTypes.default.string,
|
|
45
|
-
|
|
48
|
+
actions: _propTypes.default.node,
|
|
49
|
+
className: _propTypes.default.node
|
|
46
50
|
};
|
|
47
51
|
SectionHeader.defaultProps = {
|
|
48
52
|
promoteTitle: false
|
|
@@ -34,7 +34,7 @@ Status.propTypes = {
|
|
|
34
34
|
color: _propTypes.default.oneOf(['inactive', 'success', 'info', 'warning', 'error']),
|
|
35
35
|
dense: _propTypes.default.bool,
|
|
36
36
|
className: _propTypes.default.node,
|
|
37
|
-
children: _propTypes.default.
|
|
37
|
+
children: _propTypes.default.node
|
|
38
38
|
};
|
|
39
39
|
Status.defaultProps = {
|
|
40
40
|
color: 'inactive',
|
package/dist/components/Table.js
CHANGED
package/dist/components/Tabs.js
CHANGED
|
@@ -24,7 +24,7 @@ const Tabs = _ref => {
|
|
|
24
24
|
};
|
|
25
25
|
exports.Tabs = Tabs;
|
|
26
26
|
Tabs.propTypes = {
|
|
27
|
-
children: _propTypes.default.any,
|
|
28
27
|
activeTab: _propTypes.default.any,
|
|
29
|
-
setActiveTab: _propTypes.default.any
|
|
28
|
+
setActiveTab: _propTypes.default.any,
|
|
29
|
+
children: _propTypes.default.node
|
|
30
30
|
};
|
package/dist/components/Tag.js
CHANGED
|
@@ -34,7 +34,7 @@ Tag.propTypes = {
|
|
|
34
34
|
color: _propTypes.default.oneOf(['primary', 'secondary', 'grey', 'success', 'info', 'warning', 'error']),
|
|
35
35
|
dense: _propTypes.default.bool,
|
|
36
36
|
className: _propTypes.default.node,
|
|
37
|
-
children: _propTypes.default.
|
|
37
|
+
children: _propTypes.default.node
|
|
38
38
|
};
|
|
39
39
|
Tag.defaultProps = {
|
|
40
40
|
color: 'primary',
|
package/dist/utilities/Color.js
CHANGED
|
@@ -46,6 +46,6 @@ Color.propTypes = {
|
|
|
46
46
|
stroke: _propTypes.default.oneOf(['main', 'contrast', 'grey90', 'grey80', 'grey70', 'grey60', 'grey50', 'grey40', 'grey30', 'grey20', 'grey10', 'grey5', 'default', 'paper', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
|
|
47
47
|
customFill: _propTypes.default.string,
|
|
48
48
|
customStroke: _propTypes.default.string,
|
|
49
|
-
className: _propTypes.default.
|
|
50
|
-
children: _propTypes.default.
|
|
49
|
+
className: _propTypes.default.node,
|
|
50
|
+
children: _propTypes.default.node
|
|
51
51
|
};
|
|
@@ -50,5 +50,5 @@ exports.Display = Display;
|
|
|
50
50
|
Display.propTypes = {
|
|
51
51
|
show: _propTypes.default.oneOf(['mobile-sm', 'mobile', 'tablet', 'laptop', 'desktop', 'touch']),
|
|
52
52
|
hide: _propTypes.default.oneOf(['mobile-sm', 'mobile', 'tablet', 'laptop', 'desktop', 'touch']),
|
|
53
|
-
children: _propTypes.default.
|
|
53
|
+
children: _propTypes.default.node
|
|
54
54
|
};
|
package/dist/utilities/Text.js
CHANGED
|
@@ -57,7 +57,7 @@ Text.propTypes = {
|
|
|
57
57
|
color: _propTypes.default.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
|
|
58
58
|
component: _propTypes.default.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'span', 'label', 'legend']),
|
|
59
59
|
className: _propTypes.default.node,
|
|
60
|
-
children: _propTypes.default.
|
|
60
|
+
children: _propTypes.default.node
|
|
61
61
|
};
|
|
62
62
|
Text.defaultProps = {
|
|
63
63
|
component: 'p'
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "arnymax"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.3.
|
|
7
|
+
"version": "0.3.7",
|
|
8
8
|
"private": false,
|
|
9
9
|
"keywords": [
|
|
10
10
|
"react",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"@testing-library/user-event": "^13.5.0",
|
|
31
31
|
"classnames": "^2.3.2",
|
|
32
32
|
"eslint": "^8.48.0",
|
|
33
|
-
"pallote-css": "^0.3.
|
|
33
|
+
"pallote-css": "^0.3.8",
|
|
34
34
|
"react": "^18.2.0",
|
|
35
35
|
"react-dom": "^18.2.0",
|
|
36
36
|
"react-router-dom": "^6.15.0",
|