@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,93 +0,0 @@
|
|
|
1
|
-
import { r as s, c as n, d as o, h as d, g as p } from "./index-5ccfd9df.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, a = {
|
|
5
|
-
hours: "hour",
|
|
6
|
-
days: "day",
|
|
7
|
-
weeks: "week",
|
|
8
|
-
months: "month"
|
|
9
|
-
}, m = class {
|
|
10
|
-
constructor(t) {
|
|
11
|
-
s(this, t), this.timePeriodChanged = n(this, "timePeriodChanged", 7), this.timePeriods = ["hour", "day", "week", "month"], this.defaultSelectedPeriod = "hour", this.defaultSelectedNumber = 1, 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
|
-
defaultSelectedPeriodChangedHandler(t) {
|
|
20
|
-
this.selectedPeriod = t;
|
|
21
|
-
const e = a[t] ?? t;
|
|
22
|
-
this.updateNumberOptionsAndSelectedNumber(e);
|
|
23
|
-
}
|
|
24
|
-
defaultSelectedNumberChangedHandler(t) {
|
|
25
|
-
this.selectedNumber = t;
|
|
26
|
-
}
|
|
27
|
-
timePeriodsChangedHandler(t) {
|
|
28
|
-
this.timePeriodOptions = t.map((e) => ({
|
|
29
|
-
label: e,
|
|
30
|
-
value: e
|
|
31
|
-
}));
|
|
32
|
-
}
|
|
33
|
-
calculateOptions(t) {
|
|
34
|
-
switch (t) {
|
|
35
|
-
case "hour":
|
|
36
|
-
return Array.from({ length: 23 }, (e, r) => r + 1);
|
|
37
|
-
case "minute":
|
|
38
|
-
return Array.from({ length: 13 }, (e, r) => r * 5);
|
|
39
|
-
case "day":
|
|
40
|
-
return Array.from({ length: 30 }, (e, r) => r + 1);
|
|
41
|
-
case "week":
|
|
42
|
-
return Array.from({ length: 4 }, (e, r) => r + 1);
|
|
43
|
-
case "month":
|
|
44
|
-
return Array.from({ length: 12 }, (e, r) => r + 1);
|
|
45
|
-
default:
|
|
46
|
-
return [];
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
inputOptionChangedHandler(t) {
|
|
50
|
-
o("time-period-selector", "inputOptionChangedHandler", t.detail);
|
|
51
|
-
const { value: e, name: r } = t.detail;
|
|
52
|
-
r === "time-number" && (this.selectedNumber = e ? parseInt(e) : this.defaultSelectedNumber);
|
|
53
|
-
const i = {
|
|
54
|
-
number: this.selectedNumber,
|
|
55
|
-
period: this.selectedPeriod
|
|
56
|
-
};
|
|
57
|
-
this.timePeriodChanged.emit(i);
|
|
58
|
-
}
|
|
59
|
-
nylasFormDropdownChangedHandler(t) {
|
|
60
|
-
o("time-period-selector", "nylasFormDropdownChangedHandler", t.detail);
|
|
61
|
-
const { value: e, name: r } = t.detail;
|
|
62
|
-
r === "time-period" ? (this.selectedPeriod = e, this.updateNumberOptionsAndSelectedNumber(e)) : r === "time-number" && (this.selectedNumber = parseInt(e));
|
|
63
|
-
const i = {
|
|
64
|
-
number: this.selectedNumber,
|
|
65
|
-
period: this.selectedPeriod
|
|
66
|
-
};
|
|
67
|
-
this.timePeriodChanged.emit(i);
|
|
68
|
-
}
|
|
69
|
-
updateNumberOptionsAndSelectedNumber(t) {
|
|
70
|
-
const e = this.calculateOptions(t);
|
|
71
|
-
this.numberOptions = e.map((r) => ({
|
|
72
|
-
label: r.toString(),
|
|
73
|
-
value: r.toString()
|
|
74
|
-
})), this.selectedNumber = parseInt(this.numberOptions[0].value);
|
|
75
|
-
}
|
|
76
|
-
render() {
|
|
77
|
-
return d("div", { key: "2e02e602c84d10f1c2ed8dc8e6a989f7ec4c22f8", class: "time-period-selector" }, d("input-dropdown", { key: "aaf9b85eb568c308385d41127c91c4e51261cb2f", 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((t) => t.value == this.selectedNumber.toString()) ?? this.numberOptions[0] }), d("select-dropdown", { key: "5537a3e02a876cbf49f5ace4c8f3bb153ed6b3ce", 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((t) => t.value == this.selectedPeriod) ?? this.timePeriodOptions[0], withSearch: !1 }));
|
|
78
|
-
}
|
|
79
|
-
get host() {
|
|
80
|
-
return p(this);
|
|
81
|
-
}
|
|
82
|
-
static get watchers() {
|
|
83
|
-
return {
|
|
84
|
-
defaultSelectedPeriod: ["defaultSelectedPeriodChangedHandler"],
|
|
85
|
-
defaultSelectedNumber: ["defaultSelectedNumberChangedHandler"],
|
|
86
|
-
timePeriods: ["timePeriodsChangedHandler"]
|
|
87
|
-
};
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
m.style = c;
|
|
91
|
-
export {
|
|
92
|
-
m as time_period_selector
|
|
93
|
-
};
|