linear-react-components-ui 1.1.21-rc.1 → 1.1.21-rc.2
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/assets/styles/button.scss +56 -29
- package/lib/assets/styles/calendar.scss +64 -30
- package/lib/assets/styles/datepicker.scss +26 -6
- package/lib/assets/styles/floatMenu.scss +1 -3
- package/lib/assets/styles/periodpicker.scss +60 -20
- package/lib/assets/styles/sidenav.scss +5 -4
- package/lib/assets/styles/tabs.scss +56 -18
- package/lib/buttons/DefaultButton.js +5 -1
- package/lib/buttons/split_button/index.d.ts +2 -2
- package/lib/buttons/split_button/index.js +18 -12
- package/lib/buttons/types.d.ts +5 -2
- package/lib/calendar/DangerCalendar.d.ts +1 -0
- package/lib/calendar/InfoCalendar.d.ts +1 -0
- package/lib/calendar/PrimaryCalendar.d.ts +1 -0
- package/lib/calendar/SuccessCalendar.d.ts +1 -0
- package/lib/calendar/WarningCalendar.d.ts +1 -0
- package/lib/calendar/base/Day.d.ts +1 -0
- package/lib/calendar/base/Day.js +6 -2
- package/lib/calendar/base/Month.d.ts +2 -1
- package/lib/calendar/base/Month.js +2 -0
- package/lib/calendar/base/Week.d.ts +1 -0
- package/lib/calendar/base/index.d.ts +1 -0
- package/lib/calendar/base/index.js +61 -13
- package/lib/calendar/index.d.ts +1 -0
- package/lib/calendar/types.d.ts +5 -0
- package/lib/dialog/base/Content.js +5 -4
- package/lib/dialog/base/Header.js +0 -1
- package/lib/dialog/base/index.js +40 -4
- package/lib/drawer/Drawer.js +1 -1
- package/lib/dropdown/Popup.d.ts +2 -2
- package/lib/dropdown/types.d.ts +4 -4
- package/lib/form/Field.js +11 -2
- package/lib/form/FieldArray.js +11 -2
- package/lib/form/FieldNumber.js +10 -1
- package/lib/form/FieldPeriod.js +15 -12
- package/lib/form/index.d.ts +1 -1
- package/lib/form/index.js +30 -5
- package/lib/form/types.d.ts +13 -1
- package/lib/form/withFieldHOC.js +4 -2
- package/lib/icons/index.js +23 -21
- package/lib/inputs/base/InputTextBase.js +9 -2
- package/lib/inputs/base/types.d.ts +2 -0
- package/lib/inputs/date/Dialog.js +5 -4
- package/lib/inputs/date/Dropdown.js +13 -7
- package/lib/inputs/date/helpers.d.ts +1 -11
- package/lib/inputs/date/helpers.js +1 -14
- package/lib/inputs/date/index.js +124 -92
- package/lib/inputs/date/types.d.ts +7 -6
- package/lib/inputs/mask/BaseMask.js +0 -1
- package/lib/inputs/period/Dialog.d.ts +1 -1
- package/lib/inputs/period/Dialog.js +5 -3
- package/lib/inputs/period/Dropdown.js +16 -8
- package/lib/inputs/period/index.js +197 -75
- package/lib/inputs/period/types.d.ts +10 -8
- package/lib/inputs/select/ActionButtons.js +3 -2
- package/lib/inputs/select/Dropdown.js +4 -2
- package/lib/inputs/select/multiple/index.js +10 -4
- package/lib/inputs/select/simple/index.js +10 -4
- package/lib/inputs/select/types.d.ts +4 -0
- package/lib/inputs/types.d.ts +1 -0
- package/lib/spinner/SpinnerLoading.js +1 -0
- package/lib/spinner/types.d.ts +2 -2
- package/lib/tabs/DropdownTabs.js +21 -7
- package/lib/tabs/Menu.d.ts +1 -1
- package/lib/tabs/Menu.js +4 -2
- package/lib/tabs/MenuTabs.js +16 -5
- package/lib/tabs/context.d.ts +1 -1
- package/lib/tabs/context.js +6 -4
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tabs/index.js +13 -6
- package/lib/tabs/types.d.ts +9 -2
- package/lib/toolbar/types.d.ts +3 -2
- package/package.json +1 -1
|
@@ -18,8 +18,12 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
18
18
|
font-family: 'Titillium Web';
|
|
19
19
|
position: relative;
|
|
20
20
|
cursor: pointer;
|
|
21
|
-
display:
|
|
22
|
-
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
gap: 6px;
|
|
24
|
+
line-height: 1;
|
|
25
|
+
padding: 0.5rem 0.8rem;
|
|
26
|
+
box-sizing: border-box;
|
|
23
27
|
letter-spacing: normal;
|
|
24
28
|
border-width: 0;
|
|
25
29
|
border: 1px solid $default-border-color;
|
|
@@ -29,7 +33,6 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
29
33
|
background-color: $default-color;
|
|
30
34
|
color: $font-color-soft;
|
|
31
35
|
line-height: 1;
|
|
32
|
-
text-align: center;
|
|
33
36
|
transition: background-color .3s;
|
|
34
37
|
transition: all 0.2s ease-in-out;
|
|
35
38
|
box-shadow: $shadow-button-default;
|
|
@@ -47,21 +50,46 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
47
50
|
width: 0;
|
|
48
51
|
height: 0 !important;
|
|
49
52
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
&:has(.spinnercontainer) {
|
|
54
|
+
> .button-container:has(svg) {
|
|
55
|
+
> .button-content {
|
|
56
|
+
margin-right: auto;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
&.icon-left .button-container {
|
|
61
|
+
.icon-component {
|
|
62
|
+
margin-right: auto;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
> .button-container {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
flex: 1;
|
|
69
|
+
gap: 6px;
|
|
70
|
+
justify-content: center;
|
|
71
|
+
font-family: inherit;
|
|
72
|
+
font-weight: inherit;
|
|
73
|
+
font-size: inherit;
|
|
74
|
+
> .button-content {
|
|
75
|
+
font-family: inherit;
|
|
76
|
+
font-weight: inherit;
|
|
77
|
+
font-size: inherit;
|
|
78
|
+
}
|
|
79
|
+
> .icon-component {
|
|
80
|
+
width: 15px;
|
|
81
|
+
height: 15px;
|
|
82
|
+
}
|
|
54
83
|
}
|
|
55
84
|
> .spinnercontainer {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
85
|
+
width: 15px;
|
|
86
|
+
height: 15px;
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
margin-left: auto;
|
|
59
91
|
> .spinnerloading {
|
|
60
|
-
|
|
61
|
-
float: right;
|
|
62
|
-
margin-top: -15px;
|
|
63
|
-
margin-bottom: -20px;
|
|
64
|
-
margin-right: -20px;
|
|
92
|
+
scale: 2.5;
|
|
65
93
|
}
|
|
66
94
|
}
|
|
67
95
|
&.-pointerEventsRemove {
|
|
@@ -281,37 +309,36 @@ $shadow-button-inset-default: inset 0 0 0 1px $default-border-color, $shadow-but
|
|
|
281
309
|
}
|
|
282
310
|
}
|
|
283
311
|
|
|
312
|
+
.split-button-component {
|
|
313
|
+
display: flex;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
.btn-container {
|
|
317
|
+
gap: 10px;
|
|
318
|
+
}
|
|
319
|
+
|
|
284
320
|
.btn-container,
|
|
285
321
|
.toolbar-group {
|
|
286
|
-
|
|
322
|
+
display: flex;
|
|
323
|
+
flex-wrap: wrap;
|
|
287
324
|
> .button-component {
|
|
288
|
-
margin-right: 10px;
|
|
289
325
|
line-height: 15px;
|
|
290
326
|
}
|
|
291
|
-
> .button-component:last-child {
|
|
292
|
-
margin-right: 1px;
|
|
293
|
-
}
|
|
294
327
|
}
|
|
295
328
|
|
|
296
329
|
.button-component {
|
|
297
330
|
&.-primary .dropdown-icon,
|
|
298
331
|
&.-success .dropdown-icon,
|
|
299
332
|
&.-info .dropdown-icon,
|
|
300
|
-
&.-
|
|
333
|
+
&.-warning .dropdown-icon,
|
|
301
334
|
&.-danger .dropdown-icon {
|
|
302
335
|
fill: #FFF;
|
|
303
336
|
}
|
|
304
|
-
.dropdown-icon {
|
|
305
|
-
margin-left: 7px;
|
|
306
|
-
margin-right: -10px;
|
|
307
|
-
}
|
|
308
337
|
&.icon-right .icon-component {
|
|
309
|
-
|
|
310
|
-
margin: 1px 0 0 6px;
|
|
338
|
+
justify-self: right;
|
|
311
339
|
}
|
|
312
340
|
&.icon-left .icon-component {
|
|
313
|
-
|
|
314
|
-
margin: 1px 6px 0 0;
|
|
341
|
+
justify-self: left;
|
|
315
342
|
}
|
|
316
343
|
&.icon-top .icon-component {
|
|
317
344
|
margin-top: 0px;
|
|
@@ -3,28 +3,58 @@
|
|
|
3
3
|
@import "commons.scss";
|
|
4
4
|
|
|
5
5
|
$padding-size: 10px;
|
|
6
|
+
$border-radius-size: 5px;
|
|
6
7
|
.calendar-component {
|
|
7
|
-
|
|
8
|
-
grid-template-rows: 30px 30px 1fr;
|
|
9
|
-
border: 1px solid $component-border-color;
|
|
10
|
-
border-radius: 5px;
|
|
11
|
-
font-size: 12px;
|
|
8
|
+
width: auto;
|
|
12
9
|
height: 100%;
|
|
13
|
-
|
|
10
|
+
min-height: 20rem;
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
display: flex;
|
|
13
|
+
flex-direction: column;
|
|
14
|
+
border-radius: $border-radius-size;
|
|
15
|
+
border: 1px solid $component-border-color;
|
|
14
16
|
> .calendarheader,
|
|
15
17
|
> .daynames {
|
|
16
|
-
|
|
18
|
+
width: auto;
|
|
19
|
+
height: 1.85rem;
|
|
17
20
|
display: grid;
|
|
21
|
+
align-items: center;
|
|
22
|
+
background-color: #f0f0f0;
|
|
18
23
|
grid-template-columns: 20px 1fr 30px;
|
|
19
|
-
padding: $padding-size;
|
|
20
|
-
padding-top: 4px;
|
|
21
24
|
}
|
|
22
25
|
> .calendarheader {
|
|
26
|
+
width: auto;
|
|
27
|
+
height: 32px;
|
|
28
|
+
padding-top: 4px;
|
|
29
|
+
display: flex;
|
|
30
|
+
align-items: center;
|
|
31
|
+
justify-content: space-between;
|
|
32
|
+
border-top-left-radius: $border-radius-size;
|
|
33
|
+
border-top-right-radius: $border-radius-size;
|
|
23
34
|
> .navbutton {
|
|
35
|
+
width: 2rem;
|
|
36
|
+
height: 2rem;
|
|
37
|
+
padding: 0;
|
|
38
|
+
margin: 0px 2px;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
justify-content: center;
|
|
24
42
|
background-color: transparent;
|
|
25
43
|
font-weight: bold;
|
|
26
|
-
padding: 0;
|
|
27
44
|
border: none;
|
|
45
|
+
svg {
|
|
46
|
+
margin: 0;
|
|
47
|
+
}
|
|
48
|
+
&:hover {
|
|
49
|
+
background-color: $component-border-color;
|
|
50
|
+
}
|
|
51
|
+
&:focus {
|
|
52
|
+
-webkit-box-shadow: none !important;
|
|
53
|
+
box-shadow: none !important;
|
|
54
|
+
border: 1px solid $default-border-color;
|
|
55
|
+
background-color: $component-border-color;
|
|
56
|
+
}
|
|
57
|
+
transition: none;
|
|
28
58
|
}
|
|
29
59
|
> .monthname {
|
|
30
60
|
font-weight: bold;
|
|
@@ -35,16 +65,21 @@ $padding-size: 10px;
|
|
|
35
65
|
}
|
|
36
66
|
}
|
|
37
67
|
> .daynames {
|
|
68
|
+
padding-top: 4px;
|
|
38
69
|
border-bottom: 1px solid $component-border-color;
|
|
39
70
|
grid-template-columns: repeat(7, 1fr);
|
|
40
71
|
text-align: center;
|
|
41
|
-
padding-top: 9px;
|
|
42
72
|
}
|
|
43
73
|
> .calendarmonth {
|
|
44
|
-
|
|
74
|
+
width: 100%;
|
|
75
|
+
height: 100%;
|
|
76
|
+
flex: 1;
|
|
45
77
|
display: grid;
|
|
46
78
|
grid-template-rows: repeat(6, 1fr);
|
|
47
|
-
padding:
|
|
79
|
+
padding: 2px;
|
|
80
|
+
background-color: $font-color-second;
|
|
81
|
+
border-bottom-left-radius: $border-radius-size;
|
|
82
|
+
border-bottom-right-radius: $border-radius-size;
|
|
48
83
|
}
|
|
49
84
|
> .calendarmonth > .monthweek {
|
|
50
85
|
text-align: center;
|
|
@@ -52,16 +87,31 @@ $padding-size: 10px;
|
|
|
52
87
|
grid-template-columns: repeat(7, 1fr)
|
|
53
88
|
}
|
|
54
89
|
.calendarmonth > .monthweek > .monthday {
|
|
55
|
-
|
|
90
|
+
height: auto;
|
|
91
|
+
width: auto;
|
|
56
92
|
text-align: center;
|
|
57
93
|
border-right: 0;
|
|
58
94
|
border-bottom: 0;
|
|
59
95
|
transition: all 0.2s ease-in-out;
|
|
60
96
|
> .daybutton {
|
|
97
|
+
height: 100%;
|
|
98
|
+
width: 100%;
|
|
99
|
+
padding: 0;
|
|
100
|
+
font-size: 13px;
|
|
101
|
+
border: none;
|
|
102
|
+
background-color: transparent;
|
|
103
|
+
&.-nowday {
|
|
104
|
+
font-weight: bold
|
|
105
|
+
}
|
|
106
|
+
&.-outmonth {
|
|
107
|
+
color: #777;
|
|
108
|
+
}
|
|
61
109
|
&:focus {
|
|
62
110
|
-webkit-box-shadow: none !important;
|
|
63
111
|
box-shadow: none !important;
|
|
112
|
+
border: 2px solid $default-border-color;
|
|
64
113
|
}
|
|
114
|
+
transition: none;
|
|
65
115
|
}
|
|
66
116
|
&:hover {
|
|
67
117
|
background-color: $component-border-color;
|
|
@@ -74,19 +124,6 @@ $padding-size: 10px;
|
|
|
74
124
|
&.-selectedday > .daybutton {
|
|
75
125
|
color: $font-color-second;
|
|
76
126
|
}
|
|
77
|
-
> .daybutton {
|
|
78
|
-
background-color: transparent;
|
|
79
|
-
height: 100%;
|
|
80
|
-
padding: 0;
|
|
81
|
-
width: 100%;
|
|
82
|
-
font-size: 13px;
|
|
83
|
-
&.-nowday {
|
|
84
|
-
font-weight: bold
|
|
85
|
-
}
|
|
86
|
-
&.-outmonth {
|
|
87
|
-
color: #777;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
127
|
}
|
|
91
128
|
}
|
|
92
129
|
|
|
@@ -167,6 +204,3 @@ $padding-size: 10px;
|
|
|
167
204
|
}
|
|
168
205
|
}
|
|
169
206
|
|
|
170
|
-
.numberdaycalendar {
|
|
171
|
-
border: none!important;
|
|
172
|
-
}
|
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
@import "commons.scss";
|
|
2
2
|
@import "effects.scss";
|
|
3
3
|
|
|
4
|
+
.datepicker-container {
|
|
5
|
+
position: relative;
|
|
6
|
+
transition: none;
|
|
7
|
+
}
|
|
8
|
+
|
|
4
9
|
.datepicker-component {
|
|
5
10
|
@extend %component-box-shadow;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
11
|
+
z-index: 999999999999;
|
|
12
|
+
margin-top: 4px;
|
|
13
|
+
position: fixed;
|
|
9
14
|
animation: 0.5s ease-in 0s 1 slideDown;
|
|
15
|
+
transition: none;
|
|
10
16
|
}
|
|
11
17
|
|
|
12
18
|
.calendar-button {
|
|
13
19
|
width: 26px;
|
|
14
|
-
|
|
15
|
-
border:
|
|
16
|
-
|
|
20
|
+
border-radius: 0;
|
|
21
|
+
border: 0 !important;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
box-shadow: none !important;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
padding: 0 !important;
|
|
27
|
+
|
|
28
|
+
svg {
|
|
29
|
+
margin: 0 !important;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
>.icon-component {
|
|
33
|
+
width: 16px !important;
|
|
34
|
+
height: 16px !important;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
@import "commons.scss";
|
|
3
3
|
@import "effects.scss";
|
|
4
4
|
.floatmenu-component {
|
|
5
|
-
width: 100%;
|
|
6
5
|
display: flex;
|
|
7
6
|
justify-content: center;
|
|
8
7
|
>.buttonfloat {
|
|
@@ -10,8 +9,7 @@
|
|
|
10
9
|
width: 100%;
|
|
11
10
|
text-align: center;
|
|
12
11
|
>.icon-component {
|
|
13
|
-
|
|
14
|
-
margin-right: 2px;
|
|
12
|
+
margin: 0;
|
|
15
13
|
}
|
|
16
14
|
}
|
|
17
15
|
}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
@import "commons.scss";
|
|
2
2
|
@import "effects.scss";
|
|
3
|
+
@import "colors.scss";
|
|
4
|
+
|
|
5
|
+
.datepicker-period-container {
|
|
6
|
+
position: relative;
|
|
7
|
+
transition: none;
|
|
8
|
+
}
|
|
3
9
|
|
|
4
10
|
.periodpicker-component {
|
|
5
11
|
height: auto;
|
|
6
12
|
position: relative;
|
|
7
13
|
display: flex;
|
|
8
14
|
border-radius: 2px;
|
|
9
|
-
border: 1px solid
|
|
15
|
+
border: 1px solid $component-border-color;
|
|
10
16
|
|
|
11
17
|
.inputwrapper {
|
|
12
18
|
border: none;
|
|
@@ -18,31 +24,79 @@
|
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
.calendar-button {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
border:
|
|
27
|
+
width: 26px;
|
|
28
|
+
border-radius: 0;
|
|
29
|
+
border: 0 !important;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
box-shadow: none !important;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
padding: 0 !important;
|
|
35
|
+
|
|
36
|
+
svg {
|
|
37
|
+
margin: 0 !important;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
>.icon-component {
|
|
41
|
+
width: 16px !important;
|
|
42
|
+
height: 16px !important;
|
|
43
|
+
}
|
|
24
44
|
}
|
|
25
45
|
|
|
26
46
|
.input-base-component {
|
|
27
47
|
flex: 1;
|
|
28
48
|
}
|
|
49
|
+
}
|
|
29
50
|
|
|
51
|
+
.datepicker-component {
|
|
52
|
+
@extend %component-box-shadow;
|
|
53
|
+
border-radius: 5px;
|
|
54
|
+
margin-top: 4px !important;
|
|
55
|
+
position: fixed;
|
|
56
|
+
animation: 0.5s ease-in 0s 1 slideDown;
|
|
57
|
+
transition: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.dropdown-period {
|
|
61
|
+
width: 100%;
|
|
62
|
+
border-radius: 3px;
|
|
63
|
+
background-color: $component-bg-default;
|
|
64
|
+
border: 1px solid $component-border-color;
|
|
65
|
+
display: grid;
|
|
66
|
+
grid-template-rows: auto;
|
|
67
|
+
height: auto;
|
|
68
|
+
overflow-y: auto;
|
|
69
|
+
overflow-x: hidden;
|
|
30
70
|
}
|
|
31
71
|
|
|
32
72
|
.dropdown-period>.item {
|
|
73
|
+
all: unset;
|
|
33
74
|
margin: 0;
|
|
34
75
|
padding: 6px 10px;
|
|
35
76
|
display: flex;
|
|
36
77
|
cursor: pointer;
|
|
37
78
|
justify-content: stretch;
|
|
38
|
-
|
|
79
|
+
|
|
80
|
+
&:not(:last-child) {
|
|
81
|
+
border-bottom: solid 1px $separator-background;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&:first-child {
|
|
85
|
+
border-top-left-radius: 3px;
|
|
86
|
+
border-top-right-radius: 3px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&:last-child {
|
|
90
|
+
border-bottom-left-radius: 3px;
|
|
91
|
+
border-bottom-right-radius: 3px;
|
|
92
|
+
}
|
|
39
93
|
|
|
40
94
|
&:hover {
|
|
41
95
|
background-color: $default-hover-color;
|
|
42
96
|
}
|
|
43
97
|
|
|
44
98
|
&.-selected {
|
|
45
|
-
background-color: $
|
|
99
|
+
background-color: $component-bg-selected-color;
|
|
46
100
|
}
|
|
47
101
|
|
|
48
102
|
&.-disabled {
|
|
@@ -53,17 +107,3 @@
|
|
|
53
107
|
}
|
|
54
108
|
}
|
|
55
109
|
}
|
|
56
|
-
|
|
57
|
-
.dropdown-period {
|
|
58
|
-
width: 100%;
|
|
59
|
-
/* animation: 0.5s ease-in 0s 1 slideDown; */
|
|
60
|
-
background-color: #FFF;
|
|
61
|
-
border: #dae1e8;
|
|
62
|
-
display: grid;
|
|
63
|
-
grid-template-rows: auto;
|
|
64
|
-
height: auto;
|
|
65
|
-
overflow-y: auto;
|
|
66
|
-
overflow-x: hidden;
|
|
67
|
-
/* margin-top: 2px; */
|
|
68
|
-
z-index: 99999999999;
|
|
69
|
-
}
|
|
@@ -95,7 +95,7 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
95
95
|
overflow-y: auto;
|
|
96
96
|
|
|
97
97
|
&::-webkit-scrollbar {
|
|
98
|
-
width:
|
|
98
|
+
width: 2px;
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&::-webkit-scrollbar-track {
|
|
@@ -260,7 +260,7 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
260
260
|
background-color: #eee;
|
|
261
261
|
height: auto;
|
|
262
262
|
width: auto;
|
|
263
|
-
float: right;
|
|
263
|
+
// float: right;
|
|
264
264
|
padding: 10px 20px 20px;
|
|
265
265
|
position: absolute;
|
|
266
266
|
-webkit-box-shadow: 3px 1px 6px 0px rgba(50, 50, 50, 0.35);
|
|
@@ -349,8 +349,9 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
|
|
|
349
349
|
|
|
350
350
|
> .closebutton {
|
|
351
351
|
cursor: pointer;
|
|
352
|
-
|
|
353
|
-
|
|
352
|
+
position: absolute;
|
|
353
|
+
right: -13px;
|
|
354
|
+
top: -2px;
|
|
354
355
|
}
|
|
355
356
|
}
|
|
356
357
|
|
|
@@ -49,13 +49,15 @@ $dropdown-width: 38px;
|
|
|
49
49
|
text-shadow: 0 1px $font-color-second;
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
line-height: 20px;
|
|
52
|
-
margin-right:
|
|
52
|
+
margin-right: 2px;
|
|
53
53
|
padding: 0;
|
|
54
54
|
width: auto;
|
|
55
|
-
min-width:
|
|
55
|
+
min-width: 112px;
|
|
56
56
|
display: flex;
|
|
57
|
-
justify-content: space-between;
|
|
58
57
|
align-items: center;
|
|
58
|
+
border: 1px solid $font-color-second;
|
|
59
|
+
border-top: 2px solid $font-color-second;
|
|
60
|
+
border-bottom: 1px solid $component-border-color;
|
|
59
61
|
&.selected {
|
|
60
62
|
border: 1px solid $component-border-color;
|
|
61
63
|
background: $font-color-second;
|
|
@@ -64,6 +66,15 @@ $dropdown-width: 38px;
|
|
|
64
66
|
box-shadow: 0;
|
|
65
67
|
font-weight: bold;
|
|
66
68
|
}
|
|
69
|
+
&.witherrorcontent {
|
|
70
|
+
border: 1px solid $input-error-border-color;
|
|
71
|
+
border-top: 2px solid $input-error-border-color;
|
|
72
|
+
border-bottom: 1px solid transparent;
|
|
73
|
+
background-color: $input-error-bg-color;
|
|
74
|
+
&.selected {
|
|
75
|
+
border-top: 2px solid $component-selected-color;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
67
78
|
&.selected>.closepanel,
|
|
68
79
|
&:hover>.closepanel {
|
|
69
80
|
visibility: visible;
|
|
@@ -76,7 +87,16 @@ $dropdown-width: 38px;
|
|
|
76
87
|
background: transparent;
|
|
77
88
|
border: 0;
|
|
78
89
|
width: 100%;
|
|
79
|
-
text-align: left
|
|
90
|
+
text-align: left;
|
|
91
|
+
justify-content: flex-start;
|
|
92
|
+
box-shadow: none !important;
|
|
93
|
+
|
|
94
|
+
.button-container {
|
|
95
|
+
justify-content: flex-start;
|
|
96
|
+
> svg {
|
|
97
|
+
margin-right: 10px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
80
100
|
}
|
|
81
101
|
|
|
82
102
|
.menu>.menuitem>.closepanel {
|
|
@@ -113,11 +133,17 @@ $dropdown-width: 38px;
|
|
|
113
133
|
visibility: hidden;
|
|
114
134
|
pointer-events: none;
|
|
115
135
|
opacity: 0;
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
justify-content: center;
|
|
116
139
|
&.show {
|
|
117
140
|
visibility: visible;
|
|
118
141
|
pointer-events: all;
|
|
119
142
|
opacity: 1;
|
|
120
143
|
}
|
|
144
|
+
&.has-selected {
|
|
145
|
+
border: 1px solid $component-selected-color !important;
|
|
146
|
+
}
|
|
121
147
|
> svg {
|
|
122
148
|
margin: 0;
|
|
123
149
|
float: none;
|
|
@@ -247,20 +273,32 @@ $dropdown-width: 38px;
|
|
|
247
273
|
/*
|
|
248
274
|
Dropdown hide tabs
|
|
249
275
|
*/
|
|
250
|
-
.dropdown-hide-tabs
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
display: flex;
|
|
255
|
-
align-items: center;
|
|
256
|
-
justify-content: space-between;
|
|
257
|
-
min-height: 50px;
|
|
258
|
-
|
|
259
|
-
>.closepanel {
|
|
260
|
-
@extend %tab-closepanel;
|
|
276
|
+
.dropdown-hide-tabs {
|
|
277
|
+
.item-container > .item {
|
|
278
|
+
width: auto;
|
|
279
|
+
padding-left: 10px;
|
|
261
280
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
281
|
+
.menuitem {
|
|
282
|
+
cursor: pointer;
|
|
283
|
+
line-height: 20px;
|
|
284
|
+
margin-right: 1px;
|
|
285
|
+
display: flex;
|
|
286
|
+
align-items: center;
|
|
287
|
+
min-height: 50px;
|
|
288
|
+
gap: 8px;
|
|
289
|
+
> svg {
|
|
290
|
+
margin: 0;
|
|
291
|
+
}
|
|
292
|
+
> .menubutton {
|
|
293
|
+
padding: 0;
|
|
294
|
+
}
|
|
295
|
+
>.closepanel {
|
|
296
|
+
@extend %tab-closepanel;
|
|
297
|
+
margin-left: auto;
|
|
298
|
+
margin-right: 0;
|
|
299
|
+
}
|
|
300
|
+
&:hover>.closepanel {
|
|
301
|
+
visibility: visible;
|
|
302
|
+
}
|
|
265
303
|
}
|
|
266
304
|
}
|
|
@@ -169,7 +169,11 @@ const DefaultButton = _ref => {
|
|
|
169
169
|
refButton.current = r;
|
|
170
170
|
},
|
|
171
171
|
tabIndex: isDisabled ? -1 : tabIndex
|
|
172
|
-
}),
|
|
172
|
+
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
173
|
+
className: "button-container"
|
|
174
|
+
}, !dropdown && getIcon(), content || label && /*#__PURE__*/_react.default.createElement("div", {
|
|
175
|
+
className: "button-content"
|
|
176
|
+
}, content, label || ''), dropdown && getIcon()), isLoading && /*#__PURE__*/_react.default.createElement("div", {
|
|
173
177
|
className: "spinnercontainer"
|
|
174
178
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
175
179
|
align: "none",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ISplitButtonProps } from '../types.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../@types/PermissionAttr.js';
|
|
4
4
|
import '../../@types/Position.js';
|
|
@@ -6,6 +6,6 @@ import '../../@types/Size.js';
|
|
|
6
6
|
import '../../@types/Icon.js';
|
|
7
7
|
import '../../icons/helper.js';
|
|
8
8
|
|
|
9
|
-
declare const SplitButton: (props:
|
|
9
|
+
declare const SplitButton: (props: ISplitButtonProps) => JSX.Element;
|
|
10
10
|
|
|
11
11
|
export { SplitButton as default };
|
|
@@ -6,12 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
8
|
var _DefaultButton = _interopRequireDefault(require("../DefaultButton"));
|
|
9
|
+
var _icons = _interopRequireDefault(require("../../icons"));
|
|
9
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
11
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
11
12
|
const SplitButton = props => {
|
|
12
13
|
const {
|
|
13
14
|
children,
|
|
14
|
-
customClass,
|
|
15
|
+
customClass = '',
|
|
16
|
+
customClassForContainer = '',
|
|
15
17
|
size = 'default',
|
|
16
18
|
boxShadow = true,
|
|
17
19
|
visible = true,
|
|
@@ -28,7 +30,9 @@ const SplitButton = props => {
|
|
|
28
30
|
skeletonize,
|
|
29
31
|
dropdownAlign
|
|
30
32
|
};
|
|
31
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
33
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
34
|
+
className: `split-button-component ${customClassForContainer}`
|
|
35
|
+
}, /*#__PURE__*/_react.default.createElement(_DefaultButton.default, _extends({}, props, {
|
|
32
36
|
dropdownAlign: dropdownAlign,
|
|
33
37
|
style: {
|
|
34
38
|
borderRadius: '5px 0px 0px 5px',
|
|
@@ -36,22 +40,24 @@ const SplitButton = props => {
|
|
|
36
40
|
marginRight: 0
|
|
37
41
|
}
|
|
38
42
|
})), /*#__PURE__*/_react.default.createElement(_DefaultButton.default, _extends({}, splitProps, {
|
|
39
|
-
iconName: "down",
|
|
40
43
|
customClass: `${customClass} -transparenttext`,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
icon: /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
45
|
+
name: "mini_down",
|
|
46
|
+
color: "#fff",
|
|
47
|
+
size: 12,
|
|
48
|
+
style: {
|
|
49
|
+
margin: 0
|
|
50
|
+
}
|
|
51
|
+
}),
|
|
52
|
+
showIconDropdown: false,
|
|
45
53
|
style: {
|
|
46
54
|
borderRadius: '0px 5px 5px 0px',
|
|
47
55
|
borderLeft: '1px solid #ccc',
|
|
48
|
-
width:
|
|
56
|
+
width: 'auto',
|
|
49
57
|
textShadow: 'none',
|
|
50
|
-
|
|
51
|
-
paddingLeft: 0
|
|
58
|
+
paddingInline: '2px'
|
|
52
59
|
},
|
|
53
|
-
dropdown: true
|
|
54
|
-
label: "."
|
|
60
|
+
dropdown: true
|
|
55
61
|
}), children));
|
|
56
62
|
};
|
|
57
63
|
var _default = exports.default = SplitButton;
|