Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
},
"dependencies": {
"@lit/localize": "^0.12.1",
"country-list-with-dial-code-and-flag": "^5.1.1",
"i18n-iso-countries": "^7.14.0",
"iconify-icon": "^1.0.2",
"lit": "^3.1.4"
},
Expand Down
47 changes: 47 additions & 0 deletions phone-intl-test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Phone International Test</title>
<script type="module" src="./dist/index.js"></script>
<style>
body {
font-family: Arial, sans-serif;
padding: 20px;
max-width: 600px;
margin: 0 auto;
}
.container {
margin: 20px 0;
}
</style>
</head>
<body>
<h1>Phone International Component Test</h1>

<div class="container">
<h2>Empty Phone International</h2>
<dt-multi-text type="phone-intl" label="Phone Numbers"></dt-multi-text>
</div>

<div class="container">
<h2>Populated Phone International</h2>
<dt-multi-text
type="phone-intl"
label="Phone Numbers"
value='[{"value": "+1 555-123-4567", "key": "phone1"}, {"value": "+44 20 7946 0958", "key": "phone2"}]'>
</dt-multi-text>
</div>

<div class="container">
<h2>French Localized</h2>
<dt-multi-text
type="phone-intl"
label="Numéros de téléphone"
locale="fr"
value='[{"value": "+33 1 42 86 83 26", "key": "phone1"}]'>
</dt-multi-text>
</div>
</body>
</html>
Loading