linear-react-components-ui 1.1.24-rc.2 → 1.1.25-beta.10
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.
- package/lib/{BaseMask-0c14ef51.d.ts → BaseMask-78847f45.d.ts} +1 -1
- package/lib/{Cnpj-bde01dd0.d.ts → Cnpj-8366781f.d.ts} +1 -1
- package/lib/{Cpf-3fa496ad.d.ts → Cpf-3dfd54eb.d.ts} +1 -1
- package/lib/{Phone-2bb0b397.d.ts → Phone-1962c0f2.d.ts} +1 -1
- package/lib/{ZipCode-09460e18.d.ts → ZipCode-be9c5b3b.d.ts} +1 -1
- package/lib/assets/styles/button.scss +1 -1
- package/lib/assets/styles/calendar.scss +3 -3
- package/lib/assets/styles/datepicker2.scss +7 -3
- package/lib/assets/styles/dialog.scss +1 -1
- package/lib/assets/styles/drawers.scss +1 -2
- package/lib/assets/styles/fieldset.scss +1 -1
- package/lib/assets/styles/gridlayout.scss +20 -19
- package/lib/assets/styles/multiSelect.scss +6 -6
- package/lib/assets/styles/periodpicker.scss +1 -1
- package/lib/assets/styles/radio.scss +114 -87
- package/lib/assets/styles/selectfield.scss +7 -3
- package/lib/assets/styles/split.scss +1 -1
- package/lib/assets/styles/table.scss +6 -0
- package/lib/assets/styles/tabs.scss +6 -2
- package/lib/assets/styles/textfield.scss +7 -3
- package/lib/assets/styles/tooltip.scss +5 -4
- package/lib/buttons/DefaultButton.js +1 -1
- package/lib/checkbox/index.js +3 -1
- package/lib/checkbox/types.d.ts +1 -0
- package/lib/dialog/base/index.js +20 -22
- package/lib/dialog/form/index.js +6 -4
- package/lib/drawer/Drawer.js +2 -3
- package/lib/drawer/index.js +1 -1
- package/lib/icons/helper.d.ts +12 -0
- package/lib/icons/helper.js +12 -0
- package/lib/{index-3b70931d.d.ts → index-02a27c19.d.ts} +2 -20
- package/lib/index-053f615b.d.ts +26 -0
- package/lib/{index-7dfa8924.d.ts → index-25b80f32.d.ts} +1 -1
- package/lib/{index-9e576346.d.ts → index-6f5c772d.d.ts} +1 -1
- package/lib/{index-208e7f62.d.ts → index-6fcf446c.d.ts} +2 -20
- package/lib/index-7159df18.d.ts +21 -0
- package/lib/{index-e71434f9.d.ts → index-afb7b5a9.d.ts} +1 -1
- package/lib/inputs/date/index.js +3 -6
- package/lib/inputs/multiSelect/Dropdown.js +4 -3
- package/lib/inputs/multiSelect/index.js +23 -5
- package/lib/inputs/multiSelect/types.d.ts +2 -0
- package/lib/inputs/period/PeriodList.js +3 -12
- package/lib/inputs/period/index.js +97 -124
- package/lib/inputs/search/index.js +6 -2
- package/lib/inputs/select/multiple/index.js +3 -2
- package/lib/inputs/select/simple/index.js +4 -3
- package/lib/inputs/select/types.d.ts +1 -0
- package/lib/inputs/types.d.ts +1 -0
- package/lib/inputs2/checkboxfield/base.d.ts +29 -0
- package/lib/inputs2/checkboxfield/base.js +134 -0
- package/lib/inputs2/checkboxfield/index.d.ts +3 -2
- package/lib/inputs2/checkboxfield/index.js +32 -124
- package/lib/inputs2/colorfield/index.d.ts +6 -5
- package/lib/inputs2/date/datefield/base.d.ts +13 -0
- package/lib/inputs2/date/datefield/base.js +330 -0
- package/lib/inputs2/date/datefield/index.js +34 -322
- package/lib/inputs2/date/datefield/types.d.ts +5 -3
- package/lib/inputs2/date/dateperiodfield/base.d.ts +13 -0
- package/lib/inputs2/date/dateperiodfield/base.js +595 -0
- package/lib/inputs2/date/dateperiodfield/index.js +34 -587
- package/lib/inputs2/date/dateperiodfield/types.d.ts +5 -3
- package/lib/inputs2/filefield/index.d.ts +6 -5
- package/lib/inputs2/index.d.ts +18 -15
- package/lib/inputs2/mask/BaseMask.d.ts +6 -5
- package/lib/inputs2/mask/Cnpj.d.ts +7 -6
- package/lib/inputs2/mask/Cpf.d.ts +7 -6
- package/lib/inputs2/mask/Phone.d.ts +7 -6
- package/lib/inputs2/mask/ZipCode.d.ts +7 -6
- package/lib/inputs2/numberfield/currency.d.ts +5 -4
- package/lib/inputs2/numberfield/decimal.d.ts +5 -4
- package/lib/inputs2/numberfield/index.d.ts +5 -4
- package/lib/inputs2/numberfield/index.js +19 -2
- package/lib/inputs2/numberfield/types.d.ts +5 -4
- package/lib/inputs2/radiofield/base.d.ts +12 -0
- package/lib/inputs2/radiofield/base.js +156 -0
- package/lib/inputs2/radiofield/index.d.ts +1 -1
- package/lib/inputs2/radiofield/index.js +30 -119
- package/lib/inputs2/radiofield/types.d.ts +6 -3
- package/lib/inputs2/selectfield/base.d.ts +11 -0
- package/lib/inputs2/selectfield/base.js +513 -0
- package/lib/inputs2/selectfield/index.d.ts +1 -1
- package/lib/inputs2/selectfield/index.js +35 -502
- package/lib/inputs2/selectfield/types.d.ts +8 -6
- package/lib/inputs2/textareafield/base.d.ts +26 -0
- package/lib/inputs2/textareafield/base.js +166 -0
- package/lib/inputs2/textareafield/index.d.ts +4 -3
- package/lib/inputs2/textareafield/index.js +30 -154
- package/lib/inputs2/textfield/base.d.ts +26 -0
- package/lib/inputs2/textfield/base.js +131 -0
- package/lib/inputs2/textfield/index.d.ts +5 -4
- package/lib/inputs2/textfield/index.js +30 -120
- package/lib/radio/index.js +8 -7
- package/lib/table/index.js +18 -8
- package/lib/table/types.d.ts +1 -0
- package/lib/tabs/index.js +2 -2
- package/lib/tooltip/TooltipContent.js +1 -1
- package/lib/tooltip/useTooltip.js +25 -0
- package/package.json +1 -1
- package/lib/index-299f841a.d.ts +0 -41
- package/lib/index-cd005ed1.d.ts +0 -26
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
|
-
import { M as MaskFieldProps } from './BaseMask-
|
|
2
|
+
import { M as MaskFieldProps } from './BaseMask-78847f45.js';
|
|
3
3
|
|
|
4
4
|
declare const Input: React__default.ForwardRefExoticComponent<MaskFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
5
5
|
|
|
@@ -44,10 +44,10 @@ $border-radius-size: 5px;
|
|
|
44
44
|
justify-content: center;
|
|
45
45
|
background-color: transparent;
|
|
46
46
|
font-weight: bold;
|
|
47
|
-
border:
|
|
47
|
+
border: 1px solid transparent;
|
|
48
48
|
|
|
49
49
|
svg {
|
|
50
|
-
margin: 0;
|
|
50
|
+
margin: 0 !important;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&:hover {
|
|
@@ -110,7 +110,7 @@ $border-radius-size: 5px;
|
|
|
110
110
|
width: 100%;
|
|
111
111
|
padding: 0;
|
|
112
112
|
font-size: 13px;
|
|
113
|
-
border:
|
|
113
|
+
border: 2px solid transparent;
|
|
114
114
|
background-color: transparent;
|
|
115
115
|
|
|
116
116
|
&.-nowday {
|
|
@@ -58,7 +58,7 @@ input::-webkit-inner-spin-button {
|
|
|
58
58
|
.container {
|
|
59
59
|
position: relative;
|
|
60
60
|
width: 100%;
|
|
61
|
-
height:
|
|
61
|
+
height: 31px;
|
|
62
62
|
margin: 0;
|
|
63
63
|
padding: 0;
|
|
64
64
|
overflow: hidden;
|
|
@@ -106,14 +106,18 @@ input::-webkit-inner-spin-button {
|
|
|
106
106
|
.input {
|
|
107
107
|
@extend %input-placeholder;
|
|
108
108
|
@extend %component-fonts;
|
|
109
|
-
flex
|
|
110
|
-
|
|
109
|
+
flex: 1;
|
|
110
|
+
height: 100%;
|
|
111
|
+
width: 100%;
|
|
111
112
|
padding: 6px;
|
|
112
113
|
font-size: 0.875rem;
|
|
113
114
|
text-indent: 0.375rem;
|
|
114
115
|
line-height: 0.875rem;
|
|
115
116
|
border: none;
|
|
116
117
|
background-color: transparent;
|
|
118
|
+
overflow: hidden;
|
|
119
|
+
text-overflow: ellipsis;
|
|
120
|
+
white-space: nowrap;
|
|
117
121
|
&[data-state-text-align=left] {
|
|
118
122
|
text-align: left;
|
|
119
123
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
@import "colors.scss";
|
|
2
2
|
@import "commons.scss";
|
|
3
3
|
@import "effects.scss";
|
|
4
|
+
|
|
4
5
|
.drawer-component {
|
|
5
6
|
position: fixed;
|
|
6
|
-
z-index: 9998;
|
|
7
7
|
overflow: auto;
|
|
8
8
|
& .drawercontainer {
|
|
9
9
|
font-family: 'Roboto', sans-serif;
|
|
@@ -155,5 +155,4 @@
|
|
|
155
155
|
width: 100%;
|
|
156
156
|
top: 0;
|
|
157
157
|
left: 0;
|
|
158
|
-
z-index: 9997;
|
|
159
158
|
}
|
|
@@ -26,31 +26,32 @@ html {
|
|
|
26
26
|
&.-withskeleton {
|
|
27
27
|
margin-bottom: 10px;
|
|
28
28
|
}
|
|
29
|
-
}
|
|
30
29
|
|
|
31
|
-
@media (min-width: 576px) {
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
@media (min-width: 576px) {
|
|
31
|
+
>.container {
|
|
32
|
+
max-width: 540px;
|
|
33
|
+
}
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
|
|
36
|
+
@media (min-width: 768px) {
|
|
37
|
+
>.container {
|
|
38
|
+
max-width: 720px;
|
|
39
|
+
}
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
|
|
42
|
+
@media (min-width: 992px) {
|
|
43
|
+
>.container {
|
|
44
|
+
max-width: 960px;
|
|
45
|
+
}
|
|
46
46
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
|
|
48
|
+
@media (min-width: 1200px) {
|
|
49
|
+
>.container {
|
|
50
|
+
max-width: 1140px;
|
|
51
|
+
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
+
|
|
54
55
|
.container-fluid {
|
|
55
56
|
width: 100%;
|
|
56
57
|
padding-right: 15px;
|
|
@@ -58,23 +58,23 @@
|
|
|
58
58
|
z-index: 9999;
|
|
59
59
|
|
|
60
60
|
>.filtercontainer {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
justify-content: start;
|
|
64
64
|
border: 1px solid $component-border-color;
|
|
65
65
|
margin: 4px;
|
|
66
66
|
|
|
67
67
|
>.filterinput {
|
|
68
68
|
border: 0;
|
|
69
|
+
flex: 1;
|
|
69
70
|
font-size: 13px;
|
|
70
71
|
text-indent: 4px;
|
|
71
72
|
padding: 10px 5px;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
75
|
>.filtericon {
|
|
75
|
-
|
|
76
|
-
right:
|
|
77
|
-
top: 10px;
|
|
76
|
+
margin: 0px;
|
|
77
|
+
margin-right: 6px;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
|
|
@@ -4,153 +4,180 @@
|
|
|
4
4
|
$radio-button-checked-color: $component-selected-color;
|
|
5
5
|
$radio-button-border-color: rgba(0, 0, 0, 0.54);
|
|
6
6
|
$radio-button-size: 20px;
|
|
7
|
-
$radio-button-checked-size: 10px;
|
|
7
|
+
$radio-button-checked-size: 10px;
|
|
8
8
|
$radio-button-ripple-size: 15px;
|
|
9
9
|
|
|
10
|
+
:root {
|
|
11
|
+
--radio-small: 12px;
|
|
12
|
+
--radio-medium: 16px;
|
|
13
|
+
--radio-large: 20px;
|
|
14
|
+
--radio-border-size: 1px;
|
|
15
|
+
--radio-checked-blank-size: calc(var(--radio-border-size) * 6);
|
|
16
|
+
}
|
|
17
|
+
|
|
10
18
|
@keyframes ripple {
|
|
11
19
|
0% {
|
|
12
20
|
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.0);
|
|
13
21
|
}
|
|
14
|
-
|
|
22
|
+
|
|
23
|
+
50% {
|
|
15
24
|
box-shadow: 0px 0px 0px $radio-button-ripple-size rgba(0, 0, 0, 0.1);
|
|
16
25
|
}
|
|
26
|
+
|
|
17
27
|
100% {
|
|
18
28
|
box-shadow: 0px 0px 0px $radio-button-ripple-size rgba(0, 0, 0, 0);
|
|
19
29
|
}
|
|
20
30
|
}
|
|
21
|
-
|
|
22
|
-
|
|
31
|
+
|
|
32
|
+
.radio-button {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: center;
|
|
35
|
+
justify-content: flex-start;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.radio-component:disabled+.description:before {
|
|
39
|
+
background-color: #e5e5e5 !important;
|
|
23
40
|
}
|
|
24
41
|
|
|
25
42
|
.radio-component {
|
|
26
|
-
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
|
|
45
|
+
&:disabled+.description:before {
|
|
27
46
|
background-color: rgb(229, 229, 229);
|
|
28
47
|
}
|
|
29
|
-
|
|
48
|
+
|
|
49
|
+
&:disabled+.description {
|
|
30
50
|
color: $font-color-disabled;
|
|
31
51
|
}
|
|
32
52
|
}
|
|
33
53
|
|
|
34
|
-
.radio-component:
|
|
35
|
-
|
|
36
|
-
position: absolute;
|
|
37
|
-
left: -9999px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.radio-component:focus + label:before {
|
|
41
|
-
box-shadow: 0 0 2px 1px $radio-button-checked-color;
|
|
54
|
+
.radio-component:focus+label:before {
|
|
55
|
+
box-shadow: 0 0 2px 1px $radio-button-checked-color;
|
|
42
56
|
}
|
|
43
57
|
|
|
44
|
-
.radio-component:checked
|
|
45
|
-
.radio-component:not(:checked)
|
|
46
|
-
|
|
47
|
-
padding-left: 1.35rem;
|
|
58
|
+
.radio-component:checked+.description,
|
|
59
|
+
.radio-component:not(:checked)+.description {
|
|
60
|
+
text-indent: 0.375rem;
|
|
48
61
|
cursor: pointer;
|
|
49
62
|
line-height: 20px;
|
|
50
63
|
display: inline-block;
|
|
51
|
-
color: $font-color-soft;
|
|
64
|
+
color: $font-color-soft;
|
|
65
|
+
|
|
52
66
|
&.-medium {
|
|
53
|
-
padding-left: 1.6rem;
|
|
54
67
|
padding-top: 0.1rem;
|
|
55
68
|
}
|
|
69
|
+
|
|
56
70
|
&.-large {
|
|
57
|
-
padding-left: 1.875rem;
|
|
58
71
|
padding-top: 0.2rem;
|
|
59
72
|
}
|
|
60
73
|
}
|
|
61
74
|
|
|
62
|
-
.disabled
|
|
75
|
+
.disabled+.description {
|
|
63
76
|
@extend %component-menu-disabled;
|
|
64
77
|
}
|
|
65
78
|
|
|
66
|
-
.radio-component
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
top: 0;
|
|
72
|
-
border: 1px solid $component-border-color;
|
|
79
|
+
input.radio-component {
|
|
80
|
+
appearance: unset;
|
|
81
|
+
display: inline-flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: center;
|
|
73
84
|
border-radius: 100%;
|
|
74
|
-
|
|
75
|
-
|
|
85
|
+
width: var(--radio-medium);
|
|
86
|
+
height: var(--radio-medium);
|
|
87
|
+
background-color: $default-color;
|
|
88
|
+
border: 1px solid $component-border-color;
|
|
76
89
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
top: 0.245rem;
|
|
88
|
-
left: 0.285rem;
|
|
89
|
-
}
|
|
90
|
-
.-large:before{
|
|
91
|
-
width: 24px;
|
|
92
|
-
height: 24px;
|
|
93
|
-
top: 0.245rem;
|
|
94
|
-
left: 0.285rem;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.-small:after{
|
|
98
|
-
width: 8px;
|
|
99
|
-
height: 8px;
|
|
100
|
-
top: 0.23rem;
|
|
101
|
-
left: 0.27rem;
|
|
102
|
-
}
|
|
103
|
-
.-medium:after{
|
|
104
|
-
width: 12px;
|
|
105
|
-
height: 12px;
|
|
106
|
-
top: 0.24rem;
|
|
107
|
-
left: 0.26rem;
|
|
108
|
-
}
|
|
109
|
-
.-large:after{
|
|
110
|
-
width: 16px;
|
|
111
|
-
height: 16px;
|
|
112
|
-
top: 0.245rem;
|
|
113
|
-
left: 0.285rem;
|
|
90
|
+
&:checked {
|
|
91
|
+
border-color: $radio-button-checked-color;
|
|
92
|
+
|
|
93
|
+
&::after {
|
|
94
|
+
content: '';
|
|
95
|
+
width: calc(var(--radio-medium) - var(--radio-checked-blank-size));
|
|
96
|
+
height: calc(var(--radio-medium) - var(--radio-checked-blank-size));
|
|
97
|
+
border-radius: 100%;
|
|
98
|
+
background-color: $radio-button-checked-color;
|
|
99
|
+
}
|
|
114
100
|
}
|
|
115
|
-
}
|
|
116
101
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
102
|
+
&:hover,
|
|
103
|
+
&:focus {
|
|
104
|
+
outline: 3px solid rgba(161, 13, 13, 0.35);
|
|
105
|
+
outline-offset: 0px;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&:disabled {
|
|
109
|
+
cursor: not-allowed;
|
|
110
|
+
cursor: default;
|
|
111
|
+
background-color: $input-disabled-bg-color;
|
|
112
|
+
|
|
113
|
+
&:checked {
|
|
114
|
+
border-color: $font-color-disabled;
|
|
115
|
+
|
|
116
|
+
&::after {
|
|
117
|
+
background-color: $font-color-disabled;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&[data-state-size="small"] {
|
|
123
|
+
width: var(--radio-small);
|
|
124
|
+
height: var(--radio-small);
|
|
125
|
+
|
|
126
|
+
&::after {
|
|
127
|
+
width: calc(var(--radio-small) - var(--radio-checked-blank-size));
|
|
128
|
+
height: calc(var(--radio-small) - var(--radio-checked-blank-size));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&[data-state-size="medium"] {
|
|
133
|
+
width: var(--radio-medium);
|
|
134
|
+
height: var(--radio-medium);
|
|
135
|
+
|
|
136
|
+
&::after {
|
|
137
|
+
width: calc(var(--radio-medium) - var(--radio-checked-blank-size));
|
|
138
|
+
height: calc(var(--radio-medium) - var(--radio-checked-blank-size));
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&[data-state-size="large"] {
|
|
143
|
+
width: var(--radio-large);
|
|
144
|
+
height: var(--radio-large);
|
|
145
|
+
|
|
146
|
+
&::after {
|
|
147
|
+
width: calc(var(--radio-large) - var(--radio-checked-blank-size));
|
|
148
|
+
height: calc(var(--radio-large) - var(--radio-checked-blank-size));
|
|
149
|
+
}
|
|
150
|
+
}
|
|
125
151
|
}
|
|
126
152
|
|
|
127
|
-
.radio-component:not(:checked)
|
|
153
|
+
.radio-component:not(:checked)+.description:after {
|
|
128
154
|
opacity: 0;
|
|
129
155
|
-webkit-transform: scale(0);
|
|
130
156
|
transform: scale(0);
|
|
131
157
|
}
|
|
132
158
|
|
|
133
|
-
.radio-component:checked
|
|
159
|
+
.radio-component:checked+.description:after {
|
|
134
160
|
opacity: 1;
|
|
135
161
|
-webkit-transform: scale(1);
|
|
136
162
|
transform: scale(1);
|
|
137
163
|
}
|
|
138
164
|
|
|
139
165
|
.radio-button.-skeletonized {
|
|
140
|
-
|
|
141
|
-
|
|
166
|
+
|
|
167
|
+
>.radio-component:not(:checked)+.description,
|
|
168
|
+
>.radio-component:checked+.description {
|
|
142
169
|
cursor: initial;
|
|
143
170
|
}
|
|
144
171
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
172
|
+
>.radio-component:checked+.description:before,
|
|
173
|
+
>.radio-component:checked+.description:after,
|
|
174
|
+
>.radio-component:not(:checked)+.description:before,
|
|
175
|
+
>.radio-component:not(:checked)+.description:after {
|
|
149
176
|
@extend %skeleton-component;
|
|
150
177
|
border-color: transparent;
|
|
151
178
|
}
|
|
152
179
|
|
|
153
|
-
|
|
180
|
+
>.description>span {
|
|
154
181
|
@extend %skeleton-component;
|
|
155
182
|
}
|
|
156
|
-
}
|
|
183
|
+
}
|
|
@@ -62,7 +62,7 @@ input::-webkit-inner-spin-button {
|
|
|
62
62
|
.container {
|
|
63
63
|
position: relative;
|
|
64
64
|
width: 100%;
|
|
65
|
-
min-height:
|
|
65
|
+
min-height: 31px;
|
|
66
66
|
margin: 0;
|
|
67
67
|
padding: 0;
|
|
68
68
|
overflow: hidden;
|
|
@@ -116,14 +116,18 @@ input::-webkit-inner-spin-button {
|
|
|
116
116
|
.input {
|
|
117
117
|
@extend %input-placeholder;
|
|
118
118
|
@extend %component-fonts;
|
|
119
|
-
flex
|
|
120
|
-
|
|
119
|
+
flex: 1;
|
|
120
|
+
width: 100%;
|
|
121
|
+
height: 100%;
|
|
121
122
|
padding: 6px;
|
|
122
123
|
font-size: 0.875rem;
|
|
123
124
|
text-indent: 0.375rem;
|
|
124
125
|
line-height: 0.875rem;
|
|
125
126
|
border: none;
|
|
126
127
|
background-color: transparent;
|
|
128
|
+
overflow: hidden;
|
|
129
|
+
text-overflow: ellipsis;
|
|
130
|
+
white-space: nowrap;
|
|
127
131
|
&[data-state-text-align=left] {
|
|
128
132
|
text-align: left;
|
|
129
133
|
}
|
|
@@ -82,8 +82,6 @@ $dropdown-width: 38px;
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.menu>.menuitem>.menubutton {
|
|
85
|
-
white-space: nowrap;
|
|
86
|
-
text-overflow: ellipsis;
|
|
87
85
|
background: transparent;
|
|
88
86
|
border: 0;
|
|
89
87
|
width: 100%;
|
|
@@ -92,10 +90,16 @@ $dropdown-width: 38px;
|
|
|
92
90
|
box-shadow: none !important;
|
|
93
91
|
|
|
94
92
|
.button-container {
|
|
93
|
+
overflow: hidden;
|
|
95
94
|
justify-content: flex-start;
|
|
96
95
|
> svg {
|
|
97
96
|
margin-right: 10px;
|
|
98
97
|
}
|
|
98
|
+
.button-content {
|
|
99
|
+
overflow: hidden;
|
|
100
|
+
white-space: nowrap;
|
|
101
|
+
text-overflow: ellipsis;
|
|
102
|
+
}
|
|
99
103
|
}
|
|
100
104
|
}
|
|
101
105
|
|
|
@@ -62,7 +62,7 @@ input[type="number"] {
|
|
|
62
62
|
}
|
|
63
63
|
.container {
|
|
64
64
|
width: 100%;
|
|
65
|
-
height:
|
|
65
|
+
height: 31px;
|
|
66
66
|
margin: 0;
|
|
67
67
|
padding: 0;
|
|
68
68
|
overflow: hidden;
|
|
@@ -108,14 +108,18 @@ input[type="number"] {
|
|
|
108
108
|
.input {
|
|
109
109
|
@extend %input-placeholder;
|
|
110
110
|
@extend %component-fonts;
|
|
111
|
-
flex
|
|
112
|
-
|
|
111
|
+
flex: 1;
|
|
112
|
+
height: 100%;
|
|
113
|
+
width: 100%;
|
|
113
114
|
padding: 6px;
|
|
114
115
|
font-size: 0.875rem;
|
|
115
116
|
text-indent: 0.375rem;
|
|
116
117
|
line-height: 0.875rem;
|
|
117
118
|
border: none;
|
|
118
119
|
background-color: transparent;
|
|
120
|
+
overflow: hidden;
|
|
121
|
+
text-overflow: ellipsis;
|
|
122
|
+
white-space: nowrap;
|
|
119
123
|
&[data-state-text-align="left"] {
|
|
120
124
|
text-align: left;
|
|
121
125
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import "colors.scss";
|
|
2
2
|
|
|
3
3
|
.tooltip-component {
|
|
4
|
+
--arrow-position: 50%;
|
|
4
5
|
font-family: 'Roboto', sans-serif;
|
|
5
6
|
position: absolute;
|
|
6
7
|
padding: 8px;
|
|
@@ -13,7 +14,7 @@
|
|
|
13
14
|
z-index: 999999;
|
|
14
15
|
pointer-events: none;
|
|
15
16
|
max-width: 300px;
|
|
16
|
-
word-break: break-word;
|
|
17
|
+
word-break: break-word;
|
|
17
18
|
&.left::after {
|
|
18
19
|
content: " ";
|
|
19
20
|
position: absolute;
|
|
@@ -34,11 +35,11 @@
|
|
|
34
35
|
border-style: solid;
|
|
35
36
|
border-color: transparent rgba(black, 0.85) transparent transparent;
|
|
36
37
|
}
|
|
37
|
-
&.top::after {
|
|
38
|
+
&.top::after {
|
|
38
39
|
content: " ";
|
|
39
40
|
position: absolute;
|
|
40
41
|
top: 100%;
|
|
41
|
-
left:
|
|
42
|
+
left: var(--arrow-position);
|
|
42
43
|
margin-left: -5px;
|
|
43
44
|
border-width: 5px;
|
|
44
45
|
border-style: solid;
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
content: " ";
|
|
49
50
|
position: absolute;
|
|
50
51
|
bottom: 100%;
|
|
51
|
-
left:
|
|
52
|
+
left: var(--arrow-position);
|
|
52
53
|
margin-left: -5px;
|
|
53
54
|
border-width: 5px;
|
|
54
55
|
border-style: solid;
|
|
@@ -67,7 +67,7 @@ const DefaultButton = _ref => {
|
|
|
67
67
|
const refButton = (0, _react.useRef)(null);
|
|
68
68
|
const disabledIconColor = 'rgb(193, 193, 193)';
|
|
69
69
|
const disabledByPermission = onDenied.disabled;
|
|
70
|
-
const isDisabled = !!onDenied.disabled || disabled;
|
|
70
|
+
const isDisabled = !!onDenied.disabled || disabled || skeletonize;
|
|
71
71
|
const getClass = () => "button-component ".concat(className, "\n ").concat(customClass, "\n ").concat(transparent && '-transparent', "\n ").concat(isDisabled && '-disabled', "\n ").concat(size && "-".concat(size), "\n ").concat(dropdown && !round && 'icon-right', "\n ").concat(dropdown && round && 'icon-center', "\n ").concat(iconAlign && !dropdown && "icon-".concat(iconAlign), "\n ").concat(boxShadow ? '' : '-shadowsdisabled', "\n ").concat(round && '-round');
|
|
72
72
|
const returnPadlockIcon = resultantStyle => /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
73
73
|
name: "padlock",
|
package/lib/checkbox/index.js
CHANGED
|
@@ -45,7 +45,8 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
45
45
|
customClassForLabel,
|
|
46
46
|
hintPosition = 'below',
|
|
47
47
|
themePopover = 'light',
|
|
48
|
-
popoverAlign = 'left'
|
|
48
|
+
popoverAlign = 'left',
|
|
49
|
+
tabIndex = 0
|
|
49
50
|
} = _ref;
|
|
50
51
|
const [isChecked, setIsChecked] = (0, _react.useState)(checked);
|
|
51
52
|
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible];
|
|
@@ -95,6 +96,7 @@ const CheckBox = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
95
96
|
if (targetRef) targetRef(r);
|
|
96
97
|
inputRef.current = r;
|
|
97
98
|
},
|
|
99
|
+
tabIndex: tabIndex,
|
|
98
100
|
className: "input",
|
|
99
101
|
type: "checkbox",
|
|
100
102
|
autoFocus: autofocus,
|