rizzo-next
Version:
The next generation of Lonely Planet's style guide and pattern library.
1,491 lines • 411 kB
JSON
{
"type": "Program",
"start": 0,
"end": 2283,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 83,
"column": 0
}
},
"sourceType": "module",
"body": [
{
"type": "ImportDeclaration",
"start": 0,
"end": 44,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 44
}
},
"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": 43,
"loc": {
"start": {
"line": 1,
"column": 26
},
"end": {
"line": 1,
"column": 43
}
},
"value": "../../core/bane",
"rawValue": "../../core/bane",
"raw": "\"../../core/bane\""
}
},
{
"type": "ImportDeclaration",
"start": 45,
"end": 68,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 23
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 52,
"end": 53,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
},
"local": {
"type": "Identifier",
"start": 52,
"end": 53,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 8
}
},
"name": "$"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 59,
"end": 67,
"loc": {
"start": {
"line": 2,
"column": 14
},
"end": {
"line": 2,
"column": 22
}
},
"value": "jquery",
"rawValue": "jquery",
"raw": "\"jquery\""
}
},
{
"type": "ImportDeclaration",
"start": 69,
"end": 103,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 34
}
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start": 76,
"end": 85,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 16
}
},
"local": {
"type": "Identifier",
"start": 76,
"end": 85,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 16
}
},
"name": "urlencode"
}
}
],
"importKind": "value",
"source": {
"type": "Literal",
"start": 91,
"end": 102,
"loc": {
"start": {
"line": 3,
"column": 22
},
"end": {
"line": 3,
"column": 33
}
},
"value": "urlencode",
"rawValue": "urlencode",
"raw": "\"urlencode\""
}
},
{
"type": "ImportDeclaration",
"start": 104,
"end": 133,
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 29
}
},
"specifiers": [],
"source": {
"type": "Literal",
"start": 111,
"end": 132,
"loc": {
"start": {
"line": 4,
"column": 7
},
"end": {
"line": 4,
"column": 28
}
},
"value": "./action_sheet.scss",
"rawValue": "./action_sheet.scss",
"raw": "\"./action_sheet.scss\""
}
},
{
"type": "Identifier",
"start": 135,
"end": 2244,
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 80,
"column": 1
}
},
"id": {
"type": "Identifier",
"start": 141,
"end": 161,
"loc": {
"start": {
"line": 6,
"column": 6
},
"end": {
"line": 6,
"column": 26
}
},
"name": "ActionSheetComponent"
},
"superClass": {
"type": "Identifier",
"start": 170,
"end": 179,
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 6,
"column": 44
}
},
"name": "Component"
},
"body": {
"type": "ClassBody",
"start": 180,
"end": 2244,
"loc": {
"start": {
"line": 6,
"column": 45
},
"end": {
"line": 80,
"column": 1
}
},
"body": [
{
"type": "MethodDefinition",
"start": 184,
"end": 429,
"loc": {
"start": {
"line": 7,
"column": 2
},
"end": {
"line": 14,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 184,
"end": 194,
"loc": {
"start": {
"line": 7,
"column": 2
},
"end": {
"line": 7,
"column": 12
}
},
"name": "initialize"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 194,
"end": 429,
"loc": {
"start": {
"line": 7,
"column": 12
},
"end": {
"line": 14,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 197,
"end": 429,
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 14,
"column": 3
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 203,
"end": 240,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 41
}
},
"expression": {
"type": "AssignmentExpression",
"start": 203,
"end": 239,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 40
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 203,
"end": 231,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 32
}
},
"object": {
"type": "ThisExpression",
"start": 203,
"end": 207,
"loc": {
"start": {
"line": 8,
"column": 4
},
"end": {
"line": 8,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 208,
"end": 231,
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 32
}
},
"name": "isActionSheetMenuHidden"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 234,
"end": 239,
"loc": {
"start": {
"line": 8,
"column": 35
},
"end": {
"line": 8,
"column": 40
}
},
"value": false,
"rawValue": false,
"raw": "false"
}
}
},
{
"type": "ExpressionStatement",
"start": 246,
"end": 425,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 13,
"column": 6
}
},
"expression": {
"type": "AssignmentExpression",
"start": 246,
"end": 424,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 13,
"column": 5
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 246,
"end": 257,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 15
}
},
"object": {
"type": "ThisExpression",
"start": 246,
"end": 250,
"loc": {
"start": {
"line": 10,
"column": 4
},
"end": {
"line": 10,
"column": 8
}
}
},
"property": {
"type": "Identifier",
"start": 251,
"end": 257,
"loc": {
"start": {
"line": 10,
"column": 9
},
"end": {
"line": 10,
"column": 15
}
},
"name": "events"
},
"computed": false
},
"right": {
"type": "ObjectExpression",
"start": 260,
"end": 424,
"loc": {
"start": {
"line": 10,
"column": 18
},
"end": {
"line": 13,
"column": 5
}
},
"properties": [
{
"type": "Property",
"start": 268,
"end": 338,
"loc": {
"start": {
"line": 11,
"column": 6
},
"end": {
"line": 11,
"column": 76
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Literal",
"start": 268,
"end": 305,
"loc": {
"start": {
"line": 11,
"column": 6
},
"end": {
"line": 11,
"column": 43
}
},
"value": "click .js-action-sheet-menu-control",
"rawValue": "click .js-action-sheet-menu-control",
"raw": "\"click .js-action-sheet-menu-control\""
},
"value": {
"type": "Literal",
"start": 307,
"end": 338,
"loc": {
"start": {
"line": 11,
"column": 45
},
"end": {
"line": 11,
"column": 76
}
},
"value": "actionSheetMenuControlClicked",
"rawValue": "actionSheetMenuControlClicked",
"raw": "\"actionSheetMenuControlClicked\""
},
"kind": "init"
},
{
"type": "Property",
"start": 346,
"end": 418,
"loc": {
"start": {
"line": 12,
"column": 6
},
"end": {
"line": 12,
"column": 78
}
},
"method": false,
"shorthand": false,
"computed": false,
"key": {
"type": "Literal",
"start": 346,
"end": 384,
"loc": {
"start": {
"line": 12,
"column": 6
},
"end": {
"line": 12,
"column": 44
}
},
"value": "click .js-action-sheet-share-control",
"rawValue": "click .js-action-sheet-share-control",
"raw": "\"click .js-action-sheet-share-control\""
},
"value": {
"type": "Literal",
"start": 386,
"end": 418,
"loc": {
"start": {
"line": 12,
"column": 46
},
"end": {
"line": 12,
"column": 78
}
},
"value": "actionSheetShareControlClicked",
"rawValue": "actionSheetShareControlClicked",
"raw": "\"actionSheetShareControlClicked\""
},
"kind": "init"
}
]
}
}
}
]
}
}
},
{
"type": "MethodDefinition",
"start": 433,
"end": 845,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 30,
"column": 3
}
},
"computed": false,
"key": {
"type": "Identifier",
"start": 433,
"end": 462,
"loc": {
"start": {
"line": 16,
"column": 2
},
"end": {
"line": 16,
"column": 31
}
},
"name": "actionSheetMenuControlClicked"
},
"static": false,
"kind": "method",
"value": {
"type": "FunctionExpression",
"start": 462,
"end": 845,
"loc": {
"start": {
"line": 16,
"column": 31
},
"end": {
"line": 30,
"column": 3
}
},
"id": null,
"generator": false,
"expression": false,
"async": false,
"params": [
{
"type": "Identifier",
"start": 463,
"end": 468,
"loc": {
"start": {
"line": 16,
"column": 32
},
"end": {
"line": 16,
"column": 37
}
},
"name": "event"
}
],
"body": {
"type": "BlockStatement",
"start": 470,
"end": 845,
"loc": {
"start": {
"line": 16,
"column": 39
},
"end": {
"line": 30,
"column": 3
}
},
"body": [
{
"type": "VariableDeclaration",
"start": 476,
"end": 509,
"loc": {
"start": {
"line": 17,
"column": 4
},
"end": {
"line": 17,
"column": 37
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 480,
"end": 508,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 36
}
},
"id": {
"type": "Identifier",
"start": 480,
"end": 483,
"loc": {
"start": {
"line": 17,
"column": 8
},
"end": {
"line": 17,
"column": 11
}
},
"name": "$el"
},
"init": {
"type": "CallExpression",
"start": 486,
"end": 508,
"loc": {
"start": {
"line": 17,
"column": 14
},
"end": {
"line": 17,
"column": 36
}
},
"callee": {
"type": "Identifier",
"start": 486,
"end": 487,
"loc": {
"start": {
"line": 17,
"column": 14
},
"end": {
"line": 17,
"column": 15
}
},
"name": "$"
},
"arguments": [
{
"type": "MemberExpression",
"start": 488,
"end": 507,
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 35
}
},
"object": {
"type": "Identifier",
"start": 488,
"end": 493,
"loc": {
"start": {
"line": 17,
"column": 16
},
"end": {
"line": 17,
"column": 21
}
},
"name": "event"
},
"property": {
"type": "Identifier",
"start": 494,
"end": 507,
"loc": {
"start": {
"line": 17,
"column": 22
},
"end": {
"line": 17,
"column": 35
}
},
"name": "currentTarget"
},
"computed": false
}
]
}
}
],
"kind": "let"
},
{
"type": "VariableDeclaration",
"start": 514,
"end": 585,
"loc": {
"start": {
"line": 18,
"column": 4
},
"end": {
"line": 19,
"column": 33
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 518,
"end": 550,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 40
}
},
"id": {
"type": "Identifier",
"start": 518,
"end": 520,
"loc": {
"start": {
"line": 18,
"column": 8
},
"end": {
"line": 18,
"column": 10
}
},
"name": "id"
},
"init": {
"type": "BinaryExpression",
"start": 523,
"end": 550,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 40
}
},
"left": {
"type": "Literal",
"start": 523,
"end": 526,
"loc": {
"start": {
"line": 18,
"column": 13
},
"end": {
"line": 18,
"column": 16
}
},
"value": "#",
"rawValue": "#",
"raw": "\"#\""
},
"operator": "+",
"right": {
"type": "CallExpression",
"start": 529,
"end": 550,
"loc": {
"start": {
"line": 18,
"column": 19
},
"end": {
"line": 18,
"column": 40
}
},
"callee": {
"type": "MemberExpression",
"start": 529,
"end": 537,
"loc": {
"start": {
"line": 18,
"column": 19
},
"end": {
"line": 18,
"column": 27
}
},
"object": {
"type": "Identifier",
"start": 529,
"end": 532,
"loc": {
"start": {
"line": 18,
"column": 19
},
"end": {
"line": 18,
"column": 22
}
},
"name": "$el"
},
"property": {
"type": "Identifier",
"start": 533,
"end": 537,
"loc": {
"start": {
"line": 18,
"column": 23
},
"end": {
"line": 18,
"column": 27
}
},
"name": "attr"
},
"computed": false
},
"arguments": [
{
"type": "Literal",
"start": 538,
"end": 549,
"loc": {
"start": {
"line": 18,
"column": 28
},
"end": {
"line": 18,
"column": 39
}
},
"value": "aria-owns",
"rawValue": "aria-owns",
"raw": "\"aria-owns\""
}
]
}
}
},
{
"type": "VariableDeclarator",
"start": 560,
"end": 584,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 32
}
},
"id": {
"type": "Identifier",
"start": 560,
"end": 565,
"loc": {
"start": {
"line": 19,
"column": 8
},
"end": {
"line": 19,
"column": 13
}
},
"name": "$menu"
},
"init": {
"type": "CallExpression",
"start": 568,
"end": 584,
"loc": {
"start": {
"line": 19,
"column": 16
},
"end": {
"line": 19,
"column": 32
}
},
"callee": {
"type": "MemberExpression",
"start": 568,
"end": 580,
"loc": {
"start": {
"line": 19,
"column": 16
},
"end": {
"line": 19,
"column": 28
}
},
"object": {
"type": "Identifier",
"start": 568,
"end": 571,
"loc": {
"start": {
"line": 19,
"column": 16
},
"end": {
"line": 19,
"column": 19
}
},
"name": "$el"
},
"property": {
"type": "Identifier",
"start": 572,
"end": 580,
"loc": {
"start": {
"line": 19,
"column": 20
},
"end": {
"line": 19,
"column": 28
}
},
"name": "siblings"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 581,
"end": 583,
"loc": {
"start": {
"line": 19,
"column": 29
},
"end": {
"line": 19,
"column": 31
}
},
"name": "id"
}
]
}
}
],
"kind": "let"
},
{
"type": "IfStatement",
"start": 591,
"end": 812,
"loc": {
"start": {
"line": 21,
"column": 4
},
"end": {
"line": 27,
"column": 5
}
},
"test": {
"type": "MemberExpression",
"start": 595,
"end": 623,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 36
}
},
"object": {
"type": "ThisExpression",
"start": 595,
"end": 599,
"loc": {
"start": {
"line": 21,
"column": 8
},
"end": {
"line": 21,
"column": 12
}
}
},
"property": {
"type": "Identifier",
"start": 600,
"end": 623,
"loc": {
"start": {
"line": 21,
"column": 13
},
"end": {
"line": 21,
"column": 36
}
},
"name": "isActionSheetMenuHidden"
},
"computed": false
},
"consequent": {
"type": "BlockStatement",
"start": 625,
"end": 716,
"loc": {
"start": {
"line": 21,
"column": 38
},
"end": {
"line": 24,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 633,
"end": 666,
"loc": {
"start": {
"line": 22,
"column": 6
},
"end": {
"line": 22,
"column": 39
}
},
"expression": {
"type": "CallExpression",
"start": 633,
"end": 665,
"loc": {
"start": {
"line": 22,
"column": 6
},
"end": {
"line": 22,
"column": 38
}
},
"callee": {
"type": "MemberExpression",
"start": 633,
"end": 658,
"loc": {
"start": {
"line": 22,
"column": 6
},
"end": {
"line": 22,
"column": 31
}
},
"object": {
"type": "ThisExpression",
"start": 633,
"end": 637,
"loc": {
"start": {
"line": 22,
"column": 6
},
"end": {
"line": 22,
"column": 10
}
}
},
"property": {
"type": "Identifier",
"start": 638,
"end": 658,
"loc": {
"start": {
"line": 22,
"column": 11
},
"end": {
"line": 22,
"column": 31
}
},
"name": "_hideActionSheetMenu"
},
"computed": false
},
"arguments": [
{
"type": "Identifier",
"start": 659,
"end": 664,
"loc": {
"start": {
"line": 22,
"column": 32
},
"end": {
"line": 22,
"column": 37
}
},
"name": "$menu"
}
]
}
},
{
"type": "ExpressionStatement",
"start": 673,
"end": 710,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 43
}
},
"expression": {
"type": "AssignmentExpression",
"start": 673,
"end": 709,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 42
}
},
"operator": "=",
"left": {
"type": "MemberExpression",
"start": 673,
"end": 701,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 34
}
},
"object": {
"type": "ThisExpression",
"start": 673,
"end": 677,
"loc": {
"start": {
"line": 23,
"column": 6
},
"end": {
"line": 23,
"column": 10
}
}
},
"property": {
"type": "Identifier",
"start": 678,
"end": 701,
"loc": {
"start": {
"line": 23,
"column": 11
},
"end": {
"line": 23,
"column": 34
}
},
"name": "isActionSheetMenuHidden"
},
"computed": false
},
"right": {
"type": "Literal",
"start": 704,
"end": 709,
"loc": {
"start": {
"line": 23,
"column": 37
},
"end": {
"line": 23,
"column": 42
}
},
"value": false,
"rawValue": false,
"raw": "false"
}
}
}
]
},
"alternate": {
"type": "BlockStatement",
"start": 722,
"end": 812,
"loc": {
"start": {
"line": 24,
"column": 11
},
"end": {
"line": 27,
"column": 5
}
},
"body": [
{
"type": "ExpressionStatement",
"start": 730,
"end": 763,
"loc": {
"start": {
"line": 25,
"column": 6
},
"end": {
"line": 25,
"column": 39
}
},
"expression": {