<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>UUX Hello World</title>
<link href="./node_modules/@unified-ux/uux-web/css/base.css" rel="stylesheet">
<script src="./node_modules/@webcomponents/webcomponentsjs/webcomponents-bundle.js"></script>
<script type="module" src="./index.js"></script>
<style>
uwc-card {
--uwc-card-background-color: lightgray;
}
</style>
</head>
<body style="background:#F2F7FD">
<uwc-card style="background:#F2F7FD">
<uwc-text variant="h1" color="temenos-dark" style="";>index.html rendering a subset of UUX components using npm</uwc-text>
<uwc-grid container spacing="3">
<uwc-grid xs="12">
<uwc-text-field id="1" label="Name" value="Jane"></uwc-text-field>
</uwc-grid>
<uwc-grid xs="12">
<uwc-amount-field label="Amount" currencyCode="HKD"></uwc-amount-field>
</uwc-grid>
<uwc-grid xs="12">
<uwc-select id="3" label="Nationality">
<uwc-list-item>German</uwc-list-item>
<uwc-list-item>Indian</uwc-list-item>
<uwc-list-item>American</uwc-list-item>
<uwc-list-item>Norwegian</uwc-list-item>
</uwc-select>
</uwc-grid>
<uwc-grid xs="12">
<uwc-date-picker id="4" label="Date of birth"></uwc-date-picker>
</uwc-grid>
<uwc-grid xs="12">
<uwc-badge position="top-right" content="4" color="temenos-primary">
<uwc-icon color="temenos-dark">star</uwc-icon>
</uwc-badge>
</uwc-grid>
<uwc-grid xs="12">
<uwc-checkbox id="7" label="Monthly" checked></uwc-checkbox>
</uwc-grid>
<uwc-grid xs="12">
<uwc-button-toggle options='[{"label":"One","value":"one"},{"label":"Two","value":"two"},{"label":"Three","value":"three"},{"label":"Four","value":"four"}]'></uwc-button-toggle>
</uwc-grid>
<uwc-grid xs="12">
<uwc-checkbox-group name="mygroup" label="My Checkbox Group" helperText="Additional information about the checkbox group"></uwc-checkbox-group>
<script>const group = document.querySelector("uwc-checkbox-group");
group.options = [{ label: "One" }, { label: "Two" }, { label: "Three" }];
</script>
</uwc-grid>
<uwc-grid xs="12">
<uwc-chip-group options='[{ "label": "Chip One" ,"value": "one", "icon": "grade" },
{ "label": "Chip Two", "value": "two", "icon": "grade" }]'></uwc-chip-group>
</uwc-grid>
<uwc-grid xs="12">
<uwc-compact-flagset flags='[
{
"label": "Spell-check",
"value": "spellCheck",
"checked": false
},
{
"label": "Auto-correct",
"value": "autocorrect",
"checked": false
}]'></uwc-compact-flagset>
</uwc-grid>
<uwc-grid xs="12">
<uwc-button trailingIcon contained id="faceButton" size="large" type="reset" icon="restore" label="Reset" style="display:flex; justify-content:flex-end;"></uwc-button>
</uwc-grid>
</uwc-grid>
</uwc-card>
</body>
</html>