pallote-react 0.3.2 → 0.3.3
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.
|
@@ -22,8 +22,8 @@ const Divider = _ref => {
|
|
|
22
22
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
23
|
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
24
24
|
className: (0, _classnames.default)(['divider', {
|
|
25
|
-
["divider
|
|
26
|
-
["divider
|
|
25
|
+
["divider-".concat(direction)]: direction,
|
|
26
|
+
["divider-".concat(size)]: size
|
|
27
27
|
}, className])
|
|
28
28
|
}, props));
|
|
29
29
|
};
|
package/dist/components/List.js
CHANGED
|
@@ -22,7 +22,7 @@ const List = _ref => {
|
|
|
22
22
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
23
23
|
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
24
24
|
className: (0, _classnames.default)(['list', {
|
|
25
|
-
'list
|
|
25
|
+
'list-dense': dense
|
|
26
26
|
}, className])
|
|
27
27
|
}, props), children);
|
|
28
28
|
};
|
|
@@ -24,12 +24,12 @@ const ListItem = _ref => {
|
|
|
24
24
|
} = _ref,
|
|
25
25
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
27
|
-
className: (0, _classnames.default)(['
|
|
28
|
-
'
|
|
29
|
-
'
|
|
27
|
+
className: (0, _classnames.default)(['list_item', {
|
|
28
|
+
'list_item-dense': dense,
|
|
29
|
+
'list_item-bold': bold
|
|
30
30
|
}, className])
|
|
31
31
|
}, props), icon ? /*#__PURE__*/_react.default.createElement("div", {
|
|
32
|
-
className: '
|
|
32
|
+
className: 'list_itemIcon'
|
|
33
33
|
}, icon) : null, /*#__PURE__*/_react.default.createElement(_Text.Text, {
|
|
34
34
|
weight: bold === true ? 'bold' : ''
|
|
35
35
|
}, children));
|
|
@@ -24,8 +24,8 @@ const Status = _ref => {
|
|
|
24
24
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
25
|
return /*#__PURE__*/_react.default.createElement(_Text.Text, _extends({
|
|
26
26
|
className: (0, _classnames.default)(['status', {
|
|
27
|
-
["status
|
|
28
|
-
'status
|
|
27
|
+
["status-".concat(color)]: color,
|
|
28
|
+
'status-dense': dense
|
|
29
29
|
}, className])
|
|
30
30
|
}, props), children);
|
|
31
31
|
};
|
|
@@ -25,24 +25,24 @@ const Switch = _ref => {
|
|
|
25
25
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
26
26
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
27
27
|
className: (0, _classnames.default)(['switch', {
|
|
28
|
-
'switch
|
|
28
|
+
'switch-disabled': disabled
|
|
29
29
|
}, className])
|
|
30
30
|
}, startLabel ? /*#__PURE__*/_react.default.createElement(_Text.Text, {
|
|
31
|
-
className: (0, _classnames.default)('
|
|
31
|
+
className: (0, _classnames.default)('switch_label'),
|
|
32
32
|
variant: "body"
|
|
33
33
|
}, startLabel) : null, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
34
|
-
className: (0, _classnames.default)('
|
|
34
|
+
className: (0, _classnames.default)('switch_input'),
|
|
35
35
|
type: "checkbox",
|
|
36
36
|
name: id,
|
|
37
37
|
id: id,
|
|
38
38
|
disabled: disabled
|
|
39
39
|
}, props)), /*#__PURE__*/_react.default.createElement("label", {
|
|
40
|
-
className: (0, _classnames.default)('
|
|
40
|
+
className: (0, _classnames.default)('switch_switch'),
|
|
41
41
|
htmlFor: id
|
|
42
42
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
43
|
-
className: (0, _classnames.default)('
|
|
43
|
+
className: (0, _classnames.default)('switch_toggle')
|
|
44
44
|
})), endLabel ? /*#__PURE__*/_react.default.createElement(_Text.Text, {
|
|
45
|
-
className: (0, _classnames.default)('
|
|
45
|
+
className: (0, _classnames.default)('switch_label'),
|
|
46
46
|
variant: "body"
|
|
47
47
|
}, endLabel) : null);
|
|
48
48
|
};
|
package/dist/components/Tag.js
CHANGED
|
@@ -24,8 +24,8 @@ const Tag = _ref => {
|
|
|
24
24
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
25
25
|
return /*#__PURE__*/_react.default.createElement(_Text.Text, _extends({
|
|
26
26
|
className: (0, _classnames.default)(['tag', {
|
|
27
|
-
["tag
|
|
28
|
-
'tag
|
|
27
|
+
["tag-".concat(color)]: color,
|
|
28
|
+
'tag-dense': dense
|
|
29
29
|
}, className])
|
|
30
30
|
}, props), children);
|
|
31
31
|
};
|
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.3",
|
|
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.5",
|
|
34
34
|
"react": "^18.2.0",
|
|
35
35
|
"react-dom": "^18.2.0",
|
|
36
36
|
"react-router-dom": "^6.15.0",
|