@cashub/ui 0.48.17 → 0.48.19
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/button/Button.js +10 -4
- package/iconbox/IconBoxV2.js +14 -7
- package/package.json +1 -1
package/button/Button.js
CHANGED
|
@@ -7,14 +7,14 @@ exports.default = void 0;
|
|
|
7
7
|
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
8
|
var _backgroundColor = _interopRequireDefault(require("../styles/mixin/backgroundColor"));
|
|
9
9
|
var _colorOnBackground = _interopRequireDefault(require("../styles/mixin/colorOnBackground"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
15
15
|
const Button = _styledComponents.default.button.attrs(() => ({
|
|
16
16
|
primary: true
|
|
17
|
-
}))(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n border: none;\n font-size: var(--font-button);\n line-height: var(--font-body1);\n cursor: ", ";\n border-radius: var(--border-radius-l);\n padding: 10px var(--spacing-s);\n text-transform: uppercase;\n\n > svg {\n margin-right: calc(var(--spacing-s) - 0.25rem);\n font-size: var(--font-body1);\n }\n\n &:hover {\n ", "\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
17
|
+
}))(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n border: none;\n font-size: var(--font-button);\n line-height: var(--font-body1);\n cursor: ", ";\n border-radius: var(--border-radius-l);\n padding: 10px var(--spacing-s);\n text-transform: uppercase;\n\n > svg {\n margin-right: calc(var(--spacing-s) - 0.25rem);\n font-size: var(--font-body1);\n }\n\n &:hover {\n ", "\n }\n\n ", "\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), _ref => {
|
|
18
18
|
let {
|
|
19
19
|
disabled
|
|
20
20
|
} = _ref;
|
|
@@ -61,8 +61,14 @@ const Button = _styledComponents.default.button.attrs(() => ({
|
|
|
61
61
|
return filterFocus && (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n border: 2px solid var(--color-danger);\n "])));
|
|
62
62
|
}, _ref10 => {
|
|
63
63
|
let {
|
|
64
|
-
variant
|
|
64
|
+
variant,
|
|
65
|
+
selected
|
|
65
66
|
} = _ref10;
|
|
66
|
-
return variant === '
|
|
67
|
+
return variant === 'outline' && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n background: ", ";\n color: ", ";\n border: 1px solid var(--color-primary);\n padding: 4px var(--spacing-s);\n text-transform: none;\n\n &:hover {\n box-shadow: none;\n }\n "])), selected ? 'var(--color-primary)' : 'transparent', selected ? 'var(--font-on-primary)' : 'var(--color-primary)');
|
|
68
|
+
}, _ref11 => {
|
|
69
|
+
let {
|
|
70
|
+
variant
|
|
71
|
+
} = _ref11;
|
|
72
|
+
return variant === 'link' && (0, _styledComponents.css)(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n font-size: var(--font-body1);\n background: transparent;\n color: var(--color-primary);\n border: none;\n padding: 0;\n text-decoration: underline;\n text-transform: none;\n &:hover {\n opacity: 0.8;\n box-shadow: none;\n }\n "])));
|
|
67
73
|
});
|
|
68
74
|
var _default = exports.default = Button;
|
package/iconbox/IconBoxV2.js
CHANGED
|
@@ -4,22 +4,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
var _styledComponents =
|
|
7
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
8
8
|
var _IconBoxFigure = _interopRequireDefault(require("./subComponent/IconBoxFigure"));
|
|
9
9
|
var _IconBoxImage = _interopRequireDefault(require("./subComponent/IconBoxImage"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
11
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
14
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
13
|
-
const IconBoxV2 = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: var(--spacing);\n margin-bottom: var(--spacing);\n background: var(--color-background1);\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n color: var(--font-on-background);\n\n ", "\n"])), _ref => {
|
|
15
|
+
const IconBoxV2 = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: var(--spacing);\n margin-bottom: var(--spacing);\n background: var(--color-background1);\n box-shadow: var(--box-shadow);\n border-radius: var(--border-radius);\n color: var(--font-on-background);\n border: 2px solid transparent;\n\n ", "\n\n ", "\n"])), _ref => {
|
|
14
16
|
let {
|
|
15
17
|
fullHeight
|
|
16
18
|
} = _ref;
|
|
17
19
|
return fullHeight && 'height: calc(100% - var(--spacing));';
|
|
20
|
+
}, _ref2 => {
|
|
21
|
+
let {
|
|
22
|
+
selected
|
|
23
|
+
} = _ref2;
|
|
24
|
+
return selected && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-color: var(--color-primary);\n background: color-mix(\n in srgb,\n var(--color-primary) 10%,\n var(--color-background1)\n );\n "])));
|
|
18
25
|
});
|
|
19
|
-
const Body = _styledComponents.default.div(
|
|
20
|
-
const Description = _styledComponents.default.div(
|
|
21
|
-
const Info = _styledComponents.default.div(
|
|
22
|
-
const Tool = _styledComponents.default.div(
|
|
26
|
+
const Body = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n"])));
|
|
27
|
+
const Description = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex: 1 1 auto;\n font-size: var(--font-body1);\n"])));
|
|
28
|
+
const Info = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n word-break: break-all;\n\n &:not(:last-child) {\n margin-bottom: var(--spacing-s);\n }\n"])));
|
|
29
|
+
const Tool = _styledComponents.default.div(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n flex: 0 0 calc(var(--spacing-s) + 36px);\n padding-left: var(--spacing-s);\n\n > *:not(:last-child) {\n margin-bottom: var(--spacing-s);\n }\n"])));
|
|
23
30
|
var _default = exports.default = Object.assign(IconBoxV2, {
|
|
24
31
|
Body,
|
|
25
32
|
Description,
|