+
diff --git a/src/components/mdTabs/mdTabs.old.vue b/src/components/mdTabs/mdTabs.old.vue
new file mode 100644
index 0000000..09574c5
--- /dev/null
+++ b/src/components/mdTabs/mdTabs.old.vue
@@ -0,0 +1,211 @@
+
+
+
+
+
+
+
diff --git a/src/components/mdTabs/mdTabs.scss b/src/components/mdTabs/mdTabs.scss
index 768fff2..01af4a1 100644
--- a/src/components/mdTabs/mdTabs.scss
+++ b/src/components/mdTabs/mdTabs.scss
@@ -101,13 +101,13 @@ $tab-max-width: 264px;
.md-tabs-content {
width: 100%;
- height: 0;
+ //height: 0;
position: relative;
overflow: hidden;
transition: height $swift-ease-out-duration $swift-ease-out-timing-function;
}
- .md-tabs-wrapper {
+ /*.md-tabs-wrapper {
width: 9999em;
position: absolute;
top: 0;
@@ -116,16 +116,16 @@ $tab-max-width: 264px;
left: 0;
transform: translate3d(0, 0, 0);
transition: transform $swift-ease-out-duration $swift-ease-out-timing-function;
- }
+ }*/
.md-tab {
padding: 16px;
- position: absolute;
+ /* position: absolute;
top: 0;
left: 0;
- right: 0;
+ right: 0; */
pointer-events: none;
- transform: translate3d(0, -100%, 0);
+ //transform: translate3d(0, -100%, 0);
transition: transform 0s $swift-ease-out-duration;
&.md-active {
diff --git a/src/components/mdTabs/mdTabs.theme b/src/components/mdTabs/mdTabs.theme
index 56c623c..f62cbed 100644
--- a/src/components/mdTabs/mdTabs.theme
+++ b/src/components/mdTabs/mdTabs.theme
@@ -10,7 +10,7 @@
&.md-active,
&:focus {
- color: #{'PRIMARY-CONTRAST-0.99999'};
+ color: #{'PRIMARY-CONTRAST'};
}
&.md-disabled {
@@ -56,7 +56,7 @@
&.md-active,
&:focus {
- color: #{'ACCENT-CONTRAST-0.99999'};
+ color: #{'ACCENT-CONTRAST'};
}
&.md-disabled {
@@ -79,7 +79,7 @@
&.md-active,
&:focus {
- color: #{'WARN-CONTRAST-0.99999'};
+ color: #{'WARN-CONTRAST'};
}
&.md-disabled {
diff --git a/src/components/mdTabs/mdTabs.vue b/src/components/mdTabs/mdTabs.vue
index 3b10d86..1d9319f 100644
--- a/src/components/mdTabs/mdTabs.vue
+++ b/src/components/mdTabs/mdTabs.vue
@@ -1,24 +1,24 @@
-
-
+
+
-
+
@@ -33,6 +33,8 @@
diff --git a/src/core/utils/debounce.js b/src/core/utils/debounce.js
new file mode 100644
index 0000000..597397e
--- /dev/null
+++ b/src/core/utils/debounce.js
@@ -0,0 +1,13 @@
+const debounce = (callback, wait) => {
+ let timeout;
+
+ return (...args) => {
+ window.clearTimeout(timeout);
+ timeout = window.setTimeout(() => {
+ timeout = null;
+ callback.apply(this, args);
+ }, wait);
+ };
+};
+
+export default debounce;
diff --git a/src/core/utils/throttle.js b/src/core/utils/throttle.js
new file mode 100644
index 0000000..3ee224b
--- /dev/null
+++ b/src/core/utils/throttle.js
@@ -0,0 +1,16 @@
+const debounce = (callback, limit) => {
+ var wait = false;
+
+ return () => {
+ if (!wait) {
+ callback.call();
+ wait = true;
+
+ window.setTimeout(() => {
+ wait = false;
+ }, limit);
+ }
+ };
+};
+
+export default debounce;
diff --git a/src/core/utils/uniqueId.js b/src/core/utils/uniqueId.js
new file mode 100644
index 0000000..2033e5b
--- /dev/null
+++ b/src/core/utils/uniqueId.js
@@ -0,0 +1,5 @@
+const uniqueId = () => {
+ return Math.random().toString(36).slice(4);
+};
+
+export default uniqueId;