empower-container 0.1.27 → 0.1.30

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,7 +29,7 @@ var Asset_1 = require("../assets/Asset");
29
29
  var Popover = function (_a) {
30
30
  var open = _a.open, origin = _a.origin, children = _a.children, onClick = _a.onClick;
31
31
  return ((0, jsx_runtime_1.jsx)(react_1.Fragment, { children: open &&
32
- (0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "em-overlay", onClick: function (e) { return onClick(e); } }), (0, jsx_runtime_1.jsx)("div", __assign({ className: "em-popover", style: origin !== undefined && origin === "right" ? { right: 200 + 'px' } : { left: 0 + 'px' } }, { children: children }))] }) }));
32
+ (0, jsx_runtime_1.jsxs)(react_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("div", { className: "em-overlay", onClick: function (e) { return onClick(e); } }), (0, jsx_runtime_1.jsx)("div", __assign({ className: "em-popover em-menubar-dropdown", style: origin !== undefined && origin === "right" ? { right: 200 + 'px' } : { left: 0 + 'px' } }, { children: children }))] }) }));
33
33
  };
34
34
  exports.Popover = Popover;
35
35
  var Dropdown = function (_a) {
@@ -26,7 +26,7 @@ import { SVG_CLOSE_GRAY, SVG_ARROWDOWN } from '../assets/Asset';
26
26
  export var Popover = function (_a) {
27
27
  var open = _a.open, origin = _a.origin, children = _a.children, onClick = _a.onClick;
28
28
  return (_jsx(Fragment, { children: open &&
29
- _jsxs(Fragment, { children: [_jsx("div", { className: "em-overlay", onClick: function (e) { return onClick(e); } }), _jsx("div", __assign({ className: "em-popover", style: origin !== undefined && origin === "right" ? { right: 200 + 'px' } : { left: 0 + 'px' } }, { children: children }))] }) }));
29
+ _jsxs(Fragment, { children: [_jsx("div", { className: "em-overlay", onClick: function (e) { return onClick(e); } }), _jsx("div", __assign({ className: "em-popover em-menubar-dropdown", style: origin !== undefined && origin === "right" ? { right: 200 + 'px' } : { left: 0 + 'px' } }, { children: children }))] }) }));
30
30
  };
31
31
  var Dropdown = function (_a) {
32
32
  var config = _a.config, customClass = _a.customClass, onChanged = _a.onChanged, isEmployeeSelection = _a.isEmployeeSelection, hideClearIcon = _a.hideClearIcon;
@@ -6,7 +6,7 @@
6
6
  color: $gray-dark;
7
7
  z-index: 100;
8
8
  display: flex;
9
- width: auto;
9
+ width: 100%;
10
10
  background-color: $white;
11
11
  border-top: 5px solid $blue-light4;
12
12
  border-bottom-left-radius: $border-radius-md;
@@ -14,158 +14,3 @@
14
14
  box-shadow: $shadow-popover;
15
15
  max-width: 650px;
16
16
  }
17
-
18
-
19
- .em-datepicker-weekly {
20
- .rdrCalendarWrapper {
21
- display: flex;
22
- flex-direction: column;
23
- font-size: $text-sm;
24
- box-shadow: $shadow-popover;
25
-
26
- .rdrMonthAndYearWrapper {
27
- width: 100%;
28
- display: flex;
29
- justify-content: space-between;
30
- align-items: center;
31
- background-color: #0f2473;
32
- padding: 15px;
33
-
34
- button {
35
- border: none;
36
- width: 50px;
37
- height: 50px;
38
- border-radius: 0;
39
- background-color: transparent;
40
- display: flex;
41
- justify-content: center;
42
- align-items: center;
43
- border: none;
44
- transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
45
- cursor: pointer;
46
- }
47
- }
48
-
49
- .rdrMonthAndYearPickers {
50
- display: flex;
51
-
52
- select {
53
- min-width: 100px;
54
- color: $white;
55
- font-size: $text-base;
56
- height: 50px;
57
- border-radius: 0;
58
- border: none;
59
- // background: url("https://storage.googleapis.com/empower-production-assets/images/icons/icon-arrowdown-white.svg") right center no-repeat;
60
- background: transparent;
61
- transition: $transition;
62
-
63
- &:focus-visible {
64
- outline: none;
65
- }
66
-
67
- &:hover {
68
- background-color: transparentize(#091336, 0.5);
69
- }
70
-
71
- option {
72
- padding: 10px;
73
- background-color: $white;
74
- color: #4A5568;
75
- }
76
- }
77
- }
78
-
79
- .rdrNextPrevButton {
80
-
81
- i {
82
- height: 20px;
83
- width: 20px;
84
- border: 0;
85
- margin: 0;
86
- transition: $transition;
87
- }
88
-
89
- &.rdrPprevButton {
90
- i {
91
- background: url("https://storage.googleapis.com/empower-production-assets/images/icons/icon-arrowleft-white.svg") center center no-repeat;
92
- }
93
-
94
- &:hover {
95
- i {
96
- transform: translateX(-5px);
97
- }
98
- }
99
- }
100
-
101
- &.rdrNextButton {
102
- i {
103
- background: url("https://storage.googleapis.com/empower-production-assets/images/icons/icon-arrowright-white.svg") center center no-repeat;
104
- }
105
-
106
- &:hover {
107
- i {
108
- transform: translateX(5px);
109
- }
110
- }
111
- }
112
- }
113
-
114
- .rdrWeekDays {
115
- display: flex;
116
- padding: 15px 15px 0;
117
- }
118
-
119
- .rdrWeekDay {
120
- font-weight: 700;
121
- padding: 1rem 0.25rem;
122
- text-transform: uppercase;
123
- color: #A0AEC0;
124
- font-size: 0.875rem;
125
- width: 50px;
126
- text-align: center;
127
- }
128
-
129
- .rdrDay {
130
- font-size: 0.875rem;
131
- width: 50px;
132
- text-align: center;
133
- border: none;
134
- background-color: transparent;
135
-
136
- .rdrDayNumber {
137
- span {
138
- width: 50px;
139
- height: 50px;
140
- display: flex;
141
- align-items: center;
142
- justify-content: center;
143
- cursor: pointer;
144
- transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
145
- color: $gray-dark;
146
-
147
- &:hover {
148
- background-color: #EDF2F7;
149
- }
150
- }
151
- }
152
-
153
- &.rdrDayPassive {
154
- .rdrDayNumber > span{
155
- cursor: default;
156
- color: $gray-light3;
157
-
158
- &:hover{
159
- background-color: transparent;
160
- }
161
- }
162
- }
163
- }
164
-
165
- .rdrDays {
166
- display: flex;
167
- flex-wrap: wrap;
168
- padding: 0 15px 15px;
169
- }
170
- }
171
- }
@@ -1,3 +1,10 @@
1
+ .em-popover.em-menubar-dropdown {
2
+ top: 50px;
3
+ margin-top: 0;
4
+ width: auto;
5
+ border-top: 5px solid $blue-light4;
6
+ }
7
+
1
8
  .em-select {
2
9
  position: relative;
3
10
  width: 100%;
@@ -216,6 +223,160 @@
216
223
  }
217
224
  }
218
225
 
226
+ .em-datepicker-weekly {
227
+ .rdrCalendarWrapper {
228
+ display: flex;
229
+ flex-direction: column;
230
+ font-size: $text-sm;
231
+ box-shadow: $shadow-popover;
232
+
233
+ .rdrMonthAndYearWrapper {
234
+ width: 100%;
235
+ display: flex;
236
+ justify-content: space-between;
237
+ align-items: center;
238
+ background-color: #0f2473;
239
+ padding: 15px;
240
+
241
+ button {
242
+ border: none;
243
+ width: 50px;
244
+ height: 50px;
245
+ border-radius: 0;
246
+ background-color: transparent;
247
+ display: flex;
248
+ justify-content: center;
249
+ align-items: center;
250
+ border: none;
251
+ transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
252
+ cursor: pointer;
253
+ }
254
+ }
255
+
256
+ .rdrMonthAndYearPickers {
257
+ display: flex;
258
+
259
+ select {
260
+ min-width: 100px;
261
+ color: $white;
262
+ font-size: $text-base;
263
+ height: 50px;
264
+ border-radius: 0;
265
+ border: none;
266
+ background: url("https://storage.googleapis.com/empower-production-assets/images/icons/icon-arrowdown-white.svg") right center no-repeat;
267
+ transition: $transition;
268
+
269
+ &:focus-visible {
270
+ outline: none;
271
+ }
272
+
273
+ &:hover {
274
+ background-color: transparentize(#091336, 0.5);
275
+ }
276
+
277
+ option {
278
+ padding: 10px;
279
+ background-color: $white;
280
+ color: #4A5568;
281
+ }
282
+ }
283
+ }
284
+
285
+ .rdrNextPrevButton {
286
+
287
+ i {
288
+ height: 20px;
289
+ width: 20px;
290
+ border: 0;
291
+ margin: 0;
292
+ transition: $transition;
293
+ }
294
+
295
+ &.rdrPprevButton {
296
+ i {
297
+ background: url("https://storage.googleapis.com/empower-production-assets/images/icons/icon-arrowleft-white.svg") center center no-repeat;
298
+ }
299
+
300
+ &:hover {
301
+ i {
302
+ transform: translateX(-5px);
303
+ }
304
+ }
305
+ }
306
+
307
+ &.rdrNextButton {
308
+ i {
309
+ background: url("https://storage.googleapis.com/empower-production-assets/images/icons/icon-arrowright-white.svg") center center no-repeat;
310
+ }
311
+
312
+ &:hover {
313
+ i {
314
+ transform: translateX(5px);
315
+ }
316
+ }
317
+ }
318
+ }
319
+
320
+ .rdrWeekDays {
321
+ display: flex;
322
+ padding: 15px 15px 0;
323
+ }
324
+
325
+ .rdrWeekDay {
326
+ font-weight: 700;
327
+ padding: 1rem 0.25rem;
328
+ text-transform: uppercase;
329
+ color: #A0AEC0;
330
+ font-size: 0.875rem;
331
+ width: 50px;
332
+ text-align: center;
333
+ }
334
+
335
+ .rdrDay {
336
+ font-size: 0.875rem;
337
+ width: 50px;
338
+ text-align: center;
339
+ border: none;
340
+ background-color: transparent;
341
+
342
+ .rdrDayNumber {
343
+ span {
344
+ width: 50px;
345
+ height: 50px;
346
+ display: flex;
347
+ align-items: center;
348
+ justify-content: center;
349
+ cursor: pointer;
350
+ transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
351
+ color: $gray-dark;
352
+
353
+ &:hover {
354
+ background-color: #EDF2F7;
355
+ }
356
+ }
357
+ }
358
+
359
+ &.rdrDayPassive {
360
+ .rdrDayNumber > span{
361
+ cursor: default;
362
+ color: $gray-light3;
363
+
364
+ &:hover{
365
+ background-color: transparent;
366
+ }
367
+ }
368
+ }
369
+ }
370
+
371
+ .rdrDays {
372
+ display: flex;
373
+ flex-wrap: wrap;
374
+ padding: 0 15px 15px;
375
+ }
376
+ }
377
+ }
378
+
379
+
219
380
  /* scroll */
220
381
  .em-select-popover {
221
382
  scrollbar-width: thin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "empower-container",
3
- "version": "0.1.27",
3
+ "version": "0.1.30",
4
4
  "private": false,
5
5
  "homepage": "https://bitbucket.org/empowerteams/empower-container",
6
6
  "main": "./dist/cjs/ndex.js",