fomantic-ui 2.9.0-beta.79 → 2.9.0-beta.82

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 (180) hide show
  1. package/.all-contributorsrc +9 -0
  2. package/CONTRIBUTORS.md +1 -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 +5 -5
  14. package/dist/components/button.min.css +1 -1
  15. package/dist/components/calendar.css +1 -1
  16. package/dist/components/calendar.js +1 -1
  17. package/dist/components/calendar.min.css +1 -1
  18. package/dist/components/calendar.min.js +1 -1
  19. package/dist/components/card.css +26 -19
  20. package/dist/components/card.min.css +2 -2
  21. package/dist/components/checkbox.css +1 -1
  22. package/dist/components/checkbox.js +16 -8
  23. package/dist/components/checkbox.min.css +1 -1
  24. package/dist/components/checkbox.min.js +2 -2
  25. package/dist/components/comment.css +11 -11
  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 +17 -14
  30. package/dist/components/dimmer.js +1 -1
  31. package/dist/components/dimmer.min.css +2 -2
  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 +3 -3
  36. package/dist/components/dropdown.js +1 -1
  37. package/dist/components/dropdown.min.css +1 -1
  38. package/dist/components/dropdown.min.js +1 -1
  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/emoji.css +2 -2
  44. package/dist/components/feed.css +28 -28
  45. package/dist/components/feed.min.css +2 -2
  46. package/dist/components/flag.css +1 -1
  47. package/dist/components/flag.min.css +1 -1
  48. package/dist/components/form.css +1 -1
  49. package/dist/components/form.js +1 -1
  50. package/dist/components/form.min.css +1 -1
  51. package/dist/components/form.min.js +1 -1
  52. package/dist/components/grid.css +7 -7
  53. package/dist/components/grid.min.css +1 -1
  54. package/dist/components/header.css +1 -1
  55. package/dist/components/header.min.css +1 -1
  56. package/dist/components/icon.css +6 -1
  57. package/dist/components/icon.min.css +2 -2
  58. package/dist/components/image.css +1 -1
  59. package/dist/components/image.min.css +1 -1
  60. package/dist/components/input.css +1 -1
  61. package/dist/components/input.min.css +1 -1
  62. package/dist/components/item.css +13 -13
  63. package/dist/components/item.min.css +1 -1
  64. package/dist/components/label.css +1 -1
  65. package/dist/components/label.min.css +1 -1
  66. package/dist/components/list.css +1 -1
  67. package/dist/components/list.min.css +1 -1
  68. package/dist/components/loader.css +1 -1
  69. package/dist/components/loader.min.css +1 -1
  70. package/dist/components/menu.css +2 -2
  71. package/dist/components/message.css +1 -1
  72. package/dist/components/message.min.css +1 -1
  73. package/dist/components/modal.css +1 -1
  74. package/dist/components/modal.js +6 -5
  75. package/dist/components/modal.min.css +1 -1
  76. package/dist/components/modal.min.js +2 -2
  77. package/dist/components/nag.css +1 -1
  78. package/dist/components/nag.js +1 -1
  79. package/dist/components/nag.min.css +1 -1
  80. package/dist/components/nag.min.js +1 -1
  81. package/dist/components/placeholder.css +1 -1
  82. package/dist/components/placeholder.min.css +1 -1
  83. package/dist/components/popup.css +1 -1
  84. package/dist/components/popup.js +1 -1
  85. package/dist/components/popup.min.css +1 -1
  86. package/dist/components/popup.min.js +1 -1
  87. package/dist/components/progress.css +1 -1
  88. package/dist/components/progress.js +1 -1
  89. package/dist/components/progress.min.css +1 -1
  90. package/dist/components/progress.min.js +1 -1
  91. package/dist/components/rail.css +1 -1
  92. package/dist/components/rail.min.css +1 -1
  93. package/dist/components/rating.css +1 -1
  94. package/dist/components/rating.js +1 -1
  95. package/dist/components/rating.min.css +1 -1
  96. package/dist/components/rating.min.js +1 -1
  97. package/dist/components/reset.css +1 -1
  98. package/dist/components/reset.min.css +1 -1
  99. package/dist/components/reveal.css +1 -1
  100. package/dist/components/reveal.min.css +1 -1
  101. package/dist/components/search.css +1 -1
  102. package/dist/components/search.js +1 -1
  103. package/dist/components/search.min.css +1 -1
  104. package/dist/components/search.min.js +1 -1
  105. package/dist/components/segment.css +1 -1
  106. package/dist/components/segment.min.css +1 -1
  107. package/dist/components/shape.css +1 -1
  108. package/dist/components/shape.js +1 -1
  109. package/dist/components/shape.min.css +1 -1
  110. package/dist/components/shape.min.js +1 -1
  111. package/dist/components/sidebar.css +1 -1
  112. package/dist/components/sidebar.js +1 -1
  113. package/dist/components/sidebar.min.css +1 -1
  114. package/dist/components/sidebar.min.js +1 -1
  115. package/dist/components/site.css +1 -1
  116. package/dist/components/site.js +1 -1
  117. package/dist/components/site.min.css +1 -1
  118. package/dist/components/site.min.js +1 -1
  119. package/dist/components/slider.js +1 -1
  120. package/dist/components/slider.min.js +1 -1
  121. package/dist/components/state.js +1 -1
  122. package/dist/components/state.min.js +1 -1
  123. package/dist/components/statistic.css +1 -1
  124. package/dist/components/statistic.min.css +1 -1
  125. package/dist/components/step.css +3 -3
  126. package/dist/components/step.min.css +1 -1
  127. package/dist/components/sticky.css +1 -1
  128. package/dist/components/sticky.js +1 -1
  129. package/dist/components/sticky.min.css +1 -1
  130. package/dist/components/sticky.min.js +1 -1
  131. package/dist/components/tab.css +1 -1
  132. package/dist/components/tab.js +1 -1
  133. package/dist/components/tab.min.css +1 -1
  134. package/dist/components/tab.min.js +1 -1
  135. package/dist/components/table.css +3 -3
  136. package/dist/components/table.min.css +1 -1
  137. package/dist/components/text.css +1 -1
  138. package/dist/components/text.min.css +1 -1
  139. package/dist/components/toast.css +1 -1
  140. package/dist/components/toast.js +3 -2
  141. package/dist/components/toast.min.css +1 -1
  142. package/dist/components/toast.min.js +2 -2
  143. package/dist/components/transition.css +1 -1
  144. package/dist/components/transition.js +1 -1
  145. package/dist/components/transition.min.css +1 -1
  146. package/dist/components/transition.min.js +1 -1
  147. package/dist/components/visibility.js +1 -1
  148. package/dist/components/visibility.min.js +1 -1
  149. package/dist/semantic.css +164 -149
  150. package/dist/semantic.js +47 -37
  151. package/dist/semantic.min.css +2 -2
  152. package/dist/semantic.min.js +2 -2
  153. package/package.json +1 -1
  154. package/src/definitions/collections/form.less +123 -113
  155. package/src/definitions/collections/grid.less +700 -668
  156. package/src/definitions/collections/menu.less +96 -81
  157. package/src/definitions/collections/message.less +8 -7
  158. package/src/definitions/collections/table.less +184 -174
  159. package/src/definitions/elements/button.less +127 -116
  160. package/src/definitions/elements/container.less +16 -8
  161. package/src/definitions/elements/emoji.less +15 -9
  162. package/src/definitions/elements/header.less +14 -8
  163. package/src/definitions/elements/icon.less +5 -0
  164. package/src/definitions/elements/list.less +55 -45
  165. package/src/definitions/elements/segment.less +4 -3
  166. package/src/definitions/elements/step.less +52 -48
  167. package/src/definitions/modules/checkbox.js +15 -7
  168. package/src/definitions/modules/dimmer.less +10 -6
  169. package/src/definitions/modules/dropdown.less +19 -17
  170. package/src/definitions/modules/modal.js +5 -4
  171. package/src/definitions/modules/search.less +32 -16
  172. package/src/definitions/modules/sidebar.less +30 -18
  173. package/src/definitions/modules/toast.js +2 -1
  174. package/src/definitions/views/card.less +373 -333
  175. package/src/definitions/views/comment.less +92 -81
  176. package/src/definitions/views/feed.less +164 -144
  177. package/src/definitions/views/item.less +249 -196
  178. package/src/definitions/views/statistic.less +71 -70
  179. package/src/themes/default/globals/variation.variables +64 -0
  180. package/src/themes/default/modules/dimmer.variables +1 -1
package/dist/semantic.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * # Fomantic UI - 2.9.0-beta.79
2
+ * # Fomantic UI - 2.9.0-beta.82
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.79 - Site
12
+ * # Fomantic-UI 2.9.0-beta.82 - 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.79 - Form Validation
506
+ * # Fomantic-UI 2.9.0-beta.82 - Form Validation
507
507
  * http://github.com/fomantic/Fomantic-UI/
508
508
  *
509
509
  *
@@ -2577,7 +2577,7 @@ $.fn.form.settings = {
2577
2577
  })( jQuery, window, document );
2578
2578
 
2579
2579
  /*!
2580
- * # Fomantic-UI 2.9.0-beta.79 - Accordion
2580
+ * # Fomantic-UI 2.9.0-beta.82 - Accordion
2581
2581
  * http://github.com/fomantic/Fomantic-UI/
2582
2582
  *
2583
2583
  *
@@ -3196,7 +3196,7 @@ $.extend( $.easing, {
3196
3196
 
3197
3197
 
3198
3198
  /*!
3199
- * # Fomantic-UI 2.9.0-beta.79 - Calendar
3199
+ * # Fomantic-UI 2.9.0-beta.82 - Calendar
3200
3200
  * http://github.com/fomantic/Fomantic-UI/
3201
3201
  *
3202
3202
  *
@@ -5068,7 +5068,7 @@ $.fn.calendar.settings = {
5068
5068
  })(jQuery, window, document);
5069
5069
 
5070
5070
  /*!
5071
- * # Fomantic-UI 2.9.0-beta.79 - Checkbox
5071
+ * # Fomantic-UI 2.9.0-beta.82 - Checkbox
5072
5072
  * http://github.com/fomantic/Fomantic-UI/
5073
5073
  *
5074
5074
  *
@@ -5308,18 +5308,26 @@ $.fn.checkbox = function(parameters) {
5308
5308
  }
5309
5309
  }
5310
5310
 
5311
+ shortcutPressed = false;
5311
5312
  if(key == keyCode.escape) {
5312
5313
  module.verbose('Escape key pressed blurring field');
5313
5314
  $input.blur();
5314
5315
  shortcutPressed = true;
5315
5316
  }
5316
- else if(!event.ctrlKey && ( key == keyCode.space || (key == keyCode.enter && settings.enableEnterKey)) ) {
5317
- module.verbose('Enter/space key pressed, toggling checkbox');
5318
- module.toggle();
5319
- shortcutPressed = true;
5320
- }
5321
- else {
5322
- shortcutPressed = false;
5317
+ else if(!event.ctrlKey && module.can.change()) {
5318
+ if( key == keyCode.space || (key == keyCode.enter && settings.enableEnterKey) ) {
5319
+ module.verbose('Enter/space key pressed, toggling checkbox');
5320
+ module.toggle();
5321
+ shortcutPressed = true;
5322
+ } else if($module.is('.toggle, .slider') && !module.is.radio()) {
5323
+ if(key == keyCode.left && module.is.checked()) {
5324
+ module.uncheck();
5325
+ shortcutPressed = true;
5326
+ } else if(key == keyCode.right && module.is.unchecked()) {
5327
+ module.check();
5328
+ shortcutPressed = true;
5329
+ }
5330
+ }
5323
5331
  }
5324
5332
  },
5325
5333
  keyup: function(event) {
@@ -5943,7 +5951,7 @@ $.fn.checkbox.settings = {
5943
5951
  })( jQuery, window, document );
5944
5952
 
5945
5953
  /*!
5946
- * # Fomantic-UI 2.9.0-beta.79 - Dimmer
5954
+ * # Fomantic-UI 2.9.0-beta.82 - Dimmer
5947
5955
  * http://github.com/fomantic/Fomantic-UI/
5948
5956
  *
5949
5957
  *
@@ -6700,7 +6708,7 @@ $.fn.dimmer.settings = {
6700
6708
  })( jQuery, window, document );
6701
6709
 
6702
6710
  /*!
6703
- * # Fomantic-UI 2.9.0-beta.79 - Dropdown
6711
+ * # Fomantic-UI 2.9.0-beta.82 - Dropdown
6704
6712
  * http://github.com/fomantic/Fomantic-UI/
6705
6713
  *
6706
6714
  *
@@ -11027,7 +11035,7 @@ $.fn.dropdown.settings.templates = {
11027
11035
  })( jQuery, window, document );
11028
11036
 
11029
11037
  /*!
11030
- * # Fomantic-UI 2.9.0-beta.79 - Embed
11038
+ * # Fomantic-UI 2.9.0-beta.82 - Embed
11031
11039
  * http://github.com/fomantic/Fomantic-UI/
11032
11040
  *
11033
11041
  *
@@ -11737,7 +11745,7 @@ $.fn.embed.settings = {
11737
11745
  })( jQuery, window, document );
11738
11746
 
11739
11747
  /*!
11740
- * # Fomantic-UI 2.9.0-beta.79 - Modal
11748
+ * # Fomantic-UI 2.9.0-beta.82 - Modal
11741
11749
  * http://github.com/fomantic/Fomantic-UI/
11742
11750
  *
11743
11751
  *
@@ -11865,7 +11873,8 @@ $.fn.modal = function(parameters) {
11865
11873
  'aria-label': $('<div>'+(el[fields.text] || el[fields.icon] || '')+'</div>').text(),
11866
11874
  class: className.button + ' ' + cls,
11867
11875
  click: function () {
11868
- if (click.call(element, $module) === false) {
11876
+ var button = $(this);
11877
+ if (button.is(selector.approve) || button.is(selector.deny) || click.call(element, $module) === false) {
11869
11878
  return;
11870
11879
  }
11871
11880
  module.hide();
@@ -12510,7 +12519,7 @@ $.fn.modal = function(parameters) {
12510
12519
  $module
12511
12520
  .off('mousedown' + elementEventNamespace)
12512
12521
  ;
12513
- }
12522
+ }
12514
12523
  $dimmer
12515
12524
  .off('mousedown' + elementEventNamespace)
12516
12525
  ;
@@ -12780,7 +12789,7 @@ $.fn.modal = function(parameters) {
12780
12789
  ? $(document).scrollTop() + settings.padding
12781
12790
  : $(document).scrollTop() + (module.cache.contextHeight - module.cache.height - settings.padding),
12782
12791
  marginLeft: -(module.cache.width / 2)
12783
- })
12792
+ })
12784
12793
  ;
12785
12794
  } else {
12786
12795
  $module
@@ -12789,7 +12798,7 @@ $.fn.modal = function(parameters) {
12789
12798
  ? -(module.cache.height / 2)
12790
12799
  : settings.padding / 2,
12791
12800
  marginLeft: -(module.cache.width / 2)
12792
- })
12801
+ })
12793
12802
  ;
12794
12803
  }
12795
12804
  module.verbose('Setting modal offset for legacy mode');
@@ -13253,7 +13262,7 @@ $.fn.modal.settings.templates = {
13253
13262
  })( jQuery, window, document );
13254
13263
 
13255
13264
  /*!
13256
- * # Fomantic-UI 2.9.0-beta.79 - Nag
13265
+ * # Fomantic-UI 2.9.0-beta.82 - Nag
13257
13266
  * http://github.com/fomantic/Fomantic-UI/
13258
13267
  *
13259
13268
  *
@@ -13812,7 +13821,7 @@ $.extend( $.easing, {
13812
13821
  })( jQuery, window, document );
13813
13822
 
13814
13823
  /*!
13815
- * # Fomantic-UI 2.9.0-beta.79 - Popup
13824
+ * # Fomantic-UI 2.9.0-beta.82 - Popup
13816
13825
  * http://github.com/fomantic/Fomantic-UI/
13817
13826
  *
13818
13827
  *
@@ -15354,7 +15363,7 @@ $.fn.popup.settings = {
15354
15363
  })( jQuery, window, document );
15355
15364
 
15356
15365
  /*!
15357
- * # Fomantic-UI 2.9.0-beta.79 - Progress
15366
+ * # Fomantic-UI 2.9.0-beta.82 - Progress
15358
15367
  * http://github.com/fomantic/Fomantic-UI/
15359
15368
  *
15360
15369
  *
@@ -16388,7 +16397,7 @@ $.fn.progress.settings = {
16388
16397
  })( jQuery, window, document );
16389
16398
 
16390
16399
  /*!
16391
- * # Fomantic-UI 2.9.0-beta.79 - Slider
16400
+ * # Fomantic-UI 2.9.0-beta.82 - Slider
16392
16401
  * http://github.com/fomantic/Fomantic-UI/
16393
16402
  *
16394
16403
  *
@@ -17727,7 +17736,7 @@ $.fn.slider.settings = {
17727
17736
  })( jQuery, window, document );
17728
17737
 
17729
17738
  /*!
17730
- * # Fomantic-UI 2.9.0-beta.79 - Rating
17739
+ * # Fomantic-UI 2.9.0-beta.82 - Rating
17731
17740
  * http://github.com/fomantic/Fomantic-UI/
17732
17741
  *
17733
17742
  *
@@ -18282,7 +18291,7 @@ $.fn.rating.settings = {
18282
18291
  })( jQuery, window, document );
18283
18292
 
18284
18293
  /*!
18285
- * # Fomantic-UI 2.9.0-beta.79 - Search
18294
+ * # Fomantic-UI 2.9.0-beta.82 - Search
18286
18295
  * http://github.com/fomantic/Fomantic-UI/
18287
18296
  *
18288
18297
  *
@@ -19850,7 +19859,7 @@ $.fn.search.settings = {
19850
19859
  })( jQuery, window, document );
19851
19860
 
19852
19861
  /*!
19853
- * # Fomantic-UI 2.9.0-beta.79 - Shape
19862
+ * # Fomantic-UI 2.9.0-beta.82 - Shape
19854
19863
  * http://github.com/fomantic/Fomantic-UI/
19855
19864
  *
19856
19865
  *
@@ -20699,7 +20708,7 @@ $.fn.shape.settings = {
20699
20708
  })( jQuery, window, document );
20700
20709
 
20701
20710
  /*!
20702
- * # Fomantic-UI 2.9.0-beta.79 - Sidebar
20711
+ * # Fomantic-UI 2.9.0-beta.82 - Sidebar
20703
20712
  * http://github.com/fomantic/Fomantic-UI/
20704
20713
  *
20705
20714
  *
@@ -21736,7 +21745,7 @@ $.fn.sidebar.settings = {
21736
21745
  })( jQuery, window, document );
21737
21746
 
21738
21747
  /*!
21739
- * # Fomantic-UI 2.9.0-beta.79 - Sticky
21748
+ * # Fomantic-UI 2.9.0-beta.82 - Sticky
21740
21749
  * http://github.com/fomantic/Fomantic-UI/
21741
21750
  *
21742
21751
  *
@@ -22694,7 +22703,7 @@ $.fn.sticky.settings = {
22694
22703
  })( jQuery, window, document );
22695
22704
 
22696
22705
  /*!
22697
- * # Fomantic-UI 2.9.0-beta.79 - Tab
22706
+ * # Fomantic-UI 2.9.0-beta.82 - Tab
22698
22707
  * http://github.com/fomantic/Fomantic-UI/
22699
22708
  *
22700
22709
  *
@@ -23696,7 +23705,7 @@ $.fn.tab.settings = {
23696
23705
  })( jQuery, window, document );
23697
23706
 
23698
23707
  /*!
23699
- * # Fomantic-UI 2.9.0-beta.79 - Toast
23708
+ * # Fomantic-UI 2.9.0-beta.82 - Toast
23700
23709
  * http://github.com/fomantic/Fomantic-UI/
23701
23710
  *
23702
23711
  *
@@ -23926,7 +23935,8 @@ $.fn.toast = function(parameters) {
23926
23935
  html: icon + text,
23927
23936
  class: className.button + ' ' + cls,
23928
23937
  click: function () {
23929
- if (click.call(element, $module) === false) {
23938
+ var button = $(this);
23939
+ if (button.is(selector.approve) || button.is(selector.deny) || click.call(element, $module) === false) {
23930
23940
  return;
23931
23941
  }
23932
23942
  module.close();
@@ -24589,7 +24599,7 @@ $.extend( $.easing, {
24589
24599
  })( jQuery, window, document );
24590
24600
 
24591
24601
  /*!
24592
- * # Fomantic-UI 2.9.0-beta.79 - Transition
24602
+ * # Fomantic-UI 2.9.0-beta.82 - Transition
24593
24603
  * http://github.com/fomantic/Fomantic-UI/
24594
24604
  *
24595
24605
  *
@@ -25699,7 +25709,7 @@ $.fn.transition.settings = {
25699
25709
  })( jQuery, window, document );
25700
25710
 
25701
25711
  /*!
25702
- * # Fomantic-UI 2.9.0-beta.79 - API
25712
+ * # Fomantic-UI 2.9.0-beta.82 - API
25703
25713
  * http://github.com/fomantic/Fomantic-UI/
25704
25714
  *
25705
25715
  *
@@ -26879,7 +26889,7 @@ $.api.settings = {
26879
26889
  })( jQuery, window, document );
26880
26890
 
26881
26891
  /*!
26882
- * # Fomantic-UI 2.9.0-beta.79 - State
26892
+ * # Fomantic-UI 2.9.0-beta.82 - State
26883
26893
  * http://github.com/fomantic/Fomantic-UI/
26884
26894
  *
26885
26895
  *
@@ -27591,7 +27601,7 @@ $.fn.state.settings = {
27591
27601
  })( jQuery, window, document );
27592
27602
 
27593
27603
  /*!
27594
- * # Fomantic-UI 2.9.0-beta.79 - Visibility
27604
+ * # Fomantic-UI 2.9.0-beta.82 - Visibility
27595
27605
  * http://github.com/fomantic/Fomantic-UI/
27596
27606
  *
27597
27607
  *