linear-react-components-ui 1.1.24-beta.2 → 1.1.25-rc.0
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/@types/ColorStyles.d.ts +1 -2
- package/lib/@types/Position.d.ts +1 -2
- package/lib/assets/styles/calendar.scss +137 -32
- package/lib/assets/styles/colorpicker.scss +6 -1
- package/lib/assets/styles/colors.scss +12 -48
- package/lib/assets/styles/file.scss +8 -0
- package/lib/buttons/ActivateButton.d.ts +0 -1
- package/lib/buttons/AddButton.d.ts +0 -1
- package/lib/buttons/Button.d.ts +0 -1
- package/lib/buttons/CancelButton.d.ts +0 -1
- package/lib/buttons/DangerButton.d.ts +0 -1
- package/lib/buttons/DefaultButton.d.ts +0 -1
- package/lib/buttons/DefaultButton.js +11 -16
- package/lib/buttons/DestroyButton.d.ts +0 -1
- package/lib/buttons/EditButton.d.ts +0 -1
- package/lib/buttons/InactivateButton.d.ts +0 -1
- package/lib/buttons/InfoButton.d.ts +0 -1
- package/lib/buttons/PrimaryButton.d.ts +0 -1
- package/lib/buttons/RestoreButton.d.ts +0 -1
- package/lib/buttons/SaveButton.d.ts +0 -1
- package/lib/buttons/SuccessButton.d.ts +0 -1
- package/lib/buttons/WarningButton.d.ts +0 -1
- package/lib/buttons/index.d.ts +0 -1
- package/lib/buttons/split_button/index.d.ts +0 -1
- package/lib/buttons/types.d.ts +5 -2
- package/lib/calendar/base/index.js +113 -40
- package/lib/dialog/base/index.js +1 -1
- package/lib/form/Field.d.ts +1 -1
- package/lib/form/FieldArray.d.ts +1 -1
- package/lib/form/FieldNumber.d.ts +1 -1
- package/lib/form/FieldPeriod.d.ts +1 -1
- package/lib/form/helpers.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/form/types.d.ts +1 -1
- package/lib/form/withFieldHOC.d.ts +1 -1
- package/lib/form/withFormSecurity.d.ts +1 -1
- package/lib/icons/index.d.ts +6 -4
- package/lib/icons/index.js +9 -14
- package/lib/icons/types.d.ts +6 -3
- package/lib/index.d.ts +0 -1
- package/lib/inputs/base/InputTextBase.d.ts +1 -1
- package/lib/inputs/base/InputTextBase.js +6 -14
- package/lib/inputs/base/Label.d.ts +14 -0
- package/lib/inputs/base/Label.js +35 -0
- package/lib/inputs/base/helpers.d.ts +1 -1
- package/lib/inputs/base/types.d.ts +16 -5
- package/lib/inputs/color/index.js +1 -1
- package/lib/inputs/date/Dialog.d.ts +1 -1
- package/lib/inputs/date/Dropdown.d.ts +1 -1
- package/lib/inputs/date/index.d.ts +1 -1
- package/lib/inputs/date/types.d.ts +1 -1
- package/lib/inputs/errorMessage/index.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.js +26 -26
- package/lib/inputs/file/DragDropFile.d.ts +1 -1
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +1 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +1 -1
- package/lib/inputs/file/FileButtonSettings.js +0 -1
- package/lib/inputs/file/helpers.d.ts +1 -1
- package/lib/inputs/file/index.d.ts +1 -1
- package/lib/inputs/file/types.d.ts +1 -1
- package/lib/inputs/inputHOC.d.ts +1 -1
- package/lib/inputs/mask/BaseMask.d.ts +1 -1
- package/lib/inputs/mask/Cnpj.d.ts +1 -1
- package/lib/inputs/mask/Cpf.d.ts +1 -1
- package/lib/inputs/mask/Phone.d.ts +1 -1
- package/lib/inputs/mask/ZipCode.d.ts +1 -1
- package/lib/inputs/mask/helpers.d.ts +1 -1
- package/lib/inputs/mask/index.d.ts +1 -1
- package/lib/inputs/mask/types.d.ts +1 -1
- package/lib/inputs/multiSelect/ActionButtons.d.ts +1 -1
- package/lib/inputs/multiSelect/Dropdown.d.ts +1 -1
- package/lib/inputs/multiSelect/helper.d.ts +1 -1
- package/lib/inputs/multiSelect/index.d.ts +1 -1
- package/lib/inputs/multiSelect/types.d.ts +1 -1
- package/lib/inputs/number/BaseNumber.d.ts +1 -1
- package/lib/inputs/number/Currency.d.ts +1 -1
- package/lib/inputs/number/Decimal.d.ts +1 -1
- package/lib/inputs/number/index.d.ts +1 -1
- package/lib/inputs/number/types.d.ts +1 -1
- package/lib/inputs/period/Dialog.d.ts +1 -1
- package/lib/inputs/period/Dropdown.d.ts +1 -1
- package/lib/inputs/period/PeriodList.d.ts +1 -1
- package/lib/inputs/period/helper.d.ts +1 -1
- package/lib/inputs/period/index.d.ts +1 -1
- package/lib/inputs/period/index.js +10 -8
- package/lib/inputs/period/types.d.ts +5 -2
- package/lib/inputs/search/index.d.ts +1 -1
- package/lib/inputs/select/ActionButtons.d.ts +1 -1
- package/lib/inputs/select/Dropdown.d.ts +1 -1
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/index.d.ts +1 -1
- package/lib/inputs/select/multiple/Selecteds.d.ts +1 -1
- package/lib/inputs/select/multiple/index.d.ts +1 -1
- package/lib/inputs/select/simple/index.d.ts +1 -1
- package/lib/inputs/select/types.d.ts +1 -1
- package/lib/inputs/text/index.d.ts +1 -1
- package/lib/inputs/text/types.d.ts +3 -2
- package/lib/inputs/textarea/index.d.ts +1 -1
- package/lib/inputs/textarea/types.d.ts +1 -1
- package/lib/inputs/types.d.ts +1 -1
- package/lib/internals/types.d.ts +17 -1
- package/lib/internals/withTooltip.d.ts +12 -0
- package/lib/internals/withTooltip.js +172 -0
- package/lib/labels/DangerLabel.d.ts +0 -1
- package/lib/labels/DefaultLabel.d.ts +5 -3
- package/lib/labels/DefaultLabel.js +7 -15
- package/lib/labels/InfoLabel.d.ts +0 -1
- package/lib/labels/PrimaryLabel.d.ts +0 -1
- package/lib/labels/SuccessLabel.d.ts +0 -1
- package/lib/labels/WarningLabel.d.ts +0 -1
- package/lib/labels/index.d.ts +2 -3
- package/lib/labels/types.d.ts +5 -2
- package/lib/list/Header.d.ts +0 -1
- package/lib/list/Item.d.ts +5 -3
- package/lib/list/Item.js +12 -17
- package/lib/list/helpers.d.ts +0 -1
- package/lib/list/index.d.ts +0 -1
- package/lib/list/types.d.ts +6 -4
- package/lib/menus/sidenav/ExpandMenu.d.ts +2 -2
- package/lib/menus/sidenav/MenuLink.d.ts +7 -4
- package/lib/menus/sidenav/MenuLink.js +11 -20
- package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -2
- package/lib/menus/sidenav/NavMenuItem.d.ts +7 -4
- package/lib/menus/sidenav/NavMenuItem.js +12 -16
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -2
- package/lib/menus/sidenav/helpers.d.ts +2 -2
- package/lib/menus/sidenav/index.d.ts +2 -2
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -2
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -2
- package/lib/menus/sidenav/types.d.ts +6 -6
- package/lib/textContent/index.d.ts +11 -6
- package/lib/textContent/index.js +11 -20
- package/lib/tooltip/index.d.ts +3 -4
- package/lib/tooltip/index.js +53 -36
- package/lib/tooltip/types.d.ts +3 -25
- package/package.json +2 -3
- package/lib/BaseMask-4885b7c4.d.ts +0 -24
- package/lib/BaseNumber-ba047ec3.d.ts +0 -23
- package/lib/Cnpj-501f8fed.d.ts +0 -18
- package/lib/Cpf-0e03d85a.d.ts +0 -18
- package/lib/Currency-d8dae30c.d.ts +0 -18
- package/lib/Decimal-deda637f.d.ts +0 -13
- package/lib/Number-4783f0de.d.ts +0 -20
- package/lib/Phone-99e92c22.d.ts +0 -18
- package/lib/ZipCode-3d092264.d.ts +0 -13
- package/lib/assets/styles/checkbox2.scss +0 -199
- package/lib/assets/styles/datepicker2.scss +0 -338
- package/lib/assets/styles/radiofield.scss +0 -185
- package/lib/assets/styles/selectfield.scss +0 -409
- package/lib/assets/styles/slot.scss +0 -34
- package/lib/assets/styles/textfield.scss +0 -147
- package/lib/calendar/base/Day.d.ts +0 -8
- package/lib/calendar/base/Day.js +0 -36
- package/lib/calendar/base/Month.d.ts +0 -8
- package/lib/calendar/base/Month.js +0 -39
- package/lib/calendar/base/Week.d.ts +0 -8
- package/lib/calendar/base/Week.js +0 -35
- package/lib/form2/helpers.d.ts +0 -8
- package/lib/form2/helpers.js +0 -41
- package/lib/form2/index.d.ts +0 -9
- package/lib/form2/index.js +0 -36
- package/lib/form2/types.d.ts +0 -125
- package/lib/form2/types.js +0 -5
- package/lib/form2/useForm/index.d.ts +0 -5
- package/lib/form2/useForm/index.js +0 -203
- package/lib/index-368f781f.d.ts +0 -15
- package/lib/index-6f287e6c.d.ts +0 -23
- package/lib/index-a0c1207e.d.ts +0 -15
- package/lib/index-a68cfaf7.d.ts +0 -23
- package/lib/index-c9247c1f.d.ts +0 -15
- package/lib/index-f6f0d3a8.d.ts +0 -44
- package/lib/index-f9981b49.d.ts +0 -41
- package/lib/inputs2/checkboxfield/index.d.ts +0 -7
- package/lib/inputs2/checkboxfield/index.js +0 -142
- package/lib/inputs2/colorfield/index.d.ts +0 -9
- package/lib/inputs2/colorfield/index.js +0 -119
- package/lib/inputs2/date/base/constants.d.ts +0 -7
- package/lib/inputs2/date/base/constants.js +0 -43
- package/lib/inputs2/date/base/index.d.ts +0 -12
- package/lib/inputs2/date/base/index.js +0 -175
- package/lib/inputs2/date/datefield/calendarbox.d.ts +0 -7
- package/lib/inputs2/date/datefield/calendarbox.js +0 -115
- package/lib/inputs2/date/datefield/context.d.ts +0 -14
- package/lib/inputs2/date/datefield/context.js +0 -15
- package/lib/inputs2/date/datefield/index.d.ts +0 -10
- package/lib/inputs2/date/datefield/index.js +0 -336
- package/lib/inputs2/date/datefield/triggers.d.ts +0 -8
- package/lib/inputs2/date/datefield/triggers.js +0 -47
- package/lib/inputs2/date/datefield/types.d.ts +0 -63
- package/lib/inputs2/date/datefield/types.js +0 -5
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +0 -7
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -164
- package/lib/inputs2/date/dateperiodfield/context.d.ts +0 -14
- package/lib/inputs2/date/dateperiodfield/context.js +0 -17
- package/lib/inputs2/date/dateperiodfield/index.d.ts +0 -10
- package/lib/inputs2/date/dateperiodfield/index.js +0 -593
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +0 -6
- package/lib/inputs2/date/dateperiodfield/triggers.js +0 -120
- package/lib/inputs2/date/dateperiodfield/types.d.ts +0 -101
- package/lib/inputs2/date/dateperiodfield/types.js +0 -19
- package/lib/inputs2/date/helpers.d.ts +0 -21
- package/lib/inputs2/date/helpers.js +0 -62
- package/lib/inputs2/date/types.d.ts +0 -60
- package/lib/inputs2/date/types.js +0 -19
- package/lib/inputs2/index.d.ts +0 -32
- package/lib/inputs2/index.js +0 -40
- package/lib/inputs2/mask/BaseMask.d.ts +0 -10
- package/lib/inputs2/mask/BaseMask.js +0 -95
- package/lib/inputs2/mask/Cnpj.d.ts +0 -11
- package/lib/inputs2/mask/Cnpj.js +0 -57
- package/lib/inputs2/mask/Cpf.d.ts +0 -11
- package/lib/inputs2/mask/Cpf.js +0 -53
- package/lib/inputs2/mask/Phone.d.ts +0 -11
- package/lib/inputs2/mask/Phone.js +0 -26
- package/lib/inputs2/mask/ZipCode.d.ts +0 -11
- package/lib/inputs2/mask/ZipCode.js +0 -23
- package/lib/inputs2/mask/helpers.d.ts +0 -4
- package/lib/inputs2/mask/helpers.js +0 -57
- package/lib/inputs2/number/BaseNumber.d.ts +0 -10
- package/lib/inputs2/number/BaseNumber.js +0 -86
- package/lib/inputs2/number/Currency.d.ts +0 -11
- package/lib/inputs2/number/Currency.js +0 -47
- package/lib/inputs2/number/Decimal.d.ts +0 -11
- package/lib/inputs2/number/Decimal.js +0 -36
- package/lib/inputs2/number/Number.d.ts +0 -9
- package/lib/inputs2/number/Number.js +0 -49
- package/lib/inputs2/number/format_number.d.ts +0 -5
- package/lib/inputs2/number/format_number.js +0 -29
- package/lib/inputs2/radiofield/index.d.ts +0 -9
- package/lib/inputs2/radiofield/index.js +0 -143
- package/lib/inputs2/radiofield/types.d.ts +0 -33
- package/lib/inputs2/radiofield/types.js +0 -5
- package/lib/inputs2/selectfield/context.d.ts +0 -38
- package/lib/inputs2/selectfield/context.js +0 -15
- package/lib/inputs2/selectfield/helpers.d.ts +0 -6
- package/lib/inputs2/selectfield/helpers.js +0 -25
- package/lib/inputs2/selectfield/index.d.ts +0 -10
- package/lib/inputs2/selectfield/index.js +0 -489
- package/lib/inputs2/selectfield/item.d.ts +0 -11
- package/lib/inputs2/selectfield/item.js +0 -85
- package/lib/inputs2/selectfield/listbox.d.ts +0 -7
- package/lib/inputs2/selectfield/listbox.js +0 -103
- package/lib/inputs2/selectfield/search.d.ts +0 -7
- package/lib/inputs2/selectfield/search.js +0 -71
- package/lib/inputs2/selectfield/selections.d.ts +0 -10
- package/lib/inputs2/selectfield/selections.js +0 -86
- package/lib/inputs2/selectfield/triggers.d.ts +0 -8
- package/lib/inputs2/selectfield/triggers.js +0 -100
- package/lib/inputs2/selectfield/types.d.ts +0 -54
- package/lib/inputs2/selectfield/types.js +0 -21
- package/lib/inputs2/slot/index.d.ts +0 -14
- package/lib/inputs2/slot/index.js +0 -47
- package/lib/inputs2/textfield/index.d.ts +0 -8
- package/lib/inputs2/textfield/index.js +0 -156
- package/lib/tooltip/TooltipContent.d.ts +0 -7
- package/lib/tooltip/TooltipContent.js +0 -65
- package/lib/tooltip/useTooltip.d.ts +0 -30
- package/lib/tooltip/useTooltip.js +0 -128
package/lib/@types/Position.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
2
1
|
@import "colors.scss";
|
|
3
2
|
@import "commons.scss";
|
|
4
3
|
|
|
5
4
|
$padding-size: 10px;
|
|
6
5
|
$border-radius-size: 5px;
|
|
6
|
+
|
|
7
7
|
.calendar-component {
|
|
8
8
|
width: auto;
|
|
9
9
|
height: 100%;
|
|
@@ -13,8 +13,9 @@ $border-radius-size: 5px;
|
|
|
13
13
|
flex-direction: column;
|
|
14
14
|
border-radius: $border-radius-size;
|
|
15
15
|
border: 1px solid $component-border-color;
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
|
|
17
|
+
>.calendarheader,
|
|
18
|
+
>.daynames {
|
|
18
19
|
width: auto;
|
|
19
20
|
height: 1.85rem;
|
|
20
21
|
display: grid;
|
|
@@ -22,7 +23,8 @@ $border-radius-size: 5px;
|
|
|
22
23
|
background-color: #f0f0f0;
|
|
23
24
|
grid-template-columns: 20px 1fr 30px;
|
|
24
25
|
}
|
|
25
|
-
|
|
26
|
+
|
|
27
|
+
>.calendarheader {
|
|
26
28
|
width: auto;
|
|
27
29
|
height: 32px;
|
|
28
30
|
padding-top: 4px;
|
|
@@ -31,7 +33,8 @@ $border-radius-size: 5px;
|
|
|
31
33
|
justify-content: space-between;
|
|
32
34
|
border-top-left-radius: $border-radius-size;
|
|
33
35
|
border-top-right-radius: $border-radius-size;
|
|
34
|
-
|
|
36
|
+
|
|
37
|
+
>.navbutton {
|
|
35
38
|
width: 2rem;
|
|
36
39
|
height: 2rem;
|
|
37
40
|
padding: 0;
|
|
@@ -42,21 +45,26 @@ $border-radius-size: 5px;
|
|
|
42
45
|
background-color: transparent;
|
|
43
46
|
font-weight: bold;
|
|
44
47
|
border: none;
|
|
48
|
+
|
|
45
49
|
svg {
|
|
46
50
|
margin: 0;
|
|
47
51
|
}
|
|
52
|
+
|
|
48
53
|
&:hover {
|
|
49
54
|
background-color: $component-border-color;
|
|
50
55
|
}
|
|
56
|
+
|
|
51
57
|
&:focus {
|
|
52
58
|
-webkit-box-shadow: none !important;
|
|
53
59
|
box-shadow: none !important;
|
|
54
60
|
border: 1px solid $default-border-color;
|
|
55
61
|
background-color: $component-border-color;
|
|
56
62
|
}
|
|
63
|
+
|
|
57
64
|
transition: none;
|
|
58
65
|
}
|
|
59
|
-
|
|
66
|
+
|
|
67
|
+
>.monthname {
|
|
60
68
|
font-weight: bold;
|
|
61
69
|
vertical-align: middle;
|
|
62
70
|
text-align: center;
|
|
@@ -64,117 +72,209 @@ $border-radius-size: 5px;
|
|
|
64
72
|
font-size: 14px;
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
|
-
|
|
75
|
+
|
|
76
|
+
>.daynames {
|
|
68
77
|
padding-top: 4px;
|
|
69
78
|
border-bottom: 1px solid $component-border-color;
|
|
70
79
|
grid-template-columns: repeat(7, 1fr);
|
|
71
80
|
text-align: center;
|
|
72
81
|
}
|
|
73
|
-
|
|
82
|
+
|
|
83
|
+
>.calendarmonth {
|
|
74
84
|
width: 100%;
|
|
75
85
|
height: 100%;
|
|
76
86
|
flex: 1;
|
|
77
87
|
display: grid;
|
|
78
|
-
grid-template-rows: repeat(6, 1fr);
|
|
79
88
|
padding: 2px;
|
|
80
89
|
background-color: $font-color-second;
|
|
81
90
|
border-bottom-left-radius: $border-radius-size;
|
|
82
91
|
border-bottom-right-radius: $border-radius-size;
|
|
83
92
|
}
|
|
84
|
-
|
|
93
|
+
|
|
94
|
+
>.calendarmonth>.monthweek {
|
|
85
95
|
text-align: center;
|
|
86
96
|
display: grid;
|
|
87
97
|
grid-template-columns: repeat(7, 1fr)
|
|
88
98
|
}
|
|
89
|
-
|
|
99
|
+
|
|
100
|
+
.calendarmonth>.monthweek>.monthday {
|
|
90
101
|
height: auto;
|
|
91
102
|
width: auto;
|
|
92
103
|
text-align: center;
|
|
93
104
|
border-right: 0;
|
|
94
105
|
border-bottom: 0;
|
|
95
106
|
transition: all 0.2s ease-in-out;
|
|
96
|
-
|
|
107
|
+
|
|
108
|
+
>.daybutton {
|
|
97
109
|
height: 100%;
|
|
98
110
|
width: 100%;
|
|
99
111
|
padding: 0;
|
|
100
112
|
font-size: 13px;
|
|
101
113
|
border: none;
|
|
102
114
|
background-color: transparent;
|
|
115
|
+
|
|
103
116
|
&.-nowday {
|
|
104
117
|
font-weight: bold
|
|
105
118
|
}
|
|
119
|
+
|
|
106
120
|
&.-outmonth {
|
|
107
121
|
color: #777;
|
|
108
122
|
}
|
|
123
|
+
|
|
109
124
|
&:focus {
|
|
110
125
|
-webkit-box-shadow: none !important;
|
|
111
126
|
box-shadow: none !important;
|
|
112
127
|
border: 2px solid $default-border-color;
|
|
113
128
|
}
|
|
129
|
+
|
|
114
130
|
transition: none;
|
|
115
131
|
}
|
|
132
|
+
|
|
116
133
|
&:hover {
|
|
117
134
|
background-color: $component-border-color;
|
|
118
135
|
border-radius: 4px;
|
|
119
136
|
}
|
|
137
|
+
|
|
120
138
|
&.-selectedday {
|
|
121
139
|
background-color: $font-selected-color;
|
|
122
140
|
border-radius: 4px;
|
|
123
141
|
}
|
|
124
|
-
|
|
142
|
+
|
|
143
|
+
&.-selectedday>.daybutton {
|
|
125
144
|
color: $font-color-second;
|
|
126
145
|
}
|
|
127
146
|
}
|
|
128
147
|
}
|
|
129
148
|
|
|
130
149
|
.calendar-component {
|
|
131
|
-
|
|
132
|
-
|
|
150
|
+
|
|
151
|
+
&.-success,
|
|
152
|
+
&.-primary,
|
|
153
|
+
&.-info,
|
|
154
|
+
&.-warning,
|
|
155
|
+
&.-danger {
|
|
156
|
+
|
|
157
|
+
>.calendarheader,
|
|
158
|
+
>.daynames {
|
|
133
159
|
color: $font-color-second;
|
|
134
160
|
}
|
|
161
|
+
|
|
162
|
+
.navbutton {
|
|
163
|
+
svg {
|
|
164
|
+
fill: $font-color-second;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
135
167
|
}
|
|
168
|
+
|
|
136
169
|
&.-success {
|
|
137
|
-
|
|
138
|
-
|
|
170
|
+
|
|
171
|
+
>.calendarheader,
|
|
172
|
+
>.daynames {
|
|
139
173
|
background-color: $success-color;
|
|
140
174
|
}
|
|
175
|
+
|
|
176
|
+
.navbutton {
|
|
177
|
+
&:focus {
|
|
178
|
+
background-color: $success-actived-color;
|
|
179
|
+
border-color: $success-border-color;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&:hover {
|
|
183
|
+
background-color: $success-hover-color;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
141
186
|
}
|
|
187
|
+
|
|
142
188
|
&.-primary {
|
|
143
|
-
|
|
144
|
-
|
|
189
|
+
|
|
190
|
+
>.calendarheader,
|
|
191
|
+
>.daynames {
|
|
145
192
|
background-color: $primary-color;
|
|
146
193
|
}
|
|
194
|
+
|
|
195
|
+
.navbutton {
|
|
196
|
+
&:focus {
|
|
197
|
+
background-color: $primary-actived-color;
|
|
198
|
+
border-color: $primary-border-color;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
&:hover {
|
|
202
|
+
background-color: $primary-hover-color;
|
|
203
|
+
}
|
|
204
|
+
}
|
|
147
205
|
}
|
|
206
|
+
|
|
148
207
|
&.-info {
|
|
149
|
-
|
|
150
|
-
|
|
208
|
+
|
|
209
|
+
>.calendarheader,
|
|
210
|
+
>.daynames {
|
|
151
211
|
background-color: $info-color;
|
|
152
212
|
}
|
|
213
|
+
|
|
214
|
+
.navbutton {
|
|
215
|
+
&:focus {
|
|
216
|
+
background-color: $info-actived-color;
|
|
217
|
+
border-color: $info-border-color;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&:hover {
|
|
221
|
+
background-color: $info-hover-color;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
153
224
|
}
|
|
225
|
+
|
|
154
226
|
&.-warning {
|
|
155
|
-
|
|
156
|
-
|
|
227
|
+
|
|
228
|
+
>.calendarheader,
|
|
229
|
+
>.daynames {
|
|
157
230
|
background-color: $warning-color;
|
|
158
231
|
}
|
|
232
|
+
|
|
233
|
+
.navbutton {
|
|
234
|
+
&:focus {
|
|
235
|
+
background-color: $warning-actived-color;
|
|
236
|
+
border-color: $warning-border-color;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
&:hover {
|
|
240
|
+
background-color: $warning-hover-color;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
159
243
|
}
|
|
244
|
+
|
|
160
245
|
&.-danger {
|
|
161
|
-
|
|
162
|
-
|
|
246
|
+
|
|
247
|
+
>.calendarheader,
|
|
248
|
+
>.daynames {
|
|
163
249
|
background-color: $danger-color;
|
|
164
250
|
}
|
|
251
|
+
|
|
252
|
+
.navbutton {
|
|
253
|
+
&:focus {
|
|
254
|
+
background-color: $danger-actived-color;
|
|
255
|
+
border-color: $danger-border-color;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
&:hover {
|
|
259
|
+
background-color: $danger-hover-color;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
165
262
|
}
|
|
166
263
|
}
|
|
167
264
|
|
|
168
265
|
//Add border to days container
|
|
169
266
|
.calendar-component.-draw-grid-lines {
|
|
170
|
-
|
|
267
|
+
>.calendarmonth>.monthweek {
|
|
171
268
|
border-bottom: 1px solid $component-border-color;
|
|
269
|
+
|
|
172
270
|
&:first-child {
|
|
173
271
|
border-top: 1px solid $component-border-color;
|
|
174
272
|
}
|
|
175
273
|
}
|
|
176
|
-
|
|
274
|
+
|
|
275
|
+
>.calendarmonth>.monthweek>.monthday {
|
|
177
276
|
border-left: 1px solid $component-border-color;
|
|
277
|
+
|
|
178
278
|
&:last-child {
|
|
179
279
|
border-right: 1px solid $component-border-color;
|
|
180
280
|
}
|
|
@@ -183,24 +283,29 @@ $border-radius-size: 5px;
|
|
|
183
283
|
|
|
184
284
|
//Remove padding
|
|
185
285
|
.calendar-component.-unpadding {
|
|
186
|
-
|
|
286
|
+
|
|
287
|
+
>.calendarmonth,
|
|
288
|
+
>.daynames {
|
|
187
289
|
padding: 0;
|
|
188
290
|
}
|
|
189
|
-
|
|
291
|
+
|
|
292
|
+
>.calendarmonth>.monthweek {
|
|
190
293
|
&:first-child {
|
|
191
294
|
border-top: 0px;
|
|
192
295
|
}
|
|
296
|
+
|
|
193
297
|
&:last-child {
|
|
194
298
|
border-bottom: 0px;
|
|
195
299
|
}
|
|
196
300
|
}
|
|
197
|
-
|
|
301
|
+
|
|
302
|
+
>.calendarmonth>.monthweek>.monthday {
|
|
198
303
|
&:last-child {
|
|
199
304
|
border-right: 0px
|
|
200
305
|
}
|
|
306
|
+
|
|
201
307
|
&:first-child {
|
|
202
308
|
border-left: 0;
|
|
203
309
|
}
|
|
204
310
|
}
|
|
205
|
-
}
|
|
206
|
-
|
|
311
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
.colorpicker-colormirror {
|
|
2
2
|
height: 31px;
|
|
3
|
-
width: 20px;
|
|
3
|
+
width: 20px;
|
|
4
4
|
border-top-left-radius: 2px;
|
|
5
5
|
border-bottom-left-radius: 2px;
|
|
6
|
+
margin: -3px -5px 0;
|
|
6
7
|
}
|
|
7
8
|
|
|
8
9
|
.colorpicker-palettebutton {
|
|
@@ -10,3 +11,7 @@
|
|
|
10
11
|
border-top-left-radius: 0;
|
|
11
12
|
border-bottom-left-radius: 0;
|
|
12
13
|
}
|
|
14
|
+
|
|
15
|
+
.colorpicker-hideinputcolor {
|
|
16
|
+
display: none;
|
|
17
|
+
}
|
|
@@ -18,12 +18,13 @@ $font-color-default: #333333;
|
|
|
18
18
|
$font-color-second: #ffffff;
|
|
19
19
|
$font-color-soft: #777777;
|
|
20
20
|
$font-selected-color: #6C757D;
|
|
21
|
-
$font-color-disabled: #cacaca
|
|
21
|
+
$font-color-disabled: #cacaca!important;
|
|
22
|
+
|
|
22
23
|
|
|
23
24
|
// COMPONENTS DEFAULTS
|
|
24
25
|
$component-border-color: #dae1e8;
|
|
25
26
|
$component-border-color-soft: #e6e6e6;
|
|
26
|
-
$component-selected-color:
|
|
27
|
+
$component-selected-color: rgb(161, 13, 13);
|
|
27
28
|
$component-bg-selected-color: #dbf1ff;
|
|
28
29
|
$component-bg-default: #fff;
|
|
29
30
|
$component-item-hover: #eeebeb; //Usado para hover de table rows ou li
|
|
@@ -38,8 +39,8 @@ $color-light-dark: #858585;
|
|
|
38
39
|
|
|
39
40
|
// TABLES
|
|
40
41
|
$table-striped-bg-color: #fcfcfc;
|
|
41
|
-
$table-vertical-header-bg-color:
|
|
42
|
-
$table-vertical-row-bg-color:
|
|
42
|
+
$table-vertical-header-bg-color: rgb(240, 240, 240);
|
|
43
|
+
$table-vertical-row-bg-color: rgb(248, 248, 248);
|
|
43
44
|
|
|
44
45
|
//COLORS DEFAULT
|
|
45
46
|
$default-color: #ffffff;
|
|
@@ -102,19 +103,18 @@ $alert-danger-border: #f5c6cb;
|
|
|
102
103
|
|
|
103
104
|
//COLOR CHECKBOX DEFAULT
|
|
104
105
|
$checked: #d30f0f;
|
|
105
|
-
$checked-effect:
|
|
106
|
+
$checked-effect: $component-selected-color;
|
|
106
107
|
$check-background: #C3C3C3;
|
|
107
108
|
|
|
108
109
|
// COLOR LIST DEFAULT
|
|
109
110
|
// TODO - Refatorar o css da lista para reaproveitar variaveis genericas já existens
|
|
110
111
|
$list-container-border: #E8E8E8;
|
|
111
112
|
$list-container-box-shadow: #d1d1d1;
|
|
112
|
-
$list-header-title:
|
|
113
|
+
$list-header-title:rgba(0, 0, 0, 0.54);
|
|
113
114
|
$list-item-text: rgba(0, 0, 0, 0.54);
|
|
114
115
|
$list-item-hover: #e1e1e1;
|
|
115
116
|
$list-item-focus: #e1e1e1;
|
|
116
117
|
$list-separator: #e1e1e1;
|
|
117
|
-
$list-striped-bg: #e0e0e0;
|
|
118
118
|
|
|
119
119
|
//COLORS TOOLBAR DEFAULT
|
|
120
120
|
// TODO - Refatorar o css para reaproveitar variaveis genericas já existens
|
|
@@ -123,58 +123,22 @@ $separator-border-left: #d1d3d4;
|
|
|
123
123
|
$separator-border-right: #b8c4ce;
|
|
124
124
|
|
|
125
125
|
// INPUTS
|
|
126
|
-
$input-
|
|
127
|
-
$input-disabled-bg-color: #f5f5f5;
|
|
126
|
+
$input-error-border-color:#f48181;
|
|
128
127
|
$input-error-bg-color: #f9d6d6;
|
|
129
|
-
$input-error-border-color: #f48181;
|
|
130
|
-
|
|
131
|
-
// SELECTFIELD
|
|
132
|
-
$selectfield-bg-selected: #f2f9fc;
|
|
133
|
-
$selectfield-border-color: #c9e6f2;
|
|
134
128
|
|
|
135
129
|
//PLACEHOLDER
|
|
136
130
|
$placeholder-color: #8e8e8e;
|
|
137
|
-
|
|
138
131
|
%input-placeholder {
|
|
139
|
-
&::-webkit-input-placeholder {
|
|
140
|
-
/* Chrome/Opera/Safari */
|
|
132
|
+
&::-webkit-input-placeholder { /* Chrome/Opera/Safari */
|
|
141
133
|
color: $placeholder-color;
|
|
142
134
|
}
|
|
143
|
-
|
|
144
|
-
&::-moz-placeholder {
|
|
145
|
-
/* Firefox 19+ */
|
|
135
|
+
&::-moz-placeholder { /* Firefox 19+ */
|
|
146
136
|
color: $placeholder-color;
|
|
147
137
|
}
|
|
148
|
-
|
|
149
|
-
&:-ms-input-placeholder {
|
|
150
|
-
/* IE 10+ */
|
|
138
|
+
&:-ms-input-placeholder { /* IE 10+ */
|
|
151
139
|
color: $placeholder-color;
|
|
152
140
|
}
|
|
153
|
-
|
|
154
|
-
&:-moz-placeholder {
|
|
155
|
-
/* Firefox 18- */
|
|
141
|
+
&:-moz-placeholder { /* Firefox 18- */
|
|
156
142
|
color: $placeholder-color;
|
|
157
143
|
}
|
|
158
144
|
}
|
|
159
|
-
|
|
160
|
-
%input-placeholder-transparent {
|
|
161
|
-
&::-webkit-input-placeholder {
|
|
162
|
-
/* Chrome/Opera/Safari */
|
|
163
|
-
color: transparent;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&::-moz-placeholder {
|
|
167
|
-
/* Firefox 19+ */
|
|
168
|
-
color: transparent;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
&:-ms-input-placeholder {
|
|
172
|
-
/* IE 10+ */
|
|
173
|
-
color: transparent;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
&:-moz-placeholder {
|
|
177
|
-
/* Firefox 18- */
|
|
178
|
-
color: transparent;
|
|
179
|
-
}
|
|
180
|
-
}
|
package/lib/buttons/Button.d.ts
CHANGED
|
@@ -7,11 +7,11 @@ exports.default = void 0;
|
|
|
7
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
8
8
|
var _lodash = _interopRequireDefault(require("lodash"));
|
|
9
9
|
var _icons = _interopRequireDefault(require("../../lib/icons"));
|
|
10
|
+
var _withTooltip = _interopRequireWildcard(require("../internals/withTooltip"));
|
|
10
11
|
var _spinner = _interopRequireDefault(require("../spinner"));
|
|
11
12
|
var _withDropdown = _interopRequireDefault(require("../dropdown/withDropdown"));
|
|
12
13
|
var _permissionValidations = require("../permissionValidations");
|
|
13
|
-
|
|
14
|
-
const _excluded = ["dropdown", "onClick", "disabled", "iconName", "icon", "targetRef", "tabIndex", "isLoading", "label", "showDropdown", "getDropdownPopup", "isDropdownOpened", "showIconDropdown", "content", "style", "toggleable", "activeIconColor", "iconStyle", "visible", "customClass", "className", "size", "iconAlign", "boxShadow", "transparent", "round", "permissionAttr", "skeletonize", "tooltip", "tooltipWidth", "tooltipPosition", "buttonRef", "errorMessage", "onDeniedText"];
|
|
14
|
+
const _excluded = ["dropdown", "onClick", "disabled", "iconName", "icon", "targetRef", "tabIndex", "isLoading", "label", "showDropdown", "getDropdownPopup", "isDropdownOpened", "showIconDropdown", "content", "style", "toggleable", "activeIconColor", "iconStyle", "visible", "customClass", "className", "size", "iconAlign", "boxShadow", "transparent", "round", "permissionAttr", "skeletonize", "buttonRef", "onDeniedText"];
|
|
15
15
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -53,11 +53,7 @@ const DefaultButton = _ref => {
|
|
|
53
53
|
round,
|
|
54
54
|
permissionAttr,
|
|
55
55
|
skeletonize,
|
|
56
|
-
tooltip,
|
|
57
|
-
tooltipWidth,
|
|
58
|
-
tooltipPosition,
|
|
59
56
|
buttonRef,
|
|
60
|
-
errorMessage,
|
|
61
57
|
onDeniedText = 'Permissão Negada! Consulte o Administrador do sistema.'
|
|
62
58
|
} = _ref,
|
|
63
59
|
rest = _objectWithoutProperties(_ref, _excluded);
|
|
@@ -68,6 +64,9 @@ const DefaultButton = _ref => {
|
|
|
68
64
|
const disabledIconColor = 'rgb(193, 193, 193)';
|
|
69
65
|
const disabledByPermission = onDenied.disabled;
|
|
70
66
|
const isDisabled = !!onDenied.disabled || disabled;
|
|
67
|
+
const {
|
|
68
|
+
handlerSetOnDeniedText
|
|
69
|
+
} = (0, _react.useContext)(_withTooltip.TooltipContext);
|
|
71
70
|
const getClass = () => `button-component ${className}
|
|
72
71
|
${customClass}
|
|
73
72
|
${transparent && '-transparent'}
|
|
@@ -125,8 +124,11 @@ const DefaultButton = _ref => {
|
|
|
125
124
|
}
|
|
126
125
|
return null;
|
|
127
126
|
};
|
|
127
|
+
(0, _react.useEffect)(() => {
|
|
128
|
+
if (disabledByPermission) handlerSetOnDeniedText(onDeniedText);
|
|
129
|
+
}, [disabledByPermission]);
|
|
128
130
|
if (!visible || onDenied.unvisible) return null;
|
|
129
|
-
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("button", _extends({},
|
|
131
|
+
return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("button", _extends({}, rest, {
|
|
130
132
|
style: style,
|
|
131
133
|
onKeyDown: e => {
|
|
132
134
|
if (e && (e.key === 'Enter' || e.key === ' ')) {
|
|
@@ -171,13 +173,6 @@ const DefaultButton = _ref => {
|
|
|
171
173
|
}, /*#__PURE__*/_react.default.createElement(_spinner.default, {
|
|
172
174
|
align: "none",
|
|
173
175
|
delayTime: 0
|
|
174
|
-
}))),
|
|
175
|
-
targetRef: refButton,
|
|
176
|
-
text: tooltip,
|
|
177
|
-
width: tooltipWidth,
|
|
178
|
-
position: tooltipPosition,
|
|
179
|
-
onDeniedText: disabledByPermission ? onDeniedText : undefined,
|
|
180
|
-
textError: errorMessage
|
|
181
|
-
}), dropdown && refButton.current && getDropdownPopup && getDropdownPopup(refButton.current));
|
|
176
|
+
}))), dropdown && refButton.current && getDropdownPopup && getDropdownPopup(refButton.current));
|
|
182
177
|
};
|
|
183
|
-
var _default = exports.default = (0, _withDropdown.default)(DefaultButton);
|
|
178
|
+
var _default = exports.default = (0, _withDropdown.default)((0, _withTooltip.default)(DefaultButton));
|