fomantic-ui 2.9.0-beta.303 → 2.9.0-beta.306

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.
Files changed (159) hide show
  1. package/.all-contributorsrc +9 -0
  2. package/CONTRIBUTORS.md +3 -0
  3. package/dist/components/accordion.css +1 -1
  4. package/dist/components/accordion.js +1 -1
  5. package/dist/components/accordion.min.css +1 -1
  6. package/dist/components/accordion.min.js +1 -1
  7. package/dist/components/ad.css +1 -1
  8. package/dist/components/ad.min.css +1 -1
  9. package/dist/components/api.js +1 -1
  10. package/dist/components/api.min.js +1 -1
  11. package/dist/components/breadcrumb.css +1 -1
  12. package/dist/components/breadcrumb.min.css +1 -1
  13. package/dist/components/button.css +1 -1
  14. package/dist/components/button.min.css +1 -1
  15. package/dist/components/calendar.css +1 -1
  16. package/dist/components/calendar.js +6 -3
  17. package/dist/components/calendar.min.css +1 -1
  18. package/dist/components/calendar.min.js +2 -2
  19. package/dist/components/card.css +1 -1
  20. package/dist/components/card.min.css +1 -1
  21. package/dist/components/checkbox.css +1 -1
  22. package/dist/components/checkbox.js +2 -1
  23. package/dist/components/checkbox.min.css +1 -1
  24. package/dist/components/checkbox.min.js +2 -2
  25. package/dist/components/comment.css +1 -1
  26. package/dist/components/comment.min.css +1 -1
  27. package/dist/components/container.css +1 -1
  28. package/dist/components/container.min.css +1 -1
  29. package/dist/components/dimmer.css +1 -1
  30. package/dist/components/dimmer.js +1 -1
  31. package/dist/components/dimmer.min.css +1 -1
  32. package/dist/components/dimmer.min.js +1 -1
  33. package/dist/components/divider.css +1 -1
  34. package/dist/components/divider.min.css +1 -1
  35. package/dist/components/dropdown.css +11 -1
  36. package/dist/components/dropdown.js +2 -1
  37. package/dist/components/dropdown.min.css +2 -2
  38. package/dist/components/dropdown.min.js +2 -2
  39. package/dist/components/embed.css +1 -1
  40. package/dist/components/embed.js +1 -1
  41. package/dist/components/embed.min.css +1 -1
  42. package/dist/components/embed.min.js +1 -1
  43. package/dist/components/feed.css +1 -1
  44. package/dist/components/feed.min.css +1 -1
  45. package/dist/components/flag.css +1 -1
  46. package/dist/components/flag.min.css +1 -1
  47. package/dist/components/form.css +1 -1
  48. package/dist/components/form.js +1 -1
  49. package/dist/components/form.min.css +1 -1
  50. package/dist/components/form.min.js +1 -1
  51. package/dist/components/grid.css +1 -1
  52. package/dist/components/grid.min.css +1 -1
  53. package/dist/components/header.css +1 -1
  54. package/dist/components/header.min.css +1 -1
  55. package/dist/components/icon.css +1 -1
  56. package/dist/components/icon.min.css +1 -1
  57. package/dist/components/image.css +1 -1
  58. package/dist/components/image.min.css +1 -1
  59. package/dist/components/input.css +1 -1
  60. package/dist/components/input.min.css +1 -1
  61. package/dist/components/item.css +1 -1
  62. package/dist/components/item.min.css +1 -1
  63. package/dist/components/label.css +1 -1
  64. package/dist/components/label.min.css +1 -1
  65. package/dist/components/list.css +1 -1
  66. package/dist/components/list.min.css +1 -1
  67. package/dist/components/loader.css +1 -1
  68. package/dist/components/loader.min.css +1 -1
  69. package/dist/components/message.css +1 -1
  70. package/dist/components/message.min.css +1 -1
  71. package/dist/components/modal.css +1 -1
  72. package/dist/components/modal.js +3 -3
  73. package/dist/components/modal.min.css +1 -1
  74. package/dist/components/modal.min.js +2 -2
  75. package/dist/components/nag.css +1 -1
  76. package/dist/components/nag.js +1 -1
  77. package/dist/components/nag.min.css +1 -1
  78. package/dist/components/nag.min.js +1 -1
  79. package/dist/components/placeholder.css +1 -1
  80. package/dist/components/placeholder.min.css +1 -1
  81. package/dist/components/popup.css +1 -1
  82. package/dist/components/popup.js +3 -3
  83. package/dist/components/popup.min.css +1 -1
  84. package/dist/components/popup.min.js +2 -2
  85. package/dist/components/progress.css +1 -1
  86. package/dist/components/progress.js +1 -1
  87. package/dist/components/progress.min.css +1 -1
  88. package/dist/components/progress.min.js +1 -1
  89. package/dist/components/rail.css +1 -1
  90. package/dist/components/rail.min.css +1 -1
  91. package/dist/components/rating.css +1 -1
  92. package/dist/components/rating.js +1 -1
  93. package/dist/components/rating.min.css +1 -1
  94. package/dist/components/rating.min.js +1 -1
  95. package/dist/components/reset.css +1 -1
  96. package/dist/components/reset.min.css +1 -1
  97. package/dist/components/reveal.css +1 -1
  98. package/dist/components/reveal.min.css +1 -1
  99. package/dist/components/search.css +1 -1
  100. package/dist/components/search.js +5 -4
  101. package/dist/components/search.min.css +1 -1
  102. package/dist/components/search.min.js +2 -2
  103. package/dist/components/segment.css +1 -1
  104. package/dist/components/segment.min.css +1 -1
  105. package/dist/components/shape.css +1 -1
  106. package/dist/components/shape.js +1 -1
  107. package/dist/components/shape.min.css +1 -1
  108. package/dist/components/shape.min.js +1 -1
  109. package/dist/components/sidebar.css +1 -1
  110. package/dist/components/sidebar.js +1 -1
  111. package/dist/components/sidebar.min.css +1 -1
  112. package/dist/components/sidebar.min.js +1 -1
  113. package/dist/components/site.css +1 -1
  114. package/dist/components/site.js +1 -1
  115. package/dist/components/site.min.css +1 -1
  116. package/dist/components/site.min.js +1 -1
  117. package/dist/components/slider.js +1 -1
  118. package/dist/components/slider.min.js +1 -1
  119. package/dist/components/state.js +1 -1
  120. package/dist/components/state.min.js +1 -1
  121. package/dist/components/statistic.css +1 -1
  122. package/dist/components/statistic.min.css +1 -1
  123. package/dist/components/step.css +1 -1
  124. package/dist/components/step.min.css +1 -1
  125. package/dist/components/sticky.css +1 -1
  126. package/dist/components/sticky.js +1 -1
  127. package/dist/components/sticky.min.css +1 -1
  128. package/dist/components/sticky.min.js +1 -1
  129. package/dist/components/tab.css +1 -1
  130. package/dist/components/tab.js +1 -1
  131. package/dist/components/tab.min.css +1 -1
  132. package/dist/components/tab.min.js +1 -1
  133. package/dist/components/table.css +1 -1
  134. package/dist/components/table.min.css +1 -1
  135. package/dist/components/text.css +1 -1
  136. package/dist/components/text.min.css +1 -1
  137. package/dist/components/toast.css +1 -1
  138. package/dist/components/toast.js +1 -1
  139. package/dist/components/toast.min.css +1 -1
  140. package/dist/components/toast.min.js +1 -1
  141. package/dist/components/transition.css +1 -1
  142. package/dist/components/transition.js +1 -1
  143. package/dist/components/transition.min.css +1 -1
  144. package/dist/components/transition.min.js +1 -1
  145. package/dist/components/visibility.js +1 -1
  146. package/dist/components/visibility.min.js +1 -1
  147. package/dist/semantic.css +60 -49
  148. package/dist/semantic.js +40 -34
  149. package/dist/semantic.min.css +2 -2
  150. package/dist/semantic.min.js +2 -2
  151. package/package.json +1 -1
  152. package/src/definitions/modules/calendar.js +5 -2
  153. package/src/definitions/modules/checkbox.js +1 -0
  154. package/src/definitions/modules/dropdown.js +1 -0
  155. package/src/definitions/modules/dropdown.less +10 -0
  156. package/src/definitions/modules/modal.js +2 -2
  157. package/src/definitions/modules/popup.js +2 -2
  158. package/src/definitions/modules/search.js +4 -3
  159. package/src/themes/default/modules/dropdown.variables +3 -0
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.303+76dc367
2
+ * # Fomantic UI - 2.9.0-beta.306+75cb2d5
3
3
  * https://github.com/fomantic/Fomantic-UI
4
4
  * http://fomantic-ui.com/
5
5
  *
@@ -9,7 +9,7 @@
9
9
  *
10
10
  */
11
11
  /*!
12
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Site
12
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Site
13
13
  * http://github.com/fomantic/Fomantic-UI/
14
14
  *
15
15
  *
@@ -503,7 +503,7 @@ $.extend($.expr[ ":" ], {
503
503
  })( jQuery, window, document );
504
504
 
505
505
  /*!
506
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Form Validation
506
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Form Validation
507
507
  * http://github.com/fomantic/Fomantic-UI/
508
508
  *
509
509
  *
@@ -2584,7 +2584,7 @@ $.fn.form.settings = {
2584
2584
  })( jQuery, window, document );
2585
2585
 
2586
2586
  /*!
2587
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Accordion
2587
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Accordion
2588
2588
  * http://github.com/fomantic/Fomantic-UI/
2589
2589
  *
2590
2590
  *
@@ -3206,7 +3206,7 @@ $.extend( $.easing, {
3206
3206
 
3207
3207
 
3208
3208
  /*!
3209
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Calendar
3209
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Calendar
3210
3210
  * http://github.com/fomantic/Fomantic-UI/
3211
3211
  *
3212
3212
  *
@@ -3800,8 +3800,8 @@ $.fn.calendar = function(parameters) {
3800
3800
  },
3801
3801
  keydown: function (event) {
3802
3802
  var keyCode = event.which;
3803
- if (keyCode === 27 || keyCode === 9) {
3804
- //esc || tab
3803
+ if (keyCode === 9) {
3804
+ //tab
3805
3805
  module.popup('hide');
3806
3806
  }
3807
3807
 
@@ -3837,6 +3837,9 @@ $.fn.calendar = function(parameters) {
3837
3837
  //disable form submission:
3838
3838
  event.preventDefault();
3839
3839
  event.stopPropagation();
3840
+ } else if (keyCode === 27) {
3841
+ module.popup('hide');
3842
+ event.stopPropagation();
3840
3843
  }
3841
3844
  }
3842
3845
 
@@ -5095,7 +5098,7 @@ $.fn.calendar.settings = {
5095
5098
  })(jQuery, window, document);
5096
5099
 
5097
5100
  /*!
5098
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Checkbox
5101
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Checkbox
5099
5102
  * http://github.com/fomantic/Fomantic-UI/
5100
5103
  *
5101
5104
  *
@@ -5340,6 +5343,7 @@ $.fn.checkbox = function(parameters) {
5340
5343
  module.verbose('Escape key pressed blurring field');
5341
5344
  $input.blur();
5342
5345
  shortcutPressed = true;
5346
+ event.stopPropagation();
5343
5347
  }
5344
5348
  else if(!event.ctrlKey && module.can.change()) {
5345
5349
  if( key == keyCode.space || (key == keyCode.enter && settings.enableEnterKey) ) {
@@ -5978,7 +5982,7 @@ $.fn.checkbox.settings = {
5978
5982
  })( jQuery, window, document );
5979
5983
 
5980
5984
  /*!
5981
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Dimmer
5985
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Dimmer
5982
5986
  * http://github.com/fomantic/Fomantic-UI/
5983
5987
  *
5984
5988
  *
@@ -6741,7 +6745,7 @@ $.fn.dimmer.settings = {
6741
6745
  })( jQuery, window, document );
6742
6746
 
6743
6747
  /*!
6744
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Dropdown
6748
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Dropdown
6745
6749
  * http://github.com/fomantic/Fomantic-UI/
6746
6750
  *
6747
6751
  *
@@ -8441,6 +8445,7 @@ $.fn.dropdown = function(parameters) {
8441
8445
  if(pressedKey == keys.escape) {
8442
8446
  module.verbose('Escape key pressed, closing dropdown');
8443
8447
  module.hide();
8448
+ event.stopPropagation();
8444
8449
  }
8445
8450
 
8446
8451
  }
@@ -11119,7 +11124,7 @@ $.fn.dropdown.settings.templates = {
11119
11124
  })( jQuery, window, document );
11120
11125
 
11121
11126
  /*!
11122
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Embed
11127
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Embed
11123
11128
  * http://github.com/fomantic/Fomantic-UI/
11124
11129
  *
11125
11130
  *
@@ -11835,7 +11840,7 @@ $.fn.embed.settings = {
11835
11840
  })( jQuery, window, document );
11836
11841
 
11837
11842
  /*!
11838
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Modal
11843
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Modal
11839
11844
  * http://github.com/fomantic/Fomantic-UI/
11840
11845
  *
11841
11846
  *
@@ -12559,7 +12564,7 @@ $.fn.modal = function(parameters) {
12559
12564
  keyboardShortcuts: function() {
12560
12565
  module.verbose('Adding keyboard shortcuts');
12561
12566
  $document
12562
- .on('keyup' + eventNamespace, module.event.keyboard)
12567
+ .on('keydown' + eventNamespace, module.event.keyboard)
12563
12568
  ;
12564
12569
  }
12565
12570
  },
@@ -12639,7 +12644,7 @@ $.fn.modal = function(parameters) {
12639
12644
  keyboardShortcuts: function() {
12640
12645
  module.verbose('Removing keyboard shortcuts');
12641
12646
  $document
12642
- .off('keyup' + eventNamespace)
12647
+ .off('keydown' + eventNamespace)
12643
12648
  ;
12644
12649
  },
12645
12650
  scrolling: function() {
@@ -13366,7 +13371,7 @@ $.fn.modal.settings.templates = {
13366
13371
  })( jQuery, window, document );
13367
13372
 
13368
13373
  /*!
13369
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Nag
13374
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Nag
13370
13375
  * http://github.com/fomantic/Fomantic-UI/
13371
13376
  *
13372
13377
  *
@@ -13925,7 +13930,7 @@ $.extend( $.easing, {
13925
13930
  })( jQuery, window, document );
13926
13931
 
13927
13932
  /*!
13928
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Popup
13933
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Popup
13929
13934
  * http://github.com/fomantic/Fomantic-UI/
13930
13935
  *
13931
13936
  *
@@ -14047,7 +14052,7 @@ $.fn.popup = function(parameters) {
14047
14052
  },
14048
14053
 
14049
14054
  refresh: function() {
14050
- if(settings.popup && typeof settings.popup === 'string') {
14055
+ if(settings.popup) {
14051
14056
  $popup = $(document).find(settings.popup).eq(0);
14052
14057
  }
14053
14058
  else {
@@ -14212,7 +14217,7 @@ $.fn.popup = function(parameters) {
14212
14217
  }
14213
14218
  settings.onCreate.call($popup, element);
14214
14219
  }
14215
- else if(settings.popup && typeof settings.popup === 'string') {
14220
+ else if(settings.popup) {
14216
14221
  $(document).find(settings.popup).data(metadata.activator, $module);
14217
14222
  module.verbose('Used popup specified in settings');
14218
14223
  module.refresh();
@@ -15467,7 +15472,7 @@ $.fn.popup.settings = {
15467
15472
  })( jQuery, window, document );
15468
15473
 
15469
15474
  /*!
15470
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Progress
15475
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Progress
15471
15476
  * http://github.com/fomantic/Fomantic-UI/
15472
15477
  *
15473
15478
  *
@@ -16504,7 +16509,7 @@ $.fn.progress.settings = {
16504
16509
  })( jQuery, window, document );
16505
16510
 
16506
16511
  /*!
16507
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Slider
16512
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Slider
16508
16513
  * http://github.com/fomantic/Fomantic-UI/
16509
16514
  *
16510
16515
  *
@@ -17860,7 +17865,7 @@ $.fn.slider.settings = {
17860
17865
  })( jQuery, window, document );
17861
17866
 
17862
17867
  /*!
17863
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Rating
17868
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Rating
17864
17869
  * http://github.com/fomantic/Fomantic-UI/
17865
17870
  *
17866
17871
  *
@@ -18419,7 +18424,7 @@ $.fn.rating.settings = {
18419
18424
  })( jQuery, window, document );
18420
18425
 
18421
18426
  /*!
18422
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Search
18427
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Search
18423
18428
  * http://github.com/fomantic/Fomantic-UI/
18424
18429
  *
18425
18430
  *
@@ -18682,7 +18687,7 @@ $.fn.search = function(parameters) {
18682
18687
 
18683
18688
  resultsScrollTop = $results.scrollTop();
18684
18689
  resultsHeight = $results.height();
18685
-
18690
+
18686
18691
  if (elTop < 0) {
18687
18692
  $results.scrollTop(resultsScrollTop + elTop);
18688
18693
  }
@@ -18715,6 +18720,7 @@ $.fn.search = function(parameters) {
18715
18720
  if(keyCode == keys.escape) {
18716
18721
  module.verbose('Escape key pressed, blurring search field');
18717
18722
  module.hideResults();
18723
+ event.stopPropagation();
18718
18724
  resultsDismissed = true;
18719
18725
  }
18720
18726
  if( module.is.visible() ) {
@@ -19098,10 +19104,10 @@ $.fn.search = function(parameters) {
19098
19104
  ;
19099
19105
  if(fieldExists) {
19100
19106
  var text;
19101
- if (typeof content[field] === 'string'){
19107
+ if (typeof content[field] === 'string'){
19102
19108
  text = module.remove.diacritics(content[field]);
19103
19109
  } else {
19104
- text = content[field].toString();
19110
+ text = content[field].toString();
19105
19111
  }
19106
19112
  if( text.search(matchRegExp) !== -1) {
19107
19113
  // content starts with value (first in results)
@@ -20003,7 +20009,7 @@ $.fn.search.settings = {
20003
20009
  })( jQuery, window, document );
20004
20010
 
20005
20011
  /*!
20006
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Shape
20012
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Shape
20007
20013
  * http://github.com/fomantic/Fomantic-UI/
20008
20014
  *
20009
20015
  *
@@ -20852,7 +20858,7 @@ $.fn.shape.settings = {
20852
20858
  })( jQuery, window, document );
20853
20859
 
20854
20860
  /*!
20855
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Sidebar
20861
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Sidebar
20856
20862
  * http://github.com/fomantic/Fomantic-UI/
20857
20863
  *
20858
20864
  *
@@ -21891,7 +21897,7 @@ $.fn.sidebar.settings = {
21891
21897
  })( jQuery, window, document );
21892
21898
 
21893
21899
  /*!
21894
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Sticky
21900
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Sticky
21895
21901
  * http://github.com/fomantic/Fomantic-UI/
21896
21902
  *
21897
21903
  *
@@ -22849,7 +22855,7 @@ $.fn.sticky.settings = {
22849
22855
  })( jQuery, window, document );
22850
22856
 
22851
22857
  /*!
22852
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Tab
22858
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Tab
22853
22859
  * http://github.com/fomantic/Fomantic-UI/
22854
22860
  *
22855
22861
  *
@@ -23869,7 +23875,7 @@ $.fn.tab.settings = {
23869
23875
  })( jQuery, window, document );
23870
23876
 
23871
23877
  /*!
23872
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Toast
23878
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Toast
23873
23879
  * http://github.com/fomantic/Fomantic-UI/
23874
23880
  *
23875
23881
  *
@@ -24794,7 +24800,7 @@ $.extend( $.easing, {
24794
24800
  })( jQuery, window, document );
24795
24801
 
24796
24802
  /*!
24797
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Transition
24803
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Transition
24798
24804
  * http://github.com/fomantic/Fomantic-UI/
24799
24805
  *
24800
24806
  *
@@ -25911,7 +25917,7 @@ $.fn.transition.settings = {
25911
25917
  })( jQuery, window, document );
25912
25918
 
25913
25919
  /*!
25914
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - API
25920
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - API
25915
25921
  * http://github.com/fomantic/Fomantic-UI/
25916
25922
  *
25917
25923
  *
@@ -27148,7 +27154,7 @@ $.api.settings = {
27148
27154
  })( jQuery, window, document );
27149
27155
 
27150
27156
  /*!
27151
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - State
27157
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - State
27152
27158
  * http://github.com/fomantic/Fomantic-UI/
27153
27159
  *
27154
27160
  *
@@ -27860,7 +27866,7 @@ $.fn.state.settings = {
27860
27866
  })( jQuery, window, document );
27861
27867
 
27862
27868
  /*!
27863
- * # Fomantic-UI 2.9.0-beta.303+76dc367 - Visibility
27869
+ * # Fomantic-UI 2.9.0-beta.306+75cb2d5 - Visibility
27864
27870
  * http://github.com/fomantic/Fomantic-UI/
27865
27871
  *
27866
27872
  *