armtek-uikit-react 1.0.117 → 1.0.118

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,9 @@
6
6
  .checkbox__input{
7
7
  display: none;
8
8
  }
9
+ .checkbox__text_raw{
10
+ padding-top: 2px;
11
+ }
9
12
  .checkbox__label{
10
13
  cursor: pointer;
11
14
  text-align: left;
@@ -13,22 +16,21 @@
13
16
  display: block;
14
17
  font-size: 16px;
15
18
  line-height: 1.2;
16
- width:22px;
17
- height: 22px;
19
+ min-height: 22px;
18
20
  & .checkbox__text{
19
21
  display: block;
20
22
  padding-left: 31px;
21
23
  }
22
24
  &:before{
23
- width: 100%;
24
- height: 100%;
25
+ width:22px;
26
+ height: 22px;
25
27
  border-radius: $radius;
26
28
  border: 1px solid $color-gray-700;
27
29
  background: #fff;
28
30
  position: absolute;
29
31
  content: '';
30
32
  left: 0;
31
- top: -3px;
33
+ top: 0px;
32
34
  box-sizing: border-box;
33
35
  }
34
36
  &:after{
@@ -36,7 +38,7 @@
36
38
  position: absolute;
37
39
  transform: rotate(45deg);
38
40
  left: 8px;
39
- top: 1px;
41
+ top: 4px;
40
42
  width: 7px;
41
43
  height: 11px;
42
44
  border-bottom: 2px solid;
@@ -44,61 +46,61 @@
44
46
  display: none;
45
47
  box-sizing: border-box;
46
48
  }
47
- & span{
48
- display: inline-block;
49
- padding-left: 5px;
50
- }
51
49
  }
52
50
 
53
51
  .checkbox_medium{
54
- width:18px;
55
- height: 18px;
52
+ min-height: 18px;
56
53
  & .checkbox__text{
57
54
  //padding-left: 27px;
58
55
  }
56
+ &:before{
57
+ width:18px;
58
+ height: 18px;
59
+ }
59
60
  &:after{
60
61
  left: 6px;
61
62
  top: 2px;
62
63
  width: 6px;
63
64
  height: 10px;
64
65
  }
65
- &:before{
66
- top:-1px;
66
+ & .checkbox__text_raw{
67
+ padding-top: 0px;
67
68
  }
68
69
  }
69
70
  .checkbox_small{
70
71
  font-size: 14px;
71
- width:16px;
72
- height: 16px;
72
+ min-height: 16px;
73
73
  & .checkbox__text{
74
74
  padding-left: 25px;
75
75
  }
76
+ &:before{
77
+ width:16px;
78
+ height: 16px;
79
+ }
76
80
  &:after{
77
81
  left: 5px;
78
- top: 1px;
82
+ top: 3px;
79
83
  height: 8px;
80
84
  width: 6px;
81
85
  }
82
- &:before{
83
- top: -2px;
84
- }
85
86
  }
86
87
  .checkbox__label_intermediate{
87
88
  &:after{
88
89
  border-left: none;
89
90
  width: 14px;
90
91
  transform: none;
91
- top: 7px;
92
+ top: 10px;
92
93
  height: 0;
93
94
  left: 4px;
94
95
  border-right: none;
95
96
  }
96
97
  &.checkbox_medium:after{
97
98
  width: 11px;
99
+ top: 8px;
98
100
  }
99
101
  &.checkbox_small:after{
100
102
  width: 9px;
101
- top: 5px;
103
+ top: 7px;
102
104
  }
103
105
  }
104
106
 
package/assets/global.css CHANGED
@@ -210,6 +210,7 @@ body{
210
210
 
211
211
  .flex{display: flex}
212
212
  .block{display: block}
213
+ .d-none{display: none}
213
214
  .items-center {align-items: center}
214
215
  .flex-wrap {flex-wrap: wrap}
215
216
  .justify-center {justify-content: center}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.117","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.118","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
@@ -1,6 +1,6 @@
1
1
  "use client";
2
2
 
3
- import { useState } from 'react';
3
+ import { isValidElement, useState } from 'react';
4
4
  import clsx from 'clsx';
5
5
  import css from "./Checkbox.module.scss";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -43,7 +43,9 @@ const Checkbox = props => {
43
43
  onChange: handleChange,
44
44
  type: props.type || 'checkbox'
45
45
  }), label && /*#__PURE__*/_jsx("span", {
46
- className: css.checkbox__text,
46
+ className: clsx(css.checkbox__text, {
47
+ [css.checkbox__text_raw]: ! /*#__PURE__*/isValidElement(label)
48
+ }),
47
49
  children: label
48
50
  })]
49
51
  })