@cashub/ui 0.43.0 → 0.43.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.
|
@@ -30,7 +30,8 @@ const DatetimePickerV3 = _ref => {
|
|
|
30
30
|
disabled,
|
|
31
31
|
onBlur,
|
|
32
32
|
allowClear = false,
|
|
33
|
-
shouldCloseOnSelect = true
|
|
33
|
+
shouldCloseOnSelect = true,
|
|
34
|
+
placeholderText
|
|
34
35
|
} = _ref;
|
|
35
36
|
const datepickerRef = (0, _react.useRef)(null);
|
|
36
37
|
const handleOnBlur = () => {
|
|
@@ -45,7 +46,8 @@ const DatetimePickerV3 = _ref => {
|
|
|
45
46
|
minDate: minDate ? new Date(Date.parse(minDate)) : '',
|
|
46
47
|
maxDate: maxDate ? new Date(Date.parse(maxDate)) : '',
|
|
47
48
|
isClearable: allowClear && selected,
|
|
48
|
-
shouldCloseOnSelect
|
|
49
|
+
shouldCloseOnSelect,
|
|
50
|
+
placeholderText
|
|
49
51
|
};
|
|
50
52
|
if (showTimeInput) {
|
|
51
53
|
datePickerProps.showTimeInput = true;
|
package/modal/StateModal.js
CHANGED
|
@@ -125,5 +125,5 @@ const Body = _styledComponents.default.div(_templateObject3 || (_templateObject3
|
|
|
125
125
|
}
|
|
126
126
|
});
|
|
127
127
|
const Title = _styledComponents.default.h2(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: var(--font-body1);\n font-weight: var(--font-bold);\n margin-bottom: var(--spacing-s);\n"])));
|
|
128
|
-
const Message = _styledComponents.default.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: var(--font-body1);\n"])));
|
|
128
|
+
const Message = _styledComponents.default.p(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n font-size: var(--font-body1);\n white-space: pre-line;\n"])));
|
|
129
129
|
var _default = exports.default = StateModal;
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = require("styled-components");
|
|
8
8
|
var _templateObject;
|
|
9
9
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
10
|
-
const backgroundColor = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
10
|
+
const backgroundColor = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
11
11
|
let {
|
|
12
12
|
primary
|
|
13
13
|
} = _ref;
|
|
@@ -27,5 +27,10 @@ const backgroundColor = (0, _styledComponents.css)(_templateObject || (_template
|
|
|
27
27
|
danger
|
|
28
28
|
} = _ref4;
|
|
29
29
|
return danger && 'background-color: var(--color-danger);';
|
|
30
|
+
}, _ref5 => {
|
|
31
|
+
let {
|
|
32
|
+
grey
|
|
33
|
+
} = _ref5;
|
|
34
|
+
return grey && 'background-color: var(--color-grey);';
|
|
30
35
|
});
|
|
31
36
|
var _default = exports.default = backgroundColor;
|