@blotoutio/providers-evo-search-sdk 1.47.4 → 1.48.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/index.cjs.js +12 -1
- package/index.js +12 -1
- package/index.mjs +12 -1
- package/package.json +1 -1
package/index.cjs.js
CHANGED
|
@@ -4867,15 +4867,22 @@ class BTButton extends TwLitElement$5 {
|
|
|
4867
4867
|
super(...arguments);
|
|
4868
4868
|
this.buttonClass = '';
|
|
4869
4869
|
this.disabled = false;
|
|
4870
|
+
this.loading = false;
|
|
4870
4871
|
}
|
|
4871
4872
|
render() {
|
|
4873
|
+
const isDisabled = this.disabled || this.loading;
|
|
4872
4874
|
return b `<button
|
|
4873
4875
|
class=${twMerge(buttonVariants({
|
|
4874
4876
|
variant: this.variant,
|
|
4875
4877
|
size: this.size,
|
|
4876
4878
|
}), this.buttonClass)}
|
|
4877
|
-
?disabled=${
|
|
4879
|
+
?disabled=${isDisabled}
|
|
4878
4880
|
>
|
|
4881
|
+
${this.loading
|
|
4882
|
+
? b `<span
|
|
4883
|
+
class="animate-spin inline-block w-4 h-4 border-2 border-current border-t-transparent rounded-full"
|
|
4884
|
+
></span>`
|
|
4885
|
+
: ''}
|
|
4879
4886
|
<slot></slot>
|
|
4880
4887
|
</button>`;
|
|
4881
4888
|
}
|
|
@@ -4896,6 +4903,10 @@ __decorate([
|
|
|
4896
4903
|
n$1({ type: Boolean }),
|
|
4897
4904
|
__metadata("design:type", Object)
|
|
4898
4905
|
], BTButton.prototype, "disabled", void 0);
|
|
4906
|
+
__decorate([
|
|
4907
|
+
n$1({ type: Boolean }),
|
|
4908
|
+
__metadata("design:type", Object)
|
|
4909
|
+
], BTButton.prototype, "loading", void 0);
|
|
4899
4910
|
if (!customElements.get('bt-button')) {
|
|
4900
4911
|
customElements.define('bt-button', BTButton);
|
|
4901
4912
|
}
|
package/index.js
CHANGED
|
@@ -4868,15 +4868,22 @@ var ProvidersEvoSearchSdk = (function () {
|
|
|
4868
4868
|
super(...arguments);
|
|
4869
4869
|
this.buttonClass = '';
|
|
4870
4870
|
this.disabled = false;
|
|
4871
|
+
this.loading = false;
|
|
4871
4872
|
}
|
|
4872
4873
|
render() {
|
|
4874
|
+
const isDisabled = this.disabled || this.loading;
|
|
4873
4875
|
return b `<button
|
|
4874
4876
|
class=${twMerge(buttonVariants({
|
|
4875
4877
|
variant: this.variant,
|
|
4876
4878
|
size: this.size,
|
|
4877
4879
|
}), this.buttonClass)}
|
|
4878
|
-
?disabled=${
|
|
4880
|
+
?disabled=${isDisabled}
|
|
4879
4881
|
>
|
|
4882
|
+
${this.loading
|
|
4883
|
+
? b `<span
|
|
4884
|
+
class="animate-spin inline-block w-4 h-4 border-2 border-current border-t-transparent rounded-full"
|
|
4885
|
+
></span>`
|
|
4886
|
+
: ''}
|
|
4880
4887
|
<slot></slot>
|
|
4881
4888
|
</button>`;
|
|
4882
4889
|
}
|
|
@@ -4897,6 +4904,10 @@ var ProvidersEvoSearchSdk = (function () {
|
|
|
4897
4904
|
n$1({ type: Boolean }),
|
|
4898
4905
|
__metadata("design:type", Object)
|
|
4899
4906
|
], BTButton.prototype, "disabled", void 0);
|
|
4907
|
+
__decorate([
|
|
4908
|
+
n$1({ type: Boolean }),
|
|
4909
|
+
__metadata("design:type", Object)
|
|
4910
|
+
], BTButton.prototype, "loading", void 0);
|
|
4900
4911
|
if (!customElements.get('bt-button')) {
|
|
4901
4912
|
customElements.define('bt-button', BTButton);
|
|
4902
4913
|
}
|
package/index.mjs
CHANGED
|
@@ -4865,15 +4865,22 @@ class BTButton extends TwLitElement$5 {
|
|
|
4865
4865
|
super(...arguments);
|
|
4866
4866
|
this.buttonClass = '';
|
|
4867
4867
|
this.disabled = false;
|
|
4868
|
+
this.loading = false;
|
|
4868
4869
|
}
|
|
4869
4870
|
render() {
|
|
4871
|
+
const isDisabled = this.disabled || this.loading;
|
|
4870
4872
|
return b `<button
|
|
4871
4873
|
class=${twMerge(buttonVariants({
|
|
4872
4874
|
variant: this.variant,
|
|
4873
4875
|
size: this.size,
|
|
4874
4876
|
}), this.buttonClass)}
|
|
4875
|
-
?disabled=${
|
|
4877
|
+
?disabled=${isDisabled}
|
|
4876
4878
|
>
|
|
4879
|
+
${this.loading
|
|
4880
|
+
? b `<span
|
|
4881
|
+
class="animate-spin inline-block w-4 h-4 border-2 border-current border-t-transparent rounded-full"
|
|
4882
|
+
></span>`
|
|
4883
|
+
: ''}
|
|
4877
4884
|
<slot></slot>
|
|
4878
4885
|
</button>`;
|
|
4879
4886
|
}
|
|
@@ -4894,6 +4901,10 @@ __decorate([
|
|
|
4894
4901
|
n$1({ type: Boolean }),
|
|
4895
4902
|
__metadata("design:type", Object)
|
|
4896
4903
|
], BTButton.prototype, "disabled", void 0);
|
|
4904
|
+
__decorate([
|
|
4905
|
+
n$1({ type: Boolean }),
|
|
4906
|
+
__metadata("design:type", Object)
|
|
4907
|
+
], BTButton.prototype, "loading", void 0);
|
|
4897
4908
|
if (!customElements.get('bt-button')) {
|
|
4898
4909
|
customElements.define('bt-button', BTButton);
|
|
4899
4910
|
}
|