UNPKG

rizzo-next

Version:

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

1,678 lines 1.02 MB
{ "type": "Program", "start": 0, "end": 4388, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 185, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 47, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 47 } }, "specifiers": [ { "type": "ImportSpecifier", "start": 9, "end": 18, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } }, "imported": { "type": "Identifier", "start": 9, "end": 18, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } }, "name": "Component" }, "local": { "type": "Identifier", "start": 9, "end": 18, "loc": { "start": { "line": 1, "column": 9 }, "end": { "line": 1, "column": 18 } }, "name": "Component" } } ], "importKind": "value", "source": { "type": "Literal", "start": 26, "end": 46, "loc": { "start": { "line": 1, "column": 26 }, "end": { "line": 1, "column": 46 } }, "value": "../../../core/bane", "rawValue": "../../../core/bane", "raw": "\"../../../core/bane\"" } }, { "type": "ImportDeclaration", "start": 48, "end": 90, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 42 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 55, "end": 61, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } }, "local": { "type": "Identifier", "start": 55, "end": 61, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 13 } }, "name": "Arkham" } } ], "importKind": "value", "source": { "type": "Literal", "start": 67, "end": 89, "loc": { "start": { "line": 2, "column": 19 }, "end": { "line": 2, "column": 41 } }, "value": "../../../core/arkham", "rawValue": "../../../core/arkham", "raw": "\"../../../core/arkham\"" } }, { "type": "ImportDeclaration", "start": 91, "end": 127, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 36 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 98, "end": 108, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 17 } }, "local": { "type": "Identifier", "start": 98, "end": 108, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 3, "column": 17 } }, "name": "MapActions" } } ], "importKind": "value", "source": { "type": "Literal", "start": 114, "end": 126, "loc": { "start": { "line": 3, "column": 23 }, "end": { "line": 3, "column": 35 } }, "value": "../actions", "rawValue": "../actions", "raw": "\"../actions\"" } }, { "type": "ImportDeclaration", "start": 128, "end": 160, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 32 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 135, "end": 143, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 15 } }, "local": { "type": "Identifier", "start": 135, "end": 143, "loc": { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 15 } }, "name": "MapState" } } ], "importKind": "value", "source": { "type": "Literal", "start": 149, "end": 159, "loc": { "start": { "line": 4, "column": 21 }, "end": { "line": 4, "column": 31 } }, "value": "../state", "rawValue": "../state", "raw": "\"../state\"" } }, { "type": "ImportDeclaration", "start": 161, "end": 187, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 26 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 168, "end": 173, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 12 } }, "local": { "type": "Identifier", "start": 168, "end": 173, "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 12 } }, "name": "React" } } ], "importKind": "value", "source": { "type": "Literal", "start": 179, "end": 186, "loc": { "start": { "line": 5, "column": 18 }, "end": { "line": 5, "column": 25 } }, "value": "react", "rawValue": "react", "raw": "\"react\"" } }, { "type": "ImportDeclaration", "start": 188, "end": 223, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 35 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 195, "end": 198, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 10 } }, "local": { "type": "Identifier", "start": 195, "end": 198, "loc": { "start": { "line": 6, "column": 7 }, "end": { "line": 6, "column": 10 } }, "name": "Pin" } } ], "importKind": "value", "source": { "type": "Literal", "start": 204, "end": 222, "loc": { "start": { "line": 6, "column": 16 }, "end": { "line": 6, "column": 34 } }, "value": "../views/pin.jsx", "rawValue": "../views/pin.jsx", "raw": "\"../views/pin.jsx\"" } }, { "type": "ImportDeclaration", "start": 225, "end": 244, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 19 } }, "specifiers": [], "source": { "type": "Literal", "start": 232, "end": 243, "loc": { "start": { "line": 8, "column": 7 }, "end": { "line": 8, "column": 18 } }, "value": "mapbox.js", "rawValue": "mapbox.js", "raw": "\"mapbox.js\"" } }, { "type": "VariableDeclaration", "start": 246, "end": 263, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 17 } }, "declarations": [ { "type": "VariableDeclarator", "start": 250, "end": 262, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 16 } }, "id": { "type": "Identifier", "start": 250, "end": 251, "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 5 } }, "name": "L" }, "init": { "type": "MemberExpression", "start": 254, "end": 262, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 16 } }, "object": { "type": "Identifier", "start": 254, "end": 260, "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 14 } }, "name": "window" }, "property": { "type": "Identifier", "start": 261, "end": 262, "loc": { "start": { "line": 10, "column": 15 }, "end": { "line": 10, "column": 16 } }, "name": "L" }, "computed": false } } ], "kind": "let" }, { "type": "Identifier", "start": 265, "end": 4360, "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 182, "column": 1 } }, "id": { "type": "Identifier", "start": 271, "end": 280, "loc": { "start": { "line": 12, "column": 6 }, "end": { "line": 12, "column": 15 } }, "name": "MarkerSet" }, "superClass": { "type": "Identifier", "start": 289, "end": 298, "loc": { "start": { "line": 12, "column": 24 }, "end": { "line": 12, "column": 33 } }, "name": "Component" }, "body": { "type": "ClassBody", "start": 299, "end": 4360, "loc": { "start": { "line": 12, "column": 34 }, "end": { "line": 182, "column": 1 } }, "body": [ { "type": "MethodDefinition", "start": 304, "end": 824, "loc": { "start": { "line": 14, "column": 2 }, "end": { "line": 33, "column": 3 } }, "computed": false, "key": { "type": "Identifier", "start": 304, "end": 314, "loc": { "start": { "line": 14, "column": 2 }, "end": { "line": 14, "column": 12 } }, "name": "initialize" }, "static": false, "kind": "method", "value": { "type": "FunctionExpression", "start": 314, "end": 824, "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 33, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "ObjectPattern", "start": 315, "end": 335, "loc": { "start": { "line": 14, "column": 13 }, "end": { "line": 14, "column": 33 } }, "properties": [ { "type": "Property", "start": 317, "end": 321, "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 19 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 317, "end": 321, "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 19 } }, "name": "pois" }, "kind": "init", "value": { "type": "Identifier", "start": 317, "end": 321, "loc": { "start": { "line": 14, "column": 15 }, "end": { "line": 14, "column": 19 } }, "name": "pois" } }, { "type": "Property", "start": 323, "end": 326, "loc": { "start": { "line": 14, "column": 21 }, "end": { "line": 14, "column": 24 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 323, "end": 326, "loc": { "start": { "line": 14, "column": 21 }, "end": { "line": 14, "column": 24 } }, "name": "map" }, "kind": "init", "value": { "type": "Identifier", "start": 323, "end": 326, "loc": { "start": { "line": 14, "column": 21 }, "end": { "line": 14, "column": 24 } }, "name": "map" } }, { "type": "Property", "start": 328, "end": 333, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 31 } }, "method": false, "shorthand": true, "computed": false, "key": { "type": "Identifier", "start": 328, "end": 333, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 31 } }, "name": "layer" }, "kind": "init", "value": { "type": "Identifier", "start": 328, "end": 333, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 31 } }, "name": "layer" } } ] } ], "body": { "type": "BlockStatement", "start": 337, "end": 824, "loc": { "start": { "line": 14, "column": 35 }, "end": { "line": 33, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 343, "end": 512, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 18, "column": 6 } }, "expression": { "type": "AssignmentExpression", "start": 343, "end": 511, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 18, "column": 5 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 343, "end": 354, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 15 } }, "object": { "type": "ThisExpression", "start": 343, "end": 347, "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 8 } } }, "property": { "type": "Identifier", "start": 348, "end": 354, "loc": { "start": { "line": 15, "column": 9 }, "end": { "line": 15, "column": 15 } }, "name": "events" }, "computed": false }, "right": { "type": "ObjectExpression", "start": 357, "end": 511, "loc": { "start": { "line": 15, "column": 18 }, "end": { "line": 18, "column": 5 } }, "properties": [ { "type": "Property", "start": 473, "end": 505, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 38 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Literal", "start": 473, "end": 492, "loc": { "start": { "line": 17, "column": 6 }, "end": { "line": 17, "column": 25 } }, "value": "click.marker .pin", "rawValue": "click.marker .pin", "raw": "\"click.marker .pin\"", "leadingComments": null }, "value": { "type": "Literal", "start": 494, "end": 505, "loc": { "start": { "line": 17, "column": 27 }, "end": { "line": 17, "column": 38 } }, "value": "_poiClick", "rawValue": "_poiClick", "raw": "\"_poiClick\"" }, "kind": "init", "leadingComments": [ { "type": "CommentLine", "value": " \"click.marker .poi\": \"_poiClick\", doesn't work, because marker is z-indexed lower than popup-pane?", "start": 365, "end": 466, "loc": { "start": { "line": 16, "column": 6 }, "end": { "line": 16, "column": 107 } }, "range": [ 365, 466 ] } ] } ] } } }, { "type": "ExpressionStatement", "start": 518, "end": 535, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 21 } }, "expression": { "type": "AssignmentExpression", "start": 518, "end": 534, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 20 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 518, "end": 527, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 13 } }, "object": { "type": "ThisExpression", "start": 518, "end": 522, "loc": { "start": { "line": 20, "column": 4 }, "end": { "line": 20, "column": 8 } } }, "property": { "type": "Identifier", "start": 523, "end": 527, "loc": { "start": { "line": 20, "column": 9 }, "end": { "line": 20, "column": 13 } }, "name": "pois" }, "computed": false }, "right": { "type": "Identifier", "start": 530, "end": 534, "loc": { "start": { "line": 20, "column": 16 }, "end": { "line": 20, "column": 20 } }, "name": "pois" } } }, { "type": "ExpressionStatement", "start": 540, "end": 555, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 19 } }, "expression": { "type": "AssignmentExpression", "start": 540, "end": 554, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 18 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 540, "end": 548, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 12 } }, "object": { "type": "ThisExpression", "start": 540, "end": 544, "loc": { "start": { "line": 21, "column": 4 }, "end": { "line": 21, "column": 8 } } }, "property": { "type": "Identifier", "start": 545, "end": 548, "loc": { "start": { "line": 21, "column": 9 }, "end": { "line": 21, "column": 12 } }, "name": "map" }, "computed": false }, "right": { "type": "Identifier", "start": 551, "end": 554, "loc": { "start": { "line": 21, "column": 15 }, "end": { "line": 21, "column": 18 } }, "name": "map" } } }, { "type": "ExpressionStatement", "start": 560, "end": 579, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 23 } }, "expression": { "type": "AssignmentExpression", "start": 560, "end": 578, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 22 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 560, "end": 570, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 14 } }, "object": { "type": "ThisExpression", "start": 560, "end": 564, "loc": { "start": { "line": 22, "column": 4 }, "end": { "line": 22, "column": 8 } } }, "property": { "type": "Identifier", "start": 565, "end": 570, "loc": { "start": { "line": 22, "column": 9 }, "end": { "line": 22, "column": 14 } }, "name": "layer" }, "computed": false }, "right": { "type": "Identifier", "start": 573, "end": 578, "loc": { "start": { "line": 22, "column": 17 }, "end": { "line": 22, "column": 22 } }, "name": "layer" } } }, { "type": "ExpressionStatement", "start": 585, "end": 599, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 18 } }, "expression": { "type": "CallExpression", "start": 585, "end": 598, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 17 } }, "callee": { "type": "MemberExpression", "start": 585, "end": 596, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 15 } }, "object": { "type": "ThisExpression", "start": 585, "end": 589, "loc": { "start": { "line": 24, "column": 4 }, "end": { "line": 24, "column": 8 } } }, "property": { "type": "Identifier", "start": 590, "end": 596, "loc": { "start": { "line": 24, "column": 9 }, "end": { "line": 24, "column": 15 } }, "name": "listen" }, "computed": false }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 605, "end": 625, "loc": { "start": { "line": 26, "column": 4 }, "end": { "line": 26, "column": 24 } }, "expression": { "type": "CallExpression", "start": 605, "end": 624, "loc": { "start": { "line": 26, "column": 4 }, "end": { "line": 26, "column": 23 } }, "callee": { "type": "MemberExpression", "start": 605, "end": 622, "loc": { "start": { "line": 26, "column": 4 }, "end": { "line": 26, "column": 21 } }, "object": { "type": "ThisExpression", "start": 605, "end": 609, "loc": { "start": { "line": 26, "column": 4 }, "end": { "line": 26, "column": 8 } } }, "property": { "type": "Identifier", "start": 610, "end": 622, "loc": { "start": { "line": 26, "column": 9 }, "end": { "line": 26, "column": 21 } }, "name": "_createLayer" }, "computed": false }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 630, "end": 651, "loc": { "start": { "line": 27, "column": 4 }, "end": { "line": 27, "column": 25 } }, "expression": { "type": "CallExpression", "start": 630, "end": 650, "loc": { "start": { "line": 27, "column": 4 }, "end": { "line": 27, "column": 24 } }, "callee": { "type": "MemberExpression", "start": 630, "end": 648, "loc": { "start": { "line": 27, "column": 4 }, "end": { "line": 27, "column": 22 } }, "object": { "type": "ThisExpression", "start": 630, "end": 634, "loc": { "start": { "line": 27, "column": 4 }, "end": { "line": 27, "column": 8 } } }, "property": { "type": "Identifier", "start": 635, "end": 648, "loc": { "start": { "line": 27, "column": 9 }, "end": { "line": 27, "column": 22 } }, "name": "_clearMarkers" }, "computed": false }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 656, "end": 678, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 28, "column": 26 } }, "expression": { "type": "CallExpression", "start": 656, "end": 677, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 28, "column": 25 } }, "callee": { "type": "MemberExpression", "start": 656, "end": 675, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 28, "column": 23 } }, "object": { "type": "ThisExpression", "start": 656, "end": 660, "loc": { "start": { "line": 28, "column": 4 }, "end": { "line": 28, "column": 8 } } }, "property": { "type": "Identifier", "start": 661, "end": 675, "loc": { "start": { "line": 28, "column": 9 }, "end": { "line": 28, "column": 23 } }, "name": "_createGeoJSON" }, "computed": false }, "arguments": [] } }, { "type": "ExpressionStatement", "start": 683, "end": 700, "loc": { "start": { "line": 29, "column": 4 }, "end": { "line": 29, "column": 21 } }, "expression": { "type": "CallExpression", "start": 683, "end": 699, "loc": { "start": { "line": 29, "column": 4 }, "end": { "line": 29, "column": 20 } }, "callee": { "type": "MemberExpression", "start": 683, "end": 697, "loc": { "start": { "line": 29, "column": 4 }, "end": { "line": 29, "column": 18 } }, "object": { "type": "ThisExpression", "start": 683, "end": 687, "loc":