@nylas/react 2.1.0 → 2.2.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/dist/cjs/connect.js +1 -0
- package/dist/cjs/elements.js +1 -0
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/notetaker.js +62 -0
- package/dist/cjs/utils.js +11 -0
- package/dist/connect.d.ts +1 -0
- package/dist/elements.d.ts +1 -0
- package/dist/es/connect.js +279 -0
- package/dist/es/elements.js +1319 -0
- package/dist/es/index.js +281 -0
- package/dist/es/notetaker.js +5784 -0
- package/dist/es/utils.js +12396 -0
- package/dist/lib/connect/types.d.ts +1 -1
- package/dist/lib/connect/useNylasConnect.d.ts +2 -2
- package/dist/lib/connect.d.ts +1 -0
- package/dist/lib/elements/components.d.ts +975 -0
- package/dist/lib/elements.d.ts +1 -0
- package/dist/lib/index.d.ts +3 -6
- package/dist/lib/notetaker.d.ts +1 -0
- package/dist/lib/utils.d.ts +2 -0
- package/dist/notetaker.d.ts +1 -0
- package/dist/utils.d.ts +1 -0
- package/package.json +36 -16
- package/dist/add-circle-icon_2.entry-8c3bb0bb.cjs +0 -1
- package/dist/add-circle-icon_2.entry-a3daf6c4.js +0 -28
- package/dist/archive-icon.entry-46ad0ff3.cjs +0 -1
- package/dist/archive-icon.entry-d5141486.js +0 -18
- package/dist/arrow-icon.entry-1b89ce78.js +0 -18
- package/dist/arrow-icon.entry-f696de4f.cjs +0 -1
- package/dist/bold-icon.entry-7827cd4e.cjs +0 -1
- package/dist/bold-icon.entry-c117b4cf.js +0 -18
- package/dist/button-component_2.entry-8cd4c5f3.cjs +0 -1
- package/dist/button-component_2.entry-e68caa9b.js +0 -29
- package/dist/calendar-agenda-fill-icon_37.entry-52bdc8b3.js +0 -5234
- package/dist/calendar-agenda-fill-icon_37.entry-8c592cfa.cjs +0 -6
- package/dist/calendar-cancel-icon.entry-7facfa05.cjs +0 -1
- package/dist/calendar-cancel-icon.entry-f5f1d499.js +0 -18
- package/dist/calendar-check-icon.entry-55320137.js +0 -18
- package/dist/calendar-check-icon.entry-72108702.cjs +0 -1
- package/dist/calendar-icon.entry-afea361e.js +0 -18
- package/dist/calendar-icon.entry-f5c6730f.cjs +0 -1
- package/dist/checkbox-component.entry-5722d263.cjs +0 -1
- package/dist/checkbox-component.entry-89fa6edd.js +0 -54
- package/dist/checkbox-group_4.entry-30e8af17.cjs +0 -28
- package/dist/checkbox-group_4.entry-51f03009.js +0 -10014
- package/dist/checkmark-circle-icon.entry-ae11049d.cjs +0 -1
- package/dist/checkmark-circle-icon.entry-dfe67e22.js +0 -18
- package/dist/checkmark-icon_15.entry-4c3979db.js +0 -1415
- package/dist/checkmark-icon_15.entry-e59c0f53.cjs +0 -5
- package/dist/chevron-icon_3.entry-1f3c3ca6.js +0 -159
- package/dist/chevron-icon_3.entry-ea791750.cjs +0 -1
- package/dist/clock-icon_4.entry-172fed74.cjs +0 -1
- package/dist/clock-icon_4.entry-78878cb8.js +0 -48
- package/dist/constants-f51538ef-cd2a67c4.cjs +0 -1
- package/dist/constants-f51538ef-e0a5f026.js +0 -876
- package/dist/customParseFormat-b5d95b34-a6b6fcba.cjs +0 -1
- package/dist/customParseFormat-b5d95b34-ce80820c.js +0 -135
- package/dist/delete-icon.entry-a8c0bf03.cjs +0 -1
- package/dist/delete-icon.entry-cebdc90f.js +0 -18
- package/dist/document-refresh-icon.entry-2d9a529d.cjs +0 -1
- package/dist/document-refresh-icon.entry-8780a2b8.js +0 -18
- package/dist/feedbackSync-92220b42-fbebe1f9.cjs +0 -448
- package/dist/feedbackSync-92220b42-fd5f5610.js +0 -6048
- package/dist/folder-icon.entry-3e61ccca.cjs +0 -1
- package/dist/folder-icon.entry-6ffd5191.js +0 -18
- package/dist/forward-icon.entry-c7d88db8.cjs +0 -1
- package/dist/forward-icon.entry-c9c4bf5b.js +0 -18
- package/dist/globe-icon.entry-0b93cab8.cjs +0 -1
- package/dist/globe-icon.entry-7c0dca7b.js +0 -18
- package/dist/google-logo-icon_6.entry-deef91ee.js +0 -1765
- package/dist/google-logo-icon_6.entry-e25ce3e7.cjs +0 -2
- package/dist/google-meet-icon_5.entry-214347f0.cjs +0 -1
- package/dist/google-meet-icon_5.entry-f8b5a92a.js +0 -58
- package/dist/inbox-icon.entry-873062c3.js +0 -18
- package/dist/inbox-icon.entry-f08f2fd5.cjs +0 -1
- package/dist/index-025be398.js +0 -7187
- package/dist/index-c510313d-1318f67a.js +0 -289
- package/dist/index-c510313d-b0508eee.cjs +0 -1
- package/dist/index-f42fe591.cjs +0 -65
- package/dist/index.es-488bc919-d02dd50a.cjs +0 -7
- package/dist/index.es-488bc919-ea63a7e9.js +0 -2724
- package/dist/info-icon_2.entry-442b9097.cjs +0 -1
- package/dist/info-icon_2.entry-60fb8648.js +0 -37
- package/dist/input-component.entry-5898a52e.js +0 -96
- package/dist/input-component.entry-7274fd28.cjs +0 -1
- package/dist/input-dropdown_2.entry-4534436c.js +0 -255
- package/dist/input-dropdown_2.entry-9b72f637.cjs +0 -1
- package/dist/italic-icon.entry-62052cd8.js +0 -18
- package/dist/italic-icon.entry-9bdbbd37.cjs +0 -1
- package/dist/lib/elements/index.d.ts +0 -133
- package/dist/lib/elements/react-component-lib/createComponent.d.ts +0 -10
- package/dist/lib/elements/react-component-lib/createOverlayComponent.d.ts +0 -21
- package/dist/lib/elements/react-component-lib/index.d.ts +0 -2
- package/dist/lib/elements/react-component-lib/interfaces.d.ts +0 -29
- package/dist/lib/elements/react-component-lib/utils/attachProps.d.ts +0 -9
- package/dist/lib/elements/react-component-lib/utils/case.d.ts +0 -2
- package/dist/lib/elements/react-component-lib/utils/dev.d.ts +0 -2
- package/dist/lib/elements/react-component-lib/utils/index.d.ts +0 -10
- package/dist/multi-select-dropdown.entry-77752d46.cjs +0 -1
- package/dist/multi-select-dropdown.entry-9c9d05c1.js +0 -133
- package/dist/nylas-booked-event-card_11.entry-32b2e9f1.js +0 -1410
- package/dist/nylas-booked-event-card_11.entry-4aba5146.cjs +0 -1
- package/dist/nylas-date-component_2.entry-6b058796.cjs +0 -1
- package/dist/nylas-date-component_2.entry-a869519f.js +0 -310
- package/dist/nylas-form-card.entry-5390459f.js +0 -75
- package/dist/nylas-form-card.entry-c2f34d73.cjs +0 -1
- package/dist/nylas-notification_2.entry-054392cf.cjs +0 -1
- package/dist/nylas-notification_2.entry-f46e88e5.js +0 -88
- package/dist/nylas-scheduler-editor.entry-40a48f47.js +0 -1854
- package/dist/nylas-scheduler-editor.entry-e29fdf07.cjs +0 -2
- package/dist/nylas-scheduling.entry-115b1752.js +0 -1002
- package/dist/nylas-scheduling.entry-79cb1d9c.cjs +0 -1
- package/dist/person-icon.entry-2cae306c.cjs +0 -1
- package/dist/person-icon.entry-fd668b89.js +0 -18
- package/dist/play-icon.entry-7fc3c0fd.js +0 -18
- package/dist/play-icon.entry-9989a520.cjs +0 -1
- package/dist/radio-button-group.entry-03385b5f.cjs +0 -1
- package/dist/radio-button-group.entry-9df82cd0.js +0 -58
- package/dist/react.cjs +0 -1
- package/dist/react.js +0 -164
- package/dist/refresh-icon.entry-310954ba.cjs +0 -1
- package/dist/refresh-icon.entry-c56e5623.js +0 -18
- package/dist/register-component-3acd57e7-5a79a90a.cjs +0 -1
- package/dist/register-component-3acd57e7-cb09c05e.js +0 -110
- package/dist/reply-all-icon.entry-32e0e000.js +0 -18
- package/dist/reply-all-icon.entry-68388f97.cjs +0 -1
- package/dist/reply-icon.entry-3ac2e736.js +0 -18
- package/dist/reply-icon.entry-e616a9a4.cjs +0 -1
- package/dist/sent-icon.entry-0622ed04.js +0 -18
- package/dist/sent-icon.entry-543eb3c4.cjs +0 -1
- package/dist/spam-icon.entry-74bcfd4f.js +0 -18
- package/dist/spam-icon.entry-e341ee3e.cjs +0 -1
- package/dist/star-icon.entry-864d2bf9.js +0 -18
- package/dist/star-icon.entry-c90d40f6.cjs +0 -1
- package/dist/stop-icon.entry-835908c5.js +0 -18
- package/dist/stop-icon.entry-ffc46b42.cjs +0 -1
- package/dist/textarea-component.entry-6adcf6a6.js +0 -58
- package/dist/textarea-component.entry-dae8eb5c.cjs +0 -1
- package/dist/toggle-switch.entry-5ee29867.cjs +0 -1
- package/dist/toggle-switch.entry-ff2ccb75.js +0 -51
- package/dist/translate-icon.entry-372dd808.js +0 -18
- package/dist/translate-icon.entry-5606067d.cjs +0 -1
- package/dist/trash-fill-icon.entry-01b4379e.js +0 -18
- package/dist/trash-fill-icon.entry-daed6c0a.cjs +0 -1
- package/dist/underline-icon.entry-2020ee64.cjs +0 -1
- package/dist/underline-icon.entry-464b900d.js +0 -18
- package/dist/utils-31933f5d-15041585.js +0 -17878
- package/dist/utils-31933f5d-1d4c81ab.cjs +0 -54
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-f42fe591.cjs");require("@nylas/web-elements");require("react");require("@nylas/connect");require("react/jsx-runtime");require("react-dom");const t=".sc-calendar-cancel-icon-h{display:flex}",n=t,a=class{constructor(r){e.registerInstance(this,r),this.width="20",this.height="20"}render(){return e.h("svg",{key:"4d04df5d7258eae49892f0c49e3f74b27637d5d9",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"66ab513cd6f1875a723add2eb66585066ea68b2d",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;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as e, h as a } from "./index-025be398.js";
|
|
2
|
-
import "@nylas/web-elements";
|
|
3
|
-
import "react";
|
|
4
|
-
import "@nylas/connect";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
const c = ".sc-calendar-cancel-icon-h{display:flex}", n = c, r = class {
|
|
8
|
-
constructor(t) {
|
|
9
|
-
e(this, t), this.width = "20", this.height = "20";
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
return a("svg", { key: "4d04df5d7258eae49892f0c49e3f74b27637d5d9", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "66ab513cd6f1875a723add2eb66585066ea68b2d", 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" }));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
r.style = n;
|
|
16
|
-
export {
|
|
17
|
-
r as calendar_cancel_icon
|
|
18
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as e, h as t } from "./index-025be398.js";
|
|
2
|
-
import "@nylas/web-elements";
|
|
3
|
-
import "react";
|
|
4
|
-
import "@nylas/connect";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
const r = ".sc-calendar-check-icon-h{display:flex}", i = r, s = class {
|
|
8
|
-
constructor(c) {
|
|
9
|
-
e(this, c), this.width = "20", this.height = "20";
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
return t("svg", { key: "1ad50290096d3d9492f4284aa34e32ab7a1ec2b5", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "98c710b57bdc91680ec34087ecb884cdf8c13f18", 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" }));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
s.style = i;
|
|
16
|
-
export {
|
|
17
|
-
s as calendar_check_icon
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-f42fe591.cjs");require("@nylas/web-elements");require("react");require("@nylas/connect");require("react/jsx-runtime");require("react-dom");const t=".sc-calendar-check-icon-h{display:flex}",i=t,c=class{constructor(r){e.registerInstance(this,r),this.width="20",this.height="20"}render(){return e.h("svg",{key:"1ad50290096d3d9492f4284aa34e32ab7a1ec2b5",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"98c710b57bdc91680ec34087ecb884cdf8c13f18",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"}))}};c.style=i;exports.calendar_check_icon=c;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { r as e, h as t } from "./index-025be398.js";
|
|
2
|
-
import "@nylas/web-elements";
|
|
3
|
-
import "react";
|
|
4
|
-
import "@nylas/connect";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
const i = ".sc-calendar-icon-h{display:flex}", r = i, o = class {
|
|
8
|
-
constructor(C) {
|
|
9
|
-
e(this, C), this.width = "15", this.height = "15";
|
|
10
|
-
}
|
|
11
|
-
render() {
|
|
12
|
-
return t("svg", { key: "4150f7685e3cf6a42aac7e404a823019cf4d2e6a", width: this.width, height: this.height, fill: "none", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "57bb60f20971dea6cc659ae4d624418e7ea7bf28", 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" }));
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
o.style = r;
|
|
16
|
-
export {
|
|
17
|
-
o as calendar_icon
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-f42fe591.cjs");require("@nylas/web-elements");require("react");require("@nylas/connect");require("react/jsx-runtime");require("react-dom");const C=".sc-calendar-icon-h{display:flex}",i=C,r=class{constructor(t){e.registerInstance(this,t),this.width="15",this.height="15"}render(){return e.h("svg",{key:"4150f7685e3cf6a42aac7e404a823019cf4d2e6a",width:this.width,height:this.height,fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"57bb60f20971dea6cc659ae4d624418e7ea7bf28",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"}))}};r.style=i;exports.calendar_icon=r;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index-f42fe591.cjs");require("@nylas/web-elements");require("react");require("@nylas/connect");require("react/jsx-runtime");require("react-dom");const s=':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--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:16px;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;color:var(--nylas-base-800)}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:1px 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:1px solid var(--nylas-base-300);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,a=class{constructor(e){l.registerInstance(this,e),this.nylasFormCheckboxToggled=l.createEvent(this,"nylasFormCheckboxToggled",7),this.componentType="checkbox",this.name="checkbox",this.checked=void 0,this.label="",this.readOnly=!1,this.required=!1,this.themeConfig=void 0,this.errorMessage="",this.isChecked=void 0,this.error=""}checkedPropChangedHandler(e){typeof e=="boolean"&&(this.isChecked=e)}themeConfigChangedHandler(e,r){e!==r&&this.applyThemeConfig(e)}applyThemeConfig(e){if(e)for(const[r,o]of Object.entries(e))this.el.style.setProperty(`${r}`,o)}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}componentDidLoad(){this.isChecked=this.checked||!1,this.applyThemeConfig(this.themeConfig)}handleBookingFormSubmitted(e){this.required&&!this.isChecked&&(this.error=this.errorMessage||`${this.label} is required.`),this.error&&e.preventDefault()}toggleCheck(){this.error="",this.isChecked=!this.isChecked,this.nylasFormCheckboxToggled.emit({checked:this.isChecked,name:this.name,label:this.label})}render(){return l.h("div",{key:"121debd8ed618a95643a21c094a9ae853332024a",class:"checkbox-container"},l.h("label",{key:"6a36ac44a4cc89777b789c6ff39dc9dd29bea0ea",title:this.readOnly?"read-only field":void 0,class:{readonly:this.readOnly}},l.h("input",{key:"aff98cb777f2e03b83a19417b5e57eb232583d52",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()}),l.h("span",{key:"6f25d32ff486d7ca82176b15bfa3b0e785846cf5",class:"checkmark"}),l.h("slot",{key:"cc34985070b05de954b3972fad5dbd65096095d0",name:"label"},l.h("span",{key:"122235c3077d601fa37ce37ace58b1df179e22ed",class:"label",part:"checkbox-label-span"},this.label,this.required&&l.h("span",{class:"required"},"*")))),this.error&&l.h("p",{class:"error"},this.error))}get el(){return l.getElement(this)}static get watchers(){return{checked:["checkedPropChangedHandler"],themeConfig:["themeConfigChangedHandler"]}}};a.style=n;exports.checkbox_component=a;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { r as o, c as s, h as l, g as n } from "./index-025be398.js";
|
|
2
|
-
import "@nylas/web-elements";
|
|
3
|
-
import "react";
|
|
4
|
-
import "@nylas/connect";
|
|
5
|
-
import "react/jsx-runtime";
|
|
6
|
-
import "react-dom";
|
|
7
|
-
const c = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-50:#ffeae8;--nylas-error-100:#ffc5bf;--nylas-error-200:#fecaca;--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:16px;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;color:var(--nylas-base-800)}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:1px 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:1px solid var(--nylas-base-300);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}', t = c, i = class {
|
|
8
|
-
constructor(e) {
|
|
9
|
-
o(this, e), this.nylasFormCheckboxToggled = s(this, "nylasFormCheckboxToggled", 7), this.componentType = "checkbox", this.name = "checkbox", this.checked = void 0, this.label = "", this.readOnly = !1, this.required = !1, this.themeConfig = void 0, this.errorMessage = "", this.isChecked = void 0, this.error = "";
|
|
10
|
-
}
|
|
11
|
-
checkedPropChangedHandler(e) {
|
|
12
|
-
typeof e == "boolean" && (this.isChecked = e);
|
|
13
|
-
}
|
|
14
|
-
themeConfigChangedHandler(e, a) {
|
|
15
|
-
e !== a && this.applyThemeConfig(e);
|
|
16
|
-
}
|
|
17
|
-
applyThemeConfig(e) {
|
|
18
|
-
if (e)
|
|
19
|
-
for (const [a, r] of Object.entries(e))
|
|
20
|
-
this.el.style.setProperty(`${a}`, r);
|
|
21
|
-
}
|
|
22
|
-
componentWillLoad() {
|
|
23
|
-
this.el.setAttribute("component-type", this.componentType);
|
|
24
|
-
}
|
|
25
|
-
componentDidLoad() {
|
|
26
|
-
this.isChecked = this.checked || !1, this.applyThemeConfig(this.themeConfig);
|
|
27
|
-
}
|
|
28
|
-
handleBookingFormSubmitted(e) {
|
|
29
|
-
this.required && !this.isChecked && (this.error = this.errorMessage || `${this.label} is required.`), this.error && e.preventDefault();
|
|
30
|
-
}
|
|
31
|
-
toggleCheck() {
|
|
32
|
-
this.error = "", this.isChecked = !this.isChecked, this.nylasFormCheckboxToggled.emit({
|
|
33
|
-
checked: this.isChecked,
|
|
34
|
-
name: this.name,
|
|
35
|
-
label: this.label
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
render() {
|
|
39
|
-
return l("div", { key: "121debd8ed618a95643a21c094a9ae853332024a", class: "checkbox-container" }, l("label", { key: "6a36ac44a4cc89777b789c6ff39dc9dd29bea0ea", title: this.readOnly ? "read-only field" : void 0, class: { readonly: this.readOnly } }, l("input", { key: "aff98cb777f2e03b83a19417b5e57eb232583d52", 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() }), l("span", { key: "6f25d32ff486d7ca82176b15bfa3b0e785846cf5", class: "checkmark" }), l("slot", { key: "cc34985070b05de954b3972fad5dbd65096095d0", name: "label" }, l("span", { key: "122235c3077d601fa37ce37ace58b1df179e22ed", class: "label", part: "checkbox-label-span" }, this.label, this.required && l("span", { class: "required" }, "*")))), this.error && l("p", { class: "error" }, this.error));
|
|
40
|
-
}
|
|
41
|
-
get el() {
|
|
42
|
-
return n(this);
|
|
43
|
-
}
|
|
44
|
-
static get watchers() {
|
|
45
|
-
return {
|
|
46
|
-
checked: ["checkedPropChangedHandler"],
|
|
47
|
-
themeConfig: ["themeConfigChangedHandler"]
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
i.style = t;
|
|
52
|
-
export {
|
|
53
|
-
i as checkbox_component
|
|
54
|
-
};
|