@react-cupertino-ui/mail-composer 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +24 -0
- package/dist/index.css +188 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +31 -0
- package/dist/index.scss +197 -0
- package/package.json +35 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Anderson Lima
|
|
4
|
+
|
|
5
|
+
This project is inspired by Apple's design principles but is not affiliated with, endorsed, or sponsored by Apple Inc.
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
.react-cupertino-ui-mail-composer {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 10px;
|
|
4
|
+
/* Card Modal style */
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
background-color: #f2f2f7;
|
|
9
|
+
z-index: 1000;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
border-top-left-radius: 12px;
|
|
13
|
+
border-top-right-radius: 12px;
|
|
14
|
+
box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
|
|
15
|
+
transform: translateY(0);
|
|
16
|
+
animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
17
|
+
}
|
|
18
|
+
@media (min-width: 768px) {
|
|
19
|
+
.react-cupertino-ui-mail-composer {
|
|
20
|
+
top: 50%;
|
|
21
|
+
left: 50%;
|
|
22
|
+
transform: translate(-50%, -50%);
|
|
23
|
+
width: 600px;
|
|
24
|
+
height: 700px;
|
|
25
|
+
border-radius: 12px;
|
|
26
|
+
bottom: auto;
|
|
27
|
+
animation: zoom-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@media (prefers-color-scheme: dark) {
|
|
31
|
+
.react-cupertino-ui-mail-composer {
|
|
32
|
+
background-color: #1c1c1e;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
.react-cupertino-ui-mail-composer .composer-header {
|
|
36
|
+
display: flex;
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
align-items: center;
|
|
39
|
+
padding: 12px 16px;
|
|
40
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
41
|
+
}
|
|
42
|
+
@media (prefers-color-scheme: dark) {
|
|
43
|
+
.react-cupertino-ui-mail-composer .composer-header {
|
|
44
|
+
border-bottom-color: rgba(255, 255, 255, 0.1);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.react-cupertino-ui-mail-composer .composer-header button {
|
|
48
|
+
border: none;
|
|
49
|
+
background: none;
|
|
50
|
+
padding: 4px;
|
|
51
|
+
font-size: 17px;
|
|
52
|
+
cursor: pointer;
|
|
53
|
+
color: #007aff;
|
|
54
|
+
}
|
|
55
|
+
.react-cupertino-ui-mail-composer .composer-header button:disabled {
|
|
56
|
+
color: #8e8e93;
|
|
57
|
+
cursor: default;
|
|
58
|
+
}
|
|
59
|
+
.react-cupertino-ui-mail-composer .composer-header .title {
|
|
60
|
+
font-size: 17px;
|
|
61
|
+
font-weight: 600;
|
|
62
|
+
color: #000;
|
|
63
|
+
}
|
|
64
|
+
@media (prefers-color-scheme: dark) {
|
|
65
|
+
.react-cupertino-ui-mail-composer .composer-header .title {
|
|
66
|
+
color: #fff;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.react-cupertino-ui-mail-composer .send-button {
|
|
70
|
+
width: 30px;
|
|
71
|
+
height: 30px;
|
|
72
|
+
border-radius: 50%;
|
|
73
|
+
background-color: #007aff !important;
|
|
74
|
+
color: white !important;
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
}
|
|
79
|
+
.react-cupertino-ui-mail-composer .send-button:disabled {
|
|
80
|
+
background-color: #e5e5ea !important;
|
|
81
|
+
color: #8e8e93 !important;
|
|
82
|
+
}
|
|
83
|
+
@media (prefers-color-scheme: dark) {
|
|
84
|
+
.react-cupertino-ui-mail-composer .send-button:disabled {
|
|
85
|
+
background-color: #2c2c2e !important;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
.react-cupertino-ui-mail-composer .composer-fields {
|
|
89
|
+
flex: 1;
|
|
90
|
+
display: flex;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
background: white;
|
|
93
|
+
}
|
|
94
|
+
@media (prefers-color-scheme: dark) {
|
|
95
|
+
.react-cupertino-ui-mail-composer .composer-fields {
|
|
96
|
+
background: #1c1c1e;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
.react-cupertino-ui-mail-composer .field-row {
|
|
100
|
+
display: flex;
|
|
101
|
+
align-items: center;
|
|
102
|
+
padding: 10px 16px;
|
|
103
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
104
|
+
min-height: 44px;
|
|
105
|
+
}
|
|
106
|
+
@media (prefers-color-scheme: dark) {
|
|
107
|
+
.react-cupertino-ui-mail-composer .field-row {
|
|
108
|
+
border-bottom-color: rgba(255, 255, 255, 0.1);
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
.react-cupertino-ui-mail-composer .field-row.animate-in {
|
|
112
|
+
animation: expand-row 0.2s ease-out;
|
|
113
|
+
}
|
|
114
|
+
.react-cupertino-ui-mail-composer .field-row label {
|
|
115
|
+
color: #8e8e93;
|
|
116
|
+
font-size: 15px;
|
|
117
|
+
margin-right: 8px;
|
|
118
|
+
}
|
|
119
|
+
.react-cupertino-ui-mail-composer .field-row .ghost-input {
|
|
120
|
+
flex: 1;
|
|
121
|
+
border: none;
|
|
122
|
+
outline: none;
|
|
123
|
+
background: transparent;
|
|
124
|
+
font-size: 15px;
|
|
125
|
+
color: #000;
|
|
126
|
+
}
|
|
127
|
+
@media (prefers-color-scheme: dark) {
|
|
128
|
+
.react-cupertino-ui-mail-composer .field-row .ghost-input {
|
|
129
|
+
color: #fff;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
.react-cupertino-ui-mail-composer .field-row .details-toggle {
|
|
133
|
+
border: none;
|
|
134
|
+
background: none;
|
|
135
|
+
color: #007aff;
|
|
136
|
+
font-size: 13px;
|
|
137
|
+
cursor: pointer;
|
|
138
|
+
margin-left: 8px;
|
|
139
|
+
}
|
|
140
|
+
.react-cupertino-ui-mail-composer .body-input {
|
|
141
|
+
flex: 1;
|
|
142
|
+
border: none;
|
|
143
|
+
outline: none;
|
|
144
|
+
resize: none;
|
|
145
|
+
padding: 16px;
|
|
146
|
+
background: transparent;
|
|
147
|
+
font-size: 16px;
|
|
148
|
+
font-family: inherit;
|
|
149
|
+
color: #000;
|
|
150
|
+
}
|
|
151
|
+
@media (prefers-color-scheme: dark) {
|
|
152
|
+
.react-cupertino-ui-mail-composer .body-input {
|
|
153
|
+
color: #fff;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
@keyframes slide-up {
|
|
158
|
+
from {
|
|
159
|
+
transform: translateY(100%);
|
|
160
|
+
}
|
|
161
|
+
to {
|
|
162
|
+
transform: translateY(0);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
@keyframes zoom-in {
|
|
166
|
+
from {
|
|
167
|
+
transform: translate(-50%, -50%) scale(0.95);
|
|
168
|
+
opacity: 0;
|
|
169
|
+
}
|
|
170
|
+
to {
|
|
171
|
+
transform: translate(-50%, -50%) scale(1);
|
|
172
|
+
opacity: 1;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
@keyframes expand-row {
|
|
176
|
+
from {
|
|
177
|
+
height: 0;
|
|
178
|
+
min-height: 0;
|
|
179
|
+
opacity: 0;
|
|
180
|
+
padding: 0 16px;
|
|
181
|
+
}
|
|
182
|
+
to {
|
|
183
|
+
height: 44px;
|
|
184
|
+
min-height: 44px;
|
|
185
|
+
opacity: 1;
|
|
186
|
+
padding: 10px 16px;
|
|
187
|
+
}
|
|
188
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { BaseProps } from "@react-cupertino-ui/shared/lib/interfaces/BaseProps";
|
|
3
|
+
import "./index.scss";
|
|
4
|
+
export interface MailComposerProps extends Omit<BaseProps<HTMLDivElement>, "children"> {
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
onSend: (data: {
|
|
8
|
+
to: string;
|
|
9
|
+
cc: string;
|
|
10
|
+
subject: string;
|
|
11
|
+
body: string;
|
|
12
|
+
}) => void;
|
|
13
|
+
initialData?: {
|
|
14
|
+
to?: string;
|
|
15
|
+
cc?: string;
|
|
16
|
+
subject?: string;
|
|
17
|
+
body?: string;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
declare const MailComposer: React.ForwardRefExoticComponent<MailComposerProps & React.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export { MailComposer };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cn } from "@react-cupertino-ui/shared/lib/utils";
|
|
4
|
+
import { ArrowUp } from "lucide-react";
|
|
5
|
+
import "./index.scss";
|
|
6
|
+
const MailComposer = React.forwardRef(({ className, isOpen, onClose, onSend, initialData, ...props }, ref) => {
|
|
7
|
+
const [to, setTo] = React.useState(initialData?.to || "");
|
|
8
|
+
const [cc, setCc] = React.useState(initialData?.cc || "");
|
|
9
|
+
const [subject, setSubject] = React.useState(initialData?.subject || "");
|
|
10
|
+
const [body, setBody] = React.useState(initialData?.body || "");
|
|
11
|
+
const [isCcVisible, setIsCcVisible] = React.useState(!!initialData?.cc);
|
|
12
|
+
React.useEffect(() => {
|
|
13
|
+
if (isOpen) {
|
|
14
|
+
// document.body.style.overflow = "hidden";
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
// document.body.style.overflow = "";
|
|
18
|
+
}
|
|
19
|
+
return () => {
|
|
20
|
+
// document.body.style.overflow = "";
|
|
21
|
+
};
|
|
22
|
+
}, [isOpen]);
|
|
23
|
+
if (!isOpen)
|
|
24
|
+
return null;
|
|
25
|
+
const handleSend = () => {
|
|
26
|
+
onSend({ to, cc, subject, body });
|
|
27
|
+
};
|
|
28
|
+
return (_jsxs("div", { ref: ref, className: cn("react-cupertino-ui-mail-composer", className), role: "dialog", "aria-modal": "true", ...props, children: [_jsxs("div", { className: "composer-header", children: [_jsx("button", { className: "cancel-button", onClick: onClose, children: "Cancel" }), _jsx("span", { className: "title", children: "New Message" }), _jsx("button", { className: "send-button", onClick: handleSend, disabled: !to, children: _jsx(ArrowUp, { size: 20, fill: "currentColor" }) })] }), _jsxs("div", { className: "composer-fields", children: [_jsxs("div", { className: "field-row", children: [_jsx("label", { htmlFor: "to-field", children: "To:" }), _jsx("input", { id: "to-field", type: "text", value: to, onChange: (e) => setTo(e.target.value), className: "ghost-input" }), _jsx("button", { className: "details-toggle", onClick: () => setIsCcVisible(!isCcVisible), "aria-label": "Show Cc/Bcc", children: isCcVisible ? "Hide" : "Cc/Bcc" })] }), isCcVisible && (_jsxs("div", { className: "field-row animate-in", children: [_jsx("label", { htmlFor: "cc-field", children: "Cc:" }), _jsx("input", { id: "cc-field", type: "text", value: cc, onChange: (e) => setCc(e.target.value), className: "ghost-input" })] })), _jsxs("div", { className: "field-row", children: [_jsx("label", { htmlFor: "subject-field", children: "Subject:" }), _jsx("input", { id: "subject-field", type: "text", value: subject, onChange: (e) => setSubject(e.target.value), className: "ghost-input" })] }), _jsx("textarea", { className: "body-input", value: body, onChange: (e) => setBody(e.target.value), placeholder: "" })] })] }));
|
|
29
|
+
});
|
|
30
|
+
MailComposer.displayName = "MailComposer";
|
|
31
|
+
export { MailComposer };
|
package/dist/index.scss
ADDED
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
.react-cupertino-ui-mail-composer {
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 10px;
|
|
4
|
+
/* Card Modal style */
|
|
5
|
+
left: 0;
|
|
6
|
+
right: 0;
|
|
7
|
+
bottom: 0;
|
|
8
|
+
background-color: #f2f2f7;
|
|
9
|
+
z-index: 1000;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
border-top-left-radius: 12px;
|
|
13
|
+
border-top-right-radius: 12px;
|
|
14
|
+
box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
|
|
15
|
+
transform: translateY(0);
|
|
16
|
+
animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
|
|
17
|
+
|
|
18
|
+
@media (min-width: 768px) {
|
|
19
|
+
top: 50%;
|
|
20
|
+
left: 50%;
|
|
21
|
+
transform: translate(-50%, -50%);
|
|
22
|
+
width: 600px;
|
|
23
|
+
height: 700px;
|
|
24
|
+
border-radius: 12px;
|
|
25
|
+
bottom: auto;
|
|
26
|
+
animation: zoom-in 0.2s cubic-bezier(0.16, 1, 0.3, 1);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (prefers-color-scheme: dark) {
|
|
30
|
+
background-color: #1c1c1e;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.composer-header {
|
|
34
|
+
display: flex;
|
|
35
|
+
justify-content: space-between;
|
|
36
|
+
align-items: center;
|
|
37
|
+
padding: 12px 16px;
|
|
38
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
39
|
+
|
|
40
|
+
@media (prefers-color-scheme: dark) {
|
|
41
|
+
border-bottom-color: rgba(255, 255, 255, 0.1);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
button {
|
|
45
|
+
border: none;
|
|
46
|
+
background: none;
|
|
47
|
+
padding: 4px;
|
|
48
|
+
font-size: 17px;
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
color: #007aff;
|
|
51
|
+
|
|
52
|
+
&:disabled {
|
|
53
|
+
color: #8e8e93;
|
|
54
|
+
cursor: default;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.title {
|
|
59
|
+
font-size: 17px;
|
|
60
|
+
font-weight: 600;
|
|
61
|
+
color: #000;
|
|
62
|
+
|
|
63
|
+
@media (prefers-color-scheme: dark) {
|
|
64
|
+
color: #fff;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.send-button {
|
|
70
|
+
width: 30px;
|
|
71
|
+
height: 30px;
|
|
72
|
+
border-radius: 50%;
|
|
73
|
+
background-color: #007aff !important;
|
|
74
|
+
color: white !important;
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
justify-content: center;
|
|
78
|
+
|
|
79
|
+
&:disabled {
|
|
80
|
+
background-color: #e5e5ea !important;
|
|
81
|
+
color: #8e8e93 !important;
|
|
82
|
+
|
|
83
|
+
@media (prefers-color-scheme: dark) {
|
|
84
|
+
background-color: #2c2c2e !important;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.composer-fields {
|
|
90
|
+
flex: 1;
|
|
91
|
+
display: flex;
|
|
92
|
+
flex-direction: column;
|
|
93
|
+
background: white;
|
|
94
|
+
|
|
95
|
+
@media (prefers-color-scheme: dark) {
|
|
96
|
+
background: #1c1c1e;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.field-row {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
padding: 10px 16px;
|
|
104
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
|
|
105
|
+
min-height: 44px;
|
|
106
|
+
|
|
107
|
+
@media (prefers-color-scheme: dark) {
|
|
108
|
+
border-bottom-color: rgba(255, 255, 255, 0.1);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.animate-in {
|
|
112
|
+
animation: expand-row 0.2s ease-out;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
label {
|
|
116
|
+
color: #8e8e93;
|
|
117
|
+
font-size: 15px;
|
|
118
|
+
margin-right: 8px;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.ghost-input {
|
|
122
|
+
flex: 1;
|
|
123
|
+
border: none;
|
|
124
|
+
outline: none;
|
|
125
|
+
background: transparent;
|
|
126
|
+
font-size: 15px;
|
|
127
|
+
color: #000;
|
|
128
|
+
|
|
129
|
+
@media (prefers-color-scheme: dark) {
|
|
130
|
+
color: #fff;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.details-toggle {
|
|
135
|
+
border: none;
|
|
136
|
+
background: none;
|
|
137
|
+
color: #007aff;
|
|
138
|
+
font-size: 13px;
|
|
139
|
+
cursor: pointer;
|
|
140
|
+
margin-left: 8px;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.body-input {
|
|
145
|
+
flex: 1;
|
|
146
|
+
border: none;
|
|
147
|
+
outline: none;
|
|
148
|
+
resize: none;
|
|
149
|
+
padding: 16px;
|
|
150
|
+
background: transparent;
|
|
151
|
+
font-size: 16px;
|
|
152
|
+
font-family: inherit;
|
|
153
|
+
color: #000;
|
|
154
|
+
|
|
155
|
+
@media (prefers-color-scheme: dark) {
|
|
156
|
+
color: #fff;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@keyframes slide-up {
|
|
162
|
+
from {
|
|
163
|
+
transform: translateY(100%);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
to {
|
|
167
|
+
transform: translateY(0);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@keyframes zoom-in {
|
|
172
|
+
from {
|
|
173
|
+
transform: translate(-50%, -50%) scale(0.95);
|
|
174
|
+
opacity: 0;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
to {
|
|
178
|
+
transform: translate(-50%, -50%) scale(1);
|
|
179
|
+
opacity: 1;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
@keyframes expand-row {
|
|
184
|
+
from {
|
|
185
|
+
height: 0;
|
|
186
|
+
min-height: 0;
|
|
187
|
+
opacity: 0;
|
|
188
|
+
padding: 0 16px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
to {
|
|
192
|
+
height: 44px;
|
|
193
|
+
min-height: 44px;
|
|
194
|
+
opacity: 1;
|
|
195
|
+
padding: 10px 16px;
|
|
196
|
+
}
|
|
197
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@react-cupertino-ui/mail-composer",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "MailComposer component from React Cupertino UI",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"./dist/**/*.css",
|
|
14
|
+
"./dist/**/*.scss"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc -p tsconfig.build.json && npm run build:styles",
|
|
18
|
+
"build:styles": "node ../../../scripts/build-styles.mjs"
|
|
19
|
+
},
|
|
20
|
+
"peerDependencies": {
|
|
21
|
+
"lucide-react": "^0.417.0",
|
|
22
|
+
"react": "^18.3.1",
|
|
23
|
+
"react-dom": "^18.3.1"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@react-cupertino-ui/shared": "workspace:*"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"typescript": "^5.2.2"
|
|
30
|
+
},
|
|
31
|
+
"gitHead": "3f53987bdb936a331665691b517c2ba9984777f8",
|
|
32
|
+
"publishConfig": {
|
|
33
|
+
"access": "public"
|
|
34
|
+
}
|
|
35
|
+
}
|