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
1 change: 1 addition & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"preact-ts",
"svelte-ts",
"vanilla-ts",
"lit-ts",
"website"
]
}
24 changes: 24 additions & 0 deletions examples/lit-ts/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
19 changes: 19 additions & 0 deletions examples/lit-ts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body style="padding: 40px">
<h1>Lit + Zag</h1>

<a href="pages/accordion.html">Accordion</a>
<a href="pages/avatar.html">Avatar</a>
<a href="pages/avatar-controller.html">Avatar with Controller</a>
<a href="pages/popover.html">Popover</a>
<a href="pages/checkbox.html">Checkbox</a>
<a href="pages/combobox.html">Combobox</a>
</body>
</html>
95 changes: 95 additions & 0 deletions examples/lit-ts/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"name": "lit-ts",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"preview": "vite preview"
},
"devDependencies": {
"typescript": "^5.8.3",
"vite": "^7.0.5"
},
"dependencies": {
"@internationalized/date": "3.8.2",
"@open-wc/lit-helpers": "0.7.0",
"@zag-js/accordion": "workspace:*",
"@zag-js/anatomy": "workspace:*",
"@zag-js/anatomy-icons": "workspace:*",
"@zag-js/angle-slider": "workspace:*",
"@zag-js/aria-hidden": "workspace:*",
"@zag-js/async-list": "workspace:*",
"@zag-js/auto-resize": "workspace:*",
"@zag-js/avatar": "workspace:*",
"@zag-js/carousel": "workspace:*",
"@zag-js/checkbox": "workspace:*",
"@zag-js/clipboard": "workspace:*",
"@zag-js/collapsible": "workspace:*",
"@zag-js/collection": "workspace:*",
"@zag-js/color-picker": "workspace:*",
"@zag-js/color-utils": "workspace:*",
"@zag-js/combobox": "workspace:*",
"@zag-js/core": "workspace:*",
"@zag-js/date-picker": "workspace:*",
"@zag-js/date-utils": "workspace:*",
"@zag-js/dialog": "workspace:*",
"@zag-js/dismissable": "workspace:*",
"@zag-js/docs": "workspace:*",
"@zag-js/dom-query": "workspace:*",
"@zag-js/editable": "workspace:*",
"@zag-js/file-upload": "workspace:*",
"@zag-js/file-utils": "workspace:*",
"@zag-js/floating-panel": "workspace:*",
"@zag-js/focus-trap": "workspace:*",
"@zag-js/focus-visible": "workspace:*",
"@zag-js/highlight-word": "workspace:*",
"@zag-js/hover-card": "workspace:*",
"@zag-js/i18n-utils": "workspace:*",
"@zag-js/interact-outside": "workspace:*",
"@zag-js/json-tree-utils": "workspace:*",
"@zag-js/listbox": "workspace:*",
"@zag-js/live-region": "workspace:*",
"@zag-js/menu": "workspace:*",
"@zag-js/navigation-menu": "workspace:*",
"@zag-js/number-input": "workspace:*",
"@zag-js/pagination": "workspace:*",
"@zag-js/password-input": "workspace:*",
"@zag-js/pin-input": "workspace:*",
"@zag-js/popover": "workspace:*",
"@zag-js/popper": "workspace:*",
"@zag-js/presence": "workspace:*",
"@zag-js/progress": "workspace:*",
"@zag-js/qr-code": "workspace:*",
"@zag-js/radio-group": "workspace:*",
"@zag-js/rating-group": "workspace:*",
"@zag-js/rect-utils": "workspace:*",
"@zag-js/remove-scroll": "workspace:*",
"@zag-js/scroll-snap": "workspace:*",
"@zag-js/select": "workspace:*",
"@zag-js/shared": "workspace:*",
"@zag-js/signature-pad": "workspace:*",
"@zag-js/slider": "workspace:*",
"@zag-js/splitter": "workspace:*",
"@zag-js/steps": "workspace:*",
"@zag-js/store": "workspace:*",
"@zag-js/stringify-state": "workspace:*",
"@zag-js/switch": "workspace:*",
"@zag-js/tabs": "workspace:*",
"@zag-js/tags-input": "workspace:*",
"@zag-js/timer": "workspace:*",
"@zag-js/toast": "workspace:*",
"@zag-js/toggle": "workspace:*",
"@zag-js/toggle-group": "workspace:*",
"@zag-js/tooltip": "workspace:*",
"@zag-js/tour": "workspace:*",
"@zag-js/tree-view": "workspace:*",
"@zag-js/types": "workspace:*",
"@zag-js/utils": "workspace:*",
"form-serialize": "0.7.2",
"lit": "3.3.1",
"match-sorter": "8.0.3",
"nanoid": "^5.1.5"
}
}
17 changes: 17 additions & 0 deletions examples/lit-ts/pages/accordion.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="/layout.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body style="padding: 40px">
<h1>Accordion</h1>

<accordion-element></accordion-element>

<script type="module" src="./../src/accordion.ts"></script>
</body>
</html>
17 changes: 17 additions & 0 deletions examples/lit-ts/pages/avatar-controller.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="/layout.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body style="padding: 40px">
<h1>Avatar Element with Reactive Controller</h1>

<avatar-ctrl-element></avatar-ctrl-element>

<script type="module" src="./../src/avatar2.ts"></script>
</body>
</html>
17 changes: 17 additions & 0 deletions examples/lit-ts/pages/avatar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="/layout.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body style="padding: 40px">
<h1>Avatar Element</h1>

<avatar-element></avatar-element>

<script type="module" src="./../src/avatar.ts"></script>
</body>
</html>
17 changes: 17 additions & 0 deletions examples/lit-ts/pages/checkbox.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="/layout.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body style="padding: 40px">
<h1>Checkbox</h1>

<checkbox-element></checkbox-element>

<script type="module" src="../src/checkbox.ts"></script>
</body>
</html>
17 changes: 17 additions & 0 deletions examples/lit-ts/pages/combobox.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="/layout.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body style="padding: 40px">
<h1>Combobox</h1>

<combobox-element></combobox-element>

<script type="module" src="../src/combobox.ts"></script>
</body>
</html>
17 changes: 17 additions & 0 deletions examples/lit-ts/pages/popover.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="stylesheet" href="/layout.css" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + TS</title>
</head>
<body style="padding: 40px">
<h1>Popover</h1>

<popover-element></popover-element>

<script type="module" src="../src/popover.ts"></script>
</body>
</html>
Loading
Loading