@cashub/ui 0.9.7 → 0.9.8

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.
@@ -14,81 +14,81 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
14
14
  // Currently, some style is all same for all viewport size
15
15
  // Common color style
16
16
  var colorStyle = {
17
- colorWhite: "#ffffff",
18
- colorDark: "#000000",
19
- colorGrey: "#5b5f6f",
20
- colorPrimary: "#597EF7",
21
- colorSuccess: "#11D8CD",
22
- colorWarning: "#FFCA7A",
23
- colorDanger: "#F495A1",
24
- colorHover: "rgba(89, 126, 247, 0.2)",
25
- colorActive: "rgba(89, 126, 247, 0.2)",
26
- scrollBarColor: "rgba(89, 126, 247, 0.3)",
27
- bgColor1: "#13142e",
28
- bgColor2: "#222143",
29
- bgColor3: "#2d2c4c",
30
- bgColor4: "#2d2a5d",
31
- backdropBg: "rgba(0, 0, 0, 0.5)"
17
+ colorWhite: '#ffffff',
18
+ colorDark: '#000000',
19
+ colorGrey: '#5b5f6f',
20
+ colorPrimary: '#597EF7',
21
+ colorSuccess: '#11D8CD',
22
+ colorWarning: '#FFCA7A',
23
+ colorDanger: '#F495A1',
24
+ colorHover: 'rgba(89, 126, 247, 0.2)',
25
+ colorActive: 'rgba(89, 126, 247, 0.2)',
26
+ scrollBarColor: 'rgba(89, 126, 247, 0.3)',
27
+ bgColor1: '#13142e',
28
+ bgColor2: '#222143',
29
+ bgColor3: '#2d2c4c',
30
+ bgColor4: '#2d2a5d',
31
+ backdropBg: 'rgba(0, 0, 0, 0.5)'
32
32
  }; // Common font style
33
33
 
34
34
  var fontStyle = {
35
- fontH1: "2.25rem",
36
- fontH2: "1.5rem",
37
- fontH3: "1.25rem",
38
- fontBody1: "1rem",
39
- fontBody2: "0.875rem",
40
- fontButton: "0.875rem",
41
- fontCaption: "0.75rem",
42
- fontFamily: "Helvetica",
43
- fontWeightNormal: "400",
44
- fontWeightBold: "bold",
35
+ fontH1: '2.25rem',
36
+ fontH2: '1.5rem',
37
+ fontH3: '1.25rem',
38
+ fontBody1: '1rem',
39
+ fontBody2: '0.875rem',
40
+ fontButton: '0.875rem',
41
+ fontCaption: '0.75rem',
42
+ fontFamily: 'Helvetica',
43
+ fontWeightNormal: '400',
44
+ fontWeightBold: 'bold',
45
45
  fontOnPrimary: colorStyle.colorWhite,
46
46
  fontOnSuccess: colorStyle.colorWhite,
47
47
  fontOnWarning: colorStyle.colorWhite,
48
48
  fontOnDanger: colorStyle.colorWhite,
49
49
  fontOnBg: colorStyle.colorWhite,
50
- fontMutedColor: "rgba(255, 255, 255, 0.5)"
50
+ fontMutedColor: 'rgba(255, 255, 255, 0.5)'
51
51
  }; // Theme stylesheet
52
52
 
53
53
  var darkTheme = {
54
54
  desktop: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
55
- boxShadow: "0px 0px 8px rgba(91, 95, 111, 0.5)",
56
- borderColor: "#5b5f6f",
57
- borderWidth: "1px",
58
- borderRadiusS: "0.5rem",
59
- borderRadius: "1rem",
60
- borderRadiusL: "2rem",
61
- borderRadiusRound: "50%",
62
- spacerXS: "0.5rem",
63
- spacerS: "1rem",
64
- spacer: "1.5rem",
65
- spacerL: "2rem"
55
+ boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
56
+ borderColor: '#5b5f6f',
57
+ borderWidth: '1px',
58
+ borderRadiusS: '0.5rem',
59
+ borderRadius: '1rem',
60
+ borderRadiusL: '2rem',
61
+ borderRadiusRound: '50%',
62
+ spacerXS: '0.5rem',
63
+ spacerS: '1rem',
64
+ spacer: '1.5rem',
65
+ spacerL: '2rem'
66
66
  }),
67
67
  tablet: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
68
- boxShadow: "0px 0px 8px rgba(91, 95, 111, 0.5)",
69
- borderColor: "#5b5f6f",
70
- borderWidth: "1px",
71
- borderRadiusS: "0.5rem",
72
- borderRadius: "1rem",
73
- borderRadiusL: "2rem",
74
- borderRadiusRound: "50%",
75
- spacerXS: "0.5rem",
76
- spacerS: "0.75rem",
77
- spacer: "1rem",
78
- spacerL: "1.25rem"
68
+ boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
69
+ borderColor: '#5b5f6f',
70
+ borderWidth: '1px',
71
+ borderRadiusS: '0.5rem',
72
+ borderRadius: '1rem',
73
+ borderRadiusL: '2rem',
74
+ borderRadiusRound: '50%',
75
+ spacerXS: '0.5rem',
76
+ spacerS: '0.75rem',
77
+ spacer: '1rem',
78
+ spacerL: '1.25rem'
79
79
  }),
80
80
  mobile: _objectSpread(_objectSpread(_objectSpread({}, fontStyle), colorStyle), {}, {
81
- boxShadow: "0px 0px 8px rgba(91, 95, 111, 0.5)",
82
- borderColor: "#5b5f6f",
83
- borderWidth: "1px",
84
- borderRadiusS: "0.5rem",
85
- borderRadius: "1rem",
86
- borderRadiusL: "2rem",
87
- borderRadiusRound: "50%",
88
- spacerXS: "0.5rem",
89
- spacerS: "0.75rem",
90
- spacer: "1rem",
91
- spacerL: "1.25rem"
81
+ boxShadow: '0px 0px 8px rgba(91, 95, 111, 0.5)',
82
+ borderColor: '#5b5f6f',
83
+ borderWidth: '1px',
84
+ borderRadiusS: '0.5rem',
85
+ borderRadius: '1rem',
86
+ borderRadiusL: '2rem',
87
+ borderRadiusRound: '50%',
88
+ spacerXS: '0.5rem',
89
+ spacerS: '0.75rem',
90
+ spacer: '1rem',
91
+ spacerL: '1.25rem'
92
92
  })
93
93
  };
94
94
  var _default = darkTheme;
@@ -20,8 +20,8 @@ var useLimitChange = function useLimitChange(setState) {
20
20
  setState(function (previous) {
21
21
  if (_typeof(previous) === 'object') {
22
22
  return _objectSpread(_objectSpread({}, previous), {}, {
23
- page: 1,
24
- limit: limit
23
+ limit: limit,
24
+ page: 1
25
25
  });
26
26
  }
27
27