@ecohouse/ui 0.1.57 → 0.1.58
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/index.cjs +396 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +39 -2
- package/dist/index.d.ts +39 -2
- package/dist/index.js +386 -32
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/NotificationStatus/NotificationStatus.stories.tsx +86 -0
- package/src/components/NotificationStatus/NotificationStatus.tsx +255 -0
- package/src/components/NotificationStatus/index.ts +9 -0
- package/src/components/index.ts +10 -0
- package/src/icons/DoubleCheck/DoubleCheckIcon.tsx +25 -0
- package/src/icons/DoubleCheck/DoubleCheckIcon.web.tsx +31 -0
- package/src/icons/DoubleCheck/doubleCheckPath.ts +3 -0
- package/src/icons/DoubleCheck/index.ts +1 -0
- package/src/icons/NotificationCancelled/NotificationCancelledIcon.tsx +22 -0
- package/src/icons/NotificationCancelled/NotificationCancelledIcon.web.tsx +21 -0
- package/src/icons/NotificationCancelled/index.ts +1 -0
- package/src/icons/NotificationCheckout/NotificationCheckoutIcon.tsx +22 -0
- package/src/icons/NotificationCheckout/NotificationCheckoutIcon.web.tsx +21 -0
- package/src/icons/NotificationCheckout/index.ts +1 -0
- package/src/icons/NotificationIcons.stories.tsx +99 -0
- package/src/icons/NotificationQrCode/NotificationQrCodeIcon.tsx +25 -0
- package/src/icons/NotificationQrCode/NotificationQrCodeIcon.web.tsx +24 -0
- package/src/icons/NotificationQrCode/index.ts +1 -0
- package/src/icons/NotificationSuccess/NotificationSuccessIcon.tsx +26 -0
- package/src/icons/NotificationSuccess/NotificationSuccessIcon.web.tsx +25 -0
- package/src/icons/NotificationSuccess/index.ts +1 -0
- package/src/icons/NotificationWarning/NotificationWarningIcon.tsx +22 -0
- package/src/icons/NotificationWarning/NotificationWarningIcon.web.tsx +21 -0
- package/src/icons/NotificationWarning/index.ts +1 -0
- package/src/icons/index.ts +6 -0
- package/src/icons/registry.ts +20 -0
- package/src/index.ts +13 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { IconProps } from "../types";
|
|
2
|
+
|
|
3
|
+
const QR_PATH =
|
|
4
|
+
"M17.4167 17.4167H17.425M26.5833 17.4167H26.5917M17.4167 26.5833H17.425M22.8333 22.8333H22.8417M26.5833 26.5833H26.5917M26.1667 29.5H29.5V26.1667M23.6667 25.75V29.5M29.5 23.6667H25.75M25 20.3333H28.1667C28.6334 20.3333 28.8667 20.3333 29.045 20.2425C29.2018 20.1626 29.3293 20.0351 29.4092 19.8783C29.5 19.7001 29.5 19.4667 29.5 19V15.8333C29.5 15.3666 29.5 15.1333 29.4092 14.955C29.3293 14.7982 29.2018 14.6707 29.045 14.5908C28.8667 14.5 28.6334 14.5 28.1667 14.5H25C24.5333 14.5 24.2999 14.5 24.1217 14.5908C23.9649 14.6707 23.8374 14.7982 23.7575 14.955C23.6667 15.1333 23.6667 15.3666 23.6667 15.8333V19C23.6667 19.4667 23.6667 19.7001 23.7575 19.8783C23.8374 20.0351 23.9649 20.1626 24.1217 20.2425C24.2999 20.3333 24.5333 20.3333 25 20.3333ZM15.8333 20.3333H19C19.4667 20.3333 19.7001 20.3333 19.8783 20.2425C20.0351 20.1626 20.1626 20.0351 20.2425 19.8783C20.3333 19.7001 20.3333 19.4667 20.3333 19V15.8333C20.3333 15.3666 20.3333 15.1333 20.2425 14.955C20.1626 14.7982 20.0351 14.6707 19.8783 14.5908C19.7001 14.5 19.4667 14.5 19 14.5H15.8333C15.3666 14.5 15.1333 14.5 14.955 14.5908C14.7982 14.6707 14.6707 14.7982 14.5908 14.955C14.5 15.1333 14.5 15.3666 14.5 15.8333V19C14.5 19.4667 14.5 19.7001 14.5908 19.8783C14.6707 20.0351 14.7982 20.1626 14.955 20.2425C15.1333 20.3333 15.3666 20.3333 15.8333 20.3333ZM15.8333 29.5H19C19.4667 29.5 19.7001 29.5 19.8783 29.4092C20.0351 29.3293 20.1626 29.2018 20.2425 29.045C20.3333 28.8667 20.3333 28.6334 20.3333 28.1667V25C20.3333 24.5333 20.3333 24.2999 20.2425 24.1217C20.1626 23.9649 20.0351 23.8374 19.8783 23.7575C19.7001 23.6667 19.4667 23.6667 19 23.6667H15.8333C15.3666 23.6667 15.1333 23.6667 14.955 23.7575C14.7982 23.8374 14.6707 23.9649 14.5908 24.1217C14.5 24.2999 14.5 24.5333 14.5 25V28.1667C14.5 28.6334 14.5 28.8667 14.5908 29.045C14.6707 29.2018 14.7982 29.3293 14.955 29.4092C15.1333 29.5 15.3666 29.5 15.8333 29.5Z";
|
|
5
|
+
|
|
6
|
+
export function NotificationQrCodeIcon({
|
|
7
|
+
size = 44,
|
|
8
|
+
color = "#B46436",
|
|
9
|
+
strokeWidth = 2,
|
|
10
|
+
fillOpacity = 0.06,
|
|
11
|
+
}: IconProps) {
|
|
12
|
+
return (
|
|
13
|
+
<svg width={size} height={size} viewBox="0 0 44 44" fill="none" aria-hidden="true">
|
|
14
|
+
<rect width="44" height="44" rx="22" fill={color} fillOpacity={fillOpacity} />
|
|
15
|
+
<path
|
|
16
|
+
d={QR_PATH}
|
|
17
|
+
stroke={color}
|
|
18
|
+
strokeWidth={strokeWidth}
|
|
19
|
+
strokeLinecap="round"
|
|
20
|
+
strokeLinejoin="round"
|
|
21
|
+
/>
|
|
22
|
+
</svg>
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NotificationQrCodeIcon } from "./NotificationQrCodeIcon";
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import Svg, { Path } from "react-native-svg";
|
|
2
|
+
import type { IconProps } from "../types";
|
|
3
|
+
|
|
4
|
+
export function NotificationSuccessIcon({
|
|
5
|
+
size = 44,
|
|
6
|
+
color = "#34A853",
|
|
7
|
+
strokeWidth = 2,
|
|
8
|
+
fillOpacity = 0.08,
|
|
9
|
+
}: IconProps) {
|
|
10
|
+
return (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 44 44" fill="none">
|
|
12
|
+
<Path
|
|
13
|
+
d="M0 22C0 9.84974 9.84974 0 22 0C34.1503 0 44 9.84974 44 22C44 34.1503 34.1503 44 22 44C9.84974 44 0 34.1503 0 22Z"
|
|
14
|
+
fill={color}
|
|
15
|
+
fillOpacity={fillOpacity}
|
|
16
|
+
/>
|
|
17
|
+
<Path
|
|
18
|
+
d="M28.6666 17L19.4999 26.1667L15.3333 22"
|
|
19
|
+
stroke={color}
|
|
20
|
+
strokeWidth={strokeWidth}
|
|
21
|
+
strokeLinecap="round"
|
|
22
|
+
strokeLinejoin="round"
|
|
23
|
+
/>
|
|
24
|
+
</Svg>
|
|
25
|
+
);
|
|
26
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { IconProps } from "../types";
|
|
2
|
+
|
|
3
|
+
export function NotificationSuccessIcon({
|
|
4
|
+
size = 44,
|
|
5
|
+
color = "#34A853",
|
|
6
|
+
strokeWidth = 2,
|
|
7
|
+
fillOpacity = 0.08,
|
|
8
|
+
}: IconProps) {
|
|
9
|
+
return (
|
|
10
|
+
<svg width={size} height={size} viewBox="0 0 44 44" fill="none" aria-hidden="true">
|
|
11
|
+
<path
|
|
12
|
+
d="M0 22C0 9.84974 9.84974 0 22 0C34.1503 0 44 9.84974 44 22C44 34.1503 34.1503 44 22 44C9.84974 44 0 34.1503 0 22Z"
|
|
13
|
+
fill={color}
|
|
14
|
+
fillOpacity={fillOpacity}
|
|
15
|
+
/>
|
|
16
|
+
<path
|
|
17
|
+
d="M28.6666 17L19.4999 26.1667L15.3333 22"
|
|
18
|
+
stroke={color}
|
|
19
|
+
strokeWidth={strokeWidth}
|
|
20
|
+
strokeLinecap="round"
|
|
21
|
+
strokeLinejoin="round"
|
|
22
|
+
/>
|
|
23
|
+
</svg>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NotificationSuccessIcon } from "./NotificationSuccessIcon";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Svg, { Path, Rect } from "react-native-svg";
|
|
2
|
+
import type { IconProps } from "../types";
|
|
3
|
+
|
|
4
|
+
export function NotificationWarningIcon({
|
|
5
|
+
size = 44,
|
|
6
|
+
color = "#A63E3E",
|
|
7
|
+
strokeWidth = 2,
|
|
8
|
+
fillOpacity = 0.08,
|
|
9
|
+
}: IconProps) {
|
|
10
|
+
return (
|
|
11
|
+
<Svg width={size} height={size} viewBox="0 0 44 44" fill="none">
|
|
12
|
+
<Rect width="44" height="44" rx="22" fill={color} fillOpacity={fillOpacity} />
|
|
13
|
+
<Path
|
|
14
|
+
d="M21.9999 19.5V22.8333M21.9999 26.1667H22.0082M20.846 15.2431L13.9919 27.082C13.6117 27.7386 13.4216 28.0669 13.4497 28.3364C13.4742 28.5715 13.5974 28.785 13.7885 28.924C14.0077 29.0833 14.387 29.0833 15.1458 29.0833H28.8539C29.6127 29.0833 29.9921 29.0833 30.2112 28.924C30.4024 28.785 30.5255 28.5715 30.55 28.3364C30.5781 28.0669 30.388 27.7386 30.0078 27.082L23.1538 15.2431C22.775 14.5888 22.5856 14.2617 22.3385 14.1518C22.1229 14.0559 21.8768 14.0559 21.6613 14.1518C21.4142 14.2617 21.2248 14.5888 20.846 15.2431Z"
|
|
15
|
+
stroke={color}
|
|
16
|
+
strokeWidth={strokeWidth}
|
|
17
|
+
strokeLinecap="round"
|
|
18
|
+
strokeLinejoin="round"
|
|
19
|
+
/>
|
|
20
|
+
</Svg>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IconProps } from "../types";
|
|
2
|
+
|
|
3
|
+
export function NotificationWarningIcon({
|
|
4
|
+
size = 44,
|
|
5
|
+
color = "#A63E3E",
|
|
6
|
+
strokeWidth = 2,
|
|
7
|
+
fillOpacity = 0.08,
|
|
8
|
+
}: IconProps) {
|
|
9
|
+
return (
|
|
10
|
+
<svg width={size} height={size} viewBox="0 0 44 44" fill="none" aria-hidden="true">
|
|
11
|
+
<rect width="44" height="44" rx="22" fill={color} fillOpacity={fillOpacity} />
|
|
12
|
+
<path
|
|
13
|
+
d="M21.9999 19.5V22.8333M21.9999 26.1667H22.0082M20.846 15.2431L13.9919 27.082C13.6117 27.7386 13.4216 28.0669 13.4497 28.3364C13.4742 28.5715 13.5974 28.785 13.7885 28.924C14.0077 29.0833 14.387 29.0833 15.1458 29.0833H28.8539C29.6127 29.0833 29.9921 29.0833 30.2112 28.924C30.4024 28.785 30.5255 28.5715 30.55 28.3364C30.5781 28.0669 30.388 27.7386 30.0078 27.082L23.1538 15.2431C22.775 14.5888 22.5856 14.2617 22.3385 14.1518C22.1229 14.0559 21.8768 14.0559 21.6613 14.1518C21.4142 14.2617 21.2248 14.5888 20.846 15.2431Z"
|
|
14
|
+
stroke={color}
|
|
15
|
+
strokeWidth={strokeWidth}
|
|
16
|
+
strokeLinecap="round"
|
|
17
|
+
strokeLinejoin="round"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NotificationWarningIcon } from "./NotificationWarningIcon";
|
package/src/icons/index.ts
CHANGED
|
@@ -64,6 +64,7 @@ export { CutleryIcon } from "./Cutlery";
|
|
|
64
64
|
export { DollarIcon } from "./Dollar";
|
|
65
65
|
export { DramIcon } from "./Dram";
|
|
66
66
|
export { DragHandleIcon } from "./DragHandle";
|
|
67
|
+
export { DoubleCheckIcon } from "./DoubleCheck";
|
|
67
68
|
export { HeartIcon } from "./Heart";
|
|
68
69
|
export { HeadsetIcon } from "./Headset";
|
|
69
70
|
export { GlobeIcon } from "./Globe";
|
|
@@ -92,6 +93,11 @@ export { MoonStarsIcon } from "./MoonStars";
|
|
|
92
93
|
export { MoreHorizontalIcon } from "./MoreHorizontal";
|
|
93
94
|
export { NavigateIcon } from "./Navigate";
|
|
94
95
|
export { NoPetsIcon } from "./NoPets";
|
|
96
|
+
export { NotificationCancelledIcon } from "./NotificationCancelled";
|
|
97
|
+
export { NotificationCheckoutIcon } from "./NotificationCheckout";
|
|
98
|
+
export { NotificationQrCodeIcon } from "./NotificationQrCode";
|
|
99
|
+
export { NotificationSuccessIcon } from "./NotificationSuccess";
|
|
100
|
+
export { NotificationWarningIcon } from "./NotificationWarning";
|
|
95
101
|
export { PhoneIcon } from "./Phone";
|
|
96
102
|
export { PlusIcon } from "./Plus";
|
|
97
103
|
export { MinusIcon } from "./Minus";
|
package/src/icons/registry.ts
CHANGED
|
@@ -53,6 +53,7 @@ import { CutleryIcon } from "./Cutlery";
|
|
|
53
53
|
import { DollarIcon } from "./Dollar";
|
|
54
54
|
import { DramIcon } from "./Dram";
|
|
55
55
|
import { DragHandleIcon } from "./DragHandle";
|
|
56
|
+
import { DoubleCheckIcon } from "./DoubleCheck";
|
|
56
57
|
import { HeartIcon } from "./Heart";
|
|
57
58
|
import { HeadsetIcon } from "./Headset";
|
|
58
59
|
import { GlobeIcon } from "./Globe";
|
|
@@ -80,6 +81,11 @@ import { MoonStarsIcon } from "./MoonStars";
|
|
|
80
81
|
import { MoreHorizontalIcon } from "./MoreHorizontal";
|
|
81
82
|
import { NavigateIcon } from "./Navigate";
|
|
82
83
|
import { NoPetsIcon } from "./NoPets";
|
|
84
|
+
import { NotificationCancelledIcon } from "./NotificationCancelled";
|
|
85
|
+
import { NotificationCheckoutIcon } from "./NotificationCheckout";
|
|
86
|
+
import { NotificationQrCodeIcon } from "./NotificationQrCode";
|
|
87
|
+
import { NotificationSuccessIcon } from "./NotificationSuccess";
|
|
88
|
+
import { NotificationWarningIcon } from "./NotificationWarning";
|
|
83
89
|
import { PhoneIcon } from "./Phone";
|
|
84
90
|
import { PlusIcon } from "./Plus";
|
|
85
91
|
import { RefreshIcon } from "./Refresh";
|
|
@@ -173,6 +179,11 @@ export const icons = {
|
|
|
173
179
|
navigate: NavigateIcon,
|
|
174
180
|
noPets: NoPetsIcon,
|
|
175
181
|
noSmoking: NoSmokingIcon,
|
|
182
|
+
notificationCancelled: NotificationCancelledIcon,
|
|
183
|
+
notificationCheckout: NotificationCheckoutIcon,
|
|
184
|
+
notificationQrCode: NotificationQrCodeIcon,
|
|
185
|
+
notificationSuccess: NotificationSuccessIcon,
|
|
186
|
+
notificationWarning: NotificationWarningIcon,
|
|
176
187
|
paw: PawIcon,
|
|
177
188
|
phone: PhoneIcon,
|
|
178
189
|
qrCode: QrCodeIcon,
|
|
@@ -208,6 +219,7 @@ export const icons = {
|
|
|
208
219
|
dollar: DollarIcon,
|
|
209
220
|
dram: DramIcon,
|
|
210
221
|
dragHandle: DragHandleIcon,
|
|
222
|
+
doubleCheck: DoubleCheckIcon,
|
|
211
223
|
externalLink: ExternalLinkIcon,
|
|
212
224
|
eye: EyeIcon,
|
|
213
225
|
image: ImageIcon,
|
|
@@ -251,6 +263,7 @@ export const iconGroups = {
|
|
|
251
263
|
"checkSuccess",
|
|
252
264
|
"copy",
|
|
253
265
|
"download",
|
|
266
|
+
"doubleCheck",
|
|
254
267
|
"dragHandle",
|
|
255
268
|
"search",
|
|
256
269
|
"calendar",
|
|
@@ -313,6 +326,13 @@ export const iconGroups = {
|
|
|
313
326
|
"whatsApp",
|
|
314
327
|
],
|
|
315
328
|
communication: ["mail", "phone"],
|
|
329
|
+
notifications: [
|
|
330
|
+
"notificationSuccess",
|
|
331
|
+
"notificationCancelled",
|
|
332
|
+
"notificationCheckout",
|
|
333
|
+
"notificationQrCode",
|
|
334
|
+
"notificationWarning",
|
|
335
|
+
],
|
|
316
336
|
social: ["apple", "facebook", "googlePlay", "instagram", "linkedin"],
|
|
317
337
|
interface: [
|
|
318
338
|
"areaExpand",
|
package/src/index.ts
CHANGED
|
@@ -34,6 +34,12 @@ export {
|
|
|
34
34
|
ToggleRow,
|
|
35
35
|
RatingInput,
|
|
36
36
|
CommentCard,
|
|
37
|
+
BookingWarningNotification,
|
|
38
|
+
CancelledBookingNotification,
|
|
39
|
+
GuestCheckInNotification,
|
|
40
|
+
NewBookingNotification,
|
|
41
|
+
NotificationStatusSkeleton,
|
|
42
|
+
QrKeyNotification,
|
|
37
43
|
Range,
|
|
38
44
|
RadioButton,
|
|
39
45
|
} from "./components";
|
|
@@ -97,6 +103,7 @@ export type {
|
|
|
97
103
|
ToggleRowProps,
|
|
98
104
|
RatingInputProps,
|
|
99
105
|
CommentCardProps,
|
|
106
|
+
NotificationStatusProps,
|
|
100
107
|
RangeProps,
|
|
101
108
|
RangeValue,
|
|
102
109
|
RadioButtonProps,
|
|
@@ -209,6 +216,11 @@ export {
|
|
|
209
216
|
MoonStarsIcon,
|
|
210
217
|
NavigateIcon,
|
|
211
218
|
NoPetsIcon,
|
|
219
|
+
NotificationCancelledIcon,
|
|
220
|
+
NotificationCheckoutIcon,
|
|
221
|
+
NotificationQrCodeIcon,
|
|
222
|
+
NotificationSuccessIcon,
|
|
223
|
+
NotificationWarningIcon,
|
|
212
224
|
PhoneIcon,
|
|
213
225
|
PlusIcon,
|
|
214
226
|
RefreshIcon,
|
|
@@ -236,6 +248,7 @@ export {
|
|
|
236
248
|
WasherIcon,
|
|
237
249
|
CutleryIcon,
|
|
238
250
|
DollarIcon,
|
|
251
|
+
DoubleCheckIcon,
|
|
239
252
|
DragHandleIcon,
|
|
240
253
|
ExternalLinkIcon,
|
|
241
254
|
EyeIcon,
|