@nylas/react 1.1.0 → 1.1.2
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-611be49d.js +25 -0
- package/dist/add-circle-icon_2.entry-f1383568.cjs +1 -0
- package/dist/{archive-icon_7.entry-e3df60ed.cjs → archive-icon_7.entry-59cc6868.cjs} +1 -1
- package/dist/{archive-icon_7.entry-7411c224.js → archive-icon_7.entry-5e6ba9e7.js} +13 -13
- package/dist/arrow-icon.entry-9c19a803.js +15 -0
- package/dist/{arrow-icon.entry-280e18b0.cjs → arrow-icon.entry-a924df13.cjs} +1 -1
- package/dist/{bold-icon_3.entry-5963945c.js → bold-icon_3.entry-2935a3df.js} +6 -6
- package/dist/{bold-icon_3.entry-5dffbedd.cjs → bold-icon_3.entry-ffe02f93.cjs} +1 -1
- package/dist/{button-component_2.entry-237733b4.js → button-component_2.entry-93aa59a2.js} +5 -5
- package/dist/{button-component_2.entry-b29d2873.cjs → button-component_2.entry-b9d3f6a2.cjs} +1 -1
- package/dist/{calendar-agenda-fill-icon_48.entry-9afba869.js → calendar-agenda-fill-icon_48.entry-476bc4ef.js} +1550 -1399
- package/dist/calendar-agenda-fill-icon_48.entry-c4ea84b3.cjs +7 -0
- package/dist/{calendar-cancel-icon.entry-77ccf227.cjs → calendar-cancel-icon.entry-11bb8656.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-780723a6.js → calendar-cancel-icon.entry-ee0acc54.js} +4 -4
- package/dist/{calendar-check-icon_2.entry-b37ac7f0.cjs → calendar-check-icon_2.entry-14548656.cjs} +1 -1
- package/dist/{calendar-check-icon_2.entry-2c89c230.js → calendar-check-icon_2.entry-54a82e1e.js} +9 -9
- package/dist/{calendar-icon.entry-ffc93569.cjs → calendar-icon.entry-1a17f887.cjs} +1 -1
- package/dist/{calendar-icon.entry-02dd3990.js → calendar-icon.entry-29f7003b.js} +5 -5
- package/dist/checkbox-component_2.entry-84a17232.cjs +1 -0
- package/dist/{checkbox-component_2.entry-ee9d0e6c.js → checkbox-component_2.entry-dfec10cb.js} +35 -12
- package/dist/chevron-icon_3.entry-5da08d02.cjs +1 -0
- package/dist/{chevron-icon_3.entry-f62e9ef1.js → chevron-icon_3.entry-826e81d4.js} +29 -15
- package/dist/{clock-icon_4.entry-766a1b23.js → clock-icon_4.entry-36d97f00.js} +13 -13
- package/dist/{clock-icon_4.entry-7dc2cc4a.cjs → clock-icon_4.entry-dafdd895.cjs} +1 -1
- package/dist/{constants-50c3e067-9f2a6372.cjs → constants-50c3e067-1fe54cf3.cjs} +1 -1
- package/dist/{constants-50c3e067-8a40a5fe.js → constants-50c3e067-fed7fb48.js} +1 -1
- package/dist/{copy-icon.entry-2a841508.js → copy-icon.entry-6d1a649d.js} +7 -7
- package/dist/{copy-icon.entry-e5251410.cjs → copy-icon.entry-eec265da.cjs} +1 -1
- package/dist/{delete-icon_2.entry-1a5c39dc.cjs → delete-icon_2.entry-160ba41e.cjs} +1 -1
- package/dist/{delete-icon_2.entry-64555a2f.js → delete-icon_2.entry-528a3879.js} +9 -9
- package/dist/{document-refresh-icon.entry-fdc7ddda.cjs → document-refresh-icon.entry-276704dc.cjs} +1 -1
- package/dist/document-refresh-icon.entry-6565f3b5.js +15 -0
- package/dist/elements/index.d.ts +1 -0
- package/dist/{elements-dc5b338e-2da1fe61.js → elements-dc5b338e-2d3857dc.js} +1 -1
- package/dist/{elements-dc5b338e-c8016c3d.cjs → elements-dc5b338e-b06b2857.cjs} +1 -1
- package/dist/{focus-visible-e8093c16-0a38a184.cjs → focus-visible-e8093c16-47e61336.cjs} +1 -1
- package/dist/{focus-visible-e8093c16-9d0c98c0.js → focus-visible-e8093c16-6f68eb89.js} +1 -1
- package/dist/{forward-icon_6.entry-390ef70a.js → forward-icon_6.entry-ed6ab66a.js} +9 -9
- package/dist/{forward-icon_6.entry-7238ef38.cjs → forward-icon_6.entry-fed8994d.cjs} +2 -2
- package/dist/{globe-icon.entry-8d106260.js → globe-icon.entry-154ccdb5.js} +5 -5
- package/dist/{globe-icon.entry-81f42f89.cjs → globe-icon.entry-95fc0408.cjs} +1 -1
- package/dist/{google-logo-icon_4.entry-aabd3886.js → google-logo-icon_4.entry-68cfa3fe.js} +245 -252
- package/dist/google-logo-icon_4.entry-afffb209.cjs +1 -0
- package/dist/index-1322d804.js +12842 -0
- package/dist/index-c4e817ef.cjs +82 -0
- package/dist/{index.es-c9454237-00ccd1e6.js → index.es-79f5b771-04cd3414.js} +1 -1
- package/dist/{index.es-c9454237-b64161d1.cjs → index.es-79f5b771-08cc349d.cjs} +1 -1
- package/dist/{info-icon_2.entry-b2e11336.cjs → info-icon_2.entry-2af880b8.cjs} +1 -1
- package/dist/{info-icon_2.entry-bb8ed71c.js → info-icon_2.entry-49261a0a.js} +5 -5
- package/dist/input-color-picker.entry-57adff77.cjs +1 -0
- package/dist/input-color-picker.entry-aefe0e26.js +48 -0
- package/dist/input-component.entry-09c3c9b6.cjs +1 -0
- package/dist/{input-component.entry-cb86170f.js → input-component.entry-d7c2724b.js} +19 -14
- package/dist/{input-dropdown.entry-a76c339e.js → input-dropdown.entry-e573ade0.js} +6 -6
- package/dist/input-dropdown.entry-e7d26273.cjs +1 -0
- package/dist/{mailbox-store-edc386fc-8bc7558b.js → mailbox-store-9c52a3fa-27f8f7e6.js} +2 -2
- package/dist/{mailbox-store-edc386fc-156b7236.cjs → mailbox-store-9c52a3fa-6b39645f.cjs} +1 -1
- package/dist/{multi-select-dropdown.entry-6b686695.js → multi-select-dropdown.entry-15cacb87.js} +11 -7
- package/dist/multi-select-dropdown.entry-46b2b1c9.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-e861bb16.js → nylas-booked-event-card_12.entry-3921071a.js} +233 -231
- package/dist/nylas-booked-event-card_12.entry-47c5381d.cjs +1 -0
- package/dist/{nylas-form-card.entry-b158d789.js → nylas-form-card.entry-ca835017.js} +15 -15
- package/dist/{nylas-form-card.entry-ca4a8746.cjs → nylas-form-card.entry-db3f0e3b.cjs} +1 -1
- package/dist/{nylas-if-state.entry-8e4d922c.js → nylas-if-state.entry-4159d41d.js} +8 -8
- package/dist/{nylas-if-state.entry-95fac42d.cjs → nylas-if-state.entry-5410607c.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-8a22e0c8.cjs → nylas-list-folders.entry-0f143930.cjs} +1 -1
- package/dist/{nylas-list-folders.entry-83c39684.js → nylas-list-folders.entry-6b4a3d96.js} +3 -3
- package/dist/{nylas-list-threads.entry-7ea370e1.js → nylas-list-threads.entry-62108562.js} +3 -3
- package/dist/{nylas-list-threads.entry-54c582af.cjs → nylas-list-threads.entry-68b6f32b.cjs} +1 -1
- package/dist/{nylas-login.entry-9115fd81.js → nylas-login.entry-590e7fba.js} +7 -7
- package/dist/{nylas-login.entry-fb627e40.cjs → nylas-login.entry-f1d7bc7d.cjs} +1 -1
- package/dist/{nylas-mailbox-pagination.entry-04626d27.cjs → nylas-mailbox-pagination.entry-8377fdee.cjs} +1 -1
- package/dist/{nylas-mailbox-pagination.entry-3ff02cf9.js → nylas-mailbox-pagination.entry-ba1af8fb.js} +2 -2
- package/dist/{nylas-mailbox-toolbar-button.entry-f752e925.js → nylas-mailbox-toolbar-button.entry-4497acd0.js} +8 -8
- package/dist/{nylas-mailbox-toolbar-button.entry-8d00c789.cjs → nylas-mailbox-toolbar-button.entry-6a5d8387.cjs} +1 -1
- package/dist/{nylas-mailbox.entry-99c27b6c.js → nylas-mailbox.entry-917c22f5.js} +4 -4
- package/dist/{nylas-mailbox.entry-b3974f4e.cjs → nylas-mailbox.entry-a07652b4.cjs} +1 -1
- package/dist/{nylas-provider.entry-a3ad02a5.cjs → nylas-provider.entry-0e520ac3.cjs} +1 -1
- package/dist/{nylas-provider.entry-c206aa32.js → nylas-provider.entry-20c47b14.js} +8 -8
- package/dist/{nylas-reminder-emails.entry-414ce6fe.js → nylas-reminder-emails.entry-088ee120.js} +9 -9
- package/dist/{nylas-reminder-emails.entry-59c07bfe.cjs → nylas-reminder-emails.entry-69626e7f.cjs} +2 -2
- package/dist/{nylas-reminder-time_2.entry-197d83a0.js → nylas-reminder-time_2.entry-0357f280.js} +5 -5
- package/dist/{nylas-reminder-time_2.entry-d79dcd85.cjs → nylas-reminder-time_2.entry-b5c181db.cjs} +1 -1
- package/dist/{nylas-scheduler-editor.entry-7f389982.js → nylas-scheduler-editor.entry-6bb290ed.js} +66 -66
- package/dist/nylas-scheduler-editor.entry-d2c3bddc.cjs +2 -0
- package/dist/{nylas-scheduling.entry-4fa5381d.js → nylas-scheduling.entry-bc9c25c5.js} +126 -112
- package/dist/nylas-scheduling.entry-dc92d5e7.cjs +1 -0
- package/dist/{nylas-threads-refresh.entry-20602e7b.js → nylas-threads-refresh.entry-45d7d171.js} +4 -4
- package/dist/{nylas-threads-refresh.entry-56b53449.cjs → nylas-threads-refresh.entry-6636e7b1.cjs} +1 -1
- package/dist/{nylas-threads-search.entry-8872473c.js → nylas-threads-search.entry-4460aa9b.js} +16 -16
- package/dist/{nylas-threads-search.entry-8e0ec3ae.cjs → nylas-threads-search.entry-ae87695a.cjs} +1 -1
- package/dist/{nylas-time-window-picker.entry-ca47f721.cjs → nylas-time-window-picker.entry-1b449403.cjs} +1 -1
- package/dist/{nylas-time-window-picker.entry-9ac542b7.js → nylas-time-window-picker.entry-260f52a6.js} +18 -18
- package/dist/{nylas-view-thread.entry-dcd3d5be.js → nylas-view-thread.entry-5821630b.js} +9 -9
- package/dist/{nylas-view-thread.entry-1f758e43.cjs → nylas-view-thread.entry-5a9b353a.cjs} +1 -1
- package/dist/{person-icon.entry-63b28ace.cjs → person-icon.entry-b4ce06b7.cjs} +1 -1
- package/dist/{person-icon.entry-93130c05.js → person-icon.entry-ed6786db.js} +2 -2
- package/dist/{play-icon_2.entry-6a99c32d.js → play-icon_2.entry-261ea828.js} +8 -8
- package/dist/play-icon_2.entry-87fe39a9.cjs +1 -0
- package/dist/react.cjs +1 -1
- package/dist/react.js +100 -99
- package/dist/{refresh-icon.entry-b49792fc.cjs → refresh-icon.entry-21ac359d.cjs} +1 -1
- package/dist/{refresh-icon.entry-84783c91.js → refresh-icon.entry-87af05b0.js} +4 -4
- package/dist/{register-component-887199a9-b41dfa7a.js → register-component-ea95564d-843da1da.js} +1 -1
- package/dist/{register-component-887199a9-003f96c5.cjs → register-component-ea95564d-a64ee107.cjs} +1 -1
- package/dist/{scheduler-config-store-2a3b403d-73610089.js → scheduler-config-store-2a3b403d-8553b685.js} +1 -1
- package/dist/{scheduler-config-store-2a3b403d-a5e3433a.cjs → scheduler-config-store-2a3b403d-88840eb1.cjs} +1 -1
- package/dist/scheduler-store-9ff4914b-63dc472a.cjs +1 -0
- package/dist/{scheduler-store-fe281404-bddb1b6a.js → scheduler-store-9ff4914b-d1a624f8.js} +87 -82
- package/dist/textarea-component.entry-cbffb0b0.cjs +1 -0
- package/dist/{textarea-component.entry-40e959e5.js → textarea-component.entry-dad42f20.js} +10 -9
- package/dist/time-period-selector.entry-79c94da3.js +80 -0
- package/dist/time-period-selector.entry-e54d0989.cjs +1 -0
- package/dist/{translate-icon.entry-a2ed4f76.cjs → translate-icon.entry-8e9eeeba.cjs} +1 -1
- package/dist/{translate-icon.entry-92b83635.js → translate-icon.entry-ef6266c4.js} +4 -4
- package/dist/{warning-icon.entry-3ab9a59e.cjs → warning-icon.entry-34c85de2.cjs} +1 -1
- package/dist/{warning-icon.entry-19f721c3.js → warning-icon.entry-adf18211.js} +4 -4
- package/package.json +2 -2
- package/dist/add-circle-icon_2.entry-7165bd0e.js +0 -25
- package/dist/add-circle-icon_2.entry-f1ddca18.cjs +0 -1
- package/dist/arrow-icon.entry-38949317.js +0 -15
- package/dist/calendar-agenda-fill-icon_48.entry-d3830dbb.cjs +0 -7
- package/dist/checkbox-component_2.entry-00b6a1e9.cjs +0 -1
- package/dist/chevron-icon_3.entry-468abc26.cjs +0 -1
- package/dist/document-refresh-icon.entry-4bf6398b.js +0 -15
- package/dist/google-logo-icon_4.entry-fa2b8999.cjs +0 -1
- package/dist/index-53420959-5fc8ad2b.js +0 -5
- package/dist/index-53420959-fcf45780.cjs +0 -1
- package/dist/index-5ccfd9df.js +0 -7859
- package/dist/index-6d9eeb53-58c8980a.js +0 -4971
- package/dist/index-6d9eeb53-b2a6d09f.cjs +0 -41
- package/dist/index-eb33703c.cjs +0 -42
- package/dist/input-component.entry-378b1ccc.cjs +0 -1
- package/dist/input-dropdown.entry-98954c93.cjs +0 -1
- package/dist/multi-select-dropdown.entry-40b855e1.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-9d693125.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-f1c6964a.cjs +0 -2
- package/dist/nylas-scheduling.entry-1a8bd6fc.cjs +0 -1
- package/dist/play-icon_2.entry-b67fb649.cjs +0 -1
- package/dist/scheduler-store-fe281404-c3e477f6.cjs +0 -1
- package/dist/textarea-component.entry-28c4bc05.cjs +0 -1
- package/dist/time-period-selector.entry-af71523a.cjs +0 -1
- package/dist/time-period-selector.entry-da5d8652.js +0 -93
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as b, e as $, k as d, m as R } from "./index-
|
|
1
|
+
import { d as b, e as $, k as d, m as R } from "./index-1322d804.js";
|
|
2
2
|
var w;
|
|
3
3
|
(function(a) {
|
|
4
4
|
a.Component = "component", a.Api = "api", a.Auth = "auth";
|
|
@@ -212,7 +212,7 @@ class U {
|
|
|
212
212
|
return this.schedulerStore.set("organizerConfirmationBookingId", ""), this.schedulerStore.set("confirmedEventInfo", void 0), e;
|
|
213
213
|
}
|
|
214
214
|
async bookTimeslot(e) {
|
|
215
|
-
var
|
|
215
|
+
var v;
|
|
216
216
|
this.schedulerStore.set("isLoading", !0);
|
|
217
217
|
const { selectedTimeslot: t, selectedTimezone: s, bookingInfo: i, selectedLanguage: n } = this.schedulerStore.state;
|
|
218
218
|
if (!e && !i)
|
|
@@ -224,36 +224,36 @@ class U {
|
|
|
224
224
|
if (!o)
|
|
225
225
|
return { error: this.errors.component(d.t("createBookingErrorTitle")).no_timezone_selected() };
|
|
226
226
|
const u = this.schedulerStore.get("availabilityOrderEmails");
|
|
227
|
-
let
|
|
227
|
+
let m = "";
|
|
228
228
|
if (u.length > 0) {
|
|
229
|
-
const
|
|
230
|
-
for (let
|
|
231
|
-
if (
|
|
232
|
-
|
|
229
|
+
const S = r.emails;
|
|
230
|
+
for (let h = 0; h < u.length; h++)
|
|
231
|
+
if (S.includes(u[h])) {
|
|
232
|
+
m = u[h];
|
|
233
233
|
break;
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
const
|
|
237
|
-
participants:
|
|
236
|
+
const c = e ? e == null ? void 0 : e.primaryParticipant : i == null ? void 0 : i.primaryParticipant, g = e ? (e == null ? void 0 : e.guests) || [] : (i == null ? void 0 : i.guests) || [], f = e ? e == null ? void 0 : e.additionalFields : i == null ? void 0 : i.additionalFields, _ = this.getHeaders(), I = `/v3/scheduling/bookings${!this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : ""}`, l = await this.makeAPIRequest(decodeURIComponent(I), "POST", JSON.stringify({
|
|
237
|
+
participants: m ? [{ email: m }] : void 0,
|
|
238
238
|
additional_fields: f,
|
|
239
|
-
additional_guests:
|
|
240
|
-
guest: { ...
|
|
239
|
+
additional_guests: g,
|
|
240
|
+
guest: { ...c },
|
|
241
241
|
start_time: r.start_time.getTime() / 1e3,
|
|
242
242
|
end_time: r.end_time.getTime() / 1e3,
|
|
243
243
|
timezone: o,
|
|
244
244
|
email_language: this.getTwoLetterLanguageCode(n)
|
|
245
245
|
}), _);
|
|
246
|
-
if ("error" in
|
|
246
|
+
if ("error" in l) {
|
|
247
247
|
this.schedulerStore.set("isLoading", !1);
|
|
248
|
-
const
|
|
249
|
-
let
|
|
250
|
-
if (
|
|
251
|
-
const L = this.getErrorMessage(
|
|
252
|
-
|
|
248
|
+
const S = (v = l.error) == null ? void 0 : v.type;
|
|
249
|
+
let h = l.error;
|
|
250
|
+
if (S && S in this.errors.api("Create Booking")) {
|
|
251
|
+
const L = this.getErrorMessage(h);
|
|
252
|
+
h = this.errors.api("Create Booking")[S](L);
|
|
253
253
|
}
|
|
254
|
-
return { error:
|
|
254
|
+
return { error: h };
|
|
255
255
|
}
|
|
256
|
-
return "data" in
|
|
256
|
+
return "data" in l && this.schedulerStore.set("eventInfo", l == null ? void 0 : l.data), this.schedulerStore.set("isLoading", !1), l;
|
|
257
257
|
}
|
|
258
258
|
async getUISettings() {
|
|
259
259
|
var n;
|
|
@@ -271,9 +271,12 @@ class U {
|
|
|
271
271
|
return e.split("-")[0];
|
|
272
272
|
}
|
|
273
273
|
getStartTimeWithMinBookingNotice(e) {
|
|
274
|
-
var
|
|
275
|
-
const t = (
|
|
276
|
-
|
|
274
|
+
var n;
|
|
275
|
+
const t = (n = this.schedulerStore.get("configSettings")) == null ? void 0 : n.scheduler, s = t == null ? void 0 : t.min_booking_notice;
|
|
276
|
+
if (!s)
|
|
277
|
+
return e;
|
|
278
|
+
const i = (/* @__PURE__ */ new Date()).getTime();
|
|
279
|
+
return e < (i + s * 60 * 1e3) / 1e3 ? Math.floor((i + s * 60 * 1e3) / 1e3) : e;
|
|
277
280
|
}
|
|
278
281
|
getEndTimeForAvailableDaysInFuture(e) {
|
|
279
282
|
var r, o;
|
|
@@ -281,44 +284,46 @@ class U {
|
|
|
281
284
|
return Math.min(i, e);
|
|
282
285
|
}
|
|
283
286
|
async getAvailability(e = 0, t = 0) {
|
|
284
|
-
var
|
|
287
|
+
var f, _, p, I;
|
|
285
288
|
this.schedulerStore.set("isLoading", !0);
|
|
286
289
|
const s = new URLSearchParams(), i = /* @__PURE__ */ new Date(), n = i.getTime();
|
|
287
290
|
if (t && t < n / 1e3)
|
|
288
291
|
return this.schedulerStore.set("isLoading", !1), { error: this.errors.component(d.t("getAvailabilityErrorTitle")).endtime_not_in_future() };
|
|
289
292
|
if (!e) {
|
|
290
|
-
const
|
|
291
|
-
e = Math.floor(
|
|
293
|
+
const l = new Date(i.getFullYear(), i.getMonth(), 1);
|
|
294
|
+
e = Math.floor(l.getTime() / 1e3);
|
|
292
295
|
}
|
|
293
|
-
if (
|
|
294
|
-
const
|
|
295
|
-
t = Math.floor(
|
|
296
|
+
if (!t) {
|
|
297
|
+
const l = new Date(i.getFullYear(), i.getMonth() + 1, 0);
|
|
298
|
+
t = Math.floor(l.getTime() / 1e3);
|
|
296
299
|
}
|
|
297
|
-
t = this.getEndTimeForAvailableDaysInFuture(t)
|
|
298
|
-
const r = this.
|
|
299
|
-
r && s.append("
|
|
300
|
-
const o =
|
|
301
|
-
|
|
300
|
+
t = this.getEndTimeForAvailableDaysInFuture(t);
|
|
301
|
+
const r = this.getStartTimeWithMinBookingNotice(e);
|
|
302
|
+
e = r, t = r > t ? r + 1 : t, s.append("start_time", encodeURIComponent(e.toString())), s.append("end_time", encodeURIComponent(t.toString())), this.configId && !this.sessionId ? s.append("configuration_id", encodeURIComponent(this.configId)) : this.slug && this.clientId && !this.sessionId && (s.append("slug", encodeURIComponent(this.slug)), s.append("client_id", encodeURIComponent(this.clientId)));
|
|
303
|
+
const o = this.schedulerStore.get("rescheduleBookingId");
|
|
304
|
+
o && s.append("booking_id", encodeURIComponent(o));
|
|
305
|
+
const u = s.toString(), m = `/v3/scheduling/availability${u ? `?${u}` : ""}`, c = this.getHeaders(), g = await this.makeAPIRequest(decodeURIComponent(m), "GET", void 0, c);
|
|
306
|
+
if ("error" in g) {
|
|
302
307
|
this.schedulerStore.set("availability", []), this.schedulerStore.set("isLoading", !1);
|
|
303
|
-
const
|
|
304
|
-
let
|
|
305
|
-
if (
|
|
306
|
-
const
|
|
307
|
-
|
|
308
|
+
const l = (f = g.error) == null ? void 0 : f.type;
|
|
309
|
+
let v = g.error;
|
|
310
|
+
if (l && l in this.errors.api(d.t("getAvailabilityErrorTitle"))) {
|
|
311
|
+
const S = this.getErrorMessage(v);
|
|
312
|
+
v = this.errors.api(d.t("getAvailabilityErrorTitle"))[l](S);
|
|
308
313
|
}
|
|
309
|
-
return { error:
|
|
314
|
+
return { error: v };
|
|
310
315
|
}
|
|
311
|
-
if ("data" in
|
|
312
|
-
const
|
|
313
|
-
...
|
|
314
|
-
start_time: new Date(
|
|
315
|
-
end_time: new Date(
|
|
316
|
-
}))) || []).filter((
|
|
317
|
-
this.schedulerStore.set("availability",
|
|
318
|
-
const
|
|
319
|
-
this.schedulerStore.set("availabilityOrderEmails",
|
|
316
|
+
if ("data" in g) {
|
|
317
|
+
const v = (((p = (_ = g.data) == null ? void 0 : _.time_slots) == null ? void 0 : p.map((h) => ({
|
|
318
|
+
...h,
|
|
319
|
+
start_time: new Date(h.start_time * 1e3),
|
|
320
|
+
end_time: new Date(h.end_time * 1e3)
|
|
321
|
+
}))) || []).filter((h) => h.start_time.getTime() > n);
|
|
322
|
+
this.schedulerStore.set("availability", v);
|
|
323
|
+
const S = ((I = g.data) == null ? void 0 : I.order) || [];
|
|
324
|
+
this.schedulerStore.set("availabilityOrderEmails", S);
|
|
320
325
|
}
|
|
321
|
-
return this.schedulerStore.set("isLoading", !1),
|
|
326
|
+
return this.schedulerStore.set("isLoading", !1), g;
|
|
322
327
|
}
|
|
323
328
|
async cancelBooking(e, t) {
|
|
324
329
|
var o;
|
|
@@ -331,12 +336,12 @@ class U {
|
|
|
331
336
|
if ("error" in r) {
|
|
332
337
|
this.schedulerStore.set("isLoading", !1);
|
|
333
338
|
const u = (o = r.error) == null ? void 0 : o.type;
|
|
334
|
-
let
|
|
339
|
+
let m = r.error;
|
|
335
340
|
if (u && u in this.errors.api(d.t("cancelBookingErrorTitle"))) {
|
|
336
|
-
const
|
|
337
|
-
|
|
341
|
+
const c = this.getErrorMessage(m);
|
|
342
|
+
m = this.errors.api(d.t("cancelBookingErrorTitle"))[u](c);
|
|
338
343
|
}
|
|
339
|
-
return { error:
|
|
344
|
+
return { error: m };
|
|
340
345
|
}
|
|
341
346
|
return this.schedulerStore.set("cancelledEventInfo", {
|
|
342
347
|
booking_id: e
|
|
@@ -346,42 +351,42 @@ class U {
|
|
|
346
351
|
var E;
|
|
347
352
|
if (this.schedulerStore.set("isLoading", !0), !e)
|
|
348
353
|
return { error: this.errors.component(d.t("rescheduleBookingErrorTitle")).no_booking_id() };
|
|
349
|
-
const s = this.errors.api(d.t("rescheduleBookingErrorTitle")), i = this.errors.component(d.t("rescheduleBookingErrorTitle")), { bookingInfo: n, selectedTimeslot: r, selectedTimezone: o, selectedLanguage: u } = this.schedulerStore.state, { startTime:
|
|
354
|
+
const s = this.errors.api(d.t("rescheduleBookingErrorTitle")), i = this.errors.component(d.t("rescheduleBookingErrorTitle")), { bookingInfo: n, selectedTimeslot: r, selectedTimezone: o, selectedLanguage: u } = this.schedulerStore.state, { startTime: m, endTime: c, timezone: g } = t, f = m || (r == null ? void 0 : r.start_time);
|
|
350
355
|
if (!f)
|
|
351
356
|
return { error: i.invalid_start_time('Please pass "startTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
|
|
352
|
-
const _ =
|
|
357
|
+
const _ = c || (r == null ? void 0 : r.end_time);
|
|
353
358
|
if (!_)
|
|
354
359
|
return { error: i.invalid_end_time('Please pass "endTime" in data or set "selectedTimeslot" in the defaultSchedulerState.') };
|
|
355
|
-
const
|
|
356
|
-
let
|
|
357
|
-
if (
|
|
360
|
+
const p = this.schedulerStore.get("availabilityOrderEmails");
|
|
361
|
+
let I = "";
|
|
362
|
+
if (p.length > 0) {
|
|
358
363
|
const T = (r == null ? void 0 : r.emails) || [];
|
|
359
|
-
for (let k = 0; k <
|
|
360
|
-
if (T.includes(
|
|
361
|
-
|
|
364
|
+
for (let k = 0; k < p.length; k++)
|
|
365
|
+
if (T.includes(p[k])) {
|
|
366
|
+
I = p[k];
|
|
362
367
|
break;
|
|
363
368
|
}
|
|
364
369
|
}
|
|
365
|
-
const
|
|
366
|
-
if (!
|
|
370
|
+
const l = g || o;
|
|
371
|
+
if (!l)
|
|
367
372
|
return { error: i.invalid_timezone('Please pass "timezone" in data or set "selectedTimezone" in the defaultSchedulerState.') };
|
|
368
|
-
const
|
|
373
|
+
const v = t ? t == null ? void 0 : t.primaryParticipant : n == null ? void 0 : n.primaryParticipant, S = t ? (t == null ? void 0 : t.guests) || [] : (n == null ? void 0 : n.guests) || [], h = t ? t == null ? void 0 : t.additionalFields : n == null ? void 0 : n.additionalFields, L = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", M = `/v3/scheduling/bookings/${e}${L}`, P = this.getHeaders(), y = await this.makeAPIRequest(decodeURIComponent(M), "PATCH", JSON.stringify({
|
|
369
374
|
start_time: f.getTime() / 1e3,
|
|
370
375
|
end_time: _.getTime() / 1e3,
|
|
371
|
-
timezone:
|
|
372
|
-
additional_fields:
|
|
373
|
-
guest: { ...
|
|
374
|
-
additional_guests:
|
|
375
|
-
participants:
|
|
376
|
+
timezone: l,
|
|
377
|
+
additional_fields: h,
|
|
378
|
+
guest: { ...v },
|
|
379
|
+
additional_guests: S,
|
|
380
|
+
participants: I ? [{ email: I }] : void 0,
|
|
376
381
|
email_language: this.getTwoLetterLanguageCode(u)
|
|
377
|
-
}),
|
|
382
|
+
}), P);
|
|
378
383
|
if ("error" in y) {
|
|
379
384
|
this.schedulerStore.set("isLoading", !1);
|
|
380
385
|
const T = (E = y.error) == null ? void 0 : E.type;
|
|
381
386
|
let k = y.error;
|
|
382
387
|
if (T && T in s) {
|
|
383
|
-
const
|
|
384
|
-
k = s[T](
|
|
388
|
+
const z = this.getErrorMessage(k);
|
|
389
|
+
k = s[T](z);
|
|
385
390
|
}
|
|
386
391
|
return { error: k };
|
|
387
392
|
}
|
|
@@ -399,31 +404,31 @@ class U {
|
|
|
399
404
|
return this.schedulerStore.set("isLoading", !1), y;
|
|
400
405
|
}
|
|
401
406
|
async updateBooking(e) {
|
|
402
|
-
var
|
|
407
|
+
var g;
|
|
403
408
|
this.schedulerStore.set("isLoading", !0);
|
|
404
409
|
const { bookingId: t, status: s, reason: i } = e, n = this.schedulerStore.get("organizerConfirmationSalt"), r = s === "confirmed" ? d.t("confirmBookingErrorTitle") : d.t("rejectBookingErrorTitle");
|
|
405
410
|
if (!t)
|
|
406
411
|
return { error: this.errors.component(r).no_booking_id() };
|
|
407
412
|
if (!n)
|
|
408
413
|
return { error: this.errors.component(r).no_salt() };
|
|
409
|
-
const o = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", u = `/v3/scheduling/bookings/${t}${o}`,
|
|
414
|
+
const o = !this.sessionId && this.configId ? `?configuration_id=${this.configId}` : !this.sessionId && this.slug && this.clientId ? `?slug=${this.slug}&client_id=${this.clientId}` : "", u = `/v3/scheduling/bookings/${t}${o}`, m = this.getHeaders(), c = await this.makeAPIRequest(decodeURIComponent(u), "PUT", JSON.stringify({
|
|
410
415
|
status: s,
|
|
411
416
|
cancellation_reason: i,
|
|
412
417
|
salt: n
|
|
413
|
-
}),
|
|
414
|
-
if ("error" in
|
|
418
|
+
}), m);
|
|
419
|
+
if ("error" in c) {
|
|
415
420
|
this.schedulerStore.set("isLoading", !1);
|
|
416
|
-
const f = (
|
|
417
|
-
let _ =
|
|
421
|
+
const f = (g = c.error) == null ? void 0 : g.type;
|
|
422
|
+
let _ = c.error;
|
|
418
423
|
if (f && f in this.errors.api(r)) {
|
|
419
|
-
const
|
|
420
|
-
_ = this.errors.api(r)[f](
|
|
424
|
+
const p = this.getErrorMessage(_);
|
|
425
|
+
_ = this.errors.api(r)[f](p);
|
|
421
426
|
}
|
|
422
427
|
return { error: _ };
|
|
423
428
|
}
|
|
424
|
-
return "data" in
|
|
429
|
+
return "data" in c && s === "confirmed" ? this.schedulerStore.set("confirmedEventInfo", c == null ? void 0 : c.data) : "request_id" in c && s === "cancelled" && this.schedulerStore.set("cancelledEventInfo", {
|
|
425
430
|
booking_id: t
|
|
426
|
-
}), this.schedulerStore.set("organizerConfirmationBookingId", ""), this.schedulerStore.set("isLoading", !1),
|
|
431
|
+
}), this.schedulerStore.set("organizerConfirmationBookingId", ""), this.schedulerStore.set("isLoading", !1), c;
|
|
427
432
|
}
|
|
428
433
|
}
|
|
429
434
|
function N(a = {}) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-c4e817ef.cjs");require("react");require("react-dom");const s=':host{display:block;--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;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;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{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%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}',l=s,r=class{constructor(a){e.registerInstance(this,a),this.nylasFormInputChanged=e.createEvent(this,"nylasFormInputChanged",7),this.name="textarea",this.defaultValue=void 0,this.label="",this.placeholder="",this.required=!1,this.readOnly=!1,this.autoFocus=!1,this.maxLength=255,this.type="multi_line_text",this.tooltip="",this.value="",this.error=""}componentDidLoad(){this.value=e.sanitize(this.defaultValue||"")}handleBookingFormSubmitted(a){this.validate(this.value),this.error&&a.preventDefault()}handletriggerValidation(a){this.validate(this.value),this.error&&a.preventDefault()}handleInput(a){const t=a.target;this.value=e.sanitize(t.value),this.nylasFormInputChanged.emit({value:this.value,name:this.name,error:this.error,label:this.label,type:this.type})}validate(a){this.required&&!a?this.error=`${this.label} is required.`:a.length>this.maxLength?this.error=`${this.label} cannot exceed ${this.maxLength} characters.`:this.error=""}render(){return e.h("label",{key:"fe5c08ffc334bbf3018b5d092cfa3c0dc3493366",part:"tc__label",class:{error:!!this.error}},e.h("p",{key:"7d572a5c200d968902be56c8915d8da4e27454a7"},e.h("span",{key:"ab9b1b67451ed46b4e1d6ccf9403d7cca51b6028",class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"),this.tooltip&&e.h("tooltip-component",null,e.h("info-icon",{slot:"tooltip-icon"}),e.h("span",{slot:"tooltip-content"},this.tooltip))),e.h("textarea",{key:"c71b3cc7cac22ce0d153f4c6ac57b7cd7f5732c6",name:this.name,placeholder:this.placeholder,readOnly:this.readOnly,autoFocus:this.autoFocus,value:this.value,maxLength:this.maxLength,onInput:a=>this.handleInput(a),class:{error:!!this.error},part:"tc__textarea"}),this.error&&e.h("span",{class:"error help-text"},this.error))}};r.style=l;exports.textarea_component=r;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { r as s, c as l, h as a } from "./index-
|
|
2
|
-
import { s as r } from "./index-6d9eeb53-58c8980a.js";
|
|
3
|
-
import "./index-53420959-5fc8ad2b.js";
|
|
1
|
+
import { r as s, c as l, E as r, h as a } from "./index-1322d804.js";
|
|
4
2
|
import "react";
|
|
5
3
|
import "react-dom";
|
|
6
|
-
const
|
|
4
|
+
const i = ':host{display:block;--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;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;display:flex;gap:4px;align-items:center}label .error{color:var(--nylas-error)}textarea{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%;padding:12px 16px;border-width:1;resize:vertical;border-radius:8px;font-family:var(--nylas-font-family);font-size:16px;line-height:24px}textarea:focus{outline-color:var(--nylas-primary)}textarea.error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}textarea.error::placeholder{font-weight:400}textarea::placeholder{color:var(--nylas-base-300)}textarea::-webkit-resizer{display:none}', n = i, o = class {
|
|
7
5
|
constructor(e) {
|
|
8
|
-
s(this, e), this.nylasFormInputChanged = l(this, "nylasFormInputChanged", 7), this.name = "textarea", this.defaultValue =
|
|
6
|
+
s(this, e), this.nylasFormInputChanged = l(this, "nylasFormInputChanged", 7), this.name = "textarea", this.defaultValue = void 0, this.label = "", this.placeholder = "", this.required = !1, this.readOnly = !1, this.autoFocus = !1, this.maxLength = 255, this.type = "multi_line_text", this.tooltip = "", this.value = "", this.error = "";
|
|
9
7
|
}
|
|
10
|
-
|
|
11
|
-
this.value = r(this.defaultValue);
|
|
8
|
+
componentDidLoad() {
|
|
9
|
+
this.value = r(this.defaultValue || "");
|
|
12
10
|
}
|
|
13
11
|
handleBookingFormSubmitted(e) {
|
|
14
12
|
this.validate(this.value), this.error && e.preventDefault();
|
|
15
13
|
}
|
|
14
|
+
handletriggerValidation(e) {
|
|
15
|
+
this.validate(this.value), this.error && e.preventDefault();
|
|
16
|
+
}
|
|
16
17
|
handleInput(e) {
|
|
17
18
|
const t = e.target;
|
|
18
19
|
this.value = r(t.value), this.nylasFormInputChanged.emit({
|
|
@@ -27,10 +28,10 @@ const n = ':host{display:block;--nylas-primary:#2563eb;--nylas-error:#cc4841;--n
|
|
|
27
28
|
this.required && !e ? this.error = `${this.label} is required.` : e.length > this.maxLength ? this.error = `${this.label} cannot exceed ${this.maxLength} characters.` : this.error = "";
|
|
28
29
|
}
|
|
29
30
|
render() {
|
|
30
|
-
return a("label", { key: "
|
|
31
|
+
return a("label", { key: "fe5c08ffc334bbf3018b5d092cfa3c0dc3493366", part: "tc__label", class: { error: !!this.error } }, a("p", { key: "7d572a5c200d968902be56c8915d8da4e27454a7" }, a("span", { key: "ab9b1b67451ed46b4e1d6ccf9403d7cca51b6028", class: "label" }, this.label), this.required && a("span", { class: "required" }, "*"), this.tooltip && a("tooltip-component", null, a("info-icon", { slot: "tooltip-icon" }), a("span", { slot: "tooltip-content" }, this.tooltip))), a("textarea", { key: "c71b3cc7cac22ce0d153f4c6ac57b7cd7f5732c6", name: this.name, placeholder: this.placeholder, readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, maxLength: this.maxLength, onInput: (e) => this.handleInput(e), class: { error: !!this.error }, part: "tc__textarea" }), this.error && a("span", { class: "error help-text" }, this.error));
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
|
-
o.style =
|
|
34
|
+
o.style = n;
|
|
34
35
|
export {
|
|
35
36
|
o as textarea_component
|
|
36
37
|
};
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { r as s, c as n, d, h as o, g as p } from "./index-1322d804.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const l = ".time-period-selector.sc-time-period-selector{display:grid;gap:0.5rem;grid-template-columns:auto 1fr}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector,.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector{width:116px}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector{width:84px;display:flex;align-items:center}.time-period-selector.sc-time-period-selector select-dropdown#time-period.sc-time-period-selector::part(sd_dropdown-button){width:100%}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown){width:inherit;height:100%}.time-period-selector.sc-time-period-selector input-dropdown#time-number.sc-time-period-selector::part(id_dropdown-input){border:none;border-radius:var(--nylas-border-radius-2x)}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown-input){padding:17px;gap:1rem}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown-content){width:100%;max-height:200px}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown){width:inherit}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-button){padding:1rem;gap:1rem;justify-content:space-between}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-content){width:100%;max-height:200px}", c = l, m = {
|
|
5
|
+
hours: "hour",
|
|
6
|
+
days: "day",
|
|
7
|
+
weeks: "week",
|
|
8
|
+
months: "month"
|
|
9
|
+
}, a = class {
|
|
10
|
+
constructor(r) {
|
|
11
|
+
s(this, r), this.timePeriodChanged = n(this, "timePeriodChanged", 7), this.timePeriods = ["hour", "day", "week", "month"], this.defaultSelectedPeriod = void 0, this.defaultSelectedNumber = void 0, this.selectedPeriod = this.defaultSelectedPeriod, this.selectedNumber = this.defaultSelectedNumber, this.numberOptions = this.calculateOptions(this.defaultSelectedPeriod || "hour").map((e) => ({
|
|
12
|
+
label: e.toString(),
|
|
13
|
+
value: e.toString()
|
|
14
|
+
})), this.timePeriodOptions = this.timePeriods.map((e) => ({
|
|
15
|
+
label: e,
|
|
16
|
+
value: e
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
componentDidLoad() {
|
|
20
|
+
this.selectedNumber = this.defaultSelectedNumber, this.selectedPeriod = this.defaultSelectedPeriod;
|
|
21
|
+
const r = m[this.selectedPeriod] ?? this.selectedPeriod, e = this.calculateOptions(r);
|
|
22
|
+
this.numberOptions = e.map((t) => ({
|
|
23
|
+
label: t.toString(),
|
|
24
|
+
value: t.toString()
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
calculateOptions(r) {
|
|
28
|
+
switch (r) {
|
|
29
|
+
case "hour":
|
|
30
|
+
return Array.from({ length: 23 }, (e, t) => t + 1);
|
|
31
|
+
case "minute":
|
|
32
|
+
return Array.from({ length: 13 }, (e, t) => t * 5);
|
|
33
|
+
case "day":
|
|
34
|
+
return Array.from({ length: 30 }, (e, t) => t + 1);
|
|
35
|
+
case "week":
|
|
36
|
+
return Array.from({ length: 4 }, (e, t) => t + 1);
|
|
37
|
+
case "month":
|
|
38
|
+
return Array.from({ length: 12 }, (e, t) => t + 1);
|
|
39
|
+
default:
|
|
40
|
+
return [];
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
inputOptionChangedHandler(r) {
|
|
44
|
+
d("time-period-selector", "inputOptionChangedHandler", r.detail);
|
|
45
|
+
const { value: e, name: t } = r.detail;
|
|
46
|
+
t === "time-number" && (this.selectedNumber = e ? parseInt(e) : this.defaultSelectedNumber);
|
|
47
|
+
const i = {
|
|
48
|
+
number: this.selectedNumber,
|
|
49
|
+
period: this.selectedPeriod
|
|
50
|
+
};
|
|
51
|
+
this.timePeriodChanged.emit(i);
|
|
52
|
+
}
|
|
53
|
+
nylasFormDropdownChangedHandler(r) {
|
|
54
|
+
d("time-period-selector", "nylasFormDropdownChangedHandler", r.detail);
|
|
55
|
+
const { value: e, name: t } = r.detail;
|
|
56
|
+
t === "time-period" ? (this.selectedPeriod = e, this.updateNumberOptionsAndSelectedNumber(e)) : t === "time-number" && (this.selectedNumber = parseInt(e));
|
|
57
|
+
const i = {
|
|
58
|
+
number: this.selectedNumber,
|
|
59
|
+
period: this.selectedPeriod
|
|
60
|
+
};
|
|
61
|
+
this.timePeriodChanged.emit(i);
|
|
62
|
+
}
|
|
63
|
+
updateNumberOptionsAndSelectedNumber(r) {
|
|
64
|
+
const e = this.calculateOptions(r);
|
|
65
|
+
this.numberOptions = e.map((t) => ({
|
|
66
|
+
label: t.toString(),
|
|
67
|
+
value: t.toString()
|
|
68
|
+
})), this.selectedNumber = parseInt(this.numberOptions[0].value);
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
return o("div", { key: "abc8dbfd41d9a73fb9f4d482785b6804a0149e7c", class: "time-period-selector" }, typeof this.selectedNumber == "number" && o("input-dropdown", { id: "time-number", name: "time-number", inputValue: this.selectedNumber.toString(), exportparts: "id_dropdown: tps__number-dropdown, id_dropdown-input: tps__number-dropdown-button, id_dropdown-content: tps__number-dropdown-content", options: this.numberOptions, defaultInputOption: this.numberOptions.find((r) => r.value == this.selectedNumber.toString()) }), typeof this.selectedPeriod == "string" && o("select-dropdown", { id: "time-period", name: "time-period", options: this.timePeriodOptions, exportparts: "sd_dropdown: tps__period-dropdown, sd_dropdown-button: tps__period-dropdown-button, sd_dropdown-content: tps__period-dropdown-content", pluralizedLabel: this.selectedNumber > 1 ? "s" : "", defaultSelectedOption: this.timePeriodOptions.find((r) => r.value == this.selectedPeriod), withSearch: !1 }));
|
|
72
|
+
}
|
|
73
|
+
get host() {
|
|
74
|
+
return p(this);
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
a.style = c;
|
|
78
|
+
export {
|
|
79
|
+
a as time_period_selector
|
|
80
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index-c4e817ef.cjs");require("react");require("react-dom");const s=".time-period-selector.sc-time-period-selector{display:grid;gap:0.5rem;grid-template-columns:auto 1fr}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector,.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector{border:1px solid var(--nylas-base-200);border-radius:var(--nylas-border-radius-2x)}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector{width:116px}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector{width:84px;display:flex;align-items:center}.time-period-selector.sc-time-period-selector select-dropdown#time-period.sc-time-period-selector::part(sd_dropdown-button){width:100%}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown){width:inherit;height:100%}.time-period-selector.sc-time-period-selector input-dropdown#time-number.sc-time-period-selector::part(id_dropdown-input){border:none;border-radius:var(--nylas-border-radius-2x)}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown-input){padding:17px;gap:1rem}.time-period-selector.sc-time-period-selector input-dropdown.sc-time-period-selector::part(id_dropdown-content){width:100%;max-height:200px}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown){width:inherit}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-button){padding:1rem;gap:1rem;justify-content:space-between}.time-period-selector.sc-time-period-selector select-dropdown.sc-time-period-selector::part(sd_dropdown-content){width:100%;max-height:200px}",n=s,p={hours:"hour",days:"day",weeks:"week",months:"month"},d=class{constructor(r){i.registerInstance(this,r),this.timePeriodChanged=i.createEvent(this,"timePeriodChanged",7),this.timePeriods=["hour","day","week","month"],this.defaultSelectedPeriod=void 0,this.defaultSelectedNumber=void 0,this.selectedPeriod=this.defaultSelectedPeriod,this.selectedNumber=this.defaultSelectedNumber,this.numberOptions=this.calculateOptions(this.defaultSelectedPeriod||"hour").map(e=>({label:e.toString(),value:e.toString()})),this.timePeriodOptions=this.timePeriods.map(e=>({label:e,value:e}))}componentDidLoad(){this.selectedNumber=this.defaultSelectedNumber,this.selectedPeriod=this.defaultSelectedPeriod;const r=p[this.selectedPeriod]??this.selectedPeriod,e=this.calculateOptions(r);this.numberOptions=e.map(t=>({label:t.toString(),value:t.toString()}))}calculateOptions(r){switch(r){case"hour":return Array.from({length:23},(e,t)=>t+1);case"minute":return Array.from({length:13},(e,t)=>t*5);case"day":return Array.from({length:30},(e,t)=>t+1);case"week":return Array.from({length:4},(e,t)=>t+1);case"month":return Array.from({length:12},(e,t)=>t+1);default:return[]}}inputOptionChangedHandler(r){i.debug("time-period-selector","inputOptionChangedHandler",r.detail);const{value:e,name:t}=r.detail;t==="time-number"&&(this.selectedNumber=e?parseInt(e):this.defaultSelectedNumber);const o={number:this.selectedNumber,period:this.selectedPeriod};this.timePeriodChanged.emit(o)}nylasFormDropdownChangedHandler(r){i.debug("time-period-selector","nylasFormDropdownChangedHandler",r.detail);const{value:e,name:t}=r.detail;t==="time-period"?(this.selectedPeriod=e,this.updateNumberOptionsAndSelectedNumber(e)):t==="time-number"&&(this.selectedNumber=parseInt(e));const o={number:this.selectedNumber,period:this.selectedPeriod};this.timePeriodChanged.emit(o)}updateNumberOptionsAndSelectedNumber(r){const e=this.calculateOptions(r);this.numberOptions=e.map(t=>({label:t.toString(),value:t.toString()})),this.selectedNumber=parseInt(this.numberOptions[0].value)}render(){return i.h("div",{key:"abc8dbfd41d9a73fb9f4d482785b6804a0149e7c",class:"time-period-selector"},typeof this.selectedNumber=="number"&&i.h("input-dropdown",{id:"time-number",name:"time-number",inputValue:this.selectedNumber.toString(),exportparts:"id_dropdown: tps__number-dropdown, id_dropdown-input: tps__number-dropdown-button, id_dropdown-content: tps__number-dropdown-content",options:this.numberOptions,defaultInputOption:this.numberOptions.find(r=>r.value==this.selectedNumber.toString())}),typeof this.selectedPeriod=="string"&&i.h("select-dropdown",{id:"time-period",name:"time-period",options:this.timePeriodOptions,exportparts:"sd_dropdown: tps__period-dropdown, sd_dropdown-button: tps__period-dropdown-button, sd_dropdown-content: tps__period-dropdown-content",pluralizedLabel:this.selectedNumber>1?"s":"",defaultSelectedOption:this.timePeriodOptions.find(r=>r.value==this.selectedPeriod),withSearch:!1}))}get host(){return i.getElement(this)}};d.style=n;exports.time_period_selector=d;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("./index-c4e817ef.cjs");require("react");require("react-dom");const s=".sc-translate-icon-h{display:flex}",i=s,e=class{constructor(t){C.registerInstance(this,t),this.width="16",this.height="16"}render(){return C.h("svg",{key:"6db13b0c797d975d04f0bd2d3efd8bcf8856739b",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 20 20",fill:"none"},C.h("path",{key:"33eaa0513504f0853c5cc7f74a9da40b5de59614",fill:"currentColor",d:"M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z"}))}};e.style=i;exports.translate_icon=e;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as s, h as C } from "./index-1322d804.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
const
|
|
4
|
+
const e = ".sc-translate-icon-h{display:flex}", i = e, o = class {
|
|
5
5
|
constructor(t) {
|
|
6
|
-
|
|
6
|
+
s(this, t), this.width = "16", this.height = "16";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return C("svg", { key: "
|
|
9
|
+
return C("svg", { key: "6db13b0c797d975d04f0bd2d3efd8bcf8856739b", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 20 20", fill: "none" }, C("path", { key: "33eaa0513504f0853c5cc7f74a9da40b5de59614", fill: "currentColor", d: "M14.1663 4.02867C14.4267 4.12081 14.563 4.40654 14.4709 4.66685C14.3501 5.00788 14.2182 5.4771 14.1178 5.86047C14.6877 5.77587 15.2665 5.65653 15.8867 5.51288C16.1557 5.45058 16.4243 5.61815 16.4866 5.88717C16.5489 6.15619 16.3814 6.42479 16.1123 6.4871C15.339 6.66621 14.6101 6.81289 13.8717 6.90283C13.7759 7.35654 13.7014 7.77084 13.6451 8.15021C14.1202 8.04599 14.5738 8.00553 14.9996 8.02075L14.9996 8C14.9996 7.72386 15.2235 7.5 15.4996 7.5C15.7758 7.5 15.9996 7.72386 15.9996 8C15.9996 8.05657 15.9991 8.11281 15.9979 8.16871C17.1392 8.47838 17.9781 9.23987 18.3435 10.2263C18.9579 11.8853 18.1287 13.8787 15.7027 14.9569C15.4504 15.069 15.1549 14.9554 15.0427 14.7031C14.9306 14.4507 15.0442 14.1552 15.2966 14.0431C17.3705 13.1213 17.7913 11.6147 17.4057 10.5737C17.1874 9.984 16.6776 9.44916 15.9129 9.18633C15.6829 10.7237 15.021 11.9466 14.229 12.7925C14.3126 12.9656 14.3958 13.1436 14.4641 13.3151C14.5662 13.5717 14.441 13.8625 14.1844 13.9646C13.9278 14.0667 13.637 13.9415 13.5349 13.6849C13.5066 13.6137 13.4777 13.5463 13.448 13.4802C13.028 13.7794 12.5905 13.9869 12.1705 14.0835C11.5942 14.2161 10.963 14.1517 10.534 13.6942C9.88917 13.0053 9.84361 11.8611 10.2855 10.8412C10.6652 9.96479 11.4186 9.11781 12.5848 8.54034C12.6387 8.07338 12.7199 7.55894 12.8332 6.98891C12.3926 7.00755 11.9403 7.00326 11.4659 6.97127C11.1904 6.95269 10.9821 6.71428 11.0007 6.43876C11.0192 6.16325 11.2577 5.95496 11.5332 5.97353C12.0633 6.00928 12.5641 6.00772 13.0566 5.97553C13.1605 5.55444 13.3512 4.8331 13.5282 4.33317C13.6203 4.07286 13.906 3.93653 14.1663 4.02867ZM12.501 9.74109C11.8436 10.1821 11.427 10.7219 11.2031 11.2387C10.8542 12.0439 10.9881 12.716 11.2638 13.0105C11.2637 13.0104 11.2639 13.0106 11.2638 13.0105C11.3573 13.11 11.5624 13.1973 11.9463 13.109C12.2578 13.0373 12.6311 12.8571 13.0121 12.5576C12.8658 12.22 12.7272 11.8324 12.6313 11.353C12.5405 10.8996 12.4899 10.3743 12.501 9.74109ZM13.7808 11.7797C14.316 11.0956 14.759 10.1665 14.9271 9.01632C14.539 9.00681 14.1111 9.05601 13.6457 9.17854C13.605 9.19274 13.5647 9.20726 13.525 9.22209C13.4663 10.0545 13.5146 10.671 13.6118 11.1568C13.6578 11.3868 13.7156 11.5913 13.7808 11.7797ZM6.92028 5.2159C5.77942 4.88398 4.78409 5.00841 4.07616 5.21575C3.72264 5.3193 3.439 5.44393 3.24121 5.5443C3.14215 5.59457 3.0641 5.63901 3.00903 5.67212C2.98147 5.68868 2.95962 5.70244 2.9437 5.71271L2.92429 5.72542L2.91797 5.72966L2.91566 5.73123L2.91393 5.73241C2.91384 5.73249 2.91436 5.73325 2.94925 5.78397C3.23698 6.20225 3.1703 6.10548 2.91393 5.73241C2.68634 5.88881 2.62863 6.20009 2.78502 6.42767C2.94134 6.65514 3.25207 6.71313 3.47963 6.55703L3.4788 6.5576L3.48576 6.55305C3.49318 6.54826 3.50608 6.5401 3.52423 6.52919C3.56057 6.50735 3.6177 6.47463 3.69373 6.43605C3.84612 6.35872 4.07228 6.2589 4.35724 6.17544C4.92619 6.0088 5.72242 5.90898 6.64043 6.17595C7.35305 6.38517 7.66747 6.76919 7.82692 7.16112C7.98173 7.54163 8.0026 7.95751 8.00531 8.33243C7.46199 8.18407 6.79336 8.03682 6.08385 8.00744C5.04808 7.96456 3.8874 8.17096 2.87738 9.01102C1.98877 9.75011 1.78345 10.8818 2.07014 11.853C2.35713 12.8252 3.14925 13.692 4.31803 13.9348C5.22351 14.123 6.18016 13.8639 6.9599 13.5212C7.3403 13.354 7.69572 13.1594 8.0057 12.9665V13.5C8.0057 13.7761 8.22956 14 8.5057 14C8.78184 14 9.0057 13.7754 9.0057 13.4993L9.0057 8.44586C9.0058 8.05404 9.00595 7.40554 8.7532 6.78428C8.48142 6.11625 7.93342 5.51313 6.92136 5.21622L6.92028 5.2159ZM6.04249 9.00659C6.76366 9.03645 7.44769 9.209 8.0057 9.37205V11.757C7.65814 12.0182 7.13927 12.35 6.55757 12.6057C5.85264 12.9155 5.12729 13.0816 4.52148 12.9557C3.75127 12.7957 3.22322 12.2271 3.02922 11.5699C2.83491 10.9116 2.98777 10.2199 3.51683 9.77985C4.27958 9.14545 5.16917 8.97043 6.04249 9.00659Z" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
o.style = i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-c4e817ef.cjs");require("react");require("react-dom");const n=".sc-warning-icon-h{display:flex}",r=n,t=class{constructor(i){e.registerInstance(this,i),this.width="16",this.height="16"}render(){return e.h("svg",{key:"b34f130a672a27ebfdc11770c3581748b8d187e1",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"d37f2b7155b8f15d943afa13e2c975e608a5f364",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=r;exports.warning_icon=t;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as n, h as t } from "./index-
|
|
1
|
+
import { r as n, h as t } from "./index-1322d804.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
const s = ".sc-warning-icon-h{display:flex}",
|
|
4
|
+
const s = ".sc-warning-icon-h{display:flex}", r = s, e = class {
|
|
5
5
|
constructor(i) {
|
|
6
6
|
n(this, i), this.width = "16", this.height = "16";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return t("svg", { key: "
|
|
9
|
+
return t("svg", { key: "b34f130a672a27ebfdc11770c3581748b8d187e1", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "d37f2b7155b8f15d943afa13e2c975e608a5f364", 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" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
|
-
e.style =
|
|
12
|
+
e.style = r;
|
|
13
13
|
export {
|
|
14
14
|
e as warning_icon
|
|
15
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylas/react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"react": "^18.2.0",
|
|
24
24
|
"react-dom": "^18.2.0",
|
|
25
|
-
"@nylas/web-elements": "^1.1.
|
|
25
|
+
"@nylas/web-elements": "^1.1.2",
|
|
26
26
|
"@nylas/core": "^1.1.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { r as t, h as e } from "./index-5ccfd9df.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const a = ".sc-add-circle-icon-h{display:flex}", s = a, d = class {
|
|
5
|
-
constructor(c) {
|
|
6
|
-
t(this, c), this.width = "24", this.height = "25";
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
return e("svg", { key: "4faca74def1845984d79a9c427c8897dc042cbc5", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "4d62d49d03bec641d315ae11c8d45c104457a4c2", d: "M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z", fill: "currentColor" }));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
d.style = s;
|
|
13
|
-
const i = ".sc-close-icon-h{display:flex}", l = i, h = class {
|
|
14
|
-
constructor(c) {
|
|
15
|
-
t(this, c), this.width = "16", this.height = "16";
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
return e("svg", { key: "642696bb91d66a1513338618ff4b37c8a200f8a2", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "89d572c4ee75ada3f949fe031ee3c1bdad9a0c1d", "clip-path": "url(#a)" }, e("path", { key: "88acbfe075e8ad317bf82563ae0693eeb308fee5", 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: "48b82caae0d4b503f81214c4c565e51ea4dcda85" }, e("clipPath", { key: "aef52e42e4b63cbe147458ae3e775c6b21461ce2", id: "a" }, e("path", { key: "123708dbc4f4007e4280f4dc6f5f96fde24edc10", fill: "#fff", transform: "translate(.148 .054)", d: "M0 0h20v20H0z" }))));
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
h.style = l;
|
|
22
|
-
export {
|
|
23
|
-
d as add_circle_icon,
|
|
24
|
-
h as close_icon
|
|
25
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-eb33703c.cjs");require("react");require("react-dom");const a=".sc-add-circle-icon-h{display:flex}",d=a,t=class{constructor(c){e.registerInstance(this,c),this.width="24",this.height="25"}render(){return e.h("svg",{key:"4faca74def1845984d79a9c427c8897dc042cbc5",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"4d62d49d03bec641d315ae11c8d45c104457a4c2",d:"M12 2.5c5.523 0 10 4.477 10 10s-4.477 10-10 10-10-4.477-10-10 4.477-10 10-10ZM12 4a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17Zm0 3.5a.75.75 0 0 1 .75.75v3.5h3.5a.75.75 0 0 1 0 1.5h-3.5v3.5a.75.75 0 0 1-1.5 0v-3.5h-3.5a.75.75 0 0 1 0-1.5h3.5v-3.5A.75.75 0 0 1 12 7.5Z",fill:"currentColor"}))}};t.style=d;const i=".sc-close-icon-h{display:flex}",h=i,s=class{constructor(c){e.registerInstance(this,c),this.width="16",this.height="16"}render(){return e.h("svg",{key:"642696bb91d66a1513338618ff4b37c8a200f8a2",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("g",{key:"89d572c4ee75ada3f949fe031ee3c1bdad9a0c1d","clip-path":"url(#a)"},e.h("path",{key:"88acbfe075e8ad317bf82563ae0693eeb308fee5",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:"48b82caae0d4b503f81214c4c565e51ea4dcda85"},e.h("clipPath",{key:"aef52e42e4b63cbe147458ae3e775c6b21461ce2",id:"a"},e.h("path",{key:"123708dbc4f4007e4280f4dc6f5f96fde24edc10",fill:"#fff",transform:"translate(.148 .054)",d:"M0 0h20v20H0z"}))))}};s.style=h;exports.add_circle_icon=t;exports.close_icon=s;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { r, h as t } from "./index-5ccfd9df.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import "react-dom";
|
|
4
|
-
const o = ".sc-arrow-icon-h{display:flex}", s = o, i = class {
|
|
5
|
-
constructor(e) {
|
|
6
|
-
r(this, e), this.width = "15", this.height = "15";
|
|
7
|
-
}
|
|
8
|
-
render() {
|
|
9
|
-
return t("svg", { key: "fcfa18e7e77f3b53b184bc838e2a2c17ec51f148", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "26ce307ed4f23e52a93485fd79b2e618e75d85c0", d: "M5 12H19M12 5L19 12L12 19", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
10
|
-
}
|
|
11
|
-
};
|
|
12
|
-
i.style = s;
|
|
13
|
-
export {
|
|
14
|
-
i as arrow_icon
|
|
15
|
-
};
|