linear-react-components-ui 1.0.12-beta.8 → 1.0.12

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.
@@ -1,3 +1,3 @@
1
- type PointerEvents = 'none' | 'all' | 'fill' | 'painted' | 'stroke' | 'visible' | 'visibleFill' | 'visiblePainted' | 'visibleStroke' | 'inherit' | 'initial' | 'unset';
1
+ type PointerEvents = 'none' | 'all' | 'fill' | 'painted' | 'stroke' | 'visible' | 'visibleFill' | 'visiblePainted' | 'visibleStroke' | 'inherit' | 'initial' | 'unset' | 'auto';
2
2
 
3
3
  export { PointerEvents };
@@ -5,3 +5,11 @@
5
5
  .icon-component {
6
6
  margin: 0px 2px;
7
7
  }
8
+
9
+ .icon-component-container {
10
+ display: inline-flex;
11
+ place-self: center;
12
+ padding: 2px;
13
+ border-radius: 99999px;
14
+ pointer-events: fill;
15
+ }
@@ -1,19 +1,23 @@
1
1
  @import "commons.scss";
2
2
  @import "effects.scss";
3
+
3
4
  .multiSelect-component {
4
5
  width: 100%;
5
6
  display: block;
7
+
6
8
  .selectwrapper {
7
9
  height: auto;
8
10
 
9
- > .multiselect {
11
+ >.multiselect {
10
12
  flex-wrap: wrap;
11
13
  position: relative;
12
- > .textinput {
14
+
15
+ >.textinput {
13
16
  order: 1;
14
17
  display: inline-block;
15
18
  }
16
- > .selecteditem {
19
+
20
+ >.selecteditem {
17
21
  font-size: 14px;
18
22
  position: absolute;
19
23
  top: 50%;
@@ -22,21 +26,21 @@
22
26
  }
23
27
  }
24
28
 
25
- > .actionbutton {
29
+ >.actionbutton {
26
30
  display: flex;
27
31
  align-items: center;
28
32
  cursor: pointer;
29
33
  margin: 0 3px;
30
34
  padding: 0 3px;
31
35
 
32
- > svg {
36
+ >svg {
33
37
  margin: 0;
34
38
  }
35
39
  }
36
40
  }
37
41
  }
38
42
 
39
- .multiSelect-component > .dropdown {
43
+ .multiSelect-component>.dropdown {
40
44
  animation: 0.5s ease-in 0s 1 slideDown;
41
45
  background-color: #fff;
42
46
  border: $component-border-color;
@@ -48,40 +52,48 @@
48
52
  overflow-x: hidden;
49
53
  position: absolute;
50
54
  z-index: 9999;
51
- > .filtercontainer {
55
+
56
+ >.filtercontainer {
52
57
  position: relative;
53
58
  display: grid;
54
59
  grid-template-columns: 1fr 20px;
55
60
  border: 1px solid $component-border-color;
56
61
  margin: 4px;
57
- > .filterinput {
62
+
63
+ >.filterinput {
58
64
  border: 0;
59
65
  font-size: 13px;
60
66
  text-indent: 4px;
61
67
  padding: 10px 5px;
62
68
  }
63
- > .filtericon {
69
+
70
+ >.filtericon {
64
71
  position: absolute;
65
72
  right: 5px;
66
73
  top: 10px;
67
74
  }
68
75
  }
69
- > .listcontainer > .item {
76
+
77
+ >.listcontainer>.item {
70
78
  margin: 0;
71
79
  padding: 6px 10px;
72
80
  display: flex;
73
81
  cursor: pointer;
74
82
  justify-content: stretch;
75
83
  border-bottom: solid 1px #e1e1e1;
84
+
76
85
  &:last-child {
77
86
  border-bottom: none;
78
87
  }
88
+
79
89
  &:hover {
80
90
  background-color: $default-hover-color;
81
91
  }
92
+
82
93
  &.-selected {
83
94
  background-color: $default-hover-color;
84
95
  }
96
+
85
97
  .menubutton {
86
98
  background-color: transparent;
87
99
  border: 0;
@@ -91,13 +103,16 @@
91
103
  justify-content: space-between;
92
104
  align-items: center;
93
105
  width: 100%;
94
- > .checkboxicon {
106
+
107
+ >.checkboxicon {
95
108
  margin-right: 5px;
96
109
  }
97
- > .label {
110
+
111
+ >.label {
98
112
  flex-grow: 1;
99
113
  }
100
- > .menuicon {
114
+
115
+ >.menuicon {
101
116
  margin-right: 5px;
102
117
  }
103
118
  }
@@ -1,28 +1,35 @@
1
1
  @import "commons.scss";
2
2
  @import "effects.scss";
3
+
3
4
  .select-component {
4
5
  width: 100%;
5
6
  display: block;
6
7
  position: relative;
8
+
7
9
  .selectwrapper {
8
10
  height: auto;
9
11
  }
12
+
10
13
  .selectwrapper .actionbutton {
11
14
  cursor: pointer;
12
15
  display: flex;
13
16
  align-items: center;
14
17
  height: 100%;
15
- > .iconclear {
18
+
19
+ >.iconclear {
16
20
  margin: 8px -3px 2px 3px;
17
21
  }
18
22
  }
19
- .selectwrapper > .multiselect {
23
+
24
+ .selectwrapper>.multiselect {
20
25
  flex-wrap: wrap;
21
- > .textinput {
26
+
27
+ >.textinput {
22
28
  order: 1;
23
29
  display: inline-block;
24
30
  }
25
- > .selecteditem {
31
+
32
+ >.selecteditem {
26
33
  background-color: #f2f9fc;
27
34
  border: 1px solid #c9e6f2;
28
35
  border-radius: 3px;
@@ -37,8 +44,10 @@
37
44
  padding: 0px 8px 0px 5px;
38
45
  }
39
46
  }
40
- .selectwrapper > .multiselect > .selecteditem > .close {
47
+
48
+ .selectwrapper>.multiselect>.selecteditem>.close {
41
49
  cursor: pointer;
50
+
42
51
  &:after {
43
52
  content: "×";
44
53
  font-size: 16px;
@@ -48,7 +57,7 @@
48
57
  }
49
58
  }
50
59
 
51
- .dropdown-component > .select-dropdown {
60
+ .dropdown-component>.select-dropdown {
52
61
  animation: 0.5s ease-in 0s 1 slideDown;
53
62
  background-color: #FFF;
54
63
  border: $component-border-color;
@@ -59,45 +68,55 @@
59
68
  overflow-y: auto;
60
69
  overflow-x: hidden;
61
70
  margin-top: 2px;
62
- > .filtercontainer {
71
+
72
+ >.filtercontainer {
63
73
  display: grid;
64
74
  grid-template-columns: 1fr 20px;
65
75
  align-items: center;
66
76
  border: 1px solid $component-border-color;
67
77
  margin: 4px;
68
78
  }
69
- > .filtercontainer > .filterinput {
79
+
80
+ >.filtercontainer>.filterinput {
70
81
  border: 0;
71
82
  width: 100%;
72
83
  font-size: 13px;
73
84
  text-indent: 4px;
74
85
  padding: 10px 5px;
75
86
  }
76
- > .item {
87
+
88
+ >.item {
77
89
  margin: 0;
78
90
  padding: 6px 10px;
79
91
  display: flex;
80
92
  cursor: pointer;
81
93
  justify-content: stretch;
82
94
  border-bottom: solid 1px #e1e1e1;
95
+
83
96
  &:last-child {
84
97
  border-bottom: none;
85
98
  }
99
+
86
100
  &:hover {
87
101
  background-color: $default-hover-color;
88
102
  }
103
+
89
104
  &.-selected {
90
105
  background-color: $default-hover-color;
91
106
  }
107
+
92
108
  &.-disabled {
93
109
  @extend %component-menu-disabled;
110
+
94
111
  &:hover {
95
112
  background-color: transparent;
96
113
  }
97
114
  }
115
+
98
116
  &.-striped:nth-child(even) {
99
117
  background-color: #eee;
100
118
  }
119
+
101
120
  .menubutton {
102
121
  background-color: transparent;
103
122
  border: 0;
@@ -108,16 +127,19 @@
108
127
  align-items: center;
109
128
  width: 100%
110
129
  }
130
+
111
131
  .menubutton {
112
- > .label {
132
+ >.label {
113
133
  flex-grow: 1;
114
134
  }
115
- > .menuicon {
135
+
136
+ >.menuicon {
116
137
  margin-right: 5px
117
138
  }
118
139
  }
119
140
  }
120
- > .notfound {
141
+
142
+ >.notfound {
121
143
  text-indent: 10px;
122
144
  color: graytext;
123
145
  font-style: italic;
@@ -6,31 +6,37 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
6
6
  @import "commons.scss";
7
7
  @import "effects.scss";
8
8
  @import "colors.scss";
9
+
9
10
  .sidenav-component {
10
11
  height: 100%;
11
12
  width: 100%;
12
13
  overflow: hidden;
13
14
  background-color: transparent;
14
15
  border: 1px solid #eee;
16
+
15
17
  &.-blocked {
16
18
  opacity: 0.4;
17
19
  pointer-events: none;
18
20
  }
19
- > .expandedmenu,
20
- > .collapsedmenu {
21
+
22
+ >.expandedmenu,
23
+ >.collapsedmenu {
21
24
  height: auto;
22
25
  width: 100%;
23
- > .item {
26
+
27
+ >.item {
24
28
  cursor: pointer;
25
29
  border-bottom: 1px solid #eee;
26
30
  width: 100%;
27
31
  transition: all 0.2s ease-in-out;
32
+
28
33
  &.-customsidenavitem {
29
34
  display: flex;
30
35
  align-items: center;
31
36
  justify-content: center;
32
37
  padding-left: 0px;
33
- > .searchmenubutton {
38
+
39
+ >.searchmenubutton {
34
40
  width: 100%;
35
41
  height: 100%;
36
42
  display: flex;
@@ -38,46 +44,57 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
38
44
  justify-content: center;
39
45
  }
40
46
  }
47
+
41
48
  &.-customsidenavitem:hover {
42
49
  background-color: white;
43
50
  }
51
+
44
52
  &.-disabled {
45
53
  @extend %component-disabled;
46
54
  }
47
55
  }
48
- > .item:hover {
56
+
57
+ >.item:hover {
49
58
  background-color: #eee;
50
59
  }
51
- > .item:hover > .menuicon,
52
- > .item:hover .searchmenuicon,
53
- > .item:hover > .menulink > .menuicon,
54
- > .item:hover > .menulink .searchmenuicon {
60
+
61
+ >.item:hover>.menuicon,
62
+ >.item:hover .searchmenuicon,
63
+ >.item:hover>.menulink>.menuicon,
64
+ >.item:hover>.menulink .searchmenuicon {
55
65
  fill: rgb(114, 114, 114);
56
66
  }
57
- > .item:hover > .title,
58
- > .item:hover > .menulink > .title {
67
+
68
+ >.item:hover>.title,
69
+ >.item:hover>.menulink>.title {
59
70
  color: rgb(114, 114, 114);
60
71
  }
61
72
  }
62
- > .expandedmenu.customscroll,
63
- > .collapsedmenu.customscroll {
73
+
74
+ >.expandedmenu.customscroll,
75
+ >.collapsedmenu.customscroll {
64
76
  overflow-y: auto;
65
77
  height: 100%;
78
+
66
79
  &::-webkit-scrollbar {
67
80
  width: 5px;
68
81
  }
82
+
69
83
  &::-webkit-scrollbar-track {
70
84
  background: rgba(196, 222, 247, 0.5);
71
85
  border-radius: 10px;
72
86
  }
87
+
73
88
  &::-webkit-scrollbar-thumb {
74
89
  box-shadow: inset 0 0 5px #cecece;
75
90
  border-radius: 10px;
76
91
  }
92
+
77
93
  &::-webkit-scrollbar-thumb:hover {
78
94
  background: rgb(0, 195, 255);
79
95
  }
80
96
  }
97
+
81
98
  .openclosemenu {
82
99
  background: #f5f5f5;
83
100
  width: 100%;
@@ -89,14 +106,17 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
89
106
  align-content: center;
90
107
  text-align: center;
91
108
  transition: all 0.2s ease-in-out;
109
+
92
110
  &:hover {
93
111
  background: $border-container;
94
112
  }
113
+
95
114
  .icon-component {
96
115
  justify-self: center;
97
116
  width: 12px;
98
117
  }
99
118
  }
119
+
100
120
  &.closefromexpanded {
101
121
  background: transparent;
102
122
  margin-top: 2px;
@@ -106,7 +126,7 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
106
126
  }
107
127
  }
108
128
 
109
- .sidenav-component > .expandedmenu {
129
+ .sidenav-component>.expandedmenu {
110
130
  animation: revealelement 0.3s;
111
131
  -moz-animation: revealelement 0.3s;
112
132
  background-color: #fff;
@@ -116,27 +136,32 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
116
136
  -webkit-box-flex: 0;
117
137
  -ms-flex: 0 0 70px;
118
138
  flex: 0 0 70px;
119
- > .item {
139
+
140
+ >.item {
120
141
  align-content: center;
121
142
  background-color: #fff;
122
143
  display: grid;
123
144
  grid-template-columns: 30px 1fr;
124
145
  height: 45px;
125
146
  padding-left: 5px;
147
+
126
148
  &.-withlink {
127
149
  grid-template-columns: 1fr;
128
150
  }
151
+
129
152
  .menulink {
130
153
  display: grid;
131
154
  grid-template-columns: 30px 1fr;
132
155
  align-items: center;
133
156
  text-decoration: none;
134
157
  }
135
- > .menuicon {
158
+
159
+ >.menuicon {
136
160
  justify-self: center;
137
161
  }
138
- > .title,
139
- > .menulink > .title {
162
+
163
+ >.title,
164
+ >.menulink>.title {
140
165
  color: #666;
141
166
  align-self: center;
142
167
  justify-self: left;
@@ -145,63 +170,76 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
145
170
  }
146
171
  }
147
172
 
148
- .sidenav-component > .collapsedmenu {
173
+ .sidenav-component>.collapsedmenu {
149
174
  display: flex;
150
175
  flex-wrap: wrap;
151
176
  align-content: flex-start;
152
- > .item {
177
+
178
+ >.item {
153
179
  height: 50px;
154
180
  display: grid;
155
181
  grid-template-rows: 1fr;
156
182
  align-items: center;
157
- align-content: center;
183
+ align-content: center;
184
+
158
185
  &.-withlink {
159
186
  align-items: stretch;
160
187
  }
161
- > .menulink {
188
+
189
+ >.menulink {
162
190
  display: grid;
163
191
  grid-template-rows: 1fr;
164
192
  align-items: center;
165
193
  }
166
- > .menuicon,
167
- > .menulink > .menuicon {
194
+
195
+ >.menuicon,
196
+ >.menulink>.menuicon {
168
197
  justify-self: center;
169
198
  }
170
199
  }
200
+
171
201
  &.-small {
172
202
  width: 55px;
173
- > .item {
203
+
204
+ >.item {
174
205
  height: 40px;
175
206
  }
207
+
176
208
  .-iconcenter {
177
209
  width: 55px !important;
178
210
  }
179
211
  }
212
+
180
213
  &.-medium {
181
214
  width: 55px;
182
- > .item {
215
+
216
+ >.item {
183
217
  height: 50px;
184
218
  }
219
+
185
220
  .-iconcenter {
186
221
  width: 65px !important;
187
222
  }
188
223
  }
224
+
189
225
  &.-large {
190
226
  width: 75px;
191
- > .item {
227
+
228
+ >.item {
192
229
  height: 60px;
193
230
  }
231
+
194
232
  .-iconcenter {
195
233
  width: 75px !important;
196
234
  }
197
235
  }
198
236
  }
199
237
 
200
- .sidenav-component > .collapsedmenu > .item > .submenu-container,
201
- .sidenav-component > .expandedmenu > .item > .submenu-container {
238
+ .sidenav-component>.collapsedmenu>.item>.submenu-container,
239
+ .sidenav-component>.expandedmenu>.item>.submenu-container {
202
240
  animation: 0.5s ease-in 0s 1 slideLeft;
203
241
  -moz-animation: 0.5s ease-in 0s 1 slideLeft;
204
- background-color: #eee ;
242
+ background-color: #eee;
205
243
  height: auto;
206
244
  width: auto;
207
245
  float: right;
@@ -211,7 +249,8 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
211
249
  -moz-box-shadow: 3px 1px 6px 0px rgba(50, 50, 50, 0.35);
212
250
  box-shadow: 3px 1px 6px 0px rgba(50, 50, 50, 0.35);
213
251
  z-index: 9999999;
214
- > .title {
252
+
253
+ >.title {
215
254
  color: #777777;
216
255
  font-size: 24px;
217
256
  font-weight: bold;
@@ -219,27 +258,35 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
219
258
  height: 36px;
220
259
  line-height: 36px;
221
260
  }
261
+
222
262
  .submenu {
263
+ margin: 4px 0;
264
+ overflow-y: auto;
265
+ overflow-x: clip;
223
266
  color: #808080;
224
267
  display: grid;
268
+ column-gap: 16px;
225
269
  grid-template-columns: repeat(2, 1fr);
226
- align-content: center;
227
270
  align-items: flex-start;
228
- > .item {
271
+
272
+ >.item {
229
273
  display: grid;
230
274
  min-height: 40px;
231
275
  align-content: center;
232
276
  display: grid;
233
277
  margin-left: 20px;
278
+
234
279
  &.-disabled {
235
280
  @extend %component-disabled;
236
281
  background-color: #eee !important;
237
282
  }
238
283
  }
239
- > .item:hover {
284
+
285
+ >.item:hover {
240
286
  color: #333;
241
287
  }
242
- > .item:before {
288
+
289
+ >.item:before {
243
290
  position: absolute;
244
291
  content: '';
245
292
  left: -15px;
@@ -248,24 +295,38 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
248
295
  border-bottom: 5px solid transparent;
249
296
  border-left: 5px solid #808080;
250
297
  }
251
- > .item:nth-child(even) {
298
+
299
+ >.item:nth-child(even) {
252
300
  padding-left: 5px;
253
301
  }
254
- > .item > .menulink {
302
+
303
+ >.item>.menulink {
255
304
  grid-template-columns: 1fr;
256
305
  text-decoration: none;
257
306
  }
307
+ &::-webkit-scrollbar {
308
+ width: 5px;
309
+ }
310
+ &::-webkit-scrollbar-track {
311
+ box-shadow: inset 0 0 5px grey;
312
+ border-radius: 10px;
313
+ }
314
+ &::-webkit-scrollbar-thumb {
315
+ background: rgb(151, 142, 142);
316
+ border-radius: 10px;
317
+ }
258
318
  }
259
319
  }
260
-
320
+
261
321
  .searchmenu {
262
- background-color: #fff ;
322
+ background-color: #fff;
263
323
  border: solid 1px $component-border-color;
264
324
  border-radius: 4px;
265
325
  width: 300px;
266
326
  position: absolute;
267
327
  padding: 20px;
268
- > .closebutton {
328
+
329
+ >.closebutton {
269
330
  cursor: pointer;
270
331
  float: right;
271
332
  margin: -21px -33px 15px 0px;
@@ -279,15 +340,19 @@ que utilizam. Em caso de mudança, ficar atento para os refatores.
279
340
  justify-content: center;
280
341
  height: 100%;
281
342
  width: 100%;
282
- > .text, .subtext {
343
+
344
+ >.text,
345
+ .subtext {
283
346
  color: #a8a8a8;
284
347
  text-align: center;
285
348
  }
286
- > .text {
349
+
350
+ >.text {
287
351
  font-size: 26px;
288
352
  margin-top: 20px;
289
353
  }
290
- > .subtext {
354
+
355
+ >.subtext {
291
356
  font-size: 15px;
292
357
  margin-top: 5px;
293
358
  }
@@ -25,6 +25,7 @@ var ButtonContainer = function ButtonContainer(_ref) {
25
25
  position = _ref$position === void 0 ? 'left' : _ref$position,
26
26
  children = _ref.children;
27
27
  return /*#__PURE__*/_react.default.createElement("div", {
28
+ "data-testid": "button-container",
28
29
  className: "btn-container ".concat(customClass),
29
30
  style: getStyles(style, position)
30
31
  }, children);
@@ -44,7 +44,7 @@ var Custom = function Custom(props) {
44
44
  className: "title"
45
45
  }, props.title), /*#__PURE__*/_react.default.createElement("div", {
46
46
  className: "text"
47
- }, props.text)), /*#__PURE__*/_react.default.createElement(_Footer.default, props, /*#__PURE__*/_react.default.createElement(_buttons.ButtonContainer, {
47
+ }, props.text)), props.buttons && props.buttons.length > 0 && /*#__PURE__*/_react.default.createElement(_Footer.default, props, /*#__PURE__*/_react.default.createElement(_buttons.ButtonContainer, {
48
48
  position: "right"
49
49
  }, props.buttons.map(function (button) {
50
50
  return /*#__PURE__*/_react.default.cloneElement(button, {