@ludo.ninja/components 2.3.13 → 2.3.14

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.
@@ -6,6 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const jsx_runtime_1 = require("react/jsx-runtime");
7
7
  const utils_1 = require("@ludo.ninja/utils");
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
+ const ScreenWidth_1 = require("../../../styles/ScreenWidth");
10
+ const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
9
11
  const colors_1 = require("@ludo.ninja/ui/build/styles/colors");
10
12
  const env_1 = require("../../../store/env");
11
13
  const StyledMyWalletItem = styled_components_1.default.div `
@@ -21,12 +23,24 @@ const StyledMyWalletItem = styled_components_1.default.div `
21
23
  background-color: ${(props) => (props.isMainWallet ? colors_1.WhiteColor : "#f6f7fd")};
22
24
  margin-bottom: 12px;
23
25
 
26
+ ${ScreenWidth_1.mediaQuery.minWidthFourK} {
27
+ border-radius: ${(0, _4k_1.adaptiveValueCalc)(8)};
28
+ min-height: ${(0, _4k_1.adaptiveValueCalc)(36)};
29
+ padding: ${(0, _4k_1.adaptiveValueCalc)(10)} ${(0, _4k_1.adaptiveValueCalc)(12)};
30
+ margin-bottom: ${(0, _4k_1.adaptiveValueCalc)(12)};
31
+ }
32
+
24
33
  &:last-child {
25
34
  margin-bottom: 0;
26
35
  }
27
36
  `;
28
37
  const StyledImg = styled_components_1.default.img `
29
38
  border-radius: 50%;
39
+
40
+ ${ScreenWidth_1.mediaQuery.minWidthFourK} {
41
+ width: ${(0, _4k_1.adaptiveValueCalc)(36)};
42
+ height: ${(0, _4k_1.adaptiveValueCalc)(36)};
43
+ }
30
44
  `;
31
45
  const StyledContent = styled_components_1.default.div `
32
46
  display: flex;
@@ -46,6 +60,18 @@ const StyledContent = styled_components_1.default.div `
46
60
  font-size: 13px;
47
61
  color: ${colors_1.TextGrayColor};
48
62
  }
63
+
64
+ ${ScreenWidth_1.mediaQuery.minWidthFourK} {
65
+ margin-left: ${(0, _4k_1.adaptiveValueCalc)(12)};
66
+
67
+ span {
68
+ font-size: ${(0, _4k_1.adaptiveValueCalc)(12)};
69
+ }
70
+
71
+ p {
72
+ font-size: ${(0, _4k_1.adaptiveValueCalc)(13)};
73
+ }
74
+ }
49
75
  `;
50
76
  const MyWalletItem = ({ blockchain, address, isMainWallet, children, }) => {
51
77
  const getStaticENVDomain = (0, env_1.useEnvStore)((state) => state.getStaticDomain);
@@ -6,9 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const jsx_runtime_1 = require("react/jsx-runtime");
7
7
  const Forms_1 = require("../../../../system/Forms");
8
8
  const styled_components_1 = __importDefault(require("styled-components"));
9
+ const ScreenWidth_1 = require("../../../../styles/ScreenWidth");
10
+ const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
9
11
  const StyledCheckbox = styled_components_1.default.div `
10
12
  position: absolute;
11
13
  right: 12px;
14
+ ${ScreenWidth_1.mediaQuery.minWidthFourK} {
15
+ right: ${(0, _4k_1.adaptiveValueCalc)(12)};
16
+ }
12
17
  `;
13
18
  const MyWalletItemCheckBox = ({ onChange, name, register, checked, }) => {
14
19
  return ((0, jsx_runtime_1.jsx)(StyledCheckbox, { children: (0, jsx_runtime_1.jsx)(Forms_1.CheckboxInput, { label: "", data: { name }, register: register(name, { onChange }), checked: checked }) }));
@@ -10,6 +10,8 @@ const Input_1 = require("../Input");
10
10
  const constants_1 = require("@ludo.ninja/core/build/constants");
11
11
  const react_1 = require("react");
12
12
  const styled_components_1 = __importDefault(require("styled-components"));
13
+ const ScreenWidth_1 = require("../../../styles/ScreenWidth");
14
+ const _4k_1 = require("@ludo.ninja/ui/build/utils/4k");
13
15
  const BasicCheckbox = styled_components_1.default.label `
14
16
  display: flex;
15
17
  align-items: center;
@@ -23,6 +25,14 @@ const BasicCheckbox = styled_components_1.default.label `
23
25
  width: 100%;
24
26
  position: relative;
25
27
  cursor: pointer;
28
+
29
+ ${ScreenWidth_1.mediaQuery.minWidthFourK} {
30
+ padding-left: ${(0, _4k_1.adaptiveValueCalc)(25)};
31
+ padding-bottom: ${(0, _4k_1.adaptiveValueCalc)(2)};
32
+ margin: ${(0, _4k_1.adaptiveValueCalc)(14)} 0;
33
+ gap: ${(0, _4k_1.adaptiveValueCalc)(6)};
34
+ font-size: ${(0, _4k_1.adaptiveValueCalc)(15)};
35
+ }
26
36
 
27
37
  .input {
28
38
  position: absolute;
@@ -48,6 +58,11 @@ const BasicCheckbox = styled_components_1.default.label `
48
58
  background-color: ${colors_1.WhiteColor};
49
59
  border: 2px solid ${colors_1.BorderColorLight};
50
60
  border-radius: 6px;
61
+ ${ScreenWidth_1.mediaQuery.minWidthFourK} {
62
+ height: ${(0, _4k_1.adaptiveValueCalc)(18)};
63
+ width: ${(0, _4k_1.adaptiveValueCalc)(18)};
64
+ border-radius: ${(0, _4k_1.adaptiveValueCalc)(6)};
65
+ }
51
66
  }
52
67
  `;
53
68
  const CheckboxInput = ({ data, label, register, error, className, value, withInput, innerTextInputRef, disabled, checked, }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/components",
3
- "version": "2.3.13",
3
+ "version": "2.3.14",
4
4
  "private": false,
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",