@cashub/ui 0.32.2 → 0.34.0

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/alert/Alert.js ADDED
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ var _templateObject;
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
11
+ const Alert = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: var(--color-background1);\n border-radius: var(--border-radius);\n color: var(--font-on-background);\n padding: var(--spacing);\n\n ", "\n"])), _ref => {
12
+ let {
13
+ backgroundReverse
14
+ } = _ref;
15
+ return backgroundReverse && 'background: var(--color-background2);';
16
+ });
17
+ var _default = exports.default = Alert;
package/alert/index.js ADDED
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Alert", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Alert.default;
10
+ }
11
+ });
12
+ var _Alert = _interopRequireDefault(require("./Alert"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _styledComponents = _interopRequireDefault(require("styled-components"));
8
+ var _templateObject;
9
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
10
+ function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
11
+ const Fieldset = _styledComponents.default.fieldset(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: var(--border-width) solid var(--border-color);\n border-radius: var(--border-radius-s);\n padding: var(--spacing-s);\n\n &[disabled] {\n border-color: var(--border-color-transparent);\n }\n"])));
12
+ var _default = exports.default = Fieldset;
package/form/index.js CHANGED
@@ -9,6 +9,12 @@ Object.defineProperty(exports, "Checkbox", {
9
9
  return _Checkbox.default;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "Fieldset", {
13
+ enumerable: true,
14
+ get: function () {
15
+ return _Fieldset.default;
16
+ }
17
+ });
12
18
  Object.defineProperty(exports, "FormItem", {
13
19
  enumerable: true,
14
20
  get: function () {
@@ -70,6 +76,7 @@ Object.defineProperty(exports, "TreeView", {
70
76
  }
71
77
  });
72
78
  var _Checkbox = _interopRequireDefault(require("./Checkbox"));
79
+ var _Fieldset = _interopRequireDefault(require("./Fieldset"));
73
80
  var _FormItem = _interopRequireDefault(require("./FormItem"));
74
81
  var _Input = _interopRequireDefault(require("./Input"));
75
82
  var _Label = _interopRequireDefault(require("./Label"));
package/index.js CHANGED
@@ -19,6 +19,18 @@ Object.defineProperty(exports, "Tab", {
19
19
  return _Tab.default;
20
20
  }
21
21
  });
22
+ var _alert = require("./alert");
23
+ Object.keys(_alert).forEach(function (key) {
24
+ if (key === "default" || key === "__esModule") return;
25
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
26
+ if (key in exports && exports[key] === _alert[key]) return;
27
+ Object.defineProperty(exports, key, {
28
+ enumerable: true,
29
+ get: function () {
30
+ return _alert[key];
31
+ }
32
+ });
33
+ });
22
34
  var _animate = require("./animate");
23
35
  Object.keys(_animate).forEach(function (key) {
24
36
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.32.2",
3
+ "version": "0.34.0",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB UI components library",
@@ -9,7 +9,7 @@ require("normalize.css");
9
9
  require("../assets/css/global.css");
10
10
  var _templateObject;
11
11
  function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
12
- const GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n body {\n --color-white: ", ";\n --color-dark: ", ";\n --color-grey: ", ";\n --color-primary: ", ";\n --color-success: ", ";\n --color-warning: ", ";\n --color-danger: ", ";\n --color-hover: ", ";\n --color-active: ", ";\n --color-scroll-bar: ", ";\n --color-background1: ", ";\n --color-background2: ", ";\n --color-background3: ", ";\n --color-backdrop: ", ";\n\n --font-h1: ", ";\n --font-h2: ", ";\n --font-h3: ", ";\n --font-body1: ", ";\n --font-body2: ", ";\n --font-button: ", ";\n --font-caption: ", ";\n --font-family: ", ";\n --font-normal: ", ";\n --font-bold: ", ";\n --font-on-primary: ", ";\n --font-on-success: ", ";\n --font-on-warning: ", ";\n --font-on-danger: ", ";\n --font-on-background: ", ";\n --font-on-mute: ", ";\n\n --box-shadow: ", ";\n --border-color: ", ";\n --border-width: ", ";\n --border-radius-s: ", ";\n --border-radius: ", ";\n --border-radius-l: ", ";\n --border-radius-round: ", ";\n\n --spacing-xs: ", ";\n --spacing-s: ", ";\n --spacing: ", ";\n --spacing-l: ", ";\n\n /* Global style */\n font-size: 16px;\n font-family: Helvetica;\n overflow-x: hidden;\n background: var(--color-background1);\n }\n\n /* Custom normalize */\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n html {\n line-height: 1;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: 0;\n }\n \n a {\n text-decoration: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n line-height: 1;\n }\n\n ul {\n padding: 0;\n margin: 0;\n }\n\n li {\n list-style: none;\n }\n\n figure {\n margin: 0;\n }\n\n p {\n margin: 0;\n }\n\n dl,\n dt,\n dd {\n margin: 0;\n }\n\n .margin-bottom-s {\n margin-bottom: var(--spacing-s);\n }\n"])), _ref => {
12
+ const GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n body {\n --color-white: ", ";\n --color-dark: ", ";\n --color-grey: ", ";\n --color-primary: ", ";\n --color-success: ", ";\n --color-warning: ", ";\n --color-danger: ", ";\n --color-hover: ", ";\n --color-active: ", ";\n --color-scroll-bar: ", ";\n --color-background1: ", ";\n --color-background2: ", ";\n --color-background3: ", ";\n --color-backdrop: ", ";\n\n --font-h1: ", ";\n --font-h2: ", ";\n --font-h3: ", ";\n --font-body1: ", ";\n --font-body2: ", ";\n --font-button: ", ";\n --font-caption: ", ";\n --font-family: ", ";\n --font-normal: ", ";\n --font-bold: ", ";\n --font-on-primary: ", ";\n --font-on-success: ", ";\n --font-on-warning: ", ";\n --font-on-danger: ", ";\n --font-on-background: ", ";\n --font-on-mute: ", ";\n\n --box-shadow: ", ";\n --border-color: ", ";\n --border-color-transparent: ", ";\n --border-width: ", ";\n --border-radius-s: ", ";\n --border-radius: ", ";\n --border-radius-l: ", ";\n --border-radius-round: ", ";\n\n --spacing-xs: ", ";\n --spacing-s: ", ";\n --spacing: ", ";\n --spacing-l: ", ";\n\n /* Global style */\n font-size: 16px;\n font-family: Helvetica;\n overflow-x: hidden;\n background: var(--color-background1);\n }\n\n /* Custom normalize */\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n html {\n line-height: 1;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: 0;\n }\n \n a {\n text-decoration: none;\n }\n\n button,\n input,\n optgroup,\n select,\n textarea {\n line-height: 1;\n }\n\n ul {\n padding: 0;\n margin: 0;\n }\n\n li {\n list-style: none;\n }\n\n figure {\n margin: 0;\n }\n\n p {\n margin: 0;\n }\n\n dl,\n dt,\n dd {\n margin: 0;\n }\n\n .margin-bottom-s {\n margin-bottom: var(--spacing-s);\n }\n"])), _ref => {
13
13
  let {
14
14
  theme
15
15
  } = _ref;
@@ -173,46 +173,51 @@ const GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject ||
173
173
  let {
174
174
  theme
175
175
  } = _ref33;
176
- return theme.borderWidth;
176
+ return theme.borderColorTransparent;
177
177
  }, _ref34 => {
178
178
  let {
179
179
  theme
180
180
  } = _ref34;
181
- return theme.borderRadiusS;
181
+ return theme.borderWidth;
182
182
  }, _ref35 => {
183
183
  let {
184
184
  theme
185
185
  } = _ref35;
186
- return theme.borderRadius;
186
+ return theme.borderRadiusS;
187
187
  }, _ref36 => {
188
188
  let {
189
189
  theme
190
190
  } = _ref36;
191
- return theme.borderRadiusL;
191
+ return theme.borderRadius;
192
192
  }, _ref37 => {
193
193
  let {
194
194
  theme
195
195
  } = _ref37;
196
- return theme.borderRadiusRound;
196
+ return theme.borderRadiusL;
197
197
  }, _ref38 => {
198
198
  let {
199
199
  theme
200
200
  } = _ref38;
201
- return theme.spacerXS;
201
+ return theme.borderRadiusRound;
202
202
  }, _ref39 => {
203
203
  let {
204
204
  theme
205
205
  } = _ref39;
206
- return theme.spacerS;
206
+ return theme.spacerXS;
207
207
  }, _ref40 => {
208
208
  let {
209
209
  theme
210
210
  } = _ref40;
211
- return theme.spacer;
211
+ return theme.spacerS;
212
212
  }, _ref41 => {
213
213
  let {
214
214
  theme
215
215
  } = _ref41;
216
+ return theme.spacer;
217
+ }, _ref42 => {
218
+ let {
219
+ theme
220
+ } = _ref42;
216
221
  return theme.spacerL;
217
222
  });
218
223
  var _default = exports.default = GlobalStyle;
@@ -53,6 +53,7 @@ const darkTheme = {
53
53
  desktop: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
54
54
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
55
55
  borderColor: colorStyle.colorGrey,
56
+ borderColorTransparent: "".concat(colorStyle.colorGrey, "80"),
56
57
  borderWidth: '1px',
57
58
  borderRadiusS: '0.5rem',
58
59
  borderRadius: '1rem',
@@ -66,6 +67,7 @@ const darkTheme = {
66
67
  tablet: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
67
68
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
68
69
  borderColor: colorStyle.colorGrey,
70
+ borderColorTransparent: "".concat(colorStyle.colorGrey, "80"),
69
71
  borderWidth: '1px',
70
72
  borderRadiusS: '0.5rem',
71
73
  borderRadius: '1rem',
@@ -79,6 +81,7 @@ const darkTheme = {
79
81
  mobile: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
80
82
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
81
83
  borderColor: colorStyle.colorGrey,
84
+ borderColorTransparent: "".concat(colorStyle.colorGrey, "80"),
82
85
  borderWidth: '1px',
83
86
  borderRadiusS: '0.5rem',
84
87
  borderRadius: '1rem',
@@ -53,6 +53,7 @@ const lightTheme = {
53
53
  desktop: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
54
54
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
55
55
  borderColor: colorStyle.colorGrey,
56
+ borderColorTransparent: "".concat(colorStyle.colorGrey, "80"),
56
57
  borderWidth: '1px',
57
58
  borderRadiusS: '0.5rem',
58
59
  borderRadius: '1rem',
@@ -66,6 +67,7 @@ const lightTheme = {
66
67
  tablet: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
67
68
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
68
69
  borderColor: colorStyle.colorGrey,
70
+ borderColorTransparent: "".concat(colorStyle.colorGrey, "80"),
69
71
  borderWidth: '1px',
70
72
  borderRadiusS: '0.5rem',
71
73
  borderRadius: '1rem',
@@ -79,6 +81,7 @@ const lightTheme = {
79
81
  mobile: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
80
82
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
81
83
  borderColor: colorStyle.colorGrey,
84
+ borderColorTransparent: "".concat(colorStyle.colorGrey, "80"),
82
85
  borderWidth: '1px',
83
86
  borderRadiusS: '0.5rem',
84
87
  borderRadius: '1rem',
@@ -53,6 +53,7 @@ const whiteTheme = {
53
53
  desktop: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
54
54
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
55
55
  borderColor: colorStyle.colorGrey,
56
+ borderColorTransparent: "".concat(colorStyle.colorGrey, "80"),
56
57
  borderWidth: '1px',
57
58
  borderRadiusS: '0.5rem',
58
59
  borderRadius: '1rem',
@@ -66,6 +67,7 @@ const whiteTheme = {
66
67
  tablet: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
67
68
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
68
69
  borderColor: colorStyle.colorGrey,
70
+ borderColorTransparent: "".concat(colorStyle.colorGrey, "80"),
69
71
  borderWidth: '1px',
70
72
  borderRadiusS: '0.5rem',
71
73
  borderRadius: '1rem',
@@ -79,6 +81,7 @@ const whiteTheme = {
79
81
  mobile: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
80
82
  boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
81
83
  borderColor: colorStyle.colorGrey,
84
+ borderColorTransparent: "".concat(colorStyle.colorGrey, "80"),
82
85
  borderWidth: '1px',
83
86
  borderRadiusS: '0.5rem',
84
87
  borderRadius: '1rem',