@nylas/react 1.1.0-canary.5 → 1.1.0-canary.7

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.
Files changed (96) hide show
  1. package/dist/{elements-dc5b338e-e87f79b6.js → elements-dc5b338e-6078b875.js} +1 -1
  2. package/dist/{elements-dc5b338e-29ef67ec.cjs → elements-dc5b338e-96e197ca.cjs} +1 -1
  3. package/dist/{focus-visible-e8093c16-61d506d2.cjs → focus-visible-e8093c16-018ffd63.cjs} +1 -1
  4. package/dist/{focus-visible-e8093c16-e7357f74.js → focus-visible-e8093c16-ab01d60a.js} +1 -1
  5. package/dist/{index-f9ba9aa8.js → index-1fd24ccf.js} +1039 -1428
  6. package/dist/index-823fdc6f.cjs +36 -0
  7. package/dist/react.cjs +1 -1
  8. package/dist/react.js +52 -52
  9. package/package.json +3 -3
  10. package/dist/add-circle-icon_22.entry-9f634efd.js +0 -1731
  11. package/dist/add-circle-icon_22.entry-e7ec6c34.cjs +0 -1
  12. package/dist/archive-icon_7.entry-24bac466.js +0 -75
  13. package/dist/archive-icon_7.entry-6649ed76.cjs +0 -1
  14. package/dist/arrow-icon.entry-1fffd526.cjs +0 -1
  15. package/dist/arrow-icon.entry-82e59ce4.js +0 -15
  16. package/dist/bold-icon_3.entry-5a01fecf.cjs +0 -1
  17. package/dist/bold-icon_3.entry-72e585da.js +0 -35
  18. package/dist/calendar-cancel-icon.entry-0b52bdc9.cjs +0 -1
  19. package/dist/calendar-cancel-icon.entry-247b530c.js +0 -15
  20. package/dist/calendar-check-icon_2.entry-d7bb76c7.cjs +0 -1
  21. package/dist/calendar-check-icon_2.entry-dbb2df49.js +0 -25
  22. package/dist/calendar-icon.entry-911773c4.cjs +0 -1
  23. package/dist/calendar-icon.entry-d64cb3d3.js +0 -15
  24. package/dist/chevron-icon_3.entry-b72f4cdb.cjs +0 -1
  25. package/dist/chevron-icon_3.entry-db9f8217.js +0 -117
  26. package/dist/close-icon.entry-9d141bb4.js +0 -15
  27. package/dist/close-icon.entry-da590fa2.cjs +0 -1
  28. package/dist/constants-6ee60d6d-09ee73d9.cjs +0 -15
  29. package/dist/constants-6ee60d6d-d5928e79.js +0 -3740
  30. package/dist/document-refresh-icon.entry-5e8cc2f0.cjs +0 -1
  31. package/dist/document-refresh-icon.entry-ee9632d7.js +0 -15
  32. package/dist/forward-icon_6.entry-cac8473a.cjs +0 -3
  33. package/dist/forward-icon_6.entry-f054ad9d.js +0 -953
  34. package/dist/globe-icon.entry-2fde6ac4.js +0 -15
  35. package/dist/globe-icon.entry-bc484551.cjs +0 -1
  36. package/dist/google-logo-icon_4.entry-a9848399.cjs +0 -1
  37. package/dist/google-logo-icon_4.entry-dca87e45.js +0 -349
  38. package/dist/index-22f7e49c.cjs +0 -37
  39. package/dist/index.es-f57e612a-1d17c676.js +0 -3137
  40. package/dist/index.es-f57e612a-95ca3e17.cjs +0 -7
  41. package/dist/info-icon_2.entry-dbf3931a.js +0 -34
  42. package/dist/info-icon_2.entry-e67844eb.cjs +0 -1
  43. package/dist/loading-icon.entry-4566cba8.cjs +0 -1
  44. package/dist/loading-icon.entry-ae4c2d7e.js +0 -15
  45. package/dist/mailbox-store-47fc8a1a-2365f20f.js +0 -380
  46. package/dist/mailbox-store-47fc8a1a-cd3516a7.cjs +0 -1
  47. package/dist/nylas-additional-participants.entry-7c568149.cjs +0 -1
  48. package/dist/nylas-additional-participants.entry-e8426256.js +0 -81
  49. package/dist/nylas-booked-event-card_10.entry-6a664889.cjs +0 -1
  50. package/dist/nylas-booked-event-card_10.entry-ef767733.js +0 -782
  51. package/dist/nylas-form-card.entry-d8506b1f.js +0 -54
  52. package/dist/nylas-form-card.entry-e44169b6.cjs +0 -1
  53. package/dist/nylas-if-state.entry-044c49d2.cjs +0 -1
  54. package/dist/nylas-if-state.entry-98a336df.js +0 -94
  55. package/dist/nylas-list-folders.entry-509f9be4.cjs +0 -1
  56. package/dist/nylas-list-folders.entry-55ce3403.js +0 -120
  57. package/dist/nylas-list-threads.entry-1f57382a.js +0 -70
  58. package/dist/nylas-list-threads.entry-c36e2cf3.cjs +0 -1
  59. package/dist/nylas-login.entry-66f542b8.cjs +0 -1
  60. package/dist/nylas-login.entry-76358c2f.js +0 -73
  61. package/dist/nylas-mailbox-pagination.entry-5562257a.js +0 -101
  62. package/dist/nylas-mailbox-pagination.entry-89b0dd99.cjs +0 -1
  63. package/dist/nylas-mailbox-toolbar-button.entry-573e0429.cjs +0 -1
  64. package/dist/nylas-mailbox-toolbar-button.entry-6b1b5b15.js +0 -82
  65. package/dist/nylas-mailbox.entry-97c503f2.js +0 -134
  66. package/dist/nylas-mailbox.entry-e21a2f50.cjs +0 -1
  67. package/dist/nylas-provider.entry-07e1e26a.js +0 -145
  68. package/dist/nylas-provider.entry-61899957.cjs +0 -1
  69. package/dist/nylas-scheduler-editor.entry-60fe38ce.cjs +0 -7
  70. package/dist/nylas-scheduler-editor.entry-e326c9de.js +0 -2275
  71. package/dist/nylas-scheduling.entry-be0cc090.js +0 -235
  72. package/dist/nylas-scheduling.entry-d88289db.cjs +0 -1
  73. package/dist/nylas-threads-refresh.entry-8201f8dd.js +0 -74
  74. package/dist/nylas-threads-refresh.entry-c71ee775.cjs +0 -1
  75. package/dist/nylas-threads-search.entry-912a90a4.cjs +0 -1
  76. package/dist/nylas-threads-search.entry-fc477e01.js +0 -69
  77. package/dist/nylas-view-thread.entry-af418ddb.cjs +0 -1
  78. package/dist/nylas-view-thread.entry-d2953ea8.js +0 -203
  79. package/dist/people-icon.entry-4b598fde.js +0 -15
  80. package/dist/people-icon.entry-73cfa6f5.cjs +0 -1
  81. package/dist/play-icon_2.entry-1a487abb.cjs +0 -1
  82. package/dist/play-icon_2.entry-d1c2f823.js +0 -25
  83. package/dist/refresh-icon.entry-42d543d0.cjs +0 -1
  84. package/dist/refresh-icon.entry-6aedfce6.js +0 -15
  85. package/dist/register-component-cf5c8420-d3fb6bf9.cjs +0 -1
  86. package/dist/register-component-cf5c8420-dc1bc0a4.js +0 -109
  87. package/dist/scheduler-config-store-6222c0ed-000f1a4f.js +0 -18
  88. package/dist/scheduler-config-store-6222c0ed-758621fb.cjs +0 -1
  89. package/dist/scheduler-store-39d37291-4e8e9ff9.js +0 -293
  90. package/dist/scheduler-store-39d37291-b66c052c.cjs +0 -1
  91. package/dist/time-period-selector.entry-f1e27a00.js +0 -76
  92. package/dist/time-period-selector.entry-fb3d0178.cjs +0 -1
  93. package/dist/translate-icon.entry-0d44b6cb.cjs +0 -1
  94. package/dist/translate-icon.entry-3db947f5.js +0 -15
  95. package/dist/warning-icon.entry-a20657e4.cjs +0 -1
  96. package/dist/warning-icon.entry-a8ea0fe0.js +0 -15
@@ -1,117 +0,0 @@
1
- import { r as l, h as i, c as r, g as d } from "./index-f9ba9aa8.js";
2
- import "react";
3
- import "react-dom";
4
- const c = ".sc-chevron-icon-h{display:flex}", p = c, h = class {
5
- constructor(e) {
6
- l(this, e), this.width = "24", this.height = "24";
7
- }
8
- render() {
9
- return i("svg", { key: "8b2f33f377a5e7cef2b384c7f94d8fbe16c91fa0", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none" }, i("path", { key: "8470f2d9380d24168e7b0985b75d389e8ceae095", fill: "currentColor", d: "M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z" }));
10
- }
11
- };
12
- h.style = p;
13
- const f = ".sc-search-icon-h{display:flex}", b = f, u = class {
14
- constructor(e) {
15
- l(this, e), this.width = "15", this.height = "15";
16
- }
17
- render() {
18
- return i("svg", { key: "0a6d8feab2e4fda5ba90e67117de1b38b945eb71", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "07847b8eff8738c946ea9d38590ed5ec59b2ee87", fill: "currentColor", d: "M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z" }));
19
- }
20
- };
21
- u.style = b;
22
- const y = ':host{display:block;position:relative;--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}@media screen and (max-width: 768px){:host{position:unset}}.dropdown{display:inline-block}.dropbtn{color:var(--nylas-base-800);padding:10px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;gap:0.5rem;background:transparent;border:none;border-radius:var(--nylas-border-radius-2x)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);max-width:306px;width:max-content;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}', x = y, w = class {
23
- constructor(e) {
24
- l(this, e), this.selectedOptionChanged = r(this, "selectedOptionChanged", 7), this.name = void 0, this.options = [], this.defaultSelectedOption = void 0, this.withSearch = !0, this.pluralizedLabel = "", this.selectedOption = this.defaultSelectedOption || null, this.isOpen = !1, this.searchValue = "", this.filteredOptions = [...this.options], this.ariaActivedescendant = "";
25
- }
26
- optionsChangedHandler(e, s) {
27
- e !== s && (this.filteredOptions = e);
28
- }
29
- defaultSelectedOptionChangedHandler(e, s) {
30
- e.label !== s.label && (this.selectedOption = e);
31
- }
32
- componentWillLoad() {
33
- this.filteredOptions = this.options, !this.selectedOption && this.defaultSelectedOption && (this.selectedOption = this.defaultSelectedOption), !this.selectedOption && this.options.length > 0 && (this.selectedOption = this.options[0]);
34
- }
35
- toggleDropdown() {
36
- this.isOpen = !this.isOpen;
37
- }
38
- filterOptions(e) {
39
- const s = e.target.value;
40
- this.searchValue = s, this.filteredOptions = this.options.filter((t) => t.label.toLowerCase().includes(s.toLowerCase()));
41
- }
42
- selectOption(e) {
43
- this.selectedOption = e, this.toggleDropdown(), this.selectedOptionChanged.emit({
44
- value: e.value,
45
- name: this.name
46
- });
47
- }
48
- handleSelectButtonKeyDown(e) {
49
- var s;
50
- switch (e.key) {
51
- case "ArrowDown":
52
- case "Enter":
53
- e.preventDefault(), this.isOpen || this.toggleDropdown(), (s = this.inputRef) == null || s.focus();
54
- break;
55
- case "Escape":
56
- this.isOpen = !1;
57
- break;
58
- }
59
- }
60
- handleListboxKeydown(e) {
61
- var o, a;
62
- const s = this.filteredOptions, t = s.findIndex((n) => n.value === this.ariaActivedescendant);
63
- if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey) {
64
- if (e.preventDefault(), t === s.length - 1) {
65
- this.ariaActivedescendant = "", (o = this.inputRef) == null || o.focus();
66
- return;
67
- }
68
- const n = t + 1 < s.length ? t + 1 : 0;
69
- this.ariaActivedescendant = s[n].value, this.focusOption(n);
70
- } else if (e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey) {
71
- if (e.preventDefault(), t === 0) {
72
- this.ariaActivedescendant = "", (a = this.inputRef) == null || a.focus();
73
- return;
74
- }
75
- const n = t - 1 >= 0 ? t - 1 : s.length - 1;
76
- this.ariaActivedescendant = s[n].value, this.focusOption(n);
77
- } else
78
- e.key === "Enter" ? (e.preventDefault(), this.ariaActivedescendant && this.selectOption(s[t])) : e.key === "Escape" && (this.isOpen = !1);
79
- }
80
- focusOption(e) {
81
- var a;
82
- const s = this.filteredOptions[e];
83
- if (!s)
84
- return;
85
- const t = s.value, o = (a = this.el.shadowRoot) == null ? void 0 : a.getElementById(t);
86
- o && (o.focus(), o.scrollIntoView({ behavior: "smooth", block: "nearest" }));
87
- }
88
- handleComboboxKeyDown(e) {
89
- e.key === "ArrowDown" || e.key == "Tab" && !e.shiftKey ? (e.preventDefault(), this.ariaActivedescendant = this.filteredOptions[0].value, this.focusOption(0)) : e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey ? (e.preventDefault(), this.ariaActivedescendant = this.filteredOptions[this.filteredOptions.length - 1].value, this.focusOption(this.filteredOptions.length - 1)) : e.key === "Escape" && (this.isOpen = !1);
90
- }
91
- handleOutsideClick(e) {
92
- !e.composedPath().includes(this.el) && this.isOpen && (this.isOpen = !1);
93
- }
94
- render() {
95
- var e, s;
96
- return i("div", { key: "d09b6dde0999bbf13820677ed6c737ffb0a336b1", class: "dropdown", part: "sd_dropdown" }, i("button", { key: "a5b040db9feccc009a4bcd6e398c0d109e598529", part: "sd_dropdown-button", class: { dropbtn: !0, open: this.isOpen }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (t) => this.handleSelectButtonKeyDown(t) }, i("slot", { key: "c7490a8f671ffce9f6b95cb5314774eb6c4882ef", name: "select-icon", "aria-hidden": "true" }), i("span", { key: "85313f85921ee455a4bba9d9c2750da4a3e7237b", class: "selected-option", part: "sd_dropdown-button-selected-label" }, (e = this.selectedOption) != null && e.label ? `${((s = this.selectedOption) == null ? void 0 : s.label) + this.pluralizedLabel}` : ""), i("span", { key: "ae5157941f78c5c044f843e7b9661bfd21758d48", class: {
97
- open: this.isOpen,
98
- closed: !this.isOpen,
99
- chevron: !0
100
- }, "aria-hidden": "true" }, i("chevron-icon", { key: "74dc004905e6eeb589bfa789443c83c9b2f024a4", width: "16", height: "16" }))), this.isOpen ? i("div", { class: "dropdown-content", part: "sd_dropdown-content" }, this.withSearch && i("div", { class: { "search-box": !0, open: this.isOpen } }, i("search-icon", { width: "15", height: "15", class: "icon" }), i("input", { type: "text", role: "combobox", placeholder: "Search", value: this.searchValue, ref: (t) => this.inputRef = t, onInput: (t) => this.filterOptions(t), onKeyDown: (t) => this.handleComboboxKeyDown(t) })), i("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (t) => this.handleListboxKeydown(t) }, this.filteredOptions.map((t) => i("li", { tabindex: "0", key: t.value, id: t.value, onClick: () => this.selectOption(t), role: "option" }, t.labelHTML ? t.labelHTML : t.label)))) : null);
101
- }
102
- get el() {
103
- return d(this);
104
- }
105
- static get watchers() {
106
- return {
107
- options: ["optionsChangedHandler"],
108
- defaultSelectedOption: ["defaultSelectedOptionChangedHandler"]
109
- };
110
- }
111
- };
112
- w.style = x;
113
- export {
114
- h as chevron_icon,
115
- u as search_icon,
116
- w as select_dropdown
117
- };
@@ -1,15 +0,0 @@
1
- import { r as t, h as e } from "./index-f9ba9aa8.js";
2
- import "react";
3
- import "react-dom";
4
- const c = ".sc-close-icon-h{display:flex}", s = c, f = class {
5
- constructor(a) {
6
- t(this, a), this.width = "16", this.height = "16";
7
- }
8
- render() {
9
- return e("svg", { key: "f8170e797c98704a72bab2846208b545562b48dd", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "bf1a70ca6e3c6467e9fe3fbec52bf3eaf4e1a6ab", "clip-path": "url(#a)" }, e("path", { key: "01b2cbdee2fc8bf4e3b9533a119a69787c1c0cbf", d: "M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z", fill: "currentColor" })), e("defs", { key: "a6a7c9e0902b55a10d274201a1a696d0a6cd82e0" }, e("clipPath", { key: "b5a32b3e8f96d8799562f6b96955f86690595883", id: "a" }, e("path", { key: "94e544f1777b8b301dc9e55ae1ff2b6edbab9218", fill: "#fff", transform: "translate(.148 .054)", d: "M0 0h20v20H0z" }))));
10
- }
11
- };
12
- f.style = s;
13
- export {
14
- f as close_icon
15
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-22f7e49c.cjs");require("react");require("react-dom");const c=".sc-close-icon-h{display:flex}",s=c,a=class{constructor(t){e.registerInstance(this,t),this.width="16",this.height="16"}render(){return e.h("svg",{key:"f8170e797c98704a72bab2846208b545562b48dd",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("g",{key:"bf1a70ca6e3c6467e9fe3fbec52bf3eaf4e1a6ab","clip-path":"url(#a)"},e.h("path",{key:"01b2cbdee2fc8bf4e3b9533a119a69787c1c0cbf",d:"M5.73 4.574a.75.75 0 1 0-1.061 1.06l4.419 4.42-4.42 4.42a.75.75 0 1 0 1.061 1.06l4.42-4.42 4.419 4.42a.75.75 0 0 0 1.06-1.06l-4.419-4.42 4.42-4.42a.75.75 0 1 0-1.061-1.06l-4.42 4.42-4.419-4.42Z",fill:"currentColor"})),e.h("defs",{key:"a6a7c9e0902b55a10d274201a1a696d0a6cd82e0"},e.h("clipPath",{key:"b5a32b3e8f96d8799562f6b96955f86690595883",id:"a"},e.h("path",{key:"94e544f1777b8b301dc9e55ae1ff2b6edbab9218",fill:"#fff",transform:"translate(.148 .054)",d:"M0 0h20v20H0z"}))))}};a.style=s;exports.close_icon=a;