Skip to content

Commit

Permalink
Result of npm run build. NOTE: some errors
Browse files Browse the repository at this point in the history
Some invalid arg errors for "unit" fn in output related to gulp-less
  • Loading branch information
emertechie committed Dec 27, 2022
1 parent c55c269 commit 7b441b2
Show file tree
Hide file tree
Showing 43 changed files with 3,740 additions and 2,977 deletions.
4 changes: 2 additions & 2 deletions semantic/dist/components/api.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.2.13 - API
* # Semantic UI 2.5.0 - API
* http://github.com/semantic-org/semantic-ui/
*
*
Expand All @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

var
window = (typeof window != 'undefined' && window.Math == Math)
Expand Down
2 changes: 1 addition & 1 deletion semantic/dist/components/api.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions semantic/dist/components/checkbox.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.2.13 - Checkbox
* # Semantic UI 2.5.0 - Checkbox
* http://github.com/semantic-org/semantic-ui/
*
*
Expand All @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down
2 changes: 1 addition & 1 deletion semantic/dist/components/checkbox.min.js

Large diffs are not rendered by default.

35 changes: 30 additions & 5 deletions semantic/dist/components/dimmer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* # Semantic UI 2.2.13 - Dimmer
* # Semantic UI 2.5.0 - Dimmer
* http://github.com/semantic-org/semantic-ui/
*
*
Expand All @@ -10,7 +10,7 @@

;(function ($, window, document, undefined) {

"use strict";
'use strict';

window = (typeof window != 'undefined' && window.Math == Math)
? window
Expand Down Expand Up @@ -83,7 +83,6 @@ $.fn.dimmer = function(parameters) {
else {
$dimmer = module.create();
}
module.set.variation();
}
},

Expand Down Expand Up @@ -152,12 +151,12 @@ $.fn.dimmer = function(parameters) {

event: {
click: function(event) {
module.verbose('Determining if event occured on dimmer', event);
module.verbose('Determining if event occurred on dimmer', event);
if( $dimmer.find(event.target).length === 0 || $(event.target).is(selector.content) ) {
module.hide();
event.stopImmediatePropagation();
}
}
},
},

addContent: function(element) {
Expand Down Expand Up @@ -190,6 +189,7 @@ $.fn.dimmer = function(parameters) {
: function(){}
;
module.debug('Showing dimmer', $dimmer, settings);
module.set.variation();
if( (!module.is.dimmed() || module.is.animating()) && module.is.enabled() ) {
module.animate.show(callback);
settings.onShow.call(element);
Expand Down Expand Up @@ -233,11 +233,22 @@ $.fn.dimmer = function(parameters) {
: function(){}
;
if(settings.useCSS && $.fn.transition !== undefined && $dimmer.transition('is supported')) {
if(settings.useFlex) {
module.debug('Using flex dimmer');
module.remove.legacy();
}
else {
module.debug('Using legacy non-flex dimmer');
module.set.legacy();
}
if(settings.opacity !== 'auto') {
module.set.opacity();
}
$dimmer
.transition({
displayType : settings.useFlex
? 'flex'
: 'block',
animation : settings.transition + ' in',
queue : false,
duration : module.get.duration(),
Expand Down Expand Up @@ -282,6 +293,9 @@ $.fn.dimmer = function(parameters) {
module.verbose('Hiding dimmer with css');
$dimmer
.transition({
displayType : settings.useFlex
? 'flex'
: 'block',
animation : settings.transition + ' out',
queue : false,
duration : module.get.duration(),
Expand All @@ -290,6 +304,7 @@ $.fn.dimmer = function(parameters) {
module.remove.dimmed();
},
onComplete : function() {
module.remove.variation();
module.remove.active();
callback();
}
Expand Down Expand Up @@ -403,6 +418,9 @@ $.fn.dimmer = function(parameters) {
module.debug('Setting opacity to', opacity);
$dimmer.css('background-color', color);
},
legacy: function() {
$dimmer.addClass(className.legacy);
},
active: function() {
$dimmer.addClass(className.active);
},
Expand Down Expand Up @@ -432,6 +450,9 @@ $.fn.dimmer = function(parameters) {
.removeClass(className.active)
;
},
legacy: function() {
$dimmer.removeClass(className.legacy);
},
dimmed: function() {
$dimmable.removeClass(className.dimmed);
},
Expand Down Expand Up @@ -645,6 +666,9 @@ $.fn.dimmer.settings = {
verbose : false,
performance : true,

// whether should use flex layout
useFlex : true,

// name to distinguish between multiple dimmers in context
dimmerName : false,

Expand Down Expand Up @@ -688,6 +712,7 @@ $.fn.dimmer.settings = {
dimmer : 'dimmer',
disabled : 'disabled',
hide : 'hide',
legacy : 'legacy',
pageDimmer : 'page',
show : 'show'
},
Expand Down
Loading

0 comments on commit 7b441b2

Please sign in to comment.