@nylas/react 0.0.0-canary-20240925163706
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 +111 -0
- package/dist/add-circle-icon_2.entry-19a0fe6b.js +25 -0
- package/dist/add-circle-icon_2.entry-6f0ef50b.cjs +1 -0
- package/dist/archive-icon.entry-7caa062b.js +15 -0
- package/dist/archive-icon.entry-d9a39415.cjs +1 -0
- package/dist/arrow-icon.entry-29ce2105.cjs +1 -0
- package/dist/arrow-icon.entry-ab601786.js +15 -0
- package/dist/bold-icon.entry-6ff126e7.cjs +1 -0
- package/dist/bold-icon.entry-e389dd6a.js +15 -0
- package/dist/button-component_2.entry-06af034d.js +26 -0
- package/dist/button-component_2.entry-837792bd.cjs +1 -0
- package/dist/calendar-agenda-fill-icon_51.entry-6c5c6fd4.js +5336 -0
- package/dist/calendar-agenda-fill-icon_51.entry-aaa927bb.cjs +7 -0
- package/dist/calendar-cancel-icon.entry-bf97fa74.js +15 -0
- package/dist/calendar-cancel-icon.entry-da33711a.cjs +1 -0
- package/dist/calendar-check-icon_2.entry-0fcc2bd1.cjs +1 -0
- package/dist/calendar-check-icon_2.entry-e9709591.js +25 -0
- package/dist/calendar-icon.entry-056c8caf.cjs +1 -0
- package/dist/calendar-icon.entry-70cca97a.js +15 -0
- package/dist/checkbox-component_2.entry-88af9f01.js +79 -0
- package/dist/checkbox-component_2.entry-cf19cd62.cjs +1 -0
- package/dist/chevron-icon_3.entry-1c22f6d3.js +143 -0
- package/dist/chevron-icon_3.entry-85d098ed.cjs +1 -0
- package/dist/clock-icon_4.entry-5edf8fcd.js +45 -0
- package/dist/clock-icon_4.entry-7b892d79.cjs +1 -0
- package/dist/constants-c31dccfe-54f255f4.cjs +15 -0
- package/dist/constants-c31dccfe-93b0694c.js +3883 -0
- package/dist/copy-icon.entry-b3b8e543.js +15 -0
- package/dist/copy-icon.entry-fcd2c006.cjs +1 -0
- package/dist/core-js-38e53e34.cjs +4 -0
- package/dist/core-js-a9d3b6e1.js +3297 -0
- package/dist/delete-icon.entry-9745ae8b.cjs +1 -0
- package/dist/delete-icon.entry-f982c1a7.js +15 -0
- package/dist/document-refresh-icon.entry-5a30a275.cjs +1 -0
- package/dist/document-refresh-icon.entry-defaaba2.js +15 -0
- package/dist/dom-68f08be9.cjs +15 -0
- package/dist/dom-86e17616.js +664 -0
- package/dist/elements/index.d.ts +128 -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/feedbackSync-ab657d65-b98458dc.cjs +448 -0
- package/dist/feedbackSync-ab657d65-d6521095.js +6035 -0
- package/dist/folder-icon.entry-08cf370b.js +15 -0
- package/dist/folder-icon.entry-425f61ef.cjs +1 -0
- package/dist/forward-icon.entry-4acbada4.js +15 -0
- package/dist/forward-icon.entry-7062edbf.cjs +1 -0
- package/dist/globe-icon.entry-51e847a3.js +15 -0
- package/dist/globe-icon.entry-b779a059.cjs +1 -0
- package/dist/google-logo-icon_4.entry-96a8caee.cjs +1 -0
- package/dist/google-logo-icon_4.entry-c44f16cc.js +715 -0
- package/dist/inbox-icon.entry-04d81697.cjs +1 -0
- package/dist/inbox-icon.entry-6e3a9428.js +15 -0
- package/dist/index-87381561.cjs +81 -0
- package/dist/index-995dd3b3.js +12865 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.es-b475d61f-f250d992.cjs +7 -0
- package/dist/index.es-b475d61f-f52875ad.js +3129 -0
- package/dist/info-icon_2.entry-c3f4b245.js +34 -0
- package/dist/info-icon_2.entry-d733f421.cjs +1 -0
- package/dist/input-color-picker.entry-02e48131.js +48 -0
- package/dist/input-color-picker.entry-516445b9.cjs +1 -0
- package/dist/input-component.entry-5bb8197a.cjs +1 -0
- package/dist/input-component.entry-dbff4e12.js +70 -0
- package/dist/input-dropdown.entry-7b40f8a7.cjs +1 -0
- package/dist/input-dropdown.entry-cc4182c4.js +134 -0
- package/dist/italic-icon.entry-494a04f1.js +15 -0
- package/dist/italic-icon.entry-bd268b46.cjs +1 -0
- package/dist/multi-select-dropdown.entry-55f7dd99.cjs +1 -0
- package/dist/multi-select-dropdown.entry-b9ac9a80.js +95 -0
- package/dist/nylas-booked-event-card_12.entry-a1048d4e.cjs +1 -0
- package/dist/nylas-booked-event-card_12.entry-ac8f1a11.js +1139 -0
- package/dist/nylas-form-card.entry-9957f25c.cjs +1 -0
- package/dist/nylas-form-card.entry-9ec44108.js +57 -0
- package/dist/nylas-if-state.entry-934980c1.js +94 -0
- package/dist/nylas-if-state.entry-f7087bb0.cjs +1 -0
- package/dist/nylas-login.entry-074778e6.cjs +1 -0
- package/dist/nylas-login.entry-17a6788a.js +73 -0
- package/dist/nylas-provider.entry-0edfffb0.cjs +1 -0
- package/dist/nylas-provider.entry-58e44ef6.js +264 -0
- package/dist/nylas-reminder-emails.entry-0129ea1f.cjs +4 -0
- package/dist/nylas-reminder-emails.entry-dec904fb.js +168 -0
- package/dist/nylas-reminder-time_2.entry-48b85638.js +108 -0
- package/dist/nylas-reminder-time_2.entry-6d8982d9.cjs +1 -0
- package/dist/nylas-scheduler-editor.entry-a913f2b3.js +1447 -0
- package/dist/nylas-scheduler-editor.entry-b293366d.cjs +2 -0
- package/dist/nylas-scheduling.entry-29b473ef.js +400 -0
- package/dist/nylas-scheduling.entry-5d751778.cjs +1 -0
- package/dist/nylas-time-window-picker.entry-aa613b4d.cjs +1 -0
- package/dist/nylas-time-window-picker.entry-d2e2210e.js +316 -0
- package/dist/person-icon.entry-11852b43.cjs +1 -0
- package/dist/person-icon.entry-767695db.js +15 -0
- package/dist/play-icon.entry-125d062f.cjs +1 -0
- package/dist/play-icon.entry-9e385af9.js +15 -0
- package/dist/react.cjs +1 -0
- package/dist/react.js +136 -0
- package/dist/refresh-icon.entry-13e06ddd.cjs +1 -0
- package/dist/refresh-icon.entry-339c1223.js +15 -0
- package/dist/register-component-679c1308-0b6682e1.cjs +1 -0
- package/dist/register-component-679c1308-3b561946.js +109 -0
- package/dist/reply-all-icon.entry-e56e8608.cjs +1 -0
- package/dist/reply-all-icon.entry-f82e7b24.js +15 -0
- package/dist/reply-icon.entry-319e75df.js +15 -0
- package/dist/reply-icon.entry-ebb08667.cjs +1 -0
- package/dist/scheduler-config-store-2a3b403d-aed2458a.cjs +1 -0
- package/dist/scheduler-config-store-2a3b403d-f5b7b06f.js +27 -0
- package/dist/scheduler-store-908886c8-75b1f2d8.js +474 -0
- package/dist/scheduler-store-908886c8-9c388312.cjs +1 -0
- package/dist/sent-icon.entry-2f7a8e18.js +15 -0
- package/dist/sent-icon.entry-393a90a3.cjs +1 -0
- package/dist/spam-icon.entry-d7853085.cjs +1 -0
- package/dist/spam-icon.entry-de7c7233.js +15 -0
- package/dist/star-icon.entry-c8fa29e1.cjs +1 -0
- package/dist/star-icon.entry-cfb5c8e5.js +15 -0
- package/dist/stop-icon.entry-c6e9fd7f.js +15 -0
- package/dist/stop-icon.entry-e5415d24.cjs +1 -0
- package/dist/textarea-component.entry-6f80f914.js +37 -0
- package/dist/textarea-component.entry-d46ad4ac.cjs +1 -0
- package/dist/time-period-selector.entry-2eaf3ddb.cjs +1 -0
- package/dist/time-period-selector.entry-f8be5854.js +80 -0
- package/dist/translate-icon.entry-dc151da3.cjs +1 -0
- package/dist/translate-icon.entry-ffb6d5bf.js +15 -0
- package/dist/trash-fill-icon.entry-063b2e26.cjs +1 -0
- package/dist/trash-fill-icon.entry-a9966957.js +15 -0
- package/dist/underline-icon.entry-b992a0fc.js +15 -0
- package/dist/underline-icon.entry-c77e97df.cjs +1 -0
- package/dist/warning-icon.entry-0cae2440.cjs +1 -0
- package/dist/warning-icon.entry-28c1b03b.js +15 -0
- package/package.json +50 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
----
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2014-2015 InboxApp, Inc. and Contributors
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# Nylas React Components
|
|
2
|
+
|
|
3
|
+
React components for Nylas Scheduler
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## Requirements
|
|
8
|
+
|
|
9
|
+
- [Node.js](https://nodejs.org/en/) v20 or higher
|
|
10
|
+
- [React.js](https://react.dev/) v18 or higher
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
Install Nylas React Components via npm:
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install @nylas/react@latest
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
or yarn
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
yarn add @nylas/react@latest
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Getting Started
|
|
27
|
+
|
|
28
|
+
The following example adds the Nylas Scheduler Editor and Scheduling components to your React app.
|
|
29
|
+
|
|
30
|
+
> ⚠️ **Important:** Make sure to replace the `NYLAS_CLIENT_ID` with your Nylas Client ID. Your Nylas Client ID can be found in your app's Overview page on the [Nylas Dashboard](https://dashboard-v3.nylas.com).
|
|
31
|
+
|
|
32
|
+
### Adding the Components
|
|
33
|
+
|
|
34
|
+
```jsx
|
|
35
|
+
import { BrowserRouter, Route, Routes } from 'react-router-dom';
|
|
36
|
+
import { NylasSchedulerEditor, NylasScheduling } from '@nylas/react';
|
|
37
|
+
|
|
38
|
+
function App() {
|
|
39
|
+
// Get the configuration ID from the URL query string
|
|
40
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
41
|
+
const configId = urlParams.get('config_id') || '';
|
|
42
|
+
|
|
43
|
+
return (
|
|
44
|
+
<BrowserRouter>
|
|
45
|
+
<Routes>
|
|
46
|
+
<Route
|
|
47
|
+
path="/"
|
|
48
|
+
element={
|
|
49
|
+
<div>
|
|
50
|
+
<a href="/scheduler-editor" className="button">
|
|
51
|
+
View Scheduler Editor
|
|
52
|
+
</a>
|
|
53
|
+
<NylasScheduling configurationId={configId} schedulerApiUrl="https://api.us.nylas.com" />
|
|
54
|
+
</div>
|
|
55
|
+
}
|
|
56
|
+
/>
|
|
57
|
+
<Route
|
|
58
|
+
path="/scheduler-editor"
|
|
59
|
+
element={
|
|
60
|
+
<div>
|
|
61
|
+
<NylasSchedulerEditor
|
|
62
|
+
schedulerPreviewLink={`${window.location.origin}/?config_id={config.id}`}
|
|
63
|
+
nylasSessionsConfig={{
|
|
64
|
+
clientId: 'NYLAS_CLIENT_ID', // Replace with your Nylas client ID from the previous
|
|
65
|
+
redirectUri: `${window.location.origin}/scheduler-editor`,
|
|
66
|
+
domain: 'https://api.us.nylas.com/v3', // or 'https://api.eu.nylas.com/v3' for EU data center
|
|
67
|
+
hosted: true,
|
|
68
|
+
accessType: 'offline',
|
|
69
|
+
}}
|
|
70
|
+
defaultSchedulerConfigState={{
|
|
71
|
+
selectedConfiguration: {
|
|
72
|
+
requires_session_auth: false, // Creates a public configuration which doesn't require a session
|
|
73
|
+
scheduler: {
|
|
74
|
+
// The callback URLs to be set in email notifications
|
|
75
|
+
rescheduling_url: `${window.location.origin}/reschedule/:booking_ref`, // The URL of the email notification includes the booking reference
|
|
76
|
+
cancellation_url: `${window.location.origin}/cancel/:booking_ref`,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
}}
|
|
80
|
+
/>
|
|
81
|
+
</div>
|
|
82
|
+
}
|
|
83
|
+
/>
|
|
84
|
+
</Routes>
|
|
85
|
+
</BrowserRouter>
|
|
86
|
+
);
|
|
87
|
+
}
|
|
88
|
+
export default App;
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### Start a local development server
|
|
92
|
+
|
|
93
|
+
To create a Scheduling Page from the Scheduler Editor, you'll need a working Scheduler UI. To do this, run a local server to host your Scheduler Editor and Scheduling Pages.
|
|
94
|
+
|
|
95
|
+
Navigate the root directory of your project and run the following command.
|
|
96
|
+
|
|
97
|
+
```text
|
|
98
|
+
npm run dev -- --port <PORT>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
After you run the command, open your browser to `http://localhost:<PORT>/scheduler-editor` to see your Scheduler Editor and create your first Scheduling Page.
|
|
102
|
+
|
|
103
|
+
## Links
|
|
104
|
+
|
|
105
|
+
For a complete walkthrough on setting up Scheduler can be found at [https://developer.nylas.com/docs/v3/quickstart/scheduler](https://developer.nylas.com/docs/v3/quickstart/scheduler), with the complete code available on [GitHub](https://github.com/nylas-samples/quickstart-scheduler-react).
|
|
106
|
+
|
|
107
|
+
### Further reading:
|
|
108
|
+
|
|
109
|
+
- [Scheduler documentation](https://developer.nylas.com/docs/v3/scheduler/)
|
|
110
|
+
- [Scheduler API reference](https://developer.nylas.com/docs/api/v3/scheduler/)
|
|
111
|
+
- [Developer Forums](https://forums.nylas.com/)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { r as t, h as e } from "./index-995dd3b3.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const s = ".sc-add-circle-icon-h{display:flex}", a = s, i = class {
|
|
5
|
+
constructor(c) {
|
|
6
|
+
t(this, c), this.width = "24", this.height = "25";
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return e("svg", { key: "5f4574833991cf259f08df93a218894bd849d112", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "5369d12ef03c62758a830c0a48d45aa1f731bbc8", 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
|
+
i.style = a;
|
|
13
|
+
const l = ".sc-close-icon-h{display:flex}", h = l, o = class {
|
|
14
|
+
constructor(c) {
|
|
15
|
+
t(this, c), this.width = "16", this.height = "16";
|
|
16
|
+
}
|
|
17
|
+
render() {
|
|
18
|
+
return e("svg", { key: "ae2727b3e3bb8e386a60828defc34532de883473", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "3bc87607b1cf527273887ff3835716c2b16c312c", "clip-path": "url(#a)" }, e("path", { key: "3e5870c3439d7aba6930d4468925e958cd3867bf", 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: "7ae8ce566367e278782c83c4c2a3964013968579" }, e("clipPath", { key: "184fe559a12c59831e92e05d9564787fb14ce197", id: "a" }, e("path", { key: "907b8eb528141f6ff41e3d266557d6b720617a2a", fill: "#fff", transform: "translate(.148 .054)", d: "M0 0h20v20H0z" }))));
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
o.style = h;
|
|
22
|
+
export {
|
|
23
|
+
i as add_circle_icon,
|
|
24
|
+
o as close_icon
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-87381561.cjs");require("react");require("react-dom");const i=".sc-add-circle-icon-h{display:flex}",h=i,t=class{constructor(c){e.registerInstance(this,c),this.width="24",this.height="25"}render(){return e.h("svg",{key:"5f4574833991cf259f08df93a218894bd849d112",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"5369d12ef03c62758a830c0a48d45aa1f731bbc8",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=h;const a=".sc-close-icon-h{display:flex}",l=a,s=class{constructor(c){e.registerInstance(this,c),this.width="16",this.height="16"}render(){return e.h("svg",{key:"ae2727b3e3bb8e386a60828defc34532de883473",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("g",{key:"3bc87607b1cf527273887ff3835716c2b16c312c","clip-path":"url(#a)"},e.h("path",{key:"3e5870c3439d7aba6930d4468925e958cd3867bf",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:"7ae8ce566367e278782c83c4c2a3964013968579"},e.h("clipPath",{key:"184fe559a12c59831e92e05d9564787fb14ce197",id:"a"},e.h("path",{key:"907b8eb528141f6ff41e3d266557d6b720617a2a",fill:"#fff",transform:"translate(.148 .054)",d:"M0 0h20v20H0z"}))))}};s.style=l;exports.add_circle_icon=t;exports.close_icon=s;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as s, h as t } from "./index-995dd3b3.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const o = ".sc-archive-icon-h{display:flex}", a = o, c = class {
|
|
5
|
+
constructor(e) {
|
|
6
|
+
s(this, e), this.width = "15", this.height = "15";
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return t("svg", { key: "bef43f90f17584ed04d54ad3e93eef2e41fe10df", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "auto", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "def31c24d8567d5c3af5101b38de6f988d1cc635", d: "M3 6H5H21", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "4cdf3198a41cc8b5aa739671c4c3166589379ac0", d: "M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "e6badf9923afe64301196f62fb505ceb3e4e211f", d: "M10 11V17", stroke: "auto", "stroke-width": "1.5" }), t("path", { key: "a41123224201ba80a7a24b24bcf19a722592e0de", d: "M14 11V17", stroke: "auto", "stroke-width": "1.5" }));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
c.style = a;
|
|
13
|
+
export {
|
|
14
|
+
c as archive_icon
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-87381561.cjs");require("react");require("react-dom");const i=".sc-archive-icon-h{display:flex}",c=i,t=class{constructor(h){e.registerInstance(this,h),this.width="15",this.height="15"}render(){return e.h("svg",{key:"bef43f90f17584ed04d54ad3e93eef2e41fe10df",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"auto",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"def31c24d8567d5c3af5101b38de6f988d1cc635",d:"M3 6H5H21",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"4cdf3198a41cc8b5aa739671c4c3166589379ac0",d:"M8 6V4C8 3.46957 8.21071 2.96086 8.58579 2.58579C8.96086 2.21071 9.46957 2 10 2H14C14.5304 2 15.0391 2.21071 15.4142 2.58579C15.7893 2.96086 16 3.46957 16 4V6M19 6V20C19 20.5304 18.7893 21.0391 18.4142 21.4142C18.0391 21.7893 17.5304 22 17 22H7C6.46957 22 5.96086 21.7893 5.58579 21.4142C5.21071 21.0391 5 20.5304 5 20V6H19Z",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"e6badf9923afe64301196f62fb505ceb3e4e211f",d:"M10 11V17",stroke:"auto","stroke-width":"1.5"}),e.h("path",{key:"a41123224201ba80a7a24b24bcf19a722592e0de",d:"M14 11V17",stroke:"auto","stroke-width":"1.5"}))}};t.style=c;exports.archive_icon=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-87381561.cjs");require("react");require("react-dom");const o=".sc-arrow-icon-h{display:flex}",i=o,t=class{constructor(r){e.registerInstance(this,r),this.width="15",this.height="15"}render(){return e.h("svg",{key:"a7d7e1b1ad65a8b540fd3d3ec3a5bebdd7799b9a",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"5ae23fbbd6276df6aea78458d6640a225a0ea0b4",d:"M5 12H19M12 5L19 12L12 19",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=i;exports.arrow_icon=t;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as o, h as t } from "./index-995dd3b3.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const e = ".sc-arrow-icon-h{display:flex}", s = e, i = class {
|
|
5
|
+
constructor(r) {
|
|
6
|
+
o(this, r), this.width = "15", this.height = "15";
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return t("svg", { key: "a7d7e1b1ad65a8b540fd3d3ec3a5bebdd7799b9a", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "5ae23fbbd6276df6aea78458d6640a225a0ea0b4", 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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-87381561.cjs");require("react");require("react-dom");const i=".sc-bold-icon-h{display:flex}",r=i,t=class{constructor(o){e.registerInstance(this,o),this.width="15",this.height="15"}render(){return e.h("svg",{key:"d1c7df50a98582b26d02f830f40fff900a8f1fce",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"0db57bf1fed8ab77ea972da815ea88cd63769580",d:"M6 4V20M9.5 4H15.5C17.7091 4 19.5 5.79086 19.5 8C19.5 10.2091 17.7091 12 15.5 12H9.5H16.5C18.7091 12 20.5 13.7909 20.5 16C20.5 18.2091 18.7091 20 16.5 20H9.5M9.5 4V20M9.5 4H4M9.5 20H4",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}))}};t.style=r;exports.bold_icon=t;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as e, h as t } from "./index-995dd3b3.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const s = ".sc-bold-icon-h{display:flex}", i = s, r = class {
|
|
5
|
+
constructor(o) {
|
|
6
|
+
e(this, o), this.width = "15", this.height = "15";
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return t("svg", { key: "d1c7df50a98582b26d02f830f40fff900a8f1fce", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "0db57bf1fed8ab77ea972da815ea88cd63769580", d: "M6 4V20M9.5 4H15.5C17.7091 4 19.5 5.79086 19.5 8C19.5 10.2091 17.7091 12 15.5 12H9.5H16.5C18.7091 12 20.5 13.7909 20.5 16C20.5 18.2091 18.7091 20 16.5 20H9.5M9.5 4V20M9.5 4H4M9.5 20H4", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
r.style = i;
|
|
13
|
+
export {
|
|
14
|
+
r as bold_icon
|
|
15
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { r as o, h as t } from "./index-995dd3b3.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const e = "button.sc-button-component{display:flex;align-items:center;justify-content:center;gap:0.75rem;height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600;width:100%}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-invisible.sc-button-component{background:transparent;color:var(--nylas-base-800);border:none}button.button-invisible.sc-button-component:hover{background:var(--nylas-base-50);color:var(--nylas-primary)}button.button-invisible.sc-button-component:active{background:var(--nylas-base-50);color:var(--nylas-base-850)}button.button-invisible.sc-button-component:disabled{background:transparent;color:var(--nylas-base-300);cursor:not-allowed}", r = e, a = class {
|
|
5
|
+
constructor(n) {
|
|
6
|
+
o(this, n), this.variant = "primary", this.disabled = !1, this.type = "button", this.tooltip = "", this.isLoading = !1, this.clickHandler = void 0, this.mouseOverHandler = void 0, this.mouseOutHandler = void 0, this.focusHandler = void 0, this.blurHandler = void 0;
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
const n = `button-${this.variant}` + (this.disabled ? " disabled" : "");
|
|
10
|
+
return t("button", { key: "062f523a6eaa6c883cb39a4ffc6d26a12c83912d", class: n, disabled: this.disabled, type: "type", title: this.tooltip, onClick: this.clickHandler, onMouseOver: this.mouseOverHandler, onMouseOut: this.mouseOutHandler, onFocus: this.focusHandler, onBlur: this.blurHandler }, !!this.isLoading && t("loading-icon", { slot: "icon" }), t("slot", { key: "dbac2e8205f067c8c38e62afbb35f5ab9222dba3" }));
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
a.style = r;
|
|
14
|
+
const s = ".wave{display:flex;align-items:center;justify-content:center}.dot{width:4px;height:4px;background-color:var(--dot-color, white);border-radius:50%;margin:0 2px;animation:wave 1.5s infinite ease-in-out}.dot:nth-child(2){animation-delay:0.2s}.dot:nth-child(3){animation-delay:0.4s}@keyframes wave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}", i = s, c = class {
|
|
15
|
+
constructor(n) {
|
|
16
|
+
o(this, n), this.width = "15", this.height = "15";
|
|
17
|
+
}
|
|
18
|
+
render() {
|
|
19
|
+
return t("div", { key: "4fd330645289551b628d0721382f4f24769b09c9", class: "wave" }, t("div", { key: "b23500951f1409eb1ffb244d2b9ee78e444264ac", class: "dot" }), t("div", { key: "4ae7966e56af13fb94df25a46e734909f95febea", class: "dot" }), t("div", { key: "da55a5c9efa1f7de83252d32324b4c8726c6ee66", class: "dot" }));
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
c.style = i;
|
|
23
|
+
export {
|
|
24
|
+
a as button_component,
|
|
25
|
+
c as loading_icon
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-87381561.cjs");require("react");require("react-dom");const r="button.sc-button-component{display:flex;align-items:center;justify-content:center;gap:0.75rem;height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer;font-family:var(--nylas-font-family);font-weight:600;width:100%}@media screen and (max-width: 768px){button.sc-button-component{width:100%}}button.button-primary.sc-button-component{background:var(--nylas-primary);color:var(--nylas-base-0);height:48px;border:none;border-radius:var(--nylas-border-radius-2x);font-size:1rem;line-height:24px;padding:0 1rem;cursor:pointer}button.button-primary.sc-button-component:hover{background:var(--nylas-base-600)}button.button-primary.sc-button-component:active{background:var(--nylas-base-800)}button.button-primary.sc-button-component:disabled{background:var(--nylas-base-300);cursor:not-allowed}button.button-basic.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-base-700);background:transparent}button.button-basic.sc-button-component:hover{background:transparent;border-color:var(--nylas-primary)}button.button-basic.sc-button-component:active{background:transparent;border-color:var(--nylas-base-600);border-width:2px}button.button-basic.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-destructive.sc-button-component{border:1px solid var(--nylas-base-300);color:var(--nylas-error);background:transparent}button.button-destructive.sc-button-component:hover{background:transparent;border-color:var(--nylas-error)}button.button-destructive.sc-button-component:active{background:transparent;border-color:var(--nylas-error-pressed);border-width:2px;color:var(--nylas-error-pressed)}button.button-destructive.sc-button-component:disabled{background:transparent;border-color:var(--nylas-base-300);color:var(--nylas-base-300);cursor:not-allowed}button.button-invisible.sc-button-component{background:transparent;color:var(--nylas-base-800);border:none}button.button-invisible.sc-button-component:hover{background:var(--nylas-base-50);color:var(--nylas-primary)}button.button-invisible.sc-button-component:active{background:var(--nylas-base-50);color:var(--nylas-base-850)}button.button-invisible.sc-button-component:disabled{background:transparent;color:var(--nylas-base-300);cursor:not-allowed}",a=r,o=class{constructor(n){t.registerInstance(this,n),this.variant="primary",this.disabled=!1,this.type="button",this.tooltip="",this.isLoading=!1,this.clickHandler=void 0,this.mouseOverHandler=void 0,this.mouseOutHandler=void 0,this.focusHandler=void 0,this.blurHandler=void 0}render(){const n=`button-${this.variant}`+(this.disabled?" disabled":"");return t.h("button",{key:"062f523a6eaa6c883cb39a4ffc6d26a12c83912d",class:n,disabled:this.disabled,type:"type",title:this.tooltip,onClick:this.clickHandler,onMouseOver:this.mouseOverHandler,onMouseOut:this.mouseOutHandler,onFocus:this.focusHandler,onBlur:this.blurHandler},!!this.isLoading&&t.h("loading-icon",{slot:"icon"}),t.h("slot",{key:"dbac2e8205f067c8c38e62afbb35f5ab9222dba3"}))}};o.style=a;const s=".wave{display:flex;align-items:center;justify-content:center}.dot{width:4px;height:4px;background-color:var(--dot-color, white);border-radius:50%;margin:0 2px;animation:wave 1.5s infinite ease-in-out}.dot:nth-child(2){animation-delay:0.2s}.dot:nth-child(3){animation-delay:0.4s}@keyframes wave{0%,60%,100%{transform:translateY(0)}30%{transform:translateY(-4px)}}",i=s,e=class{constructor(n){t.registerInstance(this,n),this.width="15",this.height="15"}render(){return t.h("div",{key:"4fd330645289551b628d0721382f4f24769b09c9",class:"wave"},t.h("div",{key:"b23500951f1409eb1ffb244d2b9ee78e444264ac",class:"dot"}),t.h("div",{key:"4ae7966e56af13fb94df25a46e734909f95febea",class:"dot"}),t.h("div",{key:"da55a5c9efa1f7de83252d32324b4c8726c6ee66",class:"dot"}))}};e.style=i;exports.button_component=o;exports.loading_icon=e;
|