@nylas/react 1.4.4 → 1.4.5
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 +7 -0
- package/dist/{add-circle-icon_2.entry-615fc101.js → add-circle-icon_2.entry-55361a03.js} +3 -3
- package/dist/add-circle-icon_2.entry-75a3df95.cjs +1 -0
- package/dist/archive-icon.entry-3c4e4b28.js +16 -0
- package/dist/archive-icon.entry-8aa151fd.cjs +1 -0
- package/dist/arrow-icon.entry-2cef5ca1.cjs +1 -0
- package/dist/{arrow-icon.entry-da152ec2.js → arrow-icon.entry-5bb183c1.js} +5 -5
- package/dist/{bold-icon.entry-58679992.cjs → bold-icon.entry-c919c71d.cjs} +1 -1
- package/dist/{bold-icon.entry-61046c15.js → bold-icon.entry-e0010c60.js} +4 -4
- package/dist/{button-component_2.entry-53bfdc19.cjs → button-component_2.entry-078ee06a.cjs} +1 -1
- package/dist/{button-component_2.entry-db53e00a.js → button-component_2.entry-1dd1b8d6.js} +9 -9
- package/dist/{calendar-agenda-fill-icon_36.entry-76796ea7.js → calendar-agenda-fill-icon_36.entry-772a70d7.js} +99 -99
- package/dist/calendar-agenda-fill-icon_36.entry-9b694a33.cjs +6 -0
- package/dist/{calendar-cancel-icon.entry-f3b8ae99.js → calendar-cancel-icon.entry-7d1a7cea.js} +4 -4
- package/dist/{calendar-cancel-icon.entry-e5032d71.cjs → calendar-cancel-icon.entry-b791b6b1.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-7303362a.cjs → calendar-check-icon_2.entry-2380a4e6.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-27dc91f7.js → calendar-check-icon_2.entry-2b5711fd.js} +3 -3
- package/dist/{calendar-icon.entry-48fc45d6.js → calendar-icon.entry-9b23c994.js} +2 -2
- package/dist/{calendar-icon.entry-4f432baf.cjs → calendar-icon.entry-f88c8b09.cjs} +1 -1
- package/dist/{checkbox-component.entry-a15ffc4c.js → checkbox-component.entry-94fd68e7.js} +4 -4
- package/dist/{checkbox-component.entry-8fad4faf.cjs → checkbox-component.entry-af77c4fa.cjs} +1 -1
- package/dist/{checkmark-icon_15.entry-9f926a70.js → checkmark-icon_15.entry-3ddf90df.js} +224 -222
- package/dist/checkmark-icon_15.entry-de65b967.cjs +5 -0
- package/dist/chevron-icon_3.entry-a492d340.cjs +1 -0
- package/dist/{chevron-icon_3.entry-5130fbba.js → chevron-icon_3.entry-af195326.js} +6 -6
- package/dist/{clock-icon_4.entry-ac65deae.cjs → clock-icon_4.entry-530cd13b.cjs} +1 -1
- package/dist/{clock-icon_4.entry-40a393c9.js → clock-icon_4.entry-7dc4324b.js} +8 -8
- package/dist/{customParseFormat-a4d9ea69-763f219e.cjs → customParseFormat-129be926-30b2af24.cjs} +1 -1
- package/dist/{customParseFormat-a4d9ea69-7caebeb2.js → customParseFormat-129be926-36eabae2.js} +1 -1
- package/dist/{delete-icon.entry-78e44eba.js → delete-icon.entry-3328484a.js} +4 -4
- package/dist/{delete-icon.entry-770dac8c.cjs → delete-icon.entry-9369bf78.cjs} +1 -1
- package/dist/document-refresh-icon.entry-902ead30.js +16 -0
- package/dist/{document-refresh-icon.entry-d331f844.cjs → document-refresh-icon.entry-f45be1c4.cjs} +1 -1
- package/dist/elements/index.d.ts +0 -8
- package/dist/{feedbackSync-57bb471a-5afb7715.cjs → feedbackSync-d943ffc7-13f01c1f.cjs} +1 -1
- package/dist/{feedbackSync-57bb471a-ee800a95.js → feedbackSync-d943ffc7-d1e98ba0.js} +1 -1
- package/dist/{folder-icon.entry-163e0aee.cjs → folder-icon.entry-48cfa8d0.cjs} +1 -1
- package/dist/{folder-icon.entry-42650400.js → folder-icon.entry-c4ffba45.js} +2 -2
- package/dist/{forward-icon.entry-0a499b38.cjs → forward-icon.entry-146f3318.cjs} +1 -1
- package/dist/{forward-icon.entry-d60b6e31.js → forward-icon.entry-dd036273.js} +5 -5
- package/dist/{globe-icon_2.entry-19359092.cjs → globe-icon_2.entry-049fbca2.cjs} +1 -1
- package/dist/{globe-icon_2.entry-5afa8049.js → globe-icon_2.entry-d6a95f6e.js} +90 -80
- package/dist/{google-logo-icon_6.entry-896a10a5.cjs → google-logo-icon_6.entry-4d9e06be.cjs} +2 -2
- package/dist/{google-logo-icon_6.entry-d2febb78.js → google-logo-icon_6.entry-e26385cc.js} +398 -380
- package/dist/{google-meet-icon_5.entry-4a94137f.cjs → google-meet-icon_5.entry-94112d7e.cjs} +1 -1
- package/dist/{google-meet-icon_5.entry-7b1b36f2.js → google-meet-icon_5.entry-c0129f58.js} +12 -12
- package/dist/inbox-icon.entry-74d7a10d.js +16 -0
- package/dist/inbox-icon.entry-94683ba9.cjs +1 -0
- package/dist/index-3b0366ac.cjs +57 -0
- package/dist/{index-9243e481.js → index-6e735f92.js} +5678 -4802
- package/dist/{index.es-13ff6710-73fa05e6.js → index.es-4615d47c-9156501b.js} +827 -1065
- package/dist/{index.es-13ff6710-0f748bd2.cjs → index.es-4615d47c-b7c254fe.cjs} +6 -6
- package/dist/{info-icon_2.entry-6667923a.cjs → info-icon_2.entry-8bcd39dc.cjs} +1 -1
- package/dist/{info-icon_2.entry-ba869bab.js → info-icon_2.entry-ef5dbccc.js} +3 -3
- package/dist/{input-component.entry-7396acf1.js → input-component.entry-922063d5.js} +9 -9
- package/dist/{input-component.entry-db84f917.cjs → input-component.entry-cc1fb2fa.cjs} +1 -1
- package/dist/{input-dropdown_2.entry-20f2031b.js → input-dropdown_2.entry-4041c294.js} +5 -5
- package/dist/input-dropdown_2.entry-f3750e99.cjs +1 -0
- package/dist/italic-icon.entry-63b6943f.cjs +1 -0
- package/dist/italic-icon.entry-6706da64.js +16 -0
- package/dist/{multi-select-dropdown_2.entry-8e07b42b.cjs → multi-select-dropdown_2.entry-1096321d.cjs} +1 -1
- package/dist/{multi-select-dropdown_2.entry-81740b34.js → multi-select-dropdown_2.entry-e10a9439.js} +22 -16
- package/dist/nylas-booked-event-card_12.entry-38f37135.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-e56c8e92.js → nylas-booked-event-card_12.entry-7eceb6b6.js} +226 -224
- package/dist/nylas-event-calendar_3.entry-7dad0f2f.cjs +11 -0
- package/dist/{nylas-event-calendar_3.entry-2504c7c0.js → nylas-event-calendar_3.entry-cc428f95.js} +2360 -2238
- package/dist/{nylas-form-card.entry-c406e3d3.cjs → nylas-form-card.entry-984be5f9.cjs} +1 -1
- package/dist/{nylas-form-card.entry-98903549.js → nylas-form-card.entry-dd3f240a.js} +3 -3
- package/dist/{nylas-scheduler-editor.entry-670cc0b8.js → nylas-scheduler-editor.entry-623da747.js} +39 -15
- package/dist/nylas-scheduler-editor.entry-8fb56081.cjs +2 -0
- package/dist/nylas-scheduling.entry-472ef577.cjs +1 -0
- package/dist/nylas-scheduling.entry-6608aa36.js +968 -0
- package/dist/{person-icon.entry-bdaa899b.cjs → person-icon.entry-168ba481.cjs} +1 -1
- package/dist/{person-icon.entry-3bca6e51.js → person-icon.entry-9f0233cd.js} +4 -4
- package/dist/{play-icon.entry-ecc86e85.cjs → play-icon.entry-4115845d.cjs} +1 -1
- package/dist/play-icon.entry-5fbfabb5.js +16 -0
- package/dist/{radio-button-group.entry-6965ad34.cjs → radio-button-group.entry-3ae5f246.cjs} +1 -1
- package/dist/{radio-button-group.entry-9851076c.js → radio-button-group.entry-da3f23ac.js} +2 -2
- package/dist/react.cjs +1 -1
- package/dist/react.js +96 -104
- package/dist/{refresh-icon.entry-90d52ab3.cjs → refresh-icon.entry-13742bb5.cjs} +1 -1
- package/dist/{refresh-icon.entry-d776c4a7.js → refresh-icon.entry-e1db3ca5.js} +2 -2
- package/dist/{register-component-02a05665-2e992621.js → register-component-083eb961-763c87e9.js} +1 -1
- package/dist/{register-component-02a05665-75652287.cjs → register-component-083eb961-c5c48a1b.cjs} +1 -1
- package/dist/{reply-all-icon.entry-6e49eb03.cjs → reply-all-icon.entry-9446c2d0.cjs} +1 -1
- package/dist/{reply-all-icon.entry-24f7c0fe.js → reply-all-icon.entry-ded706c7.js} +2 -2
- package/dist/{reply-icon.entry-7fff25c9.cjs → reply-icon.entry-0d362c63.cjs} +1 -1
- package/dist/{reply-icon.entry-d5d26d65.js → reply-icon.entry-7c5c0fd9.js} +5 -5
- package/dist/sent-icon.entry-92434496.cjs +1 -0
- package/dist/sent-icon.entry-bc9d1b35.js +16 -0
- package/dist/spam-icon.entry-11370b68.js +16 -0
- package/dist/spam-icon.entry-e0313c63.cjs +1 -0
- package/dist/{star-icon.entry-c2e743a9.js → star-icon.entry-3a81207c.js} +6 -6
- package/dist/{star-icon.entry-3c57a35c.cjs → star-icon.entry-87823b56.cjs} +1 -1
- package/dist/{stop-icon.entry-0b9563d5.js → stop-icon.entry-472a11dc.js} +2 -2
- package/dist/{stop-icon.entry-cf4c4e63.cjs → stop-icon.entry-ddf9242a.cjs} +1 -1
- package/dist/{textarea-component.entry-2eccc173.cjs → textarea-component.entry-2c6c0c7e.cjs} +1 -1
- package/dist/{textarea-component.entry-60e7a4d0.js → textarea-component.entry-f9797150.js} +2 -2
- package/dist/{toggle-switch.entry-0a6b01e6.js → toggle-switch.entry-a7cbc256.js} +2 -2
- package/dist/{toggle-switch.entry-612744fd.cjs → toggle-switch.entry-fbef6918.cjs} +1 -1
- package/dist/{translate-icon.entry-ede5f77d.js → translate-icon.entry-0ab604fe.js} +4 -4
- package/dist/{translate-icon.entry-8adc4146.cjs → translate-icon.entry-2fe4868f.cjs} +1 -1
- package/dist/trash-fill-icon.entry-1904e8d6.cjs +1 -0
- package/dist/trash-fill-icon.entry-4bdfb061.js +16 -0
- package/dist/{underline-icon.entry-b2b43ba2.js → underline-icon.entry-29366789.js} +2 -2
- package/dist/{underline-icon.entry-d2fe2da6.cjs → underline-icon.entry-6a2ca451.cjs} +1 -1
- package/dist/{warning-icon.entry-0a5c7337.js → warning-icon.entry-1649ffe7.js} +2 -2
- package/dist/{warning-icon.entry-85822f4d.cjs → warning-icon.entry-3f848ed6.cjs} +1 -1
- package/package.json +2 -2
- package/dist/add-circle-icon_2.entry-e616ece6.cjs +0 -1
- package/dist/archive-icon.entry-41938a61.cjs +0 -1
- package/dist/archive-icon.entry-bd81d2d9.js +0 -16
- package/dist/arrow-icon.entry-4103be57.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_36.entry-917e4a9d.cjs +0 -6
- package/dist/checkmark-icon_15.entry-08c8b107.cjs +0 -5
- package/dist/chevron-icon_3.entry-2f75c3c4.cjs +0 -1
- package/dist/document-refresh-icon.entry-f6dfe744.js +0 -16
- package/dist/inbox-icon.entry-24ec450f.cjs +0 -1
- package/dist/inbox-icon.entry-b71acde0.js +0 -16
- package/dist/index-efb6db79.cjs +0 -57
- package/dist/input-dropdown_2.entry-0c219620.cjs +0 -1
- package/dist/italic-icon.entry-a9324a8a.cjs +0 -1
- package/dist/italic-icon.entry-c42f8112.js +0 -16
- package/dist/notebook-store-b61693cd-5657061b.js +0 -14
- package/dist/notebook-store-b61693cd-6515d345.cjs +0 -5
- package/dist/nylas-booked-event-card_12.entry-7c7afae5.cjs +0 -1
- package/dist/nylas-call-summary.entry-4bf7284f.cjs +0 -1
- package/dist/nylas-call-summary.entry-ad6fb46a.js +0 -16
- package/dist/nylas-event-calendar_3.entry-f747f6a8.cjs +0 -6
- package/dist/nylas-if-state.entry-6b071705.cjs +0 -1
- package/dist/nylas-if-state.entry-7468854a.js +0 -95
- package/dist/nylas-key-points.entry-7af8da1a.cjs +0 -1
- package/dist/nylas-key-points.entry-c186445e.js +0 -29
- package/dist/nylas-login.entry-171bd025.cjs +0 -1
- package/dist/nylas-login.entry-d85c1473.js +0 -74
- package/dist/nylas-provider.entry-ab1f6886.js +0 -265
- package/dist/nylas-provider.entry-e4231b93.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-d522ca98.cjs +0 -2
- package/dist/nylas-scheduling.entry-9e81c6fc.js +0 -439
- package/dist/nylas-scheduling.entry-c52edb14.cjs +0 -1
- package/dist/nylas-transcript.entry-a1fa7e17.cjs +0 -6
- package/dist/nylas-transcript.entry-fb39b5af.js +0 -128
- package/dist/nylas-video-player.entry-25e8cd9a.js +0 -39
- package/dist/nylas-video-player.entry-89842545.cjs +0 -1
- package/dist/nylas-video-preview.entry-28a0bd60.cjs +0 -1
- package/dist/nylas-video-preview.entry-80171531.js +0 -16
- package/dist/play-icon.entry-d548464e.js +0 -16
- package/dist/scheduler-config-store-d6729d8d-50920e8c.js +0 -29
- package/dist/scheduler-config-store-d6729d8d-a0bdda83.cjs +0 -1
- package/dist/scheduler-store-fe9e85a4-1dcfddfa.js +0 -533
- package/dist/scheduler-store-fe9e85a4-baabf78a.cjs +0 -1
- package/dist/sent-icon.entry-42ce5bcb.cjs +0 -1
- package/dist/sent-icon.entry-858fe83e.js +0 -16
- package/dist/spam-icon.entry-0827144e.js +0 -16
- package/dist/spam-icon.entry-bf1a48b6.cjs +0 -1
- package/dist/trash-fill-icon.entry-b6456ec8.cjs +0 -1
- package/dist/trash-fill-icon.entry-d48f72c5.js +0 -16
package/dist/{calendar-cancel-icon.entry-f3b8ae99.js → calendar-cancel-icon.entry-7d1a7cea.js}
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as t, h as a } from "./index-6e735f92.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
const e = ".sc-calendar-cancel-icon-h{display:flex}", n = e, l = class {
|
|
6
|
-
constructor(
|
|
7
|
-
|
|
6
|
+
constructor(c) {
|
|
7
|
+
t(this, c), this.width = "20", this.height = "20";
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return a("svg", { key: "
|
|
10
|
+
return a("svg", { key: "9e7bcafa585dc17975a1793711df835ca7d8d9c1", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "66ba7e0a8a1ce379d327647a416c70cbcb0e25f2", d: "M14.5 9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-2.476 3.024a.5.5 0 0 0 0 .707l1.769 1.77-1.767 1.766a.5.5 0 1 0 .707.708l1.767-1.767 1.77 1.769a.5.5 0 1 0 .707-.707L15.208 14.5l1.771-1.77a.5.5 0 0 0-.707-.707l-1.771 1.77-1.77-1.77a.5.5 0 0 0-.707 0ZM14.75 0A3.25 3.25 0 0 1 18 3.25l.001 5.773a6.47 6.47 0 0 0-1.5-.71L16.5 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.064a6.47 6.47 0 0 0 .709 1.501L3.25 18A3.25 3.25 0 0 1 0 14.75V3.25A3.25 3.25 0 0 1 3.25 0h11.5Zm0 1.5H3.25A1.75 1.75 0 0 0 1.5 3.25V4h15v-.75a1.75 1.75 0 0 0-1.75-1.75Z", fill: "currentColor" }));
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
l.style = n;
|
package/dist/{calendar-cancel-icon.entry-e5032d71.cjs → calendar-cancel-icon.entry-b791b6b1.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b0366ac.cjs");require("react");require("react/jsx-runtime");require("react-dom");const t=".sc-calendar-cancel-icon-h{display:flex}",n=t,a=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"9e7bcafa585dc17975a1793711df835ca7d8d9c1",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"66ba7e0a8a1ce379d327647a416c70cbcb0e25f2",d:"M14.5 9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-2.476 3.024a.5.5 0 0 0 0 .707l1.769 1.77-1.767 1.766a.5.5 0 1 0 .707.708l1.767-1.767 1.77 1.769a.5.5 0 1 0 .707-.707L15.208 14.5l1.771-1.77a.5.5 0 0 0-.707-.707l-1.771 1.77-1.77-1.77a.5.5 0 0 0-.707 0ZM14.75 0A3.25 3.25 0 0 1 18 3.25l.001 5.773a6.47 6.47 0 0 0-1.5-.71L16.5 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.064a6.47 6.47 0 0 0 .709 1.501L3.25 18A3.25 3.25 0 0 1 0 14.75V3.25A3.25 3.25 0 0 1 3.25 0h11.5Zm0 1.5H3.25A1.75 1.75 0 0 0 1.5 3.25V4h15v-.75a1.75 1.75 0 0 0-1.75-1.75Z",fill:"currentColor"}))}};a.style=n;exports.calendar_cancel_icon=a;
|
package/dist/{calendar-check-icon_2.entry-7303362a.cjs → calendar-check-icon_2.entry-2380a4e6.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b0366ac.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r=".sc-calendar-check-icon-h{display:flex}",h=r,t=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"67377dc4802c4f485ba8619ca4662d3092abe08a",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"3cb5ec13188746f8efd7e77ea20d76064263fd4c",fill:"currentColor",d:"M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z"}))}};t.style=h;const s=".sc-checkmark-circle-icon-h{display:flex}",n=s,i=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"e47d53cd5c9773d6aa035cdf048de9b73d85b9d3",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},e.h("path",{key:"6b1f48a79cf4172f447d49189071e0110d60c834",fill:"currentColor",d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z"}))}};i.style=n;exports.calendar_check_icon=t;exports.checkmark_circle_icon=i;
|
package/dist/{calendar-check-icon_2.entry-27dc91f7.js → calendar-check-icon_2.entry-2b5711fd.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, h as c } from "./index-
|
|
1
|
+
import { r as t, h as c } from "./index-6e735f92.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
@@ -7,7 +7,7 @@ const i = ".sc-calendar-check-icon-h{display:flex}", h = i, s = class {
|
|
|
7
7
|
t(this, e), this.width = "20", this.height = "20";
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return c("svg", { key: "
|
|
10
|
+
return c("svg", { key: "67377dc4802c4f485ba8619ca4662d3092abe08a", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, c("path", { key: "3cb5ec13188746f8efd7e77ea20d76064263fd4c", fill: "currentColor", d: "M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z" }));
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
s.style = h;
|
|
@@ -16,7 +16,7 @@ const r = ".sc-checkmark-circle-icon-h{display:flex}", a = r, n = class {
|
|
|
16
16
|
t(this, e), this.width = "20", this.height = "20";
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
|
-
return c("svg", { key: "
|
|
19
|
+
return c("svg", { key: "e47d53cd5c9773d6aa035cdf048de9b73d85b9d3", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, c("path", { key: "6b1f48a79cf4172f447d49189071e0110d60c834", fill: "currentColor", d: "M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z" }));
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
n.style = a;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as e, h as C } from "./index-
|
|
1
|
+
import { r as e, h as C } from "./index-6e735f92.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
@@ -7,7 +7,7 @@ const i = ".sc-calendar-icon-h{display:flex}", r = i, s = class {
|
|
|
7
7
|
e(this, t), this.width = "15", this.height = "15";
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return C("svg", { key: "
|
|
10
|
+
return C("svg", { key: "585183960d55398f56ebaebf55fdfd47c5f9564e", width: this.width, height: this.height, fill: "none", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg" }, C("path", { key: "683f03522f2f1da9fd853495529d1d17d1396c33", fill: "currentColor", d: "M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z" }));
|
|
11
11
|
}
|
|
12
12
|
};
|
|
13
13
|
s.style = r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b0366ac.cjs");require("react");require("react/jsx-runtime");require("react-dom");const r=".sc-calendar-icon-h{display:flex}",i=r,t=class{constructor(C){e.registerInstance(this,C),this.width="15",this.height="15"}render(){return e.h("svg",{key:"585183960d55398f56ebaebf55fdfd47c5f9564e",width:this.width,height:this.height,fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"683f03522f2f1da9fd853495529d1d17d1396c33",fill:"currentColor",d:"M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z"}))}};t.style=i;exports.calendar_icon=t;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as a, a as o, h as e, g as r } from "./index-6e735f92.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react-dom";
|
|
5
5
|
const s = ':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;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}', n = s, c = class {
|
|
6
6
|
constructor(l) {
|
|
7
|
-
|
|
7
|
+
a(this, l), this.nylasFormCheckboxToggled = o(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 = "";
|
|
8
8
|
}
|
|
9
9
|
checkedPropChangedHandler(l) {
|
|
10
10
|
typeof l == "boolean" && (this.isChecked = l);
|
|
@@ -26,10 +26,10 @@ const s = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--n
|
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
render() {
|
|
29
|
-
return e("div", { key: "
|
|
29
|
+
return e("div", { key: "930df97ae0a77c25b971899fec0b5ce8cedfae9e", class: "checkbox-container" }, e("label", { key: "2111091631bf6b466e64749a07c9609eea1d845a", title: this.readOnly ? "read-only field" : void 0, class: { readonly: this.readOnly } }, e("input", { key: "c7e1601e54b24e167bdd00294cb55fb60cd4cf8d", 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() }), e("span", { key: "4ce5357d6f7f4e4d1d7da30a6d1b438f6abf4a35", class: "checkmark" }), e("slot", { key: "88c05c50cc3b2596a1833507b8457d6bf722473f", name: "label" }, e("span", { key: "5059e2484dfa884e6d0ca814f9dc801ba4a4901b", class: "label" }, this.label, this.required && e("span", { class: "required" }, "*")))), this.error && e("p", { class: "error" }, this.error));
|
|
30
30
|
}
|
|
31
31
|
get el() {
|
|
32
|
-
return
|
|
32
|
+
return r(this);
|
|
33
33
|
}
|
|
34
34
|
static get watchers() {
|
|
35
35
|
return {
|
package/dist/{checkbox-component.entry-8fad4faf.cjs → checkbox-component.entry-af77c4fa.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b0366ac.cjs");require("react");require("react/jsx-runtime");require("react-dom");const a=':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-color-blue-100:#e0e6f9;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;--nylas-color-black:#000000;--nylas-color-grey-900:#2c2c2c;--nylas-color-grey-800:#4b4b4b;--nylas-color-grey-700:#6e6e6e;--nylas-color-grey-600:#8e8e8e;--nylas-color-grey-500:#b3b3b3;--nylas-color-grey-400:#cacaca;--nylas-color-grey-300:#e1e1e1;--nylas-color-grey-200:#eaeaea;--nylas-color-grey-100:#f5f5f5;--nylas-color-grey-50:#fbfcfe;--nylas-color-white:#ffffff;--nylas-color-red-900:#992222;--nylas-color-red-700:#cc4841;--nylas-color-red-500:#ff786a;--nylas-color-red-300:#ffa79e;--nylas-color-red-100:#ffc5bf;--nylas-color-red-50:#ffeae8;--nylas-color-blue-900:#213571;--nylas-color-blue-700:#314fa9;--nylas-color-blue-500:#4169e1;--nylas-color-blue-300:#bdccf9;--nylas-color-blue-100:#e0e6f9;--nylas-color-blue-50:#f6f8fd;--nylas-color-yellow-900:#7c6506;--nylas-color-yellow-700:#c29f09;--nylas-color-yellow-500:#f7c90b;--nylas-color-yellow-300:#f9de70;--nylas-color-yellow-100:#fceba9;--nylas-color-yellow-50:#fdf4ce;--nylas-color-green-900:#0e6b60;--nylas-color-green-700:#16a392;--nylas-color-green-500:#17c3b2;--nylas-color-green-300:#74dbd1;--nylas-color-green-100:#a2e7e0;--nylas-color-green-50:#d1f3f0;--nylas-color-purple-900:#643554;--nylas-color-purple-700:#954f7d;--nylas-color-purple-500:#c769a7;--nylas-color-purple-300:#dda5ca;--nylas-color-purple-100:#e0bdd6;--nylas-color-purple-50:#e9dde5;--nylas-color-sky-900:#20698f;--nylas-color-sky-700:#2b8fc2;--nylas-color-sky-500:#6dceff;--nylas-color-sky-300:#8fdaff;--nylas-color-sky-100:#b8e7ff;--nylas-color-sky-50:#d9f2ff;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}',o=a,r=class{constructor(l){e.registerInstance(this,l),this.nylasFormCheckboxToggled=e.createEvent(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=""}checkedPropChangedHandler(l){typeof l=="boolean"&&(this.isChecked=l)}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}componentDidLoad(){this.isChecked=this.checked||!1}handleBookingFormSubmitted(l){this.required&&!this.isChecked&&(this.error=`${this.label} is required.`),this.error&&l.preventDefault()}toggleCheck(){this.error="",this.isChecked=!this.isChecked,this.nylasFormCheckboxToggled.emit({checked:this.isChecked,name:this.name,label:this.label})}render(){return e.h("div",{key:"930df97ae0a77c25b971899fec0b5ce8cedfae9e",class:"checkbox-container"},e.h("label",{key:"2111091631bf6b466e64749a07c9609eea1d845a",title:this.readOnly?"read-only field":void 0,class:{readonly:this.readOnly}},e.h("input",{key:"c7e1601e54b24e167bdd00294cb55fb60cd4cf8d",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()}),e.h("span",{key:"4ce5357d6f7f4e4d1d7da30a6d1b438f6abf4a35",class:"checkmark"}),e.h("slot",{key:"88c05c50cc3b2596a1833507b8457d6bf722473f",name:"label"},e.h("span",{key:"5059e2484dfa884e6d0ca814f9dc801ba4a4901b",class:"label"},this.label,this.required&&e.h("span",{class:"required"},"*")))),this.error&&e.h("p",{class:"error"},this.error))}get el(){return e.getElement(this)}static get watchers(){return{checked:["checkedPropChangedHandler"]}}};r.style=o;exports.checkbox_component=r;
|