forstok-ui-lib 5.8.4 → 5.8.7
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 +5 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/assets/images/icons/cart.svg +17 -0
- package/src/components/icon/styles.ts +8 -0
- package/src/components/message/styles.ts +4 -3
package/package.json
CHANGED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
|
|
3
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
4
|
+
<svg width="auto" height="auto" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
5
|
+
<g clip-path="url(#clip0_15_35)">
|
|
6
|
+
<rect width="24" height="24" fill="white"/>
|
|
7
|
+
<path d="M5.33331 6H19.8672C20.4687 6 20.9341 6.52718 20.8595 7.12403L20.1095 13.124C20.0469 13.6245 19.6215 14 19.1172 14H16.5555H9.44442H7.99998" stroke="#000000" stroke-linejoin="round"/>
|
|
8
|
+
<path d="M2 4H4.23362C4.68578 4 5.08169 4.30341 5.19924 4.74003L8.30076 16.26C8.41831 16.6966 8.81422 17 9.26638 17H19" stroke="#000000" stroke-linecap="round" stroke-linejoin="round"/>
|
|
9
|
+
<circle cx="10" cy="20" r="1" stroke="#000000" stroke-linejoin="round"/>
|
|
10
|
+
<circle cx="17.5" cy="20" r="1" stroke="#000000" stroke-linejoin="round"/>
|
|
11
|
+
</g>
|
|
12
|
+
<defs>
|
|
13
|
+
<clipPath id="clip0_15_35">
|
|
14
|
+
<rect width="24" height="24" fill="white"/>
|
|
15
|
+
</clipPath>
|
|
16
|
+
</defs>
|
|
17
|
+
</svg>
|
|
@@ -34,6 +34,8 @@ import IconNotificationUpload from '../../assets/images/icons/notif-upload-white
|
|
|
34
34
|
import IconBar from '../../assets/images/icons/humberbars.svg';
|
|
35
35
|
import IconClose from '../../assets/images/icons/close.svg';
|
|
36
36
|
import IconPerson from '../../assets/images/icons/person.svg';
|
|
37
|
+
import IconCart from '../../assets/images/icons/cart.svg';
|
|
38
|
+
|
|
37
39
|
const NotificationStyled = css`
|
|
38
40
|
width: 44px;
|
|
39
41
|
height: 44px;
|
|
@@ -285,6 +287,12 @@ const getIconContainerStyled = ({ $mode, $name, $width, onClick }:{ $mode?: stri
|
|
|
285
287
|
content: url(${IconPerson});
|
|
286
288
|
}`
|
|
287
289
|
break;
|
|
290
|
+
case 'cart':
|
|
291
|
+
style += `
|
|
292
|
+
&:before {
|
|
293
|
+
content: url(${IconCart});
|
|
294
|
+
}`
|
|
295
|
+
break;
|
|
288
296
|
default:
|
|
289
297
|
break;
|
|
290
298
|
}
|
|
@@ -146,14 +146,15 @@ export const MessageWrapper = styled.section<{ $isOpen: boolean }>`
|
|
|
146
146
|
border-radius: var(--ter-rd);
|
|
147
147
|
overflow: hidden;
|
|
148
148
|
transition: opacity .4s;
|
|
149
|
-
width:
|
|
150
|
-
min-width: 600px;
|
|
149
|
+
width: 300px;
|
|
151
150
|
padding: 0;
|
|
152
151
|
position: relative;
|
|
153
152
|
display: inline-grid;
|
|
154
153
|
grid-auto-flow: row;
|
|
154
|
+
max-width: 300px;
|
|
155
155
|
@media only screen and (min-width: 768px) {
|
|
156
|
-
|
|
156
|
+
width: 600px;
|
|
157
|
+
max-width: 600px;
|
|
157
158
|
}
|
|
158
159
|
${({ $isOpen }:{ $isOpen: boolean }) => {
|
|
159
160
|
if ($isOpen) {
|