UNPKG

rizzo-next

Version:

The next generation of Lonely Planet's style guide and pattern library.

1,829 lines 439 kB
{ "type": "Program", "start": 0, "end": 3328, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 157, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 42, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 42 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 7, "end": 13, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } }, "local": { "type": "Identifier", "start": 7, "end": 13, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 13 } }, "name": "assign" } } ], "importKind": "value", "source": { "type": "Literal", "start": 19, "end": 41, "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 41 } }, "value": "lodash/object/assign", "rawValue": "lodash/object/assign", "raw": "\"lodash/object/assign\"" } }, { "type": "ImportDeclaration", "start": 43, "end": 82, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 39 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 50, "end": 56, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } }, "local": { "type": "Identifier", "start": 50, "end": 56, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } }, "name": "Arkham" } } ], "importKind": "value", "source": { "type": "Literal", "start": 62, "end": 81, "loc": { "start": { "line": 2, "column": 19 }, "end": { "line": 2, "column": 38 } }, "value": "../../core/arkham", "rawValue": "../../core/arkham", "raw": "\"../../core/arkham\"" } }, { "type": "ImportDeclaration", "start": 83, "end": 129, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 46 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 90, "end": 96, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 } }, "local": { "type": "Identifier", "start": 90, "end": 96, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 13 } }, "name": "Events" } } ], "importKind": "value", "source": { "type": "Literal", "start": 102, "end": 128, "loc": { "start": { "line": 3, "column": 19 }, "end": { "line": 3, "column": 45 } }, "value": "../../core/mixins/events", "rawValue": "../../core/mixins/events", "raw": "\"../../core/mixins/events\"" }, "trailingComments": [ { "type": "CommentLine", "value": " TODO: Pull in only delay method", "start": 130, "end": 164, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 34 } }, "range": [ 130, 164 ] } ] }, { "type": "ImportDeclaration", "start": 165, "end": 207, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 42 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 172, "end": 177, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 12 } }, "local": { "type": "Identifier", "start": 172, "end": 177, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 12 } }, "name": "delay", "leadingComments": null }, "leadingComments": null } ], "importKind": "value", "source": { "type": "Literal", "start": 183, "end": 206, "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 41 } }, "value": "lodash/function/delay", "rawValue": "lodash/function/delay", "raw": "\"lodash/function/delay\"" }, "leadingComments": [ { "type": "CommentLine", "value": " TODO: Pull in only delay method", "start": 130, "end": 164, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 34 } }, "range": [ 130, 164 ] } ] }, { "type": "ImportDeclaration", "start": 208, "end": 250, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 42 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 215, "end": 219, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 11 } }, "local": { "type": "Identifier", "start": 215, "end": 219, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 11 } }, "name": "find" } } ], "importKind": "value", "source": { "type": "Literal", "start": 225, "end": 249, "loc": { "start": { "line": 6, "column": 17 }, "end": { "line": 6, "column": 41 } }, "value": "lodash/collection/find", "rawValue": "lodash/collection/find", "raw": "\"lodash/collection/find\"" } }, { "type": "VariableDeclaration", "start": 252, "end": 278, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 10, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 256, "end": 277, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 10, "column": 1 } }, "id": { "type": "Identifier", "start": 256, "end": 257, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 5 } }, "name": "_" }, "init": { "type": "ObjectExpression", "start": 260, "end": 277, "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 10, "column": 1 } }, "properties": [ { "type": "Property", "start": 264, "end": 268, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 9, "column": 6 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 264, "end": 268, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 9, "column": 6 } }, "name": "find" }, "kind": "init", "value": { "type": "Identifier", "start": 264, "end": 268, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 9, "column": 6 } }, "name": "find" } }, { "type": "Property", "start": 270, "end": 275, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 13 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 270, "end": 275, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 13 } }, "name": "delay" }, "kind": "init", "value": { "type": "Identifier", "start": 270, "end": 275, "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 13 } }, "name": "delay" } } ] } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 280, "end": 308, "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 28 } }, "declarations": [ { "type": "VariableDeclarator", "start": 284, "end": 307, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 27 } }, "id": { "type": "Identifier", "start": 284, "end": 296, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 16 } }, "name": "CHANGE_EVENT" }, "init": { "type": "Literal", "start": 299, "end": 307, "loc": { "start": { "line": 12, "column": 19 }, "end": { "line": 12, "column": 27 } }, "value": "change", "rawValue": "change", "raw": "\"change\"" } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 310, "end": 605, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 30, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 314, "end": 604, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 30, "column": 1 } }, "id": { "type": "Identifier", "start": 314, "end": 319, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 9 } }, "name": "state" }, "init": { "type": "ObjectExpression", "start": 322, "end": 604, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 30, "column": 1 } }, "properties": [ { "type": "Property", "start": 326, "end": 339, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 15, "column": 15 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 326, "end": 332, "loc": { "start": { "line": 15, "column": 2 }, "end": { "line": 15, "column": 8 } }, "name": "isOpen" }, "value": { "type": "Literal", "start": 334, "end": 339, "loc": { "start": { "line": 15, "column": 10 }, "end": { "line": 15, "column": 15 } }, "value": false, "rawValue": false, "raw": "false" }, "kind": "init" }, { "type": "Property", "start": 343, "end": 359, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 16, "column": 18 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 343, "end": 353, "loc": { "start": { "line": 16, "column": 2 }, "end": { "line": 16, "column": 12 } }, "name": "isFetching" }, "value": { "type": "Literal", "start": 355, "end": 359, "loc": { "start": { "line": 16, "column": 14 }, "end": { "line": 16, "column": 18 } }, "value": true, "rawValue": true, "raw": "true" }, "kind": "init" }, { "type": "Property", "start": 363, "end": 380, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 17, "column": 19 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 363, "end": 376, "loc": { "start": { "line": 17, "column": 2 }, "end": { "line": 17, "column": 15 } }, "name": "fetchingPlace" }, "value": { "type": "Literal", "start": 378, "end": 380, "loc": { "start": { "line": 17, "column": 17 }, "end": { "line": 17, "column": 19 } }, "value": "", "rawValue": "", "raw": "\"\"" }, "kind": "init" }, { "type": "Property", "start": 384, "end": 399, "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 18, "column": 17 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 384, "end": 392, "loc": { "start": { "line": 18, "column": 2 }, "end": { "line": 18, "column": 10 } }, "name": "isDetail" }, "value": { "type": "Literal", "start": 394, "end": 399, "loc": { "start": { "line": 18, "column": 12 }, "end": { "line": 18, "column": 17 } }, "value": false, "rawValue": false, "raw": "false" }, "kind": "init" }, { "type": "Property", "start": 403, "end": 420, "loc": { "start": { "line": 19, "column": 2 }, "end": { "line": 19, "column": 19 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 403, "end": 417, "loc": { "start": { "line": 19, "column": 2 }, "end": { "line": 19, "column": 16 } }, "name": "activeSetIndex" }, "value": { "type": "Literal", "start": 419, "end": 420, "loc": { "start": { "line": 19, "column": 18 }, "end": { "line": 19, "column": 19 } }, "value": 0, "rawValue": 0, "raw": "0" }, "kind": "init" }, { "type": "Property", "start": 424, "end": 430, "loc": { "start": { "line": 20, "column": 2 }, "end": { "line": 20, "column": 8 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 424, "end": 427, "loc": { "start": { "line": 20, "column": 2 }, "end": { "line": 20, "column": 5 } }, "name": "poi" }, "value": { "type": "Literal", "start": 429, "end": 430, "loc": { "start": { "line": 20, "column": 7 }, "end": { "line": 20, "column": 8 } }, "value": 2, "rawValue": 2, "raw": "2" }, "kind": "init" }, { "type": "Property", "start": 434, "end": 453, "loc": { "start": { "line": 21, "column": 2 }, "end": { "line": 21, "column": 21 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 434, "end": 449, "loc": { "start": { "line": 21, "column": 2 }, "end": { "line": 21, "column": 17 } }, "name": "currentLocation" }, "value": { "type": "ObjectExpression", "start": 451, "end": 453, "loc": { "start": { "line": 21, "column": 19 }, "end": { "line": 21, "column": 21 } }, "properties": [] }, "kind": "init" }, { "type": "Property", "start": 457, "end": 465, "loc": { "start": { "line": 22, "column": 2 }, "end": { "line": 22, "column": 10 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 457, "end": 461, "loc": { "start": { "line": 22, "column": 2 }, "end": { "line": 22, "column": 6 } }, "name": "sets" }, "value": { "type": "ArrayExpression", "start": 463, "end": 465, "loc": { "start": { "line": 22, "column": 8 }, "end": { "line": 22, "column": 10 } }, "elements": [] }, "kind": "init" }, { "type": "Property", "start": 469, "end": 480, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 23, "column": 13 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 469, "end": 474, "loc": { "start": { "line": 23, "column": 2 }, "end": { "line": 23, "column": 7 } }, "name": "error" }, "value": { "type": "Literal", "start": 476, "end": 480, "loc": { "start": { "line": 23, "column": 9 }, "end": { "line": 23, "column": 13 } }, "value": null, "rawValue": null, "raw": "null" }, "kind": "init" }, { "type": "Property", "start": 484, "end": 497, "loc": { "start": { "line": 24, "column": 2 }, "end": { "line": 24, "column": 15 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 484, "end": 494, "loc": { "start": { "line": 24, "column": 2 }, "end": { "line": 24, "column": 12 } }, "name": "hoveredPin" }, "value": { "type": "Literal", "start": 496, "end": 497, "loc": { "start": { "line": 24, "column": 14 }, "end": { "line": 24, "column": 15 } }, "value": 0, "rawValue": 0, "raw": "0" }, "kind": "init" }, { "type": "Property", "start": 501, "end": 518, "loc": { "start": { "line": 25, "column": 2 }, "end": { "line": 25, "column": 19 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 501, "end": 512, "loc": { "start": { "line": 25, "column": 2 }, "end": { "line": 25, "column": 13 } }, "name": "hoveredItem" }, "value": { "type": "Literal", "start": 514, "end": 518, "loc": { "start": { "line": 25, "column": 15 }, "end": { "line": 25, "column": 19 } }, "value": null, "rawValue": null, "raw": "null" }, "kind": "init" }, { "type": "Property", "start": 522, "end": 537, "loc": { "start": { "line": 26, "column": 2 }, "end": { "line": 26, "column": 17 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 522, "end": 533, "loc": { "start": { "line": 26, "column": 2 }, "end": { "line": 26, "column": 13 } }, "name": "customPanel" }, "value": { "type": "Literal", "start": 535, "end": 537, "loc": { "start": { "line": 26, "column": 15 }, "end": { "line": 26, "column": 17 } }, "value": "", "rawValue": "", "raw": "\"\"" }, "kind": "init" }, { "type": "Property", "start": 541, "end": 563, "loc": { "start": { "line": 27, "column": 2 }, "end": { "line": 27, "column": 24 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 541, "end": 556, "loc": { "start": { "line": 27, "column": 2 }, "end": { "line": 27, "column": 17 } }, "name": "tabDropdownOpen" }, "value": { "type": "Literal", "start": 558, "end": 563, "loc": { "start": { "line": 27, "column": 19 }, "end": { "line": 27, "column": 24 } }, "value": false, "rawValue": false, "raw": "false" }, "kind": "init" }, { "type": "Property", "start": 567, "end": 582, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 28, "column": 17 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 567, "end": 578, "loc": { "start": { "line": 28, "column": 2 }, "end": { "line": 28, "column": 13 } }, "name": "placeParent" }, "value": { "type": "Literal", "start": 580, "end": 582, "loc": { "start": { "line": 28, "column": 15 }, "end": { "line": 28, "column": 17 } }, "value": "", "rawValue": "", "raw": "\"\"" }, "kind": "init" }, { "type": "Property", "start": 586, "end": 602, "loc": { "start": { "line": 29, "column": 2 }, "end": { "line": 29, "column": 18 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 586, "end": 598, "loc": { "start": { "line": 29, "column": 2 }, "end": { "line": 29, "column": 14 } }, "name": "topicClicked" }, "value": { "type": "Literal", "start": 600, "end": 602, "loc": { "start": { "line": 29, "column": 16 }, "end": { "line": 29, "column": 18 } }, "value": "", "rawValue": "", "raw": "\"\"" }, "kind": "init" } ] } } ], "kind": "let" }, { "type": "Identifier", "start": 607, "end": 1194, "loc": { "start": { "line": 32, "column": 0 }, "end": { "line": 64, "column": 11 } }, "declarations": [ { "type": "VariableDeclarator", "start": 611, "end": 1193, "loc": { "start": { "line": 32, "column": 4 }, "end": { "line": 64, "column": 10 } }, "id": { "type": "Identifier", "start": 611, "end": 619, "loc": { "start": { "line": 32, "column": 4 }, "end": { "line": 32, "column": 12 } }, "name": "MapState" }, "init": { "type": "CallExpression", "start": 622, "end": 1193, "loc": { "start": { "line": 32, "column": 15 }, "end": { "line": 64, "column": 10 } }, "callee": { "type": "Identifier", "start": 622, "end": 628, "loc": { "start": { "line": 32, "column": 15 }, "end": { "line": 32, "column": 21 } }, "name": "assign" }, "arguments": [ { "type": "ObjectExpression", "start": 629, "end": 1184, "loc": { "start": { "line": 32, "column": 22 }, "end": { "line": 64, "column": 1 } }, "properties": [ { "type": "Property", "start": 634, "end": 668, "loc": { "start": { "line": 34, "column": 2 }, "end": { "line": 36, "column": 3 } }, "method": true, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 634, "end": 642, "loc": { "start": { "line": 34, "column": 2 }, "end": { "line": 34, "column": 10 } }, "name": "getState" }, "kind": "init", "value": { "type": "FunctionExpression", "start": 642, "end": 668, "loc": { "start": { "line": 34, "column": 10 }, "end": { "line": 36, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 645, "end": 668, "loc": { "start": { "line": 34, "column": 13 }, "end": { "line": 36, "column": 3 } }, "body": [ { "type": "ReturnStatement", "start": 651, "end": 664, "loc": { "start": { "line": 35, "column": 4 }, "end": { "line": 35, "column": 17 } }, "argument": { "type": "Identifier", "start": 658, "end": 663, "loc": { "start": { "line": 35, "column": 11 }, "end": { "line": 35, "column": 16 } }, "name": "state" } } ] } } }, { "type": "Property", "start": 673, "end": 723, "loc": { "start": { "line": 38, "column": 2 }, "end": { "line": 40, "column": 3 } }, "method": true, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 673, "end": 683, "loc": { "start": { "line": 38, "column": 2 }, "end": { "line": 38, "column": 12 } }, "name": "emitChange" }, "kind": "init", "value": { "type": "FunctionExpression", "start": 683, "end": 723, "loc": { "start": { "line": 38, "column": 12 }, "end": { "line": 40, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 686, "end": 723, "loc": { "start": { "line": 38, "column": 15 }, "end": { "line": 40, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 692, "end": 719, "loc": { "start": { "line": 39, "column": 4 }, "end": { "line": 39, "column": 31 } }, "expression": { "type": "CallExpression", "start": 692, "end": 718, "loc": { "start": { "line": 39, "column": 4 }, "end": { "line": 39, "column": 30 } }, "callee": { "type": "MemberExpression", "start": 692, "end": 704, "loc": { "start": { "line": 39, "column": 4 }, "end": { "line": 39, "column": 16 } }, "object": { "type": "ThisExpression", "start": 692, "end": 696, "loc": { "start": { "line": 39, "column": 4 }, "end": { "line": 39, "column": 8 } } }, "property": { "type": "Identifier", "start": 697, "end": 704, "loc": { "start": { "line": 39, "column": 9 }, "end": { "line": 39, "column": 16 } }, "name": "trigger" }, "computed": false }, "arguments": [ { "type"