forstok-ui-lib 5.4.7 → 5.4.8
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.js +186 -176
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +183 -173
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/images/icons/notif-download-white.svg +6 -0
- package/src/assets/images/icons/notif-upload-white.svg +6 -0
- package/src/components/icon/styles.ts +29 -1
package/package.json
CHANGED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 20 20" version="1.1">
|
|
3
|
+
<g id="surface1">
|
|
4
|
+
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 16.007812 10.878906 L 10 16.886719 L 3.992188 10.878906 L 5.097656 9.773438 L 9.21875 13.894531 L 9.21875 0 L 10.78125 0 L 10.78125 13.894531 L 14.902344 9.773438 Z M 20 18.4375 L 0 18.4375 L 0 20 L 20 20 Z M 20 18.4375 "/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="100%" height="100%" viewBox="0 0 20 20" version="1.1">
|
|
3
|
+
<g id="surface1">
|
|
4
|
+
<path style=" stroke:none;fill-rule:nonzero;fill:rgb(100%,100%,100%);fill-opacity:1;" d="M 5.097656 7.113281 L 3.992188 6.007812 L 10 0 L 16.007812 6.007812 L 14.902344 7.113281 L 10.78125 2.992188 L 10.78125 16.886719 L 9.21875 16.886719 L 9.21875 2.992188 Z M 0 18.410156 L 0 19.972656 L 20 19.972656 L 20 18.410156 Z M 0 18.410156 "/>
|
|
5
|
+
</g>
|
|
6
|
+
</svg>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { MouseEvent } from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
2
|
+
import styled, { css } from 'styled-components';
|
|
3
3
|
import IconArrowLeftBlue from '../../assets/images/icons/arrow-left-blue.svg';
|
|
4
4
|
import IconSearch from '../../assets/images/icons/search.svg';
|
|
5
5
|
import IconCheckGrey from '../../assets/images/icons/checkmark-tick-grey.svg';
|
|
@@ -29,6 +29,20 @@ import IconArrowRightDouble from '../../assets/images/icons/arrow-right-double.s
|
|
|
29
29
|
import IconCalendar from '../../assets/images/icons/calendar.svg'
|
|
30
30
|
import IconQuestion from '../../assets/images/icons/question.svg';
|
|
31
31
|
import IconSortby from '../../assets/images/icons/sortby.svg';
|
|
32
|
+
import IconNotificationDownload from '../../assets/images/icons/notif-download-white.svg';
|
|
33
|
+
import IconNotificationUpload from '../../assets/images/icons/notif-upload-white.svg';
|
|
34
|
+
|
|
35
|
+
const NotificationStyled = css`
|
|
36
|
+
width: 44px;
|
|
37
|
+
height: 44px;
|
|
38
|
+
vertical-align: middle;
|
|
39
|
+
text-align: center;
|
|
40
|
+
background-color: var(--mt-clr-bg);
|
|
41
|
+
border-radius: 100%;
|
|
42
|
+
display: grid;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
`
|
|
32
46
|
|
|
33
47
|
const getIconContainerStyled = ({ $mode, $name, $width, onClick }:{ $mode?: string, $name: string, $width?: string | number, onClick?: (e: MouseEvent<HTMLElement>) => void }) => {
|
|
34
48
|
let style = ``;
|
|
@@ -237,6 +251,20 @@ const getIconContainerStyled = ({ $mode, $name, $width, onClick }:{ $mode?: stri
|
|
|
237
251
|
}
|
|
238
252
|
`
|
|
239
253
|
break;
|
|
254
|
+
case 'NotificationDownload' :
|
|
255
|
+
style += `
|
|
256
|
+
${NotificationStyled}
|
|
257
|
+
&:before {
|
|
258
|
+
content: url(${IconNotificationDownload});
|
|
259
|
+
}`
|
|
260
|
+
break;
|
|
261
|
+
case 'NotificationUpload' :
|
|
262
|
+
style += `
|
|
263
|
+
${NotificationStyled}
|
|
264
|
+
&:before {
|
|
265
|
+
content: url(${IconNotificationUpload});
|
|
266
|
+
}`
|
|
267
|
+
break;
|
|
240
268
|
default:
|
|
241
269
|
break;
|
|
242
270
|
}
|