empower-container 0.1.24 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/README.md +378 -378
  2. package/dist/cjs/DatetimeFormatter.d.ts +3 -3
  3. package/dist/cjs/DatetimeFormatter.js +389 -389
  4. package/dist/cjs/Information.d.ts +10 -10
  5. package/dist/cjs/Information.js +63 -63
  6. package/dist/cjs/MenuBar.d.ts +24 -24
  7. package/dist/cjs/MenuBar.js +539 -539
  8. package/dist/cjs/Modal.d.ts +33 -33
  9. package/dist/cjs/Modal.js +44 -44
  10. package/dist/cjs/assets/Asset.d.ts +17 -17
  11. package/dist/cjs/assets/Asset.js +31 -31
  12. package/dist/cjs/constants/Constant.d.ts +15 -15
  13. package/dist/cjs/constants/Constant.js +35 -35
  14. package/dist/cjs/index.d.ts +3 -3
  15. package/dist/cjs/index.js +10 -10
  16. package/dist/cjs/inputs/Input.d.ts +25 -25
  17. package/dist/cjs/inputs/Input.js +106 -106
  18. package/dist/cjs/inputs/InputSelectionHandler.d.ts +3 -3
  19. package/dist/cjs/inputs/InputSelectionHandler.js +36 -36
  20. package/dist/cjs/inputs/Select.d.ts +28 -28
  21. package/dist/cjs/inputs/Select.js +403 -403
  22. package/dist/esm/DatetimeFormatter.d.ts +3 -3
  23. package/dist/esm/DatetimeFormatter.js +385 -385
  24. package/dist/esm/Information.d.ts +10 -10
  25. package/dist/esm/Information.js +38 -38
  26. package/dist/esm/MenuBar.d.ts +24 -24
  27. package/dist/esm/MenuBar.js +534 -534
  28. package/dist/esm/Modal.d.ts +33 -33
  29. package/dist/esm/Modal.js +39 -39
  30. package/dist/esm/assets/Asset.d.ts +17 -17
  31. package/dist/esm/assets/Asset.js +28 -28
  32. package/dist/esm/constants/Constant.d.ts +15 -15
  33. package/dist/esm/constants/Constant.js +32 -32
  34. package/dist/esm/index.d.ts +3 -3
  35. package/dist/esm/index.js +3 -3
  36. package/dist/esm/inputs/Input.d.ts +25 -25
  37. package/dist/esm/inputs/Input.js +104 -104
  38. package/dist/esm/inputs/InputSelectionHandler.d.ts +3 -3
  39. package/dist/esm/inputs/InputSelectionHandler.js +31 -31
  40. package/dist/esm/inputs/Select.d.ts +28 -28
  41. package/dist/esm/inputs/Select.js +399 -399
  42. package/dist/scss/components/_modal.scss +66 -66
  43. package/dist/scss/elements/_button.scss +132 -132
  44. package/dist/scss/elements/_index.scss +1 -1
  45. package/dist/scss/elements/_popover.scss +7 -7
  46. package/dist/scss/foundation/_colors.scss +59 -59
  47. package/dist/scss/foundation/_mixins.scss +40 -40
  48. package/dist/scss/foundation/_normalize.scss +203 -203
  49. package/dist/scss/foundation/_settings.scss +36 -36
  50. package/dist/scss/foundation/_typography.scss +94 -94
  51. package/dist/scss/library/_information.scss +72 -63
  52. package/dist/scss/library/_input.scss +37 -37
  53. package/dist/scss/library/_menubar.scss +241 -240
  54. package/dist/scss/library/_select.scss +258 -258
  55. package/dist/scss/style.scss +38 -38
  56. package/package.json +63 -62
  57. package/tscnofig.old +26 -26
@@ -1,259 +1,259 @@
1
- .em-select {
2
- position: relative;
3
- width: 100%;
4
-
5
- .em-input-field {
6
- width: 100%;
7
- }
8
-
9
- .em-input-field .em-select-input,
10
- .em-popover .em-select-search input {
11
- min-height: 50px;
12
- width: 100%;
13
- background-color: $blue-light;
14
- border-top-left-radius: 10px;
15
- border-top-right-radius: 10px;
16
- border-bottom-right-radius: 0;
17
- border-bottom-left-radius: 0;
18
- box-shadow: inset 0 -2px 0 0 $blue-light1;
19
- border: none;
20
- font-size: 0.875rem;
21
- color: $gray-dark;
22
- padding: 10px 15px;
23
- margin-bottom: 15px;
24
- resize: none;
25
- transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
26
-
27
- &:focus {
28
- background-color: $blue-light;
29
- color: $gray-dark;
30
- border: none;
31
- outline: none;
32
- box-shadow: inset 0 -2px 0 0 $blue-light4;
33
- }
34
- }
35
-
36
- .em-field-icon {
37
- position: absolute;
38
- top: 15px;
39
- right: 15px;
40
- }
41
-
42
- .em-noresult {
43
- padding: 20px;
44
- }
45
- }
46
-
47
- .is-invalid .em-select .em-input-field .select-input {
48
- box-shadow: 0 2px 0 0 $red;
49
- }
50
-
51
- .em-overlay {
52
- width: 100vw;
53
- height: 100vh;
54
- position: fixed;
55
- top: 0;
56
- left: 0;
57
- z-index: 99;
58
- }
59
-
60
- .em-popover{
61
- position: absolute;
62
- top: 50px;
63
- margin-top: -2px;
64
- background-color: $white;
65
- font-size: 0.875rem;
66
- color: $gray-dark;
67
- border-top: 5px solid $blue;
68
- box-shadow: 0 15px 30px 0 rgb(19 37 154 / 15%);
69
- z-index: 100;
70
-
71
- .em-select{
72
- width: 100%;
73
-
74
- option{
75
- font-size: 0.875rem;
76
- color: $gray-dark;
77
- padding: 20px;
78
- transition: $transition;
79
- cursor: pointer;
80
-
81
- &:hover{
82
- background-color: $blue-light;
83
- padding: 20px 18px 20px 22px;
84
- }
85
- }
86
- }
87
-
88
- .popover{
89
- a {
90
- &:hover {
91
- background-color: $blue-light;
92
- color: $gray-dark;
93
- padding: 15px 18px 15px 22px;
94
- box-shadow: none;
95
- border: none;
96
- }
97
- }
98
- }
99
-
100
- .em-popover-input{
101
- display: flex;
102
- padding: 20px;
103
-
104
- .field {
105
- margin: 0 15px 0 0;
106
- width: 160px;
107
-
108
- > label {
109
- position: relative;
110
- top: 0;
111
- left: 0;
112
- padding: 0;
113
- margin-bottom: 5px;
114
- display: inline-block;
115
- font-size: .875rem;
116
- font-weight: 700;
117
- color: $gray-light3;
118
- text-transform: uppercase;
119
- }
120
- }
121
-
122
- button {
123
- border: 0;
124
- background: none;
125
- height: 50px;
126
- width: 50px;
127
- display: inline-flex;
128
- align-items: center;
129
- justify-content: center;
130
- cursor: pointer;
131
- transition: $transition;
132
- }
133
- }
134
-
135
- .em-popover-list {
136
- display: block;
137
- padding: 0;
138
-
139
- a {
140
- display: block;
141
- font-weight: 700;
142
- font-size: .875rem;
143
- color: $gray-light4;
144
- padding: 15px 20px;
145
- min-height: 50px;
146
- line-height: 20px;
147
- text-decoration: none;
148
- text-align: left;
149
- border: none;
150
- box-shadow: none;
151
- transition: $transition;
152
- margin-right: 0;
153
- cursor: pointer;
154
- }
155
- }
156
-
157
- .em-popover-months {
158
- width: 300px;
159
- padding: 0;
160
- flex-direction: column;
161
-
162
- .list-years {
163
- background-color: $blue-dark;
164
- display: flex;
165
- justify-content: space-between;
166
- margin-top: -1px;
167
- width: 100%;
168
-
169
- button {
170
- background-color: transparent;
171
- border: none;
172
- cursor: pointer;
173
- transition: $transition;
174
-
175
- svg path {
176
- fill: $white;
177
- }
178
-
179
- img {
180
- transition: $transition;
181
-
182
- &:hover {
183
- background-color: transparentize($blue-dark1, 0.5);
184
- }
185
-
186
- &:focus {
187
- outline: none;
188
- }
189
- }
190
- }
191
-
192
- > div {
193
- color: $white;
194
- font-size: 1.5rem;
195
- padding: 15px;
196
- }
197
- }
198
-
199
- .list-months {
200
- display: flex;
201
- flex-wrap: wrap;
202
-
203
- a {
204
- width: 33.33%;
205
- box-shadow: inset 1px 0 0 0 $blue-light1, inset 0 1px 0 0 $blue-light1;
206
- padding: 15px;
207
- color: $gray-light4;
208
- text-align: center;
209
- font-weight: 700;
210
- font-size: .875rem;
211
- text-decoration: none;
212
-
213
- &:hover {
214
- background-color: $gray-light;
215
- color: $gray-dark;
216
- }
217
-
218
- &.is-disabled{
219
- background-color: $gray-light;
220
- color: $gray-light3;
221
- cursor: initial;
222
-
223
- &:hover{
224
- background-color: $gray-light;
225
- color: $gray-light3;
226
- }
227
- }
228
-
229
- &.is-selected{
230
- background-color: $blue-dark1;
231
- color: $white;
232
- box-shadow: inset 1px 0 0 0 $blue-dark1, inset 0 1px 0 0 $blue-dark1;
233
- }
234
- }
235
- }
236
- }
237
- }
238
-
239
- /* scroll */
240
- .em-select-popover {
241
- scrollbar-width: thin;
242
- scrollbar-color: $gray;
243
- }
244
-
245
- .em-select-popover::-webkit-scrollbar-track{
246
- background: $gray-light;
247
- }
248
-
249
- .em-select-popover::-webkit-scrollbar-thumb{
250
- background-color: $gray-light2;
251
- border-radius: 20px;
252
- border: 3px solid $gray-light;
253
- cursor: pointer;
254
- }
255
-
256
- .em-select-popover::-webkit-scrollbar{
257
- width: 12px;
258
- cursor: pointer;
1
+ .em-select {
2
+ position: relative;
3
+ width: 100%;
4
+
5
+ .em-input-field {
6
+ width: 100%;
7
+ }
8
+
9
+ .em-input-field .em-select-input,
10
+ .em-popover .em-select-search input {
11
+ min-height: 50px;
12
+ width: 100%;
13
+ background-color: $blue-light;
14
+ border-top-left-radius: 10px;
15
+ border-top-right-radius: 10px;
16
+ border-bottom-right-radius: 0;
17
+ border-bottom-left-radius: 0;
18
+ box-shadow: inset 0 -2px 0 0 $blue-light1;
19
+ border: none;
20
+ font-size: 0.875rem;
21
+ color: $gray-dark;
22
+ padding: 10px 15px;
23
+ margin-bottom: 15px;
24
+ resize: none;
25
+ transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
26
+
27
+ &:focus {
28
+ background-color: $blue-light;
29
+ color: $gray-dark;
30
+ border: none;
31
+ outline: none;
32
+ box-shadow: inset 0 -2px 0 0 $blue-light4;
33
+ }
34
+ }
35
+
36
+ .em-field-icon {
37
+ position: absolute;
38
+ top: 15px;
39
+ right: 15px;
40
+ }
41
+
42
+ .em-noresult {
43
+ padding: 20px;
44
+ }
45
+ }
46
+
47
+ .is-invalid .em-select .em-input-field .select-input {
48
+ box-shadow: 0 2px 0 0 $red;
49
+ }
50
+
51
+ .em-overlay {
52
+ width: 100vw;
53
+ height: 100vh;
54
+ position: fixed;
55
+ top: 0;
56
+ left: 0;
57
+ z-index: 99;
58
+ }
59
+
60
+ .em-popover{
61
+ position: absolute;
62
+ top: 50px;
63
+ margin-top: -2px;
64
+ background-color: $white;
65
+ font-size: 0.875rem;
66
+ color: $gray-dark;
67
+ border-top: 5px solid $blue;
68
+ box-shadow: 0 15px 30px 0 rgb(19 37 154 / 15%);
69
+ z-index: 100;
70
+
71
+ .em-select{
72
+ width: 100%;
73
+
74
+ option{
75
+ font-size: 0.875rem;
76
+ color: $gray-dark;
77
+ padding: 20px;
78
+ transition: $transition;
79
+ cursor: pointer;
80
+
81
+ &:hover{
82
+ background-color: $blue-light;
83
+ padding: 20px 18px 20px 22px;
84
+ }
85
+ }
86
+ }
87
+
88
+ .popover{
89
+ a {
90
+ &:hover {
91
+ background-color: $blue-light;
92
+ color: $gray-dark;
93
+ padding: 15px 18px 15px 22px;
94
+ box-shadow: none;
95
+ border: none;
96
+ }
97
+ }
98
+ }
99
+
100
+ .em-popover-input{
101
+ display: flex;
102
+ padding: 20px;
103
+
104
+ .field {
105
+ margin: 0 15px 0 0;
106
+ width: 160px;
107
+
108
+ > label {
109
+ position: relative;
110
+ top: 0;
111
+ left: 0;
112
+ padding: 0;
113
+ margin-bottom: 5px;
114
+ display: inline-block;
115
+ font-size: .875rem;
116
+ font-weight: 700;
117
+ color: $gray-light3;
118
+ text-transform: uppercase;
119
+ }
120
+ }
121
+
122
+ button {
123
+ border: 0;
124
+ background: none;
125
+ height: 50px;
126
+ width: 50px;
127
+ display: inline-flex;
128
+ align-items: center;
129
+ justify-content: center;
130
+ cursor: pointer;
131
+ transition: $transition;
132
+ }
133
+ }
134
+
135
+ .em-popover-list {
136
+ display: block;
137
+ padding: 0;
138
+
139
+ a {
140
+ display: block;
141
+ font-weight: 700;
142
+ font-size: .875rem;
143
+ color: $gray-light4;
144
+ padding: 15px 20px;
145
+ min-height: 50px;
146
+ line-height: 20px;
147
+ text-decoration: none;
148
+ text-align: left;
149
+ border: none;
150
+ box-shadow: none;
151
+ transition: $transition;
152
+ margin-right: 0;
153
+ cursor: pointer;
154
+ }
155
+ }
156
+
157
+ .em-popover-months {
158
+ width: 300px;
159
+ padding: 0;
160
+ flex-direction: column;
161
+
162
+ .list-years {
163
+ background-color: $blue-dark;
164
+ display: flex;
165
+ justify-content: space-between;
166
+ margin-top: -1px;
167
+ width: 100%;
168
+
169
+ button {
170
+ background-color: transparent;
171
+ border: none;
172
+ cursor: pointer;
173
+ transition: $transition;
174
+
175
+ svg path {
176
+ fill: $white;
177
+ }
178
+
179
+ img {
180
+ transition: $transition;
181
+
182
+ &:hover {
183
+ background-color: transparentize($blue-dark1, 0.5);
184
+ }
185
+
186
+ &:focus {
187
+ outline: none;
188
+ }
189
+ }
190
+ }
191
+
192
+ > div {
193
+ color: $white;
194
+ font-size: 1.5rem;
195
+ padding: 15px;
196
+ }
197
+ }
198
+
199
+ .list-months {
200
+ display: flex;
201
+ flex-wrap: wrap;
202
+
203
+ a {
204
+ width: 33.33%;
205
+ box-shadow: inset 1px 0 0 0 $blue-light1, inset 0 1px 0 0 $blue-light1;
206
+ padding: 15px;
207
+ color: $gray-light4;
208
+ text-align: center;
209
+ font-weight: 700;
210
+ font-size: .875rem;
211
+ text-decoration: none;
212
+
213
+ &:hover {
214
+ background-color: $gray-light;
215
+ color: $gray-dark;
216
+ }
217
+
218
+ &.is-disabled{
219
+ background-color: $gray-light;
220
+ color: $gray-light3;
221
+ cursor: initial;
222
+
223
+ &:hover{
224
+ background-color: $gray-light;
225
+ color: $gray-light3;
226
+ }
227
+ }
228
+
229
+ &.is-selected{
230
+ background-color: $blue-dark1;
231
+ color: $white;
232
+ box-shadow: inset 1px 0 0 0 $blue-dark1, inset 0 1px 0 0 $blue-dark1;
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
238
+
239
+ /* scroll */
240
+ .em-select-popover {
241
+ scrollbar-width: thin;
242
+ scrollbar-color: $gray;
243
+ }
244
+
245
+ .em-select-popover::-webkit-scrollbar-track{
246
+ background: $gray-light;
247
+ }
248
+
249
+ .em-select-popover::-webkit-scrollbar-thumb{
250
+ background-color: $gray-light2;
251
+ border-radius: 20px;
252
+ border: 3px solid $gray-light;
253
+ cursor: pointer;
254
+ }
255
+
256
+ .em-select-popover::-webkit-scrollbar{
257
+ width: 12px;
258
+ cursor: pointer;
259
259
  }
@@ -1,39 +1,39 @@
1
- @import url("https://fonts.googleapis.com/css?family=Quicksand:400,700|Roboto:400,400i,700&display=swap");
2
-
3
- @import 'foundation/colors';
4
- @import 'foundation/settings';
5
- @import 'foundation/mixins';
6
- @import 'foundation/typography';
7
- @import 'foundation/normalize';
8
- @import 'components/modal';
9
- @import 'elements/button';
10
- @import 'elements/popover';
11
- @import 'library/input';
12
- @import 'library/menubar';
13
- @import 'library/select';
14
- @import 'library/information';
15
-
16
- body {
17
- font-family: 'Roboto', sans-serif;
18
- }
19
-
20
- * {
21
- box-sizing: border-box;
22
- margin: 0;
23
- padding: 0;
24
- }
25
-
26
- .em-close {
27
- height: 40px;
28
- width: 40px;
29
- min-width: 40px;
30
- padding: 10px;
31
- box-shadow: none;
32
- border-radius: $border-radius-md;
33
- transition: $transition;
34
- cursor: pointer;
35
-
36
- &:hover {
37
- background-color: $blue-light;
38
- }
1
+ @import url("https://fonts.googleapis.com/css?family=Quicksand:400,700|Roboto:400,400i,700&display=swap");
2
+
3
+ @import 'foundation/colors';
4
+ @import 'foundation/settings';
5
+ @import 'foundation/mixins';
6
+ @import 'foundation/typography';
7
+ @import 'foundation/normalize';
8
+ @import 'components/modal';
9
+ @import 'elements/button';
10
+ @import 'elements/popover';
11
+ @import 'library/input';
12
+ @import 'library/menubar';
13
+ @import 'library/select';
14
+ @import 'library/information';
15
+
16
+ body {
17
+ font-family: 'Roboto', sans-serif;
18
+ }
19
+
20
+ * {
21
+ box-sizing: border-box;
22
+ margin: 0;
23
+ padding: 0;
24
+ }
25
+
26
+ .em-close {
27
+ height: 40px;
28
+ width: 40px;
29
+ min-width: 40px;
30
+ padding: 10px;
31
+ box-shadow: none;
32
+ border-radius: $border-radius-md;
33
+ transition: $transition;
34
+ cursor: pointer;
35
+
36
+ &:hover {
37
+ background-color: $blue-light;
38
+ }
39
39
  }