@nylas/react 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{add-circle-icon_2.entry-6e8e4e1e.cjs → add-circle-icon_2.entry-04909861.cjs} +1 -1
- package/dist/{add-circle-icon_2.entry-dbad9a3b.js → add-circle-icon_2.entry-0d9ba871.js} +1 -1
- package/dist/{archive-icon.entry-802f7877.js → archive-icon.entry-3d6d9d3f.js} +1 -1
- package/dist/{archive-icon.entry-21f532af.cjs → archive-icon.entry-88459432.cjs} +1 -1
- package/dist/{arrow-icon.entry-e3dec626.js → arrow-icon.entry-789ee889.js} +1 -1
- package/dist/{arrow-icon.entry-e9af732a.cjs → arrow-icon.entry-c35e1933.cjs} +1 -1
- package/dist/{bold-icon.entry-1a2be28a.cjs → bold-icon.entry-827e95bf.cjs} +1 -1
- package/dist/{bold-icon.entry-0492ff02.js → bold-icon.entry-fbb382d2.js} +1 -1
- package/dist/{button-component_2.entry-fea9bd3d.js → button-component_2.entry-6c012ee4.js} +8 -8
- package/dist/{button-component_2.entry-f0c7f894.cjs → button-component_2.entry-acd13f45.cjs} +1 -1
- package/dist/{calendar-agenda-fill-icon_36.entry-c85d6a79.js → calendar-agenda-fill-icon_36.entry-1bb3b1a8.js} +509 -462
- package/dist/calendar-agenda-fill-icon_36.entry-fa8121df.cjs +6 -0
- package/dist/{calendar-cancel-icon.entry-237b8c9e.cjs → calendar-cancel-icon.entry-2e97f7d8.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-e7dd5b8f.js → calendar-cancel-icon.entry-a4d040db.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-c7f47fc8.js → calendar-check-icon_2.entry-a48a358d.js} +1 -1
- package/dist/{calendar-check-icon_2.entry-a868e0bc.cjs → calendar-check-icon_2.entry-bca4821d.cjs} +1 -1
- package/dist/{calendar-icon.entry-324de624.js → calendar-icon.entry-57727659.js} +1 -1
- package/dist/{calendar-icon.entry-071eb30d.cjs → calendar-icon.entry-a289313a.cjs} +1 -1
- package/dist/{checkbox-component.entry-5bcf4b08.cjs → checkbox-component.entry-af3e7005.cjs} +1 -1
- package/dist/{checkbox-component.entry-0f9970cc.js → checkbox-component.entry-f4f98226.js} +1 -1
- package/dist/{checkmark-icon_15.entry-7776e533.cjs → checkmark-icon_15.entry-dace1b62.cjs} +2 -2
- package/dist/{checkmark-icon_15.entry-98377585.js → checkmark-icon_15.entry-f43549b3.js} +7 -7
- package/dist/{chevron-icon_3.entry-526b4b85.cjs → chevron-icon_3.entry-219b42e6.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-ec66260c.js → chevron-icon_3.entry-25533d13.js} +5 -5
- package/dist/{clock-icon_4.entry-66d15f7c.cjs → clock-icon_4.entry-3917c667.cjs} +1 -1
- package/dist/{clock-icon_4.entry-4fa47996.js → clock-icon_4.entry-76f29f7e.js} +1 -1
- package/dist/{constants-f5ba52b9-40ab2ded.js → constants-3d8016e3-3c080f00.js} +17 -28
- package/dist/constants-3d8016e3-fd6c3848.cjs +1 -0
- package/dist/{customParseFormat-39eacb44-eeffe2bb.js → customParseFormat-6c652dbb-8a42d5b0.js} +1 -1
- package/dist/{customParseFormat-39eacb44-45ade322.cjs → customParseFormat-6c652dbb-ba81ab97.cjs} +1 -1
- package/dist/{delete-icon.entry-95d01eb8.js → delete-icon.entry-3b61864e.js} +1 -1
- package/dist/{delete-icon.entry-540aa2bb.cjs → delete-icon.entry-96420b21.cjs} +1 -1
- package/dist/{document-refresh-icon.entry-b82d5da8.js → document-refresh-icon.entry-7333b7c9.js} +1 -1
- package/dist/{document-refresh-icon.entry-c467f082.cjs → document-refresh-icon.entry-8b5c6b9b.cjs} +1 -1
- package/dist/{feedbackSync-47d13bb0-5608d680.js → feedbackSync-352aaf4a-b2b83cfa.js} +1 -1
- package/dist/{feedbackSync-47d13bb0-9f249f33.cjs → feedbackSync-352aaf4a-ba1bf452.cjs} +1 -1
- package/dist/{folder-icon.entry-cb0dc63d.js → folder-icon.entry-bb5e2452.js} +1 -1
- package/dist/{folder-icon.entry-4d48c2ee.cjs → folder-icon.entry-d2e46d3a.cjs} +1 -1
- package/dist/{forward-icon.entry-d04aaf6d.cjs → forward-icon.entry-1fcf5a6b.cjs} +1 -1
- package/dist/{forward-icon.entry-5aa01f53.js → forward-icon.entry-af8d2147.js} +1 -1
- package/dist/{globe-icon_2.entry-87e29cdf.cjs → globe-icon_2.entry-b4b55760.cjs} +1 -1
- package/dist/{globe-icon_2.entry-c7ae78cc.js → globe-icon_2.entry-cc6d9d67.js} +3 -3
- package/dist/{google-logo-icon_6.entry-80a6bfa3.js → google-logo-icon_6.entry-aa7b5b42.js} +314 -287
- package/dist/google-logo-icon_6.entry-eefdec63.cjs +2 -0
- package/dist/{google-meet-icon_5.entry-4e71c83b.js → google-meet-icon_5.entry-9758e527.js} +1 -1
- package/dist/{google-meet-icon_5.entry-26d667b6.cjs → google-meet-icon_5.entry-c545537a.cjs} +1 -1
- package/dist/{inbox-icon.entry-60a82bfc.cjs → inbox-icon.entry-b9640d5a.cjs} +1 -1
- package/dist/{inbox-icon.entry-77e4e17b.js → inbox-icon.entry-c005ebc5.js} +1 -1
- package/dist/index-05630f15.cjs +57 -0
- package/dist/{index-04630615.js → index-78390f2e.js} +114 -87
- package/dist/{index.es-1fdb1e36-fbdb04fa.js → index.es-4a203e8e-cf485db5.js} +1 -1
- package/dist/{index.es-1fdb1e36-830a422f.cjs → index.es-4a203e8e-f668b8c2.cjs} +1 -1
- package/dist/{info-icon_2.entry-3c483f61.js → info-icon_2.entry-b17298b6.js} +1 -1
- package/dist/{info-icon_2.entry-34800b66.cjs → info-icon_2.entry-ecbc6605.cjs} +1 -1
- package/dist/{input-component.entry-f7ccf3d6.cjs → input-component.entry-24366ab8.cjs} +1 -1
- package/dist/{input-component.entry-ea4016fe.js → input-component.entry-9da5da6c.js} +1 -1
- package/dist/{input-dropdown_2.entry-d4024d2f.cjs → input-dropdown_2.entry-0109b06c.cjs} +1 -1
- package/dist/{input-dropdown_2.entry-c7730cf8.js → input-dropdown_2.entry-d65f7152.js} +4 -4
- package/dist/{italic-icon.entry-8127c2ee.cjs → italic-icon.entry-afa4332a.cjs} +1 -1
- package/dist/{italic-icon.entry-6e0805ab.js → italic-icon.entry-d0a536f2.js} +1 -1
- package/dist/{multi-select-dropdown_2.entry-49d6f0e7.cjs → multi-select-dropdown_2.entry-2c7a1a06.cjs} +1 -1
- package/dist/{multi-select-dropdown_2.entry-d749999d.js → multi-select-dropdown_2.entry-c56b5fd2.js} +2 -2
- package/dist/{notebook-store-b61693cd-7a5576e7.js → notebook-store-b61693cd-0877e7a2.js} +1 -1
- package/dist/{notebook-store-b61693cd-84de36d2.cjs → notebook-store-b61693cd-a7b8ae37.cjs} +1 -1
- package/dist/nylas-booked-event-card_12.entry-827c7fb4.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-3fcfd6f9.js → nylas-booked-event-card_12.entry-960fdfe2.js} +347 -343
- package/dist/{nylas-call-summary.entry-38aed89a.js → nylas-call-summary.entry-1cce1446.js} +1 -1
- package/dist/{nylas-call-summary.entry-e9adcb93.cjs → nylas-call-summary.entry-f10f3c54.cjs} +1 -1
- package/dist/{nylas-event-calendar_3.entry-62d1f1f5.js → nylas-event-calendar_3.entry-8bb08ed3.js} +35 -23
- package/dist/{nylas-event-calendar_3.entry-48f656e5.cjs → nylas-event-calendar_3.entry-b656237b.cjs} +2 -2
- package/dist/{nylas-form-card.entry-b900b46e.cjs → nylas-form-card.entry-62578338.cjs} +1 -1
- package/dist/{nylas-form-card.entry-3828ccb1.js → nylas-form-card.entry-7455b8f1.js} +2 -2
- package/dist/{nylas-if-state.entry-92af0a51.cjs → nylas-if-state.entry-0897dc70.cjs} +1 -1
- package/dist/{nylas-if-state.entry-2810dcf5.js → nylas-if-state.entry-7fa6d392.js} +2 -2
- package/dist/{nylas-key-points.entry-977a6fae.js → nylas-key-points.entry-449e1be0.js} +3 -3
- package/dist/{nylas-key-points.entry-de658637.cjs → nylas-key-points.entry-693f33a1.cjs} +1 -1
- package/dist/{nylas-login.entry-4a6c11e6.cjs → nylas-login.entry-36544dc8.cjs} +1 -1
- package/dist/{nylas-login.entry-8101d3d0.js → nylas-login.entry-d7082306.js} +2 -2
- package/dist/{nylas-provider.entry-c054d68a.js → nylas-provider.entry-a0e7ce4d.js} +5 -5
- package/dist/{nylas-provider.entry-b7ac25f5.cjs → nylas-provider.entry-b93d2a62.cjs} +1 -1
- package/dist/nylas-scheduler-editor.entry-332d27e0.cjs +2 -0
- package/dist/{nylas-scheduler-editor.entry-e35fad5c.js → nylas-scheduler-editor.entry-78fe5abf.js} +20 -20
- package/dist/nylas-scheduling.entry-1d80c349.cjs +1 -0
- package/dist/{nylas-scheduling.entry-360b978c.js → nylas-scheduling.entry-fa9ff55b.js} +33 -33
- package/dist/{nylas-transcript.entry-4d973027.cjs → nylas-transcript.entry-570d3abe.cjs} +3 -3
- package/dist/{nylas-transcript.entry-81e2c821.js → nylas-transcript.entry-b129565c.js} +24 -24
- package/dist/nylas-video-player.entry-9c7c9792.cjs +1 -0
- package/dist/nylas-video-player.entry-e208d443.js +39 -0
- package/dist/{nylas-video-preview.entry-320421b6.js → nylas-video-preview.entry-a3f542ad.js} +1 -1
- package/dist/{nylas-video-preview.entry-12e05e4d.cjs → nylas-video-preview.entry-bd9bdda7.cjs} +1 -1
- package/dist/{person-icon.entry-8533209c.js → person-icon.entry-82fbc43e.js} +1 -1
- package/dist/{person-icon.entry-967ad730.cjs → person-icon.entry-e4d11400.cjs} +1 -1
- package/dist/{play-icon.entry-15ee8568.js → play-icon.entry-68bc660a.js} +1 -1
- package/dist/{play-icon.entry-7b1fd79d.cjs → play-icon.entry-9cab598b.cjs} +1 -1
- package/dist/{radio-button-group.entry-24cb342f.cjs → radio-button-group.entry-6a2adf11.cjs} +1 -1
- package/dist/{radio-button-group.entry-53dcf16c.js → radio-button-group.entry-f7679911.js} +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-0486ae54.cjs → refresh-icon.entry-0f1e5f20.cjs} +1 -1
- package/dist/{refresh-icon.entry-f3320971.js → refresh-icon.entry-394b0814.js} +1 -1
- package/dist/{register-component-504a1cbb-89124fd8.cjs → register-component-1027b769-62812558.cjs} +1 -1
- package/dist/{register-component-504a1cbb-5f986d7f.js → register-component-1027b769-dd21b16d.js} +1 -1
- package/dist/{reply-all-icon.entry-006fd1fb.js → reply-all-icon.entry-0fad8f2f.js} +1 -1
- package/dist/{reply-all-icon.entry-2cea1a40.cjs → reply-all-icon.entry-1680f1e5.cjs} +1 -1
- package/dist/{reply-icon.entry-d27166a1.js → reply-icon.entry-5f4b7837.js} +1 -1
- package/dist/{reply-icon.entry-bd252aed.cjs → reply-icon.entry-77342442.cjs} +1 -1
- package/dist/{scheduler-config-store-d6729d8d-4a2defea.cjs → scheduler-config-store-d6729d8d-06a3a314.cjs} +1 -1
- package/dist/{scheduler-config-store-d6729d8d-63e34849.js → scheduler-config-store-d6729d8d-854b5da8.js} +1 -1
- package/dist/scheduler-store-f3e2a26f-7cee436f.cjs +1 -0
- package/dist/{scheduler-store-baf100ed-81b183dc.js → scheduler-store-f3e2a26f-85df53f7.js} +60 -60
- package/dist/{sent-icon.entry-ee434395.cjs → sent-icon.entry-20a8945d.cjs} +1 -1
- package/dist/{sent-icon.entry-bf101068.js → sent-icon.entry-2d122865.js} +1 -1
- package/dist/{spam-icon.entry-11016b63.cjs → spam-icon.entry-86178cc5.cjs} +1 -1
- package/dist/{spam-icon.entry-5193f9c6.js → spam-icon.entry-9e374d44.js} +1 -1
- package/dist/{star-icon.entry-0e269252.cjs → star-icon.entry-1b94c861.cjs} +1 -1
- package/dist/{star-icon.entry-9c7449f3.js → star-icon.entry-bb1b517d.js} +1 -1
- package/dist/{stop-icon.entry-86412c9f.cjs → stop-icon.entry-7b21833b.cjs} +1 -1
- package/dist/{stop-icon.entry-2ac11166.js → stop-icon.entry-e4d3526d.js} +1 -1
- package/dist/{textarea-component.entry-9df3fa96.js → textarea-component.entry-ba3c9311.js} +1 -1
- package/dist/{textarea-component.entry-27717409.cjs → textarea-component.entry-fdba933d.cjs} +1 -1
- package/dist/{toggle-switch.entry-a5ddfad9.js → toggle-switch.entry-4a980d1d.js} +1 -1
- package/dist/{toggle-switch.entry-9623e2b2.cjs → toggle-switch.entry-9142a3d3.cjs} +1 -1
- package/dist/{translate-icon.entry-f22293e6.js → translate-icon.entry-1657aa04.js} +1 -1
- package/dist/{translate-icon.entry-e0617680.cjs → translate-icon.entry-b4908cf3.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-0275f657.cjs → trash-fill-icon.entry-a6791185.cjs} +1 -1
- package/dist/{trash-fill-icon.entry-2616c5df.js → trash-fill-icon.entry-c9e1769e.js} +1 -1
- package/dist/{underline-icon.entry-1110dcb1.js → underline-icon.entry-1ba4d923.js} +1 -1
- package/dist/{underline-icon.entry-d54b06ab.cjs → underline-icon.entry-d1f91e63.cjs} +1 -1
- package/dist/{warning-icon.entry-6d390ab7.cjs → warning-icon.entry-b1480f57.cjs} +1 -1
- package/dist/{warning-icon.entry-9a6e7913.js → warning-icon.entry-fe155c15.js} +1 -1
- package/package.json +4 -4
- package/dist/calendar-agenda-fill-icon_36.entry-70681da2.cjs +0 -6
- package/dist/constants-f5ba52b9-a0866d2f.cjs +0 -1
- package/dist/google-logo-icon_6.entry-a8b6efc0.cjs +0 -2
- package/dist/index-3d1f13d6.cjs +0 -57
- package/dist/nylas-booked-event-card_12.entry-29337b10.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-1538950d.cjs +0 -2
- package/dist/nylas-scheduling.entry-92351cd2.cjs +0 -1
- package/dist/nylas-video-player.entry-60268c07.js +0 -39
- package/dist/nylas-video-player.entry-f3c2b073.cjs +0 -1
- package/dist/scheduler-store-baf100ed-5c5d3aa5.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-3d1f13d6.cjs"),o=require("./constants-f5ba52b9-a0866d2f.cjs"),d=require("./customParseFormat-39eacb44-45ade322.cjs");require("react");require("react/jsx-runtime");require("react-dom");const h=".sc-globe-icon-h{display:flex}",u=h,c=class{constructor(t){s.registerInstance(this,t),this.width="16",this.height="16"}render(){return s.h("svg",{key:"e49a7c6af179ae7509e706ac54dab240917fa5ad",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 16 16",fill:"none"},s.h("path",{key:"20930ecebcee8b313e00f572da95d60cd6437945",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z",fill:"currentColor"}))}};c.style=u;const f=':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-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}',p=f;s.dayjs.extend(d.customParseFormat);const m=class{constructor(t){s.registerInstance(this,t),this.timeChange=s.createEvent(this,"timeChange",7),this.timeWindowFormError=s.createEvent(this,"timeWindowFormError",7),this.time=void 0,this.minimumStartTime=null,this.placeholder="hh:mmam/pm",this.name=void 0,this.hasError=!1,this.language=o.LANGUAGE_CODE.en,this.err="",this.showTimes=!1,this.ariaActivedescendant="",this.times=this.generateTimes(),this.shouldAutoScroll=!1}handleOutsideClick(t){!t.composedPath().includes(this.el)&&this.showTimes&&(this.showTimes=!1)}minimumStartTimeChangedHandler(){if(this.minimumStartTime){let t=s.dayjs().hour(parseInt(this.minimumStartTime)).minute(parseInt(this.minimumStartTime.slice(-4,-2)));this.minimumStartTime.slice(-2).toLowerCase()==="pm"&&parseInt(this.minimumStartTime)!==12?t=t.add(12,"hour"):this.minimumStartTime.slice(-2).toLowerCase()==="am"&&parseInt(this.minimumStartTime)===12&&(t=t.subtract(12,"hour")),this.times=this.generateTimes();const e=s.dayjs(this.times[0].value,"hh:mma");s.dayjs(this.time,"hh:mma").isBefore(e)&&(this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"}))}}componentDidRender(){if(this.showTimes&&this.shouldAutoScroll){const t=s.autocompleteTimeFormat(this.time),e=this.times.findIndex(i=>i.value===t);e>-1&&(this.shouldAutoScroll=!1,this.scrollToViewWithinParent(e));return}}handleTimeChange(t,e){const i=e.split(":");i[0]==="00"&&i[1].slice(-2)=="pm"&&(this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"})),s.validateTimeFormatInput(e)?(this.err="",this.timeWindowFormError.emit({key:this.el.id,message:""})):(this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"})),!this.err&&this.timeChange.emit({key:this.el.id,value:e})}handleTimeAutocomplete(t){var a;const e=(a=t.target)==null?void 0:a.value,i=this.language===o.LANGUAGE_CODE.de||this.language===o.LANGUAGE_CODE.fr?s.convertTo12HourFormat(e):e;if(!s.validateTimeFormatInput(i)){this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"});return}if(i===""){const r=s.roundToNearest15Minutes().format("hh:mma");this.timeChange.emit({key:this.el.id,value:r});return}if(!s.validateExactTimeFormat(i)){const r=s.autocompleteTimeFormat(i);this.timeChange.emit({key:this.el.id,value:r});return}this.timeChange.emit({key:this.el.id,value:i})}handleOnInput(t){var i;const e=(i=t.target)==null?void 0:i.value;if(s.validateTimeFormatInput(e)){if(e===""){const a=s.roundToNearest15Minutes().format("hh:mma"),r=this.times.findIndex(n=>n.value===a);r>-1&&this.scrollToViewWithinParent(r);return}if(!s.validateExactTimeFormat(e)){const a=s.autocompleteTimeFormat(e),r=this.times.findIndex(n=>n.value===a);r>-1&&this.scrollToViewWithinParent(r);return}}}generateTimes(){const t=[];let e=s.dayjs().set("hour",0).set("minute",0).set("second",0);this.minimumStartTime&&(e=s.dayjs(this.minimumStartTime,"hh:mma"));const i=e.endOf("day").diff(e,"minutes"),a=Math.round(i/15);for(let r=0;r<a+1;r++){const n=e.add(r*15,"minute");if(r==a&&n.format("hh:mma").includes("am"))break;t.push({id:r,value:n.format("hh:mma")})}return t}handleComboboxKeyDown(t){if(t.key==="ArrowDown"){if(t.preventDefault(),!this.showTimes){this.showTimes=!0,this.shouldAutoScroll=!0;return}if(this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[0].id.toString(),this.focusOption(0);else{const e=this.times.findIndex(a=>a.id.toString()===this.ariaActivedescendant),i=e+1<this.times.length?e+1:0;this.ariaActivedescendant=this.times[i].id.toString(),this.focusOption(i)}}else if(t.key==="ArrowUp")if(t.preventDefault(),this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[this.times.length-1].id.toString(),this.focusOption(this.times.length-1);else{const e=this.times.findIndex(a=>a.id.toString()===this.ariaActivedescendant),i=e-1>=0?e-1:this.times.length-1;this.ariaActivedescendant=this.times[i].id.toString(),this.focusOption(i)}else t.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}handleListboxKeydown(t){const e=this.times,i=e.findIndex(a=>a.id.toString()===this.ariaActivedescendant);if(t.key==="ArrowDown"||t.key==="Tab"&&!t.shiftKey){t.preventDefault();const a=i+1<e.length?i+1:0;this.ariaActivedescendant=e[a].id.toString(),this.focusOption(a)}else if(t.key==="ArrowUp"||t.key==="Tab"&&t.shiftKey){t.preventDefault();const a=i-1>=0?i-1:e.length-1;this.ariaActivedescendant=e[a].id.toString(),this.focusOption(a)}else if(t.key==="Enter"){if(t.preventDefault(),this.ariaActivedescendant){const a=e[i];this.handleTimeChange(t,a.value),this.showTimes=!1,this.ariaActivedescendant="",this.timeInput.focus()}}else t.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}scrollToViewWithinParent(t){var l;const e=this.times[t],i=(l=this.el.shadowRoot)==null?void 0:l.getElementById(e.id.toString()),a=this.timeMenu;this.ariaActivedescendant=e.id.toString();const r=i.getBoundingClientRect(),n=a.getBoundingClientRect();r.top<n.top?a.scrollTop-=n.top-r.top:r.bottom>n.bottom&&(a.scrollTop+=r.bottom-n.bottom),r.left<n.left?a.scrollLeft-=n.left-r.left:r.right>n.right&&(a.scrollLeft+=r.right-n.right)}focusOption(t){var r;const e=this.times[t];if(!e)return;const i=e.id.toString(),a=(r=this.el.shadowRoot)==null?void 0:r.getElementById(i);a&&(a.focus(),a.scrollIntoView({behavior:"smooth",block:"nearest"}))}render(){const t=this.language!==o.LANGUAGE_CODE.en;return s.h(s.Host,{key:"fe213a09bb8bd924e66b19ae885a4ecea11e7919"},s.h("div",{key:"75068ee86601003889d1d5047ca72f94cfce4354",class:"time-picker",part:"time-picker"},s.h("input",{key:"204175ad394c1a67f5464c04c20ba07dcde5863a",type:"text",name:this.name,id:this.name,part:"time-input",class:{"time-input":!0,error:!!this.err||this.hasError},ref:e=>this.timeInput=e,value:t?s.convertTo24HourFormat(this.time):this.time,onClick:()=>{this.showTimes=!this.showTimes,this.shouldAutoScroll=!0},"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&&s.h("div",{class:"invalid-time-icon"}),this.showTimes&&s.h("div",{class:"times",part:"times",ref:e=>this.timeMenu=e},s.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:e=>this.handleListboxKeydown(e)},this.times.map(e=>s.h("li",{tabindex:"0",key:e.id,id:e.id.toString(),class:{focused:this.ariaActivedescendant===e.id.toString()},onClick:i=>{this.handleTimeChange(i,e.value),this.showTimes=!1,this.timeInput.focus()},role:"option"},`${t?s.convertTo24HourFormat(e.value):e.value}`)))),!this.showTimes&&this.err&&s.h("p",{class:"error",id:"email-error"},this.err)))}get el(){return s.getElement(this)}static get watchers(){return{minimumStartTime:["minimumStartTimeChangedHandler"]}}};m.style=p;exports.globe_icon=c;exports.nylas_time_window_picker=m;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-05630f15.cjs"),o=require("./constants-3d8016e3-fd6c3848.cjs"),m=require("./customParseFormat-6c652dbb-ba81ab97.cjs");require("react");require("react/jsx-runtime");require("react-dom");const h=".sc-globe-icon-h{display:flex}",u=h,c=class{constructor(t){s.registerInstance(this,t),this.width="16",this.height="16"}render(){return s.h("svg",{key:"e49a7c6af179ae7509e706ac54dab240917fa5ad",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 16 16",fill:"none"},s.h("path",{key:"20930ecebcee8b313e00f572da95d60cd6437945",d:"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM8 3C8.37372 3 8.87543 3.35608 9.31258 4.31781C9.4073 4.52619 9.49448 4.75446 9.57265 5H6.42735C6.50552 4.75446 6.5927 4.52619 6.68742 4.31781C7.12457 3.35608 7.62628 3 8 3ZM5.77705 3.90401C5.62614 4.23601 5.49428 4.6038 5.38411 5H3.99963C4.52341 4.30269 5.22525 3.74677 6.03766 3.39978C5.94287 3.56117 5.85596 3.7304 5.77705 3.90401ZM5.16299 6C5.05694 6.6275 5 7.30146 5 8C5 8.69854 5.05694 9.3725 5.16299 10H3.41604C3.14845 9.38754 3 8.7111 3 8C3 7.2889 3.14845 6.61246 3.41604 6H5.16299ZM5.38411 11C5.49428 11.3962 5.62614 11.764 5.77705 12.096C5.85596 12.2696 5.94287 12.4388 6.03766 12.6002C5.22525 12.2532 4.52341 11.6973 3.99963 11H5.38411ZM6.42735 11H9.57265C9.49448 11.2455 9.4073 11.4738 9.31258 11.6822C8.87543 12.6439 8.37372 13 8 13C7.62628 13 7.12457 12.6439 6.68742 11.6822C6.5927 11.4738 6.50552 11.2455 6.42735 11ZM9.82134 10H6.17866C6.06438 9.3892 6 8.71396 6 8C6 7.28604 6.06438 6.6108 6.17866 6H9.82134C9.93562 6.6108 10 7.28604 10 8C10 8.71396 9.93562 9.3892 9.82134 10ZM10.6159 11H12.0004C11.4766 11.6973 10.7747 12.2532 9.96234 12.6002C10.0571 12.4388 10.144 12.2696 10.2229 12.096C10.3739 11.764 10.5057 11.3962 10.6159 11ZM12.584 10H10.837C10.9431 9.3725 11 8.69854 11 8C11 7.30146 10.9431 6.6275 10.837 6H12.584C12.8516 6.61246 13 7.2889 13 8C13 8.7111 12.8516 9.38754 12.584 10ZM9.96234 3.39978C10.7747 3.74677 11.4766 4.30269 12.0004 5H10.6159C10.5057 4.6038 10.3739 4.23601 10.2229 3.90401C10.144 3.7304 10.0571 3.56117 9.96234 3.39978Z",fill:"currentColor"}))}};c.style=u;const f=':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-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}',p=f;s.dayjs.extend(m.customParseFormat);const d=class{constructor(t){s.registerInstance(this,t),this.timeChange=s.createEvent(this,"timeChange",7),this.timeWindowFormError=s.createEvent(this,"timeWindowFormError",7),this.time=void 0,this.minimumStartTime=null,this.placeholder="hh:mmam/pm",this.name=void 0,this.hasError=!1,this.language=o.LANGUAGE_CODE.en,this.err="",this.showTimes=!1,this.ariaActivedescendant="",this.times=this.generateTimes(),this.shouldAutoScroll=!1}handleOutsideClick(t){!t.composedPath().includes(this.el)&&this.showTimes&&(this.showTimes=!1)}minimumStartTimeChangedHandler(){if(this.minimumStartTime){let t=s.dayjs().hour(parseInt(this.minimumStartTime)).minute(parseInt(this.minimumStartTime.slice(-4,-2)));this.minimumStartTime.slice(-2).toLowerCase()==="pm"&&parseInt(this.minimumStartTime)!==12?t=t.add(12,"hour"):this.minimumStartTime.slice(-2).toLowerCase()==="am"&&parseInt(this.minimumStartTime)===12&&(t=t.subtract(12,"hour")),this.times=this.generateTimes();const e=s.dayjs(this.times[0].value,"hh:mma");s.dayjs(this.time,"hh:mma").isBefore(e)&&(this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"}))}}componentDidRender(){if(this.showTimes&&this.shouldAutoScroll){const t=s.autocompleteTimeFormat(this.time),e=this.times.findIndex(i=>i.value===t);e>-1&&(this.shouldAutoScroll=!1,this.scrollToViewWithinParent(e));return}}handleTimeChange(t,e){const i=e.split(":");i[0]==="00"&&i[1].slice(-2)=="pm"&&(this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"})),s.validateTimeFormatInput(e)?(this.err="",this.timeWindowFormError.emit({key:this.el.id,message:""})):(this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"})),!this.err&&this.timeChange.emit({key:this.el.id,value:e})}handleTimeAutocomplete(t){var a;const e=(a=t.target)==null?void 0:a.value,i=this.language===o.LANGUAGE_CODE.de||this.language===o.LANGUAGE_CODE.fr?s.convertTo12HourFormat(e):e;if(!s.validateTimeFormatInput(i)){this.err="Invalid",this.timeWindowFormError.emit({key:this.el.id,message:"Invalid"});return}if(i===""){const r=s.roundToNearest15Minutes().format("hh:mma");this.timeChange.emit({key:this.el.id,value:r});return}if(!s.validateExactTimeFormat(i)){const r=s.autocompleteTimeFormat(i);this.timeChange.emit({key:this.el.id,value:r});return}this.timeChange.emit({key:this.el.id,value:i})}handleOnInput(t){var i;const e=(i=t.target)==null?void 0:i.value;if(s.validateTimeFormatInput(e)){if(e===""){const a=s.roundToNearest15Minutes().format("hh:mma"),r=this.times.findIndex(n=>n.value===a);r>-1&&this.scrollToViewWithinParent(r);return}if(!s.validateExactTimeFormat(e)){const a=s.autocompleteTimeFormat(e),r=this.times.findIndex(n=>n.value===a);r>-1&&this.scrollToViewWithinParent(r);return}}}generateTimes(){const t=[];let e=s.dayjs().set("hour",0).set("minute",0).set("second",0);this.minimumStartTime&&(e=s.dayjs(this.minimumStartTime,"hh:mma"));const i=e.endOf("day").diff(e,"minutes"),a=Math.round(i/15);for(let r=0;r<a+1;r++){const n=e.add(r*15,"minute");if(r==a&&n.format("hh:mma").includes("am"))break;t.push({id:r,value:n.format("hh:mma")})}return t}handleComboboxKeyDown(t){if(t.key==="ArrowDown"){if(t.preventDefault(),!this.showTimes){this.showTimes=!0,this.shouldAutoScroll=!0;return}if(this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[0].id.toString(),this.focusOption(0);else{const e=this.times.findIndex(a=>a.id.toString()===this.ariaActivedescendant),i=e+1<this.times.length?e+1:0;this.ariaActivedescendant=this.times[i].id.toString(),this.focusOption(i)}}else if(t.key==="ArrowUp")if(t.preventDefault(),this.ariaActivedescendant==="")this.ariaActivedescendant=this.times[this.times.length-1].id.toString(),this.focusOption(this.times.length-1);else{const e=this.times.findIndex(a=>a.id.toString()===this.ariaActivedescendant),i=e-1>=0?e-1:this.times.length-1;this.ariaActivedescendant=this.times[i].id.toString(),this.focusOption(i)}else t.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}handleListboxKeydown(t){const e=this.times,i=e.findIndex(a=>a.id.toString()===this.ariaActivedescendant);if(t.key==="ArrowDown"||t.key==="Tab"&&!t.shiftKey){t.preventDefault();const a=i+1<e.length?i+1:0;this.ariaActivedescendant=e[a].id.toString(),this.focusOption(a)}else if(t.key==="ArrowUp"||t.key==="Tab"&&t.shiftKey){t.preventDefault();const a=i-1>=0?i-1:e.length-1;this.ariaActivedescendant=e[a].id.toString(),this.focusOption(a)}else if(t.key==="Enter"){if(t.preventDefault(),this.ariaActivedescendant){const a=e[i];this.handleTimeChange(t,a.value),this.showTimes=!1,this.ariaActivedescendant="",this.timeInput.focus()}}else t.key==="Escape"&&(this.showTimes=!1,this.timeInput.focus())}scrollToViewWithinParent(t){var l;const e=this.times[t],i=(l=this.el.shadowRoot)==null?void 0:l.getElementById(e.id.toString()),a=this.timeMenu;this.ariaActivedescendant=e.id.toString();const r=i.getBoundingClientRect(),n=a.getBoundingClientRect();r.top<n.top?a.scrollTop-=n.top-r.top:r.bottom>n.bottom&&(a.scrollTop+=r.bottom-n.bottom),r.left<n.left?a.scrollLeft-=n.left-r.left:r.right>n.right&&(a.scrollLeft+=r.right-n.right)}focusOption(t){var r;const e=this.times[t];if(!e)return;const i=e.id.toString(),a=(r=this.el.shadowRoot)==null?void 0:r.getElementById(i);a&&(a.focus(),a.scrollIntoView({behavior:"smooth",block:"nearest"}))}render(){const t=this.language!==o.LANGUAGE_CODE.en;return s.h(s.Host,{key:"fe213a09bb8bd924e66b19ae885a4ecea11e7919"},s.h("div",{key:"75068ee86601003889d1d5047ca72f94cfce4354",class:"time-picker",part:"time-picker"},s.h("input",{key:"204175ad394c1a67f5464c04c20ba07dcde5863a",type:"text",name:this.name,id:this.name,part:"time-input",class:{"time-input":!0,error:!!this.err||this.hasError},ref:e=>this.timeInput=e,value:t?s.convertTo24HourFormat(this.time):this.time,onClick:()=>{this.showTimes=!this.showTimes,this.shouldAutoScroll=!0},"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&&s.h("div",{class:"invalid-time-icon"}),this.showTimes&&s.h("div",{class:"times",part:"times",ref:e=>this.timeMenu=e},s.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:e=>this.handleListboxKeydown(e)},this.times.map(e=>s.h("li",{tabindex:"0",key:e.id,id:e.id.toString(),class:{focused:this.ariaActivedescendant===e.id.toString()},onClick:i=>{this.handleTimeChange(i,e.value),this.showTimes=!1,this.timeInput.focus()},role:"option"},`${t?s.convertTo24HourFormat(e.value):e.value}`)))),!this.showTimes&&this.err&&s.h("p",{class:"error",id:"email-error"},this.err)))}get el(){return s.getElement(this)}static get watchers(){return{minimumStartTime:["minimumStartTimeChangedHandler"]}}};d.style=p;exports.globe_icon=c;exports.nylas_time_window_picker=d;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as y, h as r, b as o, c as h, W as c, X as m, L as g, Y as f, Z as u, M as p, H as b, g as x } from "./index-
|
|
2
|
-
import { L as l } from "./constants-
|
|
3
|
-
import { c as w } from "./customParseFormat-
|
|
1
|
+
import { r as y, h as r, b as o, c as h, W as c, X as m, L as g, Y as f, Z as u, M as p, H as b, g as x } from "./index-78390f2e.js";
|
|
2
|
+
import { L as l } from "./constants-3d8016e3-3c080f00.js";
|
|
3
|
+
import { c as w } from "./customParseFormat-6c652dbb-8a42d5b0.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "react/jsx-runtime";
|
|
6
6
|
import "react-dom";
|