Skip to content

Commit 44f1b38

Browse files
committed
fix(es6 import): adding support for es6 imports + switching to webpack
1 parent b4641ab commit 44f1b38

18 files changed

+9604
-3113
lines changed

.babelrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"targets": {
5+
"browsers": ["last 2 versions"]
6+
}
7+
}]
8+
]
9+
}

README.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Datepickk.js
22
[![Build Status](https://travis-ci.org/crsten/datepickk.svg?branch=master&style=flat-square)](https://travis-ci.org/crsten/datepickk)
33
[![npm](https://img.shields.io/npm/dt/datepickk.svg?style=flat-square)](https://www.npmjs.com/package/datepickk)
4-
![Bower](https://img.shields.io/bower/v/datepickk.svg?style=flat-square)
54
[![npm](https://img.shields.io/npm/v/datepickk.svg?style=flat-square)](https://www.npmjs.com/package/datepickk)
65
![npm](https://img.shields.io/npm/l/datepickk.svg?style=flat-square)
76

@@ -21,10 +20,4 @@ You can get it on npm.
2120
npm install datepickk --save
2221
```
2322

24-
Or bower, too.
25-
26-
```shell
27-
bower install datepickk --save
28-
```
29-
3023
If you're not using either package manager, you can use `datepickk` by downloading the [files in the `dist` folder](dist).

dist/datepickk.css

Lines changed: 23 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,16 @@
77
position: fixed;
88
top: 0;
99
left: 0;
10-
display: -ms-flexbox;
1110
display: flex;
12-
-ms-flex-direction: column;
13-
flex-direction: column;
14-
-ms-flex-align: center;
15-
align-items: center;
16-
-ms-flex-pack: center;
17-
justify-content: center;
11+
flex-direction: column;
12+
align-items: center;
13+
justify-content: center;
1814
z-index: 999;
1915
width: 100%;
2016
height: 100%;
21-
font-family: 'Raleway', 'Open Sans', Arial;
17+
font-family: inherit;
2218
color: #333;
23-
-webkit-user-select: none;
24-
-moz-user-select: none;
25-
-ms-user-select: none;
26-
user-select: none;
19+
user-select: none;
2720
}
2821
#Datepickk.MSIE:not(.wrapped):not(.inline) .d-calendar {
2922
height: 560px;
@@ -150,10 +143,8 @@
150143
#Datepickk.fullscreen .d-calendar input + label {
151144
outline: 1px solid #eaeaea;
152145
box-sizing: border-box;
153-
-ms-flex-align: start !important;
154-
align-items: flex-start !important;
155-
-ms-flex-pack: end !important;
156-
justify-content: flex-end !important;
146+
align-items: flex-start !important;
147+
justify-content: flex-end !important;
157148
}
158149
#Datepickk.fullscreen .d-calendar input + label text {
159150
padding: 5px 10px 0 0;
@@ -162,12 +153,9 @@
162153
max-width: none;
163154
}
164155
#Datepickk .d-legend {
165-
display: -ms-flexbox;
166156
display: flex;
167-
-ms-flex-wrap: wrap;
168-
flex-wrap: wrap;
169-
-ms-flex-pack: center;
170-
justify-content: center;
157+
flex-wrap: wrap;
158+
justify-content: center;
171159
width: 100%;
172160
z-index: 2;
173161
background-color: whitesmoke;
@@ -209,14 +197,10 @@
209197
position: relative;
210198
max-width: 500px;
211199
max-height: 560px;
212-
display: -ms-flexbox;
213200
display: flex;
214-
-ms-flex-direction: column;
215-
flex-direction: column;
216-
-ms-flex-pack: start;
217-
justify-content: flex-start;
218-
-ms-flex-positive: 1;
219-
flex-grow: 1;
201+
flex-direction: column;
202+
justify-content: flex-start;
203+
flex-grow: 1;
220204
z-index: 2;
221205
}
222206
#Datepickk .d-header {
@@ -301,10 +285,8 @@
301285
content: "";
302286
}
303287
#Datepickk .d-month-picker {
304-
display: -ms-flexbox;
305288
display: flex;
306-
-ms-flex-pack: justify;
307-
justify-content: space-between;
289+
justify-content: space-between;
308290
background-color: rgba(27, 54, 63, 0.9);
309291
height: 0;
310292
overflow: hidden;
@@ -332,10 +314,8 @@
332314
color: white;
333315
}
334316
#Datepickk .d-year-picker {
335-
display: -ms-flexbox;
336317
display: flex;
337-
-ms-flex-pack: justify;
338-
justify-content: space-between;
318+
justify-content: space-between;
339319
background-color: rgba(27, 54, 63, 0.9);
340320
height: 0;
341321
overflow: hidden;
@@ -363,22 +343,19 @@
363343
color: white;
364344
}
365345
#Datepickk .d-weekdays {
366-
display: -ms-flexbox;
367346
display: flex;
368347
}
369348
#Datepickk .d-week {
370349
background-color: #E95A5A;
371350
color: white;
372-
display: -ms-flexbox;
373351
display: flex;
374352
width: 100%;
375353
}
376354
#Datepickk .d-week + .d-week {
377355
border-left: 1px solid rgba(255, 255, 255, 0.05);
378356
}
379357
#Datepickk .d-week > div {
380-
-ms-flex-preferred-size: calc(100% / 7);
381-
flex-basis: calc(100% / 7);
358+
flex-basis: calc(100% / 7);
382359
text-align: center;
383360
}
384361
#Datepickk .d-week > div p {
@@ -391,19 +368,14 @@
391368
}
392369
#Datepickk .d-table {
393370
width: 100%;
394-
display: -ms-flexbox;
395371
display: flex;
396-
-ms-flex-wrap: wrap;
397-
flex-wrap: wrap;
398-
-ms-flex: 1;
399-
flex: 1;
372+
flex-wrap: wrap;
373+
flex: 1;
400374
}
401375
#Datepickk .d-table:first-child:nth-last-child(n + 3),
402376
#Datepickk .d-table:first-child:nth-last-child(n + 3) ~ div {
403-
-ms-flex: 0;
404-
flex: 0;
405-
-ms-flex-preferred-size: calc(100% / 3 - 1px);
406-
flex-basis: calc(100% / 3 - 1px);
377+
flex: 0;
378+
flex-basis: calc(100% / 3 - 1px);
407379
/*-1px due to browser render*/
408380
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
409381
}
@@ -420,12 +392,9 @@
420392
flex-basis: calc(100% / 7);
421393
-ms-flex-preferred-size: 14.28%;
422394
/*Keep -> IE render fail*/
423-
display: -ms-flexbox;
424395
display: flex;
425-
-ms-flex-align: center;
426-
align-items: center;
427-
-ms-flex-pack: center;
428-
justify-content: center;
396+
align-items: center;
397+
justify-content: center;
429398
cursor: pointer;
430399
transition: background-color 0.2s ease, background 0.2s ease, color 0.2s ease;
431400
position: relative;
@@ -551,12 +520,9 @@
551520
content: none;
552521
}
553522
#Datepickk .d-tables {
554-
display: -ms-flexbox;
555523
display: flex;
556-
-ms-flex: 1;
557-
flex: 1;
558-
-ms-flex-wrap: wrap;
559-
flex-wrap: wrap;
524+
flex: 1;
525+
flex-wrap: wrap;
560526
}
561527
#Datepickk .d-tables:not(.locked) input:not(:checked) + label:not(.hidden):hover {
562528
color: #222;

0 commit comments

Comments
 (0)