@blaze-cms/react-page-builder 0.146.0-alpha.42 → 0.146.0-alpha.44
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 +8 -0
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +22 -6
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/icons/AddedBookmark.js +45 -0
- package/lib/components/ItemList/icons/AddedBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/BaseBookmark.js +50 -0
- package/lib/components/ItemList/icons/BaseBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/FocusedBookmark.js +45 -0
- package/lib/components/ItemList/icons/FocusedBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/HoverBookmark.js +45 -0
- package/lib/components/ItemList/icons/HoverBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/RemoveBookmark.js +45 -0
- package/lib/components/ItemList/icons/RemoveBookmark.js.map +1 -0
- package/lib/components/ItemList/icons/index.js +43 -0
- package/lib/components/ItemList/icons/index.js.map +1 -0
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js +15 -6
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
- package/lib-es/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib-es/components/ItemList/icons/AddedBookmark.js +36 -0
- package/lib-es/components/ItemList/icons/AddedBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js +41 -0
- package/lib-es/components/ItemList/icons/BaseBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/FocusedBookmark.js +36 -0
- package/lib-es/components/ItemList/icons/FocusedBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js +36 -0
- package/lib-es/components/ItemList/icons/HoverBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js +36 -0
- package/lib-es/components/ItemList/icons/RemoveBookmark.js.map +1 -0
- package/lib-es/components/ItemList/icons/index.js +6 -0
- package/lib-es/components/ItemList/icons/index.js.map +1 -0
- package/package.json +2 -2
- package/src/components/ItemList/ItemListButton/ItemListButton.js +23 -12
- package/src/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
- package/src/components/ItemList/icons/AddedBookmark.js +33 -0
- package/src/components/ItemList/icons/BaseBookmark.js +39 -0
- package/src/components/ItemList/icons/FocusedBookmark.js +33 -0
- package/src/components/ItemList/icons/HoverBookmark.js +33 -0
- package/src/components/ItemList/icons/RemoveBookmark.js +33 -0
- package/src/components/ItemList/icons/index.js +5 -0
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListButton.test.js.snap +151 -43
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListCounter.test.js.snap +35 -9
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemListButton.js","names":["React","useState","PropTypes","
|
|
1
|
+
{"version":3,"file":"ItemListButton.js","names":["React","useState","PropTypes","useQuery","useMutation","AddedBookmark","BaseBookmark","FocusedBookmark","HoverBookmark","RemoveBookmark","getItemList","addItemsToList","removeItemsFromList","getItemListData","setItemListId","useItemListId","ItemListButton","listName","parent","modifier","itemId","itemEntity","isHover","setIsHover","isFocused","setIsFocused","listId","data","error","loading","variables","id","skip","addListItem","onCompleted","listAddResult","result","removeListItem","clickHandler","isInList","listItems","name","message","find","idToCheck","entityToCheck","getIcon","Icon","stateClassName","className","filter","Boolean","join","createElement","role","tabIndex","onClick","onMouseEnter","onMouseLeave","onFocus","onBlur","propTypes","object","string","defaultProps"],"sources":["../../../../src/components/ItemList/ItemListButton/ItemListButton.js"],"sourcesContent":["import React, { useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { useQuery, useMutation } from '@apollo/client';\nimport {\n AddedBookmark,\n BaseBookmark,\n FocusedBookmark,\n HoverBookmark,\n RemoveBookmark\n} from '../icons';\nimport { getItemList, addItemsToList, removeItemsFromList } from '../../../application/query';\nimport { getItemListData, setItemListId } from '../helpers';\nimport { useItemListId } from '../hooks';\n\nconst ItemListButton = ({ listName, parent, modifier }) => {\n const { itemId, itemEntity } = parent;\n const [isHover, setIsHover] = useState(false);\n const [isFocused, setIsFocused] = useState(false);\n const { listId } = useItemListId({ listName });\n\n const { data, error, loading } = useQuery(getItemList, {\n variables: { id: listId },\n skip: !listId\n });\n\n const [addListItem] = useMutation(addItemsToList, {\n onCompleted: ({ addItemsToList: listAddResult }) => {\n const {\n result: { id }\n } = listAddResult;\n\n if (!listId) {\n setItemListId(listName, id);\n }\n }\n });\n\n const [removeListItem] = useMutation(removeItemsFromList);\n\n const clickHandler = () => {\n setIsHover(false);\n setIsFocused(false);\n isInList\n ? removeListItem({\n variables: { listId, listItems: [{ itemId, itemEntity }] },\n skip: !listId\n })\n : addListItem({\n variables: { name: listName, id: listId, listItems: [{ itemId, itemEntity }] },\n skip: !listId\n });\n };\n\n if (loading) return '';\n if (error) return error.message;\n\n const listItems = getItemListData(data);\n const isInList = !!listItems.find(\n ({ itemId: idToCheck, itemEntity: entityToCheck }) =>\n idToCheck === itemId && entityToCheck === itemEntity\n );\n\n const getIcon = () => {\n if (isFocused && !isHover) {\n return FocusedBookmark;\n }\n if (isInList) {\n return isHover ? RemoveBookmark : AddedBookmark;\n }\n return isHover ? HoverBookmark : BaseBookmark;\n };\n\n const Icon = getIcon();\n const stateClassName = isInList ? 'item-list-button--selected' : '';\n const className = ['item-list-button', stateClassName, modifier].filter(Boolean).join(' ');\n\n return (\n <div\n className={className}\n role=\"button\"\n tabIndex=\"0\"\n onClick={clickHandler}\n onMouseEnter={() => setIsHover(true)}\n onMouseLeave={() => setIsHover(false)}\n onFocus={() => setIsFocused(true)}\n onBlur={() => setIsFocused(false)}>\n <i>\n <Icon />\n </i>\n </div>\n );\n};\n\nItemListButton.propTypes = {\n parent: PropTypes.object,\n listName: PropTypes.string,\n modifier: PropTypes.string\n};\n\nItemListButton.defaultProps = {\n parent: {},\n listName: '',\n modifier: ''\n};\n\nexport default ItemListButton;\n"],"mappings":"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","ignoreList":[]}
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useRouter } from 'next/router';
|
|
4
4
|
import { useQuery } from '@apollo/client';
|
|
5
|
-
import {
|
|
5
|
+
import { AddedBookmark, BaseBookmark } from '../icons';
|
|
6
6
|
import { getItemList } from '../../../application/query';
|
|
7
7
|
import { useItemListId } from '../hooks';
|
|
8
8
|
import { getItemListData } from '../helpers';
|
|
@@ -31,7 +31,7 @@ const ItemListCounter = ({
|
|
|
31
31
|
if (error) return error.message;
|
|
32
32
|
const listItems = getItemListData(data);
|
|
33
33
|
const listLength = listItems.length;
|
|
34
|
-
const CounterIcon = listLength ?
|
|
34
|
+
const CounterIcon = listLength ? AddedBookmark : BaseBookmark;
|
|
35
35
|
const handleClick = () => router.push('/Resolver', `${url}?itemListId=${listId}`);
|
|
36
36
|
return /*#__PURE__*/React.createElement("div", {
|
|
37
37
|
role: "button",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemListCounter.js","names":["React","PropTypes","useRouter","useQuery","
|
|
1
|
+
{"version":3,"file":"ItemListCounter.js","names":["React","PropTypes","useRouter","useQuery","AddedBookmark","BaseBookmark","getItemList","useItemListId","getItemListData","ItemListCounter","listName","modifier","url","router","listId","data","error","loading","variables","id","skip","message","listItems","listLength","length","CounterIcon","handleClick","push","createElement","role","type","className","onClick","propTypes","string","defaultProps"],"sources":["../../../../src/components/ItemList/ItemListCounter/ItemListCounter.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { useRouter } from 'next/router';\nimport { useQuery } from '@apollo/client';\nimport { AddedBookmark, BaseBookmark } from '../icons';\nimport { getItemList } from '../../../application/query';\nimport { useItemListId } from '../hooks';\nimport { getItemListData } from '../helpers';\n\nconst ItemListCounter = ({ listName, modifier, url }) => {\n const router = useRouter();\n const { listId } = useItemListId({ listName });\n\n const { data, error, loading } = useQuery(getItemList, {\n variables: { id: listId },\n skip: !listId\n });\n\n if (loading) return '';\n if (error) return error.message;\n\n const listItems = getItemListData(data);\n const listLength = listItems.length;\n const CounterIcon = listLength ? AddedBookmark : BaseBookmark;\n\n const handleClick = () => router.push('/Resolver', `${url}?itemListId=${listId}`);\n\n return (\n <div\n role=\"button\"\n type=\"button\"\n className={`item-list-counter ${modifier}`}\n aria-label={`View ${listName}`}\n onClick={handleClick}>\n <CounterIcon />\n <span className=\"item-list-counter__badge\">{listLength}</span>\n </div>\n );\n};\n\nItemListCounter.propTypes = {\n url: PropTypes.string,\n listName: PropTypes.string,\n modifier: PropTypes.string\n};\n\nItemListCounter.defaultProps = {\n url: '',\n listName: '',\n modifier: ''\n};\n\nexport default ItemListCounter;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,SAAS,QAAQ,aAAa;AACvC,SAASC,QAAQ,QAAQ,gBAAgB;AACzC,SAASC,aAAa,EAAEC,YAAY,QAAQ,UAAU;AACtD,SAASC,WAAW,QAAQ,4BAA4B;AACxD,SAASC,aAAa,QAAQ,UAAU;AACxC,SAASC,eAAe,QAAQ,YAAY;AAE5C,MAAMC,eAAe,GAAGA,CAAC;EAAEC,QAAQ;EAAEC,QAAQ;EAAEC;AAAI,CAAC,KAAK;EACvD,MAAMC,MAAM,GAAGX,SAAS,CAAC,CAAC;EAC1B,MAAM;IAAEY;EAAO,CAAC,GAAGP,aAAa,CAAC;IAAEG;EAAS,CAAC,CAAC;EAE9C,MAAM;IAAEK,IAAI;IAAEC,KAAK;IAAEC;EAAQ,CAAC,GAAGd,QAAQ,CAACG,WAAW,EAAE;IACrDY,SAAS,EAAE;MAAEC,EAAE,EAAEL;IAAO,CAAC;IACzBM,IAAI,EAAE,CAACN;EACT,CAAC,CAAC;EAEF,IAAIG,OAAO,EAAE,OAAO,EAAE;EACtB,IAAID,KAAK,EAAE,OAAOA,KAAK,CAACK,OAAO;EAE/B,MAAMC,SAAS,GAAGd,eAAe,CAACO,IAAI,CAAC;EACvC,MAAMQ,UAAU,GAAGD,SAAS,CAACE,MAAM;EACnC,MAAMC,WAAW,GAAGF,UAAU,GAAGnB,aAAa,GAAGC,YAAY;EAE7D,MAAMqB,WAAW,GAAGA,CAAA,KAAMb,MAAM,CAACc,IAAI,CAAC,WAAW,EAAE,GAAGf,GAAG,eAAeE,MAAM,EAAE,CAAC;EAEjF,oBACEd,KAAA,CAAA4B,aAAA;IACEC,IAAI,EAAC,QAAQ;IACbC,IAAI,EAAC,QAAQ;IACbC,SAAS,EAAE,qBAAqBpB,QAAQ,EAAG;IAC3C,cAAY,QAAQD,QAAQ,EAAG;IAC/BsB,OAAO,EAAEN;EAAY,gBACrB1B,KAAA,CAAA4B,aAAA,CAACH,WAAW,MAAE,CAAC,eACfzB,KAAA,CAAA4B,aAAA;IAAMG,SAAS,EAAC;EAA0B,GAAER,UAAiB,CAC1D,CAAC;AAEV,CAAC;AAEDd,eAAe,CAACwB,SAAS,GAAG;EAC1BrB,GAAG,EAAEX,SAAS,CAACiC,MAAM;EACrBxB,QAAQ,EAAET,SAAS,CAACiC,MAAM;EAC1BvB,QAAQ,EAAEV,SAAS,CAACiC;AACtB,CAAC;AAEDzB,eAAe,CAAC0B,YAAY,GAAG;EAC7BvB,GAAG,EAAE,EAAE;EACPF,QAAQ,EAAE,EAAE;EACZC,QAAQ,EAAE;AACZ,CAAC;AAED,eAAeF,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
function AddedBookmark({
|
|
3
|
+
width = '24px',
|
|
4
|
+
height = '33px'
|
|
5
|
+
}) {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
width: width,
|
|
8
|
+
height: height,
|
|
9
|
+
viewBox: "0 0 24 33",
|
|
10
|
+
version: "1.1",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("title", null, "wishlist-button/added"), /*#__PURE__*/React.createElement("g", {
|
|
13
|
+
id: "Wishlist",
|
|
14
|
+
stroke: "none",
|
|
15
|
+
strokeWidth: "1",
|
|
16
|
+
fill: "none",
|
|
17
|
+
fillRule: "evenodd"
|
|
18
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
19
|
+
id: "components",
|
|
20
|
+
transform: "translate(-417, -433)"
|
|
21
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
22
|
+
id: "Group",
|
|
23
|
+
transform: "translate(417, 433.0588)"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z",
|
|
26
|
+
id: "Shape",
|
|
27
|
+
fill: "#C31629",
|
|
28
|
+
fillRule: "nonzero"
|
|
29
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M19.5735342,9.48562495 C20.1421553,8.91700384 20.1421553,7.99508691 19.5735342,7.42646583 C19.0049131,6.85784474 18.0829962,6.85784472 17.514375,7.42646579 L9.81870394,15.1250453 L6.48565817,11.7890911 C6.11782481,11.4212578 5.58169601,11.2776025 5.0792263,11.4122388 C4.57675658,11.5468752 4.18428306,11.9393487 4.04964671,12.4418184 C3.91501035,12.9442881 4.05866564,13.4804169 4.42649901,13.8482503 L8.78912435,18.2108756 C9.06194626,18.4843881 9.43238689,18.638104 9.81870394,18.638104 C10.205021,18.638104 10.5754616,18.4843881 10.8482835,18.2108756 L19.5735342,9.48562495 Z",
|
|
31
|
+
id: "Path",
|
|
32
|
+
fill: "#FFFFFF"
|
|
33
|
+
})))));
|
|
34
|
+
}
|
|
35
|
+
export default AddedBookmark;
|
|
36
|
+
//# sourceMappingURL=AddedBookmark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddedBookmark.js","names":["React","AddedBookmark","width","height","createElement","viewBox","version","xmlns","id","stroke","strokeWidth","fill","fillRule","transform","d"],"sources":["../../../../src/components/ItemList/icons/AddedBookmark.js"],"sourcesContent":["import React from 'react';\n\nfunction AddedBookmark({ width = '24px', height = '33px' }) {\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 24 33\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <title>wishlist-button/added</title>\n <g id=\"Wishlist\" stroke=\"none\" strokeWidth=\"1\" fill=\"none\" fillRule=\"evenodd\">\n <g id=\"components\" transform=\"translate(-417, -433)\">\n <g id=\"Group\" transform=\"translate(417, 433.0588)\">\n <path\n d=\"M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z\"\n id=\"Shape\"\n fill=\"#C31629\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M19.5735342,9.48562495 C20.1421553,8.91700384 20.1421553,7.99508691 19.5735342,7.42646583 C19.0049131,6.85784474 18.0829962,6.85784472 17.514375,7.42646579 L9.81870394,15.1250453 L6.48565817,11.7890911 C6.11782481,11.4212578 5.58169601,11.2776025 5.0792263,11.4122388 C4.57675658,11.5468752 4.18428306,11.9393487 4.04964671,12.4418184 C3.91501035,12.9442881 4.05866564,13.4804169 4.42649901,13.8482503 L8.78912435,18.2108756 C9.06194626,18.4843881 9.43238689,18.638104 9.81870394,18.638104 C10.205021,18.638104 10.5754616,18.4843881 10.8482835,18.2108756 L19.5735342,9.48562495 Z\"\n id=\"Path\"\n fill=\"#FFFFFF\"\n />\n </g>\n </g>\n </g>\n </svg>\n );\n}\n\nexport default AddedBookmark;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,aAAaA,CAAC;EAAEC,KAAK,GAAG,MAAM;EAAEC,MAAM,GAAG;AAAO,CAAC,EAAE;EAC1D,oBACEH,KAAA,CAAAI,aAAA;IACEF,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfE,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAC,KAAK;IACbC,KAAK,EAAC;EAA4B,gBAClCP,KAAA,CAAAI,aAAA,gBAAO,uBAA4B,CAAC,eACpCJ,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,UAAU;IAACC,MAAM,EAAC,MAAM;IAACC,WAAW,EAAC,GAAG;IAACC,IAAI,EAAC,MAAM;IAACC,QAAQ,EAAC;EAAS,gBAC3EZ,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,YAAY;IAACK,SAAS,EAAC;EAAuB,gBAClDb,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,OAAO;IAACK,SAAS,EAAC;EAA0B,gBAChDb,KAAA,CAAAI,aAAA;IACEU,CAAC,EAAC,6gBAA6gB;IAC/gBN,EAAE,EAAC,OAAO;IACVG,IAAI,EAAC,SAAS;IACdC,QAAQ,EAAC;EAAS,CACnB,CAAC,eACFZ,KAAA,CAAAI,aAAA;IACEU,CAAC,EAAC,qkBAAqkB;IACvkBN,EAAE,EAAC,MAAM;IACTG,IAAI,EAAC;EAAS,CACf,CACA,CACF,CACF,CACA,CAAC;AAEV;AAEA,eAAeV,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
function BaseBookmark({
|
|
3
|
+
width = '24px',
|
|
4
|
+
height = '32px'
|
|
5
|
+
}) {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
width: width,
|
|
8
|
+
height: height,
|
|
9
|
+
viewBox: "0 0 24 32",
|
|
10
|
+
version: "1.1",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("title", null, "wishlist-button/base"), /*#__PURE__*/React.createElement("g", {
|
|
13
|
+
id: "Wishlist",
|
|
14
|
+
stroke: "none",
|
|
15
|
+
strokeWidth: "1",
|
|
16
|
+
fill: "none",
|
|
17
|
+
fillRule: "evenodd"
|
|
18
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
19
|
+
id: "components",
|
|
20
|
+
transform: "translate(-417, -237)"
|
|
21
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
22
|
+
id: "Group",
|
|
23
|
+
transform: "translate(417, 237)"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M0,4.00006438 C0,1.79088983 1.79088983,0 4.00006438,0 L20.0003219,0 C22.2094965,0 24.0003863,1.79088983 24.0003863,4.00006438 L24.0003863,31.000499 C24.0003863,31.3690566 23.7972987,31.707635 23.4723789,31.8815946 C23.1474592,32.0555542 22.7531917,32.0366934 22.4463613,31.8325124 L12.0001931,26.2024217 L1.55402501,31.8325124 C1.24719462,32.0366934 0.852927098,32.0555542 0.528007369,31.8815946 C0.203087639,31.707635 0,31.3690566 0,31.000499 L0,4.00006438 Z",
|
|
26
|
+
id: "Path",
|
|
27
|
+
fill: "#FFFFFF"
|
|
28
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
29
|
+
d: "M11.4884365,6.3199776 C11.5838756,6.12420508 11.7826038,6 12.0004007,6 C12.2181976,6 12.4169257,6.12420508 12.5123648,6.3199776 L14.5410228,10.4316897 C14.623468,10.6005456 14.7838925,10.717871 14.9697928,10.7452678 L19.5134747,11.4044216 C19.9774422,11.4716169 20.166229,12.0443768 19.8270528,12.3739538 L16.5440826,15.5769295 C16.4096115,15.7082089 16.3485531,15.8973704 16.380894,16.0824941 L17.1552398,20.6069774 C17.1907134,20.8200705 17.1025787,21.0348915 16.927666,21.1616693 C16.7527533,21.2884471 16.5211722,21.3053581 16.3296976,21.2053355 L12.2659821,19.0678851 C12.1006216,18.9813923 11.9033796,18.9813923 11.7380191,19.0678851 L7.67430355,21.2053355 C7.48306696,21.3035559 7.2528198,21.2857277 7.07898266,21.1592392 C6.90514552,21.0327507 6.81734235,20.8191571 6.85196113,20.6069774 L7.62630692,16.0824941 C7.6594628,15.8979103 7.5996286,15.7088342 7.46631812,15.5769295 L4.17054885,12.3739538 C4.01657399,12.222779 3.96125182,11.9975718 4.027656,11.7922609 C4.09406017,11.58695 4.2707867,11.4367948 4.48412689,11.4044216 L9.0278088,10.7452678 C9.21370906,10.717871 9.3741336,10.6005456 9.45657878,10.4316897 L11.4884365,6.3199776 Z",
|
|
30
|
+
id: "Path",
|
|
31
|
+
fill: "#C31629",
|
|
32
|
+
fillRule: "nonzero"
|
|
33
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
34
|
+
d: "M0,4.00006438 C0,1.79088983 1.79088983,0 4.00006438,0 L20.0003219,0 C22.2094965,0 24.0003863,1.79088983 24.0003863,4.00006438 L24.0003863,31.000499 C24.0003863,31.3690566 23.7972987,31.707635 23.4723789,31.8815946 C23.1474592,32.0555542 22.7531917,32.0366934 22.4463613,31.8325124 L12.0001931,26.2024217 L1.55402501,31.8325124 C1.24719462,32.0366934 0.852927098,32.0555542 0.528007369,31.8815946 C0.203087639,31.707635 0,31.3690566 0,31.000499 L0,4.00006438 Z M4.00006438,2.00003219 C2.8954771,2.00003219 2.00003219,2.8954771 2.00003219,4.00006438 L2.00003219,29.1324689 L11.4461842,24.168389 C11.7817677,23.9450743 12.2186186,23.9450743 12.5542021,24.168389 L22.0003541,29.1324689 L22.0003541,4.00006438 C22.0003541,2.8954771 21.1049092,2.00003219 20.0003219,2.00003219 L4.00006438,2.00003219 Z",
|
|
35
|
+
id: "Shape",
|
|
36
|
+
fill: "#C31629",
|
|
37
|
+
fillRule: "nonzero"
|
|
38
|
+
})))));
|
|
39
|
+
}
|
|
40
|
+
export default BaseBookmark;
|
|
41
|
+
//# sourceMappingURL=BaseBookmark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseBookmark.js","names":["React","BaseBookmark","width","height","createElement","viewBox","version","xmlns","id","stroke","strokeWidth","fill","fillRule","transform","d"],"sources":["../../../../src/components/ItemList/icons/BaseBookmark.js"],"sourcesContent":["import React from 'react';\n\nfunction BaseBookmark({ width = '24px', height = '32px' }) {\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 24 32\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <title>wishlist-button/base</title>\n <g id=\"Wishlist\" stroke=\"none\" strokeWidth=\"1\" fill=\"none\" fillRule=\"evenodd\">\n <g id=\"components\" transform=\"translate(-417, -237)\">\n <g id=\"Group\" transform=\"translate(417, 237)\">\n <path\n d=\"M0,4.00006438 C0,1.79088983 1.79088983,0 4.00006438,0 L20.0003219,0 C22.2094965,0 24.0003863,1.79088983 24.0003863,4.00006438 L24.0003863,31.000499 C24.0003863,31.3690566 23.7972987,31.707635 23.4723789,31.8815946 C23.1474592,32.0555542 22.7531917,32.0366934 22.4463613,31.8325124 L12.0001931,26.2024217 L1.55402501,31.8325124 C1.24719462,32.0366934 0.852927098,32.0555542 0.528007369,31.8815946 C0.203087639,31.707635 0,31.3690566 0,31.000499 L0,4.00006438 Z\"\n id=\"Path\"\n fill=\"#FFFFFF\"\n />\n <path\n d=\"M11.4884365,6.3199776 C11.5838756,6.12420508 11.7826038,6 12.0004007,6 C12.2181976,6 12.4169257,6.12420508 12.5123648,6.3199776 L14.5410228,10.4316897 C14.623468,10.6005456 14.7838925,10.717871 14.9697928,10.7452678 L19.5134747,11.4044216 C19.9774422,11.4716169 20.166229,12.0443768 19.8270528,12.3739538 L16.5440826,15.5769295 C16.4096115,15.7082089 16.3485531,15.8973704 16.380894,16.0824941 L17.1552398,20.6069774 C17.1907134,20.8200705 17.1025787,21.0348915 16.927666,21.1616693 C16.7527533,21.2884471 16.5211722,21.3053581 16.3296976,21.2053355 L12.2659821,19.0678851 C12.1006216,18.9813923 11.9033796,18.9813923 11.7380191,19.0678851 L7.67430355,21.2053355 C7.48306696,21.3035559 7.2528198,21.2857277 7.07898266,21.1592392 C6.90514552,21.0327507 6.81734235,20.8191571 6.85196113,20.6069774 L7.62630692,16.0824941 C7.6594628,15.8979103 7.5996286,15.7088342 7.46631812,15.5769295 L4.17054885,12.3739538 C4.01657399,12.222779 3.96125182,11.9975718 4.027656,11.7922609 C4.09406017,11.58695 4.2707867,11.4367948 4.48412689,11.4044216 L9.0278088,10.7452678 C9.21370906,10.717871 9.3741336,10.6005456 9.45657878,10.4316897 L11.4884365,6.3199776 Z\"\n id=\"Path\"\n fill=\"#C31629\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M0,4.00006438 C0,1.79088983 1.79088983,0 4.00006438,0 L20.0003219,0 C22.2094965,0 24.0003863,1.79088983 24.0003863,4.00006438 L24.0003863,31.000499 C24.0003863,31.3690566 23.7972987,31.707635 23.4723789,31.8815946 C23.1474592,32.0555542 22.7531917,32.0366934 22.4463613,31.8325124 L12.0001931,26.2024217 L1.55402501,31.8325124 C1.24719462,32.0366934 0.852927098,32.0555542 0.528007369,31.8815946 C0.203087639,31.707635 0,31.3690566 0,31.000499 L0,4.00006438 Z M4.00006438,2.00003219 C2.8954771,2.00003219 2.00003219,2.8954771 2.00003219,4.00006438 L2.00003219,29.1324689 L11.4461842,24.168389 C11.7817677,23.9450743 12.2186186,23.9450743 12.5542021,24.168389 L22.0003541,29.1324689 L22.0003541,4.00006438 C22.0003541,2.8954771 21.1049092,2.00003219 20.0003219,2.00003219 L4.00006438,2.00003219 Z\"\n id=\"Shape\"\n fill=\"#C31629\"\n fillRule=\"nonzero\"\n />\n </g>\n </g>\n </g>\n </svg>\n );\n}\n\nexport default BaseBookmark;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,YAAYA,CAAC;EAAEC,KAAK,GAAG,MAAM;EAAEC,MAAM,GAAG;AAAO,CAAC,EAAE;EACzD,oBACEH,KAAA,CAAAI,aAAA;IACEF,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfE,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAC,KAAK;IACbC,KAAK,EAAC;EAA4B,gBAClCP,KAAA,CAAAI,aAAA,gBAAO,sBAA2B,CAAC,eACnCJ,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,UAAU;IAACC,MAAM,EAAC,MAAM;IAACC,WAAW,EAAC,GAAG;IAACC,IAAI,EAAC,MAAM;IAACC,QAAQ,EAAC;EAAS,gBAC3EZ,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,YAAY;IAACK,SAAS,EAAC;EAAuB,gBAClDb,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,OAAO;IAACK,SAAS,EAAC;EAAqB,gBAC3Cb,KAAA,CAAAI,aAAA;IACEU,CAAC,EAAC,6cAA6c;IAC/cN,EAAE,EAAC,MAAM;IACTG,IAAI,EAAC;EAAS,CACf,CAAC,eACFX,KAAA,CAAAI,aAAA;IACEU,CAAC,EAAC,2nCAA2nC;IAC7nCN,EAAE,EAAC,MAAM;IACTG,IAAI,EAAC,SAAS;IACdC,QAAQ,EAAC;EAAS,CACnB,CAAC,eACFZ,KAAA,CAAAI,aAAA;IACEU,CAAC,EAAC,6xBAA6xB;IAC/xBN,EAAE,EAAC,OAAO;IACVG,IAAI,EAAC,SAAS;IACdC,QAAQ,EAAC;EAAS,CACnB,CACA,CACF,CACF,CACA,CAAC;AAEV;AAEA,eAAeX,YAAY","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
function FocusedBookmark({
|
|
3
|
+
width = '24px',
|
|
4
|
+
height = '33px'
|
|
5
|
+
}) {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
width: width,
|
|
8
|
+
height: height,
|
|
9
|
+
viewBox: "0 0 24 33",
|
|
10
|
+
version: "1.1",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("title", null, "wishlist-button/focused"), /*#__PURE__*/React.createElement("g", {
|
|
13
|
+
id: "Wishlist",
|
|
14
|
+
stroke: "none",
|
|
15
|
+
strokeWidth: "1",
|
|
16
|
+
fill: "none",
|
|
17
|
+
fillRule: "evenodd"
|
|
18
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
19
|
+
id: "components",
|
|
20
|
+
transform: "translate(-719, -236)"
|
|
21
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
22
|
+
id: "Group",
|
|
23
|
+
transform: "translate(719, 236.7059)"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z",
|
|
26
|
+
id: "Shape",
|
|
27
|
+
fill: "#7E111D",
|
|
28
|
+
fillRule: "nonzero"
|
|
29
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M12.5121433,6.02597195 C12.4166708,5.83013091 12.2178732,5.70588235 12,5.70588235 C11.7821268,5.70588235 11.5833292,5.83013091 11.4878567,6.02597195 L9.45848863,10.1391232 C9.37601459,10.3080381 9.2155339,10.4254046 9.02956857,10.452811 L4.48429634,11.1121956 C4.27088147,11.1445801 4.09409309,11.2947879 4.02766568,11.5001706 C3.96123826,11.7055533 4.01657979,11.9308394 4.17060854,12.0820671 L7.45472777,15.2861639 C7.5891654,15.4174006 7.64998242,15.6062535 7.61797346,15.7919054 L6.84655754,20.3179723 C6.81107151,20.53114 6.89923709,20.7460362 7.07421101,20.8728583 C7.24918493,20.9996805 7.48084704,21.0165975 7.6723887,20.9165398 L11.7375265,18.7783414 C11.9029449,18.6918182 12.100256,18.6918182 12.2656744,18.7783414 L16.3308122,20.9165398 C16.5221157,21.0147947 16.7524435,20.9969601 16.9263415,20.8704274 C17.1002394,20.7438946 17.1880734,20.5302263 17.1534425,20.3179723 L16.3788256,15.7887046 C16.3456582,15.6040561 16.4055133,15.4149138 16.5388704,15.282963 L19.8293915,12.0788662 C19.9834202,11.9276385 20.0387617,11.7023524 19.9723343,11.4969697 C19.9059069,11.291587 19.7291185,11.1413792 19.5157037,11.1089947 L14.9704314,10.4496101 C14.7844661,10.4222037 14.6239854,10.3048372 14.5415114,10.1359223 L12.5121433,6.02597195 Z",
|
|
31
|
+
id: "Path",
|
|
32
|
+
fill: "#FFFFFF"
|
|
33
|
+
})))));
|
|
34
|
+
}
|
|
35
|
+
export default FocusedBookmark;
|
|
36
|
+
//# sourceMappingURL=FocusedBookmark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FocusedBookmark.js","names":["React","FocusedBookmark","width","height","createElement","viewBox","version","xmlns","id","stroke","strokeWidth","fill","fillRule","transform","d"],"sources":["../../../../src/components/ItemList/icons/FocusedBookmark.js"],"sourcesContent":["import React from 'react';\n\nfunction FocusedBookmark({ width = '24px', height = '33px' }) {\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 24 33\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <title>wishlist-button/focused</title>\n <g id=\"Wishlist\" stroke=\"none\" strokeWidth=\"1\" fill=\"none\" fillRule=\"evenodd\">\n <g id=\"components\" transform=\"translate(-719, -236)\">\n <g id=\"Group\" transform=\"translate(719, 236.7059)\">\n <path\n d=\"M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z\"\n id=\"Shape\"\n fill=\"#7E111D\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M12.5121433,6.02597195 C12.4166708,5.83013091 12.2178732,5.70588235 12,5.70588235 C11.7821268,5.70588235 11.5833292,5.83013091 11.4878567,6.02597195 L9.45848863,10.1391232 C9.37601459,10.3080381 9.2155339,10.4254046 9.02956857,10.452811 L4.48429634,11.1121956 C4.27088147,11.1445801 4.09409309,11.2947879 4.02766568,11.5001706 C3.96123826,11.7055533 4.01657979,11.9308394 4.17060854,12.0820671 L7.45472777,15.2861639 C7.5891654,15.4174006 7.64998242,15.6062535 7.61797346,15.7919054 L6.84655754,20.3179723 C6.81107151,20.53114 6.89923709,20.7460362 7.07421101,20.8728583 C7.24918493,20.9996805 7.48084704,21.0165975 7.6723887,20.9165398 L11.7375265,18.7783414 C11.9029449,18.6918182 12.100256,18.6918182 12.2656744,18.7783414 L16.3308122,20.9165398 C16.5221157,21.0147947 16.7524435,20.9969601 16.9263415,20.8704274 C17.1002394,20.7438946 17.1880734,20.5302263 17.1534425,20.3179723 L16.3788256,15.7887046 C16.3456582,15.6040561 16.4055133,15.4149138 16.5388704,15.282963 L19.8293915,12.0788662 C19.9834202,11.9276385 20.0387617,11.7023524 19.9723343,11.4969697 C19.9059069,11.291587 19.7291185,11.1413792 19.5157037,11.1089947 L14.9704314,10.4496101 C14.7844661,10.4222037 14.6239854,10.3048372 14.5415114,10.1359223 L12.5121433,6.02597195 Z\"\n id=\"Path\"\n fill=\"#FFFFFF\"\n />\n </g>\n </g>\n </g>\n </svg>\n );\n}\n\nexport default FocusedBookmark;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,eAAeA,CAAC;EAAEC,KAAK,GAAG,MAAM;EAAEC,MAAM,GAAG;AAAO,CAAC,EAAE;EAC5D,oBACEH,KAAA,CAAAI,aAAA;IACEF,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfE,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAC,KAAK;IACbC,KAAK,EAAC;EAA4B,gBAClCP,KAAA,CAAAI,aAAA,gBAAO,yBAA8B,CAAC,eACtCJ,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,UAAU;IAACC,MAAM,EAAC,MAAM;IAACC,WAAW,EAAC,GAAG;IAACC,IAAI,EAAC,MAAM;IAACC,QAAQ,EAAC;EAAS,gBAC3EZ,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,YAAY;IAACK,SAAS,EAAC;EAAuB,gBAClDb,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,OAAO;IAACK,SAAS,EAAC;EAA0B,gBAChDb,KAAA,CAAAI,aAAA;IACEU,CAAC,EAAC,6gBAA6gB;IAC/gBN,EAAE,EAAC,OAAO;IACVG,IAAI,EAAC,SAAS;IACdC,QAAQ,EAAC;EAAS,CACnB,CAAC,eACFZ,KAAA,CAAAI,aAAA;IACEU,CAAC,EAAC,4tCAA4tC;IAC9tCN,EAAE,EAAC,MAAM;IACTG,IAAI,EAAC;EAAS,CACf,CACA,CACF,CACF,CACA,CAAC;AAEV;AAEA,eAAeV,eAAe","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
function HoverBookmark({
|
|
3
|
+
width = '24px',
|
|
4
|
+
height = '33px'
|
|
5
|
+
}) {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
width: width,
|
|
8
|
+
height: height,
|
|
9
|
+
viewBox: "0 0 24 33",
|
|
10
|
+
version: "1.1",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("title", null, "wishlist-button/hover"), /*#__PURE__*/React.createElement("g", {
|
|
13
|
+
id: "Wishlist",
|
|
14
|
+
stroke: "none",
|
|
15
|
+
strokeWidth: "1",
|
|
16
|
+
fill: "none",
|
|
17
|
+
fillRule: "evenodd"
|
|
18
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
19
|
+
id: "components",
|
|
20
|
+
transform: "translate(-566, -237)"
|
|
21
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
22
|
+
id: "Group",
|
|
23
|
+
transform: "translate(566, 237.3529)"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z",
|
|
26
|
+
id: "Shape",
|
|
27
|
+
fill: "#C31629",
|
|
28
|
+
fillRule: "nonzero"
|
|
29
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M12.5121433,6.32008959 C12.4166708,6.12424855 12.2178732,6 12,6 C11.7821268,6 11.5833292,6.12424855 11.4878567,6.32008959 L9.45848863,10.4332409 C9.37601459,10.6021558 9.2155339,10.7195223 9.02956857,10.7469287 L4.48429634,11.4063132 C4.27088147,11.4386977 4.09409309,11.5889055 4.02766568,11.7942882 C3.96123826,11.999671 4.01657979,12.224957 4.17060854,12.3761847 L7.45472777,15.5802815 C7.5891654,15.7115183 7.64998242,15.9003711 7.61797346,16.0860231 L6.84655754,20.6120899 C6.81107151,20.8252577 6.89923709,21.0401538 7.07421101,21.166976 C7.24918493,21.2937982 7.48084704,21.3107151 7.6723887,21.2106575 L11.7375265,19.072459 C11.9029449,18.9859359 12.100256,18.9859359 12.2656744,19.072459 L16.3308122,21.2106575 C16.5221157,21.3089123 16.7524435,21.2910778 16.9263415,21.164545 C17.1002394,21.0380122 17.1880734,20.8243439 17.1534425,20.6120899 L16.3788256,16.0828222 C16.3456582,15.8981737 16.4055133,15.7090315 16.5388704,15.5770806 L19.8293915,12.3729838 C19.9834202,12.2217561 20.0387617,11.9964701 19.9723343,11.7910873 C19.9059069,11.5857046 19.7291185,11.4354969 19.5157037,11.4031123 L14.9704314,10.7437278 C14.7844661,10.7163214 14.6239854,10.5989549 14.5415114,10.43004 L12.5121433,6.32008959 Z",
|
|
31
|
+
id: "Path",
|
|
32
|
+
fill: "#FFFFFF"
|
|
33
|
+
})))));
|
|
34
|
+
}
|
|
35
|
+
export default HoverBookmark;
|
|
36
|
+
//# sourceMappingURL=HoverBookmark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HoverBookmark.js","names":["React","HoverBookmark","width","height","createElement","viewBox","version","xmlns","id","stroke","strokeWidth","fill","fillRule","transform","d"],"sources":["../../../../src/components/ItemList/icons/HoverBookmark.js"],"sourcesContent":["import React from 'react';\n\nfunction HoverBookmark({ width = '24px', height = '33px' }) {\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 24 33\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <title>wishlist-button/hover</title>\n <g id=\"Wishlist\" stroke=\"none\" strokeWidth=\"1\" fill=\"none\" fillRule=\"evenodd\">\n <g id=\"components\" transform=\"translate(-566, -237)\">\n <g id=\"Group\" transform=\"translate(566, 237.3529)\">\n <path\n d=\"M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z\"\n id=\"Shape\"\n fill=\"#C31629\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M12.5121433,6.32008959 C12.4166708,6.12424855 12.2178732,6 12,6 C11.7821268,6 11.5833292,6.12424855 11.4878567,6.32008959 L9.45848863,10.4332409 C9.37601459,10.6021558 9.2155339,10.7195223 9.02956857,10.7469287 L4.48429634,11.4063132 C4.27088147,11.4386977 4.09409309,11.5889055 4.02766568,11.7942882 C3.96123826,11.999671 4.01657979,12.224957 4.17060854,12.3761847 L7.45472777,15.5802815 C7.5891654,15.7115183 7.64998242,15.9003711 7.61797346,16.0860231 L6.84655754,20.6120899 C6.81107151,20.8252577 6.89923709,21.0401538 7.07421101,21.166976 C7.24918493,21.2937982 7.48084704,21.3107151 7.6723887,21.2106575 L11.7375265,19.072459 C11.9029449,18.9859359 12.100256,18.9859359 12.2656744,19.072459 L16.3308122,21.2106575 C16.5221157,21.3089123 16.7524435,21.2910778 16.9263415,21.164545 C17.1002394,21.0380122 17.1880734,20.8243439 17.1534425,20.6120899 L16.3788256,16.0828222 C16.3456582,15.8981737 16.4055133,15.7090315 16.5388704,15.5770806 L19.8293915,12.3729838 C19.9834202,12.2217561 20.0387617,11.9964701 19.9723343,11.7910873 C19.9059069,11.5857046 19.7291185,11.4354969 19.5157037,11.4031123 L14.9704314,10.7437278 C14.7844661,10.7163214 14.6239854,10.5989549 14.5415114,10.43004 L12.5121433,6.32008959 Z\"\n id=\"Path\"\n fill=\"#FFFFFF\"\n />\n </g>\n </g>\n </g>\n </svg>\n );\n}\n\nexport default HoverBookmark;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,aAAaA,CAAC;EAAEC,KAAK,GAAG,MAAM;EAAEC,MAAM,GAAG;AAAO,CAAC,EAAE;EAC1D,oBACEH,KAAA,CAAAI,aAAA;IACEF,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfE,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAC,KAAK;IACbC,KAAK,EAAC;EAA4B,gBAClCP,KAAA,CAAAI,aAAA,gBAAO,uBAA4B,CAAC,eACpCJ,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,UAAU;IAACC,MAAM,EAAC,MAAM;IAACC,WAAW,EAAC,GAAG;IAACC,IAAI,EAAC,MAAM;IAACC,QAAQ,EAAC;EAAS,gBAC3EZ,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,YAAY;IAACK,SAAS,EAAC;EAAuB,gBAClDb,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,OAAO;IAACK,SAAS,EAAC;EAA0B,gBAChDb,KAAA,CAAAI,aAAA;IACEU,CAAC,EAAC,6gBAA6gB;IAC/gBN,EAAE,EAAC,OAAO;IACVG,IAAI,EAAC,SAAS;IACdC,QAAQ,EAAC;EAAS,CACnB,CAAC,eACFZ,KAAA,CAAAI,aAAA;IACEU,CAAC,EAAC,8rCAA8rC;IAChsCN,EAAE,EAAC,MAAM;IACTG,IAAI,EAAC;EAAS,CACf,CACA,CACF,CACF,CACA,CAAC;AAEV;AAEA,eAAeV,aAAa","ignoreList":[]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
function RemoveBookmark({
|
|
3
|
+
width = '24px',
|
|
4
|
+
height = '33px'
|
|
5
|
+
}) {
|
|
6
|
+
return /*#__PURE__*/React.createElement("svg", {
|
|
7
|
+
width: width,
|
|
8
|
+
height: height,
|
|
9
|
+
viewBox: "0 0 24 33",
|
|
10
|
+
version: "1.1",
|
|
11
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12
|
+
}, /*#__PURE__*/React.createElement("title", null, "wishlist-button/remove"), /*#__PURE__*/React.createElement("g", {
|
|
13
|
+
id: "Wishlist",
|
|
14
|
+
stroke: "none",
|
|
15
|
+
strokeWidth: "1",
|
|
16
|
+
fill: "none",
|
|
17
|
+
fillRule: "evenodd"
|
|
18
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
19
|
+
id: "components",
|
|
20
|
+
transform: "translate(-566, -433)"
|
|
21
|
+
}, /*#__PURE__*/React.createElement("g", {
|
|
22
|
+
id: "Group",
|
|
23
|
+
transform: "translate(566, 433.4118)"
|
|
24
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
25
|
+
d: "M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z",
|
|
26
|
+
id: "Shape",
|
|
27
|
+
fill: "#C31629",
|
|
28
|
+
fillRule: "nonzero"
|
|
29
|
+
}), /*#__PURE__*/React.createElement("path", {
|
|
30
|
+
d: "M7.99029767,7.51308704 C7.54778661,7.07057597 6.90281268,6.89775572 6.29833133,7.059726 C5.69384998,7.22169629 5.22169629,7.69384998 5.059726,8.29833133 C4.89775572,8.90281268 5.07057597,9.54778661 5.51308704,9.99029767 L9.52630821,14.00002 L5.51308704,18.0097422 C5.07057597,18.4522533 4.89775572,19.0972272 5.059726,19.7017086 C5.22169629,20.3061899 5.69384998,20.7783436 6.29833133,20.9403139 C6.90281268,21.1022842 7.54778661,20.9294639 7.99029767,20.4869529 L12.00002,16.4737317 L16.0097422,20.4869529 C16.6938051,21.1710157 17.8028901,21.1710157 18.4869529,20.4869529 C19.1710157,19.8028901 19.1710157,18.6938051 18.4869529,18.0097422 L14.4737317,14.00002 L18.4869529,9.99029767 C19.1710157,9.30623484 19.1710157,8.19714986 18.4869529,7.51308704 C17.8028901,6.82902421 16.6938051,6.82902421 16.0097422,7.51308704 L12.00002,11.5263082 L7.99029767,7.51308704 Z",
|
|
31
|
+
id: "Path",
|
|
32
|
+
fill: "#FFFFFF"
|
|
33
|
+
})))));
|
|
34
|
+
}
|
|
35
|
+
export default RemoveBookmark;
|
|
36
|
+
//# sourceMappingURL=RemoveBookmark.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RemoveBookmark.js","names":["React","RemoveBookmark","width","height","createElement","viewBox","version","xmlns","id","stroke","strokeWidth","fill","fillRule","transform","d"],"sources":["../../../../src/components/ItemList/icons/RemoveBookmark.js"],"sourcesContent":["import React from 'react';\n\nfunction RemoveBookmark({ width = '24px', height = '33px' }) {\n return (\n <svg\n width={width}\n height={height}\n viewBox=\"0 0 24 33\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\">\n <title>wishlist-button/remove</title>\n <g id=\"Wishlist\" stroke=\"none\" strokeWidth=\"1\" fill=\"none\" fillRule=\"evenodd\">\n <g id=\"components\" transform=\"translate(-566, -433)\">\n <g id=\"Group\" transform=\"translate(566, 433.4118)\">\n <path\n d=\"M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z\"\n id=\"Shape\"\n fill=\"#C31629\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M7.99029767,7.51308704 C7.54778661,7.07057597 6.90281268,6.89775572 6.29833133,7.059726 C5.69384998,7.22169629 5.22169629,7.69384998 5.059726,8.29833133 C4.89775572,8.90281268 5.07057597,9.54778661 5.51308704,9.99029767 L9.52630821,14.00002 L5.51308704,18.0097422 C5.07057597,18.4522533 4.89775572,19.0972272 5.059726,19.7017086 C5.22169629,20.3061899 5.69384998,20.7783436 6.29833133,20.9403139 C6.90281268,21.1022842 7.54778661,20.9294639 7.99029767,20.4869529 L12.00002,16.4737317 L16.0097422,20.4869529 C16.6938051,21.1710157 17.8028901,21.1710157 18.4869529,20.4869529 C19.1710157,19.8028901 19.1710157,18.6938051 18.4869529,18.0097422 L14.4737317,14.00002 L18.4869529,9.99029767 C19.1710157,9.30623484 19.1710157,8.19714986 18.4869529,7.51308704 C17.8028901,6.82902421 16.6938051,6.82902421 16.0097422,7.51308704 L12.00002,11.5263082 L7.99029767,7.51308704 Z\"\n id=\"Path\"\n fill=\"#FFFFFF\"\n />\n </g>\n </g>\n </g>\n </svg>\n );\n}\n\nexport default RemoveBookmark;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAEzB,SAASC,cAAcA,CAAC;EAAEC,KAAK,GAAG,MAAM;EAAEC,MAAM,GAAG;AAAO,CAAC,EAAE;EAC3D,oBACEH,KAAA,CAAAI,aAAA;IACEF,KAAK,EAAEA,KAAM;IACbC,MAAM,EAAEA,MAAO;IACfE,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAC,KAAK;IACbC,KAAK,EAAC;EAA4B,gBAClCP,KAAA,CAAAI,aAAA,gBAAO,wBAA6B,CAAC,eACrCJ,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,UAAU;IAACC,MAAM,EAAC,MAAM;IAACC,WAAW,EAAC,GAAG;IAACC,IAAI,EAAC,MAAM;IAACC,QAAQ,EAAC;EAAS,gBAC3EZ,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,YAAY;IAACK,SAAS,EAAC;EAAuB,gBAClDb,KAAA,CAAAI,aAAA;IAAGI,EAAE,EAAC,OAAO;IAACK,SAAS,EAAC;EAA0B,gBAChDb,KAAA,CAAAI,aAAA;IACEU,CAAC,EAAC,6gBAA6gB;IAC/gBN,EAAE,EAAC,OAAO;IACVG,IAAI,EAAC,SAAS;IACdC,QAAQ,EAAC;EAAS,CACnB,CAAC,eACFZ,KAAA,CAAAI,aAAA;IACEU,CAAC,EAAC,k2BAAk2B;IACp2BN,EAAE,EAAC,MAAM;IACTG,IAAI,EAAC;EAAS,CACf,CACA,CACF,CACF,CACA,CAAC;AAEV;AAEA,eAAeV,cAAc","ignoreList":[]}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as AddedBookmark } from './AddedBookmark';
|
|
2
|
+
export { default as BaseBookmark } from './BaseBookmark';
|
|
3
|
+
export { default as FocusedBookmark } from './FocusedBookmark';
|
|
4
|
+
export { default as HoverBookmark } from './HoverBookmark';
|
|
5
|
+
export { default as RemoveBookmark } from './RemoveBookmark';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["default","AddedBookmark","BaseBookmark","FocusedBookmark","HoverBookmark","RemoveBookmark"],"sources":["../../../../src/components/ItemList/icons/index.js"],"sourcesContent":["export { default as AddedBookmark } from './AddedBookmark';\nexport { default as BaseBookmark } from './BaseBookmark';\nexport { default as FocusedBookmark } from './FocusedBookmark';\nexport { default as HoverBookmark } from './HoverBookmark';\nexport { default as RemoveBookmark } from './RemoveBookmark';\n"],"mappings":"AAAA,SAASA,OAAO,IAAIC,aAAa,QAAQ,iBAAiB;AAC1D,SAASD,OAAO,IAAIE,YAAY,QAAQ,gBAAgB;AACxD,SAASF,OAAO,IAAIG,eAAe,QAAQ,mBAAmB;AAC9D,SAASH,OAAO,IAAII,aAAa,QAAQ,iBAAiB;AAC1D,SAASJ,OAAO,IAAIK,cAAc,QAAQ,kBAAkB","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaze-cms/react-page-builder",
|
|
3
|
-
"version": "0.146.0-alpha.
|
|
3
|
+
"version": "0.146.0-alpha.44",
|
|
4
4
|
"description": "Blaze react page builder",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-es/index.js",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"lib/*",
|
|
91
91
|
"lib-es/*"
|
|
92
92
|
],
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "d7a9f006e49aaf43793135c0b02333da0cab428c"
|
|
94
94
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
|
-
import {
|
|
4
|
-
BsBookmarkStarFill,
|
|
5
|
-
BsBookmarkCheckFill,
|
|
6
|
-
BsBookmarkStar,
|
|
7
|
-
BsBookmarkXFill
|
|
8
|
-
} from 'react-icons/bs';
|
|
9
3
|
import { useQuery, useMutation } from '@apollo/client';
|
|
4
|
+
import {
|
|
5
|
+
AddedBookmark,
|
|
6
|
+
BaseBookmark,
|
|
7
|
+
FocusedBookmark,
|
|
8
|
+
HoverBookmark,
|
|
9
|
+
RemoveBookmark
|
|
10
|
+
} from '../icons';
|
|
10
11
|
import { getItemList, addItemsToList, removeItemsFromList } from '../../../application/query';
|
|
11
12
|
import { getItemListData, setItemListId } from '../helpers';
|
|
12
13
|
import { useItemListId } from '../hooks';
|
|
@@ -14,13 +15,9 @@ import { useItemListId } from '../hooks';
|
|
|
14
15
|
const ItemListButton = ({ listName, parent, modifier }) => {
|
|
15
16
|
const { itemId, itemEntity } = parent;
|
|
16
17
|
const [isHover, setIsHover] = useState(false);
|
|
18
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
17
19
|
const { listId } = useItemListId({ listName });
|
|
18
20
|
|
|
19
|
-
const getIcon = () => {
|
|
20
|
-
if (isInList) return isHover ? BsBookmarkXFill : BsBookmarkCheckFill;
|
|
21
|
-
return isHover ? BsBookmarkStarFill : BsBookmarkStar;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
21
|
const { data, error, loading } = useQuery(getItemList, {
|
|
25
22
|
variables: { id: listId },
|
|
26
23
|
skip: !listId
|
|
@@ -42,6 +39,7 @@ const ItemListButton = ({ listName, parent, modifier }) => {
|
|
|
42
39
|
|
|
43
40
|
const clickHandler = () => {
|
|
44
41
|
setIsHover(false);
|
|
42
|
+
setIsFocused(false);
|
|
45
43
|
isInList
|
|
46
44
|
? removeListItem({
|
|
47
45
|
variables: { listId, listItems: [{ itemId, itemEntity }] },
|
|
@@ -61,6 +59,17 @@ const ItemListButton = ({ listName, parent, modifier }) => {
|
|
|
61
59
|
({ itemId: idToCheck, itemEntity: entityToCheck }) =>
|
|
62
60
|
idToCheck === itemId && entityToCheck === itemEntity
|
|
63
61
|
);
|
|
62
|
+
|
|
63
|
+
const getIcon = () => {
|
|
64
|
+
if (isFocused && !isHover) {
|
|
65
|
+
return FocusedBookmark;
|
|
66
|
+
}
|
|
67
|
+
if (isInList) {
|
|
68
|
+
return isHover ? RemoveBookmark : AddedBookmark;
|
|
69
|
+
}
|
|
70
|
+
return isHover ? HoverBookmark : BaseBookmark;
|
|
71
|
+
};
|
|
72
|
+
|
|
64
73
|
const Icon = getIcon();
|
|
65
74
|
const stateClassName = isInList ? 'item-list-button--selected' : '';
|
|
66
75
|
const className = ['item-list-button', stateClassName, modifier].filter(Boolean).join(' ');
|
|
@@ -69,10 +78,12 @@ const ItemListButton = ({ listName, parent, modifier }) => {
|
|
|
69
78
|
<div
|
|
70
79
|
className={className}
|
|
71
80
|
role="button"
|
|
81
|
+
tabIndex="0"
|
|
72
82
|
onClick={clickHandler}
|
|
73
83
|
onMouseEnter={() => setIsHover(true)}
|
|
74
84
|
onMouseLeave={() => setIsHover(false)}
|
|
75
|
-
|
|
85
|
+
onFocus={() => setIsFocused(true)}
|
|
86
|
+
onBlur={() => setIsFocused(false)}>
|
|
76
87
|
<i>
|
|
77
88
|
<Icon />
|
|
78
89
|
</i>
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useRouter } from 'next/router';
|
|
4
4
|
import { useQuery } from '@apollo/client';
|
|
5
|
-
import {
|
|
5
|
+
import { AddedBookmark, BaseBookmark } from '../icons';
|
|
6
6
|
import { getItemList } from '../../../application/query';
|
|
7
7
|
import { useItemListId } from '../hooks';
|
|
8
8
|
import { getItemListData } from '../helpers';
|
|
@@ -21,7 +21,7 @@ const ItemListCounter = ({ listName, modifier, url }) => {
|
|
|
21
21
|
|
|
22
22
|
const listItems = getItemListData(data);
|
|
23
23
|
const listLength = listItems.length;
|
|
24
|
-
const CounterIcon = listLength ?
|
|
24
|
+
const CounterIcon = listLength ? AddedBookmark : BaseBookmark;
|
|
25
25
|
|
|
26
26
|
const handleClick = () => router.push('/Resolver', `${url}?itemListId=${listId}`);
|
|
27
27
|
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
function AddedBookmark({ width = '24px', height = '33px' }) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width={width}
|
|
7
|
+
height={height}
|
|
8
|
+
viewBox="0 0 24 33"
|
|
9
|
+
version="1.1"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<title>wishlist-button/added</title>
|
|
12
|
+
<g id="Wishlist" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
13
|
+
<g id="components" transform="translate(-417, -433)">
|
|
14
|
+
<g id="Group" transform="translate(417, 433.0588)">
|
|
15
|
+
<path
|
|
16
|
+
d="M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z"
|
|
17
|
+
id="Shape"
|
|
18
|
+
fill="#C31629"
|
|
19
|
+
fillRule="nonzero"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M19.5735342,9.48562495 C20.1421553,8.91700384 20.1421553,7.99508691 19.5735342,7.42646583 C19.0049131,6.85784474 18.0829962,6.85784472 17.514375,7.42646579 L9.81870394,15.1250453 L6.48565817,11.7890911 C6.11782481,11.4212578 5.58169601,11.2776025 5.0792263,11.4122388 C4.57675658,11.5468752 4.18428306,11.9393487 4.04964671,12.4418184 C3.91501035,12.9442881 4.05866564,13.4804169 4.42649901,13.8482503 L8.78912435,18.2108756 C9.06194626,18.4843881 9.43238689,18.638104 9.81870394,18.638104 C10.205021,18.638104 10.5754616,18.4843881 10.8482835,18.2108756 L19.5735342,9.48562495 Z"
|
|
23
|
+
id="Path"
|
|
24
|
+
fill="#FFFFFF"
|
|
25
|
+
/>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</svg>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default AddedBookmark;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
function BaseBookmark({ width = '24px', height = '32px' }) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width={width}
|
|
7
|
+
height={height}
|
|
8
|
+
viewBox="0 0 24 32"
|
|
9
|
+
version="1.1"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<title>wishlist-button/base</title>
|
|
12
|
+
<g id="Wishlist" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
13
|
+
<g id="components" transform="translate(-417, -237)">
|
|
14
|
+
<g id="Group" transform="translate(417, 237)">
|
|
15
|
+
<path
|
|
16
|
+
d="M0,4.00006438 C0,1.79088983 1.79088983,0 4.00006438,0 L20.0003219,0 C22.2094965,0 24.0003863,1.79088983 24.0003863,4.00006438 L24.0003863,31.000499 C24.0003863,31.3690566 23.7972987,31.707635 23.4723789,31.8815946 C23.1474592,32.0555542 22.7531917,32.0366934 22.4463613,31.8325124 L12.0001931,26.2024217 L1.55402501,31.8325124 C1.24719462,32.0366934 0.852927098,32.0555542 0.528007369,31.8815946 C0.203087639,31.707635 0,31.3690566 0,31.000499 L0,4.00006438 Z"
|
|
17
|
+
id="Path"
|
|
18
|
+
fill="#FFFFFF"
|
|
19
|
+
/>
|
|
20
|
+
<path
|
|
21
|
+
d="M11.4884365,6.3199776 C11.5838756,6.12420508 11.7826038,6 12.0004007,6 C12.2181976,6 12.4169257,6.12420508 12.5123648,6.3199776 L14.5410228,10.4316897 C14.623468,10.6005456 14.7838925,10.717871 14.9697928,10.7452678 L19.5134747,11.4044216 C19.9774422,11.4716169 20.166229,12.0443768 19.8270528,12.3739538 L16.5440826,15.5769295 C16.4096115,15.7082089 16.3485531,15.8973704 16.380894,16.0824941 L17.1552398,20.6069774 C17.1907134,20.8200705 17.1025787,21.0348915 16.927666,21.1616693 C16.7527533,21.2884471 16.5211722,21.3053581 16.3296976,21.2053355 L12.2659821,19.0678851 C12.1006216,18.9813923 11.9033796,18.9813923 11.7380191,19.0678851 L7.67430355,21.2053355 C7.48306696,21.3035559 7.2528198,21.2857277 7.07898266,21.1592392 C6.90514552,21.0327507 6.81734235,20.8191571 6.85196113,20.6069774 L7.62630692,16.0824941 C7.6594628,15.8979103 7.5996286,15.7088342 7.46631812,15.5769295 L4.17054885,12.3739538 C4.01657399,12.222779 3.96125182,11.9975718 4.027656,11.7922609 C4.09406017,11.58695 4.2707867,11.4367948 4.48412689,11.4044216 L9.0278088,10.7452678 C9.21370906,10.717871 9.3741336,10.6005456 9.45657878,10.4316897 L11.4884365,6.3199776 Z"
|
|
22
|
+
id="Path"
|
|
23
|
+
fill="#C31629"
|
|
24
|
+
fillRule="nonzero"
|
|
25
|
+
/>
|
|
26
|
+
<path
|
|
27
|
+
d="M0,4.00006438 C0,1.79088983 1.79088983,0 4.00006438,0 L20.0003219,0 C22.2094965,0 24.0003863,1.79088983 24.0003863,4.00006438 L24.0003863,31.000499 C24.0003863,31.3690566 23.7972987,31.707635 23.4723789,31.8815946 C23.1474592,32.0555542 22.7531917,32.0366934 22.4463613,31.8325124 L12.0001931,26.2024217 L1.55402501,31.8325124 C1.24719462,32.0366934 0.852927098,32.0555542 0.528007369,31.8815946 C0.203087639,31.707635 0,31.3690566 0,31.000499 L0,4.00006438 Z M4.00006438,2.00003219 C2.8954771,2.00003219 2.00003219,2.8954771 2.00003219,4.00006438 L2.00003219,29.1324689 L11.4461842,24.168389 C11.7817677,23.9450743 12.2186186,23.9450743 12.5542021,24.168389 L22.0003541,29.1324689 L22.0003541,4.00006438 C22.0003541,2.8954771 21.1049092,2.00003219 20.0003219,2.00003219 L4.00006438,2.00003219 Z"
|
|
28
|
+
id="Shape"
|
|
29
|
+
fill="#C31629"
|
|
30
|
+
fillRule="nonzero"
|
|
31
|
+
/>
|
|
32
|
+
</g>
|
|
33
|
+
</g>
|
|
34
|
+
</g>
|
|
35
|
+
</svg>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export default BaseBookmark;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
function FocusedBookmark({ width = '24px', height = '33px' }) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width={width}
|
|
7
|
+
height={height}
|
|
8
|
+
viewBox="0 0 24 33"
|
|
9
|
+
version="1.1"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<title>wishlist-button/focused</title>
|
|
12
|
+
<g id="Wishlist" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
13
|
+
<g id="components" transform="translate(-719, -236)">
|
|
14
|
+
<g id="Group" transform="translate(719, 236.7059)">
|
|
15
|
+
<path
|
|
16
|
+
d="M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z"
|
|
17
|
+
id="Shape"
|
|
18
|
+
fill="#7E111D"
|
|
19
|
+
fillRule="nonzero"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M12.5121433,6.02597195 C12.4166708,5.83013091 12.2178732,5.70588235 12,5.70588235 C11.7821268,5.70588235 11.5833292,5.83013091 11.4878567,6.02597195 L9.45848863,10.1391232 C9.37601459,10.3080381 9.2155339,10.4254046 9.02956857,10.452811 L4.48429634,11.1121956 C4.27088147,11.1445801 4.09409309,11.2947879 4.02766568,11.5001706 C3.96123826,11.7055533 4.01657979,11.9308394 4.17060854,12.0820671 L7.45472777,15.2861639 C7.5891654,15.4174006 7.64998242,15.6062535 7.61797346,15.7919054 L6.84655754,20.3179723 C6.81107151,20.53114 6.89923709,20.7460362 7.07421101,20.8728583 C7.24918493,20.9996805 7.48084704,21.0165975 7.6723887,20.9165398 L11.7375265,18.7783414 C11.9029449,18.6918182 12.100256,18.6918182 12.2656744,18.7783414 L16.3308122,20.9165398 C16.5221157,21.0147947 16.7524435,20.9969601 16.9263415,20.8704274 C17.1002394,20.7438946 17.1880734,20.5302263 17.1534425,20.3179723 L16.3788256,15.7887046 C16.3456582,15.6040561 16.4055133,15.4149138 16.5388704,15.282963 L19.8293915,12.0788662 C19.9834202,11.9276385 20.0387617,11.7023524 19.9723343,11.4969697 C19.9059069,11.291587 19.7291185,11.1413792 19.5157037,11.1089947 L14.9704314,10.4496101 C14.7844661,10.4222037 14.6239854,10.3048372 14.5415114,10.1359223 L12.5121433,6.02597195 Z"
|
|
23
|
+
id="Path"
|
|
24
|
+
fill="#FFFFFF"
|
|
25
|
+
/>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</svg>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default FocusedBookmark;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
function HoverBookmark({ width = '24px', height = '33px' }) {
|
|
4
|
+
return (
|
|
5
|
+
<svg
|
|
6
|
+
width={width}
|
|
7
|
+
height={height}
|
|
8
|
+
viewBox="0 0 24 33"
|
|
9
|
+
version="1.1"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
11
|
+
<title>wishlist-button/hover</title>
|
|
12
|
+
<g id="Wishlist" stroke="none" strokeWidth="1" fill="none" fillRule="evenodd">
|
|
13
|
+
<g id="components" transform="translate(-566, -237)">
|
|
14
|
+
<g id="Group" transform="translate(566, 237.3529)">
|
|
15
|
+
<path
|
|
16
|
+
d="M2.68249844e-07,30.9992911 L2.68249844e-07,3.99990852 C2.68249844e-07,1.79082005 1.79082058,0 3.99990906,0 L19.9995432,0 C22.2086316,0 23.9994519,1.79082005 23.9994519,3.99990852 L23.9994519,30.9992911 C23.9997102,31.3525836 23.8135276,31.6797933 23.5096796,31.860049 C23.2058317,32.0403048 22.829418,32.0468515 22.5194855,31.877271 L11.9997261,26.1374022 L1.47996669,31.877271 C1.17003424,32.0468515 0.79362051,32.0403048 0.489772584,31.860049 C0.185924659,31.6797933 -0.000257952496,31.3525836 2.68249844e-07,30.9992911 Z"
|
|
17
|
+
id="Shape"
|
|
18
|
+
fill="#C31629"
|
|
19
|
+
fillRule="nonzero"
|
|
20
|
+
/>
|
|
21
|
+
<path
|
|
22
|
+
d="M12.5121433,6.32008959 C12.4166708,6.12424855 12.2178732,6 12,6 C11.7821268,6 11.5833292,6.12424855 11.4878567,6.32008959 L9.45848863,10.4332409 C9.37601459,10.6021558 9.2155339,10.7195223 9.02956857,10.7469287 L4.48429634,11.4063132 C4.27088147,11.4386977 4.09409309,11.5889055 4.02766568,11.7942882 C3.96123826,11.999671 4.01657979,12.224957 4.17060854,12.3761847 L7.45472777,15.5802815 C7.5891654,15.7115183 7.64998242,15.9003711 7.61797346,16.0860231 L6.84655754,20.6120899 C6.81107151,20.8252577 6.89923709,21.0401538 7.07421101,21.166976 C7.24918493,21.2937982 7.48084704,21.3107151 7.6723887,21.2106575 L11.7375265,19.072459 C11.9029449,18.9859359 12.100256,18.9859359 12.2656744,19.072459 L16.3308122,21.2106575 C16.5221157,21.3089123 16.7524435,21.2910778 16.9263415,21.164545 C17.1002394,21.0380122 17.1880734,20.8243439 17.1534425,20.6120899 L16.3788256,16.0828222 C16.3456582,15.8981737 16.4055133,15.7090315 16.5388704,15.5770806 L19.8293915,12.3729838 C19.9834202,12.2217561 20.0387617,11.9964701 19.9723343,11.7910873 C19.9059069,11.5857046 19.7291185,11.4354969 19.5157037,11.4031123 L14.9704314,10.7437278 C14.7844661,10.7163214 14.6239854,10.5989549 14.5415114,10.43004 L12.5121433,6.32008959 Z"
|
|
23
|
+
id="Path"
|
|
24
|
+
fill="#FFFFFF"
|
|
25
|
+
/>
|
|
26
|
+
</g>
|
|
27
|
+
</g>
|
|
28
|
+
</g>
|
|
29
|
+
</svg>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default HoverBookmark;
|