@nylas/react 1.0.0-prealpha1
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/LICENSE.md +22 -0
- package/README.md +3 -0
- package/dist/_commonjsHelpers-57e89916-4a3ae7d8.cjs +1 -0
- package/dist/_commonjsHelpers-57e89916-af061c86.js +19 -0
- package/dist/archive-icon_7.entry-53aede1b.js +75 -0
- package/dist/archive-icon_7.entry-8c90815a.cjs +1 -0
- package/dist/arrow-icon.entry-2867f4fb.js +15 -0
- package/dist/arrow-icon.entry-a2f53919.cjs +1 -0
- package/dist/bold-icon_3.entry-ad806730.js +35 -0
- package/dist/bold-icon_3.entry-e0bc6774.cjs +1 -0
- package/dist/calendar-cancel-icon.entry-546b7bd4.cjs +1 -0
- package/dist/calendar-cancel-icon.entry-74051835.js +15 -0
- package/dist/calendar-check-icon_3.entry-42bab0b4.js +35 -0
- package/dist/calendar-check-icon_3.entry-f5846fee.cjs +1 -0
- package/dist/calendar-icon.entry-25474b1e.cjs +1 -0
- package/dist/calendar-icon.entry-c751873f.js +15 -0
- package/dist/chevron-icon.entry-60842fb6.js +15 -0
- package/dist/chevron-icon.entry-97e4621e.cjs +1 -0
- package/dist/close-icon_2.entry-aa015993.cjs +1 -0
- package/dist/close-icon_2.entry-ef03bd27.js +25 -0
- package/dist/core-js-38e53e34.cjs +4 -0
- package/dist/core-js-a9d3b6e1.js +3297 -0
- package/dist/document-refresh-icon.entry-b27207eb.js +15 -0
- package/dist/document-refresh-icon.entry-ca2ef29e.cjs +1 -0
- package/dist/dom-68f08be9.cjs +15 -0
- package/dist/dom-86e17616.js +664 -0
- package/dist/duration-bddc4a13-05d3e3e2.cjs +1 -0
- package/dist/duration-bddc4a13-179ce826.js +41 -0
- package/dist/elements/index.d.ts +56 -0
- package/dist/elements/react-component-lib/createComponent.d.ts +10 -0
- package/dist/elements/react-component-lib/createOverlayComponent.d.ts +21 -0
- package/dist/elements/react-component-lib/index.d.ts +2 -0
- package/dist/elements/react-component-lib/interfaces.d.ts +29 -0
- package/dist/elements/react-component-lib/utils/attachProps.d.ts +9 -0
- package/dist/elements/react-component-lib/utils/case.d.ts +2 -0
- package/dist/elements/react-component-lib/utils/dev.d.ts +2 -0
- package/dist/elements/react-component-lib/utils/index.d.ts +10 -0
- package/dist/elements-60ebdb01-24595598.cjs +16494 -0
- package/dist/elements-60ebdb01-5d144002.js +27455 -0
- package/dist/flow-40ff9cea-6f8c30e2.cjs +9 -0
- package/dist/flow-40ff9cea-ee70fdf5.js +505 -0
- package/dist/focus-visible-e8093c16-28fc08a0.js +82 -0
- package/dist/focus-visible-e8093c16-f380b705.cjs +1 -0
- package/dist/forward-icon_6.entry-725d1be4.cjs +3 -0
- package/dist/forward-icon_6.entry-dc8f7235.js +955 -0
- package/dist/globe-icon.entry-796d3f48.js +15 -0
- package/dist/globe-icon.entry-918cfd35.cjs +1 -0
- package/dist/index-29d0e781.cjs +30 -0
- package/dist/index-2b85580a-bfc3ceac.cjs +7 -0
- package/dist/index-2b85580a-f9211f23.js +3238 -0
- package/dist/index-4f65b6f9.js +1489 -0
- package/dist/index.d.ts +4 -0
- package/dist/loading-icon.entry-8e49fab0.js +15 -0
- package/dist/loading-icon.entry-b2534e3e.cjs +1 -0
- package/dist/mailbox-store-0019772c-06d31a90.js +380 -0
- package/dist/mailbox-store-0019772c-d1254c5c.cjs +1 -0
- package/dist/nylas-booked-event-card_9.entry-d995d7cb.js +4567 -0
- package/dist/nylas-booked-event-card_9.entry-ea02f083.cjs +148 -0
- package/dist/nylas-if-state_3.entry-ce816adb.js +291 -0
- package/dist/nylas-if-state_3.entry-e8c831b7.cjs +1 -0
- package/dist/nylas-list-folders.entry-8134344b.js +121 -0
- package/dist/nylas-list-folders.entry-de8cca60.cjs +1 -0
- package/dist/nylas-list-threads.entry-1367fe30.js +71 -0
- package/dist/nylas-list-threads.entry-93b70a1a.cjs +1 -0
- package/dist/nylas-mailbox-pagination.entry-568ac217.js +102 -0
- package/dist/nylas-mailbox-pagination.entry-6bb0ee37.cjs +1 -0
- package/dist/nylas-mailbox-toolbar-button.entry-9214b283.js +83 -0
- package/dist/nylas-mailbox-toolbar-button.entry-d4ad5c15.cjs +1 -0
- package/dist/nylas-open-hours-picker.entry-109f13f5.js +186 -0
- package/dist/nylas-open-hours-picker.entry-2c19643f.cjs +1 -0
- package/dist/nylas-provider.entry-2cfe5f0e.js +134 -0
- package/dist/nylas-provider.entry-87fa9276.cjs +1 -0
- package/dist/nylas-scheduler.entry-6ec8e574.js +195 -0
- package/dist/nylas-scheduler.entry-b41cbf99.cjs +1 -0
- package/dist/nylas-threads-refresh.entry-6d61a689.cjs +1 -0
- package/dist/nylas-threads-refresh.entry-9111a403.js +75 -0
- package/dist/nylas-threads-search.entry-03073490.cjs +1 -0
- package/dist/nylas-threads-search.entry-2124f663.js +70 -0
- package/dist/nylas-view-thread.entry-4ecbcd78.cjs +1 -0
- package/dist/nylas-view-thread.entry-fe51c1f6.js +204 -0
- package/dist/play-icon_2.entry-8e156535.js +25 -0
- package/dist/play-icon_2.entry-cf1cbc8d.cjs +1 -0
- package/dist/property-0065dde7-83dc9cc4.cjs +23 -0
- package/dist/property-0065dde7-c57b8fa3.js +589 -0
- package/dist/react.cjs +1 -0
- package/dist/react.js +62 -0
- package/dist/refresh-icon.entry-4ddd53b0.js +15 -0
- package/dist/refresh-icon.entry-9f24e833.cjs +1 -0
- package/dist/register-component-55376f31-5eaf8954.js +105 -0
- package/dist/register-component-55376f31-8d6ddee4.cjs +1 -0
- package/dist/scheduler-store-5a39585a-117668e3.js +173 -0
- package/dist/scheduler-store-5a39585a-2c848bec.cjs +1 -0
- package/dist/translate-icon.entry-0cd24de4.cjs +1 -0
- package/dist/translate-icon.entry-db2cdf1d.js +15 -0
- package/dist/utils-5074a070-ce33ee6b.js +119 -0
- package/dist/utils-5074a070-d5ba6add.cjs +2 -0
- package/package.json +47 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
const w = /* @__PURE__ */ new Date(), h = /* @__PURE__ */ new Date();
|
|
2
|
+
function M(e, l, o, D) {
|
|
3
|
+
function u(n) {
|
|
4
|
+
return e(n = arguments.length === 0 ? /* @__PURE__ */ new Date() : /* @__PURE__ */ new Date(+n)), n;
|
|
5
|
+
}
|
|
6
|
+
return u.floor = (n) => (e(n = /* @__PURE__ */ new Date(+n)), n), u.ceil = (n) => (e(n = new Date(n - 1)), l(n, 1), e(n), n), u.round = (n) => {
|
|
7
|
+
const r = u(n), i = u.ceil(n);
|
|
8
|
+
return n - r < i - n ? r : i;
|
|
9
|
+
}, u.offset = (n, r) => (l(n = /* @__PURE__ */ new Date(+n), r == null ? 1 : Math.floor(r)), n), u.range = (n, r, i) => {
|
|
10
|
+
const c = [];
|
|
11
|
+
if (n = u.ceil(n), i = i == null ? 1 : Math.floor(i), !(n < r) || !(i > 0))
|
|
12
|
+
return c;
|
|
13
|
+
let m;
|
|
14
|
+
do
|
|
15
|
+
c.push(m = /* @__PURE__ */ new Date(+n)), l(n, i), e(n);
|
|
16
|
+
while (m < n && n < r);
|
|
17
|
+
return c;
|
|
18
|
+
}, u.filter = (n) => M((r) => {
|
|
19
|
+
if (r >= r)
|
|
20
|
+
for (; e(r), !n(r); )
|
|
21
|
+
r.setTime(r - 1);
|
|
22
|
+
}, (r, i) => {
|
|
23
|
+
if (r >= r)
|
|
24
|
+
if (i < 0)
|
|
25
|
+
for (; ++i <= 0; )
|
|
26
|
+
for (; l(r, -1), !n(r); )
|
|
27
|
+
;
|
|
28
|
+
else
|
|
29
|
+
for (; --i >= 0; )
|
|
30
|
+
for (; l(r, 1), !n(r); )
|
|
31
|
+
;
|
|
32
|
+
}), o && (u.count = (n, r) => (w.setTime(+n), h.setTime(+r), e(w), e(h), Math.floor(o(w, h))), u.every = (n) => (n = Math.floor(n), !isFinite(n) || !(n > 0) ? null : n > 1 ? u.filter(D ? (r) => D(r) % n === 0 : (r) => u.count(0, r) % n === 0) : u)), u;
|
|
33
|
+
}
|
|
34
|
+
const g = 1e3, v = g * 60, T = v * 60, y = T * 24;
|
|
35
|
+
export {
|
|
36
|
+
g as a,
|
|
37
|
+
T as b,
|
|
38
|
+
y as c,
|
|
39
|
+
v as d,
|
|
40
|
+
M as t
|
|
41
|
+
};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { JSX } from '@nylas/web-elements';
|
|
3
|
+
export declare const ArchiveIcon: import("react").ForwardRefExoticComponent<JSX.ArchiveIcon & Omit<import("react").HTMLAttributes<HTMLArchiveIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLArchiveIconElement>>;
|
|
4
|
+
export declare const ArrowIcon: import("react").ForwardRefExoticComponent<JSX.ArrowIcon & Omit<import("react").HTMLAttributes<HTMLArrowIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLArrowIconElement>>;
|
|
5
|
+
export declare const BoldIcon: import("react").ForwardRefExoticComponent<JSX.BoldIcon & Omit<import("react").HTMLAttributes<HTMLBoldIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLBoldIconElement>>;
|
|
6
|
+
export declare const CalendarCancelIcon: import("react").ForwardRefExoticComponent<JSX.CalendarCancelIcon & Omit<import("react").HTMLAttributes<HTMLCalendarCancelIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalendarCancelIconElement>>;
|
|
7
|
+
export declare const CalendarCheckIcon: import("react").ForwardRefExoticComponent<JSX.CalendarCheckIcon & Omit<import("react").HTMLAttributes<HTMLCalendarCheckIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalendarCheckIconElement>>;
|
|
8
|
+
export declare const CalendarIcon: import("react").ForwardRefExoticComponent<JSX.CalendarIcon & Omit<import("react").HTMLAttributes<HTMLCalendarIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCalendarIconElement>>;
|
|
9
|
+
export declare const CheckmarkCircleIcon: import("react").ForwardRefExoticComponent<JSX.CheckmarkCircleIcon & Omit<import("react").HTMLAttributes<HTMLCheckmarkCircleIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCheckmarkCircleIconElement>>;
|
|
10
|
+
export declare const ChevronIcon: import("react").ForwardRefExoticComponent<JSX.ChevronIcon & Omit<import("react").HTMLAttributes<HTMLChevronIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLChevronIconElement>>;
|
|
11
|
+
export declare const CloseIcon: import("react").ForwardRefExoticComponent<JSX.CloseIcon & Omit<import("react").HTMLAttributes<HTMLCloseIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLCloseIconElement>>;
|
|
12
|
+
export declare const DocumentRefreshIcon: import("react").ForwardRefExoticComponent<JSX.DocumentRefreshIcon & Omit<import("react").HTMLAttributes<HTMLDocumentRefreshIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLDocumentRefreshIconElement>>;
|
|
13
|
+
export declare const FolderIcon: import("react").ForwardRefExoticComponent<JSX.FolderIcon & Omit<import("react").HTMLAttributes<HTMLFolderIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLFolderIconElement>>;
|
|
14
|
+
export declare const ForwardIcon: import("react").ForwardRefExoticComponent<JSX.ForwardIcon & Omit<import("react").HTMLAttributes<HTMLForwardIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLForwardIconElement>>;
|
|
15
|
+
export declare const GlobeIcon: import("react").ForwardRefExoticComponent<JSX.GlobeIcon & Omit<import("react").HTMLAttributes<HTMLGlobeIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLGlobeIconElement>>;
|
|
16
|
+
export declare const InboxIcon: import("react").ForwardRefExoticComponent<JSX.InboxIcon & Omit<import("react").HTMLAttributes<HTMLInboxIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLInboxIconElement>>;
|
|
17
|
+
export declare const ItalicIcon: import("react").ForwardRefExoticComponent<JSX.ItalicIcon & Omit<import("react").HTMLAttributes<HTMLItalicIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLItalicIconElement>>;
|
|
18
|
+
export declare const LoadingIcon: import("react").ForwardRefExoticComponent<JSX.LoadingIcon & Omit<import("react").HTMLAttributes<HTMLLoadingIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLLoadingIconElement>>;
|
|
19
|
+
export declare const NylasBookedEventCard: import("react").ForwardRefExoticComponent<JSX.NylasBookedEventCard & Omit<import("react").HTMLAttributes<HTMLNylasBookedEventCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasBookedEventCardElement>>;
|
|
20
|
+
export declare const NylasBookingForm: import("react").ForwardRefExoticComponent<JSX.NylasBookingForm & Omit<import("react").HTMLAttributes<HTMLNylasBookingFormElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasBookingFormElement>>;
|
|
21
|
+
export declare const NylasCancelledEventCard: import("react").ForwardRefExoticComponent<JSX.NylasCancelledEventCard & Omit<import("react").HTMLAttributes<HTMLNylasCancelledEventCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasCancelledEventCardElement>>;
|
|
22
|
+
export declare const NylasComposer: import("react").ForwardRefExoticComponent<JSX.NylasComposer & Omit<import("react").HTMLAttributes<HTMLNylasComposerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasComposerElement>>;
|
|
23
|
+
export declare const NylasDatePicker: import("react").ForwardRefExoticComponent<JSX.NylasDatePicker & Omit<import("react").HTMLAttributes<HTMLNylasDatePickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasDatePickerElement>>;
|
|
24
|
+
export declare const NylasIfState: import("react").ForwardRefExoticComponent<JSX.NylasIfState & Omit<import("react").HTMLAttributes<HTMLNylasIfStateElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasIfStateElement>>;
|
|
25
|
+
export declare const NylasListFolders: import("react").ForwardRefExoticComponent<JSX.NylasListFolders & Omit<import("react").HTMLAttributes<HTMLNylasListFoldersElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasListFoldersElement>>;
|
|
26
|
+
export declare const NylasListThreads: import("react").ForwardRefExoticComponent<JSX.NylasListThreads & Omit<import("react").HTMLAttributes<HTMLNylasListThreadsElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasListThreadsElement>>;
|
|
27
|
+
export declare const NylasLocaleSwitch: import("react").ForwardRefExoticComponent<JSX.NylasLocaleSwitch & Omit<import("react").HTMLAttributes<HTMLNylasLocaleSwitchElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasLocaleSwitchElement>>;
|
|
28
|
+
export declare const NylasLogin: import("react").ForwardRefExoticComponent<JSX.NylasLogin & Omit<import("react").HTMLAttributes<HTMLNylasLoginElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasLoginElement>>;
|
|
29
|
+
export declare const NylasLogo: import("react").ForwardRefExoticComponent<JSX.NylasLogo & Omit<import("react").HTMLAttributes<HTMLNylasLogoElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasLogoElement>>;
|
|
30
|
+
export declare const NylasMailbox: import("react").ForwardRefExoticComponent<JSX.NylasMailbox & Omit<import("react").HTMLAttributes<HTMLNylasMailboxElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasMailboxElement>>;
|
|
31
|
+
export declare const NylasMailboxPagination: import("react").ForwardRefExoticComponent<JSX.NylasMailboxPagination & Omit<import("react").HTMLAttributes<HTMLNylasMailboxPaginationElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasMailboxPaginationElement>>;
|
|
32
|
+
export declare const NylasMailboxToolbarButton: import("react").ForwardRefExoticComponent<JSX.NylasMailboxToolbarButton & Omit<import("react").HTMLAttributes<HTMLNylasMailboxToolbarButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasMailboxToolbarButtonElement>>;
|
|
33
|
+
export declare const NylasNotification: import("react").ForwardRefExoticComponent<JSX.NylasNotification & Omit<import("react").HTMLAttributes<HTMLNylasNotificationElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasNotificationElement>>;
|
|
34
|
+
export declare const NylasOpenHoursPicker: import("react").ForwardRefExoticComponent<JSX.NylasOpenHoursPicker & Omit<import("react").HTMLAttributes<HTMLNylasOpenHoursPickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasOpenHoursPickerElement>>;
|
|
35
|
+
export declare const NylasProvider: import("react").ForwardRefExoticComponent<JSX.NylasProvider & Omit<import("react").HTMLAttributes<HTMLNylasProviderElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasProviderElement>>;
|
|
36
|
+
export declare const NylasScheduler: import("react").ForwardRefExoticComponent<JSX.NylasScheduler & Omit<import("react").HTMLAttributes<HTMLNylasSchedulerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasSchedulerElement>>;
|
|
37
|
+
export declare const NylasSelectedEventCard: import("react").ForwardRefExoticComponent<JSX.NylasSelectedEventCard & Omit<import("react").HTMLAttributes<HTMLNylasSelectedEventCardElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasSelectedEventCardElement>>;
|
|
38
|
+
export declare const NylasSummarizeMessageButton: import("react").ForwardRefExoticComponent<JSX.NylasSummarizeMessageButton & Omit<import("react").HTMLAttributes<HTMLNylasSummarizeMessageButtonElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasSummarizeMessageButtonElement>>;
|
|
39
|
+
export declare const NylasThreadsRefresh: import("react").ForwardRefExoticComponent<JSX.NylasThreadsRefresh & Omit<import("react").HTMLAttributes<HTMLNylasThreadsRefreshElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasThreadsRefreshElement>>;
|
|
40
|
+
export declare const NylasThreadsSearch: import("react").ForwardRefExoticComponent<JSX.NylasThreadsSearch & Omit<import("react").HTMLAttributes<HTMLNylasThreadsSearchElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasThreadsSearchElement>>;
|
|
41
|
+
export declare const NylasTimeslotPicker: import("react").ForwardRefExoticComponent<JSX.NylasTimeslotPicker & Omit<import("react").HTMLAttributes<HTMLNylasTimeslotPickerElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasTimeslotPickerElement>>;
|
|
42
|
+
export declare const NylasViewEmail: import("react").ForwardRefExoticComponent<JSX.NylasViewEmail & Omit<import("react").HTMLAttributes<HTMLNylasViewEmailElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasViewEmailElement>>;
|
|
43
|
+
export declare const NylasViewThread: import("react").ForwardRefExoticComponent<JSX.NylasViewThread & Omit<import("react").HTMLAttributes<HTMLNylasViewThreadElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLNylasViewThreadElement>>;
|
|
44
|
+
export declare const PeopleIcon: import("react").ForwardRefExoticComponent<JSX.PeopleIcon & Omit<import("react").HTMLAttributes<HTMLPeopleIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPeopleIconElement>>;
|
|
45
|
+
export declare const PlayIcon: import("react").ForwardRefExoticComponent<JSX.PlayIcon & Omit<import("react").HTMLAttributes<HTMLPlayIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLPlayIconElement>>;
|
|
46
|
+
export declare const RefreshIcon: import("react").ForwardRefExoticComponent<JSX.RefreshIcon & Omit<import("react").HTMLAttributes<HTMLRefreshIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLRefreshIconElement>>;
|
|
47
|
+
export declare const ReplyAllIcon: import("react").ForwardRefExoticComponent<JSX.ReplyAllIcon & Omit<import("react").HTMLAttributes<HTMLReplyAllIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLReplyAllIconElement>>;
|
|
48
|
+
export declare const ReplyIcon: import("react").ForwardRefExoticComponent<JSX.ReplyIcon & Omit<import("react").HTMLAttributes<HTMLReplyIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLReplyIconElement>>;
|
|
49
|
+
export declare const SentIcon: import("react").ForwardRefExoticComponent<JSX.SentIcon & Omit<import("react").HTMLAttributes<HTMLSentIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSentIconElement>>;
|
|
50
|
+
export declare const SpamIcon: import("react").ForwardRefExoticComponent<JSX.SpamIcon & Omit<import("react").HTMLAttributes<HTMLSpamIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLSpamIconElement>>;
|
|
51
|
+
export declare const StarIcon: import("react").ForwardRefExoticComponent<JSX.StarIcon & Omit<import("react").HTMLAttributes<HTMLStarIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLStarIconElement>>;
|
|
52
|
+
export declare const StopIcon: import("react").ForwardRefExoticComponent<JSX.StopIcon & Omit<import("react").HTMLAttributes<HTMLStopIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLStopIconElement>>;
|
|
53
|
+
export declare const TranslateIcon: import("react").ForwardRefExoticComponent<JSX.TranslateIcon & Omit<import("react").HTMLAttributes<HTMLTranslateIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLTranslateIconElement>>;
|
|
54
|
+
export declare const TrashIcon: import("react").ForwardRefExoticComponent<JSX.TrashIcon & Omit<import("react").HTMLAttributes<HTMLTrashIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLTrashIconElement>>;
|
|
55
|
+
export declare const UnderlineIcon: import("react").ForwardRefExoticComponent<JSX.UnderlineIcon & Omit<import("react").HTMLAttributes<HTMLUnderlineIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLUnderlineIconElement>>;
|
|
56
|
+
export declare const WarningIcon: import("react").ForwardRefExoticComponent<JSX.WarningIcon & Omit<import("react").HTMLAttributes<HTMLWarningIconElement>, "style"> & import("./react-component-lib/interfaces").StyleReactProps & import("react").RefAttributes<HTMLWarningIconElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface HTMLStencilElement extends HTMLElement {
|
|
3
|
+
componentOnReady(): Promise<this>;
|
|
4
|
+
}
|
|
5
|
+
interface StencilReactInternalProps<ElementType> extends React.HTMLAttributes<ElementType> {
|
|
6
|
+
forwardedRef: React.RefObject<ElementType>;
|
|
7
|
+
ref?: React.Ref<any>;
|
|
8
|
+
}
|
|
9
|
+
export declare const createReactComponent: <PropType, ElementType extends HTMLStencilElement, ContextStateType = {}, ExpandedPropsTypes = {}>(tagName: string, ReactComponentContext?: React.Context<ContextStateType> | undefined, manipulatePropsFunction?: ((originalProps: StencilReactInternalProps<ElementType>, propsToPass: any) => ExpandedPropsTypes) | undefined, defineCustomElement?: () => void) => React.ForwardRefExoticComponent<React.PropsWithoutRef<import("./utils").StencilReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { OverlayEventDetail } from './interfaces';
|
|
3
|
+
import { StencilReactForwardedRef } from './utils';
|
|
4
|
+
interface OverlayElement extends HTMLElement {
|
|
5
|
+
present: () => Promise<void>;
|
|
6
|
+
dismiss: (data?: any, role?: string | undefined) => Promise<boolean>;
|
|
7
|
+
}
|
|
8
|
+
export interface ReactOverlayProps {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
onDidDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
12
|
+
onDidPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
13
|
+
onWillDismiss?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
14
|
+
onWillPresent?: (event: CustomEvent<OverlayEventDetail>) => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const createOverlayComponent: <OverlayComponent extends object, OverlayType extends OverlayElement>(tagName: string, controller: {
|
|
17
|
+
create: (options: any) => Promise<OverlayType>;
|
|
18
|
+
}, customElement?: any) => React.ForwardRefExoticComponent<React.PropsWithoutRef<OverlayComponent & ReactOverlayProps & {
|
|
19
|
+
forwardedRef?: StencilReactForwardedRef<OverlayType> | undefined;
|
|
20
|
+
}> & React.RefAttributes<OverlayType>>;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface EventEmitter<T = any> {
|
|
2
|
+
emit: (data?: T) => CustomEvent<T>;
|
|
3
|
+
}
|
|
4
|
+
export interface StyleReactProps {
|
|
5
|
+
class?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
style?: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export interface OverlayEventDetail<T = any> {
|
|
12
|
+
data?: T;
|
|
13
|
+
role?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface OverlayInterface {
|
|
16
|
+
el: HTMLElement;
|
|
17
|
+
animated: boolean;
|
|
18
|
+
keyboardClose: boolean;
|
|
19
|
+
overlayIndex: number;
|
|
20
|
+
presented: boolean;
|
|
21
|
+
enterAnimation?: any;
|
|
22
|
+
leaveAnimation?: any;
|
|
23
|
+
didPresent: EventEmitter<void>;
|
|
24
|
+
willPresent: EventEmitter<void>;
|
|
25
|
+
willDismiss: EventEmitter<OverlayEventDetail>;
|
|
26
|
+
didDismiss: EventEmitter<OverlayEventDetail>;
|
|
27
|
+
present(): Promise<void>;
|
|
28
|
+
dismiss(data?: any, role?: string): Promise<boolean>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const attachProps: (node: HTMLElement, newProps: any, oldProps?: any) => void;
|
|
2
|
+
export declare const getClassName: (classList: DOMTokenList, newProps: any, oldProps: any) => string;
|
|
3
|
+
export declare const transformReactEventName: (eventNameSuffix: string) => string;
|
|
4
|
+
export declare const isCoveredByReact: (eventNameSuffix: string) => boolean;
|
|
5
|
+
export declare const syncEvent: (node: Element & {
|
|
6
|
+
__events?: {
|
|
7
|
+
[key: string]: ((e: Event) => any) | undefined;
|
|
8
|
+
} | undefined;
|
|
9
|
+
}, eventName: string, newEventHandler?: ((e: Event) => any) | undefined) => void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleReactProps } from '../interfaces';
|
|
3
|
+
export type StencilReactExternalProps<PropType, ElementType> = PropType & Omit<React.HTMLAttributes<ElementType>, 'style'> & StyleReactProps;
|
|
4
|
+
export type StencilReactForwardedRef<T> = ((instance: T | null) => void) | React.MutableRefObject<T | null> | null;
|
|
5
|
+
export declare const setRef: (ref: StencilReactForwardedRef<any> | React.Ref<any> | undefined, value: any) => void;
|
|
6
|
+
export declare const mergeRefs: (...refs: (StencilReactForwardedRef<any> | React.Ref<any> | undefined)[]) => React.RefCallback<any>;
|
|
7
|
+
export declare const createForwardRef: <PropType, ElementType>(ReactComponent: any, displayName: string) => React.ForwardRefExoticComponent<React.PropsWithoutRef<StencilReactExternalProps<PropType, ElementType>> & React.RefAttributes<ElementType>>;
|
|
8
|
+
export declare const defineCustomElement: (tagName: string, customElement: any) => void;
|
|
9
|
+
export * from './attachProps';
|
|
10
|
+
export * from './case';
|