Skip to content

Commit

Permalink
Rebuild library
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfoucrier committed Feb 9, 2021
1 parent 3b05a08 commit 8296426
Show file tree
Hide file tree
Showing 27 changed files with 20 additions and 39 deletions.
2 changes: 1 addition & 1 deletion css/blocks/button-switch.postcss.css.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"button-switch":"_button-switch_1g5lg_4","icon":"_icon_1g5lg_8"}
{"button-switch":"_button-switch_1putg_4","icon":"_icon_1putg_8"}
2 changes: 1 addition & 1 deletion css/blocks/button.postcss.css.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"button":"_button_r3ni6_4","button__ripple":"_button__ripple_r3ni6_1"}
{"button":"_button_wb9ek_4","button__ripple":"_button__ripple_wb9ek_1"}
2 changes: 1 addition & 1 deletion css/blocks/hide-button.postcss.css.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"hide-button":"_hide-button_1hqr2_4","hide-button__icon":"_hide-button__icon_1hqr2_1","is-hidden":"_is-hidden_1hqr2_24"}
{"hide-button":"_hide-button_aiv1o_4","hide-button__icon":"_hide-button__icon_aiv1o_1","is-hidden":"_is-hidden_aiv1o_24"}
2 changes: 1 addition & 1 deletion css/blocks/icon-button.postcss.css.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"icon-button":"_icon-button_1yshr_4","icon":"_icon_1yshr_4"}
{"icon-button":"_icon-button_qglug_4","icon":"_icon_qglug_4"}
2 changes: 1 addition & 1 deletion css/blocks/icon-fork.postcss.css.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"icon-fork":"_icon-fork_csg7t_4","icon":"_icon_csg7t_4","is-on":"_is-on_csg7t_18"}
{"icon-fork":"_icon-fork_1n6j9_4","icon":"_icon_1n6j9_4","is-on":"_is-on_1n6j9_18"}
2 changes: 1 addition & 1 deletion css/blocks/icon.postcss.css.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"icon":"_icon_y498a_5","is-x2":"_is-x2_y498a_33"}
{"icon":"_icon_if24v_5","is-x2":"_is-x2_if24v_33"}
2 changes: 1 addition & 1 deletion css/blocks/player-slider.postcss.css.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"player-slider":"_player-slider_1t00q_6","slider":"_slider_1t00q_15"}
{"player-slider":"_player-slider_1h9vh_6","slider":"_slider_1h9vh_15"}
2 changes: 1 addition & 1 deletion css/blocks/repeat-button.postcss.css.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"repeat-button":"_repeat-button_1ce74_4"}
{"repeat-button":"_repeat-button_xhfpi_4"}
2 changes: 1 addition & 1 deletion css/blocks/slider.postcss.css.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"slider":"_slider_14t9x_6","slider__inner":"_slider__inner_14t9x_1","handle":"_handle_14t9x_17","progress-handle":"_progress-handle_14t9x_18","track":"_track_14t9x_30","is-y":"_is-y_14t9x_34"}
{"slider":"_slider_1e5my_6","slider__inner":"_slider__inner_1e5my_1","handle":"_handle_1e5my_17","progress-handle":"_progress-handle_1e5my_18","track":"_track_1e5my_30","is-y":"_is-y_1e5my_34"}
1 change: 0 additions & 1 deletion lib/components/bounds-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ var BoundsButton = function (_RepeatButton) {
@private
@overrides @ RepeatButton
*/

BoundsButton.prototype._declareDefaults = function _declareDefaults() {
_RepeatButton.prototype._declareDefaults.call(this);
this._defaults.icon = 'bounds';
Expand Down
7 changes: 3 additions & 4 deletions lib/components/button-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ var ButtonSwitch = function (_Button) {
@private
@overrides @ Button
*/

ButtonSwitch.prototype._declareDefaults = function _declareDefaults() {
_Button.prototype._declareDefaults.call(this);
this._defaults.isOn = false;
Expand All @@ -50,7 +49,7 @@ var ButtonSwitch = function (_Button) {


ButtonSwitch.prototype.on = function on() {
var isCallback = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0];
var isCallback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;

// set to true because the next step is toggle
this._props.isOn = true;
Expand All @@ -64,7 +63,7 @@ var ButtonSwitch = function (_Button) {


ButtonSwitch.prototype.off = function off() {
var isCallback = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0];
var isCallback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;

// set to true because the next step is toggle
this._props.isOn = false;
Expand Down Expand Up @@ -122,7 +121,7 @@ var ButtonSwitch = function (_Button) {


ButtonSwitch.prototype._reactOnStateChange = function _reactOnStateChange() {
var isCallback = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0];
var isCallback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;

if (isCallback) {
this._callIfFunction(this._props.onStateChange, this._props.isOn);
Expand Down
1 change: 0 additions & 1 deletion lib/components/button.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ var Button = function (_Module) {
@private
@overrides @ Module
*/

Button.prototype._declareDefaults = function _declareDefaults() {
_Module.prototype._declareDefaults.call(this);
this._defaults.link = null;
Expand Down
5 changes: 2 additions & 3 deletions lib/components/handle.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ var Handle = function (_Module) {
@private
@overrides @ Module
*/

Handle.prototype._declareDefaults = function _declareDefaults() {
_Module.prototype._declareDefaults.call(this);
this._defaults.minBound = 0;
Expand All @@ -64,7 +63,7 @@ var Handle = function (_Module) {


Handle.prototype.setProgress = function setProgress(progress) {
var isCallback = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1];
var isCallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

var shift = this._progressToShift(progress);
this._setShift(shift, isCallback);
Expand Down Expand Up @@ -142,7 +141,7 @@ var Handle = function (_Module) {


Handle.prototype._setShift = function _setShift(shift) {
var isCallback = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1];
var isCallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;

var p = this._props,
minBound = p.minBound * this._maxWidth,
Expand Down
1 change: 0 additions & 1 deletion lib/components/icon-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ var IconButton = function (_Button) {
@private
@overrides @ Button
*/

IconButton.prototype._declareDefaults = function _declareDefaults() {
_Button.prototype._declareDefaults.call(this);
this._defaults.icon = '';
Expand Down
1 change: 0 additions & 1 deletion lib/components/icon-fork.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ var IconFork = function (_ButtonSwitch) {
@overrides @ Icon
@returns this
*/

IconFork.prototype._render = function _render() {
_ButtonSwitch.prototype._render.call(this);
this.el.classList.add(CLASSES['icon-fork']);
Expand Down
1 change: 0 additions & 1 deletion lib/components/icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ var Icon = function (_Module) {
@private
@overrides @ Module
*/

Icon.prototype._declareDefaults = function _declareDefaults() {
_Module.prototype._declareDefaults.call(this);
this._defaults.shape = '';
Expand Down
1 change: 0 additions & 1 deletion lib/components/icons.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion lib/components/label-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ var LabelButton = function (_ButtonSwitch) {
@private
@overrides @ OpacitySwitch
*/

LabelButton.prototype._declareDefaults = function _declareDefaults() {
_ButtonSwitch.prototype._declareDefaults.call(this);
this._defaults.title = 'speed (reset: alt + 1)';
Expand Down
6 changes: 2 additions & 4 deletions lib/components/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,12 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
Base class for all modules.
Extends _defaults to _props
*/

var Module = function () {
/*
constructor method calls scaffolding methods.
*/

function Module() {
var o = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
var o = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
(0, _classCallCheck3.default)(this, Module);

this._o = o;
Expand Down Expand Up @@ -127,7 +125,7 @@ var Module = function () {


Module.prototype._addMainElement = function _addMainElement() {
var tagName = arguments.length <= 0 || arguments[0] === undefined ? 'div' : arguments[0];
var tagName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'div';

var p = this._props;

Expand Down
1 change: 0 additions & 1 deletion lib/components/opacity-switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ var OpacitySwitch = function (_ButtonSwitch) {
@private
@overrides @ ButtonSwitch
*/

OpacitySwitch.prototype._declareDefaults = function _declareDefaults() {
_ButtonSwitch.prototype._declareDefaults.call(this);
this._defaults.icon = '';
Expand Down
1 change: 0 additions & 1 deletion lib/components/play-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ var PlayButton = function (_IconFork) {
@private
@overrides @ ButtonSwitch
*/

PlayButton.prototype._declareDefaults = function _declareDefaults() {
_IconFork.prototype._declareDefaults.call(this);
this._defaults.icon1 = 'pause';
Expand Down
5 changes: 2 additions & 3 deletions lib/components/player-slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ var PlayerSlider = function (_Module) {
@private
@overrides @ Module
*/

PlayerSlider.prototype._declareDefaults = function _declareDefaults() {
this._defaults = {
className: CLASSES['player-slider'],
Expand Down Expand Up @@ -105,7 +104,7 @@ var PlayerSlider = function (_Module) {


PlayerSlider.prototype.decreaseProgress = function decreaseProgress() {
var amount = arguments.length <= 0 || arguments[0] === undefined ? 0.01 : arguments[0];
var amount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0.01;

var progress = this.track._progress;
progress -= amount;
Expand All @@ -122,7 +121,7 @@ var PlayerSlider = function (_Module) {


PlayerSlider.prototype.increaseProgress = function increaseProgress() {
var amount = arguments.length <= 0 || arguments[0] === undefined ? 0.01 : arguments[0];
var amount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0.01;

var progress = this.track._progress;
progress += amount;
Expand Down
1 change: 0 additions & 1 deletion lib/components/repeat-button.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ var RepeatButton = function (_OpacitySwitch) {
@private
@overrides @ OpacitySwitch
*/

RepeatButton.prototype._declareDefaults = function _declareDefaults() {
_OpacitySwitch.prototype._declareDefaults.call(this);
this._defaults.icon = 'repeat';
Expand Down
1 change: 0 additions & 1 deletion lib/components/ripple.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ var Ripple = function (_Module) {
@private
@overrides @ Module.
*/

Ripple.prototype._declareDefaults = function _declareDefaults() {
_Module.prototype._declareDefaults.call(this);
this._defaults.withHold = true;
Expand Down
1 change: 0 additions & 1 deletion lib/components/slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ var Slider = function (_Module) {
@private
@overrides @ Module
*/

Slider.prototype._declareDefaults = function _declareDefaults() {
this._defaults = {
className: '',
Expand Down
5 changes: 2 additions & 3 deletions lib/components/speed-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ var SpeedControl = function (_Module) {
@private
@overrides @ Module
*/

SpeedControl.prototype._declareDefaults = function _declareDefaults() {
_Module.prototype._declareDefaults.call(this);
this._defaults.isOn = false;
Expand Down Expand Up @@ -72,7 +71,7 @@ var SpeedControl = function (_Module) {


SpeedControl.prototype.decreaseSpeed = function decreaseSpeed() {
var amount = arguments.length <= 0 || arguments[0] === undefined ? 0.01 : arguments[0];
var amount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0.01;

var p = this._props;
p.progress -= amount;
Expand All @@ -89,7 +88,7 @@ var SpeedControl = function (_Module) {


SpeedControl.prototype.increaseSpeed = function increaseSpeed() {
var amount = arguments.length <= 0 || arguments[0] === undefined ? 0.01 : arguments[0];
var amount = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0.01;

var p = this._props;
p.progress += amount;
Expand Down
1 change: 0 additions & 1 deletion lib/components/track.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ var Track = function (_Handle) {
@private
@overrides @ Handle
*/

Track.prototype._declareDefaults = function _declareDefaults() {
_Handle.prototype._declareDefaults.call(this);
this._defaults.isProgress = true;
Expand Down

0 comments on commit 8296426

Please sign in to comment.