File tree Expand file tree Collapse file tree 6 files changed +12
-4
lines changed
Expand file tree Collapse file tree 6 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ export default Base.extend({
3131 async init ( el , opts ) {
3232 await import ( "slick-carousel" ) ;
3333
34+ if ( window . __patternslib_import_styles ) {
35+ import ( "slick-carousel/slick/slick.scss" ) ;
36+ }
37+
3438 if ( el . jquery ) {
3539 el = el [ 0 ] ;
3640 }
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ export default Base.extend({
6666
6767 const Pikaday = ( await import ( "pikaday" ) ) . default ;
6868 if ( window . __patternslib_import_styles ) {
69- await import ( "pikaday/scss/pikaday.scss" ) ;
69+ import ( "pikaday/scss/pikaday.scss" ) ;
7070 }
7171
7272 if ( el . getAttribute ( "type" ) === "date" ) {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export default Base.extend({
3535
3636 const DatePicker = ( await import ( "../date-picker/date-picker" ) ) . default ;
3737 if ( window . __patternslib_import_styles ) {
38- await import ( "./_datetime-picker.scss" ) ;
38+ import ( "./_datetime-picker.scss" ) ;
3939 }
4040
4141 const value = this . el . value . split ( "T" ) ;
Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ export default Base.extend({
2525 const PhotoSwipe = ( await import ( "photoswipe" ) ) . default ;
2626 const PhotoSwipeUI = ( await import ( "photoswipe/dist/photoswipe-ui-default" ) ) . default ; // prettier-ignore
2727
28+ if ( window . __patternslib_import_styles ) {
29+ import ( "photoswipe/dist/photoswipe.css" ) ;
30+ }
31+
2832 this . options = parser . parse ( this . $el , opts ) ;
2933 if ( $ ( "#photoswipe-template" ) . length === 0 ) {
3034 const Template = ( await import ( "./template.html" ) ) . default ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ export default Base.extend({
2525
2626 async init ( $el , opts , trigger ) {
2727 if ( window . __patternslib_import_styles ) {
28- await import ( "./_modal.scss" ) ;
28+ import ( "./_modal.scss" ) ;
2929 }
3030
3131 this . options = parser . parse ( this . $el , opts ) ;
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export default Base.extend({
5454 const Tippy = ( await import ( "tippy.js" ) ) . default ;
5555
5656 if ( window . __patternslib_import_styles ) {
57- await import ( "tippy.js/dist/tippy.css" ) ;
57+ import ( "tippy.js/dist/tippy.css" ) ;
5858 }
5959
6060 this . options = parser . parse ( el , opts ) ;
You can’t perform that action at this time.
0 commit comments