pallote-react 0.2.27 → 0.2.28

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.
@@ -37,19 +37,19 @@ const Button = _ref => {
37
37
  }
38
38
  return /*#__PURE__*/_react.default.createElement(Component, _extends({
39
39
  className: (0, _classnames.default)(['button', {
40
- ["button--".concat(size)]: size,
41
- ["button--".concat(color)]: color,
42
- ["button--".concat(kind)]: kind,
43
- ["button--".concat(variant)]: variant,
44
- 'button--fullWidth': fullWidth,
45
- 'button--disabled': disabled
40
+ ["button-".concat(size)]: size,
41
+ ["button-".concat(color)]: color,
42
+ ["button-".concat(kind)]: kind,
43
+ ["button-".concat(variant)]: variant,
44
+ 'button-fullWidth': fullWidth,
45
+ 'button-disabled': disabled
46
46
  }, className]),
47
47
  disabled: disabled
48
48
  }, props), content);
49
49
  };
50
50
  exports.Button = Button;
51
51
  Button.propTypes = {
52
- color: _propTypes.default.oneOf(['black', 'white', 'grey', 'primary', 'secondary', 'highlight', 'success', 'info', 'warning', 'error', 'default', 'contrast']),
52
+ color: _propTypes.default.oneOf(['primary', 'secondary', 'grey', 'success', 'info', 'warning', 'error', 'main', 'contrast']),
53
53
  size: _propTypes.default.oneOf(['xs', 'sm', 'md', 'lg']),
54
54
  kind: _propTypes.default.oneOf(['text', 'icon']),
55
55
  variant: _propTypes.default.oneOf(['fill', 'stroke', 'transparent']),
@@ -8,7 +8,7 @@ exports.Buttons = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
- const _excluded = ["direction", "spacing", "className", "children"];
11
+ const _excluded = ["direction", "fullWidth", "wide", "className", "children"];
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
  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); }
14
14
  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; }
@@ -16,26 +16,28 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
16
16
  const Buttons = _ref => {
17
17
  let {
18
18
  direction,
19
- spacing,
19
+ fullWidth,
20
+ wide,
20
21
  className,
21
22
  children
22
23
  } = _ref,
23
24
  props = _objectWithoutProperties(_ref, _excluded);
24
25
  return /*#__PURE__*/_react.default.createElement("div", _extends({
25
26
  className: (0, _classnames.default)(['buttons', {
26
- ["buttons--".concat(direction)]: direction,
27
- ["buttons--".concat(spacing)]: spacing
27
+ ["buttons-".concat(direction)]: direction,
28
+ 'buttons-fullWidth': fullWidth,
29
+ 'buttons-wide': wide
28
30
  }, className])
29
31
  }, props), children);
30
32
  };
31
33
  exports.Buttons = Buttons;
32
34
  Buttons.propTypes = {
33
35
  direction: _propTypes.default.oneOf(['landscape', 'portrait']),
34
- spacing: _propTypes.default.oneOf(['sm', 'md', 'lg']),
36
+ fullWidth: _propTypes.default.bool,
37
+ wide: _propTypes.default.bool,
35
38
  className: _propTypes.default.node,
36
39
  children: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.object])
37
40
  };
38
41
  Buttons.defaultProps = {
39
- direction: 'landscape',
40
- spacing: 'md'
42
+ direction: 'landscape'
41
43
  };
@@ -54,7 +54,7 @@ const Card = _ref => {
54
54
  exports.Card = Card;
55
55
  Card.propTypes = {
56
56
  size: _propTypes.default.oneOf(['xs', 'sm', 'md', 'lg', 'xl']),
57
- fill: _propTypes.default.oneOf(['black', 'white', 'background', 'paper', 'primary', 'secondary', 'highlight', 'success', 'info', 'warning', 'error']),
57
+ fill: _propTypes.default.oneOf(['black', 'white', 'background', 'paper', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
58
58
  direction: _propTypes.default.oneOf(['portrait', 'landscape']),
59
59
  align: _propTypes.default.oneOf(['left', 'center', 'right']),
60
60
  noPadding: _propTypes.default.bool,
@@ -44,7 +44,7 @@ const Chip = _ref => {
44
44
  };
45
45
  exports.Chip = Chip;
46
46
  Chip.propTypes = {
47
- color: _propTypes.default.oneOf(['paper', 'primary', 'secondary', 'highlight', 'success', 'info', 'warning', 'error']),
47
+ color: _propTypes.default.oneOf(['paper', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
48
48
  dense: _propTypes.default.bool,
49
49
  avatar: _propTypes.default.node,
50
50
  disabled: _propTypes.default.bool,
@@ -45,8 +45,8 @@ const Layer = _ref => {
45
45
  };
46
46
  exports.Layer = Layer;
47
47
  Layer.propTypes = {
48
- fill: _propTypes.default.oneOf(['black', 'white', 'background', 'paper', 'grey90', 'grey80', 'grey70', 'grey60', 'grey50', 'grey40', 'grey30', 'grey20', 'grey10', 'grey5', 'primary', 'secondary', 'highlight', 'success', 'info', 'warning', 'error']),
49
- stroke: _propTypes.default.oneOf(['black', 'white', 'background', 'paper', 'grey-90', 'grey-80', 'grey-70', 'grey-60', 'grey-50', 'grey-40', 'grey-30', 'grey-20', 'grey-10', 'grey-5', 'primary', 'secondary', 'highlight', 'success', 'info', 'warning', 'error']),
48
+ fill: _propTypes.default.oneOf(['black', 'white', 'background', 'paper', 'grey90', 'grey80', 'grey70', 'grey60', 'grey50', 'grey40', 'grey30', 'grey20', 'grey10', 'grey5', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
49
+ stroke: _propTypes.default.oneOf(['black', 'white', 'background', 'paper', 'grey-90', 'grey-80', 'grey-70', 'grey-60', 'grey-50', 'grey-40', 'grey-30', 'grey-20', 'grey-10', 'grey-5', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
50
50
  customFill: _propTypes.default.string,
51
51
  customStroke: _propTypes.default.string,
52
52
  hasHover: _propTypes.default.bool,
@@ -33,7 +33,7 @@ const Link = _ref => {
33
33
  exports.Link = Link;
34
34
  Link.propTypes = {
35
35
  icon: _propTypes.default.node,
36
- color: _propTypes.default.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'highlight', 'success', 'info', 'warning', 'error']),
36
+ color: _propTypes.default.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
37
37
  className: _propTypes.default.node,
38
38
  children: _propTypes.default.string
39
39
  };
@@ -43,7 +43,7 @@ Paragraph.propTypes = {
43
43
  weight: _propTypes.default.oneOf(['light', 'regular', 'bold']),
44
44
  underline: _propTypes.default.bool,
45
45
  italic: _propTypes.default.bool,
46
- color: _propTypes.default.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'highlight', 'success', 'info', 'warning', 'error']),
46
+ color: _propTypes.default.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
47
47
  className: _propTypes.default.node,
48
48
  children: _propTypes.default.any
49
49
  };
@@ -31,7 +31,7 @@ const Tag = _ref => {
31
31
  };
32
32
  exports.Tag = Tag;
33
33
  Tag.propTypes = {
34
- color: _propTypes.default.oneOf(['primary', 'secondary', 'highlight', 'grey', 'success', 'info', 'warning', 'error']),
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
37
  children: _propTypes.default.string
@@ -51,7 +51,7 @@ Text.propTypes = {
51
51
  underline: _propTypes.default.bool,
52
52
  italic: _propTypes.default.bool,
53
53
  code: _propTypes.default.bool,
54
- color: _propTypes.default.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'highlight', 'success', 'info', 'warning', 'error']),
54
+ color: _propTypes.default.oneOf(['default', 'alt', 'disabled', 'contrast', 'contrastAlt', 'contrastDisabled', 'primary', 'secondary', 'success', 'info', 'warning', 'error']),
55
55
  component: _propTypes.default.oneOf(['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'p', 'span', 'label', 'legend']),
56
56
  className: _propTypes.default.node,
57
57
  children: _propTypes.default.any
package/dist/index.scss CHANGED
@@ -5,4 +5,4 @@ $icons-path: '~/public/icons/';
5
5
 
6
6
  .snippet__wrapper {
7
7
  width: 100%;
8
- }
8
+ }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": {
5
5
  "name": "arnymax"
6
6
  },
7
- "version": "0.2.27",
7
+ "version": "0.2.28",
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.2.41",
33
+ "pallote-css": "^0.2.46",
34
34
  "react": "^18.2.0",
35
35
  "react-dom": "^18.2.0",
36
36
  "react-router-dom": "^6.15.0",