@nylas/web-elements 0.0.0-canary-20250120165013 → 0.0.0-canary-20250122221254
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/checkbox-component/checkbox-component.es.js +14 -18
- package/dist/cdn/nylas-booking-form/nylas-booking-form.es.js +275 -278
- package/dist/cdn/nylas-cancel-booking-form/nylas-cancel-booking-form.es.js +2 -1
- package/dist/cdn/nylas-confirmation-email/nylas-confirmation-email.es.js +2 -1
- package/dist/cdn/nylas-customize-booking-settings/nylas-customize-booking-settings.es.js +3 -7
- package/dist/cdn/nylas-editor-tabs/nylas-editor-tabs.es.js +301 -296
- package/dist/cdn/nylas-feedback-form/nylas-feedback-form.es.js +2 -1
- package/dist/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +23 -18
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +18 -13
- package/dist/cdn/textarea-component/textarea-component.es.js +147 -146
- package/dist/cjs/checkbox-component_3.cjs.entry.js +2 -3
- package/dist/cjs/checkbox-component_3.cjs.entry.js.map +1 -1
- package/dist/cjs/google-logo-icon_4.cjs.entry.js +12 -4
- package/dist/cjs/google-logo-icon_4.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-scheduling.cjs.entry.js +10 -2
- package/dist/cjs/nylas-scheduling.cjs.entry.js.map +1 -1
- package/dist/cjs/textarea-component.cjs.entry.js +2 -1
- package/dist/cjs/textarea-component.cjs.entry.js.map +1 -1
- package/dist/collection/components/design-system/checkbox-component/checkbox-component.css +4 -0
- package/dist/collection/components/design-system/checkbox-component/checkbox-component.js +1 -2
- package/dist/collection/components/design-system/checkbox-component/checkbox-component.js.map +1 -1
- package/dist/collection/components/design-system/textarea-component/textarea-component.js +2 -1
- package/dist/collection/components/design-system/textarea-component/textarea-component.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-booking-form/test/nylas-booking-form.spec.js +25 -1
- package/dist/collection/components/scheduler/nylas-booking-form/test/nylas-booking-form.spec.js.map +1 -1
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js +10 -2
- package/dist/collection/components/scheduler/nylas-scheduling/nylas-scheduling.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js +12 -4
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs/nylas-editor-tabs.js.map +1 -1
- package/dist/components/checkbox-component2.js +2 -3
- package/dist/components/checkbox-component2.js.map +1 -1
- package/dist/components/nylas-editor-tabs2.js +12 -4
- package/dist/components/nylas-editor-tabs2.js.map +1 -1
- package/dist/components/nylas-scheduling.js +10 -2
- package/dist/components/nylas-scheduling.js.map +1 -1
- package/dist/components/textarea-component2.js +2 -1
- package/dist/components/textarea-component2.js.map +1 -1
- package/dist/esm/checkbox-component_3.entry.js +2 -3
- package/dist/esm/checkbox-component_3.entry.js.map +1 -1
- package/dist/esm/google-logo-icon_4.entry.js +12 -4
- package/dist/esm/google-logo-icon_4.entry.js.map +1 -1
- package/dist/esm/nylas-scheduling.entry.js +10 -2
- package/dist/esm/nylas-scheduling.entry.js.map +1 -1
- package/dist/esm/textarea-component.entry.js +2 -1
- package/dist/esm/textarea-component.entry.js.map +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-a4b25253.entry.js → p-1d12e7e7.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-a4b25253.entry.js.map → p-1d12e7e7.entry.js.map} +1 -1
- package/dist/nylas-web-elements/p-748f9af9.entry.js +2 -0
- package/dist/nylas-web-elements/p-748f9af9.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-ea91e5b3.entry.js +2 -0
- package/dist/nylas-web-elements/p-ea91e5b3.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-dd830dcc.entry.js → p-f7bd80de.entry.js} +2 -2
- package/dist/nylas-web-elements/{p-dd830dcc.entry.js.map → p-f7bd80de.entry.js.map} +1 -1
- package/package.json +3 -3
- package/dist/nylas-web-elements/p-02488442.entry.js +0 -2
- package/dist/nylas-web-elements/p-02488442.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-b61dfe09.entry.js +0 -2
- package/dist/nylas-web-elements/p-b61dfe09.entry.js.map +0 -1
|
@@ -15402,6 +15402,7 @@ const t5 = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
15402
15402
|
this.validate(this.value), this.error && e.preventDefault();
|
|
15403
15403
|
}
|
|
15404
15404
|
handleInput(e) {
|
|
15405
|
+
this.error = "";
|
|
15405
15406
|
const t = e.target;
|
|
15406
15407
|
this.value = Ba(t.value), this.nylasFormInputChanged.emit({
|
|
15407
15408
|
value: this.value,
|
|
@@ -15415,7 +15416,7 @@ const t5 = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
15415
15416
|
this.required && !e ? this.error = `${this.label} is required.` : e.length > this.maxLength ? this.error = `${this.label} cannot exceed ${this.maxLength} characters.` : this.error = "";
|
|
15416
15417
|
}
|
|
15417
15418
|
render() {
|
|
15418
|
-
return Y("label", { key: "
|
|
15419
|
+
return Y("label", { key: "3b3dd5b1c594e2c3b3594826b1f0379925dd14e9", part: "tc__label", class: { error: !!this.error } }, Y("p", { key: "0a544d90a3b087c3479412078b1a454261bf20db" }, Y("span", { key: "c37a9e870a3ebe502b2db7fbf0968178fc7cc519", class: "label" }, this.label), this.required && Y("span", { class: "required" }, "*"), this.tooltip && Y("tooltip-component", null, Y("info-icon", { slot: "tooltip-icon" }), Y("span", { slot: "tooltip-content" }, this.tooltip))), Y("textarea", { key: "1be0e90961ebd6110bffd347a930884768429037", name: this.name, title: this.readOnly ? "read-only field" : void 0, placeholder: this.placeholder, readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, maxLength: this.maxLength, onInput: (e) => this.handleInput(e), class: { error: !!this.error }, part: "tc__textarea" }), this.error && Y("span", { class: "error help-text" }, this.error));
|
|
15419
15420
|
}
|
|
15420
15421
|
static get style() {
|
|
15421
15422
|
return n5;
|
|
@@ -15693,6 +15693,7 @@ const $B = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
15693
15693
|
this.validate(this.value), this.error && e.preventDefault();
|
|
15694
15694
|
}
|
|
15695
15695
|
handleInput(e) {
|
|
15696
|
+
this.error = "";
|
|
15696
15697
|
const t = e.target;
|
|
15697
15698
|
this.value = ht(t.value), this.nylasFormInputChanged.emit({
|
|
15698
15699
|
value: this.value,
|
|
@@ -15706,7 +15707,7 @@ const $B = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
15706
15707
|
this.required && !e ? this.error = `${this.label} is required.` : e.length > this.maxLength ? this.error = `${this.label} cannot exceed ${this.maxLength} characters.` : this.error = "";
|
|
15707
15708
|
}
|
|
15708
15709
|
render() {
|
|
15709
|
-
return $("label", { key: "
|
|
15710
|
+
return $("label", { key: "3b3dd5b1c594e2c3b3594826b1f0379925dd14e9", part: "tc__label", class: { error: !!this.error } }, $("p", { key: "0a544d90a3b087c3479412078b1a454261bf20db" }, $("span", { key: "c37a9e870a3ebe502b2db7fbf0968178fc7cc519", class: "label" }, this.label), this.required && $("span", { class: "required" }, "*"), this.tooltip && $("tooltip-component", null, $("info-icon", { slot: "tooltip-icon" }), $("span", { slot: "tooltip-content" }, this.tooltip))), $("textarea", { key: "1be0e90961ebd6110bffd347a930884768429037", name: this.name, title: this.readOnly ? "read-only field" : void 0, placeholder: this.placeholder, readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, maxLength: this.maxLength, onInput: (e) => this.handleInput(e), class: { error: !!this.error }, part: "tc__textarea" }), this.error && $("span", { class: "error help-text" }, this.error));
|
|
15710
15711
|
}
|
|
15711
15712
|
static get style() {
|
|
15712
15713
|
return CB;
|
|
@@ -12920,7 +12920,7 @@ function w8(i) {
|
|
|
12920
12920
|
});
|
|
12921
12921
|
};
|
|
12922
12922
|
}
|
|
12923
|
-
const B8 = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}.checkbox-container{display:flex;flex-direction:column;gap:0.5rem}.checkbox-container p.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family);margin:0}label{display:flex;align-items:center;font-family:var(--nylas-font-family);cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label.readonly{cursor:not-allowed}label input[type=checkbox]{position:absolute;opacity:0;cursor:pointer;border:1px solid var(--nylas-base-300)}label input[type=checkbox]:focus~.checkmark,label input[type=checkbox]:hover~.checkmark{border-color:var(--nylas-primary)}label input[type=checkbox]:checked~.checkmark{color:var(--nylas-base-0);background:var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;border:2px solid var(--nylas-primary)}label input[type=checkbox]:disabled{cursor:not-allowed;background:var(--nylas-base-100);border:1px solid var(--nylas-base-300)}label .checkmark{border-radius:var(--nylas-border-radius);border:2px solid var(--nylas-base-800);position:absolute;left:0;top:2px;width:18px;height:18px;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label .label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}', C8 = B8, P8 = Jt(class extends Xt {
|
|
12923
|
+
const B8 = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}.checkbox-container{display:flex;flex-direction:column;gap:0.5rem}.checkbox-container p.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family);margin:0}label{display:flex;align-items:center;font-family:var(--nylas-font-family);cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label.readonly{cursor:not-allowed}label span.required{color:var(--nylas-error);padding:0 0.25rem}label input[type=checkbox]{position:absolute;opacity:0;cursor:pointer;border:1px solid var(--nylas-base-300)}label input[type=checkbox]:focus~.checkmark,label input[type=checkbox]:hover~.checkmark{border-color:var(--nylas-primary)}label input[type=checkbox]:checked~.checkmark{color:var(--nylas-base-0);background:var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;border:2px solid var(--nylas-primary)}label input[type=checkbox]:disabled{cursor:not-allowed;background:var(--nylas-base-100);border:1px solid var(--nylas-base-300)}label .checkmark{border-radius:var(--nylas-border-radius);border:2px solid var(--nylas-base-800);position:absolute;left:0;top:2px;width:18px;height:18px;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label .label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}', C8 = B8, P8 = Jt(class extends Xt {
|
|
12924
12924
|
constructor() {
|
|
12925
12925
|
super(), this.__registerHost(), this.__attachShadow(), this.nylasFormCheckboxToggled = Ar(this, "nylasFormCheckboxToggled", 7), this.componentType = "checkbox", this.name = "checkbox", this.checked = void 0, this.label = "", this.readOnly = !1, this.required = !1, this.isChecked = void 0, this.error = "";
|
|
12926
12926
|
}
|
|
@@ -12934,11 +12934,7 @@ const B8 = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
12934
12934
|
this.isChecked = this.checked || !1;
|
|
12935
12935
|
}
|
|
12936
12936
|
handleBookingFormSubmitted(e) {
|
|
12937
|
-
|
|
12938
|
-
this.error = `${this.label} is required.`;
|
|
12939
|
-
return;
|
|
12940
|
-
}
|
|
12941
|
-
this.error && e.preventDefault();
|
|
12937
|
+
this.required && !this.isChecked && (this.error = `${this.label} is required.`), this.error && e.preventDefault();
|
|
12942
12938
|
}
|
|
12943
12939
|
toggleCheck() {
|
|
12944
12940
|
this.error = "", this.isChecked = !this.isChecked, this.nylasFormCheckboxToggled.emit({
|
|
@@ -12948,7 +12944,7 @@ const B8 = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--
|
|
|
12948
12944
|
});
|
|
12949
12945
|
}
|
|
12950
12946
|
render() {
|
|
12951
|
-
return F("div", { key: "
|
|
12947
|
+
return F("div", { key: "595e161a792173db6af97d3d7ef13cdca534052a", class: "checkbox-container" }, F("label", { key: "625bd67ceec40d979d5f4f74ec576569866ff6ec", title: this.readOnly ? "read-only field" : void 0, class: { readonly: this.readOnly } }, F("input", { key: "dc099ed0899a91fe30b67bb0f2981b8bd5254bbb", type: "checkbox", disabled: this.readOnly, readOnly: this.readOnly, name: this.name, title: this.readOnly ? "read-only field" : void 0, checked: this.isChecked, onChange: () => this.toggleCheck() }), F("span", { key: "032c931e0b256a9e948551c9d938e14339f4c45e", class: "checkmark" }), F("slot", { key: "d932f4a7c5aa7e680827beff46f1ff86ce50b1d9", name: "label" }, F("span", { key: "b5ce4490b7be93f936d3061145dcbe4489dd74c9", class: "label" }, this.label, this.required && F("span", { class: "required" }, "*")))), this.error && F("p", { class: "error" }, this.error));
|
|
12952
12948
|
}
|
|
12953
12949
|
get el() {
|
|
12954
12950
|
return this;
|