pebble-web 2.9.1 → 2.9.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.
- package/dist/components/typings/Input.d.ts +8 -6
- package/dist/components/typings/Select.d.ts +2 -2
- package/dist/pebble-web.dev.js +17 -13
- package/dist/pebble-web.dev.js.map +1 -1
- package/dist/pebble-web.es.dev.js +17 -13
- package/dist/pebble-web.es.dev.js.map +1 -1
- package/dist/pebble-web.es.js +15 -11
- package/dist/pebble-web.es.js.map +1 -1
- package/dist/pebble-web.js +15 -11
- package/dist/pebble-web.js.map +1 -1
- package/dist/pebble-web.module.dev.js +17 -13
- package/dist/pebble-web.module.dev.js.map +1 -1
- package/dist/pebble-web.module.js +15 -11
- package/dist/pebble-web.module.js.map +1 -1
- package/dist/pebble-web.umd.dev.js +17 -13
- package/dist/pebble-web.umd.dev.js.map +1 -1
- package/dist/pebble-web.umd.js +15 -11
- package/dist/pebble-web.umd.js.map +1 -1
- package/package.json +3 -3
- package/src/components/DateInput.tsx +1 -1
- package/src/components/Input.tsx +24 -12
- package/src/components/Select.tsx +9 -3
- package/src/components/Sidebar.tsx +1 -1
- package/src/components/__tests__/__snapshots__/phonenumberinput.test.tsx.snap +33 -65
- package/src/components/styles/Modal.styles.ts +1 -1
- package/src/components/typings/Input.ts +16 -5
- package/src/components/typings/Select.ts +2 -1
package/dist/pebble-web.es.js
CHANGED
|
@@ -1250,6 +1250,8 @@ class Input extends PureComponent {
|
|
|
1250
1250
|
placeholder,
|
|
1251
1251
|
className,
|
|
1252
1252
|
inputClassName,
|
|
1253
|
+
highlightClassName,
|
|
1254
|
+
loadingClassName,
|
|
1253
1255
|
fixLabelAtTop,
|
|
1254
1256
|
value,
|
|
1255
1257
|
readOnly,
|
|
@@ -1279,18 +1281,19 @@ class Input extends PureComponent {
|
|
|
1279
1281
|
readOnly,
|
|
1280
1282
|
value: value || ""
|
|
1281
1283
|
};
|
|
1282
|
-
const
|
|
1284
|
+
const _highlightClassName = cx(highlightStyle, {
|
|
1283
1285
|
_pebble_input_highlight_focused: !!isFocused,
|
|
1284
1286
|
_pebble_input_highlight_state: !!errorMessage || !!successMessage,
|
|
1285
1287
|
_pebble_input_highlight_read_only: !!readOnly,
|
|
1286
1288
|
_pebble_input_highlight_disabled: !!disabled
|
|
1287
|
-
});
|
|
1289
|
+
}, highlightClassName);
|
|
1288
1290
|
const labelClassName = cx(labelStyle, {
|
|
1289
1291
|
_pebble_input_label_focused: !!(isFocused || !!value || fixLabelAtTop)
|
|
1290
1292
|
});
|
|
1291
1293
|
const _wrapperStyle = cx(wrapperStyle$2, {
|
|
1292
1294
|
_pebble_input_wrapper_textarea: !!textArea
|
|
1293
1295
|
}, className);
|
|
1296
|
+
const _loadingStyle = cx(loadingStyle, loadingClassName);
|
|
1294
1297
|
return /*#__PURE__*/createElement("div", {
|
|
1295
1298
|
className: _wrapperStyle,
|
|
1296
1299
|
onFocus: this.addFocus,
|
|
@@ -1298,21 +1301,21 @@ class Input extends PureComponent {
|
|
|
1298
1301
|
onClick: onClick
|
|
1299
1302
|
}, this.props.textArea ? /*#__PURE__*/createElement("textarea", Object.assign({}, _inputProps, this.props.inputProps)) : /*#__PURE__*/createElement("input", Object.assign({
|
|
1300
1303
|
type: type
|
|
1301
|
-
}, _inputProps, this.props.inputProps)), /*#__PURE__*/createElement("label", {
|
|
1304
|
+
}, _inputProps, this.props.inputProps)), !!placeholder && /*#__PURE__*/createElement("label", {
|
|
1302
1305
|
className: labelClassName
|
|
1303
1306
|
}, placeholder, required && /*#__PURE__*/createElement("span", {
|
|
1304
1307
|
style: {
|
|
1305
1308
|
color: colors.red.base
|
|
1306
1309
|
}
|
|
1307
1310
|
}, "\xA0*")), /*#__PURE__*/createElement("div", {
|
|
1308
|
-
className:
|
|
1311
|
+
className: _highlightClassName,
|
|
1309
1312
|
style: {
|
|
1310
1313
|
backgroundColor: getColor(errorMessage, successMessage, true)
|
|
1311
1314
|
}
|
|
1312
1315
|
}), loading && /*#__PURE__*/createElement(Loader, {
|
|
1313
1316
|
color: colors.violet.base,
|
|
1314
1317
|
scale: 0.6,
|
|
1315
|
-
className:
|
|
1318
|
+
className: _loadingStyle
|
|
1316
1319
|
}), _message && /*#__PURE__*/createElement("div", {
|
|
1317
1320
|
className: messageStyle,
|
|
1318
1321
|
style: {
|
|
@@ -1454,7 +1457,7 @@ class DateInput extends PureComponent {
|
|
|
1454
1457
|
onChange: noop,
|
|
1455
1458
|
type: "tel",
|
|
1456
1459
|
value: value,
|
|
1457
|
-
placeholder:
|
|
1460
|
+
placeholder: placeholder,
|
|
1458
1461
|
onClick: () => {
|
|
1459
1462
|
if (disabled) return;
|
|
1460
1463
|
toggleDropdown();
|
|
@@ -1780,8 +1783,8 @@ const Message = ({
|
|
|
1780
1783
|
};
|
|
1781
1784
|
|
|
1782
1785
|
const modalContainer = /*#__PURE__*/css( {
|
|
1783
|
-
name: "
|
|
1784
|
-
styles: "position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,0.4);overflow-y:
|
|
1786
|
+
name: "ts3alg-modalContainer",
|
|
1787
|
+
styles: "position:fixed;top:0;right:0;bottom:0;left:0;background-color:rgba(0,0,0,0.4);overflow-y:auto;-webkit-overflow-scrolling:touch;z-index:99998;;label:modalContainer;"
|
|
1785
1788
|
} );
|
|
1786
1789
|
|
|
1787
1790
|
class Modal extends PureComponent {
|
|
@@ -2377,6 +2380,7 @@ function Select(props) {
|
|
|
2377
2380
|
errorMessage,
|
|
2378
2381
|
value,
|
|
2379
2382
|
dropdownClassName,
|
|
2383
|
+
arrowClassName,
|
|
2380
2384
|
inputProps,
|
|
2381
2385
|
fullWidthDropdown,
|
|
2382
2386
|
onDropdownToggle = noop$1,
|
|
@@ -2398,9 +2402,9 @@ function Select(props) {
|
|
|
2398
2402
|
toggleDropdown,
|
|
2399
2403
|
isOpen
|
|
2400
2404
|
}) => {
|
|
2401
|
-
const chevron = cx(chevronStyle, "pi
|
|
2405
|
+
const chevron = cx(chevronStyle, "pi pi-arrow-drop-down", {
|
|
2402
2406
|
__pebble__select__open: isOpen
|
|
2403
|
-
});
|
|
2407
|
+
}, arrowClassName);
|
|
2404
2408
|
return /*#__PURE__*/createElement("div", {
|
|
2405
2409
|
className: cx(inputWrapper, disabled && disabledSelect),
|
|
2406
2410
|
onClick: disabled ? undefined : () => {
|
|
@@ -3300,7 +3304,7 @@ class SideBar extends PureComponent {
|
|
|
3300
3304
|
className: "pi pi-close"
|
|
3301
3305
|
}), /*#__PURE__*/createElement(Ink, null)), /*#__PURE__*/createElement("div", {
|
|
3302
3306
|
style: {
|
|
3303
|
-
overflowY: "
|
|
3307
|
+
overflowY: "auto",
|
|
3304
3308
|
height: "100%"
|
|
3305
3309
|
}
|
|
3306
3310
|
}, children))));
|