@nylas/react 2.0.4 → 2.1.0

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 (181) hide show
  1. package/dist/add-circle-icon_2.entry-8c3bb0bb.cjs +1 -0
  2. package/dist/{add-circle-icon_2.entry-e59a5b4d.js → add-circle-icon_2.entry-a3daf6c4.js} +6 -4
  3. package/dist/archive-icon.entry-46ad0ff3.cjs +1 -0
  4. package/dist/{archive-icon.entry-ea5667df.js → archive-icon.entry-d5141486.js} +6 -4
  5. package/dist/{arrow-icon.entry-1f766862.js → arrow-icon.entry-1b89ce78.js} +6 -4
  6. package/dist/arrow-icon.entry-f696de4f.cjs +1 -0
  7. package/dist/bold-icon.entry-7827cd4e.cjs +1 -0
  8. package/dist/{bold-icon.entry-240950a6.js → bold-icon.entry-c117b4cf.js} +6 -4
  9. package/dist/button-component_2.entry-8cd4c5f3.cjs +1 -0
  10. package/dist/{button-component_2.entry-96785a34.js → button-component_2.entry-e68caa9b.js} +5 -3
  11. package/dist/{calendar-agenda-fill-icon_37.entry-e732ee2e.js → calendar-agenda-fill-icon_37.entry-52bdc8b3.js} +1478 -1210
  12. package/dist/calendar-agenda-fill-icon_37.entry-8c592cfa.cjs +6 -0
  13. package/dist/calendar-cancel-icon.entry-7facfa05.cjs +1 -0
  14. package/dist/{calendar-cancel-icon.entry-7543c684.js → calendar-cancel-icon.entry-f5f1d499.js} +8 -6
  15. package/dist/{calendar-check-icon.entry-aba54652.js → calendar-check-icon.entry-55320137.js} +6 -4
  16. package/dist/calendar-check-icon.entry-72108702.cjs +1 -0
  17. package/dist/{calendar-icon.entry-2cb3b7d1.js → calendar-icon.entry-afea361e.js} +9 -7
  18. package/dist/calendar-icon.entry-f5c6730f.cjs +1 -0
  19. package/dist/checkbox-component.entry-5722d263.cjs +1 -0
  20. package/dist/checkbox-component.entry-89fa6edd.js +54 -0
  21. package/dist/checkbox-group_4.entry-30e8af17.cjs +28 -0
  22. package/dist/{checkbox-group_4.entry-04561314.js → checkbox-group_4.entry-51f03009.js} +289 -245
  23. package/dist/checkmark-circle-icon.entry-ae11049d.cjs +1 -0
  24. package/dist/{checkmark-circle-icon.entry-1f788efc.js → checkmark-circle-icon.entry-dfe67e22.js} +8 -6
  25. package/dist/{checkmark-icon_15.entry-146c1cb0.js → checkmark-icon_15.entry-4c3979db.js} +408 -332
  26. package/dist/checkmark-icon_15.entry-e59c0f53.cjs +5 -0
  27. package/dist/{chevron-icon_3.entry-637338b5.js → chevron-icon_3.entry-1f3c3ca6.js} +21 -10
  28. package/dist/chevron-icon_3.entry-ea791750.cjs +1 -0
  29. package/dist/clock-icon_4.entry-172fed74.cjs +1 -0
  30. package/dist/{clock-icon_4.entry-e69395a2.js → clock-icon_4.entry-78878cb8.js} +3 -1
  31. package/dist/customParseFormat-b5d95b34-a6b6fcba.cjs +1 -0
  32. package/dist/{customParseFormat-8be9be1b-2464f2ba.js → customParseFormat-b5d95b34-ce80820c.js} +1 -1
  33. package/dist/delete-icon.entry-a8c0bf03.cjs +1 -0
  34. package/dist/{delete-icon.entry-8a956edd.js → delete-icon.entry-cebdc90f.js} +7 -5
  35. package/dist/document-refresh-icon.entry-2d9a529d.cjs +1 -0
  36. package/dist/{document-refresh-icon.entry-5f58f367.js → document-refresh-icon.entry-8780a2b8.js} +3 -1
  37. package/dist/{feedbackSync-3db3713c-701d2eb9.cjs → feedbackSync-92220b42-fbebe1f9.cjs} +1 -1
  38. package/dist/{feedbackSync-3db3713c-aadf336b.js → feedbackSync-92220b42-fd5f5610.js} +1 -1
  39. package/dist/folder-icon.entry-3e61ccca.cjs +1 -0
  40. package/dist/{folder-icon.entry-e5d7a651.js → folder-icon.entry-6ffd5191.js} +6 -4
  41. package/dist/forward-icon.entry-c7d88db8.cjs +1 -0
  42. package/dist/{forward-icon.entry-59be8165.js → forward-icon.entry-c9c4bf5b.js} +5 -3
  43. package/dist/globe-icon.entry-0b93cab8.cjs +1 -0
  44. package/dist/{globe-icon.entry-0fe4a4bb.js → globe-icon.entry-7c0dca7b.js} +5 -3
  45. package/dist/{google-logo-icon_6.entry-799511df.js → google-logo-icon_6.entry-deef91ee.js} +283 -237
  46. package/dist/google-logo-icon_6.entry-e25ce3e7.cjs +2 -0
  47. package/dist/google-meet-icon_5.entry-214347f0.cjs +1 -0
  48. package/dist/{google-meet-icon_5.entry-e753ba28.js → google-meet-icon_5.entry-f8b5a92a.js} +3 -1
  49. package/dist/{inbox-icon.entry-61132337.js → inbox-icon.entry-873062c3.js} +7 -5
  50. package/dist/inbox-icon.entry-f08f2fd5.cjs +1 -0
  51. package/dist/index-025be398.js +7187 -0
  52. package/dist/index-c510313d-1318f67a.js +289 -0
  53. package/dist/index-c510313d-b0508eee.cjs +1 -0
  54. package/dist/index-f42fe591.cjs +65 -0
  55. package/dist/{index.es-9e756df7-fa75b01e.cjs → index.es-488bc919-d02dd50a.cjs} +1 -1
  56. package/dist/{index.es-9e756df7-42d8a4cf.js → index.es-488bc919-ea63a7e9.js} +1 -1
  57. package/dist/info-icon_2.entry-442b9097.cjs +1 -0
  58. package/dist/{info-icon_2.entry-8d2750ce.js → info-icon_2.entry-60fb8648.js} +3 -1
  59. package/dist/{input-component.entry-2e134e2a.js → input-component.entry-5898a52e.js} +22 -10
  60. package/dist/input-component.entry-7274fd28.cjs +1 -0
  61. package/dist/{input-dropdown_2.entry-1a02e672.js → input-dropdown_2.entry-4534436c.js} +33 -9
  62. package/dist/input-dropdown_2.entry-9b72f637.cjs +1 -0
  63. package/dist/{italic-icon.entry-0ec2793b.js → italic-icon.entry-62052cd8.js} +6 -4
  64. package/dist/italic-icon.entry-9bdbbd37.cjs +1 -0
  65. package/dist/lib/connect/index.d.ts +6 -0
  66. package/dist/lib/connect/types.d.ts +2 -0
  67. package/dist/lib/connect/useNylasConnect.d.ts +28 -0
  68. package/dist/lib/connect/useNylasConnect.test.d.ts +1 -0
  69. package/dist/lib/elements/index.d.ts +1 -1
  70. package/dist/lib/index.d.ts +1 -0
  71. package/dist/lib/notetaker/SendNotetaker/SendNotetaker.d.ts +3 -2
  72. package/dist/lib/notetaker/VideoPlayer/VideoPlayer.d.ts +2 -0
  73. package/dist/multi-select-dropdown.entry-77752d46.cjs +1 -0
  74. package/dist/{multi-select-dropdown.entry-15e887be.js → multi-select-dropdown.entry-9c9d05c1.js} +42 -30
  75. package/dist/{nylas-booked-event-card_11.entry-98bcc904.js → nylas-booked-event-card_11.entry-32b2e9f1.js} +188 -185
  76. package/dist/nylas-booked-event-card_11.entry-4aba5146.cjs +1 -0
  77. package/dist/nylas-date-component_2.entry-6b058796.cjs +1 -0
  78. package/dist/{nylas-date-component_2.entry-6a98a5bf.js → nylas-date-component_2.entry-a869519f.js} +91 -70
  79. package/dist/nylas-form-card.entry-5390459f.js +75 -0
  80. package/dist/nylas-form-card.entry-c2f34d73.cjs +1 -0
  81. package/dist/nylas-notification_2.entry-054392cf.cjs +1 -0
  82. package/dist/{nylas-notification_2.entry-320a5a65.js → nylas-notification_2.entry-f46e88e5.js} +4 -1
  83. package/dist/{nylas-scheduler-editor.entry-aa62c689.js → nylas-scheduler-editor.entry-40a48f47.js} +129 -60
  84. package/dist/nylas-scheduler-editor.entry-e29fdf07.cjs +2 -0
  85. package/dist/{nylas-scheduling.entry-aec79de5.js → nylas-scheduling.entry-115b1752.js} +203 -190
  86. package/dist/nylas-scheduling.entry-79cb1d9c.cjs +1 -0
  87. package/dist/person-icon.entry-2cae306c.cjs +1 -0
  88. package/dist/{person-icon.entry-23cbe5dd.js → person-icon.entry-fd668b89.js} +6 -4
  89. package/dist/{play-icon.entry-4a529bd2.js → play-icon.entry-7fc3c0fd.js} +5 -3
  90. package/dist/play-icon.entry-9989a520.cjs +1 -0
  91. package/dist/radio-button-group.entry-03385b5f.cjs +1 -0
  92. package/dist/{radio-button-group.entry-04b7ff59.js → radio-button-group.entry-9df82cd0.js} +21 -10
  93. package/dist/react.cjs +1 -1
  94. package/dist/react.js +142 -127
  95. package/dist/refresh-icon.entry-310954ba.cjs +1 -0
  96. package/dist/{refresh-icon.entry-61ced881.js → refresh-icon.entry-c56e5623.js} +8 -6
  97. package/dist/register-component-3acd57e7-5a79a90a.cjs +1 -0
  98. package/dist/{register-component-8bbd6492-0d8737fd.js → register-component-3acd57e7-cb09c05e.js} +15 -14
  99. package/dist/{reply-all-icon.entry-83509aaf.js → reply-all-icon.entry-32e0e000.js} +7 -5
  100. package/dist/reply-all-icon.entry-68388f97.cjs +1 -0
  101. package/dist/{reply-icon.entry-131ade31.js → reply-icon.entry-3ac2e736.js} +6 -4
  102. package/dist/reply-icon.entry-e616a9a4.cjs +1 -0
  103. package/dist/{sent-icon.entry-72fd8f16.js → sent-icon.entry-0622ed04.js} +6 -4
  104. package/dist/sent-icon.entry-543eb3c4.cjs +1 -0
  105. package/dist/{spam-icon.entry-7594c792.js → spam-icon.entry-74bcfd4f.js} +3 -1
  106. package/dist/spam-icon.entry-e341ee3e.cjs +1 -0
  107. package/dist/{star-icon.entry-adbe1bb3.js → star-icon.entry-864d2bf9.js} +5 -3
  108. package/dist/star-icon.entry-c90d40f6.cjs +1 -0
  109. package/dist/{stop-icon.entry-e95993f2.js → stop-icon.entry-835908c5.js} +3 -1
  110. package/dist/stop-icon.entry-ffc46b42.cjs +1 -0
  111. package/dist/{textarea-component.entry-f5d74fb8.js → textarea-component.entry-6adcf6a6.js} +29 -10
  112. package/dist/textarea-component.entry-dae8eb5c.cjs +1 -0
  113. package/dist/toggle-switch.entry-5ee29867.cjs +1 -0
  114. package/dist/toggle-switch.entry-ff2ccb75.js +51 -0
  115. package/dist/{translate-icon.entry-01cbe664.js → translate-icon.entry-372dd808.js} +3 -1
  116. package/dist/translate-icon.entry-5606067d.cjs +1 -0
  117. package/dist/{trash-fill-icon.entry-b39ff771.js → trash-fill-icon.entry-01b4379e.js} +3 -1
  118. package/dist/trash-fill-icon.entry-daed6c0a.cjs +1 -0
  119. package/dist/underline-icon.entry-2020ee64.cjs +1 -0
  120. package/dist/{underline-icon.entry-39179a2e.js → underline-icon.entry-464b900d.js} +5 -3
  121. package/dist/utils-31933f5d-15041585.js +17878 -0
  122. package/dist/utils-31933f5d-1d4c81ab.cjs +54 -0
  123. package/package.json +4 -3
  124. package/dist/abstract-provider-97cdbfea-5837e17f.cjs +0 -1
  125. package/dist/abstract-provider-97cdbfea-6b0e3547.js +0 -187
  126. package/dist/add-circle-icon_2.entry-96ef4ded.cjs +0 -1
  127. package/dist/archive-icon.entry-49b4e0fd.cjs +0 -1
  128. package/dist/arrow-icon.entry-5aefd7de.cjs +0 -1
  129. package/dist/bold-icon.entry-1a4955df.cjs +0 -1
  130. package/dist/button-component_2.entry-357fa02a.cjs +0 -1
  131. package/dist/calendar-agenda-fill-icon_37.entry-5e405c00.cjs +0 -6
  132. package/dist/calendar-cancel-icon.entry-55d746cf.cjs +0 -1
  133. package/dist/calendar-check-icon.entry-63d33f23.cjs +0 -1
  134. package/dist/calendar-icon.entry-e13add9b.cjs +0 -1
  135. package/dist/checkbox-component.entry-8341a8d6.cjs +0 -1
  136. package/dist/checkbox-component.entry-da122544.js +0 -43
  137. package/dist/checkbox-group_4.entry-8854d522.cjs +0 -28
  138. package/dist/checkmark-circle-icon.entry-e637e20e.cjs +0 -1
  139. package/dist/checkmark-icon_15.entry-a265f687.cjs +0 -5
  140. package/dist/chevron-icon_3.entry-6c38b5e5.cjs +0 -1
  141. package/dist/clock-icon_4.entry-aa4117dc.cjs +0 -1
  142. package/dist/customParseFormat-8be9be1b-7ad95d87.cjs +0 -1
  143. package/dist/delete-icon.entry-af0cc45b.cjs +0 -1
  144. package/dist/document-refresh-icon.entry-45931416.cjs +0 -1
  145. package/dist/folder-icon.entry-cb80c172.cjs +0 -1
  146. package/dist/forward-icon.entry-c792734b.cjs +0 -1
  147. package/dist/globe-icon.entry-9ecf0255.cjs +0 -1
  148. package/dist/google-logo-icon_6.entry-60924f34.cjs +0 -2
  149. package/dist/google-meet-icon_5.entry-3841313d.cjs +0 -1
  150. package/dist/inbox-icon.entry-2b450378.cjs +0 -1
  151. package/dist/index-2084ffd9.js +0 -24884
  152. package/dist/index-e9dc7971.cjs +0 -118
  153. package/dist/info-icon_2.entry-c547775c.cjs +0 -1
  154. package/dist/input-component.entry-b1086460.cjs +0 -1
  155. package/dist/input-dropdown_2.entry-cb163dc3.cjs +0 -1
  156. package/dist/italic-icon.entry-6a3a5464.cjs +0 -1
  157. package/dist/multi-select-dropdown.entry-daccefd5.cjs +0 -1
  158. package/dist/nylas-booked-event-card_11.entry-3cdf8015.cjs +0 -1
  159. package/dist/nylas-date-component_2.entry-5d4f54fa.cjs +0 -1
  160. package/dist/nylas-form-card.entry-22851b77.cjs +0 -1
  161. package/dist/nylas-form-card.entry-a997084f.js +0 -58
  162. package/dist/nylas-notification_2.entry-4638126b.cjs +0 -1
  163. package/dist/nylas-scheduler-editor.entry-82e0f79e.cjs +0 -2
  164. package/dist/nylas-scheduling.entry-9cef581a.cjs +0 -1
  165. package/dist/person-icon.entry-01a6a976.cjs +0 -1
  166. package/dist/play-icon.entry-33443687.cjs +0 -1
  167. package/dist/radio-button-group.entry-65155787.cjs +0 -1
  168. package/dist/refresh-icon.entry-e4ea4811.cjs +0 -1
  169. package/dist/register-component-8bbd6492-d9a23f3c.cjs +0 -1
  170. package/dist/reply-all-icon.entry-c64d923b.cjs +0 -1
  171. package/dist/reply-icon.entry-4edfbb70.cjs +0 -1
  172. package/dist/sent-icon.entry-e4f6a3ef.cjs +0 -1
  173. package/dist/spam-icon.entry-c531c188.cjs +0 -1
  174. package/dist/star-icon.entry-a75255ff.cjs +0 -1
  175. package/dist/stop-icon.entry-079b28c6.cjs +0 -1
  176. package/dist/textarea-component.entry-920a81ac.cjs +0 -1
  177. package/dist/toggle-switch.entry-33273409.js +0 -34
  178. package/dist/toggle-switch.entry-ba6b4f33.cjs +0 -1
  179. package/dist/translate-icon.entry-f33632d6.cjs +0 -1
  180. package/dist/trash-fill-icon.entry-298eece8.cjs +0 -1
  181. package/dist/underline-icon.entry-3704187c.cjs +0 -1
@@ -1,20 +1,31 @@
1
- import { r as g, a as o, y as h, h as n, g as v, d as l, i as d, W as m, X as f, L as x, Y as u, Z as p, M as b, H as w } from "./index-2084ffd9.js";
2
- import { L as c } from "./constants-f51538ef-e0a5f026.js";
3
- import { c as k } from "./customParseFormat-8be9be1b-2464f2ba.js";
1
+ import { r as g, c as o, h as n, g as v, H as x } from "./index-025be398.js";
2
+ import { q as d, a as l, i as c, O as h, P as m, E as w, Q as u, R as p, F as b } from "./utils-31933f5d-15041585.js";
3
+ import { L as f } from "./constants-f51538ef-e0a5f026.js";
4
+ import { c as k } from "./customParseFormat-b5d95b34-ce80820c.js";
5
+ import "@nylas/web-elements";
4
6
  import "react";
7
+ import "@nylas/connect";
5
8
  import "react/jsx-runtime";
6
9
  import "react-dom";
7
- const T = ':host{display:block;height:auto;--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%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0}label .error{color:var(--nylas-error);border-color:var(--nylas-error)}.input_wrapper{display:flex;align-items:center;gap:1rem}input[type=date]{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:100%;width:-moz-available;width:-webkit-fill-available;font-family:var(--nylas-font-family);padding:0 8px;cursor:pointer}input[type=date]:focus{outline-color:var(--nylas-primary)}input[type=date].error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}input[type=date].error::placeholder{font-weight:400}input[type=date]::placeholder{color:var(--nylas-base-300)}input:read-only{background-color:var(--nylas-base-100);cursor:not-allowed}', I = T, F = {
10
+ const T = ':host{display:block;height:auto;--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%}label{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;flex-direction:column;gap:4px;font-family:var(--nylas-font-family);font-size:16px;color:var(--nylas-base-800)}label.error{color:var(--nylas-error)}label span.required{color:var(--nylas-error);padding:0 0.25rem}label p{margin:0}label .error{color:var(--nylas-error);border-color:var(--nylas-error)}.input_wrapper{display:flex;align-items:center;gap:1rem}input[type=date]{display:flex;height:48px;padding-left:16px;align-items:center;gap:8px;align-self:stretch;border-radius:var(--nylas-border-radius-2x);border:1px solid var(--nylas-base-300);background:var(--nylas-base-0);width:-webkit-fill-available;color:var(--nylas-base-900);font-size:16px;font-style:normal;font-weight:400;line-height:150%;width:100%;width:-moz-available;width:-webkit-fill-available;font-family:var(--nylas-font-family);padding:0 8px;cursor:pointer}input[type=date]:focus{outline-color:var(--nylas-primary)}input[type=date].error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}input[type=date].error::placeholder{font-weight:400}input[type=date]::placeholder{color:var(--nylas-base-300)}input[type=date]::-webkit-calendar-picker-indicator{filter:invert(37%) sepia(51%) saturate(6324%) hue-rotate(215deg) brightness(94%) contrast(95%);cursor:pointer}input:read-only{background-color:var(--nylas-base-100);cursor:not-allowed}', C = T, I = {
8
11
  date: "YYYY-MM-DD"
9
- }, A = class {
12
+ }, F = class {
10
13
  constructor(t) {
11
- g(this, t), this.nylasFormInputChanged = o(this, "nylasFormInputChanged", 7), this.nylasFormInputFocused = o(this, "nylasFormInputFocused", 7), this.nylasFormInputBlurred = o(this, "nylasFormInputBlurred", 7), this.name = "input", this.defaultValue = void 0, this.label = "", this.placeholder = F.date, this.required = !1, this.readOnly = !1, this.autoFocus = !1, this.pattern = void 0, this.maxLength = 255, this.patternError = "", this.requiredError = "", this.minDate = void 0, this.hasError = !1, this.value = void 0, this.error = "", this.isDateValid = !0;
14
+ g(this, t), this.nylasFormInputChanged = o(this, "nylasFormInputChanged", 7), this.nylasFormInputFocused = o(this, "nylasFormInputFocused", 7), this.nylasFormInputBlurred = o(this, "nylasFormInputBlurred", 7), this.name = "input", this.defaultValue = void 0, this.label = "", this.placeholder = I.date, this.required = !1, this.readOnly = !1, this.autoFocus = !1, this.pattern = void 0, this.maxLength = 255, this.patternError = "", this.requiredError = "", this.errorMessage = "", this.minDate = void 0, this.hasError = !1, this.themeConfig = void 0, this.value = void 0, this.error = "", this.isDateValid = !0;
12
15
  }
13
16
  handleDefaultValueChange(t) {
14
- this.value = h(t), this.value && this.validatePattern(this.value, !0);
17
+ this.value = d(t), this.value && this.validatePattern(this.value, !0);
18
+ }
19
+ themeConfigChangedHandler(t, e) {
20
+ t !== e && this.applyThemeConfig(t);
21
+ }
22
+ applyThemeConfig(t) {
23
+ if (t)
24
+ for (const [e, i] of Object.entries(t))
25
+ this.el.style.setProperty(`${e}`, i);
15
26
  }
16
27
  componentDidLoad() {
17
- this.value = h(this.defaultValue || ""), this.value && this.validatePattern(this.value, !0);
28
+ this.value = d(this.defaultValue || ""), this.value && this.validatePattern(this.value, !0), this.applyThemeConfig(this.themeConfig);
18
29
  }
19
30
  handleBookingFormSubmitted(t) {
20
31
  this.validatePattern(this.value), this.error && t.preventDefault();
@@ -25,7 +36,7 @@ const T = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-error
25
36
  handleInput(t) {
26
37
  this.error = "";
27
38
  const e = t.target;
28
- this.value = h(e.value), this.isDateValid = e.validity.valid, this.nylasFormInputChanged.emit({
39
+ this.value = d(e.value), this.isDateValid = e.validity.valid, this.nylasFormInputChanged.emit({
29
40
  value: this.value,
30
41
  name: this.name,
31
42
  label: this.label,
@@ -47,7 +58,7 @@ const T = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-error
47
58
  }
48
59
  validatePattern(t, e = !1) {
49
60
  if (this.error = "", !e && (this.required && !this.isDateValid || this.minDate && new Date(this.minDate) > new Date(t))) {
50
- this.error = "Please enter a valid date", this.nylasFormInputChanged.emit({
61
+ this.error = this.errorMessage || "Please enter a valid date", this.nylasFormInputChanged.emit({
51
62
  value: this.value,
52
63
  name: this.name,
53
64
  label: this.label,
@@ -63,23 +74,24 @@ const T = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-error
63
74
  !this.pattern || !t && !this.required || (this.pattern.test(t) ? this.error = "" : this.error = this.patternError || "Invalid format.");
64
75
  }
65
76
  render() {
66
- return n("label", { key: "5b1b9d5bd627971fab0ae9450dfffbc4b4d7c5e0", part: "ic__label", class: { error: !!this.error || this.hasError } }, this.label && n("p", null, n("span", { class: "label" }, this.label), this.required && n("span", { class: "required" }, "*")), n("div", { key: "62a760f2aaf894ecd7701d2f9d7318d3ed81ddd3", part: "ic__input_wrapper", class: "input_wrapper" }, n("input", { key: "b34364549bdb557423a5bcae0f6958c797d2e265", type: "date", name: this.name, part: "ic__date", title: this.readOnly ? "read-only field" : void 0, readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, min: this.minDate, maxLength: this.maxLength, placeholder: this.placeholder, class: { error: !!this.error || this.hasError }, onInput: (t) => this.handleInput(t), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), n("slot", { key: "e1af09a4f2e6557b3b5b42c08d4ac54478981c9f", name: "additional-input" })), this.error && n("span", { class: "error help-text" }, this.error));
77
+ return n("label", { key: "19e91d1f34df671a8c3fb97ca4cb9361baccaeb3", part: "ic__label", class: { error: !!this.error || this.hasError } }, this.label && n("p", null, n("span", { class: "label" }, this.label), this.required && n("span", { class: "required" }, "*")), n("div", { key: "fd3f370a7469135b82c876938a5c1df1faedfd31", part: "ic__input_wrapper", class: "input_wrapper" }, n("input", { key: "a27ac166f7512464ed9e2caf10539ae60e0df92a", type: "date", name: this.name, part: "ic__date", title: this.readOnly ? "read-only field" : void 0, readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, min: this.minDate, maxLength: this.maxLength, placeholder: this.placeholder, class: { error: !!this.error || this.hasError }, onInput: (t) => this.handleInput(t), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), n("slot", { key: "2d3806006d35fecaa9b48a878eb4216249cdc80f", name: "additional-input" })), this.error && n("span", { class: "error help-text" }, this.error));
67
78
  }
68
79
  get el() {
69
80
  return v(this);
70
81
  }
71
82
  static get watchers() {
72
83
  return {
73
- defaultValue: ["handleDefaultValueChange"]
84
+ defaultValue: ["handleDefaultValueChange"],
85
+ themeConfig: ["themeConfigChangedHandler"]
74
86
  };
75
87
  }
76
88
  };
77
- A.style = I;
78
- const C = ':host{display:block;position:relative;--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}.time-picker{display:inline-block;width:150px;font-family:var(--nylas-font-family);position:relative}@media screen and (max-width: 768px){.time-picker{width:auto}}.time-picker input{width:150px;height:48px;text-align:center;font-size:16px;font-family:inherit;cursor:pointer;background:transparent;border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.time-picker input{width:88px}}@media screen and (max-width: 504px){.time-picker input{width:68px;font-size:15px}}.time-picker input.focus{background:transparent}.time-picker input:hover,.time-picker input:active{border:1px solid var(--nylas-primary)}.time-picker input:active{outline:2px solid var(--nylas-primary)}.time-picker input span.open{transform:rotate(90deg)}.time-picker input span.closed{transform:rotate(270deg)}.time-picker input.error{border:1px solid var(--nylas-error)}.time-picker p.error{color:var(--nylas-error);font-size:0.875rem;margin:0}.times{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.times ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.times ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);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:center;cursor:pointer}.times ul li.focused{background-color:var(--nylas-base-100)}.times ul li:hover,.times ul li:focus{background-color:var(--nylas-base-100)}.times ul li label{display:flex;align-items:center;gap:0.5rem}.times ul li label input{margin:0}', D = C;
89
+ F.style = C;
90
+ const A = ':host{display:block;position:relative;--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}.time-picker{display:inline-block;width:150px;font-family:var(--nylas-font-family);position:relative}@media screen and (max-width: 768px){.time-picker{width:auto}}.time-picker input{width:150px;height:48px;text-align:center;font-size:16px;font-family:inherit;color:var(--nylas-base-900);cursor:pointer;background:var(--nylas-base-0);border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}@media screen and (max-width: 768px){.time-picker input{width:88px}}@media screen and (max-width: 504px){.time-picker input{width:68px;font-size:15px}}.time-picker input.focus{background:var(--nylas-base-0)}.time-picker input:hover,.time-picker input:active{border:1px solid var(--nylas-primary)}.time-picker input:active{outline:2px solid var(--nylas-primary)}.time-picker input span.open{transform:rotate(90deg)}.time-picker input span.closed{transform:rotate(270deg)}.time-picker input.error{border:1px solid var(--nylas-error)}.time-picker p.error{color:var(--nylas-error);font-size:0.875rem;margin:0}.times{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;border:1px solid #ddd;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.0509803922);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1019607843)}.times ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.times ul li{padding:16px, 12px, 16px, 12px;color:var(--nylas-base-900);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:center;cursor:pointer}.times ul li.focused{background-color:var(--nylas-base-100)}.times ul li:hover,.times ul li:focus{background-color:var(--nylas-base-100)}.times ul li label{display:flex;align-items:center;gap:0.5rem}.times ul li label input{margin:0}', D = A;
79
91
  l.extend(k);
80
- const S = class {
92
+ const E = class {
81
93
  constructor(t) {
82
- g(this, t), this.timeChange = o(this, "timeChange", 7), this.timeWindowFormError = o(this, "timeWindowFormError", 7), this.time = void 0, this.minimumStartTime = null, this.placeholder = "hh:mmam/pm", this.name = void 0, this.hasError = !1, this.language = c.en, this.err = "", this.showTimes = !1, this.ariaActivedescendant = "", this.times = this.generateTimes(), this.shouldAutoScroll = !1;
94
+ g(this, t), this.timeChange = o(this, "timeChange", 7), this.timeWindowFormError = o(this, "timeWindowFormError", 7), this.time = void 0, this.minimumStartTime = null, this.placeholder = "hh:mmam/pm", this.name = void 0, this.hasError = !1, this.language = f.en, this.themeConfig = void 0, this.err = "", this.showTimes = !1, this.ariaActivedescendant = "", this.times = this.generateTimes(), this.shouldAutoScroll = !1;
83
95
  }
84
96
  handleOutsideClick(t) {
85
97
  !t.composedPath().includes(this.el) && this.showTimes && (this.showTimes = !1);
@@ -90,14 +102,22 @@ const S = class {
90
102
  minimumStartTimeChangedHandler() {
91
103
  this.validateTimeAgainstMinimum();
92
104
  }
105
+ themeConfigChangedHandler(t, e) {
106
+ this.applyThemeConfig(t);
107
+ }
108
+ applyThemeConfig(t) {
109
+ if (t)
110
+ for (const [e, i] of Object.entries(t))
111
+ this.el.style.setProperty(`${e}`, i);
112
+ }
93
113
  validateTimeAgainstMinimum() {
94
114
  if (this.minimumStartTime) {
95
115
  const t = l(this.minimumStartTime, "hh:mma"), e = l(this.time, "hh:mma");
96
116
  this.times = this.generateTimes();
97
- const s = d.t("nylasTimeWindowPicker.errors.invalid");
98
- e.isBefore(t) ? (this.err = s, this.timeWindowFormError.emit({
117
+ const i = c.t("nylasTimeWindowPicker.errors.invalid");
118
+ e.isBefore(t) ? (this.err = i, this.timeWindowFormError.emit({
99
119
  key: this.el.id,
100
- message: s
120
+ message: i
101
121
  })) : (this.err = "", this.timeWindowFormError.emit({
102
122
  key: this.el.id,
103
123
  message: ""
@@ -109,34 +129,34 @@ const S = class {
109
129
  });
110
130
  }
111
131
  componentDidLoad() {
112
- this.validateTimeAgainstMinimum();
132
+ this.validateTimeAgainstMinimum(), this.applyThemeConfig(this.themeConfig);
113
133
  }
114
134
  componentDidRender() {
115
135
  if (this.showTimes && this.shouldAutoScroll) {
116
- const t = m(this.time), e = this.times.findIndex((s) => s.value === t);
136
+ const t = h(this.time), e = this.times.findIndex((i) => i.value === t);
117
137
  e > -1 && (this.shouldAutoScroll = !1, this.scrollToViewWithinParent(e));
118
138
  return;
119
139
  }
120
140
  }
121
141
  handleTimeChange(t, e) {
122
- const s = e.split(":");
123
- if (s[0] === "00" && s[1].slice(-2) == "pm") {
124
- const i = d.t("nylasTimeWindowPicker.errors.invalid");
125
- this.err = i, this.timeWindowFormError.emit({
142
+ const i = e.split(":");
143
+ if (i[0] === "00" && i[1].slice(-2) == "pm") {
144
+ const s = c.t("nylasTimeWindowPicker.errors.invalid");
145
+ this.err = s, this.timeWindowFormError.emit({
126
146
  key: this.el.id,
127
- message: i
147
+ message: s
128
148
  });
129
149
  }
130
- if (f(e))
150
+ if (m(e))
131
151
  this.err = "", this.timeWindowFormError.emit({
132
152
  key: this.el.id,
133
153
  message: ""
134
154
  });
135
155
  else {
136
- const i = d.t("nylasTimeWindowPicker.errors.invalid");
137
- this.err = i, this.timeWindowFormError.emit({
156
+ const s = c.t("nylasTimeWindowPicker.errors.invalid");
157
+ this.err = s, this.timeWindowFormError.emit({
138
158
  key: this.el.id,
139
- message: i
159
+ message: s
140
160
  });
141
161
  }
142
162
  this.err || this.timeChange.emit({
@@ -146,15 +166,15 @@ const S = class {
146
166
  }
147
167
  handleTimeAutocomplete(t) {
148
168
  var a;
149
- const e = (a = t.target) == null ? void 0 : a.value, s = this.language === c.de || this.language === c.fr ? x(e) : e, i = d.t("nylasTimeWindowPicker.errors.invalid");
150
- if (!f(s)) {
151
- this.err = i, this.timeWindowFormError.emit({
169
+ const e = (a = t.target) == null ? void 0 : a.value, i = this.language !== f.en ? w(e) : e, s = c.t("nylasTimeWindowPicker.errors.invalid");
170
+ if (!m(i)) {
171
+ this.err = s, this.timeWindowFormError.emit({
152
172
  key: this.el.id,
153
- message: i
173
+ message: s
154
174
  });
155
175
  return;
156
176
  }
157
- if (s === "") {
177
+ if (i === "") {
158
178
  const r = u().format("hh:mma");
159
179
  this.timeChange.emit({
160
180
  key: this.el.id,
@@ -162,8 +182,8 @@ const S = class {
162
182
  });
163
183
  return;
164
184
  }
165
- if (!p(s)) {
166
- const r = m(s);
185
+ if (!p(i)) {
186
+ const r = h(i);
167
187
  this.timeChange.emit({
168
188
  key: this.el.id,
169
189
  value: r
@@ -172,20 +192,20 @@ const S = class {
172
192
  }
173
193
  this.timeChange.emit({
174
194
  key: this.el.id,
175
- value: s
195
+ value: i
176
196
  });
177
197
  }
178
198
  handleOnInput(t) {
179
- var s;
180
- const e = (s = t.target) == null ? void 0 : s.value;
181
- if (f(e)) {
199
+ var i;
200
+ const e = (i = t.target) == null ? void 0 : i.value;
201
+ if (m(e)) {
182
202
  if (e === "") {
183
- const i = u().format("hh:mma"), a = this.times.findIndex((r) => r.value === i);
203
+ const s = u().format("hh:mma"), a = this.times.findIndex((r) => r.value === s);
184
204
  a > -1 && this.scrollToViewWithinParent(a);
185
205
  return;
186
206
  }
187
207
  if (!p(e)) {
188
- const i = m(e), a = this.times.findIndex((r) => r.value === i);
208
+ const s = h(e), a = this.times.findIndex((r) => r.value === s);
189
209
  a > -1 && this.scrollToViewWithinParent(a);
190
210
  return;
191
211
  }
@@ -195,10 +215,10 @@ const S = class {
195
215
  const t = [];
196
216
  let e = l().set("hour", 0).set("minute", 0).set("second", 0);
197
217
  this.minimumStartTime && (e = l(this.minimumStartTime, "hh:mma"));
198
- const s = e.endOf("day").diff(e, "minutes"), i = Math.round(s / 15);
199
- for (let a = 0; a < i + 1; a++) {
218
+ const i = e.endOf("day").diff(e, "minutes"), s = Math.round(i / 15);
219
+ for (let a = 0; a < s + 1; a++) {
200
220
  const r = e.add(a * 15, "minute");
201
- if (a == i && r.format("hh:mma").includes("am"))
221
+ if (a == s && r.format("hh:mma").includes("am"))
202
222
  break;
203
223
  t.push({ id: a, value: r.format("hh:mma") });
204
224
  }
@@ -213,63 +233,63 @@ const S = class {
213
233
  if (this.ariaActivedescendant === "")
214
234
  this.ariaActivedescendant = this.times[0].id.toString(), this.focusOption(0);
215
235
  else {
216
- const e = this.times.findIndex((i) => i.id.toString() === this.ariaActivedescendant), s = e + 1 < this.times.length ? e + 1 : 0;
217
- this.ariaActivedescendant = this.times[s].id.toString(), this.focusOption(s);
236
+ const e = this.times.findIndex((s) => s.id.toString() === this.ariaActivedescendant), i = e + 1 < this.times.length ? e + 1 : 0;
237
+ this.ariaActivedescendant = this.times[i].id.toString(), this.focusOption(i);
218
238
  }
219
239
  } else if (t.key === "ArrowUp")
220
240
  if (t.preventDefault(), this.ariaActivedescendant === "")
221
241
  this.ariaActivedescendant = this.times[this.times.length - 1].id.toString(), this.focusOption(this.times.length - 1);
222
242
  else {
223
- const e = this.times.findIndex((i) => i.id.toString() === this.ariaActivedescendant), s = e - 1 >= 0 ? e - 1 : this.times.length - 1;
224
- this.ariaActivedescendant = this.times[s].id.toString(), this.focusOption(s);
243
+ const e = this.times.findIndex((s) => s.id.toString() === this.ariaActivedescendant), i = e - 1 >= 0 ? e - 1 : this.times.length - 1;
244
+ this.ariaActivedescendant = this.times[i].id.toString(), this.focusOption(i);
225
245
  }
226
246
  else
227
247
  t.key === "Escape" && (this.showTimes = !1, this.timeInput.focus());
228
248
  }
229
249
  handleListboxKeydown(t) {
230
- const e = this.times, s = e.findIndex((i) => i.id.toString() === this.ariaActivedescendant);
250
+ const e = this.times, i = e.findIndex((s) => s.id.toString() === this.ariaActivedescendant);
231
251
  if (t.key === "ArrowDown" || t.key === "Tab" && !t.shiftKey) {
232
252
  t.preventDefault();
233
- const i = s + 1 < e.length ? s + 1 : 0;
234
- this.ariaActivedescendant = e[i].id.toString(), this.focusOption(i);
253
+ const s = i + 1 < e.length ? i + 1 : 0;
254
+ this.ariaActivedescendant = e[s].id.toString(), this.focusOption(s);
235
255
  } else if (t.key === "ArrowUp" || t.key === "Tab" && t.shiftKey) {
236
256
  t.preventDefault();
237
- const i = s - 1 >= 0 ? s - 1 : e.length - 1;
238
- this.ariaActivedescendant = e[i].id.toString(), this.focusOption(i);
257
+ const s = i - 1 >= 0 ? i - 1 : e.length - 1;
258
+ this.ariaActivedescendant = e[s].id.toString(), this.focusOption(s);
239
259
  } else if (t.key === "Enter") {
240
260
  if (t.preventDefault(), this.ariaActivedescendant) {
241
- const i = e[s];
242
- this.handleTimeChange(t, i.value), this.showTimes = !1, this.ariaActivedescendant = "", this.timeInput.focus();
261
+ const s = e[i];
262
+ this.handleTimeChange(t, s.value), this.showTimes = !1, this.ariaActivedescendant = "", this.timeInput.focus();
243
263
  }
244
264
  } else
245
265
  t.key === "Escape" && (this.showTimes = !1, this.timeInput.focus());
246
266
  }
247
267
  scrollToViewWithinParent(t) {
248
268
  var y;
249
- const e = this.times[t], s = (y = this.el.shadowRoot) == null ? void 0 : y.getElementById(e.id.toString()), i = this.timeMenu;
269
+ const e = this.times[t], i = (y = this.el.shadowRoot) == null ? void 0 : y.getElementById(e.id.toString()), s = this.timeMenu;
250
270
  this.ariaActivedescendant = e.id.toString();
251
- const a = s.getBoundingClientRect(), r = i.getBoundingClientRect();
252
- a.top < r.top ? i.scrollTop -= r.top - a.top : a.bottom > r.bottom && (i.scrollTop += a.bottom - r.bottom), a.left < r.left ? i.scrollLeft -= r.left - a.left : a.right > r.right && (i.scrollLeft += a.right - r.right);
271
+ const a = i.getBoundingClientRect(), r = s.getBoundingClientRect();
272
+ a.top < r.top ? s.scrollTop -= r.top - a.top : a.bottom > r.bottom && (s.scrollTop += a.bottom - r.bottom), a.left < r.left ? s.scrollLeft -= r.left - a.left : a.right > r.right && (s.scrollLeft += a.right - r.right);
253
273
  }
254
274
  focusOption(t) {
255
275
  var a;
256
276
  const e = this.times[t];
257
277
  if (!e)
258
278
  return;
259
- const s = e.id.toString(), i = (a = this.el.shadowRoot) == null ? void 0 : a.getElementById(s);
260
- i && (i.focus(), i.scrollIntoView({ behavior: "smooth", block: "nearest" }));
279
+ const i = e.id.toString(), s = (a = this.el.shadowRoot) == null ? void 0 : a.getElementById(i);
280
+ s && (s.focus(), s.scrollIntoView({ behavior: "smooth", block: "nearest" }));
261
281
  }
262
282
  render() {
263
- const t = this.language !== c.en;
264
- return n(w, { key: "2ea2238a26b4a44e504865e92090b9d716473533" }, n("div", { key: "d8ddac7954270a5dee206634df9fd09c0fb9d62c", class: "time-picker", part: "time-picker" }, n("input", { key: "fa1b036199c0ca41de24a6bde9f26afbef084d5b", type: "text", name: this.name, id: this.name, part: "time-input", class: {
283
+ const t = this.language !== f.en;
284
+ return n(x, { key: "748ab1dcf12c2e1284ca11883dcaade689d3150f" }, n("div", { key: "77369574660ea9e48f8ed77c4b4cc51cf328690a", class: "time-picker", part: "time-picker" }, n("input", { key: "09fd3119ae7763a492068860d9a20ed06e1bf0ac", type: "text", name: this.name, id: this.name, part: "time-input", class: {
265
285
  "time-input": !0,
266
286
  error: !!this.err || this.hasError
267
287
  }, ref: (e) => this.timeInput = e, value: t ? b(this.time) : this.time, onClick: () => {
268
288
  this.showTimes = !this.showTimes, this.shouldAutoScroll = !0;
269
289
  }, "aria-haspopup": "listbox", "aria-label": this.name, "aria-expanded": this.showTimes ? "true" : "false", placeholder: this.placeholder, onKeyDown: (e) => this.handleComboboxKeyDown(e), onInput: (e) => this.handleOnInput(e), onBlur: (e) => this.handleTimeAutocomplete(e) }), this.err && n("div", { class: "invalid-time-icon" }), this.showTimes && n("div", { class: "times", part: "times", ref: (e) => this.timeMenu = e }, n("ul", { tabindex: "-1", role: "listbox", "aria-label": this.name, "aria-activedescendant": this.ariaActivedescendant, onKeyDown: (e) => this.handleListboxKeydown(e) }, this.times.map((e) => n("li", { tabindex: "0", key: e.id, id: e.id.toString(), class: {
270
290
  focused: this.ariaActivedescendant === e.id.toString()
271
- }, onClick: (s) => {
272
- this.handleTimeChange(s, e.value), this.showTimes = !1, this.timeInput.focus();
291
+ }, onClick: (i) => {
292
+ this.handleTimeChange(i, e.value), this.showTimes = !1, this.timeInput.focus();
273
293
  }, role: "option" }, `${t ? b(e.value) : e.value}`)))), !this.showTimes && this.err && n("p", { class: "error", id: "email-error" }, this.err)));
274
294
  }
275
295
  get el() {
@@ -278,12 +298,13 @@ const S = class {
278
298
  static get watchers() {
279
299
  return {
280
300
  time: ["timeChangedHandler"],
281
- minimumStartTime: ["minimumStartTimeChangedHandler"]
301
+ minimumStartTime: ["minimumStartTimeChangedHandler"],
302
+ themeConfig: ["themeConfigChangedHandler"]
282
303
  };
283
304
  }
284
305
  };
285
- S.style = D;
306
+ E.style = D;
286
307
  export {
287
- A as nylas_date_component,
288
- S as nylas_time_window_picker
308
+ F as nylas_date_component,
309
+ E as nylas_time_window_picker
289
310
  };
@@ -0,0 +1,75 @@
1
+ import { r as b, h as o, H as i, g as m } from "./index-025be398.js";
2
+ import { R as p } from "./register-component-3acd57e7-cb09c05e.js";
3
+ import { b as t, H as u } from "./utils-31933f5d-15041585.js";
4
+ import "@nylas/web-elements";
5
+ import "react";
6
+ import "@nylas/connect";
7
+ import "react/jsx-runtime";
8
+ import "react-dom";
9
+ const g = '.sc-nylas-form-card-h{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}.nylas-form-card.sc-nylas-form-card{width:100%;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-form-card__header.sc-nylas-form-card{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}', h = g;
10
+ var C = function(e, a, r, s) {
11
+ var n = arguments.length, l = n < 3 ? a : s === null ? s = Object.getOwnPropertyDescriptor(a, r) : s, c;
12
+ if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
13
+ l = Reflect.decorate(e, a, r, s);
14
+ else
15
+ for (var f = e.length - 1; f >= 0; f--)
16
+ (c = e[f]) && (l = (n < 3 ? c(l) : n > 3 ? c(a, r, l) : c(a, r)) || l);
17
+ return n > 3 && l && Object.defineProperty(a, r, l), l;
18
+ }, y = function(e, a) {
19
+ if (typeof Reflect == "object" && typeof Reflect.metadata == "function")
20
+ return Reflect.metadata(e, a);
21
+ };
22
+ const d = class {
23
+ constructor(e) {
24
+ b(this, e), e.$hostElement$["s-ei"] ? this.internals = e.$hostElement$["s-ei"] : (this.internals = e.$hostElement$.attachInternals(), e.$hostElement$["s-ei"] = this.internals), this.themeConfig = void 0;
25
+ }
26
+ themeConfigChangedHandler(e, a) {
27
+ e !== a && this.applyThemeConfig(e);
28
+ }
29
+ connectedCallback() {
30
+ t("nylas-event-card", "connectedCallback");
31
+ }
32
+ componentWillLoad() {
33
+ t("nylas-event-card", "componentWillLoad");
34
+ }
35
+ componentDidLoad() {
36
+ t("nylas-event-card", "componentDidLoad");
37
+ }
38
+ disconnectedCallback() {
39
+ t("nylas-event-card", "disconnectedCallback"), u(["header-title", "header-subtitle", "content"], this.host);
40
+ }
41
+ applyThemeConfig(e) {
42
+ if (e)
43
+ for (const [a, r] of Object.entries(e))
44
+ this.host.style.setProperty(`${a}`, r);
45
+ }
46
+ render() {
47
+ return o(i, { key: "0d0f6136744aedaf66d3bfe00f9bf66d96f5336d" }, o("div", { key: "eb5d1170925c2dd6655e65c5d3786e58e20a1730", class: "nylas-form-card", part: "nfc" }, o("div", { key: "61ae5c7304c8fe85e1b80857847adf264dc15f86", class: "nylas-form-card__header", part: "nfc__header" }, o("slot", { key: "e032d408b48ba463b2418df8ea6ec74c9751e6cd", name: "header-title" }), o("slot", { key: "b4c80b7aeee06feeb7feb61ec34e475de0bd89c5", name: "header-subtitle" })), o("div", { key: "37ab63f782ee8ceea9cb6d2673facb7a479ff528", class: "nylas-form-card__content" }, o("slot", { key: "8a9b455a4f6b12ddd2df6144186feea96a11199c", name: "content" }))));
48
+ }
49
+ static get formAssociated() {
50
+ return !0;
51
+ }
52
+ get host() {
53
+ return m(this);
54
+ }
55
+ static get watchers() {
56
+ return {
57
+ themeConfig: ["themeConfigChangedHandler"]
58
+ };
59
+ }
60
+ };
61
+ C([
62
+ p({
63
+ name: "nylas-form-card",
64
+ stateToProps: /* @__PURE__ */ new Map([["schedulerConfig.themeConfig", "themeConfig"]]),
65
+ eventToProps: {},
66
+ fireRegisterEvent: !0
67
+ }),
68
+ y("design:type", Function),
69
+ y("design:paramtypes", []),
70
+ y("design:returntype", void 0)
71
+ ], d.prototype, "render", null);
72
+ d.style = h;
73
+ export {
74
+ d as nylas_form_card
75
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-f42fe591.cjs"),b=require("./register-component-3acd57e7-5a79a90a.cjs"),o=require("./utils-31933f5d-1d4c81ab.cjs");require("@nylas/web-elements");require("react");require("@nylas/connect");require("react/jsx-runtime");require("react-dom");const i='.sc-nylas-form-card-h{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}.nylas-form-card.sc-nylas-form-card{width:100%;border-radius:8px;border:1px solid var(--nylas-base-200)}.nylas-form-card__header.sc-nylas-form-card{padding:1rem;border-bottom:1px solid var(--nylas-base-200)}',u=i;var m=function(e,a,n,s){var c=arguments.length,l=c<3?a:s===null?s=Object.getOwnPropertyDescriptor(a,n):s,t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,a,n,s);else for(var y=e.length-1;y>=0;y--)(t=e[y])&&(l=(c<3?t(l):c>3?t(a,n,l):t(a,n))||l);return c>3&&l&&Object.defineProperty(a,n,l),l},f=function(e,a){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,a)};const d=class{constructor(e){r.registerInstance(this,e),e.$hostElement$["s-ei"]?this.internals=e.$hostElement$["s-ei"]:(this.internals=e.$hostElement$.attachInternals(),e.$hostElement$["s-ei"]=this.internals),this.themeConfig=void 0}themeConfigChangedHandler(e,a){e!==a&&this.applyThemeConfig(e)}connectedCallback(){o.debug("nylas-event-card","connectedCallback")}componentWillLoad(){o.debug("nylas-event-card","componentWillLoad")}componentDidLoad(){o.debug("nylas-event-card","componentDidLoad")}disconnectedCallback(){o.debug("nylas-event-card","disconnectedCallback");const e=["header-title","header-subtitle","content"];o.checkForMissingSlots(e,this.host)}applyThemeConfig(e){if(e)for(const[a,n]of Object.entries(e))this.host.style.setProperty(`${a}`,n)}render(){return r.h(r.Host,{key:"0d0f6136744aedaf66d3bfe00f9bf66d96f5336d"},r.h("div",{key:"eb5d1170925c2dd6655e65c5d3786e58e20a1730",class:"nylas-form-card",part:"nfc"},r.h("div",{key:"61ae5c7304c8fe85e1b80857847adf264dc15f86",class:"nylas-form-card__header",part:"nfc__header"},r.h("slot",{key:"e032d408b48ba463b2418df8ea6ec74c9751e6cd",name:"header-title"}),r.h("slot",{key:"b4c80b7aeee06feeb7feb61ec34e475de0bd89c5",name:"header-subtitle"})),r.h("div",{key:"37ab63f782ee8ceea9cb6d2673facb7a479ff528",class:"nylas-form-card__content"},r.h("slot",{key:"8a9b455a4f6b12ddd2df6144186feea96a11199c",name:"content"}))))}static get formAssociated(){return!0}get host(){return r.getElement(this)}static get watchers(){return{themeConfig:["themeConfigChangedHandler"]}}};m([b.RegisterComponent({name:"nylas-form-card",stateToProps:new Map([["schedulerConfig.themeConfig","themeConfig"]]),eventToProps:{},fireRegisterEvent:!0}),f("design:type",Function),f("design:paramtypes",[]),f("design:returntype",void 0)],d.prototype,"render",null);d.style=u;exports.nylas_form_card=d;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-f42fe591.cjs"),e=require("./utils-31933f5d-1d4c81ab.cjs");require("@nylas/web-elements");require("react");require("@nylas/connect");require("react/jsx-runtime");require("react-dom");const r=':host{display:block;margin-bottom:-12px;width:100%;z-index:1;--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}.notif{display:flex;padding:17px;align-items:flex-start;justify-content:space-between;gap:16px;border-radius:var(--nylas-border-radius-2x);border:1.5px solid var(--nylas-error);background:var(--nylas-base-0)}@media screen and (max-width: 768px){.notif{width:auto}}.notif .content{display:flex;flex-direction:row;gap:8px}.notif .content .message{font-size:14px;font-weight:400;color:var(--nylas-base-800)}.notif .content .message .title{font-size:16px;font-weight:600;color:var(--nylas-base-950);display:block}.notif .content .message .description{font-size:14px;font-weight:400;color:var(--nylas-base-800);display:block;word-break:break-word}.notif .content .icon.error{color:var(--nylas-error)}.notif.error{border-color:var(--nylas-error);background:rgb(255, 248, 248)}.notif.warning{border-color:var(--nylas-warning)}.notif.info{border-color:var(--nylas-info)}.notif.success{border-color:var(--nylas-success)}.notif .dismiss-btn{background:none;border:none;color:var(--nylas-base-950);cursor:pointer}',c=r,s=class{constructor(o){n.registerInstance(this,o),this.ttl=5e3,this.allowedCategories=["component","api","validation","invalid_session"],this.notifications=[]}onError(o){e.debug(`[nylas-notification] Error: ${o.detail.notification.title}`),this.handleNotification(o)}onWarning(o){e.debug(`[nylas-notification] Warning: ${o.detail.notification.title}`),this.handleNotification(o)}onInfo(o){e.debug(`[nylas-notification] Info: ${o.detail.notification.title}`),this.handleNotification(o)}onSuccess(o){e.debug(`[nylas-notification] Success: ${o.detail.notification.title}`),this.handleNotification(o)}onDismissNotification(o){this.dismissNotification(o.detail.id)}isChildOf(o){let i=this.host.parentNode;for(;i;){if(i===o)return!0;i instanceof ShadowRoot?i=i.host:i=i.parentNode}return!1}handleNotification(o){const i=o.detail.host;if(o.defaultPrevented){e.debug("[nylas-notification] Event default prevented");return}if(i&&!this.isChildOf(i)){e.debug("[nylas-notification] Host not a parent");return}if(this.ttl===0){e.debug("[nylas-notification] TTL is 0");return}if(this.allowedCategories.length>0&&!this.allowedCategories.includes(o.detail.notification.category)){e.debug("[nylas-notification] Category not allowed");return}if(this.notifications.find(a=>a.id===o.detail.notification.id)){e.debug("[nylas-notification] Notification already exists");return}if(this.notifications=[...this.notifications,{...o.detail.notification}],o.detail.notification.ttl!=="none"){const a=o.detail.notification.ttl?o.detail.notification.ttl:this.ttl;window.setTimeout(()=>{this.notifications=this.notifications.filter(l=>l.id!==o.detail.notification.id)},a)}}dismissNotification(o){this.notifications=this.notifications.filter(i=>i.id!==o)}render(){return n.h(n.Host,{key:"f0e6fb311ba12bebf3970afb5850a7995c5bcd83"},n.h(n.Fragment,{key:"2f9bd098337a72908c4c292e03d1ddafa54f7c61"},this.notifications.map(o=>n.h("div",{class:`notif ${o.type}`,key:o.id},n.h("div",{class:"content"},n.h("span",{class:`icon ${o.type}`},(o.type==="error"||o.type==="warning")&&n.h("warning-icon",null)),n.h("span",{class:"message"},n.h("span",{class:"title"},o.title),o.description&&n.h("span",{class:"description"},o.description))),n.h("button",{class:"dismiss-btn",onClick:()=>this.dismissNotification(o.id)},n.h("close-icon",null)))),n.h("slot",{key:"575b3ecb1b22b23c84c75a6900215795a5695fff"})))}get host(){return n.getElement(this)}};s.style=c;const f=".sc-warning-icon-h{display:flex}",y=f,t=class{constructor(o){n.registerInstance(this,o),this.width="16",this.height="16"}render(){return n.h("svg",{key:"7934b2980705106a978e817555c1065704e626c7",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.h("path",{key:"3942fd2b948a46bd0fb8c7322b6b0c7db439b66e",d:"M7.68551 1.35232L1.12678 13.2773C0.576954 14.277 1.3002 15.5002 2.4411 15.5002H15.5586C16.6995 15.5002 17.4227 14.277 16.8729 13.2773L10.3142 1.35232C9.74426 0.316153 8.2554 0.316157 7.68551 1.35232ZM8.99982 5.25016C9.41403 5.25016 9.74982 5.58595 9.74982 6.00016V10.0002C9.74982 10.4144 9.41403 10.7502 8.99982 10.7502C8.5856 10.7502 8.24982 10.4144 8.24982 10.0002V6.00016C8.24982 5.58595 8.5856 5.25016 8.99982 5.25016ZM9.74982 12.2502C9.74982 12.6644 9.41403 13.0002 8.99982 13.0002C8.5856 13.0002 8.24982 12.6644 8.24982 12.2502C8.24982 11.8359 8.5856 11.5002 8.99982 11.5002C9.41403 11.5002 9.74982 11.8359 9.74982 12.2502Z",fill:"currentColor"}))}};t.style=y;exports.nylas_notification=s;exports.warning_icon=t;
@@ -1,5 +1,8 @@
1
- import { r as t, b as i, h as n, F as l, H as r, g as c } from "./index-2084ffd9.js";
1
+ import { r as t, h as n, F as l, H as r, g as c } from "./index-025be398.js";
2
+ import { b as i } from "./utils-31933f5d-15041585.js";
3
+ import "@nylas/web-elements";
2
4
  import "react";
5
+ import "@nylas/connect";
3
6
  import "react/jsx-runtime";
4
7
  import "react-dom";
5
8
  const f = ':host{display:block;margin-bottom:-12px;width:100%;z-index:1;--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}.notif{display:flex;padding:17px;align-items:flex-start;justify-content:space-between;gap:16px;border-radius:var(--nylas-border-radius-2x);border:1.5px solid var(--nylas-error);background:var(--nylas-base-0)}@media screen and (max-width: 768px){.notif{width:auto}}.notif .content{display:flex;flex-direction:row;gap:8px}.notif .content .message{font-size:14px;font-weight:400;color:var(--nylas-base-800)}.notif .content .message .title{font-size:16px;font-weight:600;color:var(--nylas-base-950);display:block}.notif .content .message .description{font-size:14px;font-weight:400;color:var(--nylas-base-800);display:block;word-break:break-word}.notif .content .icon.error{color:var(--nylas-error)}.notif.error{border-color:var(--nylas-error);background:rgb(255, 248, 248)}.notif.warning{border-color:var(--nylas-warning)}.notif.info{border-color:var(--nylas-info)}.notif.success{border-color:var(--nylas-success)}.notif .dismiss-btn{background:none;border:none;color:var(--nylas-base-950);cursor:pointer}', y = f, d = class {