@blaze-cms/react-page-builder 0.146.0-alpha.44 → 0.146.0-alpha.50
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 +16 -0
- package/lib/components/ItemList/ItemListButton/ItemListButton.js +0 -14
- package/lib/components/ItemList/ItemListButton/ItemListButton.js.map +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js +1 -1
- package/lib/components/ItemList/ItemListCounter/ItemListCounter.js.map +1 -1
- package/lib/components/ItemList/icons/AddedBookmark.js +8 -12
- package/lib/components/ItemList/icons/AddedBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/BaseBookmark.js +17 -22
- package/lib/components/ItemList/icons/BaseBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/HoverBookmark.js +14 -16
- package/lib/components/ItemList/icons/HoverBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/RemoveBookmark.js +7 -11
- package/lib/components/ItemList/icons/RemoveBookmark.js.map +1 -1
- package/lib/components/ItemList/icons/index.js +0 -7
- package/lib/components/ItemList/icons/index.js.map +1 -1
- package/lib-es/components/ItemList/ItemListButton/ItemListButton.js +2 -9
- 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 +8 -11
- package/lib-es/components/ItemList/icons/AddedBookmark.js.map +1 -1
- package/lib-es/components/ItemList/icons/BaseBookmark.js +17 -21
- package/lib-es/components/ItemList/icons/BaseBookmark.js.map +1 -1
- package/lib-es/components/ItemList/icons/HoverBookmark.js +14 -15
- package/lib-es/components/ItemList/icons/HoverBookmark.js.map +1 -1
- package/lib-es/components/ItemList/icons/RemoveBookmark.js +7 -10
- package/lib-es/components/ItemList/icons/RemoveBookmark.js.map +1 -1
- package/lib-es/components/ItemList/icons/index.js +0 -1
- package/lib-es/components/ItemList/icons/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/ItemList/ItemListButton/ItemListButton.js +2 -15
- package/src/components/ItemList/ItemListCounter/ItemListCounter.js +2 -2
- package/src/components/ItemList/icons/AddedBookmark.js +8 -8
- package/src/components/ItemList/icons/BaseBookmark.js +14 -20
- package/src/components/ItemList/icons/HoverBookmark.js +13 -13
- package/src/components/ItemList/icons/RemoveBookmark.js +7 -7
- package/src/components/ItemList/icons/index.js +0 -1
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListButton.test.js.snap +39 -39
- package/tests/unit/src/components/ItemList/__snapshots__/ItemListCounter.test.js.snap +18 -14
- package/lib/components/ItemList/icons/FocusedBookmark.js +0 -45
- package/lib/components/ItemList/icons/FocusedBookmark.js.map +0 -1
- package/lib-es/components/ItemList/icons/FocusedBookmark.js +0 -36
- package/lib-es/components/ItemList/icons/FocusedBookmark.js.map +0 -1
- package/src/components/ItemList/icons/FocusedBookmark.js +0 -33
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.146.0-alpha.50](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.49...v0.146.0-alpha.50) (2025-05-16)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [0.146.0-alpha.49](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.48...v0.146.0-alpha.49) (2025-05-16)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [0.146.0-alpha.44](https://github.com/thebyte9/blaze/compare/v0.146.0-alpha.43...v0.146.0-alpha.44) (2025-05-07)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @blaze-cms/react-page-builder
|
|
@@ -35,10 +35,6 @@ var ItemListButton = function ItemListButton(_ref) {
|
|
|
35
35
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
|
36
36
|
isHover = _useState2[0],
|
|
37
37
|
setIsHover = _useState2[1];
|
|
38
|
-
var _useState3 = (0, _react.useState)(false),
|
|
39
|
-
_useState4 = (0, _slicedToArray2["default"])(_useState3, 2),
|
|
40
|
-
isFocused = _useState4[0],
|
|
41
|
-
setIsFocused = _useState4[1];
|
|
42
38
|
var _useItemListId = (0, _hooks.useItemListId)({
|
|
43
39
|
listName: listName
|
|
44
40
|
}),
|
|
@@ -68,7 +64,6 @@ var ItemListButton = function ItemListButton(_ref) {
|
|
|
68
64
|
removeListItem = _useMutation4[0];
|
|
69
65
|
var clickHandler = function clickHandler() {
|
|
70
66
|
setIsHover(false);
|
|
71
|
-
setIsFocused(false);
|
|
72
67
|
isInList ? removeListItem({
|
|
73
68
|
variables: {
|
|
74
69
|
listId: listId,
|
|
@@ -99,9 +94,6 @@ var ItemListButton = function ItemListButton(_ref) {
|
|
|
99
94
|
return idToCheck === itemId && entityToCheck === itemEntity;
|
|
100
95
|
});
|
|
101
96
|
var getIcon = function getIcon() {
|
|
102
|
-
if (isFocused && !isHover) {
|
|
103
|
-
return _icons.FocusedBookmark;
|
|
104
|
-
}
|
|
105
97
|
if (isInList) {
|
|
106
98
|
return isHover ? _icons.RemoveBookmark : _icons.AddedBookmark;
|
|
107
99
|
}
|
|
@@ -120,12 +112,6 @@ var ItemListButton = function ItemListButton(_ref) {
|
|
|
120
112
|
},
|
|
121
113
|
onMouseLeave: function onMouseLeave() {
|
|
122
114
|
return setIsHover(false);
|
|
123
|
-
},
|
|
124
|
-
onFocus: function onFocus() {
|
|
125
|
-
return setIsFocused(true);
|
|
126
|
-
},
|
|
127
|
-
onBlur: function onBlur() {
|
|
128
|
-
return setIsFocused(false);
|
|
129
115
|
}
|
|
130
116
|
}, /*#__PURE__*/_react["default"].createElement("i", null, /*#__PURE__*/_react["default"].createElement(Icon, null)));
|
|
131
117
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemListButton.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_client","_icons","_query","_helpers","_hooks","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t2","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ItemListButton","_ref","listName","parent","modifier","itemId","itemEntity","_useState","useState","_useState2","_slicedToArray2","isHover","setIsHover","
|
|
1
|
+
{"version":3,"file":"ItemListButton.js","names":["_react","_interopRequireWildcard","require","_propTypes","_interopRequireDefault","_client","_icons","_query","_helpers","_hooks","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","_typeof","has","get","set","_t2","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","ItemListButton","_ref","listName","parent","modifier","itemId","itemEntity","_useState","useState","_useState2","_slicedToArray2","isHover","setIsHover","_useItemListId","useItemListId","listId","_useQuery","useQuery","getItemList","variables","id","skip","data","error","loading","_useMutation","useMutation","addItemsToList","onCompleted","_ref2","listAddResult","result","setItemListId","_useMutation2","addListItem","_useMutation3","removeItemsFromList","_useMutation4","removeListItem","clickHandler","isInList","listItems","name","message","getItemListData","find","_ref3","idToCheck","entityToCheck","getIcon","RemoveBookmark","AddedBookmark","HoverBookmark","BaseBookmark","Icon","stateClassName","className","filter","Boolean","join","createElement","role","tabIndex","onClick","onMouseEnter","onMouseLeave","propTypes","PropTypes","object","string","defaultProps","_default","exports"],"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 { AddedBookmark, BaseBookmark, HoverBookmark, RemoveBookmark } 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 { 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 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 (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 <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":[]}
|
|
@@ -37,7 +37,7 @@ var ItemListCounter = function ItemListCounter(_ref) {
|
|
|
37
37
|
if (error) return error.message;
|
|
38
38
|
var listItems = (0, _helpers.getItemListData)(data);
|
|
39
39
|
var listLength = listItems.length;
|
|
40
|
-
var CounterIcon = listLength ? _icons.
|
|
40
|
+
var CounterIcon = listLength ? _icons.HoverBookmark : _icons.BaseBookmark;
|
|
41
41
|
var handleClick = function handleClick() {
|
|
42
42
|
return router.push('/Resolver', "".concat(url, "?itemListId=").concat(listId));
|
|
43
43
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ItemListCounter.js","names":["_react","_interopRequireDefault","require","_propTypes","_router","_client","_icons","_query","_hooks","_helpers","ItemListCounter","_ref","listName","modifier","url","router","useRouter","_useItemListId","useItemListId","listId","_useQuery","useQuery","getItemList","variables","id","skip","data","error","loading","message","listItems","getItemListData","listLength","length","CounterIcon","
|
|
1
|
+
{"version":3,"file":"ItemListCounter.js","names":["_react","_interopRequireDefault","require","_propTypes","_router","_client","_icons","_query","_hooks","_helpers","ItemListCounter","_ref","listName","modifier","url","router","useRouter","_useItemListId","useItemListId","listId","_useQuery","useQuery","getItemList","variables","id","skip","data","error","loading","message","listItems","getItemListData","listLength","length","CounterIcon","HoverBookmark","BaseBookmark","handleClick","push","concat","createElement","role","type","className","onClick","propTypes","PropTypes","string","defaultProps","_default","exports"],"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 { HoverBookmark, 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 ? HoverBookmark : 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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AACA,IAAAG,OAAA,GAAAH,OAAA;AACA,IAAAI,MAAA,GAAAJ,OAAA;AACA,IAAAK,MAAA,GAAAL,OAAA;AACA,IAAAM,MAAA,GAAAN,OAAA;AACA,IAAAO,QAAA,GAAAP,OAAA;AAEA,IAAMQ,eAAe,GAAG,SAAlBA,eAAeA,CAAAC,IAAA,EAAoC;EAAA,IAA9BC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAEC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IAAEC,GAAG,GAAAH,IAAA,CAAHG,GAAG;EAChD,IAAMC,MAAM,GAAG,IAAAC,iBAAS,EAAC,CAAC;EAC1B,IAAAC,cAAA,GAAmB,IAAAC,oBAAa,EAAC;MAAEN,QAAQ,EAARA;IAAS,CAAC,CAAC;IAAtCO,MAAM,GAAAF,cAAA,CAANE,MAAM;EAEd,IAAAC,SAAA,GAAiC,IAAAC,gBAAQ,EAACC,kBAAW,EAAE;MACrDC,SAAS,EAAE;QAAEC,EAAE,EAAEL;MAAO,CAAC;MACzBM,IAAI,EAAE,CAACN;IACT,CAAC,CAAC;IAHMO,IAAI,GAAAN,SAAA,CAAJM,IAAI;IAAEC,KAAK,GAAAP,SAAA,CAALO,KAAK;IAAEC,OAAO,GAAAR,SAAA,CAAPQ,OAAO;EAK5B,IAAIA,OAAO,EAAE,OAAO,EAAE;EACtB,IAAID,KAAK,EAAE,OAAOA,KAAK,CAACE,OAAO;EAE/B,IAAMC,SAAS,GAAG,IAAAC,wBAAe,EAACL,IAAI,CAAC;EACvC,IAAMM,UAAU,GAAGF,SAAS,CAACG,MAAM;EACnC,IAAMC,WAAW,GAAGF,UAAU,GAAGG,oBAAa,GAAGC,mBAAY;EAE7D,IAAMC,WAAW,GAAG,SAAdA,WAAWA,CAAA;IAAA,OAAStB,MAAM,CAACuB,IAAI,CAAC,WAAW,KAAAC,MAAA,CAAKzB,GAAG,kBAAAyB,MAAA,CAAepB,MAAM,CAAE,CAAC;EAAA;EAEjF,oBACEnB,MAAA,YAAAwC,aAAA;IACEC,IAAI,EAAC,QAAQ;IACbC,IAAI,EAAC,QAAQ;IACbC,SAAS,uBAAAJ,MAAA,CAAuB1B,QAAQ,CAAG;IAC3C,sBAAA0B,MAAA,CAAoB3B,QAAQ,CAAG;IAC/BgC,OAAO,EAAEP;EAAY,gBACrBrC,MAAA,YAAAwC,aAAA,CAACN,WAAW,MAAE,CAAC,eACflC,MAAA,YAAAwC,aAAA;IAAMG,SAAS,EAAC;EAA0B,GAAEX,UAAiB,CAC1D,CAAC;AAEV,CAAC;AAEDtB,eAAe,CAACmC,SAAS,GAAG;EAC1B/B,GAAG,EAAEgC,qBAAS,CAACC,MAAM;EACrBnC,QAAQ,EAAEkC,qBAAS,CAACC,MAAM;EAC1BlC,QAAQ,EAAEiC,qBAAS,CAACC;AACtB,CAAC;AAEDrC,eAAe,CAACsC,YAAY,GAAG;EAC7BlC,GAAG,EAAE,EAAE;EACPF,QAAQ,EAAE,EAAE;EACZC,QAAQ,EAAE;AACZ,CAAC;AAAC,IAAAoC,QAAA,GAAAC,OAAA,cAEaxC,eAAe","ignoreList":[]}
|
|
@@ -7,15 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
function AddedBookmark(
|
|
11
|
-
var _ref$width = _ref.width,
|
|
12
|
-
width = _ref$width === void 0 ? '24px' : _ref$width,
|
|
13
|
-
_ref$height = _ref.height,
|
|
14
|
-
height = _ref$height === void 0 ? '33px' : _ref$height;
|
|
10
|
+
function AddedBookmark() {
|
|
15
11
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
16
|
-
width:
|
|
17
|
-
height:
|
|
18
|
-
viewBox: "0 0 24
|
|
12
|
+
width: "1em",
|
|
13
|
+
height: "1em",
|
|
14
|
+
viewBox: "0 0 24 29",
|
|
19
15
|
version: "1.1",
|
|
20
16
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21
17
|
}, /*#__PURE__*/_react["default"].createElement("title", null, "wishlist-button/added"), /*#__PURE__*/_react["default"].createElement("g", {
|
|
@@ -28,15 +24,15 @@ function AddedBookmark(_ref) {
|
|
|
28
24
|
id: "components",
|
|
29
25
|
transform: "translate(-417, -433)"
|
|
30
26
|
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
31
|
-
id: "
|
|
27
|
+
id: "wishlist-button/added",
|
|
32
28
|
transform: "translate(417, 433.0588)"
|
|
33
29
|
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
34
|
-
d: "
|
|
30
|
+
d: "M1.33333333,5.68434189e-14 L22.6666667,5.68434189e-14 C23.4030667,5.68434189e-14 24,0.59696 24,1.33333333 L24,27.0350667 C24,27.4033333 23.7014667,27.7019336 23.3333333,27.7019336 C23.2397333,27.7019336 23.1472,27.682 23.0617333,27.6438667 L12,22.7084 L0.938306667,27.6438667 C0.602066667,27.794 0.20788,27.6429333 0.0578533333,27.3068 C0.0197066667,27.2212 0,27.1286667 0,27.0350667 L0,1.33333333 C0,0.59696 0.59696,5.68434189e-14 1.33333333,5.68434189e-14 Z",
|
|
35
31
|
id: "Shape",
|
|
36
|
-
fill: "
|
|
32
|
+
fill: "currentColor",
|
|
37
33
|
fillRule: "nonzero"
|
|
38
34
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
39
|
-
d: "
|
|
35
|
+
d: "M18.6268424,8.17492183 C19.1243859,7.67737836 19.1243859,6.87070105 18.6268424,6.3731576 C18.129299,5.87561415 17.3226216,5.87561413 16.8250782,6.37315756 L10.0913659,13.1094147 L7.1749509,10.1904547 C6.85309671,9.86860055 6.38398401,9.74290217 5.94432301,9.86070898 C5.50466201,9.97851579 5.16124768,10.3219301 5.04344087,10.7615911 C4.92563406,11.2012521 5.05133243,11.6703648 5.37318663,11.992219 L9.19048381,15.8095162 C9.42920298,16.0488396 9.75333852,16.183341 10.0913659,16.183341 C10.4293934,16.183341 10.7535289,16.0488396 10.9922481,15.8095162 L18.6268424,8.17492183 Z",
|
|
40
36
|
id: "Path",
|
|
41
37
|
fill: "#FFFFFF"
|
|
42
38
|
})))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddedBookmark.js","names":["_react","_interopRequireDefault","require","AddedBookmark","
|
|
1
|
+
{"version":3,"file":"AddedBookmark.js","names":["_react","_interopRequireDefault","require","AddedBookmark","createElement","width","height","viewBox","version","xmlns","id","stroke","strokeWidth","fill","fillRule","transform","d","_default","exports"],"sources":["../../../../src/components/ItemList/icons/AddedBookmark.js"],"sourcesContent":["import React from 'react';\n\nfunction AddedBookmark() {\n return (\n <svg\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 24 29\"\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=\"wishlist-button/added\" transform=\"translate(417, 433.0588)\">\n <path\n d=\"M1.33333333,5.68434189e-14 L22.6666667,5.68434189e-14 C23.4030667,5.68434189e-14 24,0.59696 24,1.33333333 L24,27.0350667 C24,27.4033333 23.7014667,27.7019336 23.3333333,27.7019336 C23.2397333,27.7019336 23.1472,27.682 23.0617333,27.6438667 L12,22.7084 L0.938306667,27.6438667 C0.602066667,27.794 0.20788,27.6429333 0.0578533333,27.3068 C0.0197066667,27.2212 0,27.1286667 0,27.0350667 L0,1.33333333 C0,0.59696 0.59696,5.68434189e-14 1.33333333,5.68434189e-14 Z\"\n id=\"Shape\"\n fill=\"currentColor\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M18.6268424,8.17492183 C19.1243859,7.67737836 19.1243859,6.87070105 18.6268424,6.3731576 C18.129299,5.87561415 17.3226216,5.87561413 16.8250782,6.37315756 L10.0913659,13.1094147 L7.1749509,10.1904547 C6.85309671,9.86860055 6.38398401,9.74290217 5.94432301,9.86070898 C5.50466201,9.97851579 5.16124768,10.3219301 5.04344087,10.7615911 C4.92563406,11.2012521 5.05133243,11.6703648 5.37318663,11.992219 L9.19048381,15.8095162 C9.42920298,16.0488396 9.75333852,16.183341 10.0913659,16.183341 C10.4293934,16.183341 10.7535289,16.0488396 10.9922481,15.8095162 L18.6268424,8.17492183 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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,SAASC,aAAaA,CAAA,EAAG;EACvB,oBACEH,MAAA,YAAAI,aAAA;IACEC,KAAK,EAAC,KAAK;IACXC,MAAM,EAAC,KAAK;IACZC,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAC,KAAK;IACbC,KAAK,EAAC;EAA4B,gBAClCT,MAAA,YAAAI,aAAA,gBAAO,uBAA4B,CAAC,eACpCJ,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,UAAU;IAACC,MAAM,EAAC,MAAM;IAACC,WAAW,EAAC,GAAG;IAACC,IAAI,EAAC,MAAM;IAACC,QAAQ,EAAC;EAAS,gBAC3Ed,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,YAAY;IAACK,SAAS,EAAC;EAAuB,gBAClDf,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,uBAAuB;IAACK,SAAS,EAAC;EAA0B,gBAChEf,MAAA,YAAAI,aAAA;IACEY,CAAC,EAAC,6cAA6c;IAC/cN,EAAE,EAAC,OAAO;IACVG,IAAI,EAAC,cAAc;IACnBC,QAAQ,EAAC;EAAS,CACnB,CAAC,eACFd,MAAA,YAAAI,aAAA;IACEY,CAAC,EAAC,okBAAokB;IACtkBN,EAAE,EAAC,MAAM;IACTG,IAAI,EAAC;EAAS,CACf,CACA,CACF,CACF,CACA,CAAC;AAEV;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEcf,aAAa","ignoreList":[]}
|
|
@@ -7,15 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
function BaseBookmark(
|
|
11
|
-
var _ref$width = _ref.width,
|
|
12
|
-
width = _ref$width === void 0 ? '24px' : _ref$width,
|
|
13
|
-
_ref$height = _ref.height,
|
|
14
|
-
height = _ref$height === void 0 ? '32px' : _ref$height;
|
|
10
|
+
function BaseBookmark() {
|
|
15
11
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
16
|
-
width:
|
|
17
|
-
height:
|
|
18
|
-
viewBox: "0 0
|
|
12
|
+
width: "1em",
|
|
13
|
+
height: "1em",
|
|
14
|
+
viewBox: "0 0 26 30",
|
|
19
15
|
version: "1.1",
|
|
20
16
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21
17
|
}, /*#__PURE__*/_react["default"].createElement("title", null, "wishlist-button/base"), /*#__PURE__*/_react["default"].createElement("g", {
|
|
@@ -26,24 +22,23 @@ function BaseBookmark(_ref) {
|
|
|
26
22
|
fillRule: "evenodd"
|
|
27
23
|
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
28
24
|
id: "components",
|
|
29
|
-
transform: "translate(-
|
|
25
|
+
transform: "translate(-416, -236)",
|
|
26
|
+
fillRule: "nonzero"
|
|
30
27
|
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
31
|
-
id: "
|
|
28
|
+
id: "wishlist-button/base",
|
|
32
29
|
transform: "translate(417, 237)"
|
|
30
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
31
|
+
id: "Group",
|
|
32
|
+
fill: "#FFFFFF",
|
|
33
|
+
stroke: "currentColor",
|
|
34
|
+
strokeWidth: "2"
|
|
33
35
|
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
34
|
-
d: "
|
|
36
|
+
d: "M1.33333333,0 L22.6666667,0 C23.4030667,0 24,0.59696 24,1.33333333 L24,27.0350667 C24,27.4033333 23.7014667,27.7019336 23.3333333,27.7019336 C23.2397333,27.7019336 23.1472,27.682 23.0617333,27.6438667 L12,22.7084 L0.938306667,27.6438667 C0.602066667,27.794 0.20788,27.6429333 0.0578533333,27.3068 C0.0197066667,27.2212 0,27.1286667 0,27.0350667 L0,1.33333333 C0,0.59696 0.59696,0 1.33333333,0 Z",
|
|
37
|
+
id: "Shape"
|
|
38
|
+
})), /*#__PURE__*/_react["default"].createElement("path", {
|
|
39
|
+
d: "M18.5475051,9.70770608 L14.3505774,9.09775478 L12.4744399,5.29423737 C12.4231974,5.19009934 12.3388952,5.10579713 12.2347571,5.05455461 C11.9735856,4.92562182 11.6562126,5.03306581 11.5256268,5.29423737 L9.64948934,9.09775478 L5.4525616,9.70770608 C5.33685268,9.72423592 5.23106167,9.77878441 5.15006543,9.86143364 C4.94616811,10.0710041 4.95060698,10.406139 5.15998334,10.6102356 L8.19651593,13.5707309 L7.47912064,17.7511288 C7.44480011,17.9495157 7.52626118,18.150158 7.68916287,18.2684724 C7.85206456,18.3867868 8.06806465,18.4021884 8.24610546,18.3081846 L12.0000333,16.3345211 L15.7539612,18.3081846 C15.8564463,18.3627331 15.9754612,18.3809159 16.0895171,18.3610801 C16.3771364,18.3114906 16.5705356,18.0387481 16.5209461,17.7511288 L15.8035508,13.5707309 L18.8400834,10.6102356 C18.9227326,10.5292394 18.9772811,10.4234484 18.9938109,10.3077395 C19.0384415,10.0184672 18.8367774,9.75068367 18.5475051,9.70770608 Z",
|
|
35
40
|
id: "Path",
|
|
36
|
-
fill: "
|
|
37
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
38
|
-
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",
|
|
39
|
-
id: "Path",
|
|
40
|
-
fill: "#C31629",
|
|
41
|
-
fillRule: "nonzero"
|
|
42
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
43
|
-
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",
|
|
44
|
-
id: "Shape",
|
|
45
|
-
fill: "#C31629",
|
|
46
|
-
fillRule: "nonzero"
|
|
41
|
+
fill: "currentColor"
|
|
47
42
|
})))));
|
|
48
43
|
}
|
|
49
44
|
var _default = exports["default"] = BaseBookmark;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseBookmark.js","names":["_react","_interopRequireDefault","require","BaseBookmark","
|
|
1
|
+
{"version":3,"file":"BaseBookmark.js","names":["_react","_interopRequireDefault","require","BaseBookmark","createElement","width","height","viewBox","version","xmlns","id","stroke","strokeWidth","fill","fillRule","transform","d","_default","exports"],"sources":["../../../../src/components/ItemList/icons/BaseBookmark.js"],"sourcesContent":["import React from 'react';\n\nfunction BaseBookmark() {\n return (\n <svg\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 26 30\"\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(-416, -236)\" fillRule=\"nonzero\">\n <g id=\"wishlist-button/base\" transform=\"translate(417, 237)\">\n <g id=\"Group\" fill=\"#FFFFFF\" stroke=\"currentColor\" strokeWidth=\"2\">\n <path\n d=\"M1.33333333,0 L22.6666667,0 C23.4030667,0 24,0.59696 24,1.33333333 L24,27.0350667 C24,27.4033333 23.7014667,27.7019336 23.3333333,27.7019336 C23.2397333,27.7019336 23.1472,27.682 23.0617333,27.6438667 L12,22.7084 L0.938306667,27.6438667 C0.602066667,27.794 0.20788,27.6429333 0.0578533333,27.3068 C0.0197066667,27.2212 0,27.1286667 0,27.0350667 L0,1.33333333 C0,0.59696 0.59696,0 1.33333333,0 Z\"\n id=\"Shape\"\n />\n </g>\n <path\n d=\"M18.5475051,9.70770608 L14.3505774,9.09775478 L12.4744399,5.29423737 C12.4231974,5.19009934 12.3388952,5.10579713 12.2347571,5.05455461 C11.9735856,4.92562182 11.6562126,5.03306581 11.5256268,5.29423737 L9.64948934,9.09775478 L5.4525616,9.70770608 C5.33685268,9.72423592 5.23106167,9.77878441 5.15006543,9.86143364 C4.94616811,10.0710041 4.95060698,10.406139 5.15998334,10.6102356 L8.19651593,13.5707309 L7.47912064,17.7511288 C7.44480011,17.9495157 7.52626118,18.150158 7.68916287,18.2684724 C7.85206456,18.3867868 8.06806465,18.4021884 8.24610546,18.3081846 L12.0000333,16.3345211 L15.7539612,18.3081846 C15.8564463,18.3627331 15.9754612,18.3809159 16.0895171,18.3610801 C16.3771364,18.3114906 16.5705356,18.0387481 16.5209461,17.7511288 L15.8035508,13.5707309 L18.8400834,10.6102356 C18.9227326,10.5292394 18.9772811,10.4234484 18.9938109,10.3077395 C19.0384415,10.0184672 18.8367774,9.75068367 18.5475051,9.70770608 Z\"\n id=\"Path\"\n fill=\"currentColor\"\n />\n </g>\n </g>\n </g>\n </svg>\n );\n}\n\nexport default BaseBookmark;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,SAASC,YAAYA,CAAA,EAAG;EACtB,oBACEH,MAAA,YAAAI,aAAA;IACEC,KAAK,EAAC,KAAK;IACXC,MAAM,EAAC,KAAK;IACZC,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAC,KAAK;IACbC,KAAK,EAAC;EAA4B,gBAClCT,MAAA,YAAAI,aAAA,gBAAO,sBAA2B,CAAC,eACnCJ,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,UAAU;IAACC,MAAM,EAAC,MAAM;IAACC,WAAW,EAAC,GAAG;IAACC,IAAI,EAAC,MAAM;IAACC,QAAQ,EAAC;EAAS,gBAC3Ed,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,YAAY;IAACK,SAAS,EAAC,uBAAuB;IAACD,QAAQ,EAAC;EAAS,gBACrEd,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,sBAAsB;IAACK,SAAS,EAAC;EAAqB,gBAC1Df,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,OAAO;IAACG,IAAI,EAAC,SAAS;IAACF,MAAM,EAAC,cAAc;IAACC,WAAW,EAAC;EAAG,gBAChEZ,MAAA,YAAAI,aAAA;IACEY,CAAC,EAAC,4YAA4Y;IAC9YN,EAAE,EAAC;EAAO,CACX,CACA,CAAC,eACJV,MAAA,YAAAI,aAAA;IACEY,CAAC,EAAC,25BAA25B;IAC75BN,EAAE,EAAC,MAAM;IACTG,IAAI,EAAC;EAAc,CACpB,CACA,CACF,CACF,CACA,CAAC;AAEV;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEcf,YAAY","ignoreList":[]}
|
|
@@ -7,15 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
function HoverBookmark(
|
|
11
|
-
var _ref$width = _ref.width,
|
|
12
|
-
width = _ref$width === void 0 ? '24px' : _ref$width,
|
|
13
|
-
_ref$height = _ref.height,
|
|
14
|
-
height = _ref$height === void 0 ? '33px' : _ref$height;
|
|
10
|
+
function HoverBookmark() {
|
|
15
11
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
16
|
-
width:
|
|
17
|
-
height:
|
|
18
|
-
viewBox: "0 0 24
|
|
12
|
+
width: "1em",
|
|
13
|
+
height: "1em",
|
|
14
|
+
viewBox: "0 0 24 29",
|
|
19
15
|
version: "1.1",
|
|
20
16
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21
17
|
}, /*#__PURE__*/_react["default"].createElement("title", null, "wishlist-button/hover"), /*#__PURE__*/_react["default"].createElement("g", {
|
|
@@ -26,17 +22,19 @@ function HoverBookmark(_ref) {
|
|
|
26
22
|
fillRule: "evenodd"
|
|
27
23
|
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
28
24
|
id: "components",
|
|
29
|
-
transform: "translate(-566, -237)"
|
|
25
|
+
transform: "translate(-566, -237)",
|
|
26
|
+
fillRule: "nonzero"
|
|
30
27
|
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
31
|
-
id: "
|
|
28
|
+
id: "wishlist-button/hover",
|
|
32
29
|
transform: "translate(566, 237.3529)"
|
|
30
|
+
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
31
|
+
id: "Group",
|
|
32
|
+
fill: "currentColor"
|
|
33
33
|
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
34
|
-
d: "
|
|
35
|
-
id: "Shape"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
39
|
-
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",
|
|
34
|
+
d: "M1.33333333,0 L22.6666667,0 C23.4030667,0 24,0.59696 24,1.33333333 L24,27.0350667 C24,27.4033333 23.7014667,27.7019336 23.3333333,27.7019336 C23.2397333,27.7019336 23.1472,27.682 23.0617333,27.6438667 L12,22.7084 L0.938306667,27.6438667 C0.602066667,27.794 0.20788,27.6429333 0.0578533333,27.3068 C0.0197066667,27.2212 0,27.1286667 0,27.0350667 L0,1.33333333 C0,0.59696 0.59696,0 1.33333333,0 Z",
|
|
35
|
+
id: "Shape"
|
|
36
|
+
})), /*#__PURE__*/_react["default"].createElement("path", {
|
|
37
|
+
d: "M18.5475051,9.70770608 L14.3505774,9.09775478 L12.4744399,5.29423737 C12.4231974,5.19009934 12.3388952,5.10579713 12.2347571,5.05455461 C11.9735856,4.92562182 11.6562126,5.03306581 11.5256268,5.29423737 L9.64948934,9.09775478 L5.4525616,9.70770608 C5.33685268,9.72423592 5.23106167,9.77878441 5.15006543,9.86143364 C4.94616811,10.0710041 4.95060698,10.406139 5.15998334,10.6102356 L8.19651593,13.5707309 L7.47912064,17.7511288 C7.44480011,17.9495157 7.52626118,18.150158 7.68916287,18.2684724 C7.85206456,18.3867868 8.06806465,18.4021884 8.24610546,18.3081846 L12.0000333,16.3345211 L15.7539612,18.3081846 C15.8564463,18.3627331 15.9754612,18.3809159 16.0895171,18.3610801 C16.3771364,18.3114906 16.5705356,18.0387481 16.5209461,17.7511288 L15.8035508,13.5707309 L18.8400834,10.6102356 C18.9227326,10.5292394 18.9772811,10.4234484 18.9938109,10.3077395 C19.0384415,10.0184672 18.8367774,9.75068367 18.5475051,9.70770608 Z",
|
|
40
38
|
id: "Path",
|
|
41
39
|
fill: "#FFFFFF"
|
|
42
40
|
})))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HoverBookmark.js","names":["_react","_interopRequireDefault","require","HoverBookmark","
|
|
1
|
+
{"version":3,"file":"HoverBookmark.js","names":["_react","_interopRequireDefault","require","HoverBookmark","createElement","width","height","viewBox","version","xmlns","id","stroke","strokeWidth","fill","fillRule","transform","d","_default","exports"],"sources":["../../../../src/components/ItemList/icons/HoverBookmark.js"],"sourcesContent":["import React from 'react';\n\nfunction HoverBookmark() {\n return (\n <svg\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 24 29\"\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)\" fillRule=\"nonzero\">\n <g id=\"wishlist-button/hover\" transform=\"translate(566, 237.3529)\">\n <g id=\"Group\" fill=\"currentColor\">\n <path\n d=\"M1.33333333,0 L22.6666667,0 C23.4030667,0 24,0.59696 24,1.33333333 L24,27.0350667 C24,27.4033333 23.7014667,27.7019336 23.3333333,27.7019336 C23.2397333,27.7019336 23.1472,27.682 23.0617333,27.6438667 L12,22.7084 L0.938306667,27.6438667 C0.602066667,27.794 0.20788,27.6429333 0.0578533333,27.3068 C0.0197066667,27.2212 0,27.1286667 0,27.0350667 L0,1.33333333 C0,0.59696 0.59696,0 1.33333333,0 Z\"\n id=\"Shape\"\n />\n </g>\n <path\n d=\"M18.5475051,9.70770608 L14.3505774,9.09775478 L12.4744399,5.29423737 C12.4231974,5.19009934 12.3388952,5.10579713 12.2347571,5.05455461 C11.9735856,4.92562182 11.6562126,5.03306581 11.5256268,5.29423737 L9.64948934,9.09775478 L5.4525616,9.70770608 C5.33685268,9.72423592 5.23106167,9.77878441 5.15006543,9.86143364 C4.94616811,10.0710041 4.95060698,10.406139 5.15998334,10.6102356 L8.19651593,13.5707309 L7.47912064,17.7511288 C7.44480011,17.9495157 7.52626118,18.150158 7.68916287,18.2684724 C7.85206456,18.3867868 8.06806465,18.4021884 8.24610546,18.3081846 L12.0000333,16.3345211 L15.7539612,18.3081846 C15.8564463,18.3627331 15.9754612,18.3809159 16.0895171,18.3610801 C16.3771364,18.3114906 16.5705356,18.0387481 16.5209461,17.7511288 L15.8035508,13.5707309 L18.8400834,10.6102356 C18.9227326,10.5292394 18.9772811,10.4234484 18.9938109,10.3077395 C19.0384415,10.0184672 18.8367774,9.75068367 18.5475051,9.70770608 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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,SAASC,aAAaA,CAAA,EAAG;EACvB,oBACEH,MAAA,YAAAI,aAAA;IACEC,KAAK,EAAC,KAAK;IACXC,MAAM,EAAC,KAAK;IACZC,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAC,KAAK;IACbC,KAAK,EAAC;EAA4B,gBAClCT,MAAA,YAAAI,aAAA,gBAAO,uBAA4B,CAAC,eACpCJ,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,UAAU;IAACC,MAAM,EAAC,MAAM;IAACC,WAAW,EAAC,GAAG;IAACC,IAAI,EAAC,MAAM;IAACC,QAAQ,EAAC;EAAS,gBAC3Ed,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,YAAY;IAACK,SAAS,EAAC,uBAAuB;IAACD,QAAQ,EAAC;EAAS,gBACrEd,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,uBAAuB;IAACK,SAAS,EAAC;EAA0B,gBAChEf,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,OAAO;IAACG,IAAI,EAAC;EAAc,gBAC/Bb,MAAA,YAAAI,aAAA;IACEY,CAAC,EAAC,4YAA4Y;IAC9YN,EAAE,EAAC;EAAO,CACX,CACA,CAAC,eACJV,MAAA,YAAAI,aAAA;IACEY,CAAC,EAAC,25BAA25B;IAC75BN,EAAE,EAAC,MAAM;IACTG,IAAI,EAAC;EAAS,CACf,CACA,CACF,CACF,CACA,CAAC;AAEV;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEcf,aAAa","ignoreList":[]}
|
|
@@ -7,15 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
|
-
function RemoveBookmark(
|
|
11
|
-
var _ref$width = _ref.width,
|
|
12
|
-
width = _ref$width === void 0 ? '24px' : _ref$width,
|
|
13
|
-
_ref$height = _ref.height,
|
|
14
|
-
height = _ref$height === void 0 ? '33px' : _ref$height;
|
|
10
|
+
function RemoveBookmark() {
|
|
15
11
|
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
16
|
-
width:
|
|
17
|
-
height:
|
|
18
|
-
viewBox: "0 0 24
|
|
12
|
+
width: "1em",
|
|
13
|
+
height: "1em",
|
|
14
|
+
viewBox: "0 0 24 29",
|
|
19
15
|
version: "1.1",
|
|
20
16
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21
17
|
}, /*#__PURE__*/_react["default"].createElement("title", null, "wishlist-button/remove"), /*#__PURE__*/_react["default"].createElement("g", {
|
|
@@ -31,12 +27,12 @@ function RemoveBookmark(_ref) {
|
|
|
31
27
|
id: "Group",
|
|
32
28
|
transform: "translate(566, 433.4118)"
|
|
33
29
|
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
34
|
-
d: "
|
|
30
|
+
d: "M1.33333333,0 L22.6666667,0 C23.4030667,0 24,0.59696 24,1.33333333 L24,27.0350667 C24,27.4033333 23.7014667,27.7019336 23.3333333,27.7019336 C23.2397333,27.7019336 23.1472,27.682 23.0617333,27.6438667 L12,22.7084 L0.938306667,27.6438667 C0.602066667,27.794 0.20788,27.6429333 0.0578533333,27.3068 C0.0197066667,27.2212 0,27.1286667 0,27.0350667 L0,1.33333333 C0,0.59696 0.59696,0 1.33333333,0 Z",
|
|
35
31
|
id: "Shape",
|
|
36
|
-
fill: "
|
|
32
|
+
fill: "currentColor",
|
|
37
33
|
fillRule: "nonzero"
|
|
38
34
|
}), /*#__PURE__*/_react["default"].createElement("path", {
|
|
39
|
-
d: "
|
|
35
|
+
d: "M8.56311228,6.43978889 C8.18381709,6.06049368 7.6309823,5.91236204 7.11285543,6.05119372 C6.59472855,6.19002539 6.19002539,6.59472855 6.05119372,7.11285543 C5.91236204,7.6309823 6.06049368,8.18381709 6.43978889,8.56311228 L9.87969275,12.0000171 L6.43978889,15.4369219 C6.06049368,15.8162171 5.91236204,16.3690519 6.05119372,16.8871788 C6.19002539,17.4053057 6.59472855,17.8100088 7.11285543,17.9488405 C7.6309823,18.0876722 8.18381709,17.9395405 8.56311228,17.5602453 L12.0000171,14.1203415 L15.4369219,17.5602453 C16.0232615,18.1465849 16.9739058,18.1465849 17.5602453,17.5602453 C18.1465849,16.9739058 18.1465849,16.0232615 17.5602453,15.4369219 L14.1203415,12.0000171 L17.5602453,8.56311228 C18.1465849,7.97677272 18.1465849,7.02612845 17.5602453,6.43978889 C16.9739058,5.85344932 16.0232615,5.85344932 15.4369219,6.43978889 L12.0000171,9.87969275 L8.56311228,6.43978889 Z",
|
|
40
36
|
id: "Path",
|
|
41
37
|
fill: "#FFFFFF"
|
|
42
38
|
})))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemoveBookmark.js","names":["_react","_interopRequireDefault","require","RemoveBookmark","
|
|
1
|
+
{"version":3,"file":"RemoveBookmark.js","names":["_react","_interopRequireDefault","require","RemoveBookmark","createElement","width","height","viewBox","version","xmlns","id","stroke","strokeWidth","fill","fillRule","transform","d","_default","exports"],"sources":["../../../../src/components/ItemList/icons/RemoveBookmark.js"],"sourcesContent":["import React from 'react';\n\nfunction RemoveBookmark() {\n return (\n <svg\n width=\"1em\"\n height=\"1em\"\n viewBox=\"0 0 24 29\"\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=\"M1.33333333,0 L22.6666667,0 C23.4030667,0 24,0.59696 24,1.33333333 L24,27.0350667 C24,27.4033333 23.7014667,27.7019336 23.3333333,27.7019336 C23.2397333,27.7019336 23.1472,27.682 23.0617333,27.6438667 L12,22.7084 L0.938306667,27.6438667 C0.602066667,27.794 0.20788,27.6429333 0.0578533333,27.3068 C0.0197066667,27.2212 0,27.1286667 0,27.0350667 L0,1.33333333 C0,0.59696 0.59696,0 1.33333333,0 Z\"\n id=\"Shape\"\n fill=\"currentColor\"\n fillRule=\"nonzero\"\n />\n <path\n d=\"M8.56311228,6.43978889 C8.18381709,6.06049368 7.6309823,5.91236204 7.11285543,6.05119372 C6.59472855,6.19002539 6.19002539,6.59472855 6.05119372,7.11285543 C5.91236204,7.6309823 6.06049368,8.18381709 6.43978889,8.56311228 L9.87969275,12.0000171 L6.43978889,15.4369219 C6.06049368,15.8162171 5.91236204,16.3690519 6.05119372,16.8871788 C6.19002539,17.4053057 6.59472855,17.8100088 7.11285543,17.9488405 C7.6309823,18.0876722 8.18381709,17.9395405 8.56311228,17.5602453 L12.0000171,14.1203415 L15.4369219,17.5602453 C16.0232615,18.1465849 16.9739058,18.1465849 17.5602453,17.5602453 C18.1465849,16.9739058 18.1465849,16.0232615 17.5602453,15.4369219 L14.1203415,12.0000171 L17.5602453,8.56311228 C18.1465849,7.97677272 18.1465849,7.02612845 17.5602453,6.43978889 C16.9739058,5.85344932 16.0232615,5.85344932 15.4369219,6.43978889 L12.0000171,9.87969275 L8.56311228,6.43978889 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,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,SAASC,cAAcA,CAAA,EAAG;EACxB,oBACEH,MAAA,YAAAI,aAAA;IACEC,KAAK,EAAC,KAAK;IACXC,MAAM,EAAC,KAAK;IACZC,OAAO,EAAC,WAAW;IACnBC,OAAO,EAAC,KAAK;IACbC,KAAK,EAAC;EAA4B,gBAClCT,MAAA,YAAAI,aAAA,gBAAO,wBAA6B,CAAC,eACrCJ,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,UAAU;IAACC,MAAM,EAAC,MAAM;IAACC,WAAW,EAAC,GAAG;IAACC,IAAI,EAAC,MAAM;IAACC,QAAQ,EAAC;EAAS,gBAC3Ed,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,YAAY;IAACK,SAAS,EAAC;EAAuB,gBAClDf,MAAA,YAAAI,aAAA;IAAGM,EAAE,EAAC,OAAO;IAACK,SAAS,EAAC;EAA0B,gBAChDf,MAAA,YAAAI,aAAA;IACEY,CAAC,EAAC,4YAA4Y;IAC9YN,EAAE,EAAC,OAAO;IACVG,IAAI,EAAC,cAAc;IACnBC,QAAQ,EAAC;EAAS,CACnB,CAAC,eACFd,MAAA,YAAAI,aAAA;IACEY,CAAC,EAAC,62BAA62B;IAC/2BN,EAAE,EAAC,MAAM;IACTG,IAAI,EAAC;EAAS,CACf,CACA,CACF,CACF,CACA,CAAC;AAEV;AAAC,IAAAI,QAAA,GAAAC,OAAA,cAEcf,cAAc","ignoreList":[]}
|
|
@@ -17,12 +17,6 @@ Object.defineProperty(exports, "BaseBookmark", {
|
|
|
17
17
|
return _BaseBookmark["default"];
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
Object.defineProperty(exports, "FocusedBookmark", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
get: function get() {
|
|
23
|
-
return _FocusedBookmark["default"];
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
20
|
Object.defineProperty(exports, "HoverBookmark", {
|
|
27
21
|
enumerable: true,
|
|
28
22
|
get: function get() {
|
|
@@ -37,7 +31,6 @@ Object.defineProperty(exports, "RemoveBookmark", {
|
|
|
37
31
|
});
|
|
38
32
|
var _AddedBookmark = _interopRequireDefault(require("./AddedBookmark"));
|
|
39
33
|
var _BaseBookmark = _interopRequireDefault(require("./BaseBookmark"));
|
|
40
|
-
var _FocusedBookmark = _interopRequireDefault(require("./FocusedBookmark"));
|
|
41
34
|
var _HoverBookmark = _interopRequireDefault(require("./HoverBookmark"));
|
|
42
35
|
var _RemoveBookmark = _interopRequireDefault(require("./RemoveBookmark"));
|
|
43
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_AddedBookmark","_interopRequireDefault","require","_BaseBookmark","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_AddedBookmark","_interopRequireDefault","require","_BaseBookmark","_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 HoverBookmark } from './HoverBookmark';\nexport { default as RemoveBookmark } from './RemoveBookmark';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,cAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,cAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,eAAA,GAAAJ,sBAAA,CAAAC,OAAA","ignoreList":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import { useQuery, useMutation } from '@apollo/client';
|
|
4
|
-
import { AddedBookmark, BaseBookmark,
|
|
4
|
+
import { AddedBookmark, BaseBookmark, HoverBookmark, RemoveBookmark } from '../icons';
|
|
5
5
|
import { getItemList, addItemsToList, removeItemsFromList } from '../../../application/query';
|
|
6
6
|
import { getItemListData, setItemListId } from '../helpers';
|
|
7
7
|
import { useItemListId } from '../hooks';
|
|
@@ -15,7 +15,6 @@ const ItemListButton = ({
|
|
|
15
15
|
itemEntity
|
|
16
16
|
} = parent;
|
|
17
17
|
const [isHover, setIsHover] = useState(false);
|
|
18
|
-
const [isFocused, setIsFocused] = useState(false);
|
|
19
18
|
const {
|
|
20
19
|
listId
|
|
21
20
|
} = useItemListId({
|
|
@@ -48,7 +47,6 @@ const ItemListButton = ({
|
|
|
48
47
|
const [removeListItem] = useMutation(removeItemsFromList);
|
|
49
48
|
const clickHandler = () => {
|
|
50
49
|
setIsHover(false);
|
|
51
|
-
setIsFocused(false);
|
|
52
50
|
isInList ? removeListItem({
|
|
53
51
|
variables: {
|
|
54
52
|
listId,
|
|
@@ -78,9 +76,6 @@ const ItemListButton = ({
|
|
|
78
76
|
itemEntity: entityToCheck
|
|
79
77
|
}) => idToCheck === itemId && entityToCheck === itemEntity);
|
|
80
78
|
const getIcon = () => {
|
|
81
|
-
if (isFocused && !isHover) {
|
|
82
|
-
return FocusedBookmark;
|
|
83
|
-
}
|
|
84
79
|
if (isInList) {
|
|
85
80
|
return isHover ? RemoveBookmark : AddedBookmark;
|
|
86
81
|
}
|
|
@@ -95,9 +90,7 @@ const ItemListButton = ({
|
|
|
95
90
|
tabIndex: "0",
|
|
96
91
|
onClick: clickHandler,
|
|
97
92
|
onMouseEnter: () => setIsHover(true),
|
|
98
|
-
onMouseLeave: () => setIsHover(false)
|
|
99
|
-
onFocus: () => setIsFocused(true),
|
|
100
|
-
onBlur: () => setIsFocused(false)
|
|
93
|
+
onMouseLeave: () => setIsHover(false)
|
|
101
94
|
}, /*#__PURE__*/React.createElement("i", null, /*#__PURE__*/React.createElement(Icon, null)));
|
|
102
95
|
};
|
|
103
96
|
ItemListButton.propTypes = {
|