toggle-components-library 1.36.3-beta.3 → 1.36.4-beta.0
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.
- package/dist/toggle-components-library.common.js +176 -279
- package/dist/toggle-components-library.common.js.map +1 -1
- package/dist/toggle-components-library.css +1 -1
- package/dist/toggle-components-library.umd.js +176 -279
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +19 -19
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/buttons/ToggleLoginButton.vue +34 -7
- package/src/components/forms/ToggleDatePicker.vue +1 -1
- package/src/components/forms/ToggleInputCurrency.vue +3 -10
- package/src/components/forms/ToggleInputNumber.vue +2 -8
- package/src/components/forms/ToggleInputPercentage.vue +1 -7
- package/src/components/forms/ToggleInputText.vue +7 -5
- package/src/index.js +0 -3
- package/src/sass/includes/_as_buttons.scss +21 -0
- package/src/sass/includes/_as_inputs.scss +0 -5
- package/src/sass/includes/_as_table.scss +4 -0
- package/src/sass/main.scss +0 -1
- package/package-lock.json +0 -20279
- package/src/components/statusbar/ToggleStatusBar.vue +0 -74
- package/src/sass/includes/_as_statusbar.scss +0 -183
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="toggle-button-container toggle-button-container--login"
|
|
3
|
-
|
|
4
|
-
<button :type="type" :class="['toggle-login-button', { 'toggle-login-button--airship': platform == 'airship' }, { 'toggle-login-button--loading': platform == 'toggle' && loading }, { 'toggle-login-button--airship-loading': platform == 'airship' && loading }]" @click="click"
|
|
5
|
-
:disabled="(loading || disabled)">
|
|
2
|
+
<div class="toggle-button-container toggle-button-container--login"
|
|
3
|
+
:class="{'toggle-button-container--fluid': btnFluid}">
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
<button :type="type" :class="buttonClasses" @click="click" :disabled="(loading || disabled)">
|
|
6
|
+
|
|
7
|
+
<div :class="loaderClasses" v-if="loading"></div>
|
|
8
8
|
|
|
9
9
|
<div class="toggle-login-button-text" v-else>
|
|
10
10
|
{{ buttonText }}
|
|
@@ -42,13 +42,13 @@ export default {
|
|
|
42
42
|
default: false
|
|
43
43
|
},
|
|
44
44
|
/**
|
|
45
|
-
* Is the button being used on toggle or airship? use `toggle` or `airship`
|
|
45
|
+
* Is the button being used on toggle or airship? use `toggle` or `airship` or for Airships new rebranding `airship-atmosphere`
|
|
46
46
|
*/
|
|
47
47
|
platform: {
|
|
48
48
|
type: String,
|
|
49
49
|
default: "toggle",
|
|
50
50
|
validator: function (value) {
|
|
51
|
-
return ['toggle', 'airship'].indexOf(value) !== -1;
|
|
51
|
+
return ['toggle', 'airship', 'airship-atmosphere'].indexOf(value) !== -1;
|
|
52
52
|
},
|
|
53
53
|
},
|
|
54
54
|
/**
|
|
@@ -77,6 +77,33 @@ export default {
|
|
|
77
77
|
*/
|
|
78
78
|
this.$emit('click');
|
|
79
79
|
}
|
|
80
|
+
},
|
|
81
|
+
computed: {
|
|
82
|
+
/**
|
|
83
|
+
* The class to apply to the button
|
|
84
|
+
* @return {Object}
|
|
85
|
+
*/
|
|
86
|
+
buttonClasses() {
|
|
87
|
+
return {
|
|
88
|
+
'toggle-login-button': true,
|
|
89
|
+
'toggle-login-button--airship': this.platform == 'airship',
|
|
90
|
+
'toggle-login-button--loading': this.platform == 'toggle' && this.loading,
|
|
91
|
+
'toggle-login-button--airship-loading': this.platform == 'airship' && this.loading,
|
|
92
|
+
'toggle-login-button--airship-atmosphere': this.platform == 'airship-atmosphere',
|
|
93
|
+
'toggle-login-button--airship-atmosphere-loading': this.platform == 'airship-atmosphere' && this.loading
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
* The class to apply to the loader
|
|
98
|
+
* @return {Object}
|
|
99
|
+
*/
|
|
100
|
+
loaderClasses() {
|
|
101
|
+
return {
|
|
102
|
+
'toggle-login-button-loader': true,
|
|
103
|
+
'toggle-login-button-loader--airship': this.platform == 'airship',
|
|
104
|
+
'toggle-login-button-loader--airship-atmosphere': this.platform == 'airship-atmosphere'
|
|
105
|
+
}
|
|
106
|
+
}
|
|
80
107
|
}
|
|
81
108
|
}
|
|
82
109
|
</script>
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
<div class="toggle-input-container" :class="{'toggle-input-is-invalid':isInvalid
|
|
7
|
-
|
|
6
|
+
<div class="toggle-input-container" :class="{'toggle-input-is-invalid':isInvalid }" v-on:click="focusClosestInput">
|
|
8
7
|
<label
|
|
9
8
|
v-if="label"
|
|
10
9
|
:for="name ? name : 'InputText' "
|
|
@@ -17,7 +16,6 @@
|
|
|
17
16
|
:placeholder="placeholder ? placeholder : '' "
|
|
18
17
|
:autocomplete="autocomplete ? 'on' : 'off' "
|
|
19
18
|
:required="required"
|
|
20
|
-
:disabled="disabled"
|
|
21
19
|
v-model="inputVal"
|
|
22
20
|
@blur="isInputActive = false"
|
|
23
21
|
@focus="isInputActive = true"
|
|
@@ -93,13 +91,8 @@ export default {
|
|
|
93
91
|
currencyDenomination: {
|
|
94
92
|
type: Number,
|
|
95
93
|
default: 100
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
type: Boolean,
|
|
99
|
-
required: false,
|
|
100
|
-
default: false
|
|
101
|
-
|
|
102
|
-
},
|
|
94
|
+
}
|
|
95
|
+
|
|
103
96
|
},
|
|
104
97
|
|
|
105
98
|
created : function(){
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
<div class="toggle-input-container" :class="{'toggle-input-is-invalid':isInvalid
|
|
6
|
+
<div class="toggle-input-container" :class="{'toggle-input-is-invalid':isInvalid }" v-on:click="focusClosestInput">
|
|
7
7
|
<label
|
|
8
8
|
v-if="label"
|
|
9
9
|
:for="name ? name : 'ToggleInputNumber' "
|
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
@blur="isInputActive = false"
|
|
21
21
|
@focus="isInputActive = true"
|
|
22
22
|
:pattern="pattern"
|
|
23
|
-
:disabled="disabled"
|
|
24
23
|
/>
|
|
25
24
|
<label
|
|
26
25
|
class="toggle-input-label-error"
|
|
@@ -91,12 +90,7 @@ export default {
|
|
|
91
90
|
pattern: {
|
|
92
91
|
type:String,
|
|
93
92
|
default:"\\d*"
|
|
94
|
-
}
|
|
95
|
-
disabled: {
|
|
96
|
-
type: Boolean,
|
|
97
|
-
required: false,
|
|
98
|
-
default: false
|
|
99
|
-
},
|
|
93
|
+
}
|
|
100
94
|
},
|
|
101
95
|
|
|
102
96
|
created : function(){
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
|
|
3
|
-
<div class="toggle-input-container" :class="{'toggle-input-is-invalid':isInvalid
|
|
3
|
+
<div class="toggle-input-container" :class="{'toggle-input-is-invalid':isInvalid }" v-on:click="focusClosestInput">
|
|
4
4
|
|
|
5
5
|
<label
|
|
6
6
|
v-if="label"
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
:placeholder="placeholder ? placeholder : '' "
|
|
15
15
|
:autocomplete="autocomplete ? 'on' : 'off' "
|
|
16
16
|
:required="required"
|
|
17
|
-
:disabled="disabled"
|
|
18
17
|
v-model="inputVal"
|
|
19
18
|
@blur="isInputActive = false"
|
|
20
19
|
@focus="isInputActive = true"
|
|
@@ -78,11 +77,6 @@ export default {
|
|
|
78
77
|
allowFloat: {
|
|
79
78
|
type: Boolean,
|
|
80
79
|
default: false
|
|
81
|
-
},
|
|
82
|
-
disabled: {
|
|
83
|
-
type: Boolean,
|
|
84
|
-
required: false,
|
|
85
|
-
default: false
|
|
86
80
|
}
|
|
87
81
|
},
|
|
88
82
|
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
|
|
3
3
|
<div class="toggle-input-container" :class="{'toggle-input-is-invalid':isInvalid, 'toggle-input-is-disabled':disabled}" v-on:click="focusClosestInput">
|
|
4
|
-
<label
|
|
4
|
+
<label
|
|
5
5
|
v-if="label"
|
|
6
|
-
:for="name ? name : 'InputText' "
|
|
6
|
+
:for="name ? name : 'InputText' "
|
|
7
7
|
class="toggle-input-label"
|
|
8
|
-
> {{ label }}
|
|
8
|
+
> {{ label }}
|
|
9
9
|
</label>
|
|
10
10
|
<span class="toggle-input-counter" v-if="maxLength">{{messageLength(inputVal, maxLength)}}</span>
|
|
11
11
|
<input
|
|
12
12
|
:type="type"
|
|
13
|
-
:name="name ? name : 'ToggleInputText' "
|
|
13
|
+
:name="name ? name : 'ToggleInputText' "
|
|
14
14
|
:class="[ 'toggle-input', size]"
|
|
15
15
|
:placeholder="placeholder ? placeholder : '' "
|
|
16
16
|
:autocomplete="autocomplete ? 'on' : 'off' "
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
:readonly="readonly"
|
|
22
22
|
/>
|
|
23
23
|
<label
|
|
24
|
-
class="toggle-input-label-error"
|
|
24
|
+
class="toggle-input-label-error"
|
|
25
25
|
v-if="isInvalid"
|
|
26
26
|
:for="name ? name : 'ToggleInputText' "
|
|
27
27
|
>
|
|
@@ -103,6 +103,8 @@ export default {
|
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
|
|
106
|
+
created : function(){
|
|
107
|
+
},
|
|
106
108
|
computed: {
|
|
107
109
|
inputVal: {
|
|
108
110
|
get: function (){
|
package/src/index.js
CHANGED
|
@@ -82,8 +82,6 @@ import ToggleMetricFunnelChart from "./components/metrics/ToggleMetricFunnelChar
|
|
|
82
82
|
import ToggleThreeDots from "./components/threedots/ToggleThreeDots.vue";
|
|
83
83
|
import ToggleThreeDotsButton from "./components/threedots/ToggleThreeDotsButton.vue";
|
|
84
84
|
|
|
85
|
-
import ToggleStatusBar from "./components/statusbar/ToggleStatusBar.vue";
|
|
86
|
-
|
|
87
85
|
import ToggleCarousel from "./components/carousel/ToggleCarousel.vue";
|
|
88
86
|
import ToggleCarouselSlide from "./components/carousel/ToggleCarouselSlide.vue";
|
|
89
87
|
|
|
@@ -159,7 +157,6 @@ const Components = {
|
|
|
159
157
|
ToggleBoosterBasicButton,
|
|
160
158
|
ToggleBoosterModal,
|
|
161
159
|
ToggleContactSearch,
|
|
162
|
-
ToggleStatusBar,
|
|
163
160
|
ToggleCarousel,
|
|
164
161
|
ToggleCarouselSlide,
|
|
165
162
|
ToggleEmailCard,
|
|
@@ -304,12 +304,27 @@
|
|
|
304
304
|
background-color: #ed9598;
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
+
&--airship-atmosphere {
|
|
308
|
+
background: transparent linear-gradient(112deg, #BD38DF 0%, #5F1C70 100%) 0% 0% no-repeat padding-box;
|
|
309
|
+
|
|
310
|
+
&:hover:not(:disabled) {
|
|
311
|
+
background-color: #5F1C70;
|
|
312
|
+
box-shadow: 0 10px 30px -10px rgba(190, 58, 223, 0.5);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
&:disabled, &[disabled] {
|
|
316
|
+
background: transparent linear-gradient(112deg, rgba(190, 58, 223, 0.6) 0%, rgba(94, 28, 110, 0.6) 100%) 0% 0% no-repeat padding-box;
|
|
317
|
+
}
|
|
318
|
+
}
|
|
307
319
|
&--loading{
|
|
308
320
|
background-color: #3180FF !important;
|
|
309
321
|
}
|
|
310
322
|
&--airship-loading{
|
|
311
323
|
background-color: #FF7175 !important;
|
|
312
324
|
}
|
|
325
|
+
&--airship-atmosphere-loading{
|
|
326
|
+
background: transparent linear-gradient(112deg, #BD38DF 0%, #5F1C70 100%) 0% 0% no-repeat padding-box !important;
|
|
327
|
+
}
|
|
313
328
|
}
|
|
314
329
|
|
|
315
330
|
|
|
@@ -328,6 +343,12 @@
|
|
|
328
343
|
top: 50%;
|
|
329
344
|
margin-top: -0.5rem;
|
|
330
345
|
box-sizing: content-box;
|
|
346
|
+
&--airship {
|
|
347
|
+
border-top-color: #FF7175;
|
|
348
|
+
}
|
|
349
|
+
&--airship-atmosphere {
|
|
350
|
+
border-top-color: transparent;
|
|
351
|
+
}
|
|
331
352
|
}
|
|
332
353
|
|
|
333
354
|
.toggle-metrics-button {
|
|
@@ -65,6 +65,7 @@ table.toggle-table {
|
|
|
65
65
|
|
|
66
66
|
select {
|
|
67
67
|
border: none;
|
|
68
|
+
background-color: #FFF;
|
|
68
69
|
font-size: 11.5px;
|
|
69
70
|
font-weight: bold;
|
|
70
71
|
color: #575757;
|
|
@@ -73,6 +74,9 @@ table.toggle-table {
|
|
|
73
74
|
-moz-appearance: none;
|
|
74
75
|
text-indent: 1px;
|
|
75
76
|
text-overflow: '';
|
|
77
|
+
|
|
78
|
+
background: url(/img/icons/arrow-down-blue-tiny.svg) center right no-repeat;
|
|
79
|
+
background-size: 15px;
|
|
76
80
|
padding : 0.5rem 0rem 0.5rem 1rem;
|
|
77
81
|
}
|
|
78
82
|
}
|
package/src/sass/main.scss
CHANGED