armtek-uikit-react 1.0.116 → 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
@@ -198,8 +198,19 @@ body{
198
198
 
199
199
  .border-radius {border-radius: var(--border-radius)}
200
200
 
201
+ .w-full{width: 100%}
202
+ .h-full{height: 100%}
203
+
204
+ .border-top{ border-top: 1px solid}
205
+ .border-bottom{ border-top: 1px solid}
206
+ .border-gray-50{ border-color: var(--color-gray-50)}
207
+ .border-gray-100{ border-color: var(--color-gray-100)}
208
+ .border-gray-200{ border-color: var(--color-gray-200)}
209
+ .border-gray-300{ border-color: var(--color-gray-300)}
210
+
201
211
  .flex{display: flex}
202
212
  .block{display: block}
213
+ .d-none{display: none}
203
214
  .items-center {align-items: center}
204
215
  .flex-wrap {flex-wrap: wrap}
205
216
  .justify-center {justify-content: center}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.116","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"}}
@@ -10,6 +10,8 @@ const ButtonIconClasses = ['button_icon'];
10
10
  function ButtonIcon(props) {
11
11
  return /*#__PURE__*/_jsx(_Fragment, {
12
12
  children: /*#__PURE__*/_jsx(Button, {
13
+ color: 'neutral',
14
+ variant: 'transparent',
13
15
  ...props,
14
16
  asIcon: true,
15
17
  className: clsx(css.button_icon, css['button_icon_' + props.size], props.className),
@@ -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
  })
@@ -57,7 +57,6 @@ export const DateField = /*#__PURE__*/forwardRef((props, ref) => {
57
57
  const inputIcon = showTime && showTimeOnly ? 'schedule' : 'calendar_today';
58
58
  let dateValue = typeof realValue === 'string' ? new Date(realValue) : realValue;
59
59
  if (!(dateValue instanceof Date && !isNaN(dateValue.getDate()))) dateValue = null;
60
- console.log(dateValue);
61
60
 
62
61
  //TODO Подключение Popover ломает тесты, разобраться почему
63
62
  return /*#__PURE__*/_jsxs(_Fragment, {