@nylas/web-elements 0.0.0-test-20250320180623 → 0.0.0-test-20250320184617
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/cdn/nylas-scheduler-editor/nylas-scheduler-editor.es.js +25 -25
- package/dist/cdn/nylas-scheduling/nylas-scheduling.es.js +247 -247
- package/dist/cjs/button-component_2.cjs.entry.js +1 -1
- package/dist/cjs/button-component_2.cjs.entry.js.map +1 -1
- package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js +17 -18
- package/dist/cjs/calendar-agenda-fill-icon_36.cjs.entry.js.map +1 -1
- package/dist/cjs/chevron-icon_3.cjs.entry.js +1 -1
- package/dist/cjs/chevron-icon_3.cjs.entry.js.map +1 -1
- package/dist/cjs/google-logo-icon_6.cjs.entry.js +5 -5
- package/dist/cjs/google-logo-icon_6.cjs.entry.js.map +1 -1
- package/dist/cjs/input-dropdown_2.cjs.entry.js +1 -1
- package/dist/cjs/input-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/multi-select-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/multi-select-dropdown_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nylas-provider.cjs.entry.js.map +1 -1
- package/dist/cjs/scheduler-store-df3a9a3a.js.map +1 -1
- package/dist/collection/components/design-system/button-component/button-component.js +4 -3
- package/dist/collection/components/design-system/button-component/button-component.js.map +1 -1
- package/dist/collection/components/design-system/input-dropdown/input-dropdown.js +10 -7
- package/dist/collection/components/design-system/input-dropdown/input-dropdown.js.map +1 -1
- package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js +5 -4
- package/dist/collection/components/design-system/multi-select-dropdown/multi-select-dropdown.js.map +1 -1
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js +13 -9
- package/dist/collection/components/design-system/select-dropdown/select-dropdown.js.map +1 -1
- package/dist/collection/components/nylas-provider/nylas-provider.js +1 -1
- package/dist/collection/components/scheduler-editor/nylas-buffer-time/nylas-buffer-time.js +2 -2
- package/dist/collection/components/scheduler-editor/nylas-buffer-time/nylas-buffer-time.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js +30 -15
- package/dist/collection/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.js.map +1 -1
- package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js +15 -16
- package/dist/collection/components/scheduler-editor/nylas-event-duration/nylas-event-duration.js.map +1 -1
- package/dist/collection/connector/shared/api/auth.js.map +1 -1
- package/dist/collection/connector/shared/api/scheduler.js.map +1 -1
- package/dist/components/button-component2.js +1 -1
- package/dist/components/button-component2.js.map +1 -1
- package/dist/components/input-dropdown2.js +1 -1
- package/dist/components/input-dropdown2.js.map +1 -1
- package/dist/components/multi-select-dropdown2.js +2 -2
- package/dist/components/multi-select-dropdown2.js.map +1 -1
- package/dist/components/nylas-buffer-time2.js +2 -2
- package/dist/components/nylas-buffer-time2.js.map +1 -1
- package/dist/components/nylas-editor-tabs-group2.js +5 -5
- package/dist/components/nylas-editor-tabs-group2.js.map +1 -1
- package/dist/components/nylas-event-duration2.js +15 -16
- package/dist/components/nylas-event-duration2.js.map +1 -1
- package/dist/components/nylas-provider.js.map +1 -1
- package/dist/components/scheduler-store.js.map +1 -1
- package/dist/components/select-dropdown2.js +1 -1
- package/dist/components/select-dropdown2.js.map +1 -1
- package/dist/esm/button-component_2.entry.js +1 -1
- package/dist/esm/button-component_2.entry.js.map +1 -1
- package/dist/esm/calendar-agenda-fill-icon_36.entry.js +17 -18
- package/dist/esm/calendar-agenda-fill-icon_36.entry.js.map +1 -1
- package/dist/esm/chevron-icon_3.entry.js +1 -1
- package/dist/esm/chevron-icon_3.entry.js.map +1 -1
- package/dist/esm/google-logo-icon_6.entry.js +5 -5
- package/dist/esm/google-logo-icon_6.entry.js.map +1 -1
- package/dist/esm/input-dropdown_2.entry.js +1 -1
- package/dist/esm/input-dropdown_2.entry.js.map +1 -1
- package/dist/esm/multi-select-dropdown_2.entry.js +2 -2
- package/dist/esm/multi-select-dropdown_2.entry.js.map +1 -1
- package/dist/esm/nylas-provider.entry.js.map +1 -1
- package/dist/esm/scheduler-store-ef022be9.js.map +1 -1
- package/dist/nylas-web-elements/nylas-web-elements.esm.js +1 -1
- package/dist/nylas-web-elements/{p-a6a52e17.entry.js → p-09bbd467.entry.js} +2 -2
- package/dist/nylas-web-elements/p-09bbd467.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-6371e0a3.entry.js → p-0d80f50b.entry.js} +2 -2
- package/dist/nylas-web-elements/p-0d80f50b.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-1fb32e0e.entry.js.map +1 -1
- package/dist/nylas-web-elements/{p-19f6fcf8.entry.js → p-3ca36162.entry.js} +2 -2
- package/dist/nylas-web-elements/p-3ca36162.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-78bd1f85.entry.js → p-51434e4a.entry.js} +2 -2
- package/dist/nylas-web-elements/p-51434e4a.entry.js.map +1 -0
- package/dist/nylas-web-elements/p-731a856b.js.map +1 -1
- package/dist/nylas-web-elements/p-7b787c73.entry.js +8 -0
- package/dist/nylas-web-elements/p-7b787c73.entry.js.map +1 -0
- package/dist/nylas-web-elements/{p-55886492.entry.js → p-b1c57792.entry.js} +2 -2
- package/dist/nylas-web-elements/p-b1c57792.entry.js.map +1 -0
- package/dist/types/components/design-system/button-component/button-component.d.ts +1 -2
- package/dist/types/components/design-system/input-dropdown/input-dropdown.d.ts +1 -6
- package/dist/types/components/design-system/multi-select-dropdown/multi-select-dropdown.d.ts +1 -7
- package/dist/types/components/design-system/select-dropdown/select-dropdown.d.ts +1 -6
- package/dist/types/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.d.ts +12 -11
- package/dist/types/components/scheduler-editor/nylas-event-duration/nylas-event-duration.d.ts +2 -2
- package/dist/types/components.d.ts +7 -7
- package/dist/types/connector/nylas-connector/index.d.ts +1 -1
- package/dist/types/connector/shared/api/auth.d.ts +1 -1
- package/dist/types/connector/shared/api/scheduler.d.ts +1 -1
- package/package.json +3 -3
- package/dist/nylas-web-elements/p-19f6fcf8.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-463d9c42.entry.js +0 -8
- package/dist/nylas-web-elements/p-463d9c42.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-55886492.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-6371e0a3.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-78bd1f85.entry.js.map +0 -1
- package/dist/nylas-web-elements/p-a6a52e17.entry.js.map +0 -1
package/dist/types/components/design-system/multi-select-dropdown/multi-select-dropdown.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
|
|
3
|
-
label: string;
|
|
4
|
-
value: string;
|
|
5
|
-
selected?: boolean;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
}
|
|
2
|
+
import { DropdownOption } from '@nylas/core';
|
|
8
3
|
export declare class MultiSelectDropdown {
|
|
9
4
|
el: HTMLElement;
|
|
10
5
|
name: string;
|
|
@@ -38,4 +33,3 @@ export declare class MultiSelectDropdown {
|
|
|
38
33
|
renderOption(option: DropdownOption): any;
|
|
39
34
|
render(): any;
|
|
40
35
|
}
|
|
41
|
-
export {};
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
-
|
|
3
|
-
labelHTML?: HTMLElement;
|
|
4
|
-
label: string;
|
|
5
|
-
value: string;
|
|
6
|
-
}
|
|
2
|
+
import { DropdownOption } from '@nylas/core';
|
|
7
3
|
export declare class SelectDropdown {
|
|
8
4
|
el: HTMLElement;
|
|
9
5
|
private readonly componentType;
|
|
@@ -56,4 +52,3 @@ export declare class SelectDropdown {
|
|
|
56
52
|
handleOutsideClick(event: MouseEvent): void;
|
|
57
53
|
render(): any;
|
|
58
54
|
}
|
|
59
|
-
export {};
|
package/dist/types/components/scheduler-editor/nylas-editor-tabs-group/nylas-editor-tabs-group.d.ts
CHANGED
|
@@ -5,13 +5,7 @@ import { User } from "../../../common/nylas-api-request";
|
|
|
5
5
|
import { CONFIGURATION_EVENT_TYPE } from "../../../common/constants";
|
|
6
6
|
import { LANGUAGE_CODE } from "../../../common/constants";
|
|
7
7
|
import { CreateGroupEventFormState } from '../../..';
|
|
8
|
-
|
|
9
|
-
config: Partial<GroupConfiguration>;
|
|
10
|
-
groupEvent?: Partial<GroupEvent>;
|
|
11
|
-
action: 'create' | 'edit';
|
|
12
|
-
host: HTMLNylasEditorTabsGroupElement;
|
|
13
|
-
resetLoadingState?: (e: CustomEvent) => void;
|
|
14
|
-
};
|
|
8
|
+
import { SchedulerGroupEventDetail } from '@nylas/core';
|
|
15
9
|
export declare class NylasEditorTabsGroup {
|
|
16
10
|
private formRef;
|
|
17
11
|
host: HTMLNylasEditorTabsGroupElement;
|
|
@@ -68,8 +62,12 @@ export declare class NylasEditorTabsGroup {
|
|
|
68
62
|
};
|
|
69
63
|
}>;
|
|
70
64
|
error?: string;
|
|
71
|
-
schedulerConfigChanged: EventEmitter<SchedulerGroupEventDetail
|
|
72
|
-
|
|
65
|
+
schedulerConfigChanged: EventEmitter<SchedulerGroupEventDetail & {
|
|
66
|
+
host: HTMLNylasEditorTabsGroupElement;
|
|
67
|
+
}>;
|
|
68
|
+
schedulerConfigCreated: EventEmitter<SchedulerGroupEventDetail & {
|
|
69
|
+
host: HTMLNylasEditorTabsGroupElement;
|
|
70
|
+
}>;
|
|
73
71
|
cancelButtonClick: EventEmitter<void>;
|
|
74
72
|
formSubmitted: EventEmitter<void>;
|
|
75
73
|
previewButtonClicked: EventEmitter<HTMLNylasEditorTabsGroupElement>;
|
|
@@ -108,7 +106,11 @@ export declare class NylasEditorTabsGroup {
|
|
|
108
106
|
selectedGroupEventChangedHandler(newConfig: GroupEventAPIData): void;
|
|
109
107
|
userChangedHandler(newUser: User): void;
|
|
110
108
|
selectedLanguageChangedHandler(newVal: LANGUAGE_CODE, oldVal: LANGUAGE_CODE): void;
|
|
111
|
-
schedulerConfigCreatedEventHandler(data: SchedulerGroupEventDetail
|
|
109
|
+
schedulerConfigCreatedEventHandler(data: SchedulerGroupEventDetail & {
|
|
110
|
+
host: HTMLNylasEditorTabsGroupElement;
|
|
111
|
+
}): Promise<CustomEvent<SchedulerGroupEventDetail & {
|
|
112
|
+
host: HTMLNylasEditorTabsGroupElement;
|
|
113
|
+
}>>;
|
|
112
114
|
setError(error: Error): Promise<void>;
|
|
113
115
|
resetError(): Promise<void>;
|
|
114
116
|
connectedCallback(): void;
|
|
@@ -189,4 +191,3 @@ export declare class NylasEditorTabsGroup {
|
|
|
189
191
|
onFeedbackClick(e: Event): void;
|
|
190
192
|
render(): any;
|
|
191
193
|
}
|
|
192
|
-
export {};
|
package/dist/types/components/scheduler-editor/nylas-event-duration/nylas-event-duration.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare class NylasEventDuration {
|
|
|
12
12
|
durationIncrement: number;
|
|
13
13
|
error: string;
|
|
14
14
|
durationMinutesOptions: {
|
|
15
|
-
value:
|
|
15
|
+
value: string;
|
|
16
16
|
label: string;
|
|
17
17
|
}[];
|
|
18
18
|
internals: ElementInternals;
|
|
@@ -29,7 +29,7 @@ export declare class NylasEventDuration {
|
|
|
29
29
|
disconnectedCallback(): void;
|
|
30
30
|
get isInternalsAvailable(): boolean;
|
|
31
31
|
setDurationMintueOptions(): {
|
|
32
|
-
value:
|
|
32
|
+
value: string;
|
|
33
33
|
label: string;
|
|
34
34
|
}[];
|
|
35
35
|
validateDuration(): string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
-
import { AdditionalParticipant, Appearance, AuthConfig, Calendar, Conference, Configuration, EmailTemplate, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NylasAuthType, NylasCalendar, NylasSchedulerBookingData as NylasSchedulerBookingData2, NylasSchedulerErrorResponse, NylasSchedulerResponse, Participant, RecurrenceDeleteOption, RecurrenceUpdateOption, ThemeConfig, TimePeriod, Timeslot } from "@nylas/core";
|
|
8
|
+
import { AdditionalParticipant, Appearance, AuthConfig, ButtonType, Calendar, Conference, Configuration, DropdownOption, EmailTemplate, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NylasAuthType, NylasCalendar, NylasSchedulerBookingData as NylasSchedulerBookingData2, NylasSchedulerErrorResponse, NylasSchedulerResponse, Participant, RecurrenceDeleteOption, RecurrenceUpdateOption, SchedulerGroupEventDetail, ThemeConfig, TimePeriod, Timeslot } from "@nylas/core";
|
|
9
9
|
import { AuthArgs, NylasApiRequest, User } from "./common/nylas-api-request";
|
|
10
10
|
import { CONFIGURATION_EVENT_TYPE, EXPERIMENTAL_FEATURES, LANGUAGE_CODE, Locale } from "./common/constants";
|
|
11
11
|
import { OpenHours } from "./components/scheduler-editor/nylas-availability-picker/nylas-availability-picker";
|
|
@@ -26,7 +26,7 @@ import { NylasSchedulerConfigStoreState, NylasSchedulerConfigStoreType } from ".
|
|
|
26
26
|
import { Config } from "@nylas/identity";
|
|
27
27
|
import { NylasSchedulerConfigConnector } from "./connector/nylas-scheduler-config-connector/index";
|
|
28
28
|
import { NylasSchedulerConnector } from "./connector/nylas-scheduler-connector/index";
|
|
29
|
-
export { AdditionalParticipant, Appearance, AuthConfig, Calendar, Conference, Configuration, EmailTemplate, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NylasAuthType, NylasCalendar, NylasSchedulerBookingData as NylasSchedulerBookingData2, NylasSchedulerErrorResponse, NylasSchedulerResponse, Participant, RecurrenceDeleteOption, RecurrenceUpdateOption, ThemeConfig, TimePeriod, Timeslot } from "@nylas/core";
|
|
29
|
+
export { AdditionalParticipant, Appearance, AuthConfig, ButtonType, Calendar, Conference, Configuration, DropdownOption, EmailTemplate, EventDetails, EventReminder, GroupConfiguration, GroupEvent, GroupEventAPIData, ImportGroupEventDetails, Notification, NylasAuthType, NylasCalendar, NylasSchedulerBookingData as NylasSchedulerBookingData2, NylasSchedulerErrorResponse, NylasSchedulerResponse, Participant, RecurrenceDeleteOption, RecurrenceUpdateOption, SchedulerGroupEventDetail, ThemeConfig, TimePeriod, Timeslot } from "@nylas/core";
|
|
30
30
|
export { AuthArgs, NylasApiRequest, User } from "./common/nylas-api-request";
|
|
31
31
|
export { CONFIGURATION_EVENT_TYPE, EXPERIMENTAL_FEATURES, LANGUAGE_CODE, Locale } from "./common/constants";
|
|
32
32
|
export { OpenHours } from "./components/scheduler-editor/nylas-availability-picker/nylas-availability-picker";
|
|
@@ -1103,7 +1103,7 @@ export namespace Components {
|
|
|
1103
1103
|
/**
|
|
1104
1104
|
* Event handler for the scheduler config created event.
|
|
1105
1105
|
*/
|
|
1106
|
-
"schedulerConfigCreatedEventHandler": (data: SchedulerGroupEventDetail) => Promise<CustomEvent<SchedulerGroupEventDetail>>;
|
|
1106
|
+
"schedulerConfigCreatedEventHandler": (data: SchedulerGroupEventDetail & { host: HTMLNylasEditorTabsGroupElement; }) => Promise<CustomEvent<SchedulerGroupEventDetail & { host: HTMLNylasEditorTabsGroupElement; }>>;
|
|
1107
1107
|
/**
|
|
1108
1108
|
* @standalone The scheduler preview link to use when the user clicks on the preview button. You can use a placeholder `{config.id}` to replace the configuration id anywhere in the link.
|
|
1109
1109
|
*/
|
|
@@ -3544,8 +3544,8 @@ declare global {
|
|
|
3544
3544
|
new (): HTMLNylasEditorTabsElement;
|
|
3545
3545
|
};
|
|
3546
3546
|
interface HTMLNylasEditorTabsGroupElementEventMap {
|
|
3547
|
-
"schedulerConfigChanged": SchedulerGroupEventDetail;
|
|
3548
|
-
"schedulerConfigCreated": SchedulerGroupEventDetail;
|
|
3547
|
+
"schedulerConfigChanged": SchedulerGroupEventDetail & { host: HTMLNylasEditorTabsGroupElement };
|
|
3548
|
+
"schedulerConfigCreated": SchedulerGroupEventDetail & { host: HTMLNylasEditorTabsGroupElement };
|
|
3549
3549
|
"cancelButtonClick": void;
|
|
3550
3550
|
"formSubmitted": void;
|
|
3551
3551
|
"previewButtonClicked": HTMLNylasEditorTabsGroupElement;
|
|
@@ -6201,11 +6201,11 @@ declare namespace LocalJSX {
|
|
|
6201
6201
|
/**
|
|
6202
6202
|
* Event emitted when the configuration is created/updated (after the request is complete). This fires for both create and edit actions.
|
|
6203
6203
|
*/
|
|
6204
|
-
"onSchedulerConfigChanged"?: (event: NylasEditorTabsGroupCustomEvent<SchedulerGroupEventDetail>) => void;
|
|
6204
|
+
"onSchedulerConfigChanged"?: (event: NylasEditorTabsGroupCustomEvent<SchedulerGroupEventDetail & { host: HTMLNylasEditorTabsGroupElement }>) => void;
|
|
6205
6205
|
/**
|
|
6206
6206
|
* Event emitted when the configuration is created (after the request is made). This fires for only for create action.
|
|
6207
6207
|
*/
|
|
6208
|
-
"onSchedulerConfigCreated"?: (event: NylasEditorTabsGroupCustomEvent<SchedulerGroupEventDetail>) => void;
|
|
6208
|
+
"onSchedulerConfigCreated"?: (event: NylasEditorTabsGroupCustomEvent<SchedulerGroupEventDetail & { host: HTMLNylasEditorTabsGroupElement }>) => void;
|
|
6209
6209
|
/**
|
|
6210
6210
|
* Event emitted when the value of a form field changes.
|
|
6211
6211
|
*/
|
|
@@ -29,7 +29,7 @@ export declare class NylasConnector implements NylasConnectorInterface {
|
|
|
29
29
|
<T>(path: string, method?: string | undefined, body?: any, parseJSON?: boolean | undefined, domain?: string | undefined, request?: RequestInit | undefined): Promise<T>;
|
|
30
30
|
<T_1>(path: string, method: string, body: any, parseJSON: false, domain?: string | undefined, request?: RequestInit | undefined): Promise<ReadableStream<Uint8Array> | null>;
|
|
31
31
|
<T_2>(path: string, method: string, body: any, parseJSON: true, domain?: string | undefined, request?: RequestInit | undefined): Promise<T_2>;
|
|
32
|
-
<T_3>(path: string, method: string, body: any, parseJSON: boolean, domain?: string | undefined, request?: RequestInit | undefined): Promise<ReadableStream<Uint8Array> |
|
|
32
|
+
<T_3>(path: string, method: string, body: any, parseJSON: boolean, domain?: string | undefined, request?: RequestInit | undefined): Promise<T_3 | ReadableStream<Uint8Array> | null>;
|
|
33
33
|
};
|
|
34
34
|
exchangeAuthCodeForTokenInfo(code: string): Promise<import("@nylas/core").TokenExchangeResponse | null>;
|
|
35
35
|
nylasDownloadFileRequest(path: string, method?: string | undefined, body?: any): Promise<Blob>;
|
|
@@ -53,7 +53,7 @@ export declare class NylaSchedulerAPIConnector {
|
|
|
53
53
|
reason?: string;
|
|
54
54
|
}): Promise<NylasSchedulerResponse<NylasEvent>>;
|
|
55
55
|
validateGroupEventTimeslot(timeslot: Timeslot): Promise<NylasErrorResponse | import("@nylas/core").NylasSuccessResponse<NylasEvent> | {
|
|
56
|
-
error: import("
|
|
56
|
+
error: import("../../../types").ErrorDetails;
|
|
57
57
|
}>;
|
|
58
58
|
}
|
|
59
59
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nylas/web-elements",
|
|
3
|
-
"version": "0.0.0-test-
|
|
3
|
+
"version": "0.0.0-test-20250320184617",
|
|
4
4
|
"description": "Nylas Web Elements",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"rrule": "2.8.1",
|
|
42
42
|
"sanitize-html": "^2.13.0",
|
|
43
43
|
"sortablejs": "^1.15.6",
|
|
44
|
-
"@nylas/
|
|
45
|
-
"@nylas/
|
|
44
|
+
"@nylas/identity": "^3.0.0",
|
|
45
|
+
"@nylas/core": "^0.0.0-test-20250320184617"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@playwright/test": "^1.50.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["buttonComponentCss","ButtonComponentStyle0","ButtonComponent","render","className","this","variant","disabled","h","key","class","type","title","tooltip","onClick","clickHandler","onMouseOver","mouseOverHandler","onMouseOut","mouseOutHandler","onFocus","focusHandler","onBlur","blurHandler","isLoading","slot","loadingCss","LoadingIconStyle0","LoadingIcon"],"sources":["src/components/design-system/button-component/button-component.scss?tag=button-component&encapsulation=scoped","src/components/design-system/button-component/button-component.tsx","src/common/icons/loading.css?tag=loading-icon&encapsulation=shadow","src/common/icons/loading.tsx"],"sourcesContent":["@import '../../../common/mixins/buttons.scss';\n@import '../../../common/styles/variables.scss';\n\nbutton {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 0.75rem;\n height: 48px;\n border: none;\n border-radius: var(--nylas-border-radius-2x);\n font-size: 16px;\n line-height: 24px;\n padding: 0 1rem;\n cursor: pointer;\n font-family: var(--nylas-font-family);\n font-weight: 600;\n width: 100%;\n\n @media #{$mobile} {\n width: 100%;\n }\n\n &.button-primary {\n @include primary-button;\n }\n\n &.button-basic {\n border: 1px solid var(--nylas-base-300);\n color: var(--nylas-base-700);\n background: transparent;\n\n &:hover {\n background: transparent;\n border-color: var(--nylas-primary);\n }\n\n &:active {\n background: transparent;\n border-color: var(--nylas-base-600);\n border-width: 2px;\n }\n\n &:disabled {\n background: transparent;\n border-color: var(--nylas-base-300);\n color: var(--nylas-base-300);\n cursor: not-allowed;\n }\n }\n\n &.button-destructive {\n border: 1px solid var(--nylas-base-300);\n color: var(--nylas-error);\n background: transparent;\n\n &:hover {\n background: transparent;\n border-color: var(--nylas-error);\n }\n\n &:active {\n background: transparent;\n border-color: var(--nylas-error-pressed);\n border-width: 2px;\n color: var(--nylas-error-pressed);\n }\n\n &:disabled {\n background: transparent;\n border-color: var(--nylas-base-300);\n color: var(--nylas-base-300);\n cursor: not-allowed;\n }\n }\n\n &.button-invisible {\n background: transparent;\n color: var(--nylas-base-800);\n border: none;\n\n &:hover {\n background: var(--nylas-base-50);\n color: var(--nylas-primary);\n }\n\n &:active {\n background: var(--nylas-base-50);\n color: var(--nylas-base-850);\n }\n\n &:disabled {\n background: transparent;\n color: var(--nylas-base-300);\n cursor: not-allowed;\n }\n }\n}\n","import { Component, Prop, h } from '@stencil/core';\ntype ButtonType = 'primary' | 'basic' | 'destructive' | 'invisible';\n\n@Component({\n tag: 'button-component',\n styleUrl: 'button-component.scss',\n scoped: true,\n})\nexport class ButtonComponent {\n // Define a prop to accept the button type\n @Prop() variant: ButtonType = 'primary';\n\n // Define a prop for disabled state\n @Prop() disabled: boolean = false;\n\n @Prop() type: string = 'button';\n @Prop() tooltip: string = '';\n @Prop() isLoading: boolean = false;\n @Prop() clickHandler?: (event: MouseEvent) => void;\n @Prop() mouseOverHandler?: (event: MouseEvent) => void;\n @Prop() mouseOutHandler?: (event: MouseEvent) => void;\n @Prop() focusHandler?: (event: FocusEvent) => void;\n @Prop() blurHandler?: (event: FocusEvent) => void;\n\n render() {\n const className = `button-${this.variant}` + (this.disabled ? ' disabled' : '');\n\n return (\n <button\n class={className}\n disabled={this.disabled}\n type=\"type\"\n title={this.tooltip}\n onClick={this.clickHandler}\n onMouseOver={this.mouseOverHandler}\n onMouseOut={this.mouseOutHandler}\n onFocus={this.focusHandler}\n onBlur={this.blurHandler}\n >\n {!!this.isLoading && <loading-icon slot=\"icon\"></loading-icon>}\n <slot></slot>\n </button>\n );\n }\n}\n",".wave {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.dot {\n width: 4px;\n height: 4px;\n background-color: var(--dot-color, white);\n border-radius: 50%;\n margin: 0 2px;\n animation: wave 1.5s infinite ease-in-out;\n}\n\n.dot:nth-child(2) {\n animation-delay: 0.2s;\n}\n\n.dot:nth-child(3) {\n animation-delay: 0.4s;\n}\n\n@keyframes wave {\n 0%,\n 60%,\n 100% {\n transform: translateY(0);\n }\n 30% {\n transform: translateY(-4px);\n }\n}\n","import { Component, Prop, h } from '@stencil/core';\n\n@Component({\n tag: 'loading-icon',\n styleUrl: 'loading.css',\n shadow: true,\n})\nexport class LoadingIcon {\n @Prop() width: string = '15';\n @Prop() height: string = '15';\n\n render() {\n return (\n // Loading icon svg\n <div class=\"wave\">\n <div class=\"dot\"></div>\n <div class=\"dot\"></div>\n <div class=\"dot\"></div>\n </div>\n );\n }\n}\n"],"mappings":"2CAAA,MAAMA,EAAqB,o1EAC3B,MAAAC,EAAeD,E,MCOFE,EAAe,M,sCAEI,U,cAGF,M,UAEL,S,aACG,G,eACG,M,kJAO7B,MAAAC,GACE,MAAMC,EAAY,UAAUC,KAAKC,WAAaD,KAAKE,SAAW,YAAc,IAE5E,OACEC,EAAA,UAAAC,IAAA,2CACEC,MAAON,EACPG,SAAUF,KAAKE,SACfI,KAAK,OACLC,MAAOP,KAAKQ,QACZC,QAAST,KAAKU,aACdC,YAAaX,KAAKY,iBAClBC,WAAYb,KAAKc,gBACjBC,QAASf,KAAKgB,aACdC,OAAQjB,KAAKkB,eAEVlB,KAAKmB,WAAahB,EAAA,gBAAciB,KAAK,SACxCjB,EAAA,QAAAC,IAAA,6C,aCxCR,MAAMiB,EAAa,6WACnB,MAAAC,EAAeD,E,MCMFE,EAAW,M,oCACE,K,YACC,I,CAEzB,MAAAzB,GACE,OAEEK,EAAA,OAAAC,IAAA,2CAAKC,MAAM,QACTF,EAAA,OAAAC,IAAA,2CAAKC,MAAM,QACXF,EAAA,OAAAC,IAAA,2CAAKC,MAAM,QACXF,EAAA,OAAAC,IAAA,2CAAKC,MAAM,Q"}
|