@nylas/react 1.0.2-prealpha1 → 1.1.0-canary.11

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 (141) hide show
  1. package/dist/add-circle-icon_21.entry-71e60262.js +1755 -0
  2. package/dist/add-circle-icon_21.entry-95dda099.cjs +1 -0
  3. package/dist/{archive-icon_7.entry-84d70dbf.cjs → archive-icon_7.entry-24f31e46.cjs} +1 -1
  4. package/dist/{archive-icon_7.entry-91aaa1aa.js → archive-icon_7.entry-3c5e3ccf.js} +19 -19
  5. package/dist/{arrow-icon.entry-400a08fa.cjs → arrow-icon.entry-562eb541.cjs} +1 -1
  6. package/dist/{arrow-icon.entry-8b2e96a6.js → arrow-icon.entry-813bffe9.js} +2 -2
  7. package/dist/{bold-icon_3.entry-4b2798a8.js → bold-icon_3.entry-c0e7d524.js} +4 -4
  8. package/dist/{bold-icon_3.entry-9ad35153.cjs → bold-icon_3.entry-e8b034fe.cjs} +1 -1
  9. package/dist/{calendar-cancel-icon.entry-83ba884a.js → calendar-cancel-icon.entry-0b0219cb.js} +5 -5
  10. package/dist/{calendar-cancel-icon.entry-fcb66929.cjs → calendar-cancel-icon.entry-7d4fdb1b.cjs} +1 -1
  11. package/dist/calendar-check-icon_2.entry-6ecd2faa.js +25 -0
  12. package/dist/calendar-check-icon_2.entry-88025f63.cjs +1 -0
  13. package/dist/{calendar-icon.entry-8f38af4a.js → calendar-icon.entry-34d8ef69.js} +5 -5
  14. package/dist/{calendar-icon.entry-7bae38d7.cjs → calendar-icon.entry-b753520f.cjs} +1 -1
  15. package/dist/chevron-icon_3.entry-0aeb4cfa.cjs +1 -0
  16. package/dist/chevron-icon_3.entry-ae55fd65.js +117 -0
  17. package/dist/close-icon.entry-ae66c827.js +15 -0
  18. package/dist/close-icon.entry-c80da833.cjs +1 -0
  19. package/dist/{nylas-booked-event-card_10.entry-ed515326.cjs → constants-f34b9c6e-b9f975af.cjs} +6 -6
  20. package/dist/{nylas-booked-event-card_10.entry-7e66a648.js → constants-f34b9c6e-d0f5cd19.js} +1665 -2374
  21. package/dist/document-refresh-icon.entry-36405467.cjs +1 -0
  22. package/dist/{document-refresh-icon.entry-9083a2e9.js → document-refresh-icon.entry-7d370f85.js} +5 -5
  23. package/dist/elements/index.d.ts +32 -2
  24. package/dist/{elements-dc5b338e-81a0319c.cjs → elements-dc5b338e-0dbb4f67.cjs} +1 -1
  25. package/dist/{elements-dc5b338e-fb5dbfb5.js → elements-dc5b338e-524cb111.js} +1 -1
  26. package/dist/{focus-visible-e8093c16-28fc08a0.js → focus-visible-e8093c16-17ab1557.js} +5 -3
  27. package/dist/focus-visible-e8093c16-7e94a4f3.cjs +1 -0
  28. package/dist/{forward-icon_6.entry-b60fcb35.js → forward-icon_6.entry-384cc3c5.js} +83 -85
  29. package/dist/forward-icon_6.entry-a479b39e.cjs +3 -0
  30. package/dist/{globe-icon.entry-8325e73e.cjs → globe-icon.entry-0c848856.cjs} +1 -1
  31. package/dist/{globe-icon.entry-e3fd373f.js → globe-icon.entry-58b9f3fc.js} +4 -4
  32. package/dist/google-logo-icon_4.entry-3dce1b83.js +388 -0
  33. package/dist/google-logo-icon_4.entry-e1e63fd0.cjs +1 -0
  34. package/dist/index-20ea5b0c.js +4042 -0
  35. package/dist/index-33f74306.cjs +37 -0
  36. package/dist/index.d.ts +3 -1
  37. package/dist/{index-b30d446a-a90f84b2.js → index.es-be19d2df-c2fdca63.js} +945 -1041
  38. package/dist/index.es-be19d2df-f732308a.cjs +7 -0
  39. package/dist/info-icon_2.entry-98965833.js +34 -0
  40. package/dist/info-icon_2.entry-dd0a0633.cjs +1 -0
  41. package/dist/{loading-icon.entry-b2096d2b.cjs → loading-icon.entry-46821f18.cjs} +1 -1
  42. package/dist/{loading-icon.entry-27410cf8.js → loading-icon.entry-abd81cea.js} +2 -2
  43. package/dist/mailbox-store-76540d24-7bf14e45.cjs +1 -0
  44. package/dist/{mailbox-store-19f0c6c9-e3e8b4e5.js → mailbox-store-76540d24-dfb53045.js} +2 -2
  45. package/dist/nylas-additional-participants.entry-d35d7af5.cjs +1 -0
  46. package/dist/nylas-additional-participants.entry-f6ed34d6.js +81 -0
  47. package/dist/nylas-booked-event-card_10.entry-534e587c.cjs +1 -0
  48. package/dist/nylas-booked-event-card_10.entry-8efe8335.js +805 -0
  49. package/dist/nylas-custom-booking-flow.entry-0e7b605d.js +106 -0
  50. package/dist/nylas-custom-booking-flow.entry-12d09496.cjs +1 -0
  51. package/dist/nylas-form-card.entry-7dd86dde.js +54 -0
  52. package/dist/nylas-form-card.entry-94579d1d.cjs +1 -0
  53. package/dist/nylas-if-state.entry-32ea90ea.cjs +1 -0
  54. package/dist/nylas-if-state.entry-92cbc0b9.js +94 -0
  55. package/dist/nylas-list-folders.entry-8595a9b7.cjs +1 -0
  56. package/dist/{nylas-list-folders.entry-a5437201.js → nylas-list-folders.entry-cab222c9.js} +10 -11
  57. package/dist/nylas-list-threads.entry-3fef6316.cjs +1 -0
  58. package/dist/{nylas-list-threads.entry-fd6cda61.js → nylas-list-threads.entry-8e9294a3.js} +5 -6
  59. package/dist/nylas-login.entry-bc885e04.cjs +1 -0
  60. package/dist/nylas-login.entry-bd1d5b6f.js +73 -0
  61. package/dist/{nylas-mailbox-pagination.entry-988214bc.js → nylas-mailbox-pagination.entry-58657a09.js} +7 -8
  62. package/dist/nylas-mailbox-pagination.entry-74d3b376.cjs +1 -0
  63. package/dist/nylas-mailbox-toolbar-button.entry-8b73b9f4.cjs +1 -0
  64. package/dist/{nylas-mailbox-toolbar-button.entry-c720e22a.js → nylas-mailbox-toolbar-button.entry-d7817b46.js} +15 -16
  65. package/dist/nylas-mailbox.entry-0bddc2fd.js +134 -0
  66. package/dist/nylas-mailbox.entry-762f5062.cjs +1 -0
  67. package/dist/{nylas-provider.entry-70721009.js → nylas-provider.entry-2e24192d.js} +40 -29
  68. package/dist/nylas-provider.entry-f8ba7a6e.cjs +1 -0
  69. package/dist/nylas-scheduler-editor.entry-8189b099.js +2269 -0
  70. package/dist/nylas-scheduler-editor.entry-a642f833.cjs +7 -0
  71. package/dist/nylas-scheduling.entry-13087b5f.cjs +1 -0
  72. package/dist/nylas-scheduling.entry-3f170361.js +248 -0
  73. package/dist/nylas-threads-refresh.entry-3b9f57c3.cjs +1 -0
  74. package/dist/{nylas-threads-refresh.entry-b7f9e93f.js → nylas-threads-refresh.entry-f2967405.js} +4 -5
  75. package/dist/nylas-threads-search.entry-3e0b4fdc.cjs +1 -0
  76. package/dist/{nylas-threads-search.entry-95afea9c.js → nylas-threads-search.entry-e70bbf70.js} +4 -5
  77. package/dist/{nylas-view-thread.entry-165173b1.js → nylas-view-thread.entry-4f39f045.js} +10 -11
  78. package/dist/nylas-view-thread.entry-b23080b7.cjs +1 -0
  79. package/dist/people-icon.entry-15cd7d77.cjs +1 -0
  80. package/dist/people-icon.entry-7f3b95e9.js +15 -0
  81. package/dist/play-icon_2.entry-13065065.js +25 -0
  82. package/dist/play-icon_2.entry-2172886a.cjs +1 -0
  83. package/dist/react.cjs +1 -1
  84. package/dist/react.js +94 -62
  85. package/dist/{refresh-icon.entry-601cac89.cjs → refresh-icon.entry-61067a7f.cjs} +1 -1
  86. package/dist/{refresh-icon.entry-e48a338f.js → refresh-icon.entry-fbfa185e.js} +5 -5
  87. package/dist/register-component-83e24412-445c6ad9.cjs +1 -0
  88. package/dist/{register-component-152c6ad2-a06f58c2.js → register-component-83e24412-b666e56b.js} +37 -33
  89. package/dist/scheduler-config-store-ec3b6190-8bde49c6.cjs +1 -0
  90. package/dist/scheduler-config-store-ec3b6190-fa81c492.js +23 -0
  91. package/dist/scheduler-store-8ca9003d-57b3f7a7.cjs +1 -0
  92. package/dist/scheduler-store-8ca9003d-8da2c12d.js +321 -0
  93. package/dist/time-period-selector.entry-5e083fd3.js +76 -0
  94. package/dist/time-period-selector.entry-febf55eb.cjs +1 -0
  95. package/dist/translate-icon.entry-10db7d36.js +15 -0
  96. package/dist/translate-icon.entry-8ce0a713.cjs +1 -0
  97. package/dist/warning-icon.entry-470e449d.js +15 -0
  98. package/dist/warning-icon.entry-b8217553.cjs +1 -0
  99. package/package.json +7 -4
  100. package/dist/_commonjsHelpers-57e89916-4a3ae7d8.cjs +0 -1
  101. package/dist/_commonjsHelpers-57e89916-af061c86.js +0 -19
  102. package/dist/add-circle-icon.entry-2ccb238b.cjs +0 -1
  103. package/dist/add-circle-icon.entry-35d6aa07.js +0 -15
  104. package/dist/calendar-check-icon_3.entry-903e2d82.js +0 -35
  105. package/dist/calendar-check-icon_3.entry-a16ce05e.cjs +0 -1
  106. package/dist/chevron-icon.entry-58366662.cjs +0 -1
  107. package/dist/chevron-icon.entry-5e11cef5.js +0 -15
  108. package/dist/close-icon_2.entry-011d9cf4.js +0 -25
  109. package/dist/close-icon_2.entry-83088b9a.cjs +0 -1
  110. package/dist/document-refresh-icon.entry-071ffd66.cjs +0 -1
  111. package/dist/duration-bddc4a13-05d3e3e2.cjs +0 -1
  112. package/dist/duration-bddc4a13-179ce826.js +0 -41
  113. package/dist/focus-visible-e8093c16-f380b705.cjs +0 -1
  114. package/dist/forward-icon_6.entry-3345af84.cjs +0 -3
  115. package/dist/index-3b6f5cd5.cjs +0 -30
  116. package/dist/index-630f4e87.js +0 -1498
  117. package/dist/index-b30d446a-cbbef925.cjs +0 -7
  118. package/dist/mailbox-store-19f0c6c9-a0cbfa97.cjs +0 -1
  119. package/dist/nylas-if-state_3.entry-504be976.cjs +0 -1
  120. package/dist/nylas-if-state_3.entry-e96d01f1.js +0 -291
  121. package/dist/nylas-list-folders.entry-866361cc.cjs +0 -1
  122. package/dist/nylas-list-threads.entry-04989295.cjs +0 -1
  123. package/dist/nylas-mailbox-pagination.entry-e0bd4aef.cjs +0 -1
  124. package/dist/nylas-mailbox-toolbar-button.entry-3d772b26.cjs +0 -1
  125. package/dist/nylas-open-hours-picker.entry-6bdc7c73.js +0 -186
  126. package/dist/nylas-open-hours-picker.entry-881b6db7.cjs +0 -1
  127. package/dist/nylas-provider.entry-8d9a844b.cjs +0 -1
  128. package/dist/nylas-scheduler.entry-7321e18f.js +0 -230
  129. package/dist/nylas-scheduler.entry-e82977fb.cjs +0 -1
  130. package/dist/nylas-threads-refresh.entry-477e68e4.cjs +0 -1
  131. package/dist/nylas-threads-search.entry-c5854641.cjs +0 -1
  132. package/dist/nylas-view-thread.entry-8b72cbdb.cjs +0 -1
  133. package/dist/play-icon_2.entry-ed5877e3.js +0 -25
  134. package/dist/play-icon_2.entry-f23ed6c1.cjs +0 -1
  135. package/dist/register-component-152c6ad2-0df7215b.cjs +0 -1
  136. package/dist/scheduler-store-7d48e682-0c0c3991.js +0 -289
  137. package/dist/scheduler-store-7d48e682-674705ef.cjs +0 -1
  138. package/dist/search-icon_3.entry-292138c3.js +0 -101
  139. package/dist/search-icon_3.entry-8e555357.cjs +0 -1
  140. package/dist/utils-5074a070-ce33ee6b.js +0 -119
  141. package/dist/utils-5074a070-d5ba6add.cjs +0 -2
@@ -0,0 +1,25 @@
1
+ import { r as t, h as c } from "./index-20ea5b0c.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const h = ".sc-calendar-check-icon-h{display:flex}", i = h, s = class {
5
+ constructor(e) {
6
+ t(this, e), this.width = "20", this.height = "20";
7
+ }
8
+ render() {
9
+ return c("svg", { key: "128211c766d7f563df0549f5a3d15ed24c92824c", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, c("path", { key: "063233f8a8a8b823df7949caff2643c0fa5ea021", 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" }));
10
+ }
11
+ };
12
+ s.style = i;
13
+ const a = ".sc-checkmark-circle-icon-h{display:flex}", r = a, n = class {
14
+ constructor(e) {
15
+ t(this, e), this.width = "20", this.height = "20";
16
+ }
17
+ render() {
18
+ return c("svg", { key: "391cc64dd53e54e877a74042d20890c59b1a25a1", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, c("path", { key: "9fa7b6dd7971961e6129720a4ec73af505d5c188", fill: "currentColor", d: "M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z" }));
19
+ }
20
+ };
21
+ n.style = r;
22
+ export {
23
+ s as calendar_check_icon,
24
+ n as checkmark_circle_icon
25
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-33f74306.cjs");require("react");require("react-dom");const h=".sc-calendar-check-icon-h{display:flex}",r=h,t=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"128211c766d7f563df0549f5a3d15ed24c92824c",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"063233f8a8a8b823df7949caff2643c0fa5ea021",fill:"currentColor",d:"M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z"}))}};t.style=r;const s=".sc-checkmark-circle-icon-h{display:flex}",n=s,i=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"391cc64dd53e54e877a74042d20890c59b1a25a1",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},e.h("path",{key:"9fa7b6dd7971961e6129720a4ec73af505d5c188",fill:"currentColor",d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z"}))}};i.style=n;exports.calendar_check_icon=t;exports.checkmark_circle_icon=i;
@@ -1,15 +1,15 @@
1
- import { r as e, h as C } from "./index-630f4e87.js";
1
+ import { r as e, h as C } from "./index-20ea5b0c.js";
2
2
  import "react";
3
3
  import "react-dom";
4
- const s = ".sc-calendar-icon-h{display:flex}", i = s, r = class {
4
+ const c = ".sc-calendar-icon-h{display:flex}", s = c, i = class {
5
5
  constructor(t) {
6
6
  e(this, t), this.width = "15", this.height = "15";
7
7
  }
8
8
  render() {
9
- return C("svg", { key: "309b61e31a622ac764869905efdea0a370ee6c2d", width: this.width, height: this.height, fill: "none", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg" }, C("path", { key: "3b4723e6152789d985548826ca220a1060df4b08", 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" }));
9
+ return C("svg", { key: "3511648425d3fb5cb3df268c9647cf2590d28ab0", width: this.width, height: this.height, fill: "none", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg" }, C("path", { key: "32465f5a3184be89f1acdcc53a98158e757c22bb", 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" }));
10
10
  }
11
11
  };
12
- r.style = i;
12
+ i.style = s;
13
13
  export {
14
- r as calendar_icon
14
+ i as calendar_icon
15
15
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-3b6f5cd5.cjs");require("react");require("react-dom");const i=".sc-calendar-icon-h{display:flex}",r=i,t=class{constructor(C){e.registerInstance(this,C),this.width="15",this.height="15"}render(){return e.h("svg",{key:"309b61e31a622ac764869905efdea0a370ee6c2d",width:this.width,height:this.height,fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"3b4723e6152789d985548826ca220a1060df4b08",fill:"currentColor",d:"M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z"}))}};t.style=r;exports.calendar_icon=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-33f74306.cjs");require("react");require("react-dom");const c=".sc-calendar-icon-h{display:flex}",i=c,t=class{constructor(C){e.registerInstance(this,C),this.width="15",this.height="15"}render(){return e.h("svg",{key:"3511648425d3fb5cb3df268c9647cf2590d28ab0",width:this.width,height:this.height,fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"32465f5a3184be89f1acdcc53a98158e757c22bb",fill:"currentColor",d:"M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z"}))}};t.style=i;exports.calendar_icon=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./index-33f74306.cjs");require("react");require("react-dom");const c=".sc-chevron-icon-h{display:flex}",h=c,r=class{constructor(e){n.registerInstance(this,e),this.width="24",this.height="24"}render(){return n.h("svg",{key:"4237d5be45ec5b20c76f6132347abbbff3db30d3",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none"},n.h("path",{key:"3d68979af03e88ecb6725fefbd1a4d9af22aa727",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"}))}};r.style=h;const p=".sc-search-icon-h{display:flex}",f=p,l=class{constructor(e){n.registerInstance(this,e),this.width="15",this.height="15"}render(){return n.h("svg",{key:"b76a09acee253e0c56da191a277aeb941b7660ae",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.h("path",{key:"d93a8a5b63a57e7a62909e5039654d399424bb0c",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"}))}};l.style=f;const b=':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}',u=b,d=class{constructor(e){n.registerInstance(this,e),this.selectedOptionChanged=n.createEvent(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=""}optionsChangedHandler(e,s){e!==s&&(this.filteredOptions=e)}defaultSelectedOptionChangedHandler(e,s){e.label!==s.label&&(this.selectedOption=e)}componentWillLoad(){this.filteredOptions=this.options,!this.selectedOption&&this.defaultSelectedOption&&(this.selectedOption=this.defaultSelectedOption),!this.selectedOption&&this.options.length>0&&(this.selectedOption=this.options[0])}toggleDropdown(){this.isOpen=!this.isOpen}filterOptions(e){const s=e.target.value;this.searchValue=s,this.filteredOptions=this.options.filter(t=>t.label.toLowerCase().includes(s.toLowerCase()))}selectOption(e){this.selectedOption=e,this.toggleDropdown(),this.selectedOptionChanged.emit({value:e.value,name:this.name})}handleSelectButtonKeyDown(e){var s;switch(e.key){case"ArrowDown":case"Enter":e.preventDefault(),this.isOpen||this.toggleDropdown(),(s=this.inputRef)==null||s.focus();break;case"Escape":this.isOpen=!1;break}}handleListboxKeydown(e){var a,o;const s=this.filteredOptions,t=s.findIndex(i=>i.value===this.ariaActivedescendant);if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){if(e.preventDefault(),t===s.length-1){this.ariaActivedescendant="",(a=this.inputRef)==null||a.focus();return}const i=t+1<s.length?t+1:0;this.ariaActivedescendant=s[i].value,this.focusOption(i)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){if(e.preventDefault(),t===0){this.ariaActivedescendant="",(o=this.inputRef)==null||o.focus();return}const i=t-1>=0?t-1:s.length-1;this.ariaActivedescendant=s[i].value,this.focusOption(i)}else e.key==="Enter"?(e.preventDefault(),this.ariaActivedescendant&&this.selectOption(s[t])):e.key==="Escape"&&(this.isOpen=!1)}focusOption(e){var o;const s=this.filteredOptions[e];if(!s)return;const t=s.value,a=(o=this.el.shadowRoot)==null?void 0:o.getElementById(t);a&&(a.focus(),a.scrollIntoView({behavior:"smooth",block:"nearest"}))}handleComboboxKeyDown(e){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)}handleOutsideClick(e){!e.composedPath().includes(this.el)&&this.isOpen&&(this.isOpen=!1)}render(){var e,s;return n.h("div",{key:"4b92f2c224e4cb1ec751c8dd46ff5bd16883110a",class:"dropdown",part:"sd_dropdown"},n.h("button",{key:"de1f96fe628dc11b3b7991f65065ec1ae55372fa",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)},n.h("slot",{key:"05166ff83a6f0cbf3a63d79e257570c996c2972d",name:"select-icon","aria-hidden":"true"}),n.h("span",{key:"99d79f6d8969fa6e88092af65ed7438d06c70693",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}`:""),n.h("span",{key:"220bed22a19b8e73a0b5f420a95169b5593138a3",class:{open:this.isOpen,closed:!this.isOpen,chevron:!0},"aria-hidden":"true"},n.h("chevron-icon",{key:"6ed5947377584f0adaa466c5f2c189e4795e72e2",width:"16",height:"16"}))),this.isOpen?n.h("div",{class:"dropdown-content",part:"sd_dropdown-content"},this.withSearch&&n.h("div",{class:{"search-box":!0,open:this.isOpen}},n.h("search-icon",{width:"15",height:"15",class:"icon"}),n.h("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)})),n.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:t=>this.handleListboxKeydown(t)},this.filteredOptions.map(t=>n.h("li",{tabindex:"0",key:t.value,id:t.value,onClick:()=>this.selectOption(t),role:"option"},t.labelHTML?t.labelHTML:t.label)))):null)}get el(){return n.getElement(this)}static get watchers(){return{options:["optionsChangedHandler"],defaultSelectedOption:["defaultSelectedOptionChangedHandler"]}}};d.style=u;exports.chevron_icon=r;exports.search_icon=l;exports.select_dropdown=d;
@@ -0,0 +1,117 @@
1
+ import { r as l, h as i, c as r, g as d } from "./index-20ea5b0c.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: "4237d5be45ec5b20c76f6132347abbbff3db30d3", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none" }, i("path", { key: "3d68979af03e88ecb6725fefbd1a4d9af22aa727", 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: "b76a09acee253e0c56da191a277aeb941b7660ae", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, i("path", { key: "d93a8a5b63a57e7a62909e5039654d399424bb0c", 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 a, o;
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 = "", (a = this.inputRef) == null || a.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 = "", (o = this.inputRef) == null || o.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 o;
82
+ const s = this.filteredOptions[e];
83
+ if (!s)
84
+ return;
85
+ const t = s.value, a = (o = this.el.shadowRoot) == null ? void 0 : o.getElementById(t);
86
+ a && (a.focus(), a.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: "4b92f2c224e4cb1ec751c8dd46ff5bd16883110a", class: "dropdown", part: "sd_dropdown" }, i("button", { key: "de1f96fe628dc11b3b7991f65065ec1ae55372fa", 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: "05166ff83a6f0cbf3a63d79e257570c996c2972d", name: "select-icon", "aria-hidden": "true" }), i("span", { key: "99d79f6d8969fa6e88092af65ed7438d06c70693", 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: "220bed22a19b8e73a0b5f420a95169b5593138a3", class: {
97
+ open: this.isOpen,
98
+ closed: !this.isOpen,
99
+ chevron: !0
100
+ }, "aria-hidden": "true" }, i("chevron-icon", { key: "6ed5947377584f0adaa466c5f2c189e4795e72e2", 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
+ };
@@ -0,0 +1,15 @@
1
+ import { r as c, h as e } from "./index-20ea5b0c.js";
2
+ import "react";
3
+ import "react-dom";
4
+ const t = ".sc-close-icon-h{display:flex}", s = t, f = class {
5
+ constructor(a) {
6
+ c(this, a), this.width = "16", this.height = "16";
7
+ }
8
+ render() {
9
+ return e("svg", { key: "e58d42880affc512eb7ae18a34099340a50dc6be", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "122df83308958e375531cdaa9d057b78d36b08e3", "clip-path": "url(#a)" }, e("path", { key: "9b712ee4fa93a86f9a5609bea9233f17160bc23e", 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: "761a14ba84069f692cad52f6eafa8cafc4a36489" }, e("clipPath", { key: "6805481c67c08d9253c6a5bd7ece2688f6fe0e55", id: "a" }, e("path", { key: "af3d03843001cd7418021a9dd216f2e2f126fc7f", fill: "#fff", transform: "translate(.148 .054)", d: "M0 0h20v20H0z" }))));
10
+ }
11
+ };
12
+ f.style = s;
13
+ export {
14
+ f as close_icon
15
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-33f74306.cjs");require("react");require("react-dom");const t=".sc-close-icon-h{display:flex}",s=t,a=class{constructor(c){e.registerInstance(this,c),this.width="16",this.height="16"}render(){return e.h("svg",{key:"e58d42880affc512eb7ae18a34099340a50dc6be",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("g",{key:"122df83308958e375531cdaa9d057b78d36b08e3","clip-path":"url(#a)"},e.h("path",{key:"9b712ee4fa93a86f9a5609bea9233f17160bc23e",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:"761a14ba84069f692cad52f6eafa8cafc4a36489"},e.h("clipPath",{key:"6805481c67c08d9253c6a5bd7ece2688f6fe0e55",id:"a"},e.h("path",{key:"af3d03843001cd7418021a9dd216f2e2f126fc7f",fill:"#fff",transform:"translate(.148 .054)",d:"M0 0h20v20H0z"}))))}};a.style=s;exports.close_icon=a;