@ecohouse/ui 0.1.56 → 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 +961 -504
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +53 -3
- package/dist/index.d.ts +53 -3
- package/dist/index.js +857 -414
- 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/StatusIndicator/StatusIndicator.stories.tsx +36 -0
- package/src/components/StatusIndicator/StatusIndicator.tsx +105 -0
- package/src/components/StatusIndicator/index.ts +2 -0
- package/src/components/index.ts +13 -0
- package/src/icons/ChevronRight/ChevronRightIcon.tsx +25 -0
- package/src/icons/ChevronRight/ChevronRightIcon.web.tsx +31 -0
- package/src/icons/ChevronRight/chevronRightPath.ts +2 -0
- package/src/icons/ChevronRight/index.ts +1 -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 +7 -0
- package/src/icons/registry.ts +23 -0
- package/src/index.ts +17 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { IconProps } from "../types";
|
|
2
|
+
|
|
3
|
+
export function NotificationCancelledIcon({
|
|
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="M27 17L17 27M17 17L27 27"
|
|
14
|
+
stroke={color}
|
|
15
|
+
strokeWidth={strokeWidth}
|
|
16
|
+
strokeLinecap="round"
|
|
17
|
+
strokeLinejoin="round"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NotificationCancelledIcon } from "./NotificationCancelledIcon";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import Svg, { Path, Rect } from "react-native-svg";
|
|
2
|
+
import type { IconProps } from "../types";
|
|
3
|
+
|
|
4
|
+
export function NotificationCheckoutIcon({
|
|
5
|
+
size = 44,
|
|
6
|
+
color = "#B46436",
|
|
7
|
+
strokeWidth = 2,
|
|
8
|
+
fillOpacity = 0.06,
|
|
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="M17 17L27 27M20.3333 27H27V20.3333"
|
|
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 NotificationCheckoutIcon({
|
|
4
|
+
size = 44,
|
|
5
|
+
color = "#B46436",
|
|
6
|
+
strokeWidth = 2,
|
|
7
|
+
fillOpacity = 0.06,
|
|
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="M17 17L27 27M20.3333 27H27V20.3333"
|
|
14
|
+
stroke={color}
|
|
15
|
+
strokeWidth={strokeWidth}
|
|
16
|
+
strokeLinecap="round"
|
|
17
|
+
strokeLinejoin="round"
|
|
18
|
+
/>
|
|
19
|
+
</svg>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { NotificationCheckoutIcon } from "./NotificationCheckoutIcon";
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
|
+
import { StyleSheet, Text, View } from "react-native";
|
|
4
|
+
import { colors } from "../theme";
|
|
5
|
+
import { NotificationCancelledIcon } from "./NotificationCancelled";
|
|
6
|
+
import { NotificationCheckoutIcon } from "./NotificationCheckout";
|
|
7
|
+
import { NotificationQrCodeIcon } from "./NotificationQrCode";
|
|
8
|
+
import { NotificationSuccessIcon } from "./NotificationSuccess";
|
|
9
|
+
import { NotificationWarningIcon } from "./NotificationWarning";
|
|
10
|
+
|
|
11
|
+
const meta = {
|
|
12
|
+
title: "Icons/Notifications",
|
|
13
|
+
component: NotificationSuccessIcon,
|
|
14
|
+
args: {
|
|
15
|
+
size: 44,
|
|
16
|
+
strokeWidth: 2,
|
|
17
|
+
},
|
|
18
|
+
argTypes: {
|
|
19
|
+
size: { control: { type: "number", min: 24, max: 88, step: 2 } },
|
|
20
|
+
color: { control: "color" },
|
|
21
|
+
strokeWidth: { control: { type: "number", min: 1, max: 4, step: 0.5 } },
|
|
22
|
+
fillOpacity: { control: { type: "number", min: 0, max: 1, step: 0.01 } },
|
|
23
|
+
},
|
|
24
|
+
parameters: {
|
|
25
|
+
backgrounds: { default: "dark" },
|
|
26
|
+
},
|
|
27
|
+
} satisfies Meta<typeof NotificationSuccessIcon>;
|
|
28
|
+
|
|
29
|
+
export default meta;
|
|
30
|
+
type Story = StoryObj<typeof meta>;
|
|
31
|
+
|
|
32
|
+
export const Gallery: Story = {
|
|
33
|
+
render: () => (
|
|
34
|
+
<View style={styles.gallery}>
|
|
35
|
+
<IconPreview label="Success">
|
|
36
|
+
<NotificationSuccessIcon />
|
|
37
|
+
</IconPreview>
|
|
38
|
+
<IconPreview label="Cancelled">
|
|
39
|
+
<NotificationCancelledIcon />
|
|
40
|
+
</IconPreview>
|
|
41
|
+
<IconPreview label="Checkout">
|
|
42
|
+
<NotificationCheckoutIcon />
|
|
43
|
+
</IconPreview>
|
|
44
|
+
<IconPreview label="QR code">
|
|
45
|
+
<NotificationQrCodeIcon />
|
|
46
|
+
</IconPreview>
|
|
47
|
+
<IconPreview label="Warning">
|
|
48
|
+
<NotificationWarningIcon />
|
|
49
|
+
</IconPreview>
|
|
50
|
+
</View>
|
|
51
|
+
),
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export const Success: Story = {};
|
|
55
|
+
|
|
56
|
+
export const Cancelled: Story = {
|
|
57
|
+
render: (args) => <NotificationCancelledIcon {...args} />,
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const Checkout: Story = {
|
|
61
|
+
render: (args) => <NotificationCheckoutIcon {...args} />,
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export const QrCode: Story = {
|
|
65
|
+
name: "QR Code",
|
|
66
|
+
render: (args) => <NotificationQrCodeIcon {...args} />,
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export const Warning: Story = {
|
|
70
|
+
render: (args) => <NotificationWarningIcon {...args} />,
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
function IconPreview({ label, children }: { label: string; children: ReactNode }) {
|
|
74
|
+
return (
|
|
75
|
+
<View style={styles.preview}>
|
|
76
|
+
{children}
|
|
77
|
+
<Text style={styles.label}>{label}</Text>
|
|
78
|
+
</View>
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
const styles = StyleSheet.create({
|
|
83
|
+
gallery: {
|
|
84
|
+
flexDirection: "row",
|
|
85
|
+
flexWrap: "wrap",
|
|
86
|
+
gap: 24,
|
|
87
|
+
padding: 16,
|
|
88
|
+
},
|
|
89
|
+
preview: {
|
|
90
|
+
width: 88,
|
|
91
|
+
alignItems: "center",
|
|
92
|
+
gap: 8,
|
|
93
|
+
},
|
|
94
|
+
label: {
|
|
95
|
+
color: colors.white,
|
|
96
|
+
fontFamily: "Noto Sans Armenian",
|
|
97
|
+
fontSize: 12,
|
|
98
|
+
},
|
|
99
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Svg, { Path, Rect } from "react-native-svg";
|
|
2
|
+
import type { IconProps } from "../types";
|
|
3
|
+
|
|
4
|
+
const QR_PATH =
|
|
5
|
+
"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";
|
|
6
|
+
|
|
7
|
+
export function NotificationQrCodeIcon({
|
|
8
|
+
size = 44,
|
|
9
|
+
color = "#B46436",
|
|
10
|
+
strokeWidth = 2,
|
|
11
|
+
fillOpacity = 0.06,
|
|
12
|
+
}: IconProps) {
|
|
13
|
+
return (
|
|
14
|
+
<Svg width={size} height={size} viewBox="0 0 44 44" fill="none">
|
|
15
|
+
<Rect width="44" height="44" rx="22" fill={color} fillOpacity={fillOpacity} />
|
|
16
|
+
<Path
|
|
17
|
+
d={QR_PATH}
|
|
18
|
+
stroke={color}
|
|
19
|
+
strokeWidth={strokeWidth}
|
|
20
|
+
strokeLinecap="round"
|
|
21
|
+
strokeLinejoin="round"
|
|
22
|
+
/>
|
|
23
|
+
</Svg>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -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
|
@@ -27,6 +27,7 @@ export { CheckIcon } from "./Check";
|
|
|
27
27
|
export { CheckBadgeIcon } from "./CheckBadge";
|
|
28
28
|
export { ChevronDownIcon } from "./ChevronDown";
|
|
29
29
|
export { ChevronLeftIcon } from "./ChevronLeft";
|
|
30
|
+
export { ChevronRightIcon } from "./ChevronRight";
|
|
30
31
|
export { ClockIcon } from "./Clock";
|
|
31
32
|
export { CloseIcon } from "./Close";
|
|
32
33
|
export { CloudUploadIcon } from "./CloudUpload";
|
|
@@ -63,6 +64,7 @@ export { CutleryIcon } from "./Cutlery";
|
|
|
63
64
|
export { DollarIcon } from "./Dollar";
|
|
64
65
|
export { DramIcon } from "./Dram";
|
|
65
66
|
export { DragHandleIcon } from "./DragHandle";
|
|
67
|
+
export { DoubleCheckIcon } from "./DoubleCheck";
|
|
66
68
|
export { HeartIcon } from "./Heart";
|
|
67
69
|
export { HeadsetIcon } from "./Headset";
|
|
68
70
|
export { GlobeIcon } from "./Globe";
|
|
@@ -91,6 +93,11 @@ export { MoonStarsIcon } from "./MoonStars";
|
|
|
91
93
|
export { MoreHorizontalIcon } from "./MoreHorizontal";
|
|
92
94
|
export { NavigateIcon } from "./Navigate";
|
|
93
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";
|
|
94
101
|
export { PhoneIcon } from "./Phone";
|
|
95
102
|
export { PlusIcon } from "./Plus";
|
|
96
103
|
export { MinusIcon } from "./Minus";
|
package/src/icons/registry.ts
CHANGED
|
@@ -17,6 +17,7 @@ import { CheckIcon } from "./Check";
|
|
|
17
17
|
import { CheckBadgeIcon } from "./CheckBadge";
|
|
18
18
|
import { ChevronDownIcon } from "./ChevronDown";
|
|
19
19
|
import { ChevronLeftIcon } from "./ChevronLeft";
|
|
20
|
+
import { ChevronRightIcon } from "./ChevronRight";
|
|
20
21
|
import { ClockIcon } from "./Clock";
|
|
21
22
|
import { CloseIcon } from "./Close";
|
|
22
23
|
import { DeactivateIcon } from "./Deactivate";
|
|
@@ -52,6 +53,7 @@ import { CutleryIcon } from "./Cutlery";
|
|
|
52
53
|
import { DollarIcon } from "./Dollar";
|
|
53
54
|
import { DramIcon } from "./Dram";
|
|
54
55
|
import { DragHandleIcon } from "./DragHandle";
|
|
56
|
+
import { DoubleCheckIcon } from "./DoubleCheck";
|
|
55
57
|
import { HeartIcon } from "./Heart";
|
|
56
58
|
import { HeadsetIcon } from "./Headset";
|
|
57
59
|
import { GlobeIcon } from "./Globe";
|
|
@@ -79,6 +81,11 @@ import { MoonStarsIcon } from "./MoonStars";
|
|
|
79
81
|
import { MoreHorizontalIcon } from "./MoreHorizontal";
|
|
80
82
|
import { NavigateIcon } from "./Navigate";
|
|
81
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";
|
|
82
89
|
import { PhoneIcon } from "./Phone";
|
|
83
90
|
import { PlusIcon } from "./Plus";
|
|
84
91
|
import { RefreshIcon } from "./Refresh";
|
|
@@ -127,6 +134,7 @@ export const icons = {
|
|
|
127
134
|
checkSuccess: CheckSuccessIcon,
|
|
128
135
|
chevronDown: ChevronDownIcon,
|
|
129
136
|
chevronLeft: ChevronLeftIcon,
|
|
137
|
+
chevronRight: ChevronRightIcon,
|
|
130
138
|
clock: ClockIcon,
|
|
131
139
|
close: CloseIcon,
|
|
132
140
|
deactivate: DeactivateIcon,
|
|
@@ -171,6 +179,11 @@ export const icons = {
|
|
|
171
179
|
navigate: NavigateIcon,
|
|
172
180
|
noPets: NoPetsIcon,
|
|
173
181
|
noSmoking: NoSmokingIcon,
|
|
182
|
+
notificationCancelled: NotificationCancelledIcon,
|
|
183
|
+
notificationCheckout: NotificationCheckoutIcon,
|
|
184
|
+
notificationQrCode: NotificationQrCodeIcon,
|
|
185
|
+
notificationSuccess: NotificationSuccessIcon,
|
|
186
|
+
notificationWarning: NotificationWarningIcon,
|
|
174
187
|
paw: PawIcon,
|
|
175
188
|
phone: PhoneIcon,
|
|
176
189
|
qrCode: QrCodeIcon,
|
|
@@ -206,6 +219,7 @@ export const icons = {
|
|
|
206
219
|
dollar: DollarIcon,
|
|
207
220
|
dram: DramIcon,
|
|
208
221
|
dragHandle: DragHandleIcon,
|
|
222
|
+
doubleCheck: DoubleCheckIcon,
|
|
209
223
|
externalLink: ExternalLinkIcon,
|
|
210
224
|
eye: EyeIcon,
|
|
211
225
|
image: ImageIcon,
|
|
@@ -223,6 +237,7 @@ export const iconGroups = {
|
|
|
223
237
|
"arrowRight",
|
|
224
238
|
"chevronDown",
|
|
225
239
|
"chevronLeft",
|
|
240
|
+
"chevronRight",
|
|
226
241
|
"home",
|
|
227
242
|
"listView",
|
|
228
243
|
"locationPin",
|
|
@@ -248,6 +263,7 @@ export const iconGroups = {
|
|
|
248
263
|
"checkSuccess",
|
|
249
264
|
"copy",
|
|
250
265
|
"download",
|
|
266
|
+
"doubleCheck",
|
|
251
267
|
"dragHandle",
|
|
252
268
|
"search",
|
|
253
269
|
"calendar",
|
|
@@ -310,6 +326,13 @@ export const iconGroups = {
|
|
|
310
326
|
"whatsApp",
|
|
311
327
|
],
|
|
312
328
|
communication: ["mail", "phone"],
|
|
329
|
+
notifications: [
|
|
330
|
+
"notificationSuccess",
|
|
331
|
+
"notificationCancelled",
|
|
332
|
+
"notificationCheckout",
|
|
333
|
+
"notificationQrCode",
|
|
334
|
+
"notificationWarning",
|
|
335
|
+
],
|
|
313
336
|
social: ["apple", "facebook", "googlePlay", "instagram", "linkedin"],
|
|
314
337
|
interface: [
|
|
315
338
|
"areaExpand",
|
package/src/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export {
|
|
|
4
4
|
AccountHeader,
|
|
5
5
|
Badge,
|
|
6
6
|
StatusBadge,
|
|
7
|
+
StatusIndicator,
|
|
7
8
|
PaginationDots,
|
|
8
9
|
StepPager,
|
|
9
10
|
InfoTile,
|
|
@@ -33,6 +34,12 @@ export {
|
|
|
33
34
|
ToggleRow,
|
|
34
35
|
RatingInput,
|
|
35
36
|
CommentCard,
|
|
37
|
+
BookingWarningNotification,
|
|
38
|
+
CancelledBookingNotification,
|
|
39
|
+
GuestCheckInNotification,
|
|
40
|
+
NewBookingNotification,
|
|
41
|
+
NotificationStatusSkeleton,
|
|
42
|
+
QrKeyNotification,
|
|
36
43
|
Range,
|
|
37
44
|
RadioButton,
|
|
38
45
|
} from "./components";
|
|
@@ -46,6 +53,8 @@ export type {
|
|
|
46
53
|
BadgeVariant,
|
|
47
54
|
StatusBadgeProps,
|
|
48
55
|
StatusBadgeTone,
|
|
56
|
+
StatusIndicatorProps,
|
|
57
|
+
StatusIndicatorStatus,
|
|
49
58
|
PaginationDotsProps,
|
|
50
59
|
StepPagerProps,
|
|
51
60
|
InfoTileProps,
|
|
@@ -94,6 +103,7 @@ export type {
|
|
|
94
103
|
ToggleRowProps,
|
|
95
104
|
RatingInputProps,
|
|
96
105
|
CommentCardProps,
|
|
106
|
+
NotificationStatusProps,
|
|
97
107
|
RangeProps,
|
|
98
108
|
RangeValue,
|
|
99
109
|
RadioButtonProps,
|
|
@@ -148,6 +158,7 @@ export {
|
|
|
148
158
|
CheckBadgeIcon,
|
|
149
159
|
ChevronDownIcon,
|
|
150
160
|
ChevronLeftIcon,
|
|
161
|
+
ChevronRightIcon,
|
|
151
162
|
ClockIcon,
|
|
152
163
|
CloseIcon,
|
|
153
164
|
CloudUploadIcon,
|
|
@@ -205,6 +216,11 @@ export {
|
|
|
205
216
|
MoonStarsIcon,
|
|
206
217
|
NavigateIcon,
|
|
207
218
|
NoPetsIcon,
|
|
219
|
+
NotificationCancelledIcon,
|
|
220
|
+
NotificationCheckoutIcon,
|
|
221
|
+
NotificationQrCodeIcon,
|
|
222
|
+
NotificationSuccessIcon,
|
|
223
|
+
NotificationWarningIcon,
|
|
208
224
|
PhoneIcon,
|
|
209
225
|
PlusIcon,
|
|
210
226
|
RefreshIcon,
|
|
@@ -232,6 +248,7 @@ export {
|
|
|
232
248
|
WasherIcon,
|
|
233
249
|
CutleryIcon,
|
|
234
250
|
DollarIcon,
|
|
251
|
+
DoubleCheckIcon,
|
|
235
252
|
DragHandleIcon,
|
|
236
253
|
ExternalLinkIcon,
|
|
237
254
|
EyeIcon,
|