UNPKG

rizzo-next

Version:

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

1,051 lines 39.3 kB
{ "type": "Program", "start": 0, "end": 336, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 13, "column": 0 } }, "sourceType": "module", "body": [ { "type": "VariableDeclaration", "start": 0, "end": 69, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 2, "column": 39 } }, "declarations": [ { "type": "VariableDeclarator", "start": 4, "end": 28, "loc": { "start": { "line": 1, "column": 4 }, "end": { "line": 1, "column": 28 } }, "id": { "type": "Identifier", "start": 4, "end": 8, "loc": { "start": { "line": 1, "column": 4 }, "end": { "line": 1, "column": 8 } }, "name": "Bane" }, "init": { "type": "CallExpression", "start": 11, "end": 28, "loc": { "start": { "line": 1, "column": 11 }, "end": { "line": 1, "column": 28 } }, "callee": { "type": "Identifier", "start": 11, "end": 18, "loc": { "start": { "line": 1, "column": 11 }, "end": { "line": 1, "column": 18 } }, "name": "require" }, "arguments": [ { "type": "Literal", "start": 19, "end": 27, "loc": { "start": { "line": 1, "column": 19 }, "end": { "line": 1, "column": 27 } }, "value": "./bane", "rawValue": "./bane", "raw": "\"./bane\"" } ] } }, { "type": "VariableDeclarator", "start": 34, "end": 68, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 38 } }, "id": { "type": "Identifier", "start": 34, "end": 44, "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 14 } }, "name": "Handlebars" }, "init": { "type": "CallExpression", "start": 47, "end": 68, "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 38 } }, "callee": { "type": "Identifier", "start": 47, "end": 54, "loc": { "start": { "line": 2, "column": 17 }, "end": { "line": 2, "column": 24 } }, "name": "require" }, "arguments": [ { "type": "Literal", "start": 55, "end": 67, "loc": { "start": { "line": 2, "column": 25 }, "end": { "line": 2, "column": 37 } }, "value": "handlebars", "rawValue": "handlebars", "raw": "\"handlebars\"" } ] } } ], "kind": "let" }, { "type": "VariableDeclaration", "start": 71, "end": 302, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 10, "column": 3 } }, "declarations": [ { "type": "VariableDeclarator", "start": 75, "end": 301, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 10, "column": 2 } }, "id": { "type": "Identifier", "start": 75, "end": 88, "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 17 } }, "name": "BaseComponent" }, "init": { "type": "CallExpression", "start": 91, "end": 301, "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 10, "column": 2 } }, "callee": { "type": "MemberExpression", "start": 91, "end": 112, "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 41 } }, "object": { "type": "MemberExpression", "start": 91, "end": 105, "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 34 } }, "object": { "type": "Identifier", "start": 91, "end": 95, "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 24 } }, "name": "Bane" }, "property": { "type": "Identifier", "start": 96, "end": 105, "loc": { "start": { "line": 4, "column": 25 }, "end": { "line": 4, "column": 34 } }, "name": "Component" }, "computed": false }, "property": { "type": "Identifier", "start": 106, "end": 112, "loc": { "start": { "line": 4, "column": 35 }, "end": { "line": 4, "column": 41 } }, "name": "extend" }, "computed": false }, "arguments": [ { "type": "ObjectExpression", "start": 113, "end": 300, "loc": { "start": { "line": 4, "column": 42 }, "end": { "line": 10, "column": 1 } }, "properties": [ { "type": "Property", "start": 117, "end": 298, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 9, "column": 3 } }, "method": false, "shorthand": false, "computed": false, "key": { "type": "Identifier", "start": 117, "end": 127, "loc": { "start": { "line": 5, "column": 2 }, "end": { "line": 5, "column": 12 } }, "name": "initialize" }, "value": { "type": "FunctionExpression", "start": 129, "end": 298, "loc": { "start": { "line": 5, "column": 14 }, "end": { "line": 9, "column": 3 } }, "id": null, "generator": false, "expression": false, "async": false, "params": [], "body": { "type": "BlockStatement", "start": 140, "end": 298, "loc": { "start": { "line": 5, "column": 25 }, "end": { "line": 9, "column": 3 } }, "body": [ { "type": "VariableDeclaration", "start": 146, "end": 239, "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 97 } }, "declarations": [ { "type": "VariableDeclarator", "start": 150, "end": 238, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 96 } }, "id": { "type": "Identifier", "start": 150, "end": 154, "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 12 } }, "name": "html" }, "init": { "type": "CallExpression", "start": 157, "end": 238, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 96 } }, "callee": { "type": "MemberExpression", "start": 157, "end": 236, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 94 } }, "object": { "type": "MemberExpression", "start": 157, "end": 231, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 89 } }, "object": { "type": "CallExpression", "start": 157, "end": 219, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 77 } }, "callee": { "type": "MemberExpression", "start": 157, "end": 180, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 38 } }, "object": { "type": "Identifier", "start": 157, "end": 165, "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 23 } }, "name": "document" }, "property": { "type": "Identifier", "start": 166, "end": 180, "loc": { "start": { "line": 6, "column": 24 }, "end": { "line": 6, "column": 38 } }, "name": "getElementById" }, "computed": false }, "arguments": [ { "type": "CallExpression", "start": 181, "end": 218, "loc": { "start": { "line": 6, "column": 39 }, "end": { "line": 6, "column": 76 } }, "callee": { "type": "MemberExpression", "start": 181, "end": 206, "loc": { "start": { "line": 6, "column": 39 }, "end": { "line": 6, "column": 64 } }, "object": { "type": "MemberExpression", "start": 181, "end": 198, "loc": { "start": { "line": 6, "column": 39 }, "end": { "line": 6, "column": 56 } }, "object": { "type": "ThisExpression", "start": 181, "end": 185, "loc": { "start": { "line": 6, "column": 39 }, "end": { "line": 6, "column": 43 } } }, "property": { "type": "Identifier", "start": 186, "end": 198, "loc": { "start": { "line": 6, "column": 44 }, "end": { "line": 6, "column": 56 } }, "name": "templateName" }, "computed": false }, "property": { "type": "Identifier", "start": 199, "end": 206, "loc": { "start": { "line": 6, "column": 57 }, "end": { "line": 6, "column": 64 } }, "name": "replace" }, "computed": false }, "arguments": [ { "type": "Literal", "start": 207, "end": 212, "loc": { "start": { "line": 6, "column": 65 }, "end": { "line": 6, "column": 70 } }, "value": {}, "rawValue": {}, "raw": "/\\//g", "regex": { "pattern": "\\/", "flags": "g" } }, { "type": "Literal", "start": 214, "end": 217, "loc": { "start": { "line": 6, "column": 72 }, "end": { "line": 6, "column": 75 } }, "value": "_", "rawValue": "_", "raw": "\"_\"" } ] } ] }, "property": { "type": "Identifier", "start": 220, "end": 231, "loc": { "start": { "line": 6, "column": 78 }, "end": { "line": 6, "column": 89 } }, "name": "textContent" }, "computed": false }, "property": { "type": "Identifier", "start": 232, "end": 236, "loc": { "start": { "line": 6, "column": 90 }, "end": { "line": 6, "column": 94 } }, "name": "trim" }, "computed": false }, "arguments": [] } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 245, "end": 294, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 53 } }, "expression": { "type": "AssignmentExpression", "start": 245, "end": 293, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 52 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 245, "end": 258, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 17 } }, "object": { "type": "ThisExpression", "start": 245, "end": 249, "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 8 } } }, "property": { "type": "Identifier", "start": 250, "end": 258, "loc": { "start": { "line": 8, "column": 9 }, "end": { "line": 8, "column": 17 } }, "name": "template" }, "computed": false }, "right": { "type": "CallExpression", "start": 261, "end": 293, "loc": { "start": { "line": 8, "column": 20 }, "end": { "line": 8, "column": 52 } }, "callee": { "type": "MemberExpression", "start": 261, "end": 287, "loc": { "start": { "line": 8, "column": 20 }, "end": { "line": 8, "column": 46 } }, "object": { "type": "MemberExpression", "start": 261, "end": 279, "loc": { "start": { "line": 8, "column": 20 }, "end": { "line": 8, "column": 38 } }, "object": { "type": "Identifier", "start": 261, "end": 271, "loc": { "start": { "line": 8, "column": 20 }, "end": { "line": 8, "column": 30 } }, "name": "Handlebars" }, "property": { "type": "Identifier", "start": 272, "end": 279, "loc": { "start": { "line": 8, "column": 31 }, "end": { "line": 8, "column": 38 } }, "name": "default" }, "computed": false }, "property": { "type": "Identifier", "start": 280, "end": 287, "loc": { "start": { "line": 8, "column": 39 }, "end": { "line": 8, "column": 46 } }, "name": "compile" }, "computed": false }, "arguments": [ { "type": "Identifier", "start": 288, "end": 292, "loc": { "start": { "line": 8, "column": 47 }, "end": { "line": 8, "column": 51 } }, "name": "html" } ] } } } ] } }, "kind": "init" } ] } ] } } ], "kind": "let" }, { "type": "ExpressionStatement", "start": 304, "end": 335, "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 31 } }, "expression": { "type": "AssignmentExpression", "start": 304, "end": 334, "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 30 } }, "operator": "=", "left": { "type": "MemberExpression", "start": 304, "end": 318, "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 14 } }, "object": { "type": "Identifier", "start": 304, "end": 310, "loc": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 6 } }, "name": "module" }, "property": { "type": "Identifier", "start": 311, "end": 318, "loc": { "start": { "line": 12, "column": 7 }, "end": { "line": 12, "column": 14 } }, "name": "exports" }, "computed": false }, "right": { "type": "Identifier", "start": 321, "end": 334, "loc": { "start": { "line": 12, "column": 17 }, "end": { "line": 12, "column": 30 } }, "name": "BaseComponent" } } } ] }