@desynova-digital/components 8.5.4 → 8.7.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.
|
@@ -31,6 +31,10 @@ var _switch = require("../switch");
|
|
|
31
31
|
|
|
32
32
|
var _switch2 = _interopRequireDefault(_switch);
|
|
33
33
|
|
|
34
|
+
var _icon = require("../icon");
|
|
35
|
+
|
|
36
|
+
var _icon2 = _interopRequireDefault(_icon);
|
|
37
|
+
|
|
34
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
39
|
|
|
36
40
|
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
@@ -139,7 +143,12 @@ var Checkbox = function Checkbox(props) {
|
|
|
139
143
|
console.log(value);
|
|
140
144
|
}
|
|
141
145
|
})
|
|
142
|
-
) : null
|
|
146
|
+
) : null,
|
|
147
|
+
props.type === 'icon' && _react2.default.createElement(_icon2.default, {
|
|
148
|
+
name: props.value,
|
|
149
|
+
value: props.value,
|
|
150
|
+
fillRule: props.fillRule,
|
|
151
|
+
color: props.checked ? "#00CEC6" : "#AFB2BA" })
|
|
143
152
|
);
|
|
144
153
|
};
|
|
145
154
|
|
|
@@ -156,7 +165,8 @@ var CheckboxGroup = function CheckboxGroup(props) {
|
|
|
156
165
|
readOnly: props.readOnly || child.props.readOnly,
|
|
157
166
|
onChange: child.props.isDisabled ? props.onChange : function () {},
|
|
158
167
|
theme: props.theme,
|
|
159
|
-
type: props.type
|
|
168
|
+
type: props.type,
|
|
169
|
+
fillRule: props.fillRule || ''
|
|
160
170
|
}) : null;
|
|
161
171
|
})
|
|
162
172
|
);
|
|
@@ -173,7 +183,8 @@ Checkbox.propTypes = {
|
|
|
173
183
|
readOnly: _propTypes2.default.bool,
|
|
174
184
|
/** Callback function which is called when the user selects an option */
|
|
175
185
|
onChange: _propTypes2.default.func,
|
|
176
|
-
type: _propTypes2.default.oneOf(["default", "label", "switch"])
|
|
186
|
+
type: _propTypes2.default.oneOf(["default", "label", "switch"]),
|
|
187
|
+
fillRule: _propTypes2.default.string
|
|
177
188
|
};
|
|
178
189
|
|
|
179
190
|
Checkbox.defaultProps = {
|
|
@@ -208,6 +208,41 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
208
208
|
{ value: "four" },
|
|
209
209
|
"Option 4"
|
|
210
210
|
)
|
|
211
|
+
),
|
|
212
|
+
_react2.default.createElement(
|
|
213
|
+
_components.Checkbox.Group,
|
|
214
|
+
{
|
|
215
|
+
theme: "dark",
|
|
216
|
+
name: "example5",
|
|
217
|
+
onChange: function onChange(e) {
|
|
218
|
+
console.log(e.target.value, e.target.checked);
|
|
219
|
+
},
|
|
220
|
+
align: "horizontal",
|
|
221
|
+
selected: ["text_aligned_left"],
|
|
222
|
+
type: "icon"
|
|
223
|
+
},
|
|
224
|
+
_react2.default.createElement(_components.Checkbox, { value: "text_aligned_left" }),
|
|
225
|
+
_react2.default.createElement(_components.Checkbox, { value: "text_aligned_center" }),
|
|
226
|
+
_react2.default.createElement(_components.Checkbox, { value: "text_aligned_right" })
|
|
227
|
+
),
|
|
228
|
+
_react2.default.createElement(
|
|
229
|
+
_components.Checkbox.Group,
|
|
230
|
+
{
|
|
231
|
+
theme: "dark",
|
|
232
|
+
name: "example6",
|
|
233
|
+
onChange: function onChange(e) {
|
|
234
|
+
console.log(e.target.value, e.target.checked);
|
|
235
|
+
},
|
|
236
|
+
align: "horizontal",
|
|
237
|
+
selected: ["text_position_bottom"],
|
|
238
|
+
type: "icon",
|
|
239
|
+
width: 24,
|
|
240
|
+
height: 16,
|
|
241
|
+
fillRule: "evenodd"
|
|
242
|
+
},
|
|
243
|
+
_react2.default.createElement(_components.Checkbox, { value: "text_position_top" }),
|
|
244
|
+
_react2.default.createElement(_components.Checkbox, { value: "text_position_center" }),
|
|
245
|
+
_react2.default.createElement(_components.Checkbox, { value: "text_position_bottom" })
|
|
211
246
|
)
|
|
212
247
|
);
|
|
213
248
|
});
|
package/atoms/icon/icons.json
CHANGED
|
@@ -328,10 +328,10 @@
|
|
|
328
328
|
},
|
|
329
329
|
"delete": {
|
|
330
330
|
"paths": [
|
|
331
|
-
"
|
|
331
|
+
"M0.888889 14.2222C0.888889 15.2 1.68889 16 2.66667 16H9.77778C10.7556 16 11.5556 15.2 11.5556 14.2222V3.55556H0.888889V14.2222ZM12.4444 0.888889H9.33333L8.44445 0H4L3.11111 0.888889H0V2.66667H12.4444V0.888889Z"
|
|
332
332
|
],
|
|
333
|
-
"width":
|
|
334
|
-
"height":
|
|
333
|
+
"width": 13,
|
|
334
|
+
"height": 16
|
|
335
335
|
},
|
|
336
336
|
"volume": {
|
|
337
337
|
"paths": [
|
|
@@ -514,8 +514,8 @@
|
|
|
514
514
|
"paths": [
|
|
515
515
|
"M12.444 0H1.556C.692 0 0 .7 0 1.556v9.333c0 .855.692 1.555 1.556 1.555h10.888c.856 0 1.556-.7 1.556-1.555V1.556C14 .7 13.3 0 12.444 0zM6.222 5.444H5.056v-.388H3.5v2.333h1.556V7h1.166v.778a.78.78 0 0 1-.778.778H3.111a.78.78 0 0 1-.778-.778V4.667a.78.78 0 0 1 .778-.778h2.333a.78.78 0 0 1 .778.778v.777zm5.445 0H10.5v-.388H8.944v2.333H10.5V7h1.167v.778a.78.78 0 0 1-.778.778H8.556a.78.78 0 0 1-.778-.778V4.667a.78.78 0 0 1 .778-.778h2.333a.78.78 0 0 1 .778.778v.777z"
|
|
516
516
|
],
|
|
517
|
-
"width":
|
|
518
|
-
"height":
|
|
517
|
+
"width": 12,
|
|
518
|
+
"height": 12
|
|
519
519
|
},
|
|
520
520
|
"audio-track": {
|
|
521
521
|
"paths": [
|
|
@@ -561,10 +561,19 @@
|
|
|
561
561
|
},
|
|
562
562
|
"subtitle": {
|
|
563
563
|
"paths": [
|
|
564
|
-
"
|
|
564
|
+
"M10.8 0H1.2C0.54 0 0 0.54 0 1.2V8.4C0 9.06 0.54 9.6 1.2 9.6H10.8C11.46 9.6 12 9.06 12 8.4V1.2C12 0.54 11.46 0 10.8 0ZM1.2 4.8H3.6V6H1.2V4.8ZM1.2 8.4H7.2V7.2H1.2V8.4ZM10.8 8.4H8.4V7.2H10.8V8.4ZM4.8 6H10.8V4.8H4.8V6Z"
|
|
565
565
|
],
|
|
566
|
-
"width":
|
|
567
|
-
"height":
|
|
566
|
+
"width": 12,
|
|
567
|
+
"height": 12,
|
|
568
|
+
"fillRule": "evenodd"
|
|
569
|
+
},
|
|
570
|
+
"subtitle_assign": {
|
|
571
|
+
"paths": [
|
|
572
|
+
"M10.8 0H1.2C0.54 0 0 0.54 0 1.2V8.4C0 9.06 0.54 9.6 1.2 9.6H10.8C11.46 9.6 12 9.06 12 8.4V1.2C12 0.54 11.46 0 10.8 0ZM1.2 4.8H3.6V6H1.2V4.8ZM1.2 8.4H7.2V7.2H1.2V8.4ZM10.8 8.4H8.4V7.2H10.8V8.4ZM4.8 6H10.8V4.8H4.8V6Z"
|
|
573
|
+
],
|
|
574
|
+
"width": 12,
|
|
575
|
+
"height": 12,
|
|
576
|
+
"fillRule": "evenodd"
|
|
568
577
|
},
|
|
569
578
|
"align_bottom": {
|
|
570
579
|
"paths": ["M.5.5h23v15H.5z", "M4 10v1.778h16V10z"],
|
|
@@ -609,6 +618,13 @@
|
|
|
609
618
|
"width": 13,
|
|
610
619
|
"height": 13
|
|
611
620
|
},
|
|
621
|
+
"chat": {
|
|
622
|
+
"paths":[
|
|
623
|
+
"M7.8 1.2V5.4H1.902L1.2 6.102V1.2H7.8ZM8.4 0H0.6C0.27 0 0 0.27 0 0.6V9L2.4 6.6H8.4C8.73 6.6 9 6.33 9 6V0.6C9 0.27 8.73 0 8.4 0ZM11.4 2.4H10.2V7.8H2.4V9C2.4 9.33 2.67 9.6 3 9.6H9.6L12 12V3C12 2.67 11.73 2.4 11.4 2.4Z"
|
|
624
|
+
],
|
|
625
|
+
"width": 12,
|
|
626
|
+
"height": 12
|
|
627
|
+
},
|
|
612
628
|
"cut": {
|
|
613
629
|
"paths": [
|
|
614
630
|
"M7.368 6.28L12.742.946a.74.74 0 0 1 1.042 0 .728.728 0 0 1 0 1.034l-8.297 8.236c.259.436.408.944.408 1.486 0 1.616-1.32 2.926-2.948 2.926C1.32 14.628 0 13.318 0 11.702s1.32-2.925 2.947-2.925a2.95 2.95 0 0 1 1.498.405l1.881-1.868-1.881-1.868a2.95 2.95 0 0 1-1.498.405C1.32 5.851 0 4.541 0 2.926 0 1.31 1.32 0 2.947 0c1.628 0 2.948 1.31 2.948 2.926 0 .542-.15 1.05-.408 1.486L7.368 6.28zM4.015 3.934c.252-.263.406-.618.406-1.008 0-.808-.66-1.463-1.474-1.463s-1.473.655-1.473 1.463c0 .807.66 1.462 1.473 1.462a1.475 1.475 0 0 0 1.068-.454zm-.052 6.708a1.475 1.475 0 0 0-1.016-.403c-.814 0-1.473.655-1.473 1.463s.66 1.463 1.473 1.463c.814 0 1.474-.655 1.474-1.463a1.452 1.452 0 0 0-.458-1.06zm4.705-.997a.728.728 0 0 1-.001-1.034.74.74 0 0 1 1.042-.001l4.075 4.037a.728.728 0 0 1 0 1.035.74.74 0 0 1-1.041 0L8.668 9.646z"
|
|
@@ -1104,6 +1120,45 @@
|
|
|
1104
1120
|
],
|
|
1105
1121
|
"width": 16,
|
|
1106
1122
|
"height": 18
|
|
1123
|
+
},
|
|
1124
|
+
"text_aligned_right": {
|
|
1125
|
+
"paths":[
|
|
1126
|
+
"M0 1.77778V0H16V1.77778H0ZM5.33333 5.33333H16V3.55556H5.33333V5.33333ZM16 8.88889H0V7.11111H16V8.88889ZM5.33333 12.4444H16V10.6667H5.33333V12.4444ZM0 16H16V14.2222H0V16Z"
|
|
1127
|
+
],
|
|
1128
|
+
"width": 16,
|
|
1129
|
+
"height": 16
|
|
1130
|
+
},
|
|
1131
|
+
"text_aligned_center": {
|
|
1132
|
+
"paths":[
|
|
1133
|
+
"M0 1.77778V0H16V1.77778H0ZM3.55556 3.55556V5.33333H12.4444V3.55556H3.55556ZM16 8.88889H0V7.11111H16V8.88889ZM3.55556 10.6667V12.4444H12.4444V10.6667H3.55556ZM0 16H16V14.2222H0V16Z"
|
|
1134
|
+
],
|
|
1135
|
+
"width": 16,
|
|
1136
|
+
"height": 16
|
|
1137
|
+
},
|
|
1138
|
+
"text_aligned_left": {
|
|
1139
|
+
"paths":[
|
|
1140
|
+
"M0 1.77778V0H16V1.77778H0ZM10.6667 3.55556H0V5.33333H10.6667V3.55556ZM10.6667 10.6667H0V12.4444H10.6667V10.6667ZM16 8.88889H0V7.11111H16V8.88889ZM0 16H16V14.2222H0V16Z"
|
|
1141
|
+
],
|
|
1142
|
+
"width": 16,
|
|
1143
|
+
"height": 16
|
|
1144
|
+
},
|
|
1145
|
+
"text_position_top": {
|
|
1146
|
+
"paths": ["M0 0H24V16H0V0ZM2 2H22V14H2V2ZM4 5.77778V4H20V5.77778H4Z"],
|
|
1147
|
+
"width": 24,
|
|
1148
|
+
"height": 20,
|
|
1149
|
+
"fillRule": "evenodd"
|
|
1150
|
+
},
|
|
1151
|
+
"text_position_center": {
|
|
1152
|
+
"paths": ["M0 0H24V16H0V0ZM2 2H22V14H2V2ZM4 8.77778V7H20V8.77778H4Z"],
|
|
1153
|
+
"width": 24,
|
|
1154
|
+
"height": 20,
|
|
1155
|
+
"fillRule": "evenodd"
|
|
1156
|
+
},
|
|
1157
|
+
"text_position_bottom": {
|
|
1158
|
+
"paths": ["M0 0H24V16H0V0ZM2 2H22V14H2V2ZM4 11.7778V10H20V11.7778H4Z"],
|
|
1159
|
+
"width": 24,
|
|
1160
|
+
"height": 20,
|
|
1161
|
+
"fillRule": "evenodd"
|
|
1107
1162
|
}
|
|
1108
1163
|
}
|
|
1109
1164
|
}
|
|
@@ -11,7 +11,8 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [
|
|
|
11
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\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\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
|
-
_templateObject4 = _taggedTemplateLiteral(['\n
|
|
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']),
|
|
15
|
+
_templateObject5 = _taggedTemplateLiteral(['\n width: 100%;\n box-sizing: border-box;\n\n background: ', ';\n\n border: none;\n border-radius: 0px;\n -webkit-appearance: none;\n border-bottom: 1px solid\n ', ';\n\n font-family: \'SFUIText-Medium\';\n color: ', ';\n\n cursor: ', ';\n\n font-size: 14px;\n padding: 7px 0px 2px;\n margin-top: 15px;\n display: block;\n\n &:hover {\n border-color: ', ';\n }\n &:disabled:hover {\n border-color: ', ';\n }\n &:disabled {\n border-color: ', ';\n color: ', ';\n }\n &:focus {\n outline: none;\n }\n &::placeholder {\n color: ', ';\n\n opacity: ', ';\n transition: 0.2s ease all;\n }\n\n &:focus::placeholder {\n color: ', ';\n\n opacity: ', ';\n }\n'], ['\n width: 100%;\n box-sizing: border-box;\n\n background: ', ';\n\n border: none;\n border-radius: 0px;\n -webkit-appearance: none;\n border-bottom: 1px solid\n ', ';\n\n font-family: \'SFUIText-Medium\';\n color: ', ';\n\n cursor: ', ';\n\n font-size: 14px;\n padding: 7px 0px 2px;\n margin-top: 15px;\n display: block;\n\n &:hover {\n border-color: ', ';\n }\n &:disabled:hover {\n border-color: ', ';\n }\n &:disabled {\n border-color: ', ';\n color: ', ';\n }\n &:focus {\n outline: none;\n }\n &::placeholder {\n color: ', ';\n\n opacity: ', ';\n transition: 0.2s ease all;\n }\n\n &:focus::placeholder {\n color: ', ';\n\n opacity: ', ';\n }\n']);
|
|
15
16
|
|
|
16
17
|
var _react = require('react');
|
|
17
18
|
|
|
@@ -45,10 +46,14 @@ var InputError = _styledComponents2.default.span(_templateObject2, function (pro
|
|
|
45
46
|
|
|
46
47
|
var PasswordToggleButton = _styledComponents2.default.div(_templateObject3);
|
|
47
48
|
|
|
49
|
+
var CountWrappper = _styledComponents2.default.div(_templateObject4);
|
|
50
|
+
|
|
48
51
|
var InputText = function InputText(_ref) {
|
|
49
|
-
var
|
|
52
|
+
var maxlength = _ref.maxlength,
|
|
53
|
+
defaultValue = _ref.defaultValue,
|
|
50
54
|
type = _ref.type,
|
|
51
|
-
|
|
55
|
+
showLengthCount = _ref.showLengthCount,
|
|
56
|
+
props = _objectWithoutProperties(_ref, ['maxlength', 'defaultValue', 'type', 'showLengthCount']);
|
|
52
57
|
|
|
53
58
|
var _useState = (0, _react.useState)(true),
|
|
54
59
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -81,7 +86,7 @@ var InputText = function InputText(_ref) {
|
|
|
81
86
|
return _react2.default.createElement(
|
|
82
87
|
InputTextDiv,
|
|
83
88
|
{ theme: props.theme },
|
|
84
|
-
_react2.default.createElement(InputText.Element, _extends({ type: hidden ? type : 'text', value: props.value, defaultValue: defaultValue }, props)),
|
|
89
|
+
_react2.default.createElement(InputText.Element, _extends({ type: hidden ? type : 'text', value: props.value, defaultValue: defaultValue }, props, { maxLength: maxlength || '' })),
|
|
85
90
|
props.label ? _react2.default.createElement(
|
|
86
91
|
'label',
|
|
87
92
|
{
|
|
@@ -95,6 +100,13 @@ var InputText = function InputText(_ref) {
|
|
|
95
100
|
{ value: props.value, theme: props.theme, error: props.error },
|
|
96
101
|
errorMesssage
|
|
97
102
|
) : '',
|
|
103
|
+
maxlength && showLengthCount && _react2.default.createElement(
|
|
104
|
+
CountWrappper,
|
|
105
|
+
null,
|
|
106
|
+
props.value.length,
|
|
107
|
+
'/',
|
|
108
|
+
maxlength
|
|
109
|
+
),
|
|
98
110
|
type == 'password' || passwordButton ? _react2.default.createElement(
|
|
99
111
|
PasswordToggleButton,
|
|
100
112
|
{
|
|
@@ -120,7 +132,7 @@ var InputText = function InputText(_ref) {
|
|
|
120
132
|
);
|
|
121
133
|
};
|
|
122
134
|
|
|
123
|
-
InputText.Element = _styledComponents2.default.input(
|
|
135
|
+
InputText.Element = _styledComponents2.default.input(_templateObject5, function (props) {
|
|
124
136
|
return _tokens.colors[props.theme].inputCommon.background;
|
|
125
137
|
}, function (props) {
|
|
126
138
|
if (props.error) {
|
|
@@ -182,7 +194,7 @@ InputText.propTypes = {
|
|
|
182
194
|
value: _propTypes2.default.string,
|
|
183
195
|
/** The (HTML) maxlength for the input. */
|
|
184
196
|
maxlength: _propTypes2.default.number,
|
|
185
|
-
|
|
197
|
+
showLengthCount: _propTypes2.default.bool,
|
|
186
198
|
theme: _propTypes2.default.oneOf(['light', 'dark'])
|
|
187
199
|
|
|
188
200
|
/** deprecate error string prop */
|
|
@@ -197,7 +209,8 @@ InputText.defaultProps = {
|
|
|
197
209
|
type: 'text',
|
|
198
210
|
maxlength: 50,
|
|
199
211
|
theme: 'light',
|
|
200
|
-
value: ''
|
|
212
|
+
value: '',
|
|
213
|
+
showLengthCount: false
|
|
201
214
|
};
|
|
202
215
|
|
|
203
216
|
exports.default = InputText;
|
|
@@ -19,9 +19,11 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
19
19
|
_react2.default.createElement(
|
|
20
20
|
_storyHelpers.Stack,
|
|
21
21
|
null,
|
|
22
|
-
_react2.default.createElement(_components.InputText, { type: 'text', label: 'First Name',
|
|
22
|
+
_react2.default.createElement(_components.InputText, { type: 'text', label: 'First Name', onKeyPress: function onKeyPress(e) {
|
|
23
|
+
return undefined.value = e.target.value;
|
|
24
|
+
}, onChange: function onChange(e) {
|
|
23
25
|
return console.log(e.target.value);
|
|
24
|
-
}, placeholder: 'Enter Name max 10', value: '', required: true }),
|
|
26
|
+
}, placeholder: 'Enter Name max 10', value: 'asd', required: true }),
|
|
25
27
|
_react2.default.createElement(_components.InputText, { type: 'password', label: 'Middle Name', minLength: 3, maxLength: 6, placeholder: 'Show as password', required: true }),
|
|
26
28
|
_react2.default.createElement(_components.InputText, { type: 'text', value: "hello", label: 'Label and default value', required: true })
|
|
27
29
|
),
|
|
@@ -60,7 +62,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
60
62
|
_react2.default.createElement(
|
|
61
63
|
_storyHelpers.Stack,
|
|
62
64
|
null,
|
|
63
|
-
_react2.default.createElement(_components.InputText, { theme: 'dark', type: 'text', label: 'First Name', maxLength: 3, onChange: function onChange(e) {
|
|
65
|
+
_react2.default.createElement(_components.InputText, { theme: 'dark', type: 'text', label: 'First Name', showLengthCount: true, maxLength: 3, onChange: function onChange(e) {
|
|
64
66
|
return console.log(e.target.value);
|
|
65
67
|
}, placeholder: 'Enter Name max 10', required: true }),
|
|
66
68
|
_react2.default.createElement(_components.InputText, { theme: 'dark', type: 'password', label: 'Middle Name', minLength: 3, maxLength: 6, placeholder: 'Show as password', required: true }),
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@desynova-digital/components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.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.7.2",
|
|
11
11
|
"prop-types": "^15.7.2",
|
|
12
12
|
"styled-components": "^4.3.2"
|
|
13
13
|
},
|