Lit Showcase Hub
-Explore a rich collection of modular Lit Web Components, prototypes, interactive instruments, databases, and custom UI modules. Select any example from the sidebar to preview in real-time with responsive viewport sandboxing.
-diff --git a/figma-to-lit/tsconfig.json b/figma-to-lit/tsconfig.json deleted file mode 100644 index de8f042..0000000 --- a/figma-to-lit/tsconfig.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "compilerOptions": { - "target": "es6", - "lib": ["es2017"], - "strict": true, - "moduleResolution": "node", - "typeRoots": [ - "./node_modules/@types", - "./node_modules/@figma" - ] - } -} diff --git a/figma_lit_example/assembly/tsconfig.json b/figma_lit_example/assembly/tsconfig.json deleted file mode 100644 index e28fcf2..0000000 --- a/figma_lit_example/assembly/tsconfig.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "assemblyscript/std/assembly.json", - "include": [ - "./**/*.ts" - ] -} \ No newline at end of file diff --git a/figma_lit_example/tsconfig.json b/figma_lit_example/tsconfig.json deleted file mode 100644 index 7539ac5..0000000 --- a/figma_lit_example/tsconfig.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "compilerOptions": { - "target": "es2017", - "module": "esNext", - "moduleResolution": "node", - "lib": ["es2017", "dom", "dom.iterable"], - "typeRoots": ["./node_modules/@types", "./node_modules/@figma"], - "declaration": true, - "sourceMap": true, - "inlineSources": true, - "noUnusedLocals": true, - "noImplicitReturns": true, - "noFallthroughCasesInSwitch": true, - "experimentalDecorators": true, - "skipLibCheck": true, - "strict": true, - "noImplicitAny": false, - "outDir": "./lib", - "baseUrl": "./packages", - "importHelpers": true, - "plugins": [ - { - "name": "ts-lit-plugin", - "rules": { - "no-unknown-tag-name": "error", - "no-unclosed-tag": "error", - "no-unknown-property": "error", - "no-unintended-mixed-binding": "error", - "no-invalid-boolean-binding": "error", - "no-expressionless-property-binding": "error", - "no-noncallable-event-binding": "error", - "no-boolean-in-attribute-binding": "error", - "no-complex-attribute-binding": "error", - "no-nullable-attribute-binding": "error", - "no-incompatible-type-binding": "error", - "no-invalid-directive-binding": "error", - "no-incompatible-property-type": "error", - "no-unknown-property-converter": "error", - "no-invalid-attribute-name": "error", - "no-invalid-tag-name": "error", - "no-unknown-attribute": "off", - "no-unknown-event": "off", - "no-unknown-slot": "off", - "no-invalid-css": "off" - } - } - ] - }, - "include": ["src/**/*.ts"], - "references": [] -} diff --git a/index.html b/index.html index 3b0ef7d..7f8d5c8 100644 --- a/index.html +++ b/index.html @@ -1,705 +1,12 @@ - +
- - -Explore a rich collection of modular Lit Web Components, prototypes, interactive instruments, databases, and custom UI modules. Select any example from the sidebar to preview in real-time with responsive viewport sandboxing.
-|
+ | `;
+ })}
+
|---|
| + ${this.editable + ? html` { + const newValue = e.target.value; + const current = { ...this.values![index] }; + current[key] = newValue; + this.values![index] = current; + this.requestUpdate(); + this.dispatchEvent( + new CustomEvent("input-cell", { + detail: { + index: index, + data: current, + }, + }) + ); + }} + />` + : html`${value}`} + | `; + })} +
This is a paragraph.
-- Styled Text -
- -- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do - eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad - minim veniam, quis nostrud exercitation ullamco laboris nisi ut - aliquip ex ea commodo consequat. Duis aute irure dolor in - reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla - pariatur. Excepteur sint occaecat cupidatat non proident, sunt in - culpa qui officia deserunt mollit anim id est laborum. -
- -
-
-
-
-There is also an example on the Lit playground [here](https://lit.dev/playground/#project=W3sibmFtZSI6ImxpdC1odG1sLXRhYmxlLnRzIiwiY29udGVudCI6ImltcG9ydCB7IGh0bWwsIGNzcywgTGl0RWxlbWVudCB9IGZyb20gXCJsaXRcIjtcbmltcG9ydCB7IGN1c3RvbUVsZW1lbnQsIHByb3BlcnR5IH0gZnJvbSBcImxpdC9kZWNvcmF0b3JzLmpzXCI7XG5cbnR5cGUgT2JqZWN0RGF0YSA9IHsgW2tleTogc3RyaW5nXTogYW55IH07XG5cbkBjdXN0b21FbGVtZW50KFwibGl0LWh0bWwtd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9PlxuICAgICAgICAgICAgICAgIHZhbC50b1VwcGVyQ2FzZSgpXG4gICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgIHJldHVybiBodG1sYDx0aD5cbiAgICAgICAgICAgICAgICA8c2xvdCBuYW1lPVwiJHtrZXl9XCI-JHtuYW1lfTwvc2xvdD5cbiAgICAgICAgICAgICAgPC90aD5gO1xuICAgICAgICAgICAgfSl9XG4gICAgICAgICAgPC90cj5cbiAgICAgICAgPC90aGVhZD5cbiAgICAgICAgPHRib2R5PlxuICAgICAgICAgICR7dGhpcy5kYXRhLm1hcCgoaXRlbSkgPT4ge1xuICAgICAgICAgICAgcmV0dXJuIGh0bWxgXG4gICAgICAgICAgICAgIDx0cj5cbiAgICAgICAgICAgICAgICAke09iamVjdC52YWx1ZXMoaXRlbSkubWFwKCh2YWwpID0-IHtcbiAgICAgICAgICAgICAgICAgIHJldHVybiBodG1sYDx0ZD4ke3ZhbH08L3RkPmA7XG4gICAgICAgICAgICAgICAgfSl9XG4gICAgICAgICAgICAgIDwvdHI-XG4gICAgICAgICAgICBgO1xuICAgICAgICAgIH0pfVxuICAgICAgICA8L3Rib2R5PlxuICAgICAgPC90YWJsZT5cbiAgICBgO1xuICB9XG5cbiAgYXN5bmMgZmlyc3RVcGRhdGVkKCkge1xuICAgIGF3YWl0IHRoaXMuZmV0Y2hEYXRhKCk7XG4gIH1cblxuICBhc3luYyBmZXRjaERhdGEoKSB7XG4gICAgbGV0IF9kYXRhOiBhbnk7XG4gICAgaWYgKHRoaXMuc3JjLmxlbmd0aCA-IDApIHtcbiAgICAgIF9kYXRhID0gYXdhaXQgZmV0Y2godGhpcy5zcmMpLnRoZW4oKHJlcykgPT4gcmVzLmpzb24oKSk7XG4gICAgfSBlbHNlIHtcbiAgICAgIGNvbnN0IGVsZW0gPSB0aGlzLnBhcmVudEVsZW1lbnQ_LnF1ZXJ5U2VsZWN0b3IoXG4gICAgICAgICdzY3JpcHRbdHlwZT1cImFwcGxpY2F0aW9uL2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HBsaWNhdGlvbi9qc29uXCI-XG4gICAgICBbXG4gICAgICAgIHtcbiAgICAgICAgICBcImlkXCI6IFwiMFwiLFxuICAgICAgICAgIFwibmFtZVwiOiBcIkZpcnN0IEl0ZW1cIlxuICAgICAgICB9XG4gICAgICBdXG4gICAgPC9zY3JpcHQ-IC0tPlxuICA8L2xpdC1odG1sLXRhYmxlPlxuXG48L2JvZHk-XG5cbjwvaHRtbD4ifV0).
diff --git a/lit-html-table/doc/editor.png b/lit-html-table/doc/editor.png
deleted file mode 100644
index 8f8e5a5..0000000
Binary files a/lit-html-table/doc/editor.png and /dev/null differ
diff --git a/lit-html-table/doc/finished.png b/lit-html-table/doc/finished.png
deleted file mode 100644
index 8516026..0000000
Binary files a/lit-html-table/doc/finished.png and /dev/null differ
diff --git a/lit-html-table/index.html b/lit-html-table/index.html
deleted file mode 100644
index 2846e5b..0000000
--- a/lit-html-table/index.html
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
-
- |
- | `;
- })}
-
|---|
| - ${this.editable - ? html` { - const value = e.target.value; - const key = row[0]; - const current = this.values![index]; - current[key] = value; - this.values![index] = current; - this.requestUpdate(); - this.dispatchEvent( - new CustomEvent("input-cell", { - detail: { - index: index, - data: current, - }, - }) - ); - }} - />` - : html`${row[1]}`} - | `; - })} -
Explore a rich collection of modular Lit Web Components, prototypes, interactive instruments, databases, and custom UI modules. Select any example from the sidebar to preview natively or in a sandbox.
+This is child content
-