@vuesimple/vs-button 1.4.18 → 3.0.1

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/README.md CHANGED
@@ -29,10 +29,6 @@ Code Sandbox: [Link](https://codesandbox.io/s/vs-button-w8x1m)
29
29
  npm i @vuesimple/vs-button
30
30
  ```
31
31
 
32
- ```bash
33
- yarn add @vuesimple/vs-button
34
- ```
35
-
36
32
  <br />
37
33
 
38
34
  ### 🚀 Usage
@@ -62,6 +58,11 @@ yarn add @vuesimple/vs-button
62
58
  <script src="https://unpkg.com/@vuesimple/vs-button@<version>/dist/vs-button.min.js"></script>
63
59
  ```
64
60
 
61
+ ```javascript
62
+ // Main/Entry file
63
+ app.use(VsButton);
64
+ ```
65
+
65
66
  ```html
66
67
  <template>
67
68
  <vs-button>Default</vs-button>
@@ -0,0 +1,33 @@
1
+ import vue from '@vitejs/plugin-vue';
2
+ import VitePluginStyleInject from 'vite-plugin-style-inject';
3
+
4
+ export default {
5
+ plugins: [vue(), VitePluginStyleInject()],
6
+ build: {
7
+ // separate css file or not
8
+ cssCodeSplit: false,
9
+ lib: {
10
+ entry: './src/index.js',
11
+ formats: ['es', 'umd', 'iife'],
12
+ name: 'VsButton',
13
+ fileName: format => {
14
+ if (format === 'es') {
15
+ return 'index.js';
16
+ }
17
+ if (format === 'umd') {
18
+ return 'index.umd.min.js';
19
+ }
20
+ return 'index.min.js';
21
+ },
22
+ },
23
+ rollupOptions: {
24
+ // Not to bundle vue core in this plugin
25
+ external: ['vue'],
26
+ output: {
27
+ globals: {
28
+ vue: 'Vue',
29
+ },
30
+ },
31
+ },
32
+ },
33
+ };
package/dist/index.js ADDED
@@ -0,0 +1,163 @@
1
+ (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode("@-webkit-keyframes v-pulseStretchDelay{0%,80%{-webkit-transform:scale(1);transform:scale(1);-webkit-opacity:1;opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);-webkit-opacity:.7;opacity:.7}}@keyframes v-pulseStretchDelay{0%,80%{-webkit-transform:scale(1);transform:scale(1);-webkit-opacity:1;opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);-webkit-opacity:.7;opacity:.7}}.vs-button{border-radius:4px;font-weight:400;box-sizing:border-box;user-select:none;padding:0 1.07143em;display:inline-flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;transition:border-color .25s ease-in-out 0s,box-shadow .1s ease-in-out 0s,background-color .25s ease-in-out 0s,color .25s ease-in-out 0s;margin:0;cursor:pointer;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;position:relative}.vs-button .vs-loader{display:flex;align-items:center;justify-content:center}.vs-button.vs-button--small{height:32px;line-height:30px;font-size:12px}.vs-button.vs-button--medium{height:40px;line-height:38px;font-size:14px}.vs-button.vs-button--large{height:48px;line-height:46px;font-size:14px}.vs-button.vs-button--round{border-radius:50px}.vs-button.vs-button__primary,.vs-button.vs-button__primary:hover,.vs-button.vs-button__primary:focus{background:transparent;color:#1f73b7;border:solid 1px #1f73b7}.vs-button.vs-button__primary:hover,.vs-button.vs-button__primary:hover:hover,.vs-button.vs-button__primary:focus:hover{border-color:#18588b;background:#f2f8fd;color:#18588b}.vs-button.vs-button__primary:active,.vs-button.vs-button__primary:hover:active,.vs-button.vs-button__primary:focus:active{border-color:#103c60;background:#dcecf9;color:#103c60}.vs-button.vs-button__primary:focus-visible,.vs-button.vs-button__primary:hover:focus-visible,.vs-button.vs-button__primary:focus:focus-visible{border-color:#18588b;box-shadow:0 0 0 .2rem #85bdea;outline:0}.vs-button.vs-button__primary:disabled,.vs-button.vs-button__primary.vs-button--loading,.vs-button.vs-button__primary:hover:disabled,.vs-button.vs-button__primary:hover.vs-button--loading,.vs-button.vs-button__primary:focus:disabled,.vs-button.vs-button__primary:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__primary-fill,.vs-button.vs-button__primary-fill:focus{background:#1f73b7;color:#fff;border:solid 1px #1f73b7}.vs-button.vs-button__primary-fill:hover,.vs-button.vs-button__primary-fill:focus:hover{border-color:#18588b;background:#18588b}.vs-button.vs-button__primary-fill:active,.vs-button.vs-button__primary-fill:focus:active{border-color:#103c60;background:#144a76}.vs-button.vs-button__primary-fill:focus-visible,.vs-button.vs-button__primary-fill:focus:focus-visible{border-color:#18588b;box-shadow:0 0 0 .2rem #85bdea;outline:0}.vs-button.vs-button__primary-fill:disabled,.vs-button.vs-button__primary-fill.vs-button--loading,.vs-button.vs-button__primary-fill:focus:disabled,.vs-button.vs-button__primary-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__success,.vs-button.vs-button__success:hover,.vs-button.vs-button__success:focus{background:transparent;color:#28a745;border:solid 1px #28a745}.vs-button.vs-button__success:hover,.vs-button.vs-button__success:hover:hover,.vs-button.vs-button__success:focus:hover{border-color:#1e7e34;background:#edfbf0;color:#1e7e34}.vs-button.vs-button__success:active,.vs-button.vs-button__success:hover:active,.vs-button.vs-button__success:focus:active{border-color:#145523;background:#d8f6df;color:#145523}.vs-button.vs-button__success:focus-visible,.vs-button.vs-button__success:hover:focus-visible,.vs-button.vs-button__success:focus:focus-visible{border-color:#1e7e34;box-shadow:0 0 0 .2rem #86e29b;outline:0}.vs-button.vs-button__success:disabled,.vs-button.vs-button__success.vs-button--loading,.vs-button.vs-button__success:hover:disabled,.vs-button.vs-button__success:hover.vs-button--loading,.vs-button.vs-button__success:focus:disabled,.vs-button.vs-button__success:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__success-fill,.vs-button.vs-button__success-fill:focus{background:#28a745;color:#fff;border:solid 1px #28a745}.vs-button.vs-button__success-fill:hover,.vs-button.vs-button__success-fill:focus:hover{border-color:#1e7e34;background:#1e7e34}.vs-button.vs-button__success-fill:active,.vs-button.vs-button__success-fill:focus:active{border-color:#145523;background:#19692c}.vs-button.vs-button__success-fill:focus-visible,.vs-button.vs-button__success-fill:focus:focus-visible{border-color:#1e7e34;box-shadow:0 0 0 .2rem #86e29b;outline:0}.vs-button.vs-button__success-fill:disabled,.vs-button.vs-button__success-fill.vs-button--loading,.vs-button.vs-button__success-fill:focus:disabled,.vs-button.vs-button__success-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__danger,.vs-button.vs-button__danger:hover,.vs-button.vs-button__danger:focus{background:transparent;color:#cc3340;border:solid 1px #cc3340}.vs-button.vs-button__danger:hover,.vs-button.vs-button__danger:hover:hover,.vs-button.vs-button__danger:focus:hover{border-color:#a32933;background:#faebec;color:#a32933}.vs-button.vs-button__danger:active,.vs-button.vs-button__danger:hover:active,.vs-button.vs-button__danger:focus:active{border-color:#7a1f26;background:white;color:#7a1f26}.vs-button.vs-button__danger:focus-visible,.vs-button.vs-button__danger:hover:focus-visible,.vs-button.vs-button__danger:focus:focus-visible{border-color:#a32933;box-shadow:0 0 0 .2rem #ebadb3;outline:0}.vs-button.vs-button__danger:disabled,.vs-button.vs-button__danger.vs-button--loading,.vs-button.vs-button__danger:hover:disabled,.vs-button.vs-button__danger:hover.vs-button--loading,.vs-button.vs-button__danger:focus:disabled,.vs-button.vs-button__danger:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__danger-fill,.vs-button.vs-button__danger-fill:focus{background:#cc3340;color:#fff;border:solid 1px #cc3340}.vs-button.vs-button__danger-fill:hover,.vs-button.vs-button__danger-fill:focus:hover{border-color:#a32933;background:#a32933}.vs-button.vs-button__danger-fill:active,.vs-button.vs-button__danger-fill:focus:active{border-color:#7a1f26;background:#8f242d}.vs-button.vs-button__danger-fill:focus-visible,.vs-button.vs-button__danger-fill:focus:focus-visible{border-color:#a32933;box-shadow:0 0 0 .2rem #ebadb3;outline:0}.vs-button.vs-button__danger-fill:disabled,.vs-button.vs-button__danger-fill.vs-button--loading,.vs-button.vs-button__danger-fill:focus:disabled,.vs-button.vs-button__danger-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__warning,.vs-button.vs-button__warning:hover,.vs-button.vs-button__warning:focus{background:transparent;color:#ffb057;border:solid 1px #ffb057}.vs-button.vs-button__warning:hover,.vs-button.vs-button__warning:hover:hover,.vs-button.vs-button__warning:focus:hover{border-color:#ff9824;background:#fff8f0;color:#ff9824}.vs-button.vs-button__warning:active,.vs-button.vs-button__warning:hover:active,.vs-button.vs-button__warning:focus:active{border-color:#f07f00;background:white;color:#f07f00}.vs-button.vs-button__warning:focus-visible,.vs-button.vs-button__warning:hover:focus-visible,.vs-button.vs-button__warning:focus:focus-visible{border-color:#ff9824;box-shadow:0 0 0 .2rem #fff8f0;outline:0}.vs-button.vs-button__warning:disabled,.vs-button.vs-button__warning.vs-button--loading,.vs-button.vs-button__warning:hover:disabled,.vs-button.vs-button__warning:hover.vs-button--loading,.vs-button.vs-button__warning:focus:disabled,.vs-button.vs-button__warning:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__warning-fill,.vs-button.vs-button__warning-fill:focus{background:#ffb057;color:#703815;border:solid 1px #ffb057}.vs-button.vs-button__warning-fill:hover,.vs-button.vs-button__warning-fill:focus:hover{border-color:#ff9824;background:#ff9824}.vs-button.vs-button__warning-fill:active,.vs-button.vs-button__warning-fill:focus:active{border-color:#f07f00;background:#ff8c0b}.vs-button.vs-button__warning-fill:focus-visible,.vs-button.vs-button__warning-fill:focus:focus-visible{border-color:#ff9824;box-shadow:0 0 0 .2rem #fff8f0;outline:0}.vs-button.vs-button__warning-fill:disabled,.vs-button.vs-button__warning-fill.vs-button--loading,.vs-button.vs-button__warning-fill:focus:disabled,.vs-button.vs-button__warning-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__secondary,.vs-button.vs-button__secondary:hover,.vs-button.vs-button__secondary:focus{background:transparent;color:#6c757d;border:solid 1px #6c757d}.vs-button.vs-button__secondary:hover,.vs-button.vs-button__secondary:hover:hover,.vs-button.vs-button__secondary:focus:hover{border-color:#545b62;background:#f3f4f5;color:#545b62}.vs-button.vs-button__secondary:active,.vs-button.vs-button__secondary:hover:active,.vs-button.vs-button__secondary:focus:active{border-color:#3d4246;background:#f3f4f5;color:#3d4246}.vs-button.vs-button__secondary:focus-visible,.vs-button.vs-button__secondary:hover:focus-visible,.vs-button.vs-button__secondary:focus:focus-visible{border-color:#545b62;box-shadow:0 0 0 .2rem #bcc1c6;outline:0}.vs-button.vs-button__secondary:disabled,.vs-button.vs-button__secondary.vs-button--loading,.vs-button.vs-button__secondary:hover:disabled,.vs-button.vs-button__secondary:hover.vs-button--loading,.vs-button.vs-button__secondary:focus:disabled,.vs-button.vs-button__secondary:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__secondary-fill,.vs-button.vs-button__secondary-fill:focus{background:#6c757d;color:#fff;border:solid 1px #6c757d}.vs-button.vs-button__secondary-fill:hover,.vs-button.vs-button__secondary-fill:focus:hover{border-color:#545b62;background:#545b62}.vs-button.vs-button__secondary-fill:active,.vs-button.vs-button__secondary-fill:focus:active{border-color:#3d4246;background:#494f54}.vs-button.vs-button__secondary-fill:focus-visible,.vs-button.vs-button__secondary-fill:focus:focus-visible{border-color:#545b62;box-shadow:0 0 0 .2rem #bcc1c6;outline:0}.vs-button.vs-button__secondary-fill:disabled,.vs-button.vs-button__secondary-fill.vs-button--loading,.vs-button.vs-button__secondary-fill:focus:disabled,.vs-button.vs-button__secondary-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__light,.vs-button.vs-button__light:hover,.vs-button.vs-button__light:focus{background:transparent;color:#f8f9fa;border:solid 1px #f8f9fa}.vs-button.vs-button__light:hover,.vs-button.vs-button__light:hover:hover,.vs-button.vs-button__light:focus:hover{border-color:#dae0e5;background:white;color:#dae0e5}.vs-button.vs-button__light:active,.vs-button.vs-button__light:hover:active,.vs-button.vs-button__light:focus:active{border-color:#bdc6d0;background:white;color:#bdc6d0}.vs-button.vs-button__light:focus-visible,.vs-button.vs-button__light:hover:focus-visible,.vs-button.vs-button__light:focus:focus-visible{border-color:#dae0e5;box-shadow:0 0 0 .2rem #fff;outline:0}.vs-button.vs-button__light:disabled,.vs-button.vs-button__light.vs-button--loading,.vs-button.vs-button__light:hover:disabled,.vs-button.vs-button__light:hover.vs-button--loading,.vs-button.vs-button__light:focus:disabled,.vs-button.vs-button__light:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__light-fill,.vs-button.vs-button__light-fill:focus{background:#f8f9fa;color:#212529;border:solid 1px #f8f9fa}.vs-button.vs-button__light-fill:hover,.vs-button.vs-button__light-fill:focus:hover{border-color:#dae0e5;background:#dae0e5}.vs-button.vs-button__light-fill:active,.vs-button.vs-button__light-fill:focus:active{border-color:#bdc6d0;background:#cbd3da}.vs-button.vs-button__light-fill:focus-visible,.vs-button.vs-button__light-fill:focus:focus-visible{border-color:#dae0e5;box-shadow:0 0 0 .2rem #fff;outline:0}.vs-button.vs-button__light-fill:disabled,.vs-button.vs-button__light-fill.vs-button--loading,.vs-button.vs-button__light-fill:focus:disabled,.vs-button.vs-button__light-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__link{background:transparent;color:#1f73b7;border:none;padding:0}.vs-button.vs-button__link:hover{text-decoration:underline}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();import { openBlock as r, createElementBlock as y, createElementVNode as a, normalizeStyle as o, resolveComponent as f, createBlock as d, resolveDynamicComponent as _, normalizeClass as p, withCtx as m, renderSlot as g } from "vue";
2
+ const u = (n, s) => {
3
+ const e = n.__vccOpts || n;
4
+ for (const [l, t] of s)
5
+ e[l] = t;
6
+ return e;
7
+ }, h = {
8
+ name: "VsLoader",
9
+ props: {
10
+ color: {
11
+ type: String,
12
+ default: "#1f73b7"
13
+ },
14
+ size: {
15
+ type: String,
16
+ default: "40px"
17
+ },
18
+ margin: {
19
+ type: String,
20
+ default: "3px"
21
+ },
22
+ radius: {
23
+ type: String,
24
+ default: "100%"
25
+ }
26
+ },
27
+ data() {
28
+ return {
29
+ spinnerStyle: {
30
+ backgroundColor: this.color,
31
+ width: this.size,
32
+ height: this.size,
33
+ margin: this.margin,
34
+ borderRadius: this.radius,
35
+ display: "inline-block",
36
+ animationName: "v-pulseStretchDelay",
37
+ animationDuration: "0.75s",
38
+ animationIterationCount: "infinite",
39
+ animationTimingFunction: "cubic-bezier(.2,.68,.18,1.08)",
40
+ animationFillMode: "both"
41
+ },
42
+ spinnerDelay1: {
43
+ animationDelay: "0.12s"
44
+ },
45
+ spinnerDelay2: {
46
+ animationDelay: "0.24s"
47
+ },
48
+ spinnerDelay3: {
49
+ animationDelay: "0.36s"
50
+ }
51
+ };
52
+ }
53
+ }, v = { class: "vs-loader" };
54
+ function b(n, s, e, l, t, i) {
55
+ return r(), y("div", v, [
56
+ a("div", {
57
+ style: o([t.spinnerStyle, t.spinnerDelay1])
58
+ }, null, 4),
59
+ a("div", {
60
+ style: o([t.spinnerStyle, t.spinnerDelay2])
61
+ }, null, 4),
62
+ a("div", {
63
+ style: o([t.spinnerStyle, t.spinnerDelay3])
64
+ }, null, 4)
65
+ ]);
66
+ }
67
+ const S = /* @__PURE__ */ u(h, [["render", b]]);
68
+ const k = {
69
+ name: "VsButton",
70
+ components: {
71
+ VsLoader: S
72
+ },
73
+ props: {
74
+ variant: {
75
+ type: String,
76
+ default: "primary"
77
+ },
78
+ size: {
79
+ type: String,
80
+ default: "medium"
81
+ },
82
+ fill: {
83
+ type: Boolean,
84
+ default: !1
85
+ },
86
+ isRound: {
87
+ type: Boolean,
88
+ default: !1
89
+ },
90
+ isLoading: {
91
+ type: Boolean,
92
+ default: !1
93
+ },
94
+ loaderSize: {
95
+ type: String,
96
+ default: "8px"
97
+ },
98
+ loaderColor: {
99
+ type: String,
100
+ default: "#1f73b7"
101
+ },
102
+ disabled: {
103
+ type: [Boolean, String],
104
+ default: !1
105
+ },
106
+ href: {
107
+ type: String
108
+ },
109
+ target: {
110
+ type: String
111
+ },
112
+ rel: {
113
+ type: String
114
+ }
115
+ },
116
+ computed: {
117
+ classList() {
118
+ return [
119
+ [this.variant === "link" ? "vs-button__link" : `vs-button__${this.variant}${this.fill ? "-fill" : ""}`],
120
+ `vs-button--${this.size}`,
121
+ { "vs-button--loading": this.isLoading },
122
+ { "vs-button--round": this.isRound }
123
+ ];
124
+ },
125
+ isLink() {
126
+ return this.variant === "link" || !!this.href ? "a" : "button";
127
+ }
128
+ },
129
+ methods: {
130
+ emitClick() {
131
+ (!this.isLoading || !this.disabled) && this.$emit("click");
132
+ }
133
+ }
134
+ };
135
+ function L(n, s, e, l, t, i) {
136
+ const c = f("vs-loader");
137
+ return r(), d(_(i.isLink), {
138
+ role: e.href ? "button" : !1,
139
+ href: e.href,
140
+ target: e.target,
141
+ rel: e.rel,
142
+ type: i.isLink ? "button" : !1,
143
+ disabled: e.disabled || e.isLoading,
144
+ class: p(["vs-button", i.classList])
145
+ }, {
146
+ default: m(() => [
147
+ e.isLoading ? (r(), d(c, {
148
+ key: 0,
149
+ size: e.loaderSize,
150
+ color: e.loaderColor
151
+ }, null, 8, ["size", "color"])) : g(n.$slots, "default", { key: 1 })
152
+ ]),
153
+ _: 3
154
+ }, 8, ["role", "href", "target", "rel", "type", "disabled", "class"]);
155
+ }
156
+ const z = /* @__PURE__ */ u(k, [["render", L]]), B = {
157
+ install(n) {
158
+ n.component("VsButton", z);
159
+ }
160
+ };
161
+ export {
162
+ B as default
163
+ };
@@ -0,0 +1 @@
1
+ (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode("@-webkit-keyframes v-pulseStretchDelay{0%,80%{-webkit-transform:scale(1);transform:scale(1);-webkit-opacity:1;opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);-webkit-opacity:.7;opacity:.7}}@keyframes v-pulseStretchDelay{0%,80%{-webkit-transform:scale(1);transform:scale(1);-webkit-opacity:1;opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);-webkit-opacity:.7;opacity:.7}}.vs-button{border-radius:4px;font-weight:400;box-sizing:border-box;user-select:none;padding:0 1.07143em;display:inline-flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;transition:border-color .25s ease-in-out 0s,box-shadow .1s ease-in-out 0s,background-color .25s ease-in-out 0s,color .25s ease-in-out 0s;margin:0;cursor:pointer;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;position:relative}.vs-button .vs-loader{display:flex;align-items:center;justify-content:center}.vs-button.vs-button--small{height:32px;line-height:30px;font-size:12px}.vs-button.vs-button--medium{height:40px;line-height:38px;font-size:14px}.vs-button.vs-button--large{height:48px;line-height:46px;font-size:14px}.vs-button.vs-button--round{border-radius:50px}.vs-button.vs-button__primary,.vs-button.vs-button__primary:hover,.vs-button.vs-button__primary:focus{background:transparent;color:#1f73b7;border:solid 1px #1f73b7}.vs-button.vs-button__primary:hover,.vs-button.vs-button__primary:hover:hover,.vs-button.vs-button__primary:focus:hover{border-color:#18588b;background:#f2f8fd;color:#18588b}.vs-button.vs-button__primary:active,.vs-button.vs-button__primary:hover:active,.vs-button.vs-button__primary:focus:active{border-color:#103c60;background:#dcecf9;color:#103c60}.vs-button.vs-button__primary:focus-visible,.vs-button.vs-button__primary:hover:focus-visible,.vs-button.vs-button__primary:focus:focus-visible{border-color:#18588b;box-shadow:0 0 0 .2rem #85bdea;outline:0}.vs-button.vs-button__primary:disabled,.vs-button.vs-button__primary.vs-button--loading,.vs-button.vs-button__primary:hover:disabled,.vs-button.vs-button__primary:hover.vs-button--loading,.vs-button.vs-button__primary:focus:disabled,.vs-button.vs-button__primary:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__primary-fill,.vs-button.vs-button__primary-fill:focus{background:#1f73b7;color:#fff;border:solid 1px #1f73b7}.vs-button.vs-button__primary-fill:hover,.vs-button.vs-button__primary-fill:focus:hover{border-color:#18588b;background:#18588b}.vs-button.vs-button__primary-fill:active,.vs-button.vs-button__primary-fill:focus:active{border-color:#103c60;background:#144a76}.vs-button.vs-button__primary-fill:focus-visible,.vs-button.vs-button__primary-fill:focus:focus-visible{border-color:#18588b;box-shadow:0 0 0 .2rem #85bdea;outline:0}.vs-button.vs-button__primary-fill:disabled,.vs-button.vs-button__primary-fill.vs-button--loading,.vs-button.vs-button__primary-fill:focus:disabled,.vs-button.vs-button__primary-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__success,.vs-button.vs-button__success:hover,.vs-button.vs-button__success:focus{background:transparent;color:#28a745;border:solid 1px #28a745}.vs-button.vs-button__success:hover,.vs-button.vs-button__success:hover:hover,.vs-button.vs-button__success:focus:hover{border-color:#1e7e34;background:#edfbf0;color:#1e7e34}.vs-button.vs-button__success:active,.vs-button.vs-button__success:hover:active,.vs-button.vs-button__success:focus:active{border-color:#145523;background:#d8f6df;color:#145523}.vs-button.vs-button__success:focus-visible,.vs-button.vs-button__success:hover:focus-visible,.vs-button.vs-button__success:focus:focus-visible{border-color:#1e7e34;box-shadow:0 0 0 .2rem #86e29b;outline:0}.vs-button.vs-button__success:disabled,.vs-button.vs-button__success.vs-button--loading,.vs-button.vs-button__success:hover:disabled,.vs-button.vs-button__success:hover.vs-button--loading,.vs-button.vs-button__success:focus:disabled,.vs-button.vs-button__success:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__success-fill,.vs-button.vs-button__success-fill:focus{background:#28a745;color:#fff;border:solid 1px #28a745}.vs-button.vs-button__success-fill:hover,.vs-button.vs-button__success-fill:focus:hover{border-color:#1e7e34;background:#1e7e34}.vs-button.vs-button__success-fill:active,.vs-button.vs-button__success-fill:focus:active{border-color:#145523;background:#19692c}.vs-button.vs-button__success-fill:focus-visible,.vs-button.vs-button__success-fill:focus:focus-visible{border-color:#1e7e34;box-shadow:0 0 0 .2rem #86e29b;outline:0}.vs-button.vs-button__success-fill:disabled,.vs-button.vs-button__success-fill.vs-button--loading,.vs-button.vs-button__success-fill:focus:disabled,.vs-button.vs-button__success-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__danger,.vs-button.vs-button__danger:hover,.vs-button.vs-button__danger:focus{background:transparent;color:#cc3340;border:solid 1px #cc3340}.vs-button.vs-button__danger:hover,.vs-button.vs-button__danger:hover:hover,.vs-button.vs-button__danger:focus:hover{border-color:#a32933;background:#faebec;color:#a32933}.vs-button.vs-button__danger:active,.vs-button.vs-button__danger:hover:active,.vs-button.vs-button__danger:focus:active{border-color:#7a1f26;background:white;color:#7a1f26}.vs-button.vs-button__danger:focus-visible,.vs-button.vs-button__danger:hover:focus-visible,.vs-button.vs-button__danger:focus:focus-visible{border-color:#a32933;box-shadow:0 0 0 .2rem #ebadb3;outline:0}.vs-button.vs-button__danger:disabled,.vs-button.vs-button__danger.vs-button--loading,.vs-button.vs-button__danger:hover:disabled,.vs-button.vs-button__danger:hover.vs-button--loading,.vs-button.vs-button__danger:focus:disabled,.vs-button.vs-button__danger:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__danger-fill,.vs-button.vs-button__danger-fill:focus{background:#cc3340;color:#fff;border:solid 1px #cc3340}.vs-button.vs-button__danger-fill:hover,.vs-button.vs-button__danger-fill:focus:hover{border-color:#a32933;background:#a32933}.vs-button.vs-button__danger-fill:active,.vs-button.vs-button__danger-fill:focus:active{border-color:#7a1f26;background:#8f242d}.vs-button.vs-button__danger-fill:focus-visible,.vs-button.vs-button__danger-fill:focus:focus-visible{border-color:#a32933;box-shadow:0 0 0 .2rem #ebadb3;outline:0}.vs-button.vs-button__danger-fill:disabled,.vs-button.vs-button__danger-fill.vs-button--loading,.vs-button.vs-button__danger-fill:focus:disabled,.vs-button.vs-button__danger-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__warning,.vs-button.vs-button__warning:hover,.vs-button.vs-button__warning:focus{background:transparent;color:#ffb057;border:solid 1px #ffb057}.vs-button.vs-button__warning:hover,.vs-button.vs-button__warning:hover:hover,.vs-button.vs-button__warning:focus:hover{border-color:#ff9824;background:#fff8f0;color:#ff9824}.vs-button.vs-button__warning:active,.vs-button.vs-button__warning:hover:active,.vs-button.vs-button__warning:focus:active{border-color:#f07f00;background:white;color:#f07f00}.vs-button.vs-button__warning:focus-visible,.vs-button.vs-button__warning:hover:focus-visible,.vs-button.vs-button__warning:focus:focus-visible{border-color:#ff9824;box-shadow:0 0 0 .2rem #fff8f0;outline:0}.vs-button.vs-button__warning:disabled,.vs-button.vs-button__warning.vs-button--loading,.vs-button.vs-button__warning:hover:disabled,.vs-button.vs-button__warning:hover.vs-button--loading,.vs-button.vs-button__warning:focus:disabled,.vs-button.vs-button__warning:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__warning-fill,.vs-button.vs-button__warning-fill:focus{background:#ffb057;color:#703815;border:solid 1px #ffb057}.vs-button.vs-button__warning-fill:hover,.vs-button.vs-button__warning-fill:focus:hover{border-color:#ff9824;background:#ff9824}.vs-button.vs-button__warning-fill:active,.vs-button.vs-button__warning-fill:focus:active{border-color:#f07f00;background:#ff8c0b}.vs-button.vs-button__warning-fill:focus-visible,.vs-button.vs-button__warning-fill:focus:focus-visible{border-color:#ff9824;box-shadow:0 0 0 .2rem #fff8f0;outline:0}.vs-button.vs-button__warning-fill:disabled,.vs-button.vs-button__warning-fill.vs-button--loading,.vs-button.vs-button__warning-fill:focus:disabled,.vs-button.vs-button__warning-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__secondary,.vs-button.vs-button__secondary:hover,.vs-button.vs-button__secondary:focus{background:transparent;color:#6c757d;border:solid 1px #6c757d}.vs-button.vs-button__secondary:hover,.vs-button.vs-button__secondary:hover:hover,.vs-button.vs-button__secondary:focus:hover{border-color:#545b62;background:#f3f4f5;color:#545b62}.vs-button.vs-button__secondary:active,.vs-button.vs-button__secondary:hover:active,.vs-button.vs-button__secondary:focus:active{border-color:#3d4246;background:#f3f4f5;color:#3d4246}.vs-button.vs-button__secondary:focus-visible,.vs-button.vs-button__secondary:hover:focus-visible,.vs-button.vs-button__secondary:focus:focus-visible{border-color:#545b62;box-shadow:0 0 0 .2rem #bcc1c6;outline:0}.vs-button.vs-button__secondary:disabled,.vs-button.vs-button__secondary.vs-button--loading,.vs-button.vs-button__secondary:hover:disabled,.vs-button.vs-button__secondary:hover.vs-button--loading,.vs-button.vs-button__secondary:focus:disabled,.vs-button.vs-button__secondary:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__secondary-fill,.vs-button.vs-button__secondary-fill:focus{background:#6c757d;color:#fff;border:solid 1px #6c757d}.vs-button.vs-button__secondary-fill:hover,.vs-button.vs-button__secondary-fill:focus:hover{border-color:#545b62;background:#545b62}.vs-button.vs-button__secondary-fill:active,.vs-button.vs-button__secondary-fill:focus:active{border-color:#3d4246;background:#494f54}.vs-button.vs-button__secondary-fill:focus-visible,.vs-button.vs-button__secondary-fill:focus:focus-visible{border-color:#545b62;box-shadow:0 0 0 .2rem #bcc1c6;outline:0}.vs-button.vs-button__secondary-fill:disabled,.vs-button.vs-button__secondary-fill.vs-button--loading,.vs-button.vs-button__secondary-fill:focus:disabled,.vs-button.vs-button__secondary-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__light,.vs-button.vs-button__light:hover,.vs-button.vs-button__light:focus{background:transparent;color:#f8f9fa;border:solid 1px #f8f9fa}.vs-button.vs-button__light:hover,.vs-button.vs-button__light:hover:hover,.vs-button.vs-button__light:focus:hover{border-color:#dae0e5;background:white;color:#dae0e5}.vs-button.vs-button__light:active,.vs-button.vs-button__light:hover:active,.vs-button.vs-button__light:focus:active{border-color:#bdc6d0;background:white;color:#bdc6d0}.vs-button.vs-button__light:focus-visible,.vs-button.vs-button__light:hover:focus-visible,.vs-button.vs-button__light:focus:focus-visible{border-color:#dae0e5;box-shadow:0 0 0 .2rem #fff;outline:0}.vs-button.vs-button__light:disabled,.vs-button.vs-button__light.vs-button--loading,.vs-button.vs-button__light:hover:disabled,.vs-button.vs-button__light:hover.vs-button--loading,.vs-button.vs-button__light:focus:disabled,.vs-button.vs-button__light:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__light-fill,.vs-button.vs-button__light-fill:focus{background:#f8f9fa;color:#212529;border:solid 1px #f8f9fa}.vs-button.vs-button__light-fill:hover,.vs-button.vs-button__light-fill:focus:hover{border-color:#dae0e5;background:#dae0e5}.vs-button.vs-button__light-fill:active,.vs-button.vs-button__light-fill:focus:active{border-color:#bdc6d0;background:#cbd3da}.vs-button.vs-button__light-fill:focus-visible,.vs-button.vs-button__light-fill:focus:focus-visible{border-color:#dae0e5;box-shadow:0 0 0 .2rem #fff;outline:0}.vs-button.vs-button__light-fill:disabled,.vs-button.vs-button__light-fill.vs-button--loading,.vs-button.vs-button__light-fill:focus:disabled,.vs-button.vs-button__light-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__link{background:transparent;color:#1f73b7;border:none;padding:0}.vs-button.vs-button__link:hover{text-decoration:underline}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();var VsButton=function(e){"use strict";const m="",o=(i,s)=>{const t=i.__vccOpts||i;for(const[a,n]of s)t[a]=n;return t},r={name:"VsLoader",props:{color:{type:String,default:"#1f73b7"},size:{type:String,default:"40px"},margin:{type:String,default:"3px"},radius:{type:String,default:"100%"}},data(){return{spinnerStyle:{backgroundColor:this.color,width:this.size,height:this.size,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-pulseStretchDelay",animationDuration:"0.75s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.2,.68,.18,1.08)",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.12s"},spinnerDelay2:{animationDelay:"0.24s"},spinnerDelay3:{animationDelay:"0.36s"}}}},d={class:"vs-loader"};function c(i,s,t,a,n,l){return e.openBlock(),e.createElementBlock("div",d,[e.createElementVNode("div",{style:e.normalizeStyle([n.spinnerStyle,n.spinnerDelay1])},null,4),e.createElementVNode("div",{style:e.normalizeStyle([n.spinnerStyle,n.spinnerDelay2])},null,4),e.createElementVNode("div",{style:e.normalizeStyle([n.spinnerStyle,n.spinnerDelay3])},null,4)])}const u=o(r,[["render",c]]),g="",y={name:"VsButton",components:{VsLoader:u},props:{variant:{type:String,default:"primary"},size:{type:String,default:"medium"},fill:{type:Boolean,default:!1},isRound:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},loaderSize:{type:String,default:"8px"},loaderColor:{type:String,default:"#1f73b7"},disabled:{type:[Boolean,String],default:!1},href:{type:String},target:{type:String},rel:{type:String}},computed:{classList(){return[[this.variant==="link"?"vs-button__link":`vs-button__${this.variant}${this.fill?"-fill":""}`],`vs-button--${this.size}`,{"vs-button--loading":this.isLoading},{"vs-button--round":this.isRound}]},isLink(){return this.variant==="link"||!!this.href?"a":"button"}},methods:{emitClick(){(!this.isLoading||!this.disabled)&&this.$emit("click")}}};function f(i,s,t,a,n,l){const _=e.resolveComponent("vs-loader");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.isLink),{role:t.href?"button":!1,href:t.href,target:t.target,rel:t.rel,type:l.isLink?"button":!1,disabled:t.disabled||t.isLoading,class:e.normalizeClass(["vs-button",l.classList])},{default:e.withCtx(()=>[t.isLoading?(e.openBlock(),e.createBlock(_,{key:0,size:t.loaderSize,color:t.loaderColor},null,8,["size","color"])):e.renderSlot(i.$slots,"default",{key:1})]),_:3},8,["role","href","target","rel","type","disabled","class"])}const p=o(y,[["render",f]]);return{install(i){i.component("VsButton",p)}}}(Vue);
@@ -0,0 +1 @@
1
+ (function(){ try {var elementStyle = document.createElement('style'); elementStyle.appendChild(document.createTextNode("@-webkit-keyframes v-pulseStretchDelay{0%,80%{-webkit-transform:scale(1);transform:scale(1);-webkit-opacity:1;opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);-webkit-opacity:.7;opacity:.7}}@keyframes v-pulseStretchDelay{0%,80%{-webkit-transform:scale(1);transform:scale(1);-webkit-opacity:1;opacity:1}45%{-webkit-transform:scale(.1);transform:scale(.1);-webkit-opacity:.7;opacity:.7}}.vs-button{border-radius:4px;font-weight:400;box-sizing:border-box;user-select:none;padding:0 1.07143em;display:inline-flex;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;transition:border-color .25s ease-in-out 0s,box-shadow .1s ease-in-out 0s,background-color .25s ease-in-out 0s,color .25s ease-in-out 0s;margin:0;cursor:pointer;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;position:relative}.vs-button .vs-loader{display:flex;align-items:center;justify-content:center}.vs-button.vs-button--small{height:32px;line-height:30px;font-size:12px}.vs-button.vs-button--medium{height:40px;line-height:38px;font-size:14px}.vs-button.vs-button--large{height:48px;line-height:46px;font-size:14px}.vs-button.vs-button--round{border-radius:50px}.vs-button.vs-button__primary,.vs-button.vs-button__primary:hover,.vs-button.vs-button__primary:focus{background:transparent;color:#1f73b7;border:solid 1px #1f73b7}.vs-button.vs-button__primary:hover,.vs-button.vs-button__primary:hover:hover,.vs-button.vs-button__primary:focus:hover{border-color:#18588b;background:#f2f8fd;color:#18588b}.vs-button.vs-button__primary:active,.vs-button.vs-button__primary:hover:active,.vs-button.vs-button__primary:focus:active{border-color:#103c60;background:#dcecf9;color:#103c60}.vs-button.vs-button__primary:focus-visible,.vs-button.vs-button__primary:hover:focus-visible,.vs-button.vs-button__primary:focus:focus-visible{border-color:#18588b;box-shadow:0 0 0 .2rem #85bdea;outline:0}.vs-button.vs-button__primary:disabled,.vs-button.vs-button__primary.vs-button--loading,.vs-button.vs-button__primary:hover:disabled,.vs-button.vs-button__primary:hover.vs-button--loading,.vs-button.vs-button__primary:focus:disabled,.vs-button.vs-button__primary:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__primary-fill,.vs-button.vs-button__primary-fill:focus{background:#1f73b7;color:#fff;border:solid 1px #1f73b7}.vs-button.vs-button__primary-fill:hover,.vs-button.vs-button__primary-fill:focus:hover{border-color:#18588b;background:#18588b}.vs-button.vs-button__primary-fill:active,.vs-button.vs-button__primary-fill:focus:active{border-color:#103c60;background:#144a76}.vs-button.vs-button__primary-fill:focus-visible,.vs-button.vs-button__primary-fill:focus:focus-visible{border-color:#18588b;box-shadow:0 0 0 .2rem #85bdea;outline:0}.vs-button.vs-button__primary-fill:disabled,.vs-button.vs-button__primary-fill.vs-button--loading,.vs-button.vs-button__primary-fill:focus:disabled,.vs-button.vs-button__primary-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__success,.vs-button.vs-button__success:hover,.vs-button.vs-button__success:focus{background:transparent;color:#28a745;border:solid 1px #28a745}.vs-button.vs-button__success:hover,.vs-button.vs-button__success:hover:hover,.vs-button.vs-button__success:focus:hover{border-color:#1e7e34;background:#edfbf0;color:#1e7e34}.vs-button.vs-button__success:active,.vs-button.vs-button__success:hover:active,.vs-button.vs-button__success:focus:active{border-color:#145523;background:#d8f6df;color:#145523}.vs-button.vs-button__success:focus-visible,.vs-button.vs-button__success:hover:focus-visible,.vs-button.vs-button__success:focus:focus-visible{border-color:#1e7e34;box-shadow:0 0 0 .2rem #86e29b;outline:0}.vs-button.vs-button__success:disabled,.vs-button.vs-button__success.vs-button--loading,.vs-button.vs-button__success:hover:disabled,.vs-button.vs-button__success:hover.vs-button--loading,.vs-button.vs-button__success:focus:disabled,.vs-button.vs-button__success:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__success-fill,.vs-button.vs-button__success-fill:focus{background:#28a745;color:#fff;border:solid 1px #28a745}.vs-button.vs-button__success-fill:hover,.vs-button.vs-button__success-fill:focus:hover{border-color:#1e7e34;background:#1e7e34}.vs-button.vs-button__success-fill:active,.vs-button.vs-button__success-fill:focus:active{border-color:#145523;background:#19692c}.vs-button.vs-button__success-fill:focus-visible,.vs-button.vs-button__success-fill:focus:focus-visible{border-color:#1e7e34;box-shadow:0 0 0 .2rem #86e29b;outline:0}.vs-button.vs-button__success-fill:disabled,.vs-button.vs-button__success-fill.vs-button--loading,.vs-button.vs-button__success-fill:focus:disabled,.vs-button.vs-button__success-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__danger,.vs-button.vs-button__danger:hover,.vs-button.vs-button__danger:focus{background:transparent;color:#cc3340;border:solid 1px #cc3340}.vs-button.vs-button__danger:hover,.vs-button.vs-button__danger:hover:hover,.vs-button.vs-button__danger:focus:hover{border-color:#a32933;background:#faebec;color:#a32933}.vs-button.vs-button__danger:active,.vs-button.vs-button__danger:hover:active,.vs-button.vs-button__danger:focus:active{border-color:#7a1f26;background:white;color:#7a1f26}.vs-button.vs-button__danger:focus-visible,.vs-button.vs-button__danger:hover:focus-visible,.vs-button.vs-button__danger:focus:focus-visible{border-color:#a32933;box-shadow:0 0 0 .2rem #ebadb3;outline:0}.vs-button.vs-button__danger:disabled,.vs-button.vs-button__danger.vs-button--loading,.vs-button.vs-button__danger:hover:disabled,.vs-button.vs-button__danger:hover.vs-button--loading,.vs-button.vs-button__danger:focus:disabled,.vs-button.vs-button__danger:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__danger-fill,.vs-button.vs-button__danger-fill:focus{background:#cc3340;color:#fff;border:solid 1px #cc3340}.vs-button.vs-button__danger-fill:hover,.vs-button.vs-button__danger-fill:focus:hover{border-color:#a32933;background:#a32933}.vs-button.vs-button__danger-fill:active,.vs-button.vs-button__danger-fill:focus:active{border-color:#7a1f26;background:#8f242d}.vs-button.vs-button__danger-fill:focus-visible,.vs-button.vs-button__danger-fill:focus:focus-visible{border-color:#a32933;box-shadow:0 0 0 .2rem #ebadb3;outline:0}.vs-button.vs-button__danger-fill:disabled,.vs-button.vs-button__danger-fill.vs-button--loading,.vs-button.vs-button__danger-fill:focus:disabled,.vs-button.vs-button__danger-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__warning,.vs-button.vs-button__warning:hover,.vs-button.vs-button__warning:focus{background:transparent;color:#ffb057;border:solid 1px #ffb057}.vs-button.vs-button__warning:hover,.vs-button.vs-button__warning:hover:hover,.vs-button.vs-button__warning:focus:hover{border-color:#ff9824;background:#fff8f0;color:#ff9824}.vs-button.vs-button__warning:active,.vs-button.vs-button__warning:hover:active,.vs-button.vs-button__warning:focus:active{border-color:#f07f00;background:white;color:#f07f00}.vs-button.vs-button__warning:focus-visible,.vs-button.vs-button__warning:hover:focus-visible,.vs-button.vs-button__warning:focus:focus-visible{border-color:#ff9824;box-shadow:0 0 0 .2rem #fff8f0;outline:0}.vs-button.vs-button__warning:disabled,.vs-button.vs-button__warning.vs-button--loading,.vs-button.vs-button__warning:hover:disabled,.vs-button.vs-button__warning:hover.vs-button--loading,.vs-button.vs-button__warning:focus:disabled,.vs-button.vs-button__warning:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__warning-fill,.vs-button.vs-button__warning-fill:focus{background:#ffb057;color:#703815;border:solid 1px #ffb057}.vs-button.vs-button__warning-fill:hover,.vs-button.vs-button__warning-fill:focus:hover{border-color:#ff9824;background:#ff9824}.vs-button.vs-button__warning-fill:active,.vs-button.vs-button__warning-fill:focus:active{border-color:#f07f00;background:#ff8c0b}.vs-button.vs-button__warning-fill:focus-visible,.vs-button.vs-button__warning-fill:focus:focus-visible{border-color:#ff9824;box-shadow:0 0 0 .2rem #fff8f0;outline:0}.vs-button.vs-button__warning-fill:disabled,.vs-button.vs-button__warning-fill.vs-button--loading,.vs-button.vs-button__warning-fill:focus:disabled,.vs-button.vs-button__warning-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__secondary,.vs-button.vs-button__secondary:hover,.vs-button.vs-button__secondary:focus{background:transparent;color:#6c757d;border:solid 1px #6c757d}.vs-button.vs-button__secondary:hover,.vs-button.vs-button__secondary:hover:hover,.vs-button.vs-button__secondary:focus:hover{border-color:#545b62;background:#f3f4f5;color:#545b62}.vs-button.vs-button__secondary:active,.vs-button.vs-button__secondary:hover:active,.vs-button.vs-button__secondary:focus:active{border-color:#3d4246;background:#f3f4f5;color:#3d4246}.vs-button.vs-button__secondary:focus-visible,.vs-button.vs-button__secondary:hover:focus-visible,.vs-button.vs-button__secondary:focus:focus-visible{border-color:#545b62;box-shadow:0 0 0 .2rem #bcc1c6;outline:0}.vs-button.vs-button__secondary:disabled,.vs-button.vs-button__secondary.vs-button--loading,.vs-button.vs-button__secondary:hover:disabled,.vs-button.vs-button__secondary:hover.vs-button--loading,.vs-button.vs-button__secondary:focus:disabled,.vs-button.vs-button__secondary:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__secondary-fill,.vs-button.vs-button__secondary-fill:focus{background:#6c757d;color:#fff;border:solid 1px #6c757d}.vs-button.vs-button__secondary-fill:hover,.vs-button.vs-button__secondary-fill:focus:hover{border-color:#545b62;background:#545b62}.vs-button.vs-button__secondary-fill:active,.vs-button.vs-button__secondary-fill:focus:active{border-color:#3d4246;background:#494f54}.vs-button.vs-button__secondary-fill:focus-visible,.vs-button.vs-button__secondary-fill:focus:focus-visible{border-color:#545b62;box-shadow:0 0 0 .2rem #bcc1c6;outline:0}.vs-button.vs-button__secondary-fill:disabled,.vs-button.vs-button__secondary-fill.vs-button--loading,.vs-button.vs-button__secondary-fill:focus:disabled,.vs-button.vs-button__secondary-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__light,.vs-button.vs-button__light:hover,.vs-button.vs-button__light:focus{background:transparent;color:#f8f9fa;border:solid 1px #f8f9fa}.vs-button.vs-button__light:hover,.vs-button.vs-button__light:hover:hover,.vs-button.vs-button__light:focus:hover{border-color:#dae0e5;background:white;color:#dae0e5}.vs-button.vs-button__light:active,.vs-button.vs-button__light:hover:active,.vs-button.vs-button__light:focus:active{border-color:#bdc6d0;background:white;color:#bdc6d0}.vs-button.vs-button__light:focus-visible,.vs-button.vs-button__light:hover:focus-visible,.vs-button.vs-button__light:focus:focus-visible{border-color:#dae0e5;box-shadow:0 0 0 .2rem #fff;outline:0}.vs-button.vs-button__light:disabled,.vs-button.vs-button__light.vs-button--loading,.vs-button.vs-button__light:hover:disabled,.vs-button.vs-button__light:hover.vs-button--loading,.vs-button.vs-button__light:focus:disabled,.vs-button.vs-button__light:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__light-fill,.vs-button.vs-button__light-fill:focus{background:#f8f9fa;color:#212529;border:solid 1px #f8f9fa}.vs-button.vs-button__light-fill:hover,.vs-button.vs-button__light-fill:focus:hover{border-color:#dae0e5;background:#dae0e5}.vs-button.vs-button__light-fill:active,.vs-button.vs-button__light-fill:focus:active{border-color:#bdc6d0;background:#cbd3da}.vs-button.vs-button__light-fill:focus-visible,.vs-button.vs-button__light-fill:focus:focus-visible{border-color:#dae0e5;box-shadow:0 0 0 .2rem #fff;outline:0}.vs-button.vs-button__light-fill:disabled,.vs-button.vs-button__light-fill.vs-button--loading,.vs-button.vs-button__light-fill:focus:disabled,.vs-button.vs-button__light-fill:focus.vs-button--loading{background:#e9ebed;border-color:transparent;color:#c2c8cc;cursor:no-drop}.vs-button.vs-button__link{background:transparent;color:#1f73b7;border:none;padding:0}.vs-button.vs-button__link:hover{text-decoration:underline}")); document.head.appendChild(elementStyle);} catch(e) {console.error('vite-plugin-css-injected-by-js', e);} })();(function(e,l){typeof exports=="object"&&typeof module<"u"?module.exports=l(require("vue")):typeof define=="function"&&define.amd?define(["vue"],l):(e=typeof globalThis<"u"?globalThis:e||self,e.VsButton=l(e.Vue))})(this,function(e){"use strict";const l="",r=(i,o)=>{const t=i.__vccOpts||i;for(const[a,n]of o)t[a]=n;return t},d={name:"VsLoader",props:{color:{type:String,default:"#1f73b7"},size:{type:String,default:"40px"},margin:{type:String,default:"3px"},radius:{type:String,default:"100%"}},data(){return{spinnerStyle:{backgroundColor:this.color,width:this.size,height:this.size,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-pulseStretchDelay",animationDuration:"0.75s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.2,.68,.18,1.08)",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.12s"},spinnerDelay2:{animationDelay:"0.24s"},spinnerDelay3:{animationDelay:"0.36s"}}}},c={class:"vs-loader"};function u(i,o,t,a,n,s){return e.openBlock(),e.createElementBlock("div",c,[e.createElementVNode("div",{style:e.normalizeStyle([n.spinnerStyle,n.spinnerDelay1])},null,4),e.createElementVNode("div",{style:e.normalizeStyle([n.spinnerStyle,n.spinnerDelay2])},null,4),e.createElementVNode("div",{style:e.normalizeStyle([n.spinnerStyle,n.spinnerDelay3])},null,4)])}const f=r(d,[["render",u]]),h="",y={name:"VsButton",components:{VsLoader:f},props:{variant:{type:String,default:"primary"},size:{type:String,default:"medium"},fill:{type:Boolean,default:!1},isRound:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},loaderSize:{type:String,default:"8px"},loaderColor:{type:String,default:"#1f73b7"},disabled:{type:[Boolean,String],default:!1},href:{type:String},target:{type:String},rel:{type:String}},computed:{classList(){return[[this.variant==="link"?"vs-button__link":`vs-button__${this.variant}${this.fill?"-fill":""}`],`vs-button--${this.size}`,{"vs-button--loading":this.isLoading},{"vs-button--round":this.isRound}]},isLink(){return this.variant==="link"||!!this.href?"a":"button"}},methods:{emitClick(){(!this.isLoading||!this.disabled)&&this.$emit("click")}}};function p(i,o,t,a,n,s){const _=e.resolveComponent("vs-loader");return e.openBlock(),e.createBlock(e.resolveDynamicComponent(s.isLink),{role:t.href?"button":!1,href:t.href,target:t.target,rel:t.rel,type:s.isLink?"button":!1,disabled:t.disabled||t.isLoading,class:e.normalizeClass(["vs-button",s.classList])},{default:e.withCtx(()=>[t.isLoading?(e.openBlock(),e.createBlock(_,{key:0,size:t.loaderSize,color:t.loaderColor},null,8,["size","color"])):e.renderSlot(i.$slots,"default",{key:1})]),_:3},8,["role","href","target","rel","type","disabled","class"])}const m=r(y,[["render",p]]);return{install(i){i.component("VsButton",m)}}});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuesimple/vs-button",
3
- "version": "1.4.18",
3
+ "version": "3.0.1",
4
4
  "description": "A simple vue button. Perfect for all your button scenarios.",
5
5
  "main": "dist/vs-button.umd.js",
6
6
  "module": "dist/vs-button.esm.js",
@@ -9,21 +9,14 @@
9
9
  "./sfc": "src/vs-button.vue"
10
10
  },
11
11
  "scripts": {
12
- "build": "rm -rfv dist && npm run build:umd & npm run build:es & npm run build:unpkg",
13
- "build:umd": "rollup --config build/rollup.config.js --format umd --file dist/vs-button.umd.js",
14
- "build:es": "rollup --config build/rollup.config.js --format es --file dist/vs-button.esm.js",
15
- "build:unpkg": "rollup --config build/rollup.config.js --format iife --file dist/vs-button.min.js"
12
+ "build": "rm -rfv dist && vite build --config build/vite.config.js"
16
13
  },
17
14
  "devDependencies": {
18
- "@rollup/plugin-buble": "0.21.3",
19
- "@rollup/plugin-image": "2.0.5",
20
- "@rollup/plugin-node-resolve": "13.0.5",
21
- "minimist": "1.2.5",
22
- "rollup": "1.32.0",
23
- "rollup-plugin-terser": "6.1.0",
24
- "rollup-plugin-vue": "5.1.9",
25
- "vue": "2.6.10",
26
- "vue-template-compiler": "2.6.10"
15
+ "@vitejs/plugin-vue": "^3.0.1",
16
+ "sass": "^1.54.4",
17
+ "vite": "^3.0.5",
18
+ "vite-plugin-style-inject": "0.0.1",
19
+ "vue": "^3.2.37"
27
20
  },
28
21
  "repository": {
29
22
  "type": "git",
@@ -52,5 +45,5 @@
52
45
  "url": "https://github.com/ashwinkshenoy/vue-simple/issues"
53
46
  },
54
47
  "homepage": "https://github.com/ashwinkshenoy/vue-simple/tree/master/packages/vs-button",
55
- "gitHead": "d861c686610167888eb6eeaa4f8001424026a1dd"
48
+ "gitHead": "97848d8e6d712ac6595ca1d9c9bd94a11b6b26ba"
56
49
  }
package/src/index.js CHANGED
@@ -1,28 +1,9 @@
1
- // Import vue component
2
1
  import VsButton from './vs-button.vue';
3
2
 
4
- // Declare install function executed by Vue.use()
5
- export function install(Vue) {
6
- if (install.installed) return;
7
- install.installed = true;
8
- Vue.component('VsButton', VsButton);
9
- }
10
-
11
- // Create module definition for Vue.use()
12
3
  const plugin = {
13
- install,
4
+ install(Vue) {
5
+ Vue.component('VsButton', VsButton);
6
+ },
14
7
  };
15
8
 
16
- // Auto-install when vue is found (eg. in browser via <script> tag)
17
- let GlobalVue = null;
18
- if (typeof window !== 'undefined') {
19
- GlobalVue = window.Vue;
20
- } else if (typeof global !== 'undefined') {
21
- GlobalVue = global.Vue;
22
- }
23
- if (GlobalVue) {
24
- GlobalVue.use(plugin);
25
- }
26
-
27
- // To allow use as module (npm/webpack/etc.) export component
28
- export default VsButton;
9
+ export default plugin;
package/src/vs-button.vue CHANGED
@@ -8,7 +8,6 @@
8
8
  :type="isLink ? 'button' : false"
9
9
  :disabled="disabled || isLoading"
10
10
  :class="['vs-button', classList]"
11
- @click="emitClick"
12
11
  >
13
12
  <vs-loader :size="loaderSize" :color="loaderColor" v-if="isLoading"></vs-loader>
14
13
  <slot v-else></slot>
@@ -1,406 +0,0 @@
1
- //
2
- //
3
- //
4
- //
5
- //
6
- //
7
- //
8
- //
9
-
10
- var script = {
11
- name: 'VsLoader',
12
- props: {
13
- color: {
14
- type: String,
15
- default: '#1f73b7',
16
- },
17
- size: {
18
- type: String,
19
- default: '40px',
20
- },
21
- margin: {
22
- type: String,
23
- default: '3px',
24
- },
25
- radius: {
26
- type: String,
27
- default: '100%',
28
- },
29
- },
30
- data: function data() {
31
- return {
32
- spinnerStyle: {
33
- backgroundColor: this.color,
34
- width: this.size,
35
- height: this.size,
36
- margin: this.margin,
37
- borderRadius: this.radius,
38
- display: 'inline-block',
39
- animationName: 'v-pulseStretchDelay',
40
- animationDuration: '0.75s',
41
- animationIterationCount: 'infinite',
42
- animationTimingFunction: 'cubic-bezier(.2,.68,.18,1.08)',
43
- animationFillMode: 'both',
44
- },
45
- spinnerDelay1: {
46
- animationDelay: '0.12s',
47
- },
48
- spinnerDelay2: {
49
- animationDelay: '0.24s',
50
- },
51
- spinnerDelay3: {
52
- animationDelay: '0.36s',
53
- },
54
- };
55
- },
56
- };
57
-
58
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
59
- if (typeof shadowMode !== 'boolean') {
60
- createInjectorSSR = createInjector;
61
- createInjector = shadowMode;
62
- shadowMode = false;
63
- }
64
- // Vue.extend constructor export interop.
65
- var options = typeof script === 'function' ? script.options : script;
66
- // render functions
67
- if (template && template.render) {
68
- options.render = template.render;
69
- options.staticRenderFns = template.staticRenderFns;
70
- options._compiled = true;
71
- // functional template
72
- if (isFunctionalTemplate) {
73
- options.functional = true;
74
- }
75
- }
76
- // scopedId
77
- if (scopeId) {
78
- options._scopeId = scopeId;
79
- }
80
- var hook;
81
- if (moduleIdentifier) {
82
- // server build
83
- hook = function (context) {
84
- // 2.3 injection
85
- context =
86
- context || // cached call
87
- (this.$vnode && this.$vnode.ssrContext) || // stateful
88
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
89
- // 2.2 with runInNewContext: true
90
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
91
- context = __VUE_SSR_CONTEXT__;
92
- }
93
- // inject component styles
94
- if (style) {
95
- style.call(this, createInjectorSSR(context));
96
- }
97
- // register component module identifier for async chunk inference
98
- if (context && context._registeredComponents) {
99
- context._registeredComponents.add(moduleIdentifier);
100
- }
101
- };
102
- // used by ssr in case component is cached and beforeCreate
103
- // never gets called
104
- options._ssrRegister = hook;
105
- }
106
- else if (style) {
107
- hook = shadowMode
108
- ? function (context) {
109
- style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
110
- }
111
- : function (context) {
112
- style.call(this, createInjector(context));
113
- };
114
- }
115
- if (hook) {
116
- if (options.functional) {
117
- // register for functional component in vue file
118
- var originalRender = options.render;
119
- options.render = function renderWithStyleInjection(h, context) {
120
- hook.call(context);
121
- return originalRender(h, context);
122
- };
123
- }
124
- else {
125
- // inject component registration as beforeCreate hook
126
- var existing = options.beforeCreate;
127
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
128
- }
129
- }
130
- return script;
131
- }
132
-
133
- var isOldIE = typeof navigator !== 'undefined' &&
134
- /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
135
- function createInjector(context) {
136
- return function (id, style) { return addStyle(id, style); };
137
- }
138
- var HEAD;
139
- var styles = {};
140
- function addStyle(id, css) {
141
- var group = isOldIE ? css.media || 'default' : id;
142
- var style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
143
- if (!style.ids.has(id)) {
144
- style.ids.add(id);
145
- var code = css.source;
146
- if (css.map) {
147
- // https://developer.chrome.com/devtools/docs/javascript-debugging
148
- // this makes source maps inside style tags work properly in Chrome
149
- code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
150
- // http://stackoverflow.com/a/26603875
151
- code +=
152
- '\n/*# sourceMappingURL=data:application/json;base64,' +
153
- btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
154
- ' */';
155
- }
156
- if (!style.element) {
157
- style.element = document.createElement('style');
158
- style.element.type = 'text/css';
159
- if (css.media)
160
- { style.element.setAttribute('media', css.media); }
161
- if (HEAD === undefined) {
162
- HEAD = document.head || document.getElementsByTagName('head')[0];
163
- }
164
- HEAD.appendChild(style.element);
165
- }
166
- if ('styleSheet' in style.element) {
167
- style.styles.push(code);
168
- style.element.styleSheet.cssText = style.styles
169
- .filter(Boolean)
170
- .join('\n');
171
- }
172
- else {
173
- var index = style.ids.size - 1;
174
- var textNode = document.createTextNode(code);
175
- var nodes = style.element.childNodes;
176
- if (nodes[index])
177
- { style.element.removeChild(nodes[index]); }
178
- if (nodes.length)
179
- { style.element.insertBefore(textNode, nodes[index]); }
180
- else
181
- { style.element.appendChild(textNode); }
182
- }
183
- }
184
- }
185
-
186
- /* script */
187
- var __vue_script__ = script;
188
-
189
- /* template */
190
- var __vue_render__ = function() {
191
- var _vm = this;
192
- var _h = _vm.$createElement;
193
- var _c = _vm._self._c || _h;
194
- return _c("div", { staticClass: "vs-loader" }, [
195
- _c("div", { style: [_vm.spinnerStyle, _vm.spinnerDelay1] }),
196
- _vm._v(" "),
197
- _c("div", { style: [_vm.spinnerStyle, _vm.spinnerDelay2] }),
198
- _vm._v(" "),
199
- _c("div", { style: [_vm.spinnerStyle, _vm.spinnerDelay3] })
200
- ])
201
- };
202
- var __vue_staticRenderFns__ = [];
203
- __vue_render__._withStripped = true;
204
-
205
- /* style */
206
- var __vue_inject_styles__ = function (inject) {
207
- if (!inject) { return }
208
- inject("data-v-815feb5a_0", { source: "@-webkit-keyframes v-pulseStretchDelay {\n0%, 80% {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-opacity: 1;\n opacity: 1;\n}\n45% {\n -webkit-transform: scale(0.1);\n transform: scale(0.1);\n -webkit-opacity: 0.7;\n opacity: 0.7;\n}\n}\n@keyframes v-pulseStretchDelay {\n0%, 80% {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-opacity: 1;\n opacity: 1;\n}\n45% {\n -webkit-transform: scale(0.1);\n transform: scale(0.1);\n -webkit-opacity: 0.7;\n opacity: 0.7;\n}\n}", map: undefined, media: undefined });
209
-
210
- };
211
- /* scoped */
212
- var __vue_scope_id__ = undefined;
213
- /* module identifier */
214
- var __vue_module_identifier__ = undefined;
215
- /* functional template */
216
- var __vue_is_functional_template__ = false;
217
- /* style inject SSR */
218
-
219
- /* style inject shadow dom */
220
-
221
-
222
-
223
- var __vue_component__ = /*#__PURE__*/normalizeComponent(
224
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
225
- __vue_inject_styles__,
226
- __vue_script__,
227
- __vue_scope_id__,
228
- __vue_is_functional_template__,
229
- __vue_module_identifier__,
230
- false,
231
- createInjector,
232
- undefined,
233
- undefined
234
- );
235
-
236
- //
237
-
238
- var script$1 = {
239
- name: 'VsButton',
240
-
241
- components: {
242
- VsLoader: __vue_component__,
243
- },
244
-
245
- props: {
246
- variant: {
247
- type: String,
248
- default: 'primary',
249
- },
250
- // small. medium, large
251
- size: {
252
- type: String,
253
- default: 'medium',
254
- },
255
- fill: {
256
- type: Boolean,
257
- default: false,
258
- },
259
- isRound: {
260
- type: Boolean,
261
- default: false,
262
- },
263
- isLoading: {
264
- type: Boolean,
265
- default: false,
266
- },
267
- loaderSize: {
268
- type: String,
269
- default: '8px',
270
- },
271
- loaderColor: {
272
- type: String,
273
- default: '#1f73b7',
274
- },
275
- disabled: {
276
- type: [Boolean, String],
277
- default: false,
278
- },
279
- href: {
280
- type: String,
281
- },
282
- target: {
283
- type: String,
284
- },
285
- rel: {
286
- type: String,
287
- },
288
- },
289
-
290
- computed: {
291
- classList: function classList() {
292
- return [
293
- [this.variant === 'link' ? 'vs-button__link' : ("vs-button__" + (this.variant) + (this.fill ? '-fill' : ''))],
294
- ("vs-button--" + (this.size)),
295
- { 'vs-button--loading': this.isLoading },
296
- { 'vs-button--round': this.isRound } ];
297
- },
298
-
299
- isLink: function isLink() {
300
- return this.variant === 'link' || !!this.href ? 'a' : 'button';
301
- },
302
- },
303
-
304
- methods: {
305
- emitClick: function emitClick() {
306
- if (!this.isLoading || !this.disabled) {
307
- this.$emit('click');
308
- }
309
- },
310
- },
311
- };
312
-
313
- /* script */
314
- var __vue_script__$1 = script$1;
315
-
316
- /* template */
317
- var __vue_render__$1 = function() {
318
- var _vm = this;
319
- var _h = _vm.$createElement;
320
- var _c = _vm._self._c || _h;
321
- return _c(
322
- _vm.isLink,
323
- {
324
- tag: "component",
325
- class: ["vs-button", _vm.classList],
326
- attrs: {
327
- role: _vm.href ? "button" : false,
328
- href: _vm.href,
329
- target: _vm.target,
330
- rel: _vm.rel,
331
- type: _vm.isLink ? "button" : false,
332
- disabled: _vm.disabled || _vm.isLoading
333
- },
334
- on: { click: _vm.emitClick }
335
- },
336
- [
337
- _vm.isLoading
338
- ? _c("vs-loader", {
339
- attrs: { size: _vm.loaderSize, color: _vm.loaderColor }
340
- })
341
- : _vm._t("default")
342
- ],
343
- 2
344
- )
345
- };
346
- var __vue_staticRenderFns__$1 = [];
347
- __vue_render__$1._withStripped = true;
348
-
349
- /* style */
350
- var __vue_inject_styles__$1 = function (inject) {
351
- if (!inject) { return }
352
- inject("data-v-bc6d4844_0", { source: ".vs-button {\n border-radius: 4px;\n font-weight: 400;\n box-sizing: border-box;\n user-select: none;\n padding: 0 1.07143em;\n display: inline-flex;\n -webkit-box-align: center;\n align-items: center;\n -webkit-box-pack: center;\n justify-content: center;\n transition: border-color 0.25s ease-in-out 0s, box-shadow 0.1s ease-in-out 0s, background-color 0.25s ease-in-out 0s, color 0.25s ease-in-out 0s;\n margin: 0px;\n cursor: pointer;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.vs-button .vs-loader {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.vs-button.vs-button--small {\n height: 32px;\n line-height: 30px;\n font-size: 12px;\n}\n.vs-button.vs-button--medium {\n height: 40px;\n line-height: 38px;\n font-size: 14px;\n}\n.vs-button.vs-button--large {\n height: 48px;\n line-height: 46px;\n font-size: 14px;\n}\n.vs-button.vs-button--round {\n border-radius: 50px;\n}\n.vs-button.vs-button__primary, .vs-button.vs-button__primary:hover, .vs-button.vs-button__primary:focus {\n background: transparent;\n color: #1f73b7;\n border: solid 1px #1f73b7;\n}\n.vs-button.vs-button__primary:hover, .vs-button.vs-button__primary:hover:hover, .vs-button.vs-button__primary:focus:hover {\n border-color: #18588b;\n background: #f2f8fd;\n color: #18588b;\n}\n.vs-button.vs-button__primary:active, .vs-button.vs-button__primary:hover:active, .vs-button.vs-button__primary:focus:active {\n border-color: #103c60;\n background: #dcecf9;\n color: #103c60;\n}\n.vs-button.vs-button__primary:focus-visible, .vs-button.vs-button__primary:hover:focus-visible, .vs-button.vs-button__primary:focus:focus-visible {\n border-color: #18588b;\n box-shadow: 0 0 0 0.2rem #85bdea;\n outline: 0;\n}\n.vs-button.vs-button__primary:disabled, .vs-button.vs-button__primary.vs-button--loading, .vs-button.vs-button__primary:hover:disabled, .vs-button.vs-button__primary:hover.vs-button--loading, .vs-button.vs-button__primary:focus:disabled, .vs-button.vs-button__primary:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__primary-fill, .vs-button.vs-button__primary-fill:focus {\n background: #1f73b7;\n color: #ffffff;\n border: solid 1px #1f73b7;\n}\n.vs-button.vs-button__primary-fill:hover, .vs-button.vs-button__primary-fill:focus:hover {\n border-color: #18588b;\n background: #18588b;\n}\n.vs-button.vs-button__primary-fill:active, .vs-button.vs-button__primary-fill:focus:active {\n border-color: #103c60;\n background: #144a76;\n}\n.vs-button.vs-button__primary-fill:focus-visible, .vs-button.vs-button__primary-fill:focus:focus-visible {\n border-color: #18588b;\n box-shadow: 0 0 0 0.2rem #85bdea;\n outline: 0;\n}\n.vs-button.vs-button__primary-fill:disabled, .vs-button.vs-button__primary-fill.vs-button--loading, .vs-button.vs-button__primary-fill:focus:disabled, .vs-button.vs-button__primary-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__success, .vs-button.vs-button__success:hover, .vs-button.vs-button__success:focus {\n background: transparent;\n color: #28a745;\n border: solid 1px #28a745;\n}\n.vs-button.vs-button__success:hover, .vs-button.vs-button__success:hover:hover, .vs-button.vs-button__success:focus:hover {\n border-color: #1e7e34;\n background: #edfbf0;\n color: #1e7e34;\n}\n.vs-button.vs-button__success:active, .vs-button.vs-button__success:hover:active, .vs-button.vs-button__success:focus:active {\n border-color: #145523;\n background: #d8f6df;\n color: #145523;\n}\n.vs-button.vs-button__success:focus-visible, .vs-button.vs-button__success:hover:focus-visible, .vs-button.vs-button__success:focus:focus-visible {\n border-color: #1e7e34;\n box-shadow: 0 0 0 0.2rem #86e29b;\n outline: 0;\n}\n.vs-button.vs-button__success:disabled, .vs-button.vs-button__success.vs-button--loading, .vs-button.vs-button__success:hover:disabled, .vs-button.vs-button__success:hover.vs-button--loading, .vs-button.vs-button__success:focus:disabled, .vs-button.vs-button__success:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__success-fill, .vs-button.vs-button__success-fill:focus {\n background: #28a745;\n color: #ffffff;\n border: solid 1px #28a745;\n}\n.vs-button.vs-button__success-fill:hover, .vs-button.vs-button__success-fill:focus:hover {\n border-color: #1e7e34;\n background: #1e7e34;\n}\n.vs-button.vs-button__success-fill:active, .vs-button.vs-button__success-fill:focus:active {\n border-color: #145523;\n background: #19692c;\n}\n.vs-button.vs-button__success-fill:focus-visible, .vs-button.vs-button__success-fill:focus:focus-visible {\n border-color: #1e7e34;\n box-shadow: 0 0 0 0.2rem #86e29b;\n outline: 0;\n}\n.vs-button.vs-button__success-fill:disabled, .vs-button.vs-button__success-fill.vs-button--loading, .vs-button.vs-button__success-fill:focus:disabled, .vs-button.vs-button__success-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__danger, .vs-button.vs-button__danger:hover, .vs-button.vs-button__danger:focus {\n background: transparent;\n color: #cc3340;\n border: solid 1px #cc3340;\n}\n.vs-button.vs-button__danger:hover, .vs-button.vs-button__danger:hover:hover, .vs-button.vs-button__danger:focus:hover {\n border-color: #a32933;\n background: #faebec;\n color: #a32933;\n}\n.vs-button.vs-button__danger:active, .vs-button.vs-button__danger:hover:active, .vs-button.vs-button__danger:focus:active {\n border-color: #7a1f26;\n background: white;\n color: #7a1f26;\n}\n.vs-button.vs-button__danger:focus-visible, .vs-button.vs-button__danger:hover:focus-visible, .vs-button.vs-button__danger:focus:focus-visible {\n border-color: #a32933;\n box-shadow: 0 0 0 0.2rem #ebadb3;\n outline: 0;\n}\n.vs-button.vs-button__danger:disabled, .vs-button.vs-button__danger.vs-button--loading, .vs-button.vs-button__danger:hover:disabled, .vs-button.vs-button__danger:hover.vs-button--loading, .vs-button.vs-button__danger:focus:disabled, .vs-button.vs-button__danger:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__danger-fill, .vs-button.vs-button__danger-fill:focus {\n background: #cc3340;\n color: #ffffff;\n border: solid 1px #cc3340;\n}\n.vs-button.vs-button__danger-fill:hover, .vs-button.vs-button__danger-fill:focus:hover {\n border-color: #a32933;\n background: #a32933;\n}\n.vs-button.vs-button__danger-fill:active, .vs-button.vs-button__danger-fill:focus:active {\n border-color: #7a1f26;\n background: #8f242d;\n}\n.vs-button.vs-button__danger-fill:focus-visible, .vs-button.vs-button__danger-fill:focus:focus-visible {\n border-color: #a32933;\n box-shadow: 0 0 0 0.2rem #ebadb3;\n outline: 0;\n}\n.vs-button.vs-button__danger-fill:disabled, .vs-button.vs-button__danger-fill.vs-button--loading, .vs-button.vs-button__danger-fill:focus:disabled, .vs-button.vs-button__danger-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__warning, .vs-button.vs-button__warning:hover, .vs-button.vs-button__warning:focus {\n background: transparent;\n color: #ffb057;\n border: solid 1px #ffb057;\n}\n.vs-button.vs-button__warning:hover, .vs-button.vs-button__warning:hover:hover, .vs-button.vs-button__warning:focus:hover {\n border-color: #ff9824;\n background: #fff8f0;\n color: #ff9824;\n}\n.vs-button.vs-button__warning:active, .vs-button.vs-button__warning:hover:active, .vs-button.vs-button__warning:focus:active {\n border-color: #f07f00;\n background: white;\n color: #f07f00;\n}\n.vs-button.vs-button__warning:focus-visible, .vs-button.vs-button__warning:hover:focus-visible, .vs-button.vs-button__warning:focus:focus-visible {\n border-color: #ff9824;\n box-shadow: 0 0 0 0.2rem #fff8f0;\n outline: 0;\n}\n.vs-button.vs-button__warning:disabled, .vs-button.vs-button__warning.vs-button--loading, .vs-button.vs-button__warning:hover:disabled, .vs-button.vs-button__warning:hover.vs-button--loading, .vs-button.vs-button__warning:focus:disabled, .vs-button.vs-button__warning:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__warning-fill, .vs-button.vs-button__warning-fill:focus {\n background: #ffb057;\n color: #703815;\n border: solid 1px #ffb057;\n}\n.vs-button.vs-button__warning-fill:hover, .vs-button.vs-button__warning-fill:focus:hover {\n border-color: #ff9824;\n background: #ff9824;\n}\n.vs-button.vs-button__warning-fill:active, .vs-button.vs-button__warning-fill:focus:active {\n border-color: #f07f00;\n background: #ff8c0b;\n}\n.vs-button.vs-button__warning-fill:focus-visible, .vs-button.vs-button__warning-fill:focus:focus-visible {\n border-color: #ff9824;\n box-shadow: 0 0 0 0.2rem #fff8f0;\n outline: 0;\n}\n.vs-button.vs-button__warning-fill:disabled, .vs-button.vs-button__warning-fill.vs-button--loading, .vs-button.vs-button__warning-fill:focus:disabled, .vs-button.vs-button__warning-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__secondary, .vs-button.vs-button__secondary:hover, .vs-button.vs-button__secondary:focus {\n background: transparent;\n color: #6c757d;\n border: solid 1px #6c757d;\n}\n.vs-button.vs-button__secondary:hover, .vs-button.vs-button__secondary:hover:hover, .vs-button.vs-button__secondary:focus:hover {\n border-color: #545b62;\n background: #f3f4f5;\n color: #545b62;\n}\n.vs-button.vs-button__secondary:active, .vs-button.vs-button__secondary:hover:active, .vs-button.vs-button__secondary:focus:active {\n border-color: #3d4246;\n background: #f3f4f5;\n color: #3d4246;\n}\n.vs-button.vs-button__secondary:focus-visible, .vs-button.vs-button__secondary:hover:focus-visible, .vs-button.vs-button__secondary:focus:focus-visible {\n border-color: #545b62;\n box-shadow: 0 0 0 0.2rem #bcc1c6;\n outline: 0;\n}\n.vs-button.vs-button__secondary:disabled, .vs-button.vs-button__secondary.vs-button--loading, .vs-button.vs-button__secondary:hover:disabled, .vs-button.vs-button__secondary:hover.vs-button--loading, .vs-button.vs-button__secondary:focus:disabled, .vs-button.vs-button__secondary:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__secondary-fill, .vs-button.vs-button__secondary-fill:focus {\n background: #6c757d;\n color: #ffffff;\n border: solid 1px #6c757d;\n}\n.vs-button.vs-button__secondary-fill:hover, .vs-button.vs-button__secondary-fill:focus:hover {\n border-color: #545b62;\n background: #545b62;\n}\n.vs-button.vs-button__secondary-fill:active, .vs-button.vs-button__secondary-fill:focus:active {\n border-color: #3d4246;\n background: #494f54;\n}\n.vs-button.vs-button__secondary-fill:focus-visible, .vs-button.vs-button__secondary-fill:focus:focus-visible {\n border-color: #545b62;\n box-shadow: 0 0 0 0.2rem #bcc1c6;\n outline: 0;\n}\n.vs-button.vs-button__secondary-fill:disabled, .vs-button.vs-button__secondary-fill.vs-button--loading, .vs-button.vs-button__secondary-fill:focus:disabled, .vs-button.vs-button__secondary-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__light, .vs-button.vs-button__light:hover, .vs-button.vs-button__light:focus {\n background: transparent;\n color: #f8f9fa;\n border: solid 1px #f8f9fa;\n}\n.vs-button.vs-button__light:hover, .vs-button.vs-button__light:hover:hover, .vs-button.vs-button__light:focus:hover {\n border-color: #dae0e5;\n background: white;\n color: #dae0e5;\n}\n.vs-button.vs-button__light:active, .vs-button.vs-button__light:hover:active, .vs-button.vs-button__light:focus:active {\n border-color: #bdc6d0;\n background: white;\n color: #bdc6d0;\n}\n.vs-button.vs-button__light:focus-visible, .vs-button.vs-button__light:hover:focus-visible, .vs-button.vs-button__light:focus:focus-visible {\n border-color: #dae0e5;\n box-shadow: 0 0 0 0.2rem white;\n outline: 0;\n}\n.vs-button.vs-button__light:disabled, .vs-button.vs-button__light.vs-button--loading, .vs-button.vs-button__light:hover:disabled, .vs-button.vs-button__light:hover.vs-button--loading, .vs-button.vs-button__light:focus:disabled, .vs-button.vs-button__light:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__light-fill, .vs-button.vs-button__light-fill:focus {\n background: #f8f9fa;\n color: #212529;\n border: solid 1px #f8f9fa;\n}\n.vs-button.vs-button__light-fill:hover, .vs-button.vs-button__light-fill:focus:hover {\n border-color: #dae0e5;\n background: #dae0e5;\n}\n.vs-button.vs-button__light-fill:active, .vs-button.vs-button__light-fill:focus:active {\n border-color: #bdc6d0;\n background: #cbd3da;\n}\n.vs-button.vs-button__light-fill:focus-visible, .vs-button.vs-button__light-fill:focus:focus-visible {\n border-color: #dae0e5;\n box-shadow: 0 0 0 0.2rem white;\n outline: 0;\n}\n.vs-button.vs-button__light-fill:disabled, .vs-button.vs-button__light-fill.vs-button--loading, .vs-button.vs-button__light-fill:focus:disabled, .vs-button.vs-button__light-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__link {\n background: transparent;\n color: #1f73b7;\n border: none;\n padding: 0;\n}\n.vs-button.vs-button__link:hover {\n text-decoration: underline;\n}", map: undefined, media: undefined });
353
-
354
- };
355
- /* scoped */
356
- var __vue_scope_id__$1 = undefined;
357
- /* module identifier */
358
- var __vue_module_identifier__$1 = undefined;
359
- /* functional template */
360
- var __vue_is_functional_template__$1 = false;
361
- /* style inject SSR */
362
-
363
- /* style inject shadow dom */
364
-
365
-
366
-
367
- var __vue_component__$1 = /*#__PURE__*/normalizeComponent(
368
- { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
369
- __vue_inject_styles__$1,
370
- __vue_script__$1,
371
- __vue_scope_id__$1,
372
- __vue_is_functional_template__$1,
373
- __vue_module_identifier__$1,
374
- false,
375
- createInjector,
376
- undefined,
377
- undefined
378
- );
379
-
380
- // Import vue component
381
-
382
- // Declare install function executed by Vue.use()
383
- function install(Vue) {
384
- if (install.installed) { return; }
385
- install.installed = true;
386
- Vue.component('VsButton', __vue_component__$1);
387
- }
388
-
389
- // Create module definition for Vue.use()
390
- var plugin = {
391
- install: install,
392
- };
393
-
394
- // Auto-install when vue is found (eg. in browser via <script> tag)
395
- var GlobalVue = null;
396
- if (typeof window !== 'undefined') {
397
- GlobalVue = window.Vue;
398
- } else if (typeof global !== 'undefined') {
399
- GlobalVue = global.Vue;
400
- }
401
- if (GlobalVue) {
402
- GlobalVue.use(plugin);
403
- }
404
-
405
- export default __vue_component__$1;
406
- export { install };
@@ -1 +0,0 @@
1
- var VsButton=function(n){"use strict";var t={name:"VsLoader",props:{color:{type:String,default:"#1f73b7"},size:{type:String,default:"40px"},margin:{type:String,default:"3px"},radius:{type:String,default:"100%"}},data:function(){return{spinnerStyle:{backgroundColor:this.color,width:this.size,height:this.size,margin:this.margin,borderRadius:this.radius,display:"inline-block",animationName:"v-pulseStretchDelay",animationDuration:"0.75s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.2,.68,.18,1.08)",animationFillMode:"both"},spinnerDelay1:{animationDelay:"0.12s"},spinnerDelay2:{animationDelay:"0.24s"},spinnerDelay3:{animationDelay:"0.36s"}}}};function o(n,t,o,s,e,r,u,b,i,v){"boolean"!=typeof u&&(i=b,b=u,u=!1);var a,c="function"==typeof o?o.options:o;if(n&&n.render&&(c.render=n.render,c.staticRenderFns=n.staticRenderFns,c._compiled=!0,e&&(c.functional=!0)),s&&(c._scopeId=s),r?(a=function(n){(n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(n=__VUE_SSR_CONTEXT__),t&&t.call(this,i(n)),n&&n._registeredComponents&&n._registeredComponents.add(r)},c._ssrRegister=a):t&&(a=u?function(n){t.call(this,v(n,this.$root.$options.shadowRoot))}:function(n){t.call(this,b(n))}),a)if(c.functional){var l=c.render;c.render=function(n,t){return a.call(t),l(n,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,a):[a]}return o}var s,e="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function r(n){return function(n,t){return function(n,t){var o=e?t.media||"default":n,r=u[o]||(u[o]={ids:new Set,styles:[]});if(!r.ids.has(n)){r.ids.add(n);var b=t.source;if(t.map&&(b+="\n/*# sourceURL="+t.map.sources[0]+" */",b+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),r.element||(r.element=document.createElement("style"),r.element.type="text/css",t.media&&r.element.setAttribute("media",t.media),void 0===s&&(s=document.head||document.getElementsByTagName("head")[0]),s.appendChild(r.element)),"styleSheet"in r.element)r.styles.push(b),r.element.styleSheet.cssText=r.styles.filter(Boolean).join("\n");else{var i=r.ids.size-1,v=document.createTextNode(b),a=r.element.childNodes;a[i]&&r.element.removeChild(a[i]),a.length?r.element.insertBefore(v,a[i]):r.element.appendChild(v)}}}(n,t)}}var u={};var b=t,i=function(){var n=this,t=n.$createElement,o=n._self._c||t;return o("div",{staticClass:"vs-loader"},[o("div",{style:[n.spinnerStyle,n.spinnerDelay1]}),n._v(" "),o("div",{style:[n.spinnerStyle,n.spinnerDelay2]}),n._v(" "),o("div",{style:[n.spinnerStyle,n.spinnerDelay3]})])};i._withStripped=!0;var v={name:"VsButton",components:{VsLoader:o({render:i,staticRenderFns:[]},(function(n){n&&n("data-v-815feb5a_0",{source:"@-webkit-keyframes v-pulseStretchDelay {\n0%, 80% {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-opacity: 1;\n opacity: 1;\n}\n45% {\n -webkit-transform: scale(0.1);\n transform: scale(0.1);\n -webkit-opacity: 0.7;\n opacity: 0.7;\n}\n}\n@keyframes v-pulseStretchDelay {\n0%, 80% {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-opacity: 1;\n opacity: 1;\n}\n45% {\n -webkit-transform: scale(0.1);\n transform: scale(0.1);\n -webkit-opacity: 0.7;\n opacity: 0.7;\n}\n}",map:void 0,media:void 0})}),b,void 0,!1,void 0,!1,r,void 0,void 0)},props:{variant:{type:String,default:"primary"},size:{type:String,default:"medium"},fill:{type:Boolean,default:!1},isRound:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1},loaderSize:{type:String,default:"8px"},loaderColor:{type:String,default:"#1f73b7"},disabled:{type:[Boolean,String],default:!1},href:{type:String},target:{type:String},rel:{type:String}},computed:{classList:function(){return[["link"===this.variant?"vs-button__link":"vs-button__"+this.variant+(this.fill?"-fill":"")],"vs-button--"+this.size,{"vs-button--loading":this.isLoading},{"vs-button--round":this.isRound}]},isLink:function(){return"link"===this.variant||this.href?"a":"button"}},methods:{emitClick:function(){this.isLoading&&this.disabled||this.$emit("click")}}},a=function(){var n=this,t=n.$createElement,o=n._self._c||t;return o(n.isLink,{tag:"component",class:["vs-button",n.classList],attrs:{role:!!n.href&&"button",href:n.href,target:n.target,rel:n.rel,type:!!n.isLink&&"button",disabled:n.disabled||n.isLoading},on:{click:n.emitClick}},[n.isLoading?o("vs-loader",{attrs:{size:n.loaderSize,color:n.loaderColor}}):n._t("default")],2)};a._withStripped=!0;var c=o({render:a,staticRenderFns:[]},(function(n){n&&n("data-v-bc6d4844_0",{source:".vs-button {\n border-radius: 4px;\n font-weight: 400;\n box-sizing: border-box;\n user-select: none;\n padding: 0 1.07143em;\n display: inline-flex;\n -webkit-box-align: center;\n align-items: center;\n -webkit-box-pack: center;\n justify-content: center;\n transition: border-color 0.25s ease-in-out 0s, box-shadow 0.1s ease-in-out 0s, background-color 0.25s ease-in-out 0s, color 0.25s ease-in-out 0s;\n margin: 0px;\n cursor: pointer;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.vs-button .vs-loader {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.vs-button.vs-button--small {\n height: 32px;\n line-height: 30px;\n font-size: 12px;\n}\n.vs-button.vs-button--medium {\n height: 40px;\n line-height: 38px;\n font-size: 14px;\n}\n.vs-button.vs-button--large {\n height: 48px;\n line-height: 46px;\n font-size: 14px;\n}\n.vs-button.vs-button--round {\n border-radius: 50px;\n}\n.vs-button.vs-button__primary, .vs-button.vs-button__primary:hover, .vs-button.vs-button__primary:focus {\n background: transparent;\n color: #1f73b7;\n border: solid 1px #1f73b7;\n}\n.vs-button.vs-button__primary:hover, .vs-button.vs-button__primary:hover:hover, .vs-button.vs-button__primary:focus:hover {\n border-color: #18588b;\n background: #f2f8fd;\n color: #18588b;\n}\n.vs-button.vs-button__primary:active, .vs-button.vs-button__primary:hover:active, .vs-button.vs-button__primary:focus:active {\n border-color: #103c60;\n background: #dcecf9;\n color: #103c60;\n}\n.vs-button.vs-button__primary:focus-visible, .vs-button.vs-button__primary:hover:focus-visible, .vs-button.vs-button__primary:focus:focus-visible {\n border-color: #18588b;\n box-shadow: 0 0 0 0.2rem #85bdea;\n outline: 0;\n}\n.vs-button.vs-button__primary:disabled, .vs-button.vs-button__primary.vs-button--loading, .vs-button.vs-button__primary:hover:disabled, .vs-button.vs-button__primary:hover.vs-button--loading, .vs-button.vs-button__primary:focus:disabled, .vs-button.vs-button__primary:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__primary-fill, .vs-button.vs-button__primary-fill:focus {\n background: #1f73b7;\n color: #ffffff;\n border: solid 1px #1f73b7;\n}\n.vs-button.vs-button__primary-fill:hover, .vs-button.vs-button__primary-fill:focus:hover {\n border-color: #18588b;\n background: #18588b;\n}\n.vs-button.vs-button__primary-fill:active, .vs-button.vs-button__primary-fill:focus:active {\n border-color: #103c60;\n background: #144a76;\n}\n.vs-button.vs-button__primary-fill:focus-visible, .vs-button.vs-button__primary-fill:focus:focus-visible {\n border-color: #18588b;\n box-shadow: 0 0 0 0.2rem #85bdea;\n outline: 0;\n}\n.vs-button.vs-button__primary-fill:disabled, .vs-button.vs-button__primary-fill.vs-button--loading, .vs-button.vs-button__primary-fill:focus:disabled, .vs-button.vs-button__primary-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__success, .vs-button.vs-button__success:hover, .vs-button.vs-button__success:focus {\n background: transparent;\n color: #28a745;\n border: solid 1px #28a745;\n}\n.vs-button.vs-button__success:hover, .vs-button.vs-button__success:hover:hover, .vs-button.vs-button__success:focus:hover {\n border-color: #1e7e34;\n background: #edfbf0;\n color: #1e7e34;\n}\n.vs-button.vs-button__success:active, .vs-button.vs-button__success:hover:active, .vs-button.vs-button__success:focus:active {\n border-color: #145523;\n background: #d8f6df;\n color: #145523;\n}\n.vs-button.vs-button__success:focus-visible, .vs-button.vs-button__success:hover:focus-visible, .vs-button.vs-button__success:focus:focus-visible {\n border-color: #1e7e34;\n box-shadow: 0 0 0 0.2rem #86e29b;\n outline: 0;\n}\n.vs-button.vs-button__success:disabled, .vs-button.vs-button__success.vs-button--loading, .vs-button.vs-button__success:hover:disabled, .vs-button.vs-button__success:hover.vs-button--loading, .vs-button.vs-button__success:focus:disabled, .vs-button.vs-button__success:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__success-fill, .vs-button.vs-button__success-fill:focus {\n background: #28a745;\n color: #ffffff;\n border: solid 1px #28a745;\n}\n.vs-button.vs-button__success-fill:hover, .vs-button.vs-button__success-fill:focus:hover {\n border-color: #1e7e34;\n background: #1e7e34;\n}\n.vs-button.vs-button__success-fill:active, .vs-button.vs-button__success-fill:focus:active {\n border-color: #145523;\n background: #19692c;\n}\n.vs-button.vs-button__success-fill:focus-visible, .vs-button.vs-button__success-fill:focus:focus-visible {\n border-color: #1e7e34;\n box-shadow: 0 0 0 0.2rem #86e29b;\n outline: 0;\n}\n.vs-button.vs-button__success-fill:disabled, .vs-button.vs-button__success-fill.vs-button--loading, .vs-button.vs-button__success-fill:focus:disabled, .vs-button.vs-button__success-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__danger, .vs-button.vs-button__danger:hover, .vs-button.vs-button__danger:focus {\n background: transparent;\n color: #cc3340;\n border: solid 1px #cc3340;\n}\n.vs-button.vs-button__danger:hover, .vs-button.vs-button__danger:hover:hover, .vs-button.vs-button__danger:focus:hover {\n border-color: #a32933;\n background: #faebec;\n color: #a32933;\n}\n.vs-button.vs-button__danger:active, .vs-button.vs-button__danger:hover:active, .vs-button.vs-button__danger:focus:active {\n border-color: #7a1f26;\n background: white;\n color: #7a1f26;\n}\n.vs-button.vs-button__danger:focus-visible, .vs-button.vs-button__danger:hover:focus-visible, .vs-button.vs-button__danger:focus:focus-visible {\n border-color: #a32933;\n box-shadow: 0 0 0 0.2rem #ebadb3;\n outline: 0;\n}\n.vs-button.vs-button__danger:disabled, .vs-button.vs-button__danger.vs-button--loading, .vs-button.vs-button__danger:hover:disabled, .vs-button.vs-button__danger:hover.vs-button--loading, .vs-button.vs-button__danger:focus:disabled, .vs-button.vs-button__danger:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__danger-fill, .vs-button.vs-button__danger-fill:focus {\n background: #cc3340;\n color: #ffffff;\n border: solid 1px #cc3340;\n}\n.vs-button.vs-button__danger-fill:hover, .vs-button.vs-button__danger-fill:focus:hover {\n border-color: #a32933;\n background: #a32933;\n}\n.vs-button.vs-button__danger-fill:active, .vs-button.vs-button__danger-fill:focus:active {\n border-color: #7a1f26;\n background: #8f242d;\n}\n.vs-button.vs-button__danger-fill:focus-visible, .vs-button.vs-button__danger-fill:focus:focus-visible {\n border-color: #a32933;\n box-shadow: 0 0 0 0.2rem #ebadb3;\n outline: 0;\n}\n.vs-button.vs-button__danger-fill:disabled, .vs-button.vs-button__danger-fill.vs-button--loading, .vs-button.vs-button__danger-fill:focus:disabled, .vs-button.vs-button__danger-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__warning, .vs-button.vs-button__warning:hover, .vs-button.vs-button__warning:focus {\n background: transparent;\n color: #ffb057;\n border: solid 1px #ffb057;\n}\n.vs-button.vs-button__warning:hover, .vs-button.vs-button__warning:hover:hover, .vs-button.vs-button__warning:focus:hover {\n border-color: #ff9824;\n background: #fff8f0;\n color: #ff9824;\n}\n.vs-button.vs-button__warning:active, .vs-button.vs-button__warning:hover:active, .vs-button.vs-button__warning:focus:active {\n border-color: #f07f00;\n background: white;\n color: #f07f00;\n}\n.vs-button.vs-button__warning:focus-visible, .vs-button.vs-button__warning:hover:focus-visible, .vs-button.vs-button__warning:focus:focus-visible {\n border-color: #ff9824;\n box-shadow: 0 0 0 0.2rem #fff8f0;\n outline: 0;\n}\n.vs-button.vs-button__warning:disabled, .vs-button.vs-button__warning.vs-button--loading, .vs-button.vs-button__warning:hover:disabled, .vs-button.vs-button__warning:hover.vs-button--loading, .vs-button.vs-button__warning:focus:disabled, .vs-button.vs-button__warning:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__warning-fill, .vs-button.vs-button__warning-fill:focus {\n background: #ffb057;\n color: #703815;\n border: solid 1px #ffb057;\n}\n.vs-button.vs-button__warning-fill:hover, .vs-button.vs-button__warning-fill:focus:hover {\n border-color: #ff9824;\n background: #ff9824;\n}\n.vs-button.vs-button__warning-fill:active, .vs-button.vs-button__warning-fill:focus:active {\n border-color: #f07f00;\n background: #ff8c0b;\n}\n.vs-button.vs-button__warning-fill:focus-visible, .vs-button.vs-button__warning-fill:focus:focus-visible {\n border-color: #ff9824;\n box-shadow: 0 0 0 0.2rem #fff8f0;\n outline: 0;\n}\n.vs-button.vs-button__warning-fill:disabled, .vs-button.vs-button__warning-fill.vs-button--loading, .vs-button.vs-button__warning-fill:focus:disabled, .vs-button.vs-button__warning-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__secondary, .vs-button.vs-button__secondary:hover, .vs-button.vs-button__secondary:focus {\n background: transparent;\n color: #6c757d;\n border: solid 1px #6c757d;\n}\n.vs-button.vs-button__secondary:hover, .vs-button.vs-button__secondary:hover:hover, .vs-button.vs-button__secondary:focus:hover {\n border-color: #545b62;\n background: #f3f4f5;\n color: #545b62;\n}\n.vs-button.vs-button__secondary:active, .vs-button.vs-button__secondary:hover:active, .vs-button.vs-button__secondary:focus:active {\n border-color: #3d4246;\n background: #f3f4f5;\n color: #3d4246;\n}\n.vs-button.vs-button__secondary:focus-visible, .vs-button.vs-button__secondary:hover:focus-visible, .vs-button.vs-button__secondary:focus:focus-visible {\n border-color: #545b62;\n box-shadow: 0 0 0 0.2rem #bcc1c6;\n outline: 0;\n}\n.vs-button.vs-button__secondary:disabled, .vs-button.vs-button__secondary.vs-button--loading, .vs-button.vs-button__secondary:hover:disabled, .vs-button.vs-button__secondary:hover.vs-button--loading, .vs-button.vs-button__secondary:focus:disabled, .vs-button.vs-button__secondary:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__secondary-fill, .vs-button.vs-button__secondary-fill:focus {\n background: #6c757d;\n color: #ffffff;\n border: solid 1px #6c757d;\n}\n.vs-button.vs-button__secondary-fill:hover, .vs-button.vs-button__secondary-fill:focus:hover {\n border-color: #545b62;\n background: #545b62;\n}\n.vs-button.vs-button__secondary-fill:active, .vs-button.vs-button__secondary-fill:focus:active {\n border-color: #3d4246;\n background: #494f54;\n}\n.vs-button.vs-button__secondary-fill:focus-visible, .vs-button.vs-button__secondary-fill:focus:focus-visible {\n border-color: #545b62;\n box-shadow: 0 0 0 0.2rem #bcc1c6;\n outline: 0;\n}\n.vs-button.vs-button__secondary-fill:disabled, .vs-button.vs-button__secondary-fill.vs-button--loading, .vs-button.vs-button__secondary-fill:focus:disabled, .vs-button.vs-button__secondary-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__light, .vs-button.vs-button__light:hover, .vs-button.vs-button__light:focus {\n background: transparent;\n color: #f8f9fa;\n border: solid 1px #f8f9fa;\n}\n.vs-button.vs-button__light:hover, .vs-button.vs-button__light:hover:hover, .vs-button.vs-button__light:focus:hover {\n border-color: #dae0e5;\n background: white;\n color: #dae0e5;\n}\n.vs-button.vs-button__light:active, .vs-button.vs-button__light:hover:active, .vs-button.vs-button__light:focus:active {\n border-color: #bdc6d0;\n background: white;\n color: #bdc6d0;\n}\n.vs-button.vs-button__light:focus-visible, .vs-button.vs-button__light:hover:focus-visible, .vs-button.vs-button__light:focus:focus-visible {\n border-color: #dae0e5;\n box-shadow: 0 0 0 0.2rem white;\n outline: 0;\n}\n.vs-button.vs-button__light:disabled, .vs-button.vs-button__light.vs-button--loading, .vs-button.vs-button__light:hover:disabled, .vs-button.vs-button__light:hover.vs-button--loading, .vs-button.vs-button__light:focus:disabled, .vs-button.vs-button__light:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__light-fill, .vs-button.vs-button__light-fill:focus {\n background: #f8f9fa;\n color: #212529;\n border: solid 1px #f8f9fa;\n}\n.vs-button.vs-button__light-fill:hover, .vs-button.vs-button__light-fill:focus:hover {\n border-color: #dae0e5;\n background: #dae0e5;\n}\n.vs-button.vs-button__light-fill:active, .vs-button.vs-button__light-fill:focus:active {\n border-color: #bdc6d0;\n background: #cbd3da;\n}\n.vs-button.vs-button__light-fill:focus-visible, .vs-button.vs-button__light-fill:focus:focus-visible {\n border-color: #dae0e5;\n box-shadow: 0 0 0 0.2rem white;\n outline: 0;\n}\n.vs-button.vs-button__light-fill:disabled, .vs-button.vs-button__light-fill.vs-button--loading, .vs-button.vs-button__light-fill:focus:disabled, .vs-button.vs-button__light-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__link {\n background: transparent;\n color: #1f73b7;\n border: none;\n padding: 0;\n}\n.vs-button.vs-button__link:hover {\n text-decoration: underline;\n}",map:void 0,media:void 0})}),v,void 0,!1,void 0,!1,r,void 0,void 0);function l(n){l.installed||(l.installed=!0,n.component("VsButton",c))}var d={install:l},_=null;return"undefined"!=typeof window?_=window.Vue:"undefined"!=typeof global&&(_=global.Vue),_&&_.use(d),n.default=c,n.install=l,n}({});
@@ -1,416 +0,0 @@
1
- (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
3
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
4
- (global = global || self, factory(global.VsButton = {}));
5
- }(this, (function (exports) { 'use strict';
6
-
7
- //
8
- //
9
- //
10
- //
11
- //
12
- //
13
- //
14
- //
15
-
16
- var script = {
17
- name: 'VsLoader',
18
- props: {
19
- color: {
20
- type: String,
21
- default: '#1f73b7',
22
- },
23
- size: {
24
- type: String,
25
- default: '40px',
26
- },
27
- margin: {
28
- type: String,
29
- default: '3px',
30
- },
31
- radius: {
32
- type: String,
33
- default: '100%',
34
- },
35
- },
36
- data: function data() {
37
- return {
38
- spinnerStyle: {
39
- backgroundColor: this.color,
40
- width: this.size,
41
- height: this.size,
42
- margin: this.margin,
43
- borderRadius: this.radius,
44
- display: 'inline-block',
45
- animationName: 'v-pulseStretchDelay',
46
- animationDuration: '0.75s',
47
- animationIterationCount: 'infinite',
48
- animationTimingFunction: 'cubic-bezier(.2,.68,.18,1.08)',
49
- animationFillMode: 'both',
50
- },
51
- spinnerDelay1: {
52
- animationDelay: '0.12s',
53
- },
54
- spinnerDelay2: {
55
- animationDelay: '0.24s',
56
- },
57
- spinnerDelay3: {
58
- animationDelay: '0.36s',
59
- },
60
- };
61
- },
62
- };
63
-
64
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
65
- if (typeof shadowMode !== 'boolean') {
66
- createInjectorSSR = createInjector;
67
- createInjector = shadowMode;
68
- shadowMode = false;
69
- }
70
- // Vue.extend constructor export interop.
71
- var options = typeof script === 'function' ? script.options : script;
72
- // render functions
73
- if (template && template.render) {
74
- options.render = template.render;
75
- options.staticRenderFns = template.staticRenderFns;
76
- options._compiled = true;
77
- // functional template
78
- if (isFunctionalTemplate) {
79
- options.functional = true;
80
- }
81
- }
82
- // scopedId
83
- if (scopeId) {
84
- options._scopeId = scopeId;
85
- }
86
- var hook;
87
- if (moduleIdentifier) {
88
- // server build
89
- hook = function (context) {
90
- // 2.3 injection
91
- context =
92
- context || // cached call
93
- (this.$vnode && this.$vnode.ssrContext) || // stateful
94
- (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
95
- // 2.2 with runInNewContext: true
96
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
97
- context = __VUE_SSR_CONTEXT__;
98
- }
99
- // inject component styles
100
- if (style) {
101
- style.call(this, createInjectorSSR(context));
102
- }
103
- // register component module identifier for async chunk inference
104
- if (context && context._registeredComponents) {
105
- context._registeredComponents.add(moduleIdentifier);
106
- }
107
- };
108
- // used by ssr in case component is cached and beforeCreate
109
- // never gets called
110
- options._ssrRegister = hook;
111
- }
112
- else if (style) {
113
- hook = shadowMode
114
- ? function (context) {
115
- style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
116
- }
117
- : function (context) {
118
- style.call(this, createInjector(context));
119
- };
120
- }
121
- if (hook) {
122
- if (options.functional) {
123
- // register for functional component in vue file
124
- var originalRender = options.render;
125
- options.render = function renderWithStyleInjection(h, context) {
126
- hook.call(context);
127
- return originalRender(h, context);
128
- };
129
- }
130
- else {
131
- // inject component registration as beforeCreate hook
132
- var existing = options.beforeCreate;
133
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
134
- }
135
- }
136
- return script;
137
- }
138
-
139
- var isOldIE = typeof navigator !== 'undefined' &&
140
- /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
141
- function createInjector(context) {
142
- return function (id, style) { return addStyle(id, style); };
143
- }
144
- var HEAD;
145
- var styles = {};
146
- function addStyle(id, css) {
147
- var group = isOldIE ? css.media || 'default' : id;
148
- var style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
149
- if (!style.ids.has(id)) {
150
- style.ids.add(id);
151
- var code = css.source;
152
- if (css.map) {
153
- // https://developer.chrome.com/devtools/docs/javascript-debugging
154
- // this makes source maps inside style tags work properly in Chrome
155
- code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
156
- // http://stackoverflow.com/a/26603875
157
- code +=
158
- '\n/*# sourceMappingURL=data:application/json;base64,' +
159
- btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
160
- ' */';
161
- }
162
- if (!style.element) {
163
- style.element = document.createElement('style');
164
- style.element.type = 'text/css';
165
- if (css.media)
166
- { style.element.setAttribute('media', css.media); }
167
- if (HEAD === undefined) {
168
- HEAD = document.head || document.getElementsByTagName('head')[0];
169
- }
170
- HEAD.appendChild(style.element);
171
- }
172
- if ('styleSheet' in style.element) {
173
- style.styles.push(code);
174
- style.element.styleSheet.cssText = style.styles
175
- .filter(Boolean)
176
- .join('\n');
177
- }
178
- else {
179
- var index = style.ids.size - 1;
180
- var textNode = document.createTextNode(code);
181
- var nodes = style.element.childNodes;
182
- if (nodes[index])
183
- { style.element.removeChild(nodes[index]); }
184
- if (nodes.length)
185
- { style.element.insertBefore(textNode, nodes[index]); }
186
- else
187
- { style.element.appendChild(textNode); }
188
- }
189
- }
190
- }
191
-
192
- /* script */
193
- var __vue_script__ = script;
194
-
195
- /* template */
196
- var __vue_render__ = function() {
197
- var _vm = this;
198
- var _h = _vm.$createElement;
199
- var _c = _vm._self._c || _h;
200
- return _c("div", { staticClass: "vs-loader" }, [
201
- _c("div", { style: [_vm.spinnerStyle, _vm.spinnerDelay1] }),
202
- _vm._v(" "),
203
- _c("div", { style: [_vm.spinnerStyle, _vm.spinnerDelay2] }),
204
- _vm._v(" "),
205
- _c("div", { style: [_vm.spinnerStyle, _vm.spinnerDelay3] })
206
- ])
207
- };
208
- var __vue_staticRenderFns__ = [];
209
- __vue_render__._withStripped = true;
210
-
211
- /* style */
212
- var __vue_inject_styles__ = function (inject) {
213
- if (!inject) { return }
214
- inject("data-v-815feb5a_0", { source: "@-webkit-keyframes v-pulseStretchDelay {\n0%, 80% {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-opacity: 1;\n opacity: 1;\n}\n45% {\n -webkit-transform: scale(0.1);\n transform: scale(0.1);\n -webkit-opacity: 0.7;\n opacity: 0.7;\n}\n}\n@keyframes v-pulseStretchDelay {\n0%, 80% {\n -webkit-transform: scale(1);\n transform: scale(1);\n -webkit-opacity: 1;\n opacity: 1;\n}\n45% {\n -webkit-transform: scale(0.1);\n transform: scale(0.1);\n -webkit-opacity: 0.7;\n opacity: 0.7;\n}\n}", map: undefined, media: undefined });
215
-
216
- };
217
- /* scoped */
218
- var __vue_scope_id__ = undefined;
219
- /* module identifier */
220
- var __vue_module_identifier__ = undefined;
221
- /* functional template */
222
- var __vue_is_functional_template__ = false;
223
- /* style inject SSR */
224
-
225
- /* style inject shadow dom */
226
-
227
-
228
-
229
- var __vue_component__ = /*#__PURE__*/normalizeComponent(
230
- { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
231
- __vue_inject_styles__,
232
- __vue_script__,
233
- __vue_scope_id__,
234
- __vue_is_functional_template__,
235
- __vue_module_identifier__,
236
- false,
237
- createInjector,
238
- undefined,
239
- undefined
240
- );
241
-
242
- //
243
-
244
- var script$1 = {
245
- name: 'VsButton',
246
-
247
- components: {
248
- VsLoader: __vue_component__,
249
- },
250
-
251
- props: {
252
- variant: {
253
- type: String,
254
- default: 'primary',
255
- },
256
- // small. medium, large
257
- size: {
258
- type: String,
259
- default: 'medium',
260
- },
261
- fill: {
262
- type: Boolean,
263
- default: false,
264
- },
265
- isRound: {
266
- type: Boolean,
267
- default: false,
268
- },
269
- isLoading: {
270
- type: Boolean,
271
- default: false,
272
- },
273
- loaderSize: {
274
- type: String,
275
- default: '8px',
276
- },
277
- loaderColor: {
278
- type: String,
279
- default: '#1f73b7',
280
- },
281
- disabled: {
282
- type: [Boolean, String],
283
- default: false,
284
- },
285
- href: {
286
- type: String,
287
- },
288
- target: {
289
- type: String,
290
- },
291
- rel: {
292
- type: String,
293
- },
294
- },
295
-
296
- computed: {
297
- classList: function classList() {
298
- return [
299
- [this.variant === 'link' ? 'vs-button__link' : ("vs-button__" + (this.variant) + (this.fill ? '-fill' : ''))],
300
- ("vs-button--" + (this.size)),
301
- { 'vs-button--loading': this.isLoading },
302
- { 'vs-button--round': this.isRound } ];
303
- },
304
-
305
- isLink: function isLink() {
306
- return this.variant === 'link' || !!this.href ? 'a' : 'button';
307
- },
308
- },
309
-
310
- methods: {
311
- emitClick: function emitClick() {
312
- if (!this.isLoading || !this.disabled) {
313
- this.$emit('click');
314
- }
315
- },
316
- },
317
- };
318
-
319
- /* script */
320
- var __vue_script__$1 = script$1;
321
-
322
- /* template */
323
- var __vue_render__$1 = function() {
324
- var _vm = this;
325
- var _h = _vm.$createElement;
326
- var _c = _vm._self._c || _h;
327
- return _c(
328
- _vm.isLink,
329
- {
330
- tag: "component",
331
- class: ["vs-button", _vm.classList],
332
- attrs: {
333
- role: _vm.href ? "button" : false,
334
- href: _vm.href,
335
- target: _vm.target,
336
- rel: _vm.rel,
337
- type: _vm.isLink ? "button" : false,
338
- disabled: _vm.disabled || _vm.isLoading
339
- },
340
- on: { click: _vm.emitClick }
341
- },
342
- [
343
- _vm.isLoading
344
- ? _c("vs-loader", {
345
- attrs: { size: _vm.loaderSize, color: _vm.loaderColor }
346
- })
347
- : _vm._t("default")
348
- ],
349
- 2
350
- )
351
- };
352
- var __vue_staticRenderFns__$1 = [];
353
- __vue_render__$1._withStripped = true;
354
-
355
- /* style */
356
- var __vue_inject_styles__$1 = function (inject) {
357
- if (!inject) { return }
358
- inject("data-v-bc6d4844_0", { source: ".vs-button {\n border-radius: 4px;\n font-weight: 400;\n box-sizing: border-box;\n user-select: none;\n padding: 0 1.07143em;\n display: inline-flex;\n -webkit-box-align: center;\n align-items: center;\n -webkit-box-pack: center;\n justify-content: center;\n transition: border-color 0.25s ease-in-out 0s, box-shadow 0.1s ease-in-out 0s, background-color 0.25s ease-in-out 0s, color 0.25s ease-in-out 0s;\n margin: 0px;\n cursor: pointer;\n text-decoration: none;\n text-overflow: ellipsis;\n white-space: nowrap;\n position: relative;\n}\n.vs-button .vs-loader {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.vs-button.vs-button--small {\n height: 32px;\n line-height: 30px;\n font-size: 12px;\n}\n.vs-button.vs-button--medium {\n height: 40px;\n line-height: 38px;\n font-size: 14px;\n}\n.vs-button.vs-button--large {\n height: 48px;\n line-height: 46px;\n font-size: 14px;\n}\n.vs-button.vs-button--round {\n border-radius: 50px;\n}\n.vs-button.vs-button__primary, .vs-button.vs-button__primary:hover, .vs-button.vs-button__primary:focus {\n background: transparent;\n color: #1f73b7;\n border: solid 1px #1f73b7;\n}\n.vs-button.vs-button__primary:hover, .vs-button.vs-button__primary:hover:hover, .vs-button.vs-button__primary:focus:hover {\n border-color: #18588b;\n background: #f2f8fd;\n color: #18588b;\n}\n.vs-button.vs-button__primary:active, .vs-button.vs-button__primary:hover:active, .vs-button.vs-button__primary:focus:active {\n border-color: #103c60;\n background: #dcecf9;\n color: #103c60;\n}\n.vs-button.vs-button__primary:focus-visible, .vs-button.vs-button__primary:hover:focus-visible, .vs-button.vs-button__primary:focus:focus-visible {\n border-color: #18588b;\n box-shadow: 0 0 0 0.2rem #85bdea;\n outline: 0;\n}\n.vs-button.vs-button__primary:disabled, .vs-button.vs-button__primary.vs-button--loading, .vs-button.vs-button__primary:hover:disabled, .vs-button.vs-button__primary:hover.vs-button--loading, .vs-button.vs-button__primary:focus:disabled, .vs-button.vs-button__primary:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__primary-fill, .vs-button.vs-button__primary-fill:focus {\n background: #1f73b7;\n color: #ffffff;\n border: solid 1px #1f73b7;\n}\n.vs-button.vs-button__primary-fill:hover, .vs-button.vs-button__primary-fill:focus:hover {\n border-color: #18588b;\n background: #18588b;\n}\n.vs-button.vs-button__primary-fill:active, .vs-button.vs-button__primary-fill:focus:active {\n border-color: #103c60;\n background: #144a76;\n}\n.vs-button.vs-button__primary-fill:focus-visible, .vs-button.vs-button__primary-fill:focus:focus-visible {\n border-color: #18588b;\n box-shadow: 0 0 0 0.2rem #85bdea;\n outline: 0;\n}\n.vs-button.vs-button__primary-fill:disabled, .vs-button.vs-button__primary-fill.vs-button--loading, .vs-button.vs-button__primary-fill:focus:disabled, .vs-button.vs-button__primary-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__success, .vs-button.vs-button__success:hover, .vs-button.vs-button__success:focus {\n background: transparent;\n color: #28a745;\n border: solid 1px #28a745;\n}\n.vs-button.vs-button__success:hover, .vs-button.vs-button__success:hover:hover, .vs-button.vs-button__success:focus:hover {\n border-color: #1e7e34;\n background: #edfbf0;\n color: #1e7e34;\n}\n.vs-button.vs-button__success:active, .vs-button.vs-button__success:hover:active, .vs-button.vs-button__success:focus:active {\n border-color: #145523;\n background: #d8f6df;\n color: #145523;\n}\n.vs-button.vs-button__success:focus-visible, .vs-button.vs-button__success:hover:focus-visible, .vs-button.vs-button__success:focus:focus-visible {\n border-color: #1e7e34;\n box-shadow: 0 0 0 0.2rem #86e29b;\n outline: 0;\n}\n.vs-button.vs-button__success:disabled, .vs-button.vs-button__success.vs-button--loading, .vs-button.vs-button__success:hover:disabled, .vs-button.vs-button__success:hover.vs-button--loading, .vs-button.vs-button__success:focus:disabled, .vs-button.vs-button__success:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__success-fill, .vs-button.vs-button__success-fill:focus {\n background: #28a745;\n color: #ffffff;\n border: solid 1px #28a745;\n}\n.vs-button.vs-button__success-fill:hover, .vs-button.vs-button__success-fill:focus:hover {\n border-color: #1e7e34;\n background: #1e7e34;\n}\n.vs-button.vs-button__success-fill:active, .vs-button.vs-button__success-fill:focus:active {\n border-color: #145523;\n background: #19692c;\n}\n.vs-button.vs-button__success-fill:focus-visible, .vs-button.vs-button__success-fill:focus:focus-visible {\n border-color: #1e7e34;\n box-shadow: 0 0 0 0.2rem #86e29b;\n outline: 0;\n}\n.vs-button.vs-button__success-fill:disabled, .vs-button.vs-button__success-fill.vs-button--loading, .vs-button.vs-button__success-fill:focus:disabled, .vs-button.vs-button__success-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__danger, .vs-button.vs-button__danger:hover, .vs-button.vs-button__danger:focus {\n background: transparent;\n color: #cc3340;\n border: solid 1px #cc3340;\n}\n.vs-button.vs-button__danger:hover, .vs-button.vs-button__danger:hover:hover, .vs-button.vs-button__danger:focus:hover {\n border-color: #a32933;\n background: #faebec;\n color: #a32933;\n}\n.vs-button.vs-button__danger:active, .vs-button.vs-button__danger:hover:active, .vs-button.vs-button__danger:focus:active {\n border-color: #7a1f26;\n background: white;\n color: #7a1f26;\n}\n.vs-button.vs-button__danger:focus-visible, .vs-button.vs-button__danger:hover:focus-visible, .vs-button.vs-button__danger:focus:focus-visible {\n border-color: #a32933;\n box-shadow: 0 0 0 0.2rem #ebadb3;\n outline: 0;\n}\n.vs-button.vs-button__danger:disabled, .vs-button.vs-button__danger.vs-button--loading, .vs-button.vs-button__danger:hover:disabled, .vs-button.vs-button__danger:hover.vs-button--loading, .vs-button.vs-button__danger:focus:disabled, .vs-button.vs-button__danger:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__danger-fill, .vs-button.vs-button__danger-fill:focus {\n background: #cc3340;\n color: #ffffff;\n border: solid 1px #cc3340;\n}\n.vs-button.vs-button__danger-fill:hover, .vs-button.vs-button__danger-fill:focus:hover {\n border-color: #a32933;\n background: #a32933;\n}\n.vs-button.vs-button__danger-fill:active, .vs-button.vs-button__danger-fill:focus:active {\n border-color: #7a1f26;\n background: #8f242d;\n}\n.vs-button.vs-button__danger-fill:focus-visible, .vs-button.vs-button__danger-fill:focus:focus-visible {\n border-color: #a32933;\n box-shadow: 0 0 0 0.2rem #ebadb3;\n outline: 0;\n}\n.vs-button.vs-button__danger-fill:disabled, .vs-button.vs-button__danger-fill.vs-button--loading, .vs-button.vs-button__danger-fill:focus:disabled, .vs-button.vs-button__danger-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__warning, .vs-button.vs-button__warning:hover, .vs-button.vs-button__warning:focus {\n background: transparent;\n color: #ffb057;\n border: solid 1px #ffb057;\n}\n.vs-button.vs-button__warning:hover, .vs-button.vs-button__warning:hover:hover, .vs-button.vs-button__warning:focus:hover {\n border-color: #ff9824;\n background: #fff8f0;\n color: #ff9824;\n}\n.vs-button.vs-button__warning:active, .vs-button.vs-button__warning:hover:active, .vs-button.vs-button__warning:focus:active {\n border-color: #f07f00;\n background: white;\n color: #f07f00;\n}\n.vs-button.vs-button__warning:focus-visible, .vs-button.vs-button__warning:hover:focus-visible, .vs-button.vs-button__warning:focus:focus-visible {\n border-color: #ff9824;\n box-shadow: 0 0 0 0.2rem #fff8f0;\n outline: 0;\n}\n.vs-button.vs-button__warning:disabled, .vs-button.vs-button__warning.vs-button--loading, .vs-button.vs-button__warning:hover:disabled, .vs-button.vs-button__warning:hover.vs-button--loading, .vs-button.vs-button__warning:focus:disabled, .vs-button.vs-button__warning:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__warning-fill, .vs-button.vs-button__warning-fill:focus {\n background: #ffb057;\n color: #703815;\n border: solid 1px #ffb057;\n}\n.vs-button.vs-button__warning-fill:hover, .vs-button.vs-button__warning-fill:focus:hover {\n border-color: #ff9824;\n background: #ff9824;\n}\n.vs-button.vs-button__warning-fill:active, .vs-button.vs-button__warning-fill:focus:active {\n border-color: #f07f00;\n background: #ff8c0b;\n}\n.vs-button.vs-button__warning-fill:focus-visible, .vs-button.vs-button__warning-fill:focus:focus-visible {\n border-color: #ff9824;\n box-shadow: 0 0 0 0.2rem #fff8f0;\n outline: 0;\n}\n.vs-button.vs-button__warning-fill:disabled, .vs-button.vs-button__warning-fill.vs-button--loading, .vs-button.vs-button__warning-fill:focus:disabled, .vs-button.vs-button__warning-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__secondary, .vs-button.vs-button__secondary:hover, .vs-button.vs-button__secondary:focus {\n background: transparent;\n color: #6c757d;\n border: solid 1px #6c757d;\n}\n.vs-button.vs-button__secondary:hover, .vs-button.vs-button__secondary:hover:hover, .vs-button.vs-button__secondary:focus:hover {\n border-color: #545b62;\n background: #f3f4f5;\n color: #545b62;\n}\n.vs-button.vs-button__secondary:active, .vs-button.vs-button__secondary:hover:active, .vs-button.vs-button__secondary:focus:active {\n border-color: #3d4246;\n background: #f3f4f5;\n color: #3d4246;\n}\n.vs-button.vs-button__secondary:focus-visible, .vs-button.vs-button__secondary:hover:focus-visible, .vs-button.vs-button__secondary:focus:focus-visible {\n border-color: #545b62;\n box-shadow: 0 0 0 0.2rem #bcc1c6;\n outline: 0;\n}\n.vs-button.vs-button__secondary:disabled, .vs-button.vs-button__secondary.vs-button--loading, .vs-button.vs-button__secondary:hover:disabled, .vs-button.vs-button__secondary:hover.vs-button--loading, .vs-button.vs-button__secondary:focus:disabled, .vs-button.vs-button__secondary:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__secondary-fill, .vs-button.vs-button__secondary-fill:focus {\n background: #6c757d;\n color: #ffffff;\n border: solid 1px #6c757d;\n}\n.vs-button.vs-button__secondary-fill:hover, .vs-button.vs-button__secondary-fill:focus:hover {\n border-color: #545b62;\n background: #545b62;\n}\n.vs-button.vs-button__secondary-fill:active, .vs-button.vs-button__secondary-fill:focus:active {\n border-color: #3d4246;\n background: #494f54;\n}\n.vs-button.vs-button__secondary-fill:focus-visible, .vs-button.vs-button__secondary-fill:focus:focus-visible {\n border-color: #545b62;\n box-shadow: 0 0 0 0.2rem #bcc1c6;\n outline: 0;\n}\n.vs-button.vs-button__secondary-fill:disabled, .vs-button.vs-button__secondary-fill.vs-button--loading, .vs-button.vs-button__secondary-fill:focus:disabled, .vs-button.vs-button__secondary-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__light, .vs-button.vs-button__light:hover, .vs-button.vs-button__light:focus {\n background: transparent;\n color: #f8f9fa;\n border: solid 1px #f8f9fa;\n}\n.vs-button.vs-button__light:hover, .vs-button.vs-button__light:hover:hover, .vs-button.vs-button__light:focus:hover {\n border-color: #dae0e5;\n background: white;\n color: #dae0e5;\n}\n.vs-button.vs-button__light:active, .vs-button.vs-button__light:hover:active, .vs-button.vs-button__light:focus:active {\n border-color: #bdc6d0;\n background: white;\n color: #bdc6d0;\n}\n.vs-button.vs-button__light:focus-visible, .vs-button.vs-button__light:hover:focus-visible, .vs-button.vs-button__light:focus:focus-visible {\n border-color: #dae0e5;\n box-shadow: 0 0 0 0.2rem white;\n outline: 0;\n}\n.vs-button.vs-button__light:disabled, .vs-button.vs-button__light.vs-button--loading, .vs-button.vs-button__light:hover:disabled, .vs-button.vs-button__light:hover.vs-button--loading, .vs-button.vs-button__light:focus:disabled, .vs-button.vs-button__light:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__light-fill, .vs-button.vs-button__light-fill:focus {\n background: #f8f9fa;\n color: #212529;\n border: solid 1px #f8f9fa;\n}\n.vs-button.vs-button__light-fill:hover, .vs-button.vs-button__light-fill:focus:hover {\n border-color: #dae0e5;\n background: #dae0e5;\n}\n.vs-button.vs-button__light-fill:active, .vs-button.vs-button__light-fill:focus:active {\n border-color: #bdc6d0;\n background: #cbd3da;\n}\n.vs-button.vs-button__light-fill:focus-visible, .vs-button.vs-button__light-fill:focus:focus-visible {\n border-color: #dae0e5;\n box-shadow: 0 0 0 0.2rem white;\n outline: 0;\n}\n.vs-button.vs-button__light-fill:disabled, .vs-button.vs-button__light-fill.vs-button--loading, .vs-button.vs-button__light-fill:focus:disabled, .vs-button.vs-button__light-fill:focus.vs-button--loading {\n background: #e9ebed;\n border-color: transparent;\n color: #c2c8cc;\n cursor: no-drop;\n}\n.vs-button.vs-button__link {\n background: transparent;\n color: #1f73b7;\n border: none;\n padding: 0;\n}\n.vs-button.vs-button__link:hover {\n text-decoration: underline;\n}", map: undefined, media: undefined });
359
-
360
- };
361
- /* scoped */
362
- var __vue_scope_id__$1 = undefined;
363
- /* module identifier */
364
- var __vue_module_identifier__$1 = undefined;
365
- /* functional template */
366
- var __vue_is_functional_template__$1 = false;
367
- /* style inject SSR */
368
-
369
- /* style inject shadow dom */
370
-
371
-
372
-
373
- var __vue_component__$1 = /*#__PURE__*/normalizeComponent(
374
- { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },
375
- __vue_inject_styles__$1,
376
- __vue_script__$1,
377
- __vue_scope_id__$1,
378
- __vue_is_functional_template__$1,
379
- __vue_module_identifier__$1,
380
- false,
381
- createInjector,
382
- undefined,
383
- undefined
384
- );
385
-
386
- // Import vue component
387
-
388
- // Declare install function executed by Vue.use()
389
- function install(Vue) {
390
- if (install.installed) { return; }
391
- install.installed = true;
392
- Vue.component('VsButton', __vue_component__$1);
393
- }
394
-
395
- // Create module definition for Vue.use()
396
- var plugin = {
397
- install: install,
398
- };
399
-
400
- // Auto-install when vue is found (eg. in browser via <script> tag)
401
- var GlobalVue = null;
402
- if (typeof window !== 'undefined') {
403
- GlobalVue = window.Vue;
404
- } else if (typeof global !== 'undefined') {
405
- GlobalVue = global.Vue;
406
- }
407
- if (GlobalVue) {
408
- GlobalVue.use(plugin);
409
- }
410
-
411
- exports.default = __vue_component__$1;
412
- exports.install = install;
413
-
414
- Object.defineProperty(exports, '__esModule', { value: true });
415
-
416
- })));