@desynova-digital/components 8.13.6 → 8.14.2
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/atoms/cardStack/cardStack.js +0 -3
- package/atoms/inputText/inputText.js +4 -8
- package/atoms/popup/popup.js +2 -2
- package/atoms/sideBar/sidebar.js +2 -1
- package/atoms/sideBar/sidebar.jsx +2 -1
- package/molecules/carousel/carousel.js +1 -1
- package/molecules/table/table.js +1 -1
- package/molecules/table/table.story.js +2 -0
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < argument
|
|
|
8
8
|
|
|
9
9
|
var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"]) _i["return"](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError("Invalid attempt to destructure non-iterable instance"); } }; }();
|
|
10
10
|
|
|
11
|
-
var _templateObject = _taggedTemplateLiteral(['\n background: transparent;\n font-family: \'SFUIText-Medium\';\n position: relative;\n width: 100%;\n display: block;\n\n > label {\n color: #999999;\n font-size: 14px;\n\n font-family: inherit;\n position: absolute;\n pointer-events: none;\n left: 0px;\n top: 5px;\n transition: 0.2s ease all;\n -moz-transition: 0.2s ease all;\n -webkit-transition: 0.2s ease all;\n }\n > input:focus ~ label {\n top: -10px;\n left: 0px;\n font-size: 10px;\n color: #999999;\n text-transform: capitalize;\n }\n
|
|
11
|
+
var _templateObject = _taggedTemplateLiteral(['\n background: transparent;\n font-family: \'SFUIText-Medium\';\n position: relative;\n width: 100%;\n display: block;\n\n > label {\n color: #999999;\n font-size: 14px;\n\n font-family: inherit;\n position: absolute;\n pointer-events: none;\n left: 0px;\n top: 5px;\n transition: 0.2s ease all;\n -moz-transition: 0.2s ease all;\n -webkit-transition: 0.2s ease all;\n }\n > input:focus ~ label {\n top: -10px;\n left: 0px;\n font-size: 10px;\n color: #999999;\n text-transform: capitalize;\n }\n > input ~ label.floaton {\n top: -5px;\n left: 0px;\n font-size: 10px;\n color: #999999;\n text-transform: capitalize;\n }\n'], ['\n background: transparent;\n font-family: \'SFUIText-Medium\';\n position: relative;\n width: 100%;\n display: block;\n\n > label {\n color: #999999;\n font-size: 14px;\n\n font-family: inherit;\n position: absolute;\n pointer-events: none;\n left: 0px;\n top: 5px;\n transition: 0.2s ease all;\n -moz-transition: 0.2s ease all;\n -webkit-transition: 0.2s ease all;\n }\n > input:focus ~ label {\n top: -10px;\n left: 0px;\n font-size: 10px;\n color: #999999;\n text-transform: capitalize;\n }\n > input ~ label.floaton {\n top: -5px;\n left: 0px;\n font-size: 10px;\n color: #999999;\n text-transform: capitalize;\n }\n']),
|
|
12
12
|
_templateObject2 = _taggedTemplateLiteral(['\n color: ', ';\n padding-top: 5px;\n display: inline-block;\n font-size: 12px;\n font-family: inherit;\n width: 100%;\n text-align: left;\n'], ['\n color: ', ';\n padding-top: 5px;\n display: inline-block;\n font-size: 12px;\n font-family: inherit;\n width: 100%;\n text-align: left;\n']),
|
|
13
13
|
_templateObject3 = _taggedTemplateLiteral(['\n background: none;\n border: none;\n cursor: pointer;\n position: absolute;\n right: 0;\n top: 5px;\n &:focus {\n outline: none;\n }\n'], ['\n background: none;\n border: none;\n cursor: pointer;\n position: absolute;\n right: 0;\n top: 5px;\n &:focus {\n outline: none;\n }\n']),
|
|
14
14
|
_templateObject4 = _taggedTemplateLiteral(['\n position: absolute;\n right: 0px;\n top: 0px;\n background-color: #303F51;\n border-radius: 12px;\n font-size: 12px;\n padding: 5px 10px;\n color: #FFFFFF;\n'], ['\n position: absolute;\n right: 0px;\n top: 0px;\n background-color: #303F51;\n border-radius: 12px;\n font-size: 12px;\n padding: 5px 10px;\n color: #FFFFFF;\n']),
|
|
@@ -38,9 +38,7 @@ function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in ob
|
|
|
38
38
|
|
|
39
39
|
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
40
40
|
|
|
41
|
-
var InputTextDiv = _styledComponents2.default.div(_templateObject
|
|
42
|
-
return props.capitalizeFirstLetter ? 'capitalize' : '';
|
|
43
|
-
});
|
|
41
|
+
var InputTextDiv = _styledComponents2.default.div(_templateObject);
|
|
44
42
|
|
|
45
43
|
var InputError = _styledComponents2.default.span(_templateObject2, function (props) {
|
|
46
44
|
return _tokens.colors[props.theme].inputError.color;
|
|
@@ -55,8 +53,7 @@ var InputText = function InputText(_ref) {
|
|
|
55
53
|
defaultValue = _ref.defaultValue,
|
|
56
54
|
type = _ref.type,
|
|
57
55
|
showLengthCount = _ref.showLengthCount,
|
|
58
|
-
|
|
59
|
-
props = _objectWithoutProperties(_ref, ['maxLength', 'defaultValue', 'type', 'showLengthCount', 'capitalizeFirstLetter']);
|
|
56
|
+
props = _objectWithoutProperties(_ref, ['maxLength', 'defaultValue', 'type', 'showLengthCount']);
|
|
60
57
|
|
|
61
58
|
var _useState = (0, _react.useState)(true),
|
|
62
59
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -88,7 +85,7 @@ var InputText = function InputText(_ref) {
|
|
|
88
85
|
|
|
89
86
|
return _react2.default.createElement(
|
|
90
87
|
InputTextDiv,
|
|
91
|
-
{ theme: props.theme
|
|
88
|
+
{ theme: props.theme },
|
|
92
89
|
_react2.default.createElement(InputText.Element, _extends({ type: hidden ? type : 'text', value: props.value, defaultValue: defaultValue }, props, { maxLength: maxLength || '' })),
|
|
93
90
|
props.label ? _react2.default.createElement(
|
|
94
91
|
'label',
|
|
@@ -198,7 +195,6 @@ InputText.propTypes = {
|
|
|
198
195
|
/** The (HTML) maxLength for the input. */
|
|
199
196
|
maxLength: _propTypes2.default.number,
|
|
200
197
|
showLengthCount: _propTypes2.default.bool,
|
|
201
|
-
capitalizeFirstLetter: _propTypes2.default.bool,
|
|
202
198
|
theme: _propTypes2.default.oneOf(['light', 'dark'])
|
|
203
199
|
|
|
204
200
|
/** deprecate error string prop */
|
package/atoms/popup/popup.js
CHANGED
|
@@ -165,7 +165,7 @@ var Popup = function (_Component) {
|
|
|
165
165
|
iconWidth: 18,
|
|
166
166
|
iconHeight: 18,
|
|
167
167
|
icon: 'users',
|
|
168
|
-
iconBackground:
|
|
168
|
+
iconBackground: false
|
|
169
169
|
}),
|
|
170
170
|
_react2.default.createElement(
|
|
171
171
|
'p',
|
|
@@ -178,7 +178,7 @@ var Popup = function (_Component) {
|
|
|
178
178
|
iconWidth: 12,
|
|
179
179
|
iconHeight: 12,
|
|
180
180
|
icon: 'cross',
|
|
181
|
-
iconBackground:
|
|
181
|
+
iconBackground: false,
|
|
182
182
|
onClick: function onClick() {
|
|
183
183
|
_this2.cancelClick();
|
|
184
184
|
}
|
package/atoms/sideBar/sidebar.js
CHANGED
|
@@ -119,7 +119,7 @@ var SideBar = function (_Component) {
|
|
|
119
119
|
iconWidth: 12,
|
|
120
120
|
iconHeight: 12,
|
|
121
121
|
icon: 'cross',
|
|
122
|
-
iconBackground:
|
|
122
|
+
iconBackground: false,
|
|
123
123
|
onClick: function onClick() {
|
|
124
124
|
_this2.buttonClick('cancel');
|
|
125
125
|
}
|
|
@@ -137,6 +137,7 @@ var SideBar = function (_Component) {
|
|
|
137
137
|
return _react2.default.createElement(
|
|
138
138
|
'div',
|
|
139
139
|
{
|
|
140
|
+
key: object.field,
|
|
140
141
|
className: 'btn ' + (object.type || 'default'),
|
|
141
142
|
onClick: function onClick() {
|
|
142
143
|
_this2.buttonClick(object.field);
|
|
@@ -173,7 +173,7 @@ export default class SideBar extends Component {
|
|
|
173
173
|
iconWidth={12}
|
|
174
174
|
iconHeight={12}
|
|
175
175
|
icon="cross"
|
|
176
|
-
iconBackground=
|
|
176
|
+
iconBackground={false}
|
|
177
177
|
onClick={() => {
|
|
178
178
|
this.buttonClick('cancel');
|
|
179
179
|
}}
|
|
@@ -187,6 +187,7 @@ export default class SideBar extends Component {
|
|
|
187
187
|
sideBarButtonObject.map( (object) => {
|
|
188
188
|
return (
|
|
189
189
|
<div
|
|
190
|
+
key={object.field}
|
|
190
191
|
className={`btn ${object.type || 'default'}`}
|
|
191
192
|
onClick={ () => { this.buttonClick(object.field) }}
|
|
192
193
|
>
|
package/molecules/table/table.js
CHANGED
|
@@ -600,7 +600,7 @@ var Table = function (_Component) {
|
|
|
600
600
|
selectedRows: [],
|
|
601
601
|
showColumnArr: spiltColumns.showColumnArr ? spiltColumns.showColumnArr : [],
|
|
602
602
|
// isAllRowsSelected:false,
|
|
603
|
-
searchedText: ''
|
|
603
|
+
searchedText: props.searchValue || ''
|
|
604
604
|
};
|
|
605
605
|
|
|
606
606
|
return _this;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desynova-digital/components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.14.2",
|
|
4
4
|
"description": "Components for Desynova Digital",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "desynova-digital",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": "desynova-digital",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@desynova-digital/tokens": "8.
|
|
10
|
+
"@desynova-digital/tokens": "8.14.2",
|
|
11
11
|
"prop-types": "^15.7.2",
|
|
12
12
|
"styled-components": "^4.3.2"
|
|
13
13
|
},
|