@cashub/ui 0.27.0 → 0.28.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.
@@ -1,3 +1,2 @@
1
1
  @import './font.css';
2
- @import './normalize.css';
3
2
  @import './autocomplete.css';
package/index.js CHANGED
@@ -331,6 +331,18 @@ Object.keys(_modal).forEach(function (key) {
331
331
  }
332
332
  });
333
333
  });
334
+ var _page = require("./page");
335
+ Object.keys(_page).forEach(function (key) {
336
+ if (key === "default" || key === "__esModule") return;
337
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
338
+ if (key in exports && exports[key] === _page[key]) return;
339
+ Object.defineProperty(exports, key, {
340
+ enumerable: true,
341
+ get: function () {
342
+ return _page[key];
343
+ }
344
+ });
345
+ });
334
346
  var _paginate = require("./paginate");
335
347
  Object.keys(_paginate).forEach(function (key) {
336
348
  if (key === "default" || key === "__esModule") return;
@@ -488,6 +500,18 @@ Object.keys(_tooltip).forEach(function (key) {
488
500
  }
489
501
  });
490
502
  });
503
+ var _treeView = require("./treeView");
504
+ Object.keys(_treeView).forEach(function (key) {
505
+ if (key === "default" || key === "__esModule") return;
506
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
507
+ if (key in exports && exports[key] === _treeView[key]) return;
508
+ Object.defineProperty(exports, key, {
509
+ enumerable: true,
510
+ get: function () {
511
+ return _treeView[key];
512
+ }
513
+ });
514
+ });
491
515
  var _wizard = require("./wizard");
492
516
  Object.keys(_wizard).forEach(function (key) {
493
517
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cashub/ui",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "private": false,
5
5
  "author": "CasHUB Team",
6
6
  "description": "CasHUB UI components library",
@@ -26,6 +26,7 @@
26
26
  "leaflet-draw": "^1.0.4",
27
27
  "lodash.uniqueid": "^4.0.1",
28
28
  "moment": "^2.29.3",
29
+ "normalize.css": "^8.0.1",
29
30
  "overlapping-marker-spiderfier": "^1.1.4",
30
31
  "qrcode.react": "^3.0.2",
31
32
  "rc-time-picker": "^3.7.3",
@@ -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 Disclaimer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n border: var(--border-width) solid var(--border-color);\n border-radius: var(--border-radius);\n color: var(--font-on-background);\n padding: var(--spacing);\n\n > article {\n line-height: 1.5;\n\n &:not(:last-child) {\n padding-bottom: var(--spacing-l);\n }\n\n > h2 {\n text-align: center;\n margin-bottom: var(--spacing-l);\n }\n\n > em {\n display: block;\n margin-bottom: var(--spacing-s);\n }\n\n > section {\n margin-bottom: var(--spacing);\n\n > h3 {\n margin-bottom: var(--spacing-xs);\n }\n\n > p {\n margin-bottom: var(--spacing-xs);\n }\n\n ul {\n margin: var(--spacing-s) 0;\n\n li {\n margin: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-s);\n\n &.disc {\n list-style: disc;\n }\n }\n }\n\n ol {\n padding: 0;\n margin: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-s);\n\n &.counter-number {\n counter-reset: number;\n }\n\n &.counter-number-alpha {\n counter-reset: number alpha;\n }\n\n &.nested-counter-number {\n counter-reset: nested-number;\n }\n\n &.ml-0 {\n margin-left: 0;\n }\n\n li {\n margin: var(--spacing-s) 0;\n\n &.decimal {\n list-style: decimal;\n }\n\n &.counter-number-increment {\n counter-increment: number;\n }\n\n &.counter-alpha-increment {\n counter-increment: alpha;\n }\n\n &.counter-number {\n display: flex;\n margin: var(--spacing-xs) 0;\n\n &::before {\n margin-right: var(--spacing-xs);\n content: counters(number, '.') ' ';\n }\n }\n\n &.counter-alpha {\n display: flex;\n margin: var(--spacing-xs) 0;\n\n &::before {\n margin-right: var(--spacing-xs);\n content: '(' counter(alpha, upper-alpha) ')';\n }\n }\n\n &.nested-counter-number-increment {\n counter-increment: nested-number;\n }\n\n &.nested-counter-number {\n display: flex;\n margin: var(--spacing-xs) 0;\n\n &::before {\n margin-right: var(--spacing-xs);\n content: counters(number, '.') '.' counters(nested-number, '.');\n }\n }\n }\n }\n }\n }\n"])));
12
+ var _default = exports.default = Disclaimer;
package/page/index.js ADDED
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "Disclaimer", {
7
+ enumerable: true,
8
+ get: function () {
9
+ return _Disclaimer.default;
10
+ }
11
+ });
12
+ var _Disclaimer = _interopRequireDefault(require("./Disclaimer"));
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
@@ -5,10 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  var _styledComponents = require("styled-components");
8
+ require("normalize.css");
8
9
  require("../assets/css/global.css");
9
10
  var _templateObject;
10
11
  function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
11
- 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 background : ", ";\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-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
13
  let {
13
14
  theme
14
15
  } = _ref;
@@ -213,10 +214,5 @@ const GlobalStyle = (0, _styledComponents.createGlobalStyle)(_templateObject ||
213
214
  theme
214
215
  } = _ref41;
215
216
  return theme.spacerL;
216
- }, _ref42 => {
217
- let {
218
- theme
219
- } = _ref42;
220
- return theme.bgColor1;
221
217
  });
222
218
  var _default = exports.default = GlobalStyle;
@@ -1,386 +0,0 @@
1
- /*! Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md) */
2
-
3
- /* Document */
4
- *,
5
- *::before,
6
- *::after {
7
- box-sizing: border-box;
8
- }
9
-
10
- /**
11
- * 1. Correct the line height in all browsers.
12
- * 2. Prevent adjustments of font size after orientation changes in iOS.
13
- */
14
-
15
- html {
16
- line-height: 1; /* 1 */
17
- -webkit-text-size-adjust: 100%; /* 2 */
18
- }
19
-
20
- /* Sections */
21
-
22
- /**
23
- * Remove the margin in all browsers.
24
- */
25
-
26
- body {
27
- margin: 0;
28
- font-size: 16px;
29
- font-family: Helvetica;
30
- overflow-x: hidden;
31
- }
32
-
33
- /**
34
- * Render the `main` element consistently in IE.
35
- */
36
-
37
- main {
38
- display: block;
39
- }
40
-
41
- /**
42
- * Correct the font size and margin on `h1` elements within `section` and
43
- * `article` contexts in Chrome, Firefox, and Safari.
44
- */
45
-
46
- h1 {
47
- font-size: 2em;
48
- }
49
-
50
- h1,
51
- h2,
52
- h3,
53
- h4,
54
- h5,
55
- h6 {
56
- margin: 0;
57
- }
58
-
59
- /* Grouping content */
60
-
61
- /**
62
- * 1. Add the correct box sizing in Firefox.
63
- * 2. Show the overflow in Edge and IE.
64
- */
65
-
66
- hr {
67
- box-sizing: content-box; /* 1 */
68
- height: 0; /* 1 */
69
- overflow: visible; /* 2 */
70
- }
71
-
72
- /**
73
- * 1. Correct the inheritance and scaling of font size in all browsers.
74
- * 2. Correct the odd `em` font sizing in all browsers.
75
- */
76
-
77
- pre {
78
- font-family: Helvetica;
79
- font-size: 1em; /* 2 */
80
- }
81
-
82
- /* Text-level semantics */
83
-
84
- /**
85
- * Remove the gray background on active links in IE 10.
86
- */
87
-
88
- a {
89
- background-color: transparent;
90
- text-decoration: none;
91
- }
92
-
93
- /**
94
- * 1. Remove the bottom border in Chrome 57-
95
- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
96
- */
97
-
98
- abbr[title] {
99
- border-bottom: none; /* 1 */
100
- text-decoration: underline; /* 2 */
101
- text-decoration: underline dotted; /* 2 */
102
- }
103
-
104
- /**
105
- * Add the correct font weight in Chrome, Edge, and Safari.
106
- */
107
-
108
- b,
109
- strong {
110
- font-weight: bolder;
111
- }
112
-
113
- /**
114
- * 1. Correct the inheritance and scaling of font size in all browsers.
115
- * 2. Correct the odd `em` font sizing in all browsers.
116
- */
117
-
118
- code,
119
- kbd,
120
- samp {
121
- font-family: Helvetica;
122
- font-size: 1em; /* 2 */
123
- }
124
-
125
- /**
126
- * Add the correct font size in all browsers.
127
- */
128
-
129
- small {
130
- font-size: 80%;
131
- }
132
-
133
- /**
134
- * Prevent `sub` and `sup` elements from affecting the line height in
135
- * all browsers.
136
- */
137
-
138
- sub,
139
- sup {
140
- font-size: 75%;
141
- line-height: 0;
142
- position: relative;
143
- vertical-align: baseline;
144
- }
145
-
146
- sub {
147
- bottom: -0.25em;
148
- }
149
-
150
- sup {
151
- top: -0.5em;
152
- }
153
-
154
- /* Embedded content */
155
-
156
- /**
157
- * Remove the border on images inside links in IE 10.
158
- */
159
-
160
- img {
161
- border-style: none;
162
- }
163
-
164
- /* Forms */
165
-
166
- /**
167
- * 1. Change the font styles in all browsers.
168
- * 2. Remove the margin in Firefox and Safari.
169
- */
170
-
171
- button,
172
- input,
173
- optgroup,
174
- select,
175
- textarea {
176
- font-family: Helvetica;
177
- font-size: 100%; /* 1 */
178
- line-height: 1; /* 1 */
179
- margin: 0; /* 2 */
180
- }
181
-
182
- /**
183
- * Show the overflow in IE.
184
- * 1. Show the overflow in Edge.
185
- */
186
-
187
- button,
188
- input {
189
- /* 1 */
190
- overflow: visible;
191
- }
192
-
193
- /**
194
- * Remove the inheritance of text transform in Edge, Firefox, and IE.
195
- * 1. Remove the inheritance of text transform in Firefox.
196
- */
197
-
198
- button,
199
- select {
200
- /* 1 */
201
- text-transform: none;
202
- }
203
-
204
- /**
205
- * Correct the inability to style clickable types in iOS and Safari.
206
- */
207
-
208
- button,
209
- [type='button'],
210
- [type='reset'],
211
- [type='submit'] {
212
- -webkit-appearance: button;
213
- }
214
-
215
- /**
216
- * Remove the inner border and padding in Firefox.
217
- */
218
-
219
- button::-moz-focus-inner,
220
- [type='button']::-moz-focus-inner,
221
- [type='reset']::-moz-focus-inner,
222
- [type='submit']::-moz-focus-inner {
223
- border-style: none;
224
- padding: 0;
225
- }
226
-
227
- /**
228
- * Restore the focus styles unset by the previous rule.
229
- */
230
-
231
- button:-moz-focusring,
232
- [type='button']:-moz-focusring,
233
- [type='reset']:-moz-focusring,
234
- [type='submit']:-moz-focusring {
235
- outline: 1px dotted ButtonText;
236
- }
237
-
238
- /**
239
- * Correct the padding in Firefox.
240
- */
241
-
242
- fieldset {
243
- padding: 0.35em 0.75em 0.625em;
244
- }
245
-
246
- /**
247
- * 1. Correct the text wrapping in Edge and IE.
248
- * 2. Correct the color inheritance from `fieldset` elements in IE.
249
- * 3. Remove the padding so developers are not caught out when they zero out
250
- * `fieldset` elements in all browsers.
251
- */
252
-
253
- legend {
254
- box-sizing: border-box; /* 1 */
255
- color: inherit; /* 2 */
256
- display: table; /* 1 */
257
- max-width: 100%; /* 1 */
258
- padding: 0; /* 3 */
259
- white-space: normal; /* 1 */
260
- }
261
-
262
- /**
263
- * Add the correct vertical alignment in Chrome, Firefox, and Opera.
264
- */
265
-
266
- progress {
267
- vertical-align: baseline;
268
- }
269
-
270
- /**
271
- * Remove the default vertical scrollbar in IE 10+.
272
- */
273
-
274
- textarea {
275
- overflow: auto;
276
- }
277
-
278
- /**
279
- * 1. Add the correct box sizing in IE 10.
280
- * 2. Remove the padding in IE 10.
281
- */
282
-
283
- [type='checkbox'],
284
- [type='radio'] {
285
- box-sizing: border-box; /* 1 */
286
- padding: 0; /* 2 */
287
- }
288
-
289
- /**
290
- * Correct the cursor style of increment and decrement buttons in Chrome.
291
- */
292
-
293
- [type='number']::-webkit-inner-spin-button,
294
- [type='number']::-webkit-outer-spin-button {
295
- height: auto;
296
- }
297
-
298
- /**
299
- * 1. Correct the odd appearance in Chrome and Safari.
300
- * 2. Correct the outline style in Safari.
301
- */
302
-
303
- [type='search'] {
304
- -webkit-appearance: textfield; /* 1 */
305
- outline-offset: -2px; /* 2 */
306
- }
307
-
308
- /**
309
- * Remove the inner padding in Chrome and Safari on macOS.
310
- */
311
-
312
- [type='search']::-webkit-search-decoration {
313
- -webkit-appearance: none;
314
- }
315
-
316
- /**
317
- * 1. Correct the inability to style clickable types in iOS and Safari.
318
- * 2. Change font properties to `inherit` in Safari.
319
- */
320
-
321
- ::-webkit-file-upload-button {
322
- -webkit-appearance: button; /* 1 */
323
- font: inherit; /* 2 */
324
- }
325
-
326
- /* Interactive */
327
-
328
- /*
329
- * Add the correct display in Edge, IE 10+, and Firefox.
330
- */
331
-
332
- details {
333
- display: block;
334
- }
335
-
336
- /*
337
- * Add the correct display in all browsers.
338
- */
339
-
340
- summary {
341
- display: list-item;
342
- }
343
-
344
- /* Misc */
345
-
346
- /**
347
- * Add the correct display in IE 10+.
348
- */
349
-
350
- template {
351
- display: none;
352
- }
353
-
354
- /**
355
- * Add the correct display in IE 10.
356
- */
357
-
358
- [hidden] {
359
- display: none;
360
- }
361
-
362
- /* Custom reset */
363
-
364
- ul {
365
- padding: 0;
366
- margin: 0;
367
- }
368
-
369
- li {
370
- list-style: none;
371
- }
372
-
373
- figure {
374
- margin: 0;
375
- }
376
-
377
- p,
378
- h3 {
379
- margin: 0;
380
- }
381
-
382
- dl,
383
- dt,
384
- dd {
385
- margin: 0;
386
- }