@westpac/ui 1.11.0 → 1.12.0
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/CHANGELOG.md +7 -0
- package/assets/icons/filled/panel-left-filled.svg +3 -0
- package/assets/icons/filled/panel-right-filled.svg +3 -0
- package/assets/icons/filled/phone-filled.svg +2 -1
- package/assets/icons/filled/tablet-filled.svg +2 -1
- package/assets/icons/outlined/panel-left-outlined.svg +3 -0
- package/assets/icons/outlined/panel-right-outlined.svg +3 -0
- package/assets/icons/outlined/phone-outlined.svg +2 -1
- package/assets/icons/outlined/tablet-outlined.svg +2 -1
- package/assets/pictograms/BOM/DUO/MapPinPictogram.svg +1 -0
- package/assets/pictograms/BOM/DUO/MobileDevicePictogram.svg +1 -5
- package/assets/pictograms/BOM/DUO/NotificationPictogram.svg +1 -0
- package/assets/pictograms/BOM/DUO/TabletPictogram.svg +1 -0
- package/assets/pictograms/BOM/Dark/MapPinPictogram.svg +1 -0
- package/assets/pictograms/BOM/Dark/MobileDevicePictogram.svg +1 -5
- package/assets/pictograms/BOM/Dark/NotificationPictogram.svg +1 -0
- package/assets/pictograms/BOM/Dark/TabletPictogram.svg +1 -0
- package/assets/pictograms/BSA/DUO/MapPinPictogram.svg +1 -0
- package/assets/pictograms/BSA/DUO/MobileDevicePictogram.svg +1 -5
- package/assets/pictograms/BSA/DUO/NotificationPictogram.svg +1 -0
- package/assets/pictograms/BSA/DUO/TabletPictogram.svg +1 -0
- package/assets/pictograms/BSA/Dark/MapPinPictogram.svg +1 -0
- package/assets/pictograms/BSA/Dark/MobileDevicePictogram.svg +1 -5
- package/assets/pictograms/BSA/Dark/NotificationPictogram.svg +1 -0
- package/assets/pictograms/BSA/Dark/TabletPictogram.svg +1 -0
- package/assets/pictograms/Light/MapPinPictogram.svg +1 -0
- package/assets/pictograms/Light/MobileDevicePictogram.svg +1 -5
- package/assets/pictograms/Light/NotificationPictogram.svg +1 -0
- package/assets/pictograms/Light/TabletPictogram.svg +1 -0
- package/assets/pictograms/STG/DUO/MapPinPictogram.svg +1 -0
- package/assets/pictograms/STG/DUO/MobileDevicePictogram.svg +1 -5
- package/assets/pictograms/STG/DUO/NotificationPictogram.svg +1 -0
- package/assets/pictograms/STG/DUO/TabletPictogram.svg +1 -0
- package/assets/pictograms/STG/Dark/MapPinPictogram.svg +1 -0
- package/assets/pictograms/STG/Dark/MobileDevicePictogram.svg +1 -5
- package/assets/pictograms/STG/Dark/NotificationPictogram.svg +1 -0
- package/assets/pictograms/STG/Dark/TabletPictogram.svg +1 -0
- package/assets/pictograms/WBC/DUO/MapPinPictogram.svg +1 -0
- package/assets/pictograms/WBC/DUO/MobileDevicePictogram.svg +1 -5
- package/assets/pictograms/WBC/DUO/NotificationPictogram.svg +1 -0
- package/assets/pictograms/WBC/DUO/TabletPictogram.svg +1 -0
- package/assets/pictograms/WBC/Dark/MapPinPictogram.svg +1 -0
- package/assets/pictograms/WBC/Dark/MobileDevicePictogram.svg +1 -5
- package/assets/pictograms/WBC/Dark/NotificationPictogram.svg +1 -0
- package/assets/pictograms/WBC/Dark/TabletPictogram.svg +1 -0
- package/dist/component-type.json +1 -1
- package/dist/components/icon/components/panel-left-icon.d.ts +2 -0
- package/dist/components/icon/components/panel-left-icon.js +17 -0
- package/dist/components/icon/components/panel-right-icon.d.ts +2 -0
- package/dist/components/icon/components/panel-right-icon.js +17 -0
- package/dist/components/icon/components/phone-icon.js +4 -1
- package/dist/components/icon/components/tablet-icon.js +4 -1
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.js +2 -0
- package/dist/components/pictogram/components/map-pin-pictogram.d.ts +2 -0
- package/dist/components/pictogram/components/map-pin-pictogram.js +32 -0
- package/dist/components/pictogram/components/mobile-device-pictogram.js +10 -6
- package/dist/components/pictogram/components/notification-pictogram.d.ts +2 -0
- package/dist/components/pictogram/components/notification-pictogram.js +54 -0
- package/dist/components/pictogram/components/tablet-pictogram.d.ts +2 -0
- package/dist/components/pictogram/components/tablet-pictogram.js +40 -0
- package/dist/components/pictogram/components/target-pictogram.js +1 -1
- package/dist/components/pictogram/index.d.ts +3 -0
- package/dist/components/pictogram/index.js +3 -0
- package/package.json +4 -3
- package/src/components/icon/components/panel-left-icon.tsx +29 -0
- package/src/components/icon/components/panel-right-icon.tsx +29 -0
- package/src/components/icon/components/phone-icon.tsx +5 -1
- package/src/components/icon/components/tablet-icon.tsx +5 -1
- package/src/components/icon/index.ts +2 -0
- package/src/components/pictogram/components/map-pin-pictogram.tsx +37 -0
- package/src/components/pictogram/components/mobile-device-pictogram.tsx +3 -6
- package/src/components/pictogram/components/notification-pictogram.tsx +47 -0
- package/src/components/pictogram/components/tablet-pictogram.tsx +41 -0
- package/src/components/pictogram/components/target-pictogram.tsx +1 -1
- package/src/components/pictogram/index.ts +3 -0
- package/utils/build-pictogram-assets/index.ts +85 -0
- package/utils/build-pictogram-assets/pictogram-colors.ts +57 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Icon } from '../icon.component.js';
|
|
3
|
+
export function PanelLeftIcon({ look = 'filled', 'aria-label': ariaLabel = 'Panel Left', copyrightYear = '2026', ...props }) {
|
|
4
|
+
return React.createElement(Icon, {
|
|
5
|
+
"aria-label": ariaLabel,
|
|
6
|
+
copyrightYear: copyrightYear,
|
|
7
|
+
...props
|
|
8
|
+
}, look === 'filled' ? React.createElement("path", {
|
|
9
|
+
d: "M19.7778 2C20.3889 2 20.912 2.21759 21.3472 2.65278C21.7824 3.08796 22 3.61111 22 4.22222L22 19.7778C22 20.3889 21.7824 20.912 21.3472 21.3472C20.912 21.7824 20.3889 22 19.7778 22L4.22222 22C3.61111 22 3.08796 21.7824 2.65277 21.3472C2.21759 20.912 2 20.3889 2 19.7778L2 4.22222C2 3.61111 2.21759 3.08796 2.65278 2.65278C3.08796 2.21759 3.61111 2 4.22222 2L19.7778 2ZM10 4L10 20L20 20L20 4L10 4Z",
|
|
10
|
+
fill: "currentColor"
|
|
11
|
+
}) : React.createElement("path", {
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
clipRule: "evenodd",
|
|
14
|
+
d: "M19.7773 2C20.3885 2 20.9125 2.21716 21.3477 2.65234C21.7828 3.08753 22 3.61155 22 4.22266V19.7773C22 20.3885 21.7828 20.9125 21.3477 21.3477C20.9125 21.7828 20.3885 22 19.7773 22H4.22266C3.61155 22 3.08753 21.7828 2.65234 21.3477C2.21716 20.9125 2 20.3885 2 19.7773V4.22266C2 3.61155 2.21716 3.08753 2.65234 2.65234C3.08753 2.21716 3.61155 2 4.22266 2H19.7773ZM4 4V20H8V4H4ZM10 20H20V4H10V20Z",
|
|
15
|
+
fill: "currentColor"
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Icon } from '../icon.component.js';
|
|
3
|
+
export function PanelRightIcon({ look = 'filled', 'aria-label': ariaLabel = 'Panel Right', copyrightYear = '2026', ...props }) {
|
|
4
|
+
return React.createElement(Icon, {
|
|
5
|
+
"aria-label": ariaLabel,
|
|
6
|
+
copyrightYear: copyrightYear,
|
|
7
|
+
...props
|
|
8
|
+
}, look === 'filled' ? React.createElement("path", {
|
|
9
|
+
d: "M19.7778 2C20.3889 2 20.912 2.21759 21.3472 2.65278C21.7824 3.08796 22 3.61111 22 4.22222L22 19.7778C22 20.3889 21.7824 20.912 21.3472 21.3472C20.912 21.7824 20.3889 22 19.7778 22L4.22222 22C3.61111 22 3.08796 21.7824 2.65277 21.3472C2.21759 20.912 2 20.3889 2 19.7778L2 4.22222C2 3.61111 2.21759 3.08796 2.65278 2.65278C3.08796 2.21759 3.61111 2 4.22222 2L19.7778 2ZM4 4L4 20L14 20L14 4L4 4Z",
|
|
10
|
+
fill: "currentColor"
|
|
11
|
+
}) : React.createElement("path", {
|
|
12
|
+
fillRule: "evenodd",
|
|
13
|
+
clipRule: "evenodd",
|
|
14
|
+
d: "M19.7773 2C20.3885 2 20.9125 2.21716 21.3477 2.65234C21.7828 3.08753 22 3.61155 22 4.22266V19.7773C22 20.3885 21.7828 20.9125 21.3477 21.3477C20.9125 21.7828 20.3885 22 19.7773 22H4.22266C3.61155 22 3.08753 21.7828 2.65234 21.3477C2.21716 20.9125 2 20.3885 2 19.7773V4.22266C2 3.61155 2.21716 3.08753 2.65234 2.65234C3.08753 2.21716 3.61155 2 4.22266 2H19.7773ZM4 4V20H14V4H4ZM16 20H20V4H16V20Z",
|
|
15
|
+
fill: "currentColor"
|
|
16
|
+
}));
|
|
17
|
+
}
|
|
@@ -6,9 +6,12 @@ export function PhoneIcon({ 'aria-label': ariaLabel = 'Phone', copyrightYear = '
|
|
|
6
6
|
copyrightYear: copyrightYear,
|
|
7
7
|
...props
|
|
8
8
|
}, React.createElement("path", {
|
|
9
|
+
d: "M13 4C13.5523 4 14 4.44772 14 5C14 5.55228 13.5523 6 13 6H11C10.4477 6 10 5.55228 10 5C10 4.44772 10.4477 4 11 4H13Z",
|
|
10
|
+
fill: "currentColor"
|
|
11
|
+
}), React.createElement("path", {
|
|
9
12
|
fillRule: "evenodd",
|
|
10
13
|
clipRule: "evenodd",
|
|
11
|
-
d: "
|
|
14
|
+
d: "M17 0C18.1046 0 19 0.895431 19 2V22C19 23.1046 18.1046 24 17 24H7C5.89543 24 5 23.1046 5 22V2C5 0.895431 5.89543 0 7 0H17ZM7 22H17V2H7V22Z",
|
|
12
15
|
fill: "currentColor"
|
|
13
16
|
}));
|
|
14
17
|
}
|
|
@@ -6,9 +6,12 @@ export function TabletIcon({ 'aria-label': ariaLabel = 'Tablet', copyrightYear =
|
|
|
6
6
|
copyrightYear: copyrightYear,
|
|
7
7
|
...props
|
|
8
8
|
}, React.createElement("path", {
|
|
9
|
+
d: "M13 4C13.5523 4 14 4.44772 14 5C14 5.55228 13.5523 6 13 6H11C10.4477 6 10 5.55228 10 5C10 4.44772 10.4477 4 11 4H13Z",
|
|
10
|
+
fill: "currentColor"
|
|
11
|
+
}), React.createElement("path", {
|
|
9
12
|
fillRule: "evenodd",
|
|
10
13
|
clipRule: "evenodd",
|
|
11
|
-
d: "
|
|
14
|
+
d: "M20 0C21.1046 0 22 0.895431 22 2V22C22 23.1046 21.1046 24 20 24H4C2.89543 24 2 23.1046 2 22V2C2 0.895431 2.89543 0 4 0H20ZM4 22H20V2H4V22Z",
|
|
12
15
|
fill: "currentColor"
|
|
13
16
|
}));
|
|
14
17
|
}
|
|
@@ -165,6 +165,8 @@ export { PackageDeliveryIcon } from './components/package-delivery-icon.js';
|
|
|
165
165
|
export { PadlockIcon } from './components/padlock-icon.js';
|
|
166
166
|
export { PadlockOpenIcon } from './components/padlock-open-icon.js';
|
|
167
167
|
export { PadlockTickIcon } from './components/padlock-tick-icon.js';
|
|
168
|
+
export { PanelLeftIcon } from './components/panel-left-icon.js';
|
|
169
|
+
export { PanelRightIcon } from './components/panel-right-icon.js';
|
|
168
170
|
export { PasskeyIcon } from './components/passkey-icon.js';
|
|
169
171
|
export { PassportIcon } from './components/passport-icon.js';
|
|
170
172
|
export { PauseCircleIcon } from './components/pause-circle-icon.js';
|
|
@@ -165,6 +165,8 @@ export { PackageDeliveryIcon } from './components/package-delivery-icon.js';
|
|
|
165
165
|
export { PadlockIcon } from './components/padlock-icon.js';
|
|
166
166
|
export { PadlockOpenIcon } from './components/padlock-open-icon.js';
|
|
167
167
|
export { PadlockTickIcon } from './components/padlock-tick-icon.js';
|
|
168
|
+
export { PanelLeftIcon } from './components/panel-left-icon.js';
|
|
169
|
+
export { PanelRightIcon } from './components/panel-right-icon.js';
|
|
168
170
|
export { PasskeyIcon } from './components/passkey-icon.js';
|
|
169
171
|
export { PassportIcon } from './components/passport-icon.js';
|
|
170
172
|
export { PauseCircleIcon } from './components/pause-circle-icon.js';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Pictogram } from '../pictogram.component.js';
|
|
5
|
+
import { fill } from '../pictogram.styles.js';
|
|
6
|
+
export function MapPinPictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = 'Map pin', copyrightYear = '2026', className, ...props }) {
|
|
7
|
+
return React.createElement(Pictogram, {
|
|
8
|
+
className: clsx('size-13', className),
|
|
9
|
+
viewBoxWidth: viewBoxWidth,
|
|
10
|
+
viewBoxHeight: viewBoxHeight,
|
|
11
|
+
"aria-label": ariaLabel,
|
|
12
|
+
copyrightYear: copyrightYear,
|
|
13
|
+
...props
|
|
14
|
+
}, React.createElement("g", {
|
|
15
|
+
fill: "none",
|
|
16
|
+
fillRule: "evenodd"
|
|
17
|
+
}, React.createElement("path", {
|
|
18
|
+
className: fill({
|
|
19
|
+
mode,
|
|
20
|
+
outline: true
|
|
21
|
+
}),
|
|
22
|
+
d: "M39 7C50.5979 7 59.9998 16.5511 60 28.333C60 40.1151 39 71 39 71C39 71 18 40.1151 18 28.333C18.0002 16.5511 27.4021 7 39 7ZM38 10C28.335 10 20.5 17.91 20.5 27.667C20.5004 37.4243 38 63 38 63C38 63 55.4996 37.4243 55.5 27.667C55.5 17.91 47.665 10 38 10Z"
|
|
23
|
+
}), React.createElement("circle", {
|
|
24
|
+
className: fill({
|
|
25
|
+
mode,
|
|
26
|
+
highlight: true
|
|
27
|
+
}),
|
|
28
|
+
cx: "38",
|
|
29
|
+
cy: "27",
|
|
30
|
+
r: "8"
|
|
31
|
+
})));
|
|
32
|
+
}
|
|
@@ -17,20 +17,24 @@ export function MobileDevicePictogram({ mode = 'duo', viewBoxWidth = 78, viewBox
|
|
|
17
17
|
}, React.createElement("path", {
|
|
18
18
|
className: fill({
|
|
19
19
|
mode,
|
|
20
|
-
|
|
20
|
+
outline: true
|
|
21
21
|
}),
|
|
22
|
-
d: "
|
|
22
|
+
d: "M53.5273 6C54.6145 6 55.5 7.05322 55.5 8.3457V65.6543C55.5 66.9468 54.6145 68 53.5273 68H22.4727C21.3855 68 20.5 66.9468 20.5 65.6543V8.3457C20.5 7.05322 21.3855 6 22.4727 6H53.5273ZM23.3184 65.249H52.8535V8.75098H23.3184V65.249Z"
|
|
23
23
|
}), React.createElement("path", {
|
|
24
24
|
className: fill({
|
|
25
25
|
mode,
|
|
26
26
|
outline: true
|
|
27
27
|
}),
|
|
28
|
-
d: "
|
|
29
|
-
}), React.createElement("
|
|
28
|
+
d: "M55.0586 1.75684C55.8186 1.75684 56.5279 1.94872 57.1689 2.26172C57.3128 2.31371 57.4895 2.40896 57.7002 2.55176C57.7302 2.57176 57.762 2.58837 57.792 2.60938C57.8029 2.61731 57.8114 2.62198 57.8232 2.63086C60.3482 4.45486 61.7949 7.29297 61.7949 7.29297C61.7949 7.29297 61.7756 7.30073 61.7686 7.30273C62.1155 7.96966 62.332 8.71566 62.332 9.51855V70.4355C62.332 73.1014 60.1629 75.2703 57.4971 75.2705H23.3828C22.1379 75.2705 21.018 74.7837 20.167 74.0059C17.938 72.2109 16.6621 69.7578 16.6621 69.7578C16.6621 69.7578 16.6776 69.752 16.6816 69.75C16.3246 69.081 16.1104 68.3228 16.1104 67.5098V6.59277C16.1104 3.9259 18.2795 1.75699 20.9453 1.75684H55.0586ZM20.8672 4.25684C19.5804 4.25706 18.5323 5.30494 18.5322 6.59277V67.5098C18.5322 68.7976 19.5804 69.8445 20.8672 69.8447H54.9805C56.2675 69.8447 57.3154 68.7978 57.3154 67.5098V6.59277C57.3154 5.3048 56.2674 4.25684 54.9805 4.25684H20.8672Z"
|
|
29
|
+
}), React.createElement("rect", {
|
|
30
30
|
className: fill({
|
|
31
31
|
mode,
|
|
32
|
-
|
|
32
|
+
highlight: true
|
|
33
33
|
}),
|
|
34
|
-
|
|
34
|
+
x: "35",
|
|
35
|
+
y: "12",
|
|
36
|
+
width: "6",
|
|
37
|
+
height: "3",
|
|
38
|
+
rx: "1.5"
|
|
35
39
|
})));
|
|
36
40
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Pictogram } from '../pictogram.component.js';
|
|
5
|
+
import { fill } from '../pictogram.styles.js';
|
|
6
|
+
export function NotificationPictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = 'Notification', copyrightYear = '2026', className, ...props }) {
|
|
7
|
+
return React.createElement(Pictogram, {
|
|
8
|
+
className: clsx('size-13', className),
|
|
9
|
+
viewBoxWidth: viewBoxWidth,
|
|
10
|
+
viewBoxHeight: viewBoxHeight,
|
|
11
|
+
"aria-label": ariaLabel,
|
|
12
|
+
copyrightYear: copyrightYear,
|
|
13
|
+
...props
|
|
14
|
+
}, React.createElement("g", {
|
|
15
|
+
fill: "none",
|
|
16
|
+
fillRule: "evenodd"
|
|
17
|
+
}, React.createElement("path", {
|
|
18
|
+
className: fill({
|
|
19
|
+
mode,
|
|
20
|
+
highlight: true
|
|
21
|
+
}),
|
|
22
|
+
d: "M15.1504 33.873H6V31.373H15.1504V33.873Z"
|
|
23
|
+
}), React.createElement("path", {
|
|
24
|
+
className: fill({
|
|
25
|
+
mode,
|
|
26
|
+
highlight: true
|
|
27
|
+
}),
|
|
28
|
+
d: "M71.126 33.873H61.9766V31.373H71.126V33.873Z"
|
|
29
|
+
}), React.createElement("path", {
|
|
30
|
+
className: fill({
|
|
31
|
+
mode,
|
|
32
|
+
highlight: true
|
|
33
|
+
}),
|
|
34
|
+
d: "M22.8906 17.125L21.124 18.8916L14.6543 12.4209L16.4219 10.6533L22.8906 17.125Z"
|
|
35
|
+
}), React.createElement("path", {
|
|
36
|
+
className: fill({
|
|
37
|
+
mode,
|
|
38
|
+
highlight: true
|
|
39
|
+
}),
|
|
40
|
+
d: "M62.4727 12.4219L56.0029 18.8916L54.2354 17.124L60.7051 10.6543L62.4727 12.4219Z"
|
|
41
|
+
}), React.createElement("path", {
|
|
42
|
+
className: fill({
|
|
43
|
+
mode,
|
|
44
|
+
highlight: true
|
|
45
|
+
}),
|
|
46
|
+
d: "M39.8135 11.1504H37.3135V2.00098H39.8135V11.1504Z"
|
|
47
|
+
}), React.createElement("path", {
|
|
48
|
+
className: fill({
|
|
49
|
+
mode,
|
|
50
|
+
outline: true
|
|
51
|
+
}),
|
|
52
|
+
d: "M46.0968 60.9717L46.0079 60.9697C45.5887 64.6654 42.9012 67.5292 39.6534 67.5293C36.7305 67.5291 32.1257 65.5263 30.6056 61.6367C30.3517 61.1251 30.1489 60.5763 30.0001 60H16.0763C16.0763 60 15.9052 55.6887 16.0763 54.875C16.5598 52.5757 20.5344 50.6378 20.5607 50.625V40.875C20.5607 32.9538 26.2776 26.2974 34.0148 24.4102V21.75C34.0148 19.4028 36.0232 17.5 38.5001 17.5C40.9769 17.5001 42.9845 19.4028 42.9845 21.75V24.4102C50.7217 26.2974 55.4396 32.9537 55.4396 40.875V51.625C55.4845 51.6469 59.4416 53.5812 59.9239 55.875C60.0949 56.6883 59.9241 59.9964 59.9239 60H46.0968V60.9717ZM32.6066 60C33.267 61.7775 34.6746 63.0194 36.3126 63.0195C37.9517 63.0195 39.3592 61.7784 40.0187 60H32.6066ZM37.5011 27C35.6358 27 34.1219 27.3104 34.1114 27.3125C28.2648 28.8338 23.9445 34.1989 23.9445 40.584V52.3613C23.9253 52.3633 22.5523 52.5091 21.5861 53.7871C20.615 55.0716 20.556 55.9963 20.5558 56H54.4454C54.4454 56 54.4455 54.9999 53.4728 54C52.5059 53.0062 51.0743 52.3691 51.0568 52.3613V40.584C51.0568 34.1989 46.7364 28.8338 40.8898 27.3125C38.913 27.0003 39.3722 27 37.5011 27Z"
|
|
53
|
+
})));
|
|
54
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { Pictogram } from '../pictogram.component.js';
|
|
5
|
+
import { fill } from '../pictogram.styles.js';
|
|
6
|
+
export function TabletPictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = 'Tablet', copyrightYear = '2026', className, ...props }) {
|
|
7
|
+
return React.createElement(Pictogram, {
|
|
8
|
+
className: clsx('size-13', className),
|
|
9
|
+
viewBoxWidth: viewBoxWidth,
|
|
10
|
+
viewBoxHeight: viewBoxHeight,
|
|
11
|
+
"aria-label": ariaLabel,
|
|
12
|
+
copyrightYear: copyrightYear,
|
|
13
|
+
...props
|
|
14
|
+
}, React.createElement("g", {
|
|
15
|
+
fill: "none",
|
|
16
|
+
fillRule: "evenodd"
|
|
17
|
+
}, React.createElement("path", {
|
|
18
|
+
className: fill({
|
|
19
|
+
mode,
|
|
20
|
+
outline: true
|
|
21
|
+
}),
|
|
22
|
+
d: "M56.4102 5.98633C57.7769 5.98644 58.8896 7.03957 58.8896 8.33203V65.6396C58.8896 66.9321 57.7769 67.9862 56.4102 67.9863H17.3691C16.0023 67.9863 14.8896 66.9322 14.8896 65.6396V8.33203C14.8896 7.0395 16.0023 5.98633 17.3691 5.98633H56.4102ZM18.4316 65.2354H55.5625V8.73633H18.4316V65.2354Z"
|
|
23
|
+
}), React.createElement("path", {
|
|
24
|
+
className: fill({
|
|
25
|
+
mode,
|
|
26
|
+
outline: true
|
|
27
|
+
}),
|
|
28
|
+
d: "M58.0312 2C58.9684 2.00005 59.8424 2.19118 60.6328 2.50195C60.8104 2.55358 61.0289 2.6471 61.2891 2.78906C61.326 2.80891 61.3644 2.82584 61.4014 2.84668C61.4149 2.85461 61.4257 2.85926 61.4404 2.86816C64.5433 4.67301 66.3253 7.47727 66.3379 7.49707C66.3379 7.49707 66.3143 7.50483 66.3057 7.50684C66.7336 8.16917 67 8.91062 67 9.70801V70.1992C66.9997 72.8464 64.3247 75 61.0371 75H18.9678C17.4326 75 16.0514 74.5166 15.002 73.7441C12.2531 71.9617 10.6807 69.5254 10.6807 69.5254C10.6807 69.5254 10.6991 69.5196 10.7041 69.5176C10.2639 68.8533 10 68.1003 10 67.293V6.80176C10.0003 4.1536 12.6753 2 15.9629 2H58.0312ZM15.8662 4.48242C14.2793 4.48249 12.9876 5.523 12.9873 6.80176V67.293C12.9873 68.5719 14.2791 69.6122 15.8662 69.6123H57.9346C59.5217 69.6123 60.8145 68.572 60.8145 67.293V6.80176C60.8142 5.52296 59.5215 4.48242 57.9346 4.48242H15.8662Z"
|
|
29
|
+
}), React.createElement("rect", {
|
|
30
|
+
className: fill({
|
|
31
|
+
mode,
|
|
32
|
+
highlight: true
|
|
33
|
+
}),
|
|
34
|
+
x: "33",
|
|
35
|
+
y: "12",
|
|
36
|
+
width: "8",
|
|
37
|
+
height: "3",
|
|
38
|
+
rx: "1.5"
|
|
39
|
+
})));
|
|
40
|
+
}
|
|
@@ -3,7 +3,7 @@ import { clsx } from 'clsx';
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { Pictogram } from '../pictogram.component.js';
|
|
5
5
|
import { fill } from '../pictogram.styles.js';
|
|
6
|
-
export function TargetPictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = '
|
|
6
|
+
export function TargetPictogram({ mode = 'duo', viewBoxWidth = 78, viewBoxHeight = 78, 'aria-label': ariaLabel = 'Target', copyrightYear = '2025', className, ...props }) {
|
|
7
7
|
return React.createElement(Pictogram, {
|
|
8
8
|
className: clsx('size-13', className),
|
|
9
9
|
viewBoxWidth: viewBoxWidth,
|
|
@@ -54,12 +54,14 @@ export { HeartPictogram } from './components/heart-pictogram.js';
|
|
|
54
54
|
export { HousePictogram } from './components/house-pictogram.js';
|
|
55
55
|
export { LightBulbPictogram } from './components/light-bulb-pictogram.js';
|
|
56
56
|
export { LoopPictogram } from './components/loop-pictogram.js';
|
|
57
|
+
export { MapPinPictogram } from './components/map-pin-pictogram.js';
|
|
57
58
|
export { MedicareCardPictogram } from './components/medicare-card-pictogram.js';
|
|
58
59
|
export { MobileDevicePictogram } from './components/mobile-device-pictogram.js';
|
|
59
60
|
export { MoneyInPictogram } from './components/money-in-pictogram.js';
|
|
60
61
|
export { MoneyOutPictogram } from './components/money-out-pictogram.js';
|
|
61
62
|
export { MovieTicketsPictogram } from './components/movie-tickets-pictogram.js';
|
|
62
63
|
export { NestEggPictogram } from './components/nest-egg-pictogram.js';
|
|
64
|
+
export { NotificationPictogram } from './components/notification-pictogram.js';
|
|
63
65
|
export { NoodlesPictogram } from './components/noodles-pictogram.js';
|
|
64
66
|
export { Number1Pictogram } from './components/number-1-pictogram.js';
|
|
65
67
|
export { Number2Pictogram } from './components/number-2-pictogram.js';
|
|
@@ -81,6 +83,7 @@ export { ShoppingPictogram } from './components/shopping-pictogram.js';
|
|
|
81
83
|
export { SparklePictogram } from './components/sparkle-pictogram.js';
|
|
82
84
|
export { StarPictogram } from './components/star-pictogram.js';
|
|
83
85
|
export { StopwatchPictogram } from './components/stopwatch-pictogram.js';
|
|
86
|
+
export { TabletPictogram } from './components/tablet-pictogram.js';
|
|
84
87
|
export { TargetPictogram } from './components/target-pictogram.js';
|
|
85
88
|
export { TaxDocumentPictogram } from './components/tax-document-pictogram.js';
|
|
86
89
|
export { TelephoneCallPictogram } from './components/telephone-call-pictogram.js';
|
|
@@ -54,12 +54,14 @@ export { HeartPictogram } from './components/heart-pictogram.js';
|
|
|
54
54
|
export { HousePictogram } from './components/house-pictogram.js';
|
|
55
55
|
export { LightBulbPictogram } from './components/light-bulb-pictogram.js';
|
|
56
56
|
export { LoopPictogram } from './components/loop-pictogram.js';
|
|
57
|
+
export { MapPinPictogram } from './components/map-pin-pictogram.js';
|
|
57
58
|
export { MedicareCardPictogram } from './components/medicare-card-pictogram.js';
|
|
58
59
|
export { MobileDevicePictogram } from './components/mobile-device-pictogram.js';
|
|
59
60
|
export { MoneyInPictogram } from './components/money-in-pictogram.js';
|
|
60
61
|
export { MoneyOutPictogram } from './components/money-out-pictogram.js';
|
|
61
62
|
export { MovieTicketsPictogram } from './components/movie-tickets-pictogram.js';
|
|
62
63
|
export { NestEggPictogram } from './components/nest-egg-pictogram.js';
|
|
64
|
+
export { NotificationPictogram } from './components/notification-pictogram.js';
|
|
63
65
|
export { NoodlesPictogram } from './components/noodles-pictogram.js';
|
|
64
66
|
export { Number1Pictogram } from './components/number-1-pictogram.js';
|
|
65
67
|
export { Number2Pictogram } from './components/number-2-pictogram.js';
|
|
@@ -81,6 +83,7 @@ export { ShoppingPictogram } from './components/shopping-pictogram.js';
|
|
|
81
83
|
export { SparklePictogram } from './components/sparkle-pictogram.js';
|
|
82
84
|
export { StarPictogram } from './components/star-pictogram.js';
|
|
83
85
|
export { StopwatchPictogram } from './components/stopwatch-pictogram.js';
|
|
86
|
+
export { TabletPictogram } from './components/tablet-pictogram.js';
|
|
84
87
|
export { TargetPictogram } from './components/target-pictogram.js';
|
|
85
88
|
export { TaxDocumentPictogram } from './components/tax-document-pictogram.js';
|
|
86
89
|
export { TelephoneCallPictogram } from './components/telephone-call-pictogram.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@westpac/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -255,8 +255,8 @@
|
|
|
255
255
|
"vitest": "^3.2.6",
|
|
256
256
|
"@westpac/eslint-config": "~1.1.0",
|
|
257
257
|
"@westpac/style-config": "~1.0.2",
|
|
258
|
-
"@westpac/
|
|
259
|
-
"@westpac/
|
|
258
|
+
"@westpac/test-config": "~0.0.0",
|
|
259
|
+
"@westpac/ts-config": "~0.0.0"
|
|
260
260
|
},
|
|
261
261
|
"dependencies": {
|
|
262
262
|
"@internationalized/date": "~3.10.0",
|
|
@@ -290,6 +290,7 @@
|
|
|
290
290
|
"build:types": "tsc --project tsconfig.build.json",
|
|
291
291
|
"build:esm": "swc ./src -d dist --no-swcrc --config-file .swcrc",
|
|
292
292
|
"build:icons": "node --loader ts-node/esm ./utils/build-icons/index.ts",
|
|
293
|
+
"build:pictogram-assets": "node --loader ts-node/esm ./utils/build-pictogram-assets/index.ts",
|
|
293
294
|
"build:exports": "node --loader ts-node/esm ./utils/build-exports/index.ts && prettier --write package.json",
|
|
294
295
|
"build:watch": "pnpm clean && pnpm build:types && pnpm build:esm -w && pnpm build:css:all",
|
|
295
296
|
"build:type-table": "node generate-component-types.cjs",
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Icon } from '../icon.component.js';
|
|
4
|
+
import { type IconProps } from '../icon.types.js';
|
|
5
|
+
|
|
6
|
+
export function PanelLeftIcon({
|
|
7
|
+
look = 'filled',
|
|
8
|
+
'aria-label': ariaLabel = 'Panel Left',
|
|
9
|
+
copyrightYear = '2026',
|
|
10
|
+
...props
|
|
11
|
+
}: IconProps) {
|
|
12
|
+
return (
|
|
13
|
+
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
|
|
14
|
+
{look === 'filled' ? (
|
|
15
|
+
<path
|
|
16
|
+
d="M19.7778 2C20.3889 2 20.912 2.21759 21.3472 2.65278C21.7824 3.08796 22 3.61111 22 4.22222L22 19.7778C22 20.3889 21.7824 20.912 21.3472 21.3472C20.912 21.7824 20.3889 22 19.7778 22L4.22222 22C3.61111 22 3.08796 21.7824 2.65277 21.3472C2.21759 20.912 2 20.3889 2 19.7778L2 4.22222C2 3.61111 2.21759 3.08796 2.65278 2.65278C3.08796 2.21759 3.61111 2 4.22222 2L19.7778 2ZM10 4L10 20L20 20L20 4L10 4Z"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
) : (
|
|
20
|
+
<path
|
|
21
|
+
fillRule="evenodd"
|
|
22
|
+
clipRule="evenodd"
|
|
23
|
+
d="M19.7773 2C20.3885 2 20.9125 2.21716 21.3477 2.65234C21.7828 3.08753 22 3.61155 22 4.22266V19.7773C22 20.3885 21.7828 20.9125 21.3477 21.3477C20.9125 21.7828 20.3885 22 19.7773 22H4.22266C3.61155 22 3.08753 21.7828 2.65234 21.3477C2.21716 20.9125 2 20.3885 2 19.7773V4.22266C2 3.61155 2.21716 3.08753 2.65234 2.65234C3.08753 2.21716 3.61155 2 4.22266 2H19.7773ZM4 4V20H8V4H4ZM10 20H20V4H10V20Z"
|
|
24
|
+
fill="currentColor"
|
|
25
|
+
/>
|
|
26
|
+
)}
|
|
27
|
+
</Icon>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import { Icon } from '../icon.component.js';
|
|
4
|
+
import { type IconProps } from '../icon.types.js';
|
|
5
|
+
|
|
6
|
+
export function PanelRightIcon({
|
|
7
|
+
look = 'filled',
|
|
8
|
+
'aria-label': ariaLabel = 'Panel Right',
|
|
9
|
+
copyrightYear = '2026',
|
|
10
|
+
...props
|
|
11
|
+
}: IconProps) {
|
|
12
|
+
return (
|
|
13
|
+
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
|
|
14
|
+
{look === 'filled' ? (
|
|
15
|
+
<path
|
|
16
|
+
d="M19.7778 2C20.3889 2 20.912 2.21759 21.3472 2.65278C21.7824 3.08796 22 3.61111 22 4.22222L22 19.7778C22 20.3889 21.7824 20.912 21.3472 21.3472C20.912 21.7824 20.3889 22 19.7778 22L4.22222 22C3.61111 22 3.08796 21.7824 2.65277 21.3472C2.21759 20.912 2 20.3889 2 19.7778L2 4.22222C2 3.61111 2.21759 3.08796 2.65278 2.65278C3.08796 2.21759 3.61111 2 4.22222 2L19.7778 2ZM4 4L4 20L14 20L14 4L4 4Z"
|
|
17
|
+
fill="currentColor"
|
|
18
|
+
/>
|
|
19
|
+
) : (
|
|
20
|
+
<path
|
|
21
|
+
fillRule="evenodd"
|
|
22
|
+
clipRule="evenodd"
|
|
23
|
+
d="M19.7773 2C20.3885 2 20.9125 2.21716 21.3477 2.65234C21.7828 3.08753 22 3.61155 22 4.22266V19.7773C22 20.3885 21.7828 20.9125 21.3477 21.3477C20.9125 21.7828 20.3885 22 19.7773 22H4.22266C3.61155 22 3.08753 21.7828 2.65234 21.3477C2.21716 20.9125 2 20.3885 2 19.7773V4.22266C2 3.61155 2.21716 3.08753 2.65234 2.65234C3.08753 2.21716 3.61155 2 4.22266 2H19.7773ZM4 4V20H14V4H4ZM16 20H20V4H16V20Z"
|
|
24
|
+
fill="currentColor"
|
|
25
|
+
/>
|
|
26
|
+
)}
|
|
27
|
+
</Icon>
|
|
28
|
+
);
|
|
29
|
+
}
|
|
@@ -6,10 +6,14 @@ import { type IconProps } from '../icon.types.js';
|
|
|
6
6
|
export function PhoneIcon({ 'aria-label': ariaLabel = 'Phone', copyrightYear = '2026', ...props }: IconProps) {
|
|
7
7
|
return (
|
|
8
8
|
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
|
|
9
|
+
<path
|
|
10
|
+
d="M13 4C13.5523 4 14 4.44772 14 5C14 5.55228 13.5523 6 13 6H11C10.4477 6 10 5.55228 10 5C10 4.44772 10.4477 4 11 4H13Z"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
/>
|
|
9
13
|
<path
|
|
10
14
|
fillRule="evenodd"
|
|
11
15
|
clipRule="evenodd"
|
|
12
|
-
d="
|
|
16
|
+
d="M17 0C18.1046 0 19 0.895431 19 2V22C19 23.1046 18.1046 24 17 24H7C5.89543 24 5 23.1046 5 22V2C5 0.895431 5.89543 0 7 0H17ZM7 22H17V2H7V22Z"
|
|
13
17
|
fill="currentColor"
|
|
14
18
|
/>
|
|
15
19
|
</Icon>
|
|
@@ -6,10 +6,14 @@ import { type IconProps } from '../icon.types.js';
|
|
|
6
6
|
export function TabletIcon({ 'aria-label': ariaLabel = 'Tablet', copyrightYear = '2026', ...props }: IconProps) {
|
|
7
7
|
return (
|
|
8
8
|
<Icon aria-label={ariaLabel} copyrightYear={copyrightYear} {...props}>
|
|
9
|
+
<path
|
|
10
|
+
d="M13 4C13.5523 4 14 4.44772 14 5C14 5.55228 13.5523 6 13 6H11C10.4477 6 10 5.55228 10 5C10 4.44772 10.4477 4 11 4H13Z"
|
|
11
|
+
fill="currentColor"
|
|
12
|
+
/>
|
|
9
13
|
<path
|
|
10
14
|
fillRule="evenodd"
|
|
11
15
|
clipRule="evenodd"
|
|
12
|
-
d="
|
|
16
|
+
d="M20 0C21.1046 0 22 0.895431 22 2V22C22 23.1046 21.1046 24 20 24H4C2.89543 24 2 23.1046 2 22V2C2 0.895431 2.89543 0 4 0H20ZM4 22H20V2H4V22Z"
|
|
13
17
|
fill="currentColor"
|
|
14
18
|
/>
|
|
15
19
|
</Icon>
|
|
@@ -165,6 +165,8 @@ export { PackageDeliveryIcon } from './components/package-delivery-icon.js';
|
|
|
165
165
|
export { PadlockIcon } from './components/padlock-icon.js';
|
|
166
166
|
export { PadlockOpenIcon } from './components/padlock-open-icon.js';
|
|
167
167
|
export { PadlockTickIcon } from './components/padlock-tick-icon.js';
|
|
168
|
+
export { PanelLeftIcon } from './components/panel-left-icon.js';
|
|
169
|
+
export { PanelRightIcon } from './components/panel-right-icon.js';
|
|
168
170
|
export { PasskeyIcon } from './components/passkey-icon.js';
|
|
169
171
|
export { PassportIcon } from './components/passport-icon.js';
|
|
170
172
|
export { PauseCircleIcon } from './components/pause-circle-icon.js';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { clsx } from 'clsx';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
import { Pictogram } from '../pictogram.component.js';
|
|
7
|
+
import { fill } from '../pictogram.styles.js';
|
|
8
|
+
import { type PictogramProps } from '../pictogram.types.js';
|
|
9
|
+
|
|
10
|
+
export function MapPinPictogram({
|
|
11
|
+
mode = 'duo',
|
|
12
|
+
viewBoxWidth = 78,
|
|
13
|
+
viewBoxHeight = 78,
|
|
14
|
+
'aria-label': ariaLabel = 'Map pin',
|
|
15
|
+
copyrightYear = '2026',
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: PictogramProps) {
|
|
19
|
+
return (
|
|
20
|
+
<Pictogram
|
|
21
|
+
className={clsx('size-13', className)}
|
|
22
|
+
viewBoxWidth={viewBoxWidth}
|
|
23
|
+
viewBoxHeight={viewBoxHeight}
|
|
24
|
+
aria-label={ariaLabel}
|
|
25
|
+
copyrightYear={copyrightYear}
|
|
26
|
+
{...props}
|
|
27
|
+
>
|
|
28
|
+
<g fill="none" fillRule="evenodd">
|
|
29
|
+
<path
|
|
30
|
+
className={fill({ mode, outline: true })}
|
|
31
|
+
d="M39 7C50.5979 7 59.9998 16.5511 60 28.333C60 40.1151 39 71 39 71C39 71 18 40.1151 18 28.333C18.0002 16.5511 27.4021 7 39 7ZM38 10C28.335 10 20.5 17.91 20.5 27.667C20.5004 37.4243 38 63 38 63C38 63 55.4996 37.4243 55.5 27.667C55.5 17.91 47.665 10 38 10Z"
|
|
32
|
+
/>
|
|
33
|
+
<circle className={fill({ mode, highlight: true })} cx="38" cy="27" r="8" />
|
|
34
|
+
</g>
|
|
35
|
+
</Pictogram>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -26,18 +26,15 @@ export function MobileDevicePictogram({
|
|
|
26
26
|
{...props}
|
|
27
27
|
>
|
|
28
28
|
<g fill="none" fillRule="evenodd">
|
|
29
|
-
<path
|
|
30
|
-
className={fill({ mode, highlight: true })}
|
|
31
|
-
d="M41.8564,62.8135 C41.8564,65.1335 39.9754,67.0155 37.6554,67.0155 C35.3354,67.0155 33.4544,65.1335 33.4544,62.8135 C33.4544,60.4935 35.3354,58.6125 37.6554,58.6125 C39.9754,58.6125 41.8564,60.4935 41.8564,62.8135"
|
|
32
|
-
/>
|
|
33
29
|
<path
|
|
34
30
|
className={fill({ mode, outline: true })}
|
|
35
|
-
d="
|
|
31
|
+
d="M53.5273 6C54.6145 6 55.5 7.05322 55.5 8.3457V65.6543C55.5 66.9468 54.6145 68 53.5273 68H22.4727C21.3855 68 20.5 66.9468 20.5 65.6543V8.3457C20.5 7.05322 21.3855 6 22.4727 6H53.5273ZM23.3184 65.249H52.8535V8.75098H23.3184V65.249Z"
|
|
36
32
|
/>
|
|
37
33
|
<path
|
|
38
34
|
className={fill({ mode, outline: true })}
|
|
39
|
-
d="
|
|
35
|
+
d="M55.0586 1.75684C55.8186 1.75684 56.5279 1.94872 57.1689 2.26172C57.3128 2.31371 57.4895 2.40896 57.7002 2.55176C57.7302 2.57176 57.762 2.58837 57.792 2.60938C57.8029 2.61731 57.8114 2.62198 57.8232 2.63086C60.3482 4.45486 61.7949 7.29297 61.7949 7.29297C61.7949 7.29297 61.7756 7.30073 61.7686 7.30273C62.1155 7.96966 62.332 8.71566 62.332 9.51855V70.4355C62.332 73.1014 60.1629 75.2703 57.4971 75.2705H23.3828C22.1379 75.2705 21.018 74.7837 20.167 74.0059C17.938 72.2109 16.6621 69.7578 16.6621 69.7578C16.6621 69.7578 16.6776 69.752 16.6816 69.75C16.3246 69.081 16.1104 68.3228 16.1104 67.5098V6.59277C16.1104 3.9259 18.2795 1.75699 20.9453 1.75684H55.0586ZM20.8672 4.25684C19.5804 4.25706 18.5323 5.30494 18.5322 6.59277V67.5098C18.5322 68.7976 19.5804 69.8445 20.8672 69.8447H54.9805C56.2675 69.8447 57.3154 68.7978 57.3154 67.5098V6.59277C57.3154 5.3048 56.2674 4.25684 54.9805 4.25684H20.8672Z"
|
|
40
36
|
/>
|
|
37
|
+
<rect className={fill({ mode, highlight: true })} x="35" y="12" width="6" height="3" rx="1.5" />
|
|
41
38
|
</g>
|
|
42
39
|
</Pictogram>
|
|
43
40
|
);
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import { clsx } from 'clsx';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
|
|
6
|
+
import { Pictogram } from '../pictogram.component.js';
|
|
7
|
+
import { fill } from '../pictogram.styles.js';
|
|
8
|
+
import { type PictogramProps } from '../pictogram.types.js';
|
|
9
|
+
|
|
10
|
+
export function NotificationPictogram({
|
|
11
|
+
mode = 'duo',
|
|
12
|
+
viewBoxWidth = 78,
|
|
13
|
+
viewBoxHeight = 78,
|
|
14
|
+
'aria-label': ariaLabel = 'Notification',
|
|
15
|
+
copyrightYear = '2026',
|
|
16
|
+
className,
|
|
17
|
+
...props
|
|
18
|
+
}: PictogramProps) {
|
|
19
|
+
return (
|
|
20
|
+
<Pictogram
|
|
21
|
+
className={clsx('size-13', className)}
|
|
22
|
+
viewBoxWidth={viewBoxWidth}
|
|
23
|
+
viewBoxHeight={viewBoxHeight}
|
|
24
|
+
aria-label={ariaLabel}
|
|
25
|
+
copyrightYear={copyrightYear}
|
|
26
|
+
{...props}
|
|
27
|
+
>
|
|
28
|
+
<g fill="none" fillRule="evenodd">
|
|
29
|
+
<path className={fill({ mode, highlight: true })} d="M15.1504 33.873H6V31.373H15.1504V33.873Z" />
|
|
30
|
+
<path className={fill({ mode, highlight: true })} d="M71.126 33.873H61.9766V31.373H71.126V33.873Z" />
|
|
31
|
+
<path
|
|
32
|
+
className={fill({ mode, highlight: true })}
|
|
33
|
+
d="M22.8906 17.125L21.124 18.8916L14.6543 12.4209L16.4219 10.6533L22.8906 17.125Z"
|
|
34
|
+
/>
|
|
35
|
+
<path
|
|
36
|
+
className={fill({ mode, highlight: true })}
|
|
37
|
+
d="M62.4727 12.4219L56.0029 18.8916L54.2354 17.124L60.7051 10.6543L62.4727 12.4219Z"
|
|
38
|
+
/>
|
|
39
|
+
<path className={fill({ mode, highlight: true })} d="M39.8135 11.1504H37.3135V2.00098H39.8135V11.1504Z" />
|
|
40
|
+
<path
|
|
41
|
+
className={fill({ mode, outline: true })}
|
|
42
|
+
d="M46.0968 60.9717L46.0079 60.9697C45.5887 64.6654 42.9012 67.5292 39.6534 67.5293C36.7305 67.5291 32.1257 65.5263 30.6056 61.6367C30.3517 61.1251 30.1489 60.5763 30.0001 60H16.0763C16.0763 60 15.9052 55.6887 16.0763 54.875C16.5598 52.5757 20.5344 50.6378 20.5607 50.625V40.875C20.5607 32.9538 26.2776 26.2974 34.0148 24.4102V21.75C34.0148 19.4028 36.0232 17.5 38.5001 17.5C40.9769 17.5001 42.9845 19.4028 42.9845 21.75V24.4102C50.7217 26.2974 55.4396 32.9537 55.4396 40.875V51.625C55.4845 51.6469 59.4416 53.5812 59.9239 55.875C60.0949 56.6883 59.9241 59.9964 59.9239 60H46.0968V60.9717ZM32.6066 60C33.267 61.7775 34.6746 63.0194 36.3126 63.0195C37.9517 63.0195 39.3592 61.7784 40.0187 60H32.6066ZM37.5011 27C35.6358 27 34.1219 27.3104 34.1114 27.3125C28.2648 28.8338 23.9445 34.1989 23.9445 40.584V52.3613C23.9253 52.3633 22.5523 52.5091 21.5861 53.7871C20.615 55.0716 20.556 55.9963 20.5558 56H54.4454C54.4454 56 54.4455 54.9999 53.4728 54C52.5059 53.0062 51.0743 52.3691 51.0568 52.3613V40.584C51.0568 34.1989 46.7364 28.8338 40.8898 27.3125C38.913 27.0003 39.3722 27 37.5011 27Z"
|
|
43
|
+
/>
|
|
44
|
+
</g>
|
|
45
|
+
</Pictogram>
|
|
46
|
+
);
|
|
47
|
+
}
|