UNPKG

rizzo-next

Version:

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

1,497 lines (1,496 loc) 57.4 kB
{ "type": "Program", "start": 0, "end": 361, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 19, "column": 0 } }, "sourceType": "module", "body": [ { "type": "ImportDeclaration", "start": 0, "end": 39, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 39 } }, "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": "Arkham" } } ], "importKind": "value", "source": { "type": "Literal", "start": 19, "end": 38, "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 38 } }, "value": "../../core/arkham", "rawValue": "../../core/arkham", "raw": "\"../../core/arkham\"" } }, { "type": "ImportDeclaration", "start": 40, "end": 77, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 37 } }, "specifiers": [ { "type": "ImportDefaultSpecifier", "start": 47, "end": 56, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 16 } }, "local": { "type": "Identifier", "start": 47, "end": 56, "loc": { "start": { "line": 2, "column": 7 }, "end": { "line": 2, "column": 16 } }, "name": "SearchApi" } } ], "importKind": "value", "source": { "type": "Literal", "start": 62, "end": 76, "loc": { "start": { "line": 2, "column": 22 }, "end": { "line": 2, "column": 36 } }, "value": "./search_api", "rawValue": "./search_api", "raw": "\"./search_api\"" } }, { "type": "Identifier", "start": 79, "end": 329, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 16, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 83, "end": 328, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 16, "column": 1 } }, "id": { "type": "Identifier", "start": 83, "end": 96, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 17 } }, "name": "SearchActions" }, "init": { "type": "ObjectExpression", "start": 99, "end": 328, "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 16, "column": 1 } }, "properties": [ { "type": "Property", "start": 103, "end": 162, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 7, "column": 3 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 103, "end": 113, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 5, "column": 12 } }, "name": "openSearch" }, "value": { "type": "ArrowFunctionExpression", "start": 115, "end": 162, "loc": { "start": { "line": 5, "column": 14 }, "end": { "line": 7, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 121, "end": 162, "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 7, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 127, "end": 158, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 35 } }, "expression": { "type": "CallExpression", "start": 127, "end": 157, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 34 } }, "callee": { "type": "MemberExpression", "start": 127, "end": 141, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 18 } }, "object": { "type": "Identifier", "start": 127, "end": 133, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 10 } }, "name": "Arkham" }, "property": { "type": "Identifier", "start": 134, "end": 141, "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 18 } }, "name": "trigger" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 142, "end": 156, "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 33 } }, "value": "search.start", "rawValue": "search.start", "raw": "\"search.start\"" } ] } } ] } }, "kind": "init" }, { "type": "Property", "start": 166, "end": 222, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 10, "column": 3 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 166, "end": 175, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 8, "column": 11 } }, "name": "endSearch" }, "value": { "type": "ArrowFunctionExpression", "start": 177, "end": 222, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 10, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 183, "end": 222, "loc": { "start": { "line": 8, "column": 19 }, "end": { "line": 10, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 189, "end": 218, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 33 } }, "expression": { "type": "CallExpression", "start": 189, "end": 217, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 32 } }, "callee": { "type": "MemberExpression", "start": 189, "end": 203, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 18 } }, "object": { "type": "Identifier", "start": 189, "end": 195, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 10 } }, "name": "Arkham" }, "property": { "type": "Identifier", "start": 196, "end": 203, "loc": { "start": { "line": 9, "column": 11 }, "end": { "line": 9, "column": 18 } }, "name": "trigger" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 204, "end": 216, "loc": { "start": { "line": 9, "column": 19 }, "end": { "line": 9, "column": 31 } }, "value": "search.end", "rawValue": "search.end", "raw": "\"search.end\"" } ] } } ] } }, "kind": "init" }, { "type": "Property", "start": 226, "end": 326, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 15, "column": 3 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 226, "end": 232, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 11, "column": 8 } }, "name": "typing" }, "value": { "type": "ArrowFunctionExpression", "start": 234, "end": 326, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 15, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 235, "end": 239, "loc": { "start": { "line": 11, "column": 11 }, "end": { "line": 11, "column": 15 } }, "name": "data" } ], "body": { "type": "BlockStatement", "start": 244, "end": 326, "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 15, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 250, "end": 287, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 41 } }, "expression": { "type": "CallExpression", "start": 250, "end": 286, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 40 } }, "callee": { "type": "MemberExpression", "start": 250, "end": 264, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 18 } }, "object": { "type": "Identifier", "start": 250, "end": 256, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 10 } }, "name": "Arkham" }, "property": { "type": "Identifier", "start": 257, "end": 264, "loc": { "start": { "line": 12, "column": 11 }, "end": { "line": 12, "column": 18 } }, "name": "trigger" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 265, "end": 279, "loc": { "start": { "line": 12, "column": 19 }, "end": { "line": 12, "column": 33 } }, "value": "search.fetch", "rawValue": "search.fetch", "raw": "\"search.fetch\"" }, { "type": "Identifier", "start": 281, "end": 285, "loc": { "start": { "line": 12, "column": 35 }, "end": { "line": 12, "column": 39 } }, "name": "data" } ] } }, { "type": "ExpressionStatement", "start": 293, "end": 322, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 33 } }, "expression": { "type": "CallExpression", "start": 293, "end": 321, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 32 } }, "callee": { "type": "MemberExpression", "start": 293, "end": 309, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 20 } }, "object": { "type": "Identifier", "start": 293, "end": 302, "loc": { "start": { "line": 14, "column": 4 }, "end": { "line": 14, "column": 13 } }, "name": "SearchApi" }, "property": { "type": "Identifier", "start": 303, "end": 309, "loc": { "start": { "line": 14, "column": 14 }, "end": { "line": 14, "column": 20 } }, "name": "search" }, "computed": false }, "arguments": [ { "type": "MemberExpression", "start": 310, "end": 320, "loc": { "start": { "line": 14, "column": 21 }, "end": { "line": 14, "column": 31 } }, "object": { "type": "Identifier", "start": 310, "end": 314, "loc": { "start": { "line": 14, "column": 21 }, "end": { "line": 14, "column": 25 } }, "name": "data" }, "property": { "type": "Identifier", "start": 315, "end": 320, "loc": { "start": { "line": 14, "column": 26 }, "end": { "line": 14, "column": 31 } }, "name": "query" }, "computed": false } ] } } ] } }, "kind": "init" } ] } } ], "kind": "let", "name": "_", "leadingComments": [], "trailingComments": [] }, { "type": "Identifier", "start": 331, "end": 360, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 18, "column": 29 } }, "declaration": { "type": "Identifier", "start": 346, "end": 359, "loc": { "start": { "line": 18, "column": 15 }, "end": { "line": 18, "column": 28 } }, "name": "SearchActions" }, "name": "_", "leadingComments": [], "trailingComments": [] }, { "type": "ExportDefaultDeclaration", "start": 331, "end": 360, "loc": { "start": { "line": 18, "column": 0 }, "end": { "line": 18, "column": 29 } }, "declaration": { "type": "VariableDeclaration", "start": 79, "end": 329, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 16, "column": 2 } }, "declarations": [ { "type": "VariableDeclarator", "start": 83, "end": 328, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 16, "column": 1 } }, "id": { "type": "Identifier", "start": 83, "end": 96, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 17 } }, "name": "SearchActions" }, "init": { "type": "ObjectExpression", "start": 99, "end": 328, "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 16, "column": 1 } }, "properties": [ { "type": "Property", "start": 103, "end": 162, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 7, "column": 3 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 103, "end": 113, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 5, "column": 12 } }, "name": "openSearch" }, "value": { "type": "ArrowFunctionExpression", "start": 115, "end": 162, "loc": { "start": { "line": 5, "column": 14 }, "end": { "line": 7, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 121, "end": 162, "loc": { "start": { "line": 5, "column": 20 }, "end": { "line": 7, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 127, "end": 158, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 35 } }, "expression": { "type": "CallExpression", "start": 127, "end": 157, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 34 } }, "callee": { "type": "MemberExpression", "start": 127, "end": 141, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 18 } }, "object": { "type": "Identifier", "start": 127, "end": 133, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 10 } }, "name": "Arkham" }, "property": { "type": "Identifier", "start": 134, "end": 141, "loc": { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 18 } }, "name": "trigger" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 142, "end": 156, "loc": { "start": { "line": 6, "column": 19 }, "end": { "line": 6, "column": 33 } }, "value": "search.start", "rawValue": "search.start", "raw": "\"search.start\"" } ] } } ] } }, "kind": "init" }, { "type": "Property", "start": 166, "end": 222, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 10, "column": 3 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 166, "end": 175, "loc": { "start": { "line": 8, "column": 2 }, "end": { "line": 8, "column": 11 } }, "name": "endSearch" }, "value": { "type": "ArrowFunctionExpression", "start": 177, "end": 222, "loc": { "start": { "line": 8, "column": 13 }, "end": { "line": 10, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 183, "end": 222, "loc": { "start": { "line": 8, "column": 19 }, "end": { "line": 10, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 189, "end": 218, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 33 } }, "expression": { "type": "CallExpression", "start": 189, "end": 217, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 32 } }, "callee": { "type": "MemberExpression", "start": 189, "end": 203, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 18 } }, "object": { "type": "Identifier", "start": 189, "end": 195, "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 10 } }, "name": "Arkham" }, "property": { "type": "Identifier", "start": 196, "end": 203, "loc": { "start": { "line": 9, "column": 11 }, "end": { "line": 9, "column": 18 } }, "name": "trigger" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 204, "end": 216, "loc": { "start": { "line": 9, "column": 19 }, "end": { "line": 9, "column": 31 } }, "value": "search.end", "rawValue": "search.end", "raw": "\"search.end\"" } ] } } ] } }, "kind": "init" }, { "type": "Property", "start": 226, "end": 326, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 15, "column": 3 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 226, "end": 232, "loc": { "start": { "line": 11, "column": 2 }, "end": { "line": 11, "column": 8 } }, "name": "typing" }, "value": { "type": "ArrowFunctionExpression", "start": 234, "end": 326, "loc": { "start": { "line": 11, "column": 10 }, "end": { "line": 15, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [ { "type": "Identifier", "start": 235, "end": 239, "loc": { "start": { "line": 11, "column": 11 }, "end": { "line": 11, "column": 15 } }, "name": "data" } ], "body": { "type": "BlockStatement", "start": 244, "end": 326, "loc": { "start": { "line": 11, "column": 20 }, "end": { "line": 15, "column": 3 } }, "body": [ { "type": "ExpressionStatement", "start": 250, "end": 287, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 41 } }, "expression": { "type": "CallExpression", "start": 250, "end": 286, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 40 } }, "callee": { "type": "MemberExpression", "start": 250, "end": 264, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 18 } }, "object": { "type": "Identifier", "start": 250, "end": 256, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 10 } }, "name": "Arkham" }, "property": { "type": "Identifier", "start": 257, "end": 264, "loc": { "start": { "line": 12, "column": 11 }, "end": { "line": 12, "column": 18 } }, "name": "trigger" },