@nylas/react 1.3.3 → 1.3.4
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.entry-321c1dd1.js +15 -0
- package/dist/{add-circle-icon.entry-89060fe6.cjs → add-circle-icon.entry-dcc45961.cjs} +1 -1
- package/dist/archive-icon.entry-715e139b.js +15 -0
- package/dist/archive-icon.entry-c4da9f4f.cjs +1 -0
- package/dist/{arrow-icon.entry-7c38f4ad.js → arrow-icon.entry-9311463c.js} +2 -2
- package/dist/{arrow-icon.entry-e8dbe365.cjs → arrow-icon.entry-bdccce8a.cjs} +1 -1
- package/dist/{bold-icon.entry-665901ce.cjs → bold-icon.entry-06fa4738.cjs} +1 -1
- package/dist/{bold-icon.entry-4ce7cfee.js → bold-icon.entry-c531dff1.js} +4 -4
- package/dist/{button-component_2.entry-89ea010b.js → button-component_2.entry-5aad0ec4.js} +9 -9
- package/dist/{button-component_2.entry-ca263036.cjs → button-component_2.entry-db911efe.cjs} +1 -1
- package/dist/{calendar-agenda-fill-icon_53.entry-347662f3.js → calendar-agenda-fill-icon_53.entry-6f1aa42c.js} +1846 -1433
- package/dist/calendar-agenda-fill-icon_53.entry-affead77.cjs +6 -0
- package/dist/{calendar-cancel-icon.entry-6b7836c9.cjs → calendar-cancel-icon.entry-3bd1c8e9.cjs} +1 -1
- package/dist/{calendar-cancel-icon.entry-c1d33f90.js → calendar-cancel-icon.entry-59375bc4.js} +4 -4
- package/dist/{calendar-check-icon_2.entry-222e3c0b.js → calendar-check-icon_2.entry-1ca369b6.js} +7 -7
- package/dist/{calendar-check-icon_2.entry-67024cd6.cjs → calendar-check-icon_2.entry-540dde9d.cjs} +1 -1
- package/dist/{calendar-icon.entry-380048b0.cjs → calendar-icon.entry-1d9773d5.cjs} +1 -1
- package/dist/{calendar-icon.entry-c08a8f21.js → calendar-icon.entry-66517be4.js} +5 -5
- package/dist/{checkbox-component_3.entry-52b27cb9.cjs → checkbox-component_3.entry-3918885e.cjs} +1 -1
- package/dist/{checkbox-component_3.entry-dab3c3c8.js → checkbox-component_3.entry-cf9507ac.js} +5 -5
- package/dist/{chevron-icon_3.entry-17bb7d23.cjs → chevron-icon_3.entry-27b71bd6.cjs} +1 -1
- package/dist/{chevron-icon_3.entry-7be40d99.js → chevron-icon_3.entry-afc62aa5.js} +13 -13
- package/dist/{clock-icon_4.entry-89e0dd55.js → clock-icon_4.entry-ab2c2eaf.js} +18 -18
- package/dist/{clock-icon_4.entry-875db481.cjs → clock-icon_4.entry-f46a42fc.cjs} +1 -1
- package/dist/close-icon.entry-791cb99c.js +15 -0
- package/dist/close-icon.entry-be2b5f87.cjs +1 -0
- package/dist/{constants-54af2051-a3596673.cjs → constants-91d76d21-0f7c85cc.cjs} +1 -1
- package/dist/{constants-54af2051-767e8462.js → constants-91d76d21-1638ead6.js} +23 -11
- package/dist/copy-icon.entry-16835c5d.cjs +1 -0
- package/dist/{copy-icon.entry-eecc7301.js → copy-icon.entry-c009a659.js} +6 -6
- package/dist/{delete-icon.entry-1e6c99ee.cjs → delete-icon.entry-3c295200.cjs} +1 -1
- package/dist/{delete-icon.entry-4b341b41.js → delete-icon.entry-e8815e15.js} +2 -2
- package/dist/document-refresh-icon.entry-1628d0dd.js +15 -0
- package/dist/{document-refresh-icon.entry-612c5d4f.cjs → document-refresh-icon.entry-7d84ace4.cjs} +1 -1
- package/dist/{feedbackSync-e5cb0245-013ce5ec.cjs → feedbackSync-b5d35a5b-1343e33b.cjs} +1 -1
- package/dist/{feedbackSync-e5cb0245-f8e4575c.js → feedbackSync-b5d35a5b-20032e5d.js} +1 -1
- package/dist/{folder-icon.entry-5bc752d4.cjs → folder-icon.entry-1837e7eb.cjs} +1 -1
- package/dist/{folder-icon.entry-8d91bc75.js → folder-icon.entry-1a70f499.js} +2 -2
- package/dist/forward-icon.entry-7a9952fe.cjs +1 -0
- package/dist/forward-icon.entry-92fa4f95.js +15 -0
- package/dist/{globe-icon.entry-c2ddabb6.js → globe-icon.entry-2886c103.js} +4 -4
- package/dist/{globe-icon.entry-13f5dd98.cjs → globe-icon.entry-5ea64e36.cjs} +1 -1
- package/dist/{google-logo-icon_4.entry-b58af39b.js → google-logo-icon_4.entry-c0413818.js} +168 -148
- package/dist/google-logo-icon_4.entry-ff5ebfd9.cjs +1 -0
- package/dist/inbox-icon.entry-893a70b6.js +15 -0
- package/dist/inbox-icon.entry-ad864253.cjs +1 -0
- package/dist/index-94416062.cjs +81 -0
- package/dist/index-cd93b584.js +16202 -0
- package/dist/{index.es-e9d66a9b-fa36c085.cjs → index.es-ef72cd61-0860521c.cjs} +1 -1
- package/dist/{index.es-e9d66a9b-a07a895d.js → index.es-ef72cd61-3075f564.js} +1 -1
- package/dist/{info-icon_2.entry-14cad09c.js → info-icon_2.entry-891619f7.js} +5 -5
- package/dist/{info-icon_2.entry-fce3a1ce.cjs → info-icon_2.entry-cfa2954a.cjs} +1 -1
- package/dist/{input-color-picker.entry-2079f40e.js → input-color-picker.entry-58c5f4d3.js} +4 -4
- package/dist/{input-color-picker.entry-785e80b1.cjs → input-color-picker.entry-5c3e8407.cjs} +1 -1
- package/dist/{input-component.entry-cee3fa04.js → input-component.entry-a45cff7f.js} +3 -3
- package/dist/{input-component.entry-0edf62cf.cjs → input-component.entry-f6f257b9.cjs} +1 -1
- package/dist/input-dropdown_2.entry-0518caac.js +228 -0
- package/dist/input-dropdown_2.entry-85077fff.cjs +1 -0
- package/dist/italic-icon.entry-7f971c72.cjs +1 -0
- package/dist/italic-icon.entry-a9a0be67.js +15 -0
- package/dist/multi-select-dropdown.entry-0b7e26c0.js +116 -0
- package/dist/multi-select-dropdown.entry-2c5b3f8d.cjs +1 -0
- package/dist/{nylas-booked-event-card_12.entry-56068565.js → nylas-booked-event-card_12.entry-8eed168c.js} +211 -190
- package/dist/nylas-booked-event-card_12.entry-d416f896.cjs +1 -0
- package/dist/{nylas-form-card.entry-77485e1d.cjs → nylas-form-card.entry-2c336c14.cjs} +1 -1
- package/dist/{nylas-form-card.entry-df1c70ff.js → nylas-form-card.entry-8842785d.js} +8 -8
- package/dist/{nylas-if-state.entry-0271bf92.cjs → nylas-if-state.entry-e6c90919.cjs} +1 -1
- package/dist/{nylas-if-state.entry-74c342ef.js → nylas-if-state.entry-fdc20d01.js} +3 -3
- package/dist/{nylas-login.entry-6a308ac9.js → nylas-login.entry-16f39c90.js} +3 -3
- package/dist/{nylas-login.entry-2483aa51.cjs → nylas-login.entry-dcdc4d06.cjs} +1 -1
- package/dist/{nylas-provider.entry-df790de3.cjs → nylas-provider.entry-0cc093e4.cjs} +1 -1
- package/dist/{nylas-provider.entry-5cbbd312.js → nylas-provider.entry-d51de210.js} +5 -5
- package/dist/nylas-scheduler-editor.entry-af211f07.cjs +2 -0
- package/dist/{nylas-scheduler-editor.entry-b6793c45.js → nylas-scheduler-editor.entry-d0214565.js} +48 -30
- package/dist/{nylas-scheduling.entry-fea8dca0.js → nylas-scheduling.entry-3d3a4eb4.js} +7 -7
- package/dist/{nylas-scheduling.entry-2a9aed18.cjs → nylas-scheduling.entry-ce1ef505.cjs} +1 -1
- package/dist/{nylas-time-window-picker_2.entry-fc5aa4be.js → nylas-time-window-picker_2.entry-24672606.js} +30 -30
- package/dist/{nylas-time-window-picker_2.entry-32f657a2.cjs → nylas-time-window-picker_2.entry-52a54abb.cjs} +1 -1
- package/dist/{person-icon.entry-c853f6b5.cjs → person-icon.entry-954d4c10.cjs} +1 -1
- package/dist/{person-icon.entry-fae1d972.js → person-icon.entry-dcdc2118.js} +4 -4
- package/dist/{play-icon.entry-b07a4311.cjs → play-icon.entry-7e17d583.cjs} +1 -1
- package/dist/{play-icon.entry-6ccd7cb6.js → play-icon.entry-e727a1d6.js} +4 -4
- package/dist/react.cjs +1 -1
- package/dist/react.js +1 -1
- package/dist/{refresh-icon.entry-b717e4fe.js → refresh-icon.entry-d5e50180.js} +4 -4
- package/dist/{refresh-icon.entry-a218275f.cjs → refresh-icon.entry-f735be78.cjs} +1 -1
- package/dist/{register-component-5d7bcc15-bb9405d1.cjs → register-component-a169494c-3d95c4fd.cjs} +1 -1
- package/dist/{register-component-5d7bcc15-43981253.js → register-component-a169494c-62768a00.js} +1 -1
- package/dist/{reply-all-icon.entry-f20c4a10.js → reply-all-icon.entry-848cd16f.js} +5 -5
- package/dist/{reply-all-icon.entry-cd2bafd1.cjs → reply-all-icon.entry-c847636d.cjs} +1 -1
- package/dist/reply-icon.entry-028435a1.cjs +1 -0
- package/dist/reply-icon.entry-9e3e5122.js +15 -0
- package/dist/{scheduler-config-store-ed4a8dfd-96520080.cjs → scheduler-config-store-ed4a8dfd-0e3f540f.cjs} +1 -1
- package/dist/{scheduler-config-store-ed4a8dfd-2619e757.js → scheduler-config-store-ed4a8dfd-622802c7.js} +1 -1
- package/dist/{scheduler-store-3acf4d70-53282ac4.cjs → scheduler-store-8e74959b-c8514d9a.cjs} +1 -1
- package/dist/{scheduler-store-3acf4d70-68aacbea.js → scheduler-store-8e74959b-ffa0b3c6.js} +2 -2
- package/dist/sent-icon.entry-eef67c1a.cjs +1 -0
- package/dist/sent-icon.entry-f8fda6ff.js +15 -0
- package/dist/spam-icon.entry-22437325.cjs +1 -0
- package/dist/spam-icon.entry-ec4f3144.js +15 -0
- package/dist/{star-icon.entry-6fc95071.js → star-icon.entry-d7cd7608.js} +5 -5
- package/dist/{star-icon.entry-a6e85c82.cjs → star-icon.entry-f275321a.cjs} +1 -1
- package/dist/{stop-icon.entry-8b041eda.js → stop-icon.entry-55779283.js} +2 -2
- package/dist/{stop-icon.entry-eee61c96.cjs → stop-icon.entry-89c2bae7.cjs} +1 -1
- package/dist/{textarea-component.entry-dc92a53f.js → textarea-component.entry-02360e34.js} +2 -2
- package/dist/{textarea-component.entry-cbe424d4.cjs → textarea-component.entry-5e8cb080.cjs} +1 -1
- package/dist/{translate-icon.entry-7307d3f1.cjs → translate-icon.entry-a7915e82.cjs} +1 -1
- package/dist/{translate-icon.entry-447f1502.js → translate-icon.entry-b0b36e4c.js} +4 -4
- package/dist/trash-fill-icon.entry-1fd28f47.js +15 -0
- package/dist/trash-fill-icon.entry-e933f219.cjs +1 -0
- package/dist/{underline-icon.entry-6acfca57.js → underline-icon.entry-1636f401.js} +2 -2
- package/dist/{underline-icon.entry-c636ca0e.cjs → underline-icon.entry-8bf17177.cjs} +1 -1
- package/dist/{warning-icon.entry-03615141.cjs → warning-icon.entry-27c0cdd6.cjs} +1 -1
- package/dist/{warning-icon.entry-290eb052.js → warning-icon.entry-cef2e7c1.js} +7 -7
- package/package.json +3 -3
- package/dist/add-circle-icon.entry-8b883ae4.js +0 -15
- package/dist/archive-icon.entry-62c7e06e.js +0 -15
- package/dist/archive-icon.entry-e9038aeb.cjs +0 -1
- package/dist/calendar-agenda-fill-icon_53.entry-da0fac2a.cjs +0 -9
- package/dist/close-icon.entry-4b2a2974.js +0 -15
- package/dist/close-icon.entry-e52d8440.cjs +0 -1
- package/dist/copy-icon.entry-f3370220.cjs +0 -1
- package/dist/document-refresh-icon.entry-653dc173.js +0 -15
- package/dist/forward-icon.entry-1d14a631.js +0 -15
- package/dist/forward-icon.entry-fe0f2a3a.cjs +0 -1
- package/dist/google-logo-icon_4.entry-59423b91.cjs +0 -1
- package/dist/inbox-icon.entry-2e8c1cf5.cjs +0 -1
- package/dist/inbox-icon.entry-5a452db1.js +0 -15
- package/dist/index-5611d3d5.cjs +0 -81
- package/dist/index-589f8eee.js +0 -13086
- package/dist/input-dropdown.entry-63cf88c1.cjs +0 -1
- package/dist/input-dropdown.entry-a1bac5bf.js +0 -134
- package/dist/italic-icon.entry-85a90ace.js +0 -15
- package/dist/italic-icon.entry-9ced8045.cjs +0 -1
- package/dist/multi-select-dropdown.entry-dd699cdf.js +0 -112
- package/dist/multi-select-dropdown.entry-f6ac5ae9.cjs +0 -1
- package/dist/nylas-booked-event-card_12.entry-89bcf205.cjs +0 -1
- package/dist/nylas-scheduler-editor.entry-c23fd4d8.cjs +0 -2
- package/dist/reply-icon.entry-30b5222b.cjs +0 -1
- package/dist/reply-icon.entry-abfbde42.js +0 -15
- package/dist/sent-icon.entry-2b183210.cjs +0 -1
- package/dist/sent-icon.entry-77bb678e.js +0 -15
- package/dist/spam-icon.entry-42f9c9e7.js +0 -15
- package/dist/spam-icon.entry-cbeaca0c.cjs +0 -1
- package/dist/time-period-selector.entry-45ca7b1a.js +0 -99
- package/dist/time-period-selector.entry-60718809.cjs +0 -1
- package/dist/trash-fill-icon.entry-1138f73e.cjs +0 -1
- package/dist/trash-fill-icon.entry-7d11144b.js +0 -15
package/dist/{calendar-cancel-icon.entry-6b7836c9.cjs → calendar-cancel-icon.entry-3bd1c8e9.cjs}
RENAMED
|
@@ -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-94416062.cjs");require("react");require("react-dom");const t=".sc-calendar-cancel-icon-h{display:flex}",n=t,c=class{constructor(a){e.registerInstance(this,a),this.width="20",this.height="20"}render(){return e.h("svg",{key:"27a93c1dc6b07c04af758fecbcad24593b58958a",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"7d89e3e5c2b35756ef76a4b091fe1ff1ce778bb9",d:"M14.5 9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-2.476 3.024a.5.5 0 0 0 0 .707l1.769 1.77-1.767 1.766a.5.5 0 1 0 .707.708l1.767-1.767 1.77 1.769a.5.5 0 1 0 .707-.707L15.208 14.5l1.771-1.77a.5.5 0 0 0-.707-.707l-1.771 1.77-1.77-1.77a.5.5 0 0 0-.707 0ZM14.75 0A3.25 3.25 0 0 1 18 3.25l.001 5.773a6.47 6.47 0 0 0-1.5-.71L16.5 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.064a6.47 6.47 0 0 0 .709 1.501L3.25 18A3.25 3.25 0 0 1 0 14.75V3.25A3.25 3.25 0 0 1 3.25 0h11.5Zm0 1.5H3.25A1.75 1.75 0 0 0 1.5 3.25V4h15v-.75a1.75 1.75 0 0 0-1.75-1.75Z",fill:"currentColor"}))}};c.style=n;exports.calendar_cancel_icon=c;
|
package/dist/{calendar-cancel-icon.entry-c1d33f90.js → calendar-cancel-icon.entry-59375bc4.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as c, h as a } from "./index-cd93b584.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
const
|
|
4
|
+
const t = ".sc-calendar-cancel-icon-h{display:flex}", n = t, l = class {
|
|
5
5
|
constructor(e) {
|
|
6
|
-
|
|
6
|
+
c(this, e), this.width = "20", this.height = "20";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return a("svg", { key: "
|
|
9
|
+
return a("svg", { key: "27a93c1dc6b07c04af758fecbcad24593b58958a", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, a("path", { key: "7d89e3e5c2b35756ef76a4b091fe1ff1ce778bb9", d: "M14.5 9a5.5 5.5 0 1 1 0 11 5.5 5.5 0 0 1 0-11Zm-2.476 3.024a.5.5 0 0 0 0 .707l1.769 1.77-1.767 1.766a.5.5 0 1 0 .707.708l1.767-1.767 1.77 1.769a.5.5 0 1 0 .707-.707L15.208 14.5l1.771-1.77a.5.5 0 0 0-.707-.707l-1.771 1.77-1.77-1.77a.5.5 0 0 0-.707 0ZM14.75 0A3.25 3.25 0 0 1 18 3.25l.001 5.773a6.47 6.47 0 0 0-1.5-.71L16.5 5.5h-15v9.25c0 .966.784 1.75 1.75 1.75h5.064a6.47 6.47 0 0 0 .709 1.501L3.25 18A3.25 3.25 0 0 1 0 14.75V3.25A3.25 3.25 0 0 1 3.25 0h11.5Zm0 1.5H3.25A1.75 1.75 0 0 0 1.5 3.25V4h15v-.75a1.75 1.75 0 0 0-1.75-1.75Z", fill: "currentColor" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
l.style = n;
|
package/dist/{calendar-check-icon_2.entry-222e3c0b.js → calendar-check-icon_2.entry-1ca369b6.js}
RENAMED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { r as t, h as
|
|
1
|
+
import { r as t, h as e } from "./index-cd93b584.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const h = ".sc-calendar-check-icon-h{display:flex}", i = h, s = class {
|
|
5
|
-
constructor(
|
|
6
|
-
t(this,
|
|
5
|
+
constructor(c) {
|
|
6
|
+
t(this, c), this.width = "20", this.height = "20";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return
|
|
9
|
+
return e("svg", { key: "68617703969eb980814dad373cb2ce8b99b84436", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("path", { key: "ce831d06f887d2089b524c499101d230565d23da", fill: "currentColor", d: "M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
s.style = i;
|
|
13
13
|
const r = ".sc-checkmark-circle-icon-h{display:flex}", a = r, n = class {
|
|
14
|
-
constructor(
|
|
15
|
-
t(this,
|
|
14
|
+
constructor(c) {
|
|
15
|
+
t(this, c), this.width = "20", this.height = "20";
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return
|
|
18
|
+
return e("svg", { key: "3cee8e7ca80105a52420a965aca673ff6b6ae275", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, fill: "none", viewBox: "0 0 20 20" }, e("path", { key: "6df95e545ded190b3b63a32585d89ef6731f6f71", fill: "currentColor", d: "M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z" }));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
n.style = a;
|
package/dist/{calendar-check-icon_2.entry-67024cd6.cjs → calendar-check-icon_2.entry-540dde9d.cjs}
RENAMED
|
@@ -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-94416062.cjs");require("react");require("react-dom");const h=".sc-calendar-check-icon-h{display:flex}",r=h,t=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"68617703969eb980814dad373cb2ce8b99b84436",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"ce831d06f887d2089b524c499101d230565d23da",fill:"currentColor",d:"M14.75 0C16.5449 0 18 1.45507 18 3.25V9.02182C17.5368 8.72526 17.0335 8.48584 16.5 8.3135V5.5H1.5V14.75C1.5 15.7165 2.2835 16.5 3.25 16.5H8.3135C8.48584 17.0335 8.72526 17.5368 9.02182 18H3.25C1.45507 18 0 16.5449 0 14.75V3.25C0 1.45507 1.45507 0 3.25 0H14.75ZM14.75 1.5H3.25C2.2835 1.5 1.5 2.2835 1.5 3.25V4H16.5V3.25C16.5 2.2835 15.7165 1.5 14.75 1.5ZM20 14.5C20 17.5376 17.5376 20 14.5 20C11.4624 20 9 17.5376 9 14.5C9 11.4624 11.4624 9 14.5 9C17.5376 9 20 11.4624 20 14.5ZM17.8536 12.1464C17.6583 11.9512 17.3417 11.9512 17.1464 12.1464L13.5 15.7929L11.8536 14.1464C11.6583 13.9512 11.3417 13.9512 11.1464 14.1464C10.9512 14.3417 10.9512 14.6583 11.1464 14.8536L13.1464 16.8536C13.3417 17.0488 13.6583 17.0488 13.8536 16.8536L17.8536 12.8536C18.0488 12.6583 18.0488 12.3417 17.8536 12.1464Z"}))}};t.style=r;const s=".sc-checkmark-circle-icon-h{display:flex}",n=s,i=class{constructor(c){e.registerInstance(this,c),this.width="20",this.height="20"}render(){return e.h("svg",{key:"3cee8e7ca80105a52420a965aca673ff6b6ae275",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,fill:"none",viewBox:"0 0 20 20"},e.h("path",{key:"6df95e545ded190b3b63a32585d89ef6731f6f71",fill:"currentColor",d:"M10 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16Zm0 1a7 7 0 1 0 0 14 7 7 0 0 0 0-14Zm3.358 4.646a.5.5 0 0 1 .058.638l-.058.07-4.004 4.004a.5.5 0 0 1-.638.058l-.07-.058-2-2a.5.5 0 0 1 .638-.765l.07.058L9 11.298l3.651-3.652a.5.5 0 0 1 .707 0Z"}))}};i.style=n;exports.calendar_check_icon=t;exports.checkmark_circle_icon=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-94416062.cjs");require("react");require("react-dom");const i=".sc-calendar-icon-h{display:flex}",r=i,t=class{constructor(C){e.registerInstance(this,C),this.width="15",this.height="15"}render(){return e.h("svg",{key:"89add6caefd3c3d84ae9692a3fb9731e71542b99",width:this.width,height:this.height,fill:"none",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg"},e.h("path",{key:"ada9042555d698587d4d6efdf40ed97d76d83449",fill:"currentColor",d:"M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z"}))}};t.style=r;exports.calendar_icon=t;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as e, h as C } from "./index-
|
|
1
|
+
import { r as e, h as C } from "./index-cd93b584.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
const s = ".sc-calendar-icon-h{display:flex}",
|
|
4
|
+
const s = ".sc-calendar-icon-h{display:flex}", d = s, i = class {
|
|
5
5
|
constructor(t) {
|
|
6
6
|
e(this, t), this.width = "15", this.height = "15";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return C("svg", { key: "
|
|
9
|
+
return C("svg", { key: "89add6caefd3c3d84ae9692a3fb9731e71542b99", width: this.width, height: this.height, fill: "none", viewBox: "0 0 18 18", xmlns: "http://www.w3.org/2000/svg" }, C("path", { key: "ada9042555d698587d4d6efdf40ed97d76d83449", fill: "currentColor", d: "M14.3073 0.692383C15.9641 0.692383 17.3073 2.03553 17.3073 3.69238V14.3078C17.3073 15.9646 15.9641 17.3078 14.3073 17.3078H3.6919C2.03504 17.3078 0.691895 15.9646 0.691895 14.3078V3.69238C0.691895 2.03553 2.03504 0.692383 3.6919 0.692383H14.3073ZM15.9227 5.76931H2.07651V14.3078C2.07651 15.1999 2.79974 15.9232 3.6919 15.9232H14.3073C15.1994 15.9232 15.9227 15.1999 15.9227 14.3078V5.76931ZM5.07651 11.3078C5.71376 11.3078 6.23036 11.8244 6.23036 12.4616C6.23036 13.0989 5.71376 13.6155 5.07651 13.6155C4.43926 13.6155 3.92266 13.0989 3.92266 12.4616C3.92266 11.8244 4.43926 11.3078 5.07651 11.3078ZM8.99959 11.3078C9.63684 11.3078 10.1534 11.8244 10.1534 12.4616C10.1534 13.0989 9.63684 13.6155 8.99959 13.6155C8.36234 13.6155 7.84574 13.0989 7.84574 12.4616C7.84574 11.8244 8.36234 11.3078 8.99959 11.3078ZM5.07651 7.61546C5.71376 7.61546 6.23036 8.13206 6.23036 8.76931C6.23036 9.40656 5.71376 9.92315 5.07651 9.92315C4.43926 9.92315 3.92266 9.40656 3.92266 8.76931C3.92266 8.13206 4.43926 7.61546 5.07651 7.61546ZM8.99959 7.61546C9.63684 7.61546 10.1534 8.13206 10.1534 8.76931C10.1534 9.40656 9.63684 9.92315 8.99959 9.92315C8.36234 9.92315 7.84574 9.40656 7.84574 8.76931C7.84574 8.13206 8.36234 7.61546 8.99959 7.61546ZM12.9227 7.61546C13.5599 7.61546 14.0765 8.13206 14.0765 8.76931C14.0765 9.40656 13.5599 9.92315 12.9227 9.92315C12.2854 9.92315 11.7688 9.40656 11.7688 8.76931C11.7688 8.13206 12.2854 7.61546 12.9227 7.61546ZM14.3073 2.077H3.6919C2.79974 2.077 2.07651 2.80023 2.07651 3.69238V4.38469H15.9227V3.69238C15.9227 2.80023 15.1994 2.077 14.3073 2.077Z" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
i.style = d;
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
i as calendar_icon
|
|
15
15
|
};
|
package/dist/{checkbox-component_3.entry-52b27cb9.cjs → checkbox-component_3.entry-3918885e.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-5611d3d5.cjs");require("react");require("react-dom");const n='.checkbox-container{--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;display:flex;flex-direction:column;gap:0.5rem}.checkbox-container p.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family);margin:0}label{display:flex;align-items:center;font-family:var(--nylas-font-family);cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}label input[type=checkbox]:focus~.checkmark,label input[type=checkbox]:hover~.checkmark{border-color:var(--nylas-primary)}label input[type=checkbox]:checked~.checkmark{color:var(--nylas-base-0);background:var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;border:2px solid var(--nylas-primary)}label .checkmark{border-radius:var(--nylas-border-radius);border:2px solid var(--nylas-base-800);position:absolute;left:0;top:2px;width:18px;height:18px;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label .label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}',i=n,s=class{constructor(a){e.registerInstance(this,a),this.nylasFormCheckboxToggled=e.createEvent(this,"nylasFormCheckboxToggled",7),this.componentType="checkbox",this.name="checkbox",this.checked=void 0,this.label="",this.required=!1,this.isChecked=void 0,this.error=""}checkedPropChangedHandler(a){typeof a=="boolean"&&(this.isChecked=a)}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}componentDidLoad(){this.isChecked=this.checked||!1}handleBookingFormSubmitted(a){if(this.required&&!this.isChecked){this.error=`${this.label} is required.`;return}this.error&&a.preventDefault()}toggleCheck(){this.error="",this.isChecked=!this.isChecked,this.nylasFormCheckboxToggled.emit({checked:this.isChecked,name:this.name,label:this.label})}render(){return e.h("div",{key:"0be06ba2c6b6ed277b3ba736827f9f60e18c6056",class:"checkbox-container"},e.h("label",{key:"a0a0cf6b1f546b8d1485dd3aee1b686f0e9c9cba"},e.h("input",{key:"96bdb407b3ab6f668cf94b83e8091a604743f93f",type:"checkbox",name:this.name,checked:this.isChecked,onChange:()=>this.toggleCheck()}),e.h("span",{key:"d345d3b47c14213487a9108d78abbf0db26f25af",class:"checkmark"}),e.h("slot",{key:"aba536e12ed7a97d18790f1a212ead284c1253ec",name:"label"},e.h("span",{key:"e7767302bc6865b99cf42949e8bd032e237d2ad9",class:"label"},this.label))),this.error&&e.h("p",{class:"error"},this.error))}get el(){return e.getElement(this)}static get watchers(){return{checked:["checkedPropChangedHandler"]}}};s.style=i;const o=':host{display:block;height:auto;--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}label .error{color:var(--nylas-error)}.input_wrapper{display:flex;align-items:center;gap:1rem}input[type=date]{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%;width:100%;width:-moz-available;width:-webkit-fill-available}input[type=date]:focus{outline-color:var(--nylas-primary)}input[type=date].error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}input[type=date].error::placeholder{font-weight:400}input[type=date]::placeholder{color:var(--nylas-base-300)}',d=o,h={date:"YYYY-MM-DD"},t=class{constructor(a){e.registerInstance(this,a),this.nylasFormInputChanged=e.createEvent(this,"nylasFormInputChanged",7),this.nylasFormInputFocused=e.createEvent(this,"nylasFormInputFocused",7),this.nylasFormInputBlurred=e.createEvent(this,"nylasFormInputBlurred",7),this.name="input",this.defaultValue=void 0,this.label="",this.placeholder=h.date,this.required=!1,this.readOnly=!1,this.autoFocus=!1,this.pattern=void 0,this.maxLength=255,this.patternError="",this.requiredError="",this.value=void 0,this.error="",this.isDateValid=!0}handleDefaultValueChange(a){this.value=e.sanitize(a),this.value&&this.validatePattern(this.value)}componentDidLoad(){this.value=e.sanitize(this.defaultValue||""),this.value&&this.validatePattern(this.value)}handleBookingFormSubmitted(a){this.validatePattern(this.value),this.error&&a.preventDefault()}async handleFormSubmitted(a){this.validatePattern(this.value),this.error&&a.preventDefault()}handleInput(a){this.error="";const r=a.target;this.value=e.sanitize(r.value),this.isDateValid=r.validity.valid,this.nylasFormInputChanged.emit({value:this.value,name:this.name,label:this.label,error:this.error,type:"date"})}handleBlur(){this.nylasFormInputBlurred.emit({value:this.value,name:this.name})}handleFocus(){this.nylasFormInputFocused.emit({value:this.value,name:this.name})}validatePattern(a){if(this.error="",!this.isDateValid){this.error="Please enter a valid date";return}if(this.required&&!a){this.error=this.requiredError||"This field is required.";return}!this.pattern||!a&&!this.required||(this.pattern.test(a)?this.error="":this.error=this.patternError||"Invalid format.")}render(){return e.h("label",{key:"db7e5910f650055747d1f2bca13356d2c3fe3f9e",part:"ic__label",class:{error:!!this.error}},this.label&&e.h("p",null,e.h("span",{class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*")),e.h("div",{key:"81d0a723cec27805587e2abdac667504d078e211",part:"ic__input_wrapper",class:"input_wrapper"},e.h("input",{key:"948cf92087a3763d058588c8f6b7764e96234595",type:"date",name:this.name,part:"ic__date",readOnly:this.readOnly,autoFocus:this.autoFocus,value:this.value,maxLength:this.maxLength,placeholder:this.placeholder,class:{error:!!this.error},onInput:a=>this.handleInput(a),onFocus:()=>this.handleFocus(),onBlur:()=>this.handleBlur()}),e.h("slot",{key:"6c1d31a29dc01621d9212a95574c329844da0eed",name:"additional-input"})),this.error&&e.h("span",{class:"error help-text"},this.error))}get el(){return e.getElement(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};t.style=d;const c='.radio-group{display:flex;flex-direction:column;gap:0.5rem;--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}.radio-group slot[name=label]{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;font-size:16px}.radio-group slot[name=label].error{color:var(--nylas-error)}.radio-group slot[name=label] span.required{color:var(--nylas-error);padding:0 0.25rem}.radio-group slot[name=label] p{margin:0}.radio-group slot[name=label] p.error{color:var(--nylas-error)}.radio-group slot[name=label] .error{color:var(--nylas-error)}.radio-group span.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family)}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary)}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem;margin:0}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}',u=c,l=class{constructor(a){e.registerInstance(this,a),this.nylasFormRadioChanged=e.createEvent(this,"nylasFormRadioChanged",7),this.componentType="radio-group",this.name="radio-group",this.options=[],this.defaultSelectedValue="",this.label=void 0,this.required=!1,this.selectedValue=void 0,this.error=""}handleDefaultSelectedValueChange(a){this.selectedValue=a}componentDidLoad(){this.selectedValue=this.defaultSelectedValue}handleBookingFormSubmitted(a){if(this.required&&!this.selectedValue){this.error=`${this.label} is required.`;return}this.error&&a.preventDefault()}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}handleChange(a){this.error="",this.selectedValue=a,this.nylasFormRadioChanged.emit({value:a,name:this.name,label:this.label})}render(){return e.h("div",{key:"42720c3b8d691a39d7667afe105c9fa8dd12c1a5",class:"radio-group"},e.h("slot",{key:"6b2771531918f8391b9cd53625ae7e3194754008",name:"label"},this.label&&e.h("p",{class:{error:!!this.error}},e.h("span",{class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"))),this.options.map(a=>e.h("label",null,e.h("div",{class:"radio-option"},e.h("input",{type:"radio",name:this.name,value:a.value,checked:this.selectedValue===a.value,onChange:()=>this.handleChange(a.value)}),e.h("p",null,e.h("span",{class:"title"},a.label),e.h("span",{class:"description"},a.description))))),this.error&&e.h("span",{class:"error help-text"},this.error))}get el(){return e.getElement(this)}static get watchers(){return{defaultSelectedValue:["handleDefaultSelectedValueChange"]}}};l.style=u;exports.checkbox_component=s;exports.nylas_date_component=t;exports.radio_button_group=l;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-94416062.cjs");require("react");require("react-dom");const i='.checkbox-container{--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;display:flex;flex-direction:column;gap:0.5rem}.checkbox-container p.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family);margin:0}label{display:flex;align-items:center;font-family:var(--nylas-font-family);cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}label input[type=checkbox]:focus~.checkmark,label input[type=checkbox]:hover~.checkmark{border-color:var(--nylas-primary)}label input[type=checkbox]:checked~.checkmark{color:var(--nylas-base-0);background:var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;border:2px solid var(--nylas-primary)}label .checkmark{border-radius:var(--nylas-border-radius);border:2px solid var(--nylas-base-800);position:absolute;left:0;top:2px;width:18px;height:18px;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label .label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}',n=i,s=class{constructor(a){e.registerInstance(this,a),this.nylasFormCheckboxToggled=e.createEvent(this,"nylasFormCheckboxToggled",7),this.componentType="checkbox",this.name="checkbox",this.checked=void 0,this.label="",this.required=!1,this.isChecked=void 0,this.error=""}checkedPropChangedHandler(a){typeof a=="boolean"&&(this.isChecked=a)}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}componentDidLoad(){this.isChecked=this.checked||!1}handleBookingFormSubmitted(a){if(this.required&&!this.isChecked){this.error=`${this.label} is required.`;return}this.error&&a.preventDefault()}toggleCheck(){this.error="",this.isChecked=!this.isChecked,this.nylasFormCheckboxToggled.emit({checked:this.isChecked,name:this.name,label:this.label})}render(){return e.h("div",{key:"846414c76901571e7c2591f2f73a1e81a75da8cb",class:"checkbox-container"},e.h("label",{key:"0d4f046e5e16b98e8bf456b1a839764ef8ca2149"},e.h("input",{key:"53e0e070c154543aa4b66c90d7506938a926fbed",type:"checkbox",name:this.name,checked:this.isChecked,onChange:()=>this.toggleCheck()}),e.h("span",{key:"651d933ddb459c8b3226babc82bf0fa05663a389",class:"checkmark"}),e.h("slot",{key:"2b59df9447d01fb0000d4dfcfa3d029d48a4400e",name:"label"},e.h("span",{key:"644a2d26e208e41545566471ebba96c93629af0c",class:"label"},this.label))),this.error&&e.h("p",{class:"error"},this.error))}get el(){return e.getElement(this)}static get watchers(){return{checked:["checkedPropChangedHandler"]}}};s.style=n;const o=':host{display:block;height:auto;--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}label .error{color:var(--nylas-error)}.input_wrapper{display:flex;align-items:center;gap:1rem}input[type=date]{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%;width:100%;width:-moz-available;width:-webkit-fill-available}input[type=date]:focus{outline-color:var(--nylas-primary)}input[type=date].error{border-radius:var(--nylas-border-radius-2x);font-weight:600;border-color:var(--nylas-error);border-width:2px}input[type=date].error::placeholder{font-weight:400}input[type=date]::placeholder{color:var(--nylas-base-300)}',d=o,h={date:"YYYY-MM-DD"},t=class{constructor(a){e.registerInstance(this,a),this.nylasFormInputChanged=e.createEvent(this,"nylasFormInputChanged",7),this.nylasFormInputFocused=e.createEvent(this,"nylasFormInputFocused",7),this.nylasFormInputBlurred=e.createEvent(this,"nylasFormInputBlurred",7),this.name="input",this.defaultValue=void 0,this.label="",this.placeholder=h.date,this.required=!1,this.readOnly=!1,this.autoFocus=!1,this.pattern=void 0,this.maxLength=255,this.patternError="",this.requiredError="",this.value=void 0,this.error="",this.isDateValid=!0}handleDefaultValueChange(a){this.value=e.sanitize(a),this.value&&this.validatePattern(this.value)}componentDidLoad(){this.value=e.sanitize(this.defaultValue||""),this.value&&this.validatePattern(this.value)}handleBookingFormSubmitted(a){this.validatePattern(this.value),this.error&&a.preventDefault()}async handleFormSubmitted(a){this.validatePattern(this.value),this.error&&a.preventDefault()}handleInput(a){this.error="";const r=a.target;this.value=e.sanitize(r.value),this.isDateValid=r.validity.valid,this.nylasFormInputChanged.emit({value:this.value,name:this.name,label:this.label,error:this.error,type:"date"})}handleBlur(){this.nylasFormInputBlurred.emit({value:this.value,name:this.name})}handleFocus(){this.nylasFormInputFocused.emit({value:this.value,name:this.name})}validatePattern(a){if(this.error="",this.required&&!this.isDateValid){this.error="Please enter a valid date";return}if(this.required&&!a){this.error=this.requiredError||"This field is required.";return}!this.pattern||!a&&!this.required||(this.pattern.test(a)?this.error="":this.error=this.patternError||"Invalid format.")}render(){return e.h("label",{key:"9af33d8d1bfe9ae6b5caa99f28fac36e98a2275e",part:"ic__label",class:{error:!!this.error}},this.label&&e.h("p",null,e.h("span",{class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*")),e.h("div",{key:"a1ef7829a3411f8d10edcfb4cf7637c14c4e2fe8",part:"ic__input_wrapper",class:"input_wrapper"},e.h("input",{key:"8ced975367fda28dd8ead5402c2829001149704c",type:"date",name:this.name,part:"ic__date",readOnly:this.readOnly,autoFocus:this.autoFocus,value:this.value,maxLength:this.maxLength,placeholder:this.placeholder,class:{error:!!this.error},onInput:a=>this.handleInput(a),onFocus:()=>this.handleFocus(),onBlur:()=>this.handleBlur()}),e.h("slot",{key:"fbe36b28c751122364a9a14934a6d8f1a74f78d5",name:"additional-input"})),this.error&&e.h("span",{class:"error help-text"},this.error))}get el(){return e.getElement(this)}static get watchers(){return{defaultValue:["handleDefaultValueChange"]}}};t.style=d;const c='.radio-group{display:flex;flex-direction:column;gap:0.5rem;--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}.radio-group slot[name=label]{display:flex;color:var(--nylas-base-800, #293056);font-size:14px;font-style:normal;font-weight:400;line-height:150%;font-size:16px}.radio-group slot[name=label].error{color:var(--nylas-error)}.radio-group slot[name=label] span.required{color:var(--nylas-error);padding:0 0.25rem}.radio-group slot[name=label] p{margin:0}.radio-group slot[name=label] p.error{color:var(--nylas-error)}.radio-group slot[name=label] .error{color:var(--nylas-error)}.radio-group span.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family)}.radio-group label{display:flex;font-family:var(--nylas-font-family);cursor:pointer}.radio-group label .radio-option{display:flex;align-items:flex-start;gap:0.5rem}.radio-group label .radio-option input[type=radio]{cursor:pointer}.radio-group label .radio-option input[type=radio i]{width:20px;height:20px;color:var(--nylas-primary)}.radio-group label .radio-option p{display:flex;flex-direction:column;gap:0.5rem;margin:0}.radio-group label .radio-option p .title{font-size:16px;font-weight:500;line-height:20px;color:var(--nylas-base-800)}.radio-group label .radio-option p .description{font-size:14px;font-weight:400;line-height:20px;color:var(--nylas-base-600)}',u=c,l=class{constructor(a){e.registerInstance(this,a),this.nylasFormRadioChanged=e.createEvent(this,"nylasFormRadioChanged",7),this.componentType="radio-group",this.name="radio-group",this.options=[],this.defaultSelectedValue="",this.label=void 0,this.required=!1,this.selectedValue=void 0,this.error=""}handleDefaultSelectedValueChange(a){this.selectedValue=a}componentDidLoad(){this.selectedValue=this.defaultSelectedValue}handleBookingFormSubmitted(a){if(this.required&&!this.selectedValue){this.error=`${this.label} is required.`;return}this.error&&a.preventDefault()}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}handleChange(a){this.error="",this.selectedValue=a,this.nylasFormRadioChanged.emit({value:a,name:this.name,label:this.label})}render(){return e.h("div",{key:"bb8081c01a8910156ceceb6a84dbd397fd9bd729",class:"radio-group"},e.h("slot",{key:"dffac376a2e005f4d039e07c6742ffb5f9bea8b3",name:"label"},this.label&&e.h("p",{class:{error:!!this.error}},e.h("span",{class:"label"},this.label),this.required&&e.h("span",{class:"required"},"*"))),this.options.map(a=>e.h("label",null,e.h("div",{class:"radio-option"},e.h("input",{type:"radio",name:this.name,value:a.value,checked:this.selectedValue===a.value,onChange:()=>this.handleChange(a.value)}),e.h("p",null,e.h("span",{class:"title"},a.label),e.h("span",{class:"description"},a.description))))),this.error&&e.h("span",{class:"error help-text"},this.error))}get el(){return e.getElement(this)}static get watchers(){return{defaultSelectedValue:["handleDefaultSelectedValueChange"]}}};l.style=u;exports.checkbox_component=s;exports.nylas_date_component=t;exports.radio_button_group=l;
|
package/dist/{checkbox-component_3.entry-dab3c3c8.js → checkbox-component_3.entry-cf9507ac.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as t, c as r, h as a, g as l, t as s } from "./index-
|
|
1
|
+
import { r as t, c as r, h as a, g as l, t as s } from "./index-cd93b584.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const n = '.checkbox-container{--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;display:flex;flex-direction:column;gap:0.5rem}.checkbox-container p.error{color:var(--nylas-error);font-size:14px;font-weight:400;line-height:20px;font-family:var(--nylas-font-family);margin:0}label{display:flex;align-items:center;font-family:var(--nylas-font-family);cursor:pointer;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label input[type=checkbox]{position:absolute;opacity:0;cursor:pointer}label input[type=checkbox]:focus~.checkmark,label input[type=checkbox]:hover~.checkmark{border-color:var(--nylas-primary)}label input[type=checkbox]:checked~.checkmark{color:var(--nylas-base-0);background:var(--nylas-primary) url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSI5IiB2aWV3Qm94PSIwIDAgMTIgOSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgPHBhdGggZD0iTTQuNTc1IDguOTc3cy0uNDA0LS4wMDctLjUzNi0uMTY1TC4wNTcgNS42NGwuODI5LTEuMjI3TDQuNDcgNy4yNjggMTAuOTIxLjA4NmwuOTIzIDEuMTAzLTYuODYzIDcuNjRjLS4xMzQtLjAwMy0uNDA2LjE0OC0uNDA2LjE0OHoiIGZpbGw9IiNGRkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPg0KPC9zdmc+) 50% 40% no-repeat;border:2px solid var(--nylas-primary)}label .checkmark{border-radius:var(--nylas-border-radius);border:2px solid var(--nylas-base-800);position:absolute;left:0;top:2px;width:18px;height:18px;cursor:pointer;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}label .label{margin-left:32px;font-size:16px;font-weight:400;color:var(--nylas-base-800);line-height:24px}', o = n, d = class {
|
|
@@ -29,7 +29,7 @@ const n = '.checkbox-container{--nylas-primary:#2563eb;--nylas-error:#cc4841;--n
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return a("div", { key: "
|
|
32
|
+
return a("div", { key: "846414c76901571e7c2591f2f73a1e81a75da8cb", class: "checkbox-container" }, a("label", { key: "0d4f046e5e16b98e8bf456b1a839764ef8ca2149" }, a("input", { key: "53e0e070c154543aa4b66c90d7506938a926fbed", type: "checkbox", name: this.name, checked: this.isChecked, onChange: () => this.toggleCheck() }), a("span", { key: "651d933ddb459c8b3226babc82bf0fa05663a389", class: "checkmark" }), a("slot", { key: "2b59df9447d01fb0000d4dfcfa3d029d48a4400e", name: "label" }, a("span", { key: "644a2d26e208e41545566471ebba96c93629af0c", class: "label" }, this.label))), this.error && a("p", { class: "error" }, this.error));
|
|
33
33
|
}
|
|
34
34
|
get el() {
|
|
35
35
|
return l(this);
|
|
@@ -83,7 +83,7 @@ const c = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-error
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
validatePattern(e) {
|
|
86
|
-
if (this.error = "", !this.isDateValid) {
|
|
86
|
+
if (this.error = "", this.required && !this.isDateValid) {
|
|
87
87
|
this.error = "Please enter a valid date";
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
@@ -94,7 +94,7 @@ const c = ':host{display:block;height:auto;--nylas-primary:#2563eb;--nylas-error
|
|
|
94
94
|
!this.pattern || !e && !this.required || (this.pattern.test(e) ? this.error = "" : this.error = this.patternError || "Invalid format.");
|
|
95
95
|
}
|
|
96
96
|
render() {
|
|
97
|
-
return a("label", { key: "
|
|
97
|
+
return a("label", { key: "9af33d8d1bfe9ae6b5caa99f28fac36e98a2275e", part: "ic__label", class: { error: !!this.error } }, this.label && a("p", null, a("span", { class: "label" }, this.label), this.required && a("span", { class: "required" }, "*")), a("div", { key: "a1ef7829a3411f8d10edcfb4cf7637c14c4e2fe8", part: "ic__input_wrapper", class: "input_wrapper" }, a("input", { key: "8ced975367fda28dd8ead5402c2829001149704c", type: "date", name: this.name, part: "ic__date", readOnly: this.readOnly, autoFocus: this.autoFocus, value: this.value, maxLength: this.maxLength, placeholder: this.placeholder, class: { error: !!this.error }, onInput: (e) => this.handleInput(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), a("slot", { key: "fbe36b28c751122364a9a14934a6d8f1a74f78d5", name: "additional-input" })), this.error && a("span", { class: "error help-text" }, this.error));
|
|
98
98
|
}
|
|
99
99
|
get el() {
|
|
100
100
|
return l(this);
|
|
@@ -134,7 +134,7 @@ const b = '.radio-group{display:flex;flex-direction:column;gap:0.5rem;--nylas-pr
|
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
|
-
return a("div", { key: "
|
|
137
|
+
return a("div", { key: "bb8081c01a8910156ceceb6a84dbd397fd9bd729", class: "radio-group" }, a("slot", { key: "dffac376a2e005f4d039e07c6742ffb5f9bea8b3", name: "label" }, this.label && a("p", { class: { error: !!this.error } }, a("span", { class: "label" }, this.label), this.required && a("span", { class: "required" }, "*"))), this.options.map((e) => a("label", null, a("div", { class: "radio-option" }, a("input", { type: "radio", name: this.name, value: e.value, checked: this.selectedValue === e.value, onChange: () => this.handleChange(e.value) }), a("p", null, a("span", { class: "title" }, e.label), a("span", { class: "description" }, e.description))))), this.error && a("span", { class: "error help-text" }, this.error));
|
|
138
138
|
}
|
|
139
139
|
get el() {
|
|
140
140
|
return l(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-5611d3d5.cjs");require("react");require("react-dom");const h=".sc-chevron-icon-h{display:flex}",c=h,o=class{constructor(e){s.registerInstance(this,e),this.width="24",this.height="24"}render(){return s.h("svg",{key:"fb1ba717c31f07393be2b8b0c984e1be9aac2042",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none"},s.h("path",{key:"df8820887c1787356ad0727baf34fe0c5b76bbd4",fill:"currentColor",d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z"}))}};o.style=c;const p=".sc-search-icon-h{display:flex}",f=p,l=class{constructor(e){s.registerInstance(this,e),this.width="15",this.height="15"}render(){return s.h("svg",{key:"ddf419d549f82cf693e9b261d671dcb402c193f6",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.h("path",{key:"d30e346032f2d41161d314e0b1305643688d6402",fill:"currentColor",d:"M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z"}))}};l.style=f;const b=':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}@media screen and (max-width: 768px){:host{position:unset}}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}label .error{color:var(--nylas-error)}.dropdown{display:inline-block;width:inherit}.dropbtn{color:var(--nylas-base-800);padding:14px;font-size:1rem;font-family:var(--nylas-font-family);cursor:pointer;display:flex;justify-content:space-between;gap:0.5rem;background:transparent;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x)}.dropbtn.error{border:1px solid var(--nylas-error)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}',u=b,d=class{constructor(e){s.registerInstance(this,e),this.nylasFormDropdownChanged=s.createEvent(this,"nylasFormDropdownChanged",7),this.nylasFormDropdownDefaultSelected=s.createEvent(this,"nylasFormDropdownDefaultSelected",7),this.componentType="select-dropdown",this.name=void 0,this.options=[],this.defaultSelectedOption=null,this.withSearch=!0,this.label=void 0,this.required=!1,this.pluralizedLabel="",this.dropdownButtonText=void 0,this.withChevron=!0,this.emptyValue="Select an option",this.errorMessage="",this.selectedOption=void 0,this.isOpen=!1,this.searchValue="",this.filteredOptions=[...this.options],this.ariaActivedescendant="",this.error=""}optionsChangedHandler(e,t){e!==t&&(this.filteredOptions=e)}defaultSelectedOptionChangedHandler(e,t){typeof e>"u"||(e==null?void 0:e.label)===(t==null?void 0:t.label)||(this.selectedOption=e,this.nylasFormDropdownDefaultSelected.emit({value:(e==null?void 0:e.value)||"",name:this.name,error:this.error,label:this.label}))}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}componentDidLoad(){var e;this.filteredOptions=this.options,this.selectedOption=this.defaultSelectedOption,!this.selectedOption&&this.options.length>0&&(this.selectedOption=this.options[0]),this.nylasFormDropdownDefaultSelected.emit({value:((e=this.selectedOption)==null?void 0:e.value)||"",name:this.name,error:this.error,label:this.label})}handleBookingFormSubmitted(e){var t;this.validate(((t=this.selectedOption)==null?void 0:t.value)||""),this.error&&e.preventDefault()}handleFormSubmitted(e){var t;this.validate(((t=this.selectedOption)==null?void 0:t.value)||""),this.error&&e.preventDefault()}validate(e){this.required&&!e?this.error=this.errorMessage||`${this.label} is required.`:this.error=""}toggleDropdown(){this.isOpen=!this.isOpen}filterOptions(e){const t=e.target.value;this.searchValue=t,this.filteredOptions=this.options.filter(i=>i.label.toLowerCase().includes(t.toLowerCase()))}selectOption(e){this.error="",this.selectedOption=e,this.toggleDropdown(),e.value!==this.emptyValue&&this.nylasFormDropdownChanged.emit({value:e.value,name:this.name,error:this.error,label:this.label})}handleSelectButtonKeyDown(e){var t;switch(e.key){case"ArrowDown":case"Enter":e.preventDefault(),this.isOpen||this.toggleDropdown(),(t=this.inputRef)==null||t.focus();break;case"Escape":this.isOpen=!1;break}}handleListboxKeydown(e){var r,a;const t=this.filteredOptions,i=t.findIndex(n=>n.value===this.ariaActivedescendant);if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){if(e.preventDefault(),i===t.length-1){this.ariaActivedescendant="",(r=this.inputRef)==null||r.focus();return}const n=i+1<t.length?i+1:0;this.ariaActivedescendant=t[n].value,this.focusOption(n)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){if(e.preventDefault(),i===0){this.ariaActivedescendant="",(a=this.inputRef)==null||a.focus();return}const n=i-1>=0?i-1:t.length-1;this.ariaActivedescendant=t[n].value,this.focusOption(n)}else e.key==="Enter"?(e.preventDefault(),this.ariaActivedescendant&&this.selectOption(t[i])):e.key==="Escape"&&(this.isOpen=!1)}focusOption(e){var a;const t=this.filteredOptions[e];if(!t)return;const i=t.value,r=(a=this.el.shadowRoot)==null?void 0:a.getElementById(i);r&&(r.focus(),r.scrollIntoView({behavior:"smooth",block:"nearest"}))}handleComboboxKeyDown(e){e.key==="ArrowDown"||e.key=="Tab"&&!e.shiftKey?(e.preventDefault(),this.ariaActivedescendant=this.filteredOptions[0].value,this.focusOption(0)):e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey?(e.preventDefault(),this.ariaActivedescendant=this.filteredOptions[this.filteredOptions.length-1].value,this.focusOption(this.filteredOptions.length-1)):e.key==="Escape"&&(this.isOpen=!1)}generateButtonText(e,t){return t||(e!=null&&e.label?`${(e==null?void 0:e.label)+this.pluralizedLabel}`:this.emptyValue)}handleOutsideClick(e){!e.composedPath().includes(this.el)&&this.isOpen&&(this.isOpen=!1)}render(){const e=this.generateButtonText(this.selectedOption,this.dropdownButtonText);return s.h("div",{key:"84b77e934a9450cf19cb3a23f1194a23f761bdfe",class:"dropdown",part:"sd_dropdown"},s.h("label",{key:"f8eb7320f19ff8510666626d48c5db82963d1278",part:"sd_dropdown_label",class:{error:!!this.error}},this.label&&s.h("p",null,s.h("span",{class:"label"},this.label),this.required&&s.h("span",{class:"required"},"*")),s.h("button",{key:"a27c08365fc81cca57b4c12751a5ef7b78eb5d96",part:"sd_dropdown-button",class:{dropbtn:!0,open:this.isOpen,error:!!this.error},onClick:()=>this.toggleDropdown(),"aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false","aria-label":this.name,onKeyDown:t=>this.handleSelectButtonKeyDown(t)},s.h("slot",{key:"c62ba86d1e966fe29dab4a9eaf17dcd8f9e4fba2",name:"select-icon","aria-hidden":"true"}),s.h("span",{key:"617c1bdeccba616c8006d953cea6bfc05588416e",class:"selected-option",part:"sd_dropdown-button-selected-label"},e),this.withChevron&&s.h("span",{class:{open:this.isOpen,closed:!this.isOpen,chevron:!0},"aria-hidden":"true"},s.h("chevron-icon",{width:"16",height:"16"}))),this.error&&s.h("span",{class:"error help-text"},this.error)),this.isOpen?s.h("div",{class:"dropdown-content",part:"sd_dropdown-content"},this.withSearch&&s.h("div",{class:{"search-box":!0,open:this.isOpen}},s.h("search-icon",{width:"15",height:"15",class:"icon"}),s.h("input",{type:"text",role:"combobox",placeholder:"Search",value:this.searchValue,ref:t=>this.inputRef=t,onInput:t=>this.filterOptions(t),onKeyDown:t=>this.handleComboboxKeyDown(t)})),s.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:t=>this.handleListboxKeydown(t)},this.filteredOptions.map(t=>t.value.toString()?s.h("li",{tabindex:"0",key:t.value,id:t.value,onClick:()=>this.selectOption(t),role:"option"},t.labelHTML?s.h("div",{part:"sd_dropdown-labelhtml"},t.labelHTML):t.label):null))):null)}get el(){return s.getElement(this)}static get watchers(){return{options:["optionsChangedHandler"],defaultSelectedOption:["defaultSelectedOptionChangedHandler"]}}};d.style=u;exports.chevron_icon=o;exports.search_icon=l;exports.select_dropdown=d;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index-94416062.cjs");require("react");require("react-dom");const h=".sc-chevron-icon-h{display:flex}",c=h,o=class{constructor(e){s.registerInstance(this,e),this.width="24",this.height="24"}render(){return s.h("svg",{key:"7aba61db23989386b629855aca2a4e8f9bf4362c",xmlns:"http://www.w3.org/2000/svg",width:this.width,height:this.height,viewBox:"0 0 24 24",fill:"none"},s.h("path",{key:"20bf8190f264566aabe644a60205498ea8796bd9",fill:"currentColor",d:"M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z"}))}};o.style=c;const p=".sc-search-icon-h{display:flex}",b=p,l=class{constructor(e){s.registerInstance(this,e),this.width="15",this.height="15"}render(){return s.h("svg",{key:"a0628e962350636e0a8e9bddbfea281ea1406a96",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.h("path",{key:"4b5f9803a371e5dcc0c116ae45c796900a979b2a",fill:"currentColor",d:"M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z"}))}};l.style=b;const f=':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}@media screen and (max-width: 768px){:host{position:unset}}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}label .error{color:var(--nylas-error)}.dropdown{display:inline-block;width:inherit}.dropbtn{color:var(--nylas-base-800);padding:14px;font-size:16px;font-family:var(--nylas-font-family);cursor:pointer;display:flex;justify-content:space-between;gap:0.5rem;background:transparent;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x)}.dropbtn.error{border:1px solid var(--nylas-error)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}',u=f,d=class{constructor(e){s.registerInstance(this,e),this.nylasFormDropdownChanged=s.createEvent(this,"nylasFormDropdownChanged",7),this.nylasFormDropdownDefaultSelected=s.createEvent(this,"nylasFormDropdownDefaultSelected",7),this.componentType="select-dropdown",this.name=void 0,this.options=[],this.defaultSelectedOption=null,this.withSearch=!0,this.label=void 0,this.required=!1,this.pluralizedLabel="",this.dropdownButtonText=void 0,this.withChevron=!0,this.emptyValue="Select an option",this.errorMessage="",this.selectedOption=void 0,this.isOpen=!1,this.searchValue="",this.filteredOptions=[...this.options],this.ariaActivedescendant="",this.error=""}optionsChangedHandler(e,t){e!==t&&(this.filteredOptions=e)}defaultSelectedOptionChangedHandler(e,t){typeof e>"u"||(e==null?void 0:e.label)===(t==null?void 0:t.label)||(this.selectedOption=e,this.nylasFormDropdownDefaultSelected.emit({value:(e==null?void 0:e.value)||"",name:this.name,error:this.error,label:this.label}))}componentWillLoad(){this.el.setAttribute("component-type",this.componentType)}componentDidLoad(){var e;this.filteredOptions=this.options,this.selectedOption=this.defaultSelectedOption,!this.selectedOption&&this.options.length>0&&(this.selectedOption=this.options[0]),this.nylasFormDropdownDefaultSelected.emit({value:((e=this.selectedOption)==null?void 0:e.value)||"",name:this.name,error:this.error,label:this.label})}handleBookingFormSubmitted(e){var t;this.validate(((t=this.selectedOption)==null?void 0:t.value)||""),this.error&&e.preventDefault()}handleFormSubmitted(e){var t;this.validate(((t=this.selectedOption)==null?void 0:t.value)||""),this.error&&e.preventDefault()}validate(e){this.required&&!e?this.error=this.errorMessage||`${this.label} is required.`:this.error=""}toggleDropdown(){this.isOpen=!this.isOpen}filterOptions(e){const t=e.target.value;this.searchValue=t,this.filteredOptions=this.options.filter(i=>i.label.toLowerCase().includes(t.toLowerCase()))}selectOption(e){this.error="",this.selectedOption=e,this.toggleDropdown(),e.value!==this.emptyValue&&this.nylasFormDropdownChanged.emit({value:e.value,name:this.name,error:this.error,label:this.label})}handleSelectButtonKeyDown(e){var t;switch(e.key){case"ArrowDown":case"Enter":e.preventDefault(),this.isOpen||this.toggleDropdown(),(t=this.inputRef)==null||t.focus();break;case"Escape":this.isOpen=!1;break}}handleListboxKeydown(e){var a,r;const t=this.filteredOptions,i=t.findIndex(n=>n.value===this.ariaActivedescendant);if(e.key==="ArrowDown"||e.key==="Tab"&&!e.shiftKey){if(e.preventDefault(),i===t.length-1){this.ariaActivedescendant="",(a=this.inputRef)==null||a.focus();return}const n=i+1<t.length?i+1:0;this.ariaActivedescendant=t[n].value,this.focusOption(n)}else if(e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey){if(e.preventDefault(),i===0){this.ariaActivedescendant="",(r=this.inputRef)==null||r.focus();return}const n=i-1>=0?i-1:t.length-1;this.ariaActivedescendant=t[n].value,this.focusOption(n)}else e.key==="Enter"?(e.preventDefault(),this.ariaActivedescendant&&this.selectOption(t[i])):e.key==="Escape"&&(this.isOpen=!1)}focusOption(e){var r;const t=this.filteredOptions[e];if(!t)return;const i=t.value,a=(r=this.el.shadowRoot)==null?void 0:r.getElementById(i);a&&(a.focus(),a.scrollIntoView({behavior:"smooth",block:"nearest"}))}handleComboboxKeyDown(e){e.key==="ArrowDown"||e.key=="Tab"&&!e.shiftKey?(e.preventDefault(),this.ariaActivedescendant=this.filteredOptions[0].value,this.focusOption(0)):e.key==="ArrowUp"||e.key==="Tab"&&e.shiftKey?(e.preventDefault(),this.ariaActivedescendant=this.filteredOptions[this.filteredOptions.length-1].value,this.focusOption(this.filteredOptions.length-1)):e.key==="Escape"&&(this.isOpen=!1)}generateButtonText(e,t){return t||(e!=null&&e.label?`${(e==null?void 0:e.label)+this.pluralizedLabel}`:this.emptyValue)}handleOutsideClick(e){!e.composedPath().includes(this.el)&&this.isOpen&&(this.isOpen=!1)}render(){const e=this.generateButtonText(this.selectedOption,this.dropdownButtonText);return s.h("div",{key:"2c620508eeef332e31afe32c261d04e52ddddc30",class:"dropdown",part:"sd_dropdown"},s.h("label",{key:"b6332c551e0c5e7da74b7c2135ab038ab0744502",part:"sd_dropdown_label",class:{error:!!this.error}},this.label&&s.h("p",null,s.h("span",{class:"label"},this.label),this.required&&s.h("span",{class:"required"},"*")),s.h("button",{key:"f4e2a425f33ea3d25033e9dfa0311d7b80927c31",part:"sd_dropdown-button",class:{dropbtn:!0,open:this.isOpen,error:!!this.error},onClick:()=>this.toggleDropdown(),"aria-haspopup":"listbox","aria-expanded":this.isOpen?"true":"false","aria-label":this.name,onKeyDown:t=>this.handleSelectButtonKeyDown(t)},s.h("slot",{key:"1b254af0779a5c97ec201aa1cb3886a3c154ce59",name:"select-icon","aria-hidden":"true"}),s.h("span",{key:"019c36eaa7ee04e84e5e1eb906d745653bc91518",class:"selected-option",part:"sd_dropdown-button-selected-label"},e),this.withChevron&&s.h("span",{class:{open:this.isOpen,closed:!this.isOpen,chevron:!0},"aria-hidden":"true"},s.h("chevron-icon",{width:"16",height:"16"}))),this.error&&s.h("span",{class:"error help-text"},this.error)),this.isOpen?s.h("div",{class:"dropdown-content",part:"sd_dropdown-content"},this.withSearch&&s.h("div",{class:{"search-box":!0,open:this.isOpen}},s.h("search-icon",{width:"15",height:"15",class:"icon"}),s.h("input",{type:"text",role:"combobox",placeholder:"Search",value:this.searchValue,ref:t=>this.inputRef=t,onInput:t=>this.filterOptions(t),onKeyDown:t=>this.handleComboboxKeyDown(t)})),s.h("ul",{tabindex:"-1",role:"listbox","aria-label":this.name,"aria-activedescendant":this.ariaActivedescendant,onKeyDown:t=>this.handleListboxKeydown(t)},this.filteredOptions.map(t=>t.value.toString()?s.h("li",{tabindex:"0",key:t.value,id:t.value,onClick:()=>this.selectOption(t),role:"option"},t.labelHTML?s.h("div",{part:"sd_dropdown-labelhtml"},t.labelHTML):t.label):null))):null)}get el(){return s.getElement(this)}static get watchers(){return{options:["optionsChangedHandler"],defaultSelectedOption:["defaultSelectedOptionChangedHandler"]}}};d.style=u;exports.chevron_icon=o;exports.search_icon=l;exports.select_dropdown=d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as o, h as s, c as l, g as d } from "./index-
|
|
1
|
+
import { r as o, h as s, c as l, g as d } from "./index-cd93b584.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
4
|
const h = ".sc-chevron-icon-h{display:flex}", c = h, p = class {
|
|
@@ -6,20 +6,20 @@ const h = ".sc-chevron-icon-h{display:flex}", c = h, p = class {
|
|
|
6
6
|
o(this, e), this.width = "24", this.height = "24";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return s("svg", { key: "
|
|
9
|
+
return s("svg", { key: "7aba61db23989386b629855aca2a4e8f9bf4362c", xmlns: "http://www.w3.org/2000/svg", width: this.width, height: this.height, viewBox: "0 0 24 24", fill: "none" }, s("path", { key: "20bf8190f264566aabe644a60205498ea8796bd9", fill: "currentColor", d: "M15.53 4.22a.75.75 0 0 1 0 1.06L8.81 12l6.72 6.72a.75.75 0 1 1-1.06 1.06l-7.25-7.25a.75.75 0 0 1 0-1.06l7.25-7.25a.75.75 0 0 1 1.06 0Z" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
p.style = c;
|
|
13
|
-
const
|
|
13
|
+
const b = ".sc-search-icon-h{display:flex}", f = b, u = class {
|
|
14
14
|
constructor(e) {
|
|
15
15
|
o(this, e), this.width = "15", this.height = "15";
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return s("svg", { key: "
|
|
18
|
+
return s("svg", { key: "a0628e962350636e0a8e9bddbfea281ea1406a96", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, s("path", { key: "4b5f9803a371e5dcc0c116ae45c796900a979b2a", fill: "currentColor", d: "M5.5 0C8.53757 0 11 2.46243 11 5.5C11 6.83879 10.5217 8.06586 9.72656 9.01962L13.8536 13.1464C14.0488 13.3417 14.0488 13.6583 13.8536 13.8536C13.68 14.0271 13.4106 14.0464 13.2157 13.9114L13.1464 13.8536L9.01962 9.72656C8.06586 10.5217 6.83879 11 5.5 11C2.46243 11 0 8.53757 0 5.5C0 2.46243 2.46243 0 5.5 0ZM5.5 1C3.01472 1 1 3.01472 1 5.5C1 7.98528 3.01472 10 5.5 10C7.98528 10 10 7.98528 10 5.5C10 3.01472 7.98528 1 5.5 1Z" }));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
u.style =
|
|
22
|
-
const y = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}@media screen and (max-width: 768px){:host{position:unset}}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}label .error{color:var(--nylas-error)}.dropdown{display:inline-block;width:inherit}.dropbtn{color:var(--nylas-base-800);padding:14px;font-size:
|
|
21
|
+
u.style = f;
|
|
22
|
+
const y = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas-error:#cc4841;--nylas-error-pressed:#992222;--nylas-wraning:#f06c00;--nylas-success:#16a392;--nylas-info:#2b8fc2;--nylas-base-0:#ffffff;--nylas-base-25:#fcfcfd;--nylas-base-50:#f8f9fc;--nylas-base-100:#eaecf5;--nylas-base-200:#d5d9eb;--nylas-base-300:#b3b8d8;--nylas-base-400:#717bbc;--nylas-base-500:#4e5ba6;--nylas-base-600:#3e4784;--nylas-base-700:#263f72;--nylas-base-800:#293056;--nylas-base-900:#101323;--nylas-base-950:#0e101b;--nylas-border-radius:0.25rem;--nylas-border-radius-2x:0.5rem;--nylas-border-radius-3x:0.75rem;--nylas-font-family:"Inter", sans-serif;width:100%}@media screen and (max-width: 768px){:host{position:unset}}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}label .error{color:var(--nylas-error)}.dropdown{display:inline-block;width:inherit}.dropbtn{color:var(--nylas-base-800);padding:14px;font-size:16px;font-family:var(--nylas-font-family);cursor:pointer;display:flex;justify-content:space-between;gap:0.5rem;background:transparent;border:1px solid var(--nylas-base-300);border-radius:var(--nylas-border-radius-2x)}.dropbtn.error{border:1px solid var(--nylas-error)}.dropbtn.focus{background:transparent}.dropbtn:hover,.dropbtn:active{outline:1px solid var(--nylas-primary)}.dropbtn:active{outline:2px solid var(--nylas-primary)}.dropbtn span.chevron{display:flex;align-self:center}.dropbtn span.open{transform:rotate(90deg)}.dropbtn span.closed{transform:rotate(270deg)}.dropbtn span.selected-option{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:144px;font-size:14px;line-height:20px}@media screen and (max-width: 768px){.dropbtn span.selected-option{max-width:124px;font-size:16px}}.dropdown-content{display:block;margin-top:0.5rem;background-color:var(--nylas-base-0);width:100%;max-height:336px;overflow:auto;z-index:1;border-radius:4px;position:absolute;box-shadow:0px 4px 6px -2px rgba(0, 0, 0, 0.05);box-shadow:0px 10px 15px -3px rgba(0, 0, 0, 0.1)}@media screen and (max-width: 768px){.dropdown-content{right:0;width:325px;max-width:unset}}.search-box{border-bottom:1px solid var(--nylas-base-200);padding:10px;position:sticky;top:0;background:var(--nylas-base-0)}.search-box .icon{position:absolute;top:1.25rem;left:1.25rem;color:var(--nylas-base-300)}.dropdown-content ul{padding:0;list-style-type:none;color:var(--nylas-base-900);max-height:336px}.dropdown-content ul li{padding:16px, 12px, 16px, 12px;color:black;padding:12px 16px;text-decoration:none;display:block;font-family:inherit;font-size:14px;font-weight:400;line-height:20px;letter-spacing:0px;text-align:left;cursor:pointer}.dropdown-content ul li:hover,.dropdown-content ul li:focus{background-color:var(--nylas-base-100)}.dropdown-content .selected{background-color:#e7e7e7}input[type=text]{width:-webkit-fill-available;padding:inherit;border:1px solid #ccc;border-radius:4px;position:sticky;background:no-repeat scroll 7px 7px;padding-left:30px;background-size:16px 16px}', x = y, w = class {
|
|
23
23
|
constructor(e) {
|
|
24
24
|
o(this, e), this.nylasFormDropdownChanged = l(this, "nylasFormDropdownChanged", 7), this.nylasFormDropdownDefaultSelected = l(this, "nylasFormDropdownDefaultSelected", 7), this.componentType = "select-dropdown", this.name = void 0, this.options = [], this.defaultSelectedOption = null, this.withSearch = !0, this.label = void 0, this.required = !1, this.pluralizedLabel = "", this.dropdownButtonText = void 0, this.withChevron = !0, this.emptyValue = "Select an option", this.errorMessage = "", this.selectedOption = void 0, this.isOpen = !1, this.searchValue = "", this.filteredOptions = [...this.options], this.ariaActivedescendant = "", this.error = "";
|
|
25
25
|
}
|
|
@@ -85,18 +85,18 @@ const y = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas
|
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
handleListboxKeydown(e) {
|
|
88
|
-
var
|
|
88
|
+
var a, r;
|
|
89
89
|
const t = this.filteredOptions, i = t.findIndex((n) => n.value === this.ariaActivedescendant);
|
|
90
90
|
if (e.key === "ArrowDown" || e.key === "Tab" && !e.shiftKey) {
|
|
91
91
|
if (e.preventDefault(), i === t.length - 1) {
|
|
92
|
-
this.ariaActivedescendant = "", (
|
|
92
|
+
this.ariaActivedescendant = "", (a = this.inputRef) == null || a.focus();
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
95
|
const n = i + 1 < t.length ? i + 1 : 0;
|
|
96
96
|
this.ariaActivedescendant = t[n].value, this.focusOption(n);
|
|
97
97
|
} else if (e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey) {
|
|
98
98
|
if (e.preventDefault(), i === 0) {
|
|
99
|
-
this.ariaActivedescendant = "", (
|
|
99
|
+
this.ariaActivedescendant = "", (r = this.inputRef) == null || r.focus();
|
|
100
100
|
return;
|
|
101
101
|
}
|
|
102
102
|
const n = i - 1 >= 0 ? i - 1 : t.length - 1;
|
|
@@ -105,12 +105,12 @@ const y = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas
|
|
|
105
105
|
e.key === "Enter" ? (e.preventDefault(), this.ariaActivedescendant && this.selectOption(t[i])) : e.key === "Escape" && (this.isOpen = !1);
|
|
106
106
|
}
|
|
107
107
|
focusOption(e) {
|
|
108
|
-
var
|
|
108
|
+
var r;
|
|
109
109
|
const t = this.filteredOptions[e];
|
|
110
110
|
if (!t)
|
|
111
111
|
return;
|
|
112
|
-
const i = t.value,
|
|
113
|
-
|
|
112
|
+
const i = t.value, a = (r = this.el.shadowRoot) == null ? void 0 : r.getElementById(i);
|
|
113
|
+
a && (a.focus(), a.scrollIntoView({ behavior: "smooth", block: "nearest" }));
|
|
114
114
|
}
|
|
115
115
|
handleComboboxKeyDown(e) {
|
|
116
116
|
e.key === "ArrowDown" || e.key == "Tab" && !e.shiftKey ? (e.preventDefault(), this.ariaActivedescendant = this.filteredOptions[0].value, this.focusOption(0)) : e.key === "ArrowUp" || e.key === "Tab" && e.shiftKey ? (e.preventDefault(), this.ariaActivedescendant = this.filteredOptions[this.filteredOptions.length - 1].value, this.focusOption(this.filteredOptions.length - 1)) : e.key === "Escape" && (this.isOpen = !1);
|
|
@@ -123,7 +123,7 @@ const y = ':host{display:block;position:relative;--nylas-primary:#2563eb;--nylas
|
|
|
123
123
|
}
|
|
124
124
|
render() {
|
|
125
125
|
const e = this.generateButtonText(this.selectedOption, this.dropdownButtonText);
|
|
126
|
-
return s("div", { key: "
|
|
126
|
+
return s("div", { key: "2c620508eeef332e31afe32c261d04e52ddddc30", class: "dropdown", part: "sd_dropdown" }, s("label", { key: "b6332c551e0c5e7da74b7c2135ab038ab0744502", part: "sd_dropdown_label", class: { error: !!this.error } }, this.label && s("p", null, s("span", { class: "label" }, this.label), this.required && s("span", { class: "required" }, "*")), s("button", { key: "f4e2a425f33ea3d25033e9dfa0311d7b80927c31", part: "sd_dropdown-button", class: { dropbtn: !0, open: this.isOpen, error: !!this.error }, onClick: () => this.toggleDropdown(), "aria-haspopup": "listbox", "aria-expanded": this.isOpen ? "true" : "false", "aria-label": this.name, onKeyDown: (t) => this.handleSelectButtonKeyDown(t) }, s("slot", { key: "1b254af0779a5c97ec201aa1cb3886a3c154ce59", name: "select-icon", "aria-hidden": "true" }), s("span", { key: "019c36eaa7ee04e84e5e1eb906d745653bc91518", class: "selected-option", part: "sd_dropdown-button-selected-label" }, e), this.withChevron && s("span", { class: {
|
|
127
127
|
open: this.isOpen,
|
|
128
128
|
closed: !this.isOpen,
|
|
129
129
|
chevron: !0
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { r as
|
|
1
|
+
import { r as i, h as t } from "./index-cd93b584.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "react-dom";
|
|
4
|
-
const
|
|
4
|
+
const c = ".sc-clock-icon-h{display:flex}", e = c, C = class {
|
|
5
5
|
constructor(s) {
|
|
6
|
-
|
|
6
|
+
i(this, s), this.width = "16", this.height = "16";
|
|
7
7
|
}
|
|
8
8
|
render() {
|
|
9
|
-
return t("svg", { key: "
|
|
9
|
+
return t("svg", { key: "efed3ea03c496391e7ac5582574691c9c9031020", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "691c0a73bbd4c71380e621dfe123cf7db72f7a61", d: "M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5ZM8 1.4375C4.37563 1.4375 1.4375 4.37563 1.4375 8C1.4375 11.6244 4.37563 14.5625 8 14.5625C11.6244 14.5625 14.5625 11.6244 14.5625 8C14.5625 4.37563 11.6244 1.4375 8 1.4375ZM7.53125 3.3125C7.76137 3.3125 7.95276 3.47832 7.99245 3.69699L8 3.78125V8H10.3438C10.6026 8 10.8125 8.20987 10.8125 8.46875C10.8125 8.69887 10.6467 8.89026 10.428 8.92995L10.3438 8.9375H7.53125C7.30113 8.9375 7.10974 8.77168 7.07005 8.55301L7.0625 8.46875V3.78125C7.0625 3.52237 7.27237 3.3125 7.53125 3.3125Z", fill: "currentColor" }));
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
C.style = e;
|
|
13
13
|
const o = ".sc-edit-icon-h{display:flex}", h = o, n = class {
|
|
14
14
|
constructor(s) {
|
|
15
|
-
|
|
15
|
+
i(this, s), this.width = "16", this.height = "16";
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return t("svg", { key: "
|
|
18
|
+
return t("svg", { key: "4193cdc1f81453adf7ad4b104b4e0925ca617768", width: this.width, height: this.height, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "f1d847b41eaafb926894a7b1b5e399590937e838", d: "M11.245 0.817394C12.3318 -0.269413 14.0938 -0.269413 15.1806 0.817394C16.2222 1.85892 16.2656 3.5206 15.3108 4.6138L15.1806 4.75307L5.57482 14.3589C5.36973 14.564 5.12299 14.7215 4.85212 14.8213L4.68684 14.8742L0.631867 15.9801C0.285278 16.0746 -0.0347856 15.7861 0.00276241 15.4455L0.0179263 15.3662L1.12383 11.3112C1.20014 11.0314 1.33621 10.7722 1.52188 10.5511L1.63914 10.4232L11.245 0.817394ZM10.3848 3.09229L2.34625 11.1303C2.25396 11.2226 2.18093 11.3318 2.13086 11.4514L2.08859 11.5743L1.21196 14.785L4.42372 13.9094C4.50767 13.8865 4.5879 13.8529 4.66253 13.8096L4.77003 13.7375L4.86771 13.6518L12.9058 5.61329L10.3848 3.09229ZM14.4735 1.5245C13.8159 0.8669 12.7725 0.830367 12.072 1.4149L11.9521 1.5245L11.0918 2.38529L13.6128 4.90629L14.4735 4.04596C15.1311 3.38836 15.1677 2.34488 14.5831 1.64441L14.4735 1.5245Z", fill: "currentColor" }));
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
n.style = h;
|
|
22
|
-
const
|
|
22
|
+
const l = ".sc-person-clipboard-icon-h{display:flex}", r = l, d = class {
|
|
23
23
|
constructor(s) {
|
|
24
|
-
|
|
24
|
+
i(this, s), this.width = "12", this.height = "17";
|
|
25
25
|
}
|
|
26
26
|
render() {
|
|
27
|
-
return t("svg", { key: "
|
|
27
|
+
return t("svg", { key: "0c36beb141b692187660837f0d7d793d18577ec9", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "78833137fe7454602253ac9ad7cae04001889f3b", d: "M4 7.5C4 6.39543 4.89543 5.5 6 5.5C7.10457 5.5 8 6.39543 8 7.5C8 8.60457 7.10457 9.5 6 9.5C4.89543 9.5 4 8.60457 4 7.5ZM6 6.5C5.44772 6.5 5 6.94772 5 7.5C5 8.05228 5.44772 8.5 6 8.5C6.55228 8.5 7 8.05228 7 7.5C7 6.94772 6.55228 6.5 6 6.5ZM3.72077 10.5C3.10838 10.5 2.40961 10.9146 2.38992 11.6973C2.37693 12.2135 2.48426 12.9381 3.04816 13.5319C3.61451 14.1283 4.55301 14.5 6.00001 14.5C7.44702 14.5 8.38552 14.1283 8.95187 13.5319C9.51577 12.9381 9.6231 12.2135 9.61011 11.6973C9.59042 10.9146 8.89165 10.5 8.27925 10.5H3.72077ZM3.3896 11.7225C3.39099 11.6675 3.41262 11.6226 3.46275 11.582C3.51876 11.5366 3.6101 11.5 3.72077 11.5H8.27925C8.38993 11.5 8.48127 11.5366 8.53728 11.582C8.58741 11.6226 8.60904 11.6675 8.61042 11.7225C8.61975 12.0933 8.53969 12.5138 8.22676 12.8433C7.91628 13.1702 7.28849 13.5 6.00001 13.5C4.71154 13.5 4.08375 13.1702 3.77327 12.8433C3.46033 12.5138 3.38027 12.0933 3.3896 11.7225ZM5 0.5C3.89543 0.5 3 1.39543 3 2.5H1.5C0.671573 2.5 0 3.17157 0 4V15C0 15.8284 0.671572 16.5 1.5 16.5H10.5C11.3284 16.5 12 15.8284 12 15V4C12 3.17157 11.3284 2.5 10.5 2.5H9C9 1.39543 8.10457 0.5 7 0.5H5ZM8.73244 3.5H10.5C10.7761 3.5 11 3.72386 11 4V15C11 15.2761 10.7761 15.5 10.5 15.5H1.5C1.22386 15.5 1 15.2761 1 15V4C1 3.72386 1.22386 3.5 1.5 3.5H3.26756C3.61337 4.0978 4.25972 4.5 5 4.5H7C7.74028 4.5 8.38663 4.0978 8.73244 3.5ZM4 2.5C4 1.94772 4.44772 1.5 5 1.5H7C7.55228 1.5 8 1.94772 8 2.5C8 3.05228 7.55228 3.5 7 3.5H5C4.44772 3.5 4 3.05228 4 2.5Z", fill: "currentColor" }));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
const a = ".sc-plus-icon-h{display:flex}",
|
|
30
|
+
d.style = r;
|
|
31
|
+
const a = ".sc-plus-icon-h{display:flex}", w = a, f = class {
|
|
32
32
|
constructor(s) {
|
|
33
|
-
|
|
33
|
+
i(this, s), this.width = "20", this.height = "20";
|
|
34
34
|
}
|
|
35
35
|
render() {
|
|
36
|
-
return t("svg", { key: "
|
|
36
|
+
return t("svg", { key: "99cec1cd9c200e9f5431bf57b746f097a0d2089e", width: this.width, height: this.height, fill: "none", xmlns: "http://www.w3.org/2000/svg" }, t("path", { key: "166771755611b81994b617777f939bc145199498", d: "M8.5 1C8.5 0.723858 8.27614 0.5 8 0.5C7.72386 0.5 7.5 0.723858 7.5 1V7.5H1C0.723858 7.5 0.5 7.72386 0.5 8C0.5 8.27614 0.723858 8.5 1 8.5H7.5V15C7.5 15.2761 7.72386 15.5 8 15.5C8.27614 15.5 8.5 15.2761 8.5 15V8.5H15C15.2761 8.5 15.5 8.27614 15.5 8C15.5 7.72386 15.2761 7.5 15 7.5H8.5V1Z", fill: "currentColor" }));
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
f.style = w;
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
C as clock_icon,
|
|
42
42
|
n as edit_icon,
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
d as person_clipboard_icon,
|
|
44
|
+
f as plus_icon
|
|
45
45
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index-94416062.cjs");require("react");require("react-dom");const h=".sc-clock-icon-h{display:flex}",n=h,s=class{constructor(e){t.registerInstance(this,e),this.width="16",this.height="16"}render(){return t.h("svg",{key:"efed3ea03c496391e7ac5582574691c9c9031020",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"691c0a73bbd4c71380e621dfe123cf7db72f7a61",d:"M8 0.5C12.1421 0.5 15.5 3.85786 15.5 8C15.5 12.1421 12.1421 15.5 8 15.5C3.85786 15.5 0.5 12.1421 0.5 8C0.5 3.85786 3.85786 0.5 8 0.5ZM8 1.4375C4.37563 1.4375 1.4375 4.37563 1.4375 8C1.4375 11.6244 4.37563 14.5625 8 14.5625C11.6244 14.5625 14.5625 11.6244 14.5625 8C14.5625 4.37563 11.6244 1.4375 8 1.4375ZM7.53125 3.3125C7.76137 3.3125 7.95276 3.47832 7.99245 3.69699L8 3.78125V8H10.3438C10.6026 8 10.8125 8.20987 10.8125 8.46875C10.8125 8.69887 10.6467 8.89026 10.428 8.92995L10.3438 8.9375H7.53125C7.30113 8.9375 7.10974 8.77168 7.07005 8.55301L7.0625 8.46875V3.78125C7.0625 3.52237 7.27237 3.3125 7.53125 3.3125Z",fill:"currentColor"}))}};s.style=n;const o=".sc-edit-icon-h{display:flex}",r=o,i=class{constructor(e){t.registerInstance(this,e),this.width="16",this.height="16"}render(){return t.h("svg",{key:"4193cdc1f81453adf7ad4b104b4e0925ca617768",width:this.width,height:this.height,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"f1d847b41eaafb926894a7b1b5e399590937e838",d:"M11.245 0.817394C12.3318 -0.269413 14.0938 -0.269413 15.1806 0.817394C16.2222 1.85892 16.2656 3.5206 15.3108 4.6138L15.1806 4.75307L5.57482 14.3589C5.36973 14.564 5.12299 14.7215 4.85212 14.8213L4.68684 14.8742L0.631867 15.9801C0.285278 16.0746 -0.0347856 15.7861 0.00276241 15.4455L0.0179263 15.3662L1.12383 11.3112C1.20014 11.0314 1.33621 10.7722 1.52188 10.5511L1.63914 10.4232L11.245 0.817394ZM10.3848 3.09229L2.34625 11.1303C2.25396 11.2226 2.18093 11.3318 2.13086 11.4514L2.08859 11.5743L1.21196 14.785L4.42372 13.9094C4.50767 13.8865 4.5879 13.8529 4.66253 13.8096L4.77003 13.7375L4.86771 13.6518L12.9058 5.61329L10.3848 3.09229ZM14.4735 1.5245C13.8159 0.8669 12.7725 0.830367 12.072 1.4149L11.9521 1.5245L11.0918 2.38529L13.6128 4.90629L14.4735 4.04596C15.1311 3.38836 15.1677 2.34488 14.5831 1.64441L14.4735 1.5245Z",fill:"currentColor"}))}};i.style=r;const l=".sc-person-clipboard-icon-h{display:flex}",d=l,c=class{constructor(e){t.registerInstance(this,e),this.width="12",this.height="17"}render(){return t.h("svg",{key:"0c36beb141b692187660837f0d7d793d18577ec9",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"78833137fe7454602253ac9ad7cae04001889f3b",d:"M4 7.5C4 6.39543 4.89543 5.5 6 5.5C7.10457 5.5 8 6.39543 8 7.5C8 8.60457 7.10457 9.5 6 9.5C4.89543 9.5 4 8.60457 4 7.5ZM6 6.5C5.44772 6.5 5 6.94772 5 7.5C5 8.05228 5.44772 8.5 6 8.5C6.55228 8.5 7 8.05228 7 7.5C7 6.94772 6.55228 6.5 6 6.5ZM3.72077 10.5C3.10838 10.5 2.40961 10.9146 2.38992 11.6973C2.37693 12.2135 2.48426 12.9381 3.04816 13.5319C3.61451 14.1283 4.55301 14.5 6.00001 14.5C7.44702 14.5 8.38552 14.1283 8.95187 13.5319C9.51577 12.9381 9.6231 12.2135 9.61011 11.6973C9.59042 10.9146 8.89165 10.5 8.27925 10.5H3.72077ZM3.3896 11.7225C3.39099 11.6675 3.41262 11.6226 3.46275 11.582C3.51876 11.5366 3.6101 11.5 3.72077 11.5H8.27925C8.38993 11.5 8.48127 11.5366 8.53728 11.582C8.58741 11.6226 8.60904 11.6675 8.61042 11.7225C8.61975 12.0933 8.53969 12.5138 8.22676 12.8433C7.91628 13.1702 7.28849 13.5 6.00001 13.5C4.71154 13.5 4.08375 13.1702 3.77327 12.8433C3.46033 12.5138 3.38027 12.0933 3.3896 11.7225ZM5 0.5C3.89543 0.5 3 1.39543 3 2.5H1.5C0.671573 2.5 0 3.17157 0 4V15C0 15.8284 0.671572 16.5 1.5 16.5H10.5C11.3284 16.5 12 15.8284 12 15V4C12 3.17157 11.3284 2.5 10.5 2.5H9C9 1.39543 8.10457 0.5 7 0.5H5ZM8.73244 3.5H10.5C10.7761 3.5 11 3.72386 11 4V15C11 15.2761 10.7761 15.5 10.5 15.5H1.5C1.22386 15.5 1 15.2761 1 15V4C1 3.72386 1.22386 3.5 1.5 3.5H3.26756C3.61337 4.0978 4.25972 4.5 5 4.5H7C7.74028 4.5 8.38663 4.0978 8.73244 3.5ZM4 2.5C4 1.94772 4.44772 1.5 5 1.5H7C7.55228 1.5 8 1.94772 8 2.5C8 3.05228 7.55228 3.5 7 3.5H5C4.44772 3.5 4 3.05228 4 2.5Z",fill:"currentColor"}))}};c.style=d;const a=".sc-plus-icon-h{display:flex}",g=a,C=class{constructor(e){t.registerInstance(this,e),this.width="20",this.height="20"}render(){return t.h("svg",{key:"99cec1cd9c200e9f5431bf57b746f097a0d2089e",width:this.width,height:this.height,fill:"none",xmlns:"http://www.w3.org/2000/svg"},t.h("path",{key:"166771755611b81994b617777f939bc145199498",d:"M8.5 1C8.5 0.723858 8.27614 0.5 8 0.5C7.72386 0.5 7.5 0.723858 7.5 1V7.5H1C0.723858 7.5 0.5 7.72386 0.5 8C0.5 8.27614 0.723858 8.5 1 8.5H7.5V15C7.5 15.2761 7.72386 15.5 8 15.5C8.27614 15.5 8.5 15.2761 8.5 15V8.5H15C15.2761 8.5 15.5 8.27614 15.5 8C15.5 7.72386 15.2761 7.5 15 7.5H8.5V1Z",fill:"currentColor"}))}};C.style=g;exports.clock_icon=s;exports.edit_icon=i;exports.person_clipboard_icon=c;exports.plus_icon=C;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { r as f, h as e } from "./index-cd93b584.js";
|
|
2
|
+
import "react";
|
|
3
|
+
import "react-dom";
|
|
4
|
+
const t = ".sc-close-icon-h{display:flex}", s = t, l = class {
|
|
5
|
+
constructor(c) {
|
|
6
|
+
f(this, c), this.width = "16", this.height = "16";
|
|
7
|
+
}
|
|
8
|
+
render() {
|
|
9
|
+
return e("svg", { key: "6421537d08832df9449efa77fdc647eef7c2b33a", width: "21", height: "21", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, e("g", { key: "cc65230d8c914d3fd63ce7b59dc4662a57869301", "clip-path": "url(#a)" }, e("path", { key: "c38cb82fbdf8f0078d7fdd0d48c7f3ec95f2217b", 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: "2aee62997688b944608b3cd05d2f30721182e8eb" }, e("clipPath", { key: "88fccee868ef6f75b9605ffe8bf58519cd21f671", id: "a" }, e("path", { key: "2245e566678cab50ff36932ecc5c910248186c54", fill: "#fff", transform: "translate(.148 .054)", d: "M0 0h20v20H0z" }))));
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
l.style = s;
|
|
13
|
+
export {
|
|
14
|
+
l as close_icon
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-94416062.cjs");require("react");require("react-dom");const f=".sc-close-icon-h{display:flex}",s=f,c=class{constructor(t){e.registerInstance(this,t),this.width="16",this.height="16"}render(){return e.h("svg",{key:"6421537d08832df9449efa77fdc647eef7c2b33a",width:"21",height:"21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.h("g",{key:"cc65230d8c914d3fd63ce7b59dc4662a57869301","clip-path":"url(#a)"},e.h("path",{key:"c38cb82fbdf8f0078d7fdd0d48c7f3ec95f2217b",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:"2aee62997688b944608b3cd05d2f30721182e8eb"},e.h("clipPath",{key:"88fccee868ef6f75b9605ffe8bf58519cd21f671",id:"a"},e.h("path",{key:"2245e566678cab50ff36932ecc5c910248186c54",fill:"#fff",transform:"translate(.148 .054)",d:"M0 0h20v20H0z"}))))}};c.style=s;exports.close_icon=c;
|