toggle-components-library 1.25.12 → 1.25.14

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.
@@ -0,0 +1,75 @@
1
+ <template>
2
+ <div class="toggle-button-container toggle-button-container--login" :class="{'toggle-button-container--fluid': btnFluid}">
3
+
4
+ <button :type="type" :class="['toggle-login-button', { 'toggle-login-button--airship': platform == 'airship' }]" @click="click">
5
+
6
+ <div :class="['toggle-login-button-loader', { 'toggle-login-button-loader--airship': platform == 'airship' }]" v-if="loading"></div>
7
+
8
+ <div class="toggle-login-button-text" v-else>
9
+ {{ buttonText }}
10
+ </div>
11
+
12
+ </button>
13
+
14
+ </div>
15
+ </template>
16
+
17
+ <script>
18
+
19
+ export default {
20
+ name: 'ButtonLogin',
21
+ props: {
22
+ /**
23
+ * The test to display in side the button
24
+ */
25
+ buttonText: {
26
+ type: String,
27
+ default: "Let's go!"
28
+ },
29
+ /**
30
+ * The HTML button type i.e. `submit` or `button`
31
+ */
32
+ type: {
33
+ type: String,
34
+ default: "submit"
35
+ },
36
+ /**
37
+ * Is the button in a loading state?
38
+ */
39
+ loading: {
40
+ type: Boolean,
41
+ default: false
42
+ },
43
+ /**
44
+ * Is the button being used on toggle or airship? use `toggle` or `airship`
45
+ */
46
+ platform: {
47
+ type: String,
48
+ default: "toggle",
49
+ validator: function (value) {
50
+ return ['toggle', 'airship'].indexOf(value) !== -1;
51
+ },
52
+ },
53
+ /**
54
+ * Is the button being used on toggle or airship? use `toggle` or `airship`
55
+ */
56
+ btnFluid: {
57
+ type: Boolean,
58
+ default: false,
59
+ validator: function (value) {
60
+ return [true, false].indexOf(value) !== -1;
61
+ },
62
+ }
63
+ },
64
+ methods: {
65
+ click() {
66
+ /**
67
+ * Emitted when the button is clicked.
68
+ * @event click
69
+ * @type {Event}
70
+ */
71
+ this.$emit('click');
72
+ }
73
+ }
74
+ }
75
+ </script>
@@ -18,7 +18,17 @@
18
18
  .toggle-button-container{
19
19
  background:white;
20
20
  display: inline-block;
21
+
21
22
  border-radius: 0.3rem;
23
+ &--login{
24
+ border-radius: 23px;
25
+ }
26
+ &--fluid{
27
+ width: 100%;
28
+ button{
29
+ width: 100%;
30
+ }
31
+ }
22
32
  }
23
33
 
24
34
 
@@ -135,7 +145,7 @@
135
145
  background-image: url("../assets/icons/delete-grey.svg");
136
146
  }
137
147
 
138
- // Neutral Button styls
148
+ // Neutral Button styles
139
149
  .toggle-button.neutral, .toggle-button-a.neutral a{
140
150
  color: $toggle-button-neutral;
141
151
  border-color: $toggle-button-neutral;
@@ -147,6 +157,10 @@
147
157
  .toggle-button.neutral:disabled, .toggle-button-a.disabled a{
148
158
  }
149
159
 
160
+
161
+
162
+
163
+
150
164
  // Mini buttons
151
165
  //
152
166
  .toggle-button-container-mini{
@@ -237,3 +251,77 @@
237
251
  }
238
252
 
239
253
  }
254
+
255
+ //
256
+ // Toggle and Airship Login Buttons
257
+ //
258
+
259
+ .toggle-login-button {
260
+ background-color: #3180FF;
261
+ border: 0;
262
+ border-radius: 23px;
263
+ width: 120px;
264
+ height: 46px;
265
+ color: #ffffff;
266
+ cursor: pointer;
267
+ font: normal normal 600 15px/18px Lato;
268
+ position: relative;
269
+ transition: box-shadow .3s, transform .3s, background-color .3s, -webkit-transform .3s;
270
+ }
271
+
272
+ .toggle-login-button--airship {
273
+ background-color: #FF7175 !important;
274
+ }
275
+
276
+ .toggle-login-button:hover {
277
+ background-color: #1571dd;
278
+ box-shadow: 0 10px 30px -10px #2cc1ff;
279
+ -webkit-transform: translate(0, -3px);
280
+ -ms-transform: translate(0, -3px);
281
+ transform: translate(0, -3px);
282
+ color: #fff;
283
+ }
284
+
285
+ .toggle-login-button--airship:hover {
286
+ background-color: #ff463f !important;
287
+ box-shadow: 0 10px 30px -10px rgb(254 108 102 / 50%) !important;
288
+ }
289
+
290
+ .toggle-login-button-loader {
291
+ border-radius: 50%;
292
+ border: .25rem solid #fff;
293
+ border-top-color: #3180FF;
294
+ animation: spin 1s infinite linear;
295
+ margin: 0 auto;
296
+ width: 0.5rem;
297
+ height: 0.5rem;
298
+ position: absolute;
299
+ left: 50%;
300
+ margin-left: -0.5rem;
301
+ top: 50%;
302
+ margin-top: -0.5rem;
303
+ box-sizing: content-box;
304
+ }
305
+
306
+ .toggle-login-button-loader--airship {
307
+ border-top-color: #FF7175;
308
+ }
309
+
310
+ .toggle-button-container{
311
+ &:disabled, &[disabled]{
312
+ .toggle-login-button{
313
+ background-color: #d4e4ff;
314
+ cursor: not-allowed;
315
+ -webkit-transform: translate(0, 0);
316
+ -ms-transform: translate(0, 0);
317
+ transform: translate(0, 0);
318
+ }
319
+ .toggle-login-button--airship{
320
+ background-color: #ed9598 !important;
321
+ cursor: not-allowed;
322
+ -webkit-transform: translate(0, 0);
323
+ -ms-transform: translate(0, 0);
324
+ transform: translate(0, 0);
325
+ }
326
+ }
327
+ }
@@ -131,6 +131,13 @@ table.toggle-table {
131
131
  border-top-right-radius: 10px;
132
132
  border-bottom-right-radius: 10px;
133
133
  }
134
+ td.toggle-tablee-td {
135
+ .toggle-button {
136
+ &.neutral {
137
+ padding: 0.2rem 0.9rem 0.2rem 0.9rem;
138
+ }
139
+ }
140
+ }
134
141
 
135
142
  }
136
143