{
    "component": "table",
    "fixtures": [
        {
            "name": "default",
            "options": {
                "rows": [
                    [
                        {
                            "text": "January"
                        },
                        {
                            "text": "£85",
                            "format": "numeric"
                        },
                        {
                            "text": "£95",
                            "format": "numeric"
                        }
                    ],
                    [
                        {
                            "text": "February"
                        },
                        {
                            "text": "£75",
                            "format": "numeric"
                        },
                        {
                            "text": "£55",
                            "format": "numeric"
                        }
                    ],
                    [
                        {
                            "text": "March"
                        },
                        {
                            "text": "£165",
                            "format": "numeric"
                        },
                        {
                            "text": "£125",
                            "format": "numeric"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >January</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£85</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£95</td>\n          \n        \n        </tr>\n      \n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >February</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£75</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£55</td>\n          \n        \n        </tr>\n      \n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >March</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£165</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£125</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": false
        },
        {
            "name": "table with head",
            "options": {
                "head": [
                    {
                        "text": "Month you apply"
                    },
                    {
                        "text": "Rate for bicycles",
                        "format": "numeric"
                    },
                    {
                        "text": "Rate for vehicles",
                        "format": "numeric"
                    }
                ],
                "rows": [
                    [
                        {
                            "text": "January"
                        },
                        {
                            "text": "£85",
                            "format": "numeric"
                        },
                        {
                            "text": "£95",
                            "format": "numeric"
                        }
                    ],
                    [
                        {
                            "text": "February"
                        },
                        {
                            "text": "£75",
                            "format": "numeric"
                        },
                        {
                            "text": "£55",
                            "format": "numeric"
                        }
                    ],
                    [
                        {
                            "text": "March"
                        },
                        {
                            "text": "£165",
                            "format": "numeric"
                        },
                        {
                            "text": "£125",
                            "format": "numeric"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <thead class=\"moaland-table__head\">\n    <tr class=\"moaland-table__row\">\n    \n      <th scope=\"col\" class=\"moaland-table__header\">Month you apply</th>\n    \n      <th scope=\"col\" class=\"moaland-table__header moaland-table__header--numeric\">Rate for bicycles</th>\n    \n      <th scope=\"col\" class=\"moaland-table__header moaland-table__header--numeric\">Rate for vehicles</th>\n    \n    </tr>\n  </thead>\n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >January</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£85</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£95</td>\n          \n        \n        </tr>\n      \n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >February</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£75</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£55</td>\n          \n        \n        </tr>\n      \n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >March</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£165</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£125</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": false
        },
        {
            "name": "table with head and caption",
            "options": {
                "caption": "Caption 1: Months and rates",
                "captionClasses": "moaland-heading-m",
                "firstCellIsHeader": true,
                "head": [
                    {
                        "text": "Month you apply"
                    },
                    {
                        "text": "Rate for bicycles",
                        "format": "numeric"
                    },
                    {
                        "text": "Rate for vehicles",
                        "format": "numeric"
                    }
                ],
                "rows": [
                    [
                        {
                            "text": "January"
                        },
                        {
                            "text": "£85",
                            "format": "numeric"
                        },
                        {
                            "text": "£95",
                            "format": "numeric"
                        }
                    ],
                    [
                        {
                            "text": "February"
                        },
                        {
                            "text": "£75",
                            "format": "numeric"
                        },
                        {
                            "text": "£55",
                            "format": "numeric"
                        }
                    ],
                    [
                        {
                            "text": "March"
                        },
                        {
                            "text": "£165",
                            "format": "numeric"
                        },
                        {
                            "text": "£125",
                            "format": "numeric"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  <caption class=\"moaland-table__caption moaland-heading-m\">Caption 1: Months and rates</caption>\n  \n  \n  <thead class=\"moaland-table__head\">\n    <tr class=\"moaland-table__row\">\n    \n      <th scope=\"col\" class=\"moaland-table__header\">Month you apply</th>\n    \n      <th scope=\"col\" class=\"moaland-table__header moaland-table__header--numeric\">Rate for bicycles</th>\n    \n      <th scope=\"col\" class=\"moaland-table__header moaland-table__header--numeric\">Rate for vehicles</th>\n    \n    </tr>\n  </thead>\n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <th scope=\"row\" class=\"moaland-table__header\"\n          >January</th>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£85</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£95</td>\n          \n        \n        </tr>\n      \n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <th scope=\"row\" class=\"moaland-table__header\"\n          >February</th>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£75</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£55</td>\n          \n        \n        </tr>\n      \n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <th scope=\"row\" class=\"moaland-table__header\"\n          >March</th>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£165</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£125</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": false
        },
        {
            "name": "classes",
            "options": {
                "classes": "custom-class-goes-here",
                "rows": [
                    [
                        {
                            "text": "Jan"
                        },
                        {
                            "text": "Feb"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table custom-class-goes-here\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Jan</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Feb</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "attributes",
            "options": {
                "attributes": {
                    "data-foo": "bar"
                },
                "rows": [
                    [
                        {
                            "text": "Jan"
                        },
                        {
                            "text": "Feb"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\" data-foo=\"bar\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Jan</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Feb</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "html as text",
            "options": {
                "head": [
                    {
                        "text": "Foo <script>hacking.do(1337)</script>"
                    }
                ],
                "rows": [
                    [
                        {
                            "text": "Foo <script>hacking.do(1337)</script>"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <thead class=\"moaland-table__head\">\n    <tr class=\"moaland-table__row\">\n    \n      <th scope=\"col\" class=\"moaland-table__header\">Foo &lt;script&gt;hacking.do(1337)&lt;/script&gt;</th>\n    \n    </tr>\n  </thead>\n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Foo &lt;script&gt;hacking.do(1337)&lt;/script&gt;</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "html",
            "options": {
                "head": [
                    {
                        "html": "Foo <span>bar</span>"
                    }
                ],
                "rows": [
                    [
                        {
                            "html": "Foo <span>bar</span>"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <thead class=\"moaland-table__head\">\n    <tr class=\"moaland-table__row\">\n    \n      <th scope=\"col\" class=\"moaland-table__header\">Foo <span>bar</span></th>\n    \n    </tr>\n  </thead>\n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Foo <span>bar</span></td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "head with classes",
            "options": {
                "head": [
                    {
                        "text": "Foo",
                        "classes": "my-custom-class"
                    }
                ],
                "rows": [
                    [
                        {
                            "text": "Jan"
                        },
                        {
                            "text": "Feb"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <thead class=\"moaland-table__head\">\n    <tr class=\"moaland-table__row\">\n    \n      <th scope=\"col\" class=\"moaland-table__header my-custom-class\">Foo</th>\n    \n    </tr>\n  </thead>\n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Jan</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Feb</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "head with rowspan and colspan",
            "options": {
                "head": [
                    {
                        "text": "Foo",
                        "rowspan": 2,
                        "colspan": 2
                    }
                ],
                "rows": [
                    [
                        {
                            "text": "Jan"
                        },
                        {
                            "text": "Feb"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <thead class=\"moaland-table__head\">\n    <tr class=\"moaland-table__row\">\n    \n      <th scope=\"col\" class=\"moaland-table__header\" colspan=\"2\" rowspan=\"2\">Foo</th>\n    \n    </tr>\n  </thead>\n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Jan</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Feb</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "head with attributes",
            "options": {
                "head": [
                    {
                        "attributes": {
                            "data-fizz": "buzz"
                        }
                    }
                ],
                "rows": [
                    [
                        {
                            "text": "Jan"
                        },
                        {
                            "text": "Feb"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <thead class=\"moaland-table__head\">\n    <tr class=\"moaland-table__row\">\n    \n      <th scope=\"col\" class=\"moaland-table__header\" data-fizz=\"buzz\"></th>\n    \n    </tr>\n  </thead>\n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Jan</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >Feb</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "with firstCellIsHeader true",
            "options": {
                "firstCellIsHeader": true,
                "rows": [
                    [
                        {
                            "text": "January"
                        },
                        {
                            "text": "£85",
                            "format": "numeric"
                        },
                        {
                            "text": "£95",
                            "format": "numeric"
                        }
                    ],
                    [
                        {
                            "text": "February"
                        },
                        {
                            "text": "£75",
                            "format": "numeric"
                        },
                        {
                            "text": "£55",
                            "format": "numeric"
                        }
                    ],
                    [
                        {
                            "text": "March"
                        },
                        {
                            "text": "£165",
                            "format": "numeric"
                        },
                        {
                            "text": "£125",
                            "format": "numeric"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <th scope=\"row\" class=\"moaland-table__header\"\n          >January</th>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£85</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£95</td>\n          \n        \n        </tr>\n      \n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <th scope=\"row\" class=\"moaland-table__header\"\n          >February</th>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£75</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£55</td>\n          \n        \n        </tr>\n      \n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <th scope=\"row\" class=\"moaland-table__header\"\n          >March</th>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£165</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell moaland-table__cell--numeric\"\n          >£125</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "firstCellIsHeader with classes",
            "options": {
                "firstCellIsHeader": true,
                "rows": [
                    [
                        {
                            "text": "Foo",
                            "classes": "my-custom-class"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <th scope=\"row\" class=\"moaland-table__header my-custom-class\"\n          >Foo</th>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "firstCellIsHeader with html",
            "options": {
                "firstCellIsHeader": true,
                "rows": [
                    [
                        {
                            "html": "Foo <span>bar</span>"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <th scope=\"row\" class=\"moaland-table__header\"\n          >Foo <span>bar</span></th>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "firstCellIsHeader with html as text",
            "options": {
                "firstCellIsHeader": true,
                "rows": [
                    [
                        {
                            "text": "Foo <script>hacking.do(1337)</script>"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <th scope=\"row\" class=\"moaland-table__header\"\n          >Foo &lt;script&gt;hacking.do(1337)&lt;/script&gt;</th>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "firstCellIsHeader with rowspan and colspan",
            "options": {
                "firstCellIsHeader": true,
                "rows": [
                    [
                        {
                            "text": "Foo",
                            "rowspan": 2,
                            "colspan": 2
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <th scope=\"row\" class=\"moaland-table__header\" colspan=\"2\" rowspan=\"2\"\n          >Foo</th>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "firstCellIsHeader with attributes",
            "options": {
                "firstCellIsHeader": true,
                "rows": [
                    [
                        {
                            "text": "Foo",
                            "attributes": {
                                "data-fizz": "buzz"
                            }
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <th scope=\"row\" class=\"moaland-table__header\" data-fizz=\"buzz\"\n          >Foo</th>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "with falsey items",
            "options": {
                "rows": [
                    [
                        {
                            "text": "A"
                        },
                        {
                            "text": 1
                        }
                    ],
                    false,
                    null,
                    [
                        {
                            "text": "B"
                        },
                        {
                            "text": 2
                        }
                    ],
                    [
                        {
                            "text": "C"
                        },
                        {
                            "text": 3
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >A</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >1</td>\n          \n        \n        </tr>\n      \n    \n      \n    \n      \n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >B</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >2</td>\n          \n        \n        </tr>\n      \n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >C</td>\n          \n        \n          \n          \n          <td class=\"moaland-table__cell\"\n          >3</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "rows with classes",
            "options": {
                "rows": [
                    [
                        {
                            "text": "Foo",
                            "classes": "my-custom-class"
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell my-custom-class\"\n          >Foo</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "rows with rowspan and colspan",
            "options": {
                "rows": [
                    [
                        {
                            "text": "Foo",
                            "rowspan": 2,
                            "colspan": 2
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\" colspan=\"2\" rowspan=\"2\"\n          >Foo</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        },
        {
            "name": "rows with attributes",
            "options": {
                "rows": [
                    [
                        {
                            "text": "Foo",
                            "attributes": {
                                "data-fizz": "buzz"
                            }
                        }
                    ]
                ]
            },
            "html": "<table class=\"moaland-table\">\n  \n  \n  <tbody class=\"moaland-table__body\">\n    \n      \n        <tr class=\"moaland-table__row\">\n        \n          \n          \n          <td class=\"moaland-table__cell\" data-fizz=\"buzz\"\n          >Foo</td>\n          \n        \n        </tr>\n      \n    \n  </tbody>\n</table>",
            "hidden": true
        }
    ]
}