Skip to content

Commit 98c78b4

Browse files
committed
Renamed withLit to lit
1 parent 1bd8fd7 commit 98c78b4

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-element",
3-
"version": "0.0.212",
3+
"version": "0.0.213",
44
"description": "",
55
"license": "LGPL-3.0",
66
"main": "./index.js",

src/main/js-element-lit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import { repeat } from 'lit-html/directives/repeat'
66

77
// === exports =======================================================
88

9-
export { classMap, createRef, html, ref, repeat, styleMap, withLit }
9+
export { classMap, createRef, html, ref, repeat, styleMap, lit }
1010
export { Ref, TemplateResult }
1111

1212
// === functions =====================================================
1313

14-
function withLit(init: Function): any {
14+
function lit(init: Function): any {
1515
return {
1616
patch: render,
1717
init

src/stories/demos/context-demo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { component, createCtx, elem, prop, Attrs } from 'js-element'
22
import { useCtx, useInterval, useState } from 'js-element/hooks'
3-
import { html, withLit } from 'js-element/lit'
3+
import { html, lit } from 'js-element/lit'
44

55
const themeCtx = createCtx('light')
66

@@ -15,7 +15,7 @@ class ThemeProvider extends component() {
1515

1616
@elem({
1717
tag: 'theme-info',
18-
impl: withLit(implThemeInfo)
18+
impl: lit(implThemeInfo)
1919
})
2020
class ThemeInfo extends component() {}
2121

@@ -28,7 +28,7 @@ function implThemeInfo() {
2828
@elem({
2929
tag: 'context-demo',
3030
uses: [ThemeProvider, ThemeInfo],
31-
impl: withLit(implContextDemo)
31+
impl: lit(implContextDemo)
3232
})
3333
class ContextDemo extends component() {}
3434

src/stories/demos/counter-demo.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { component, elem, prop, setMethods, Attrs } from 'js-element'
22
import { useState } from 'js-element/hooks'
3-
import { createRef, html, ref, withLit } from 'js-element/lit'
3+
import { createRef, html, lit, ref } from 'js-element/lit'
44

55
@elem({
66
tag: 'x-counter',
77
styles: () => styles,
8-
impl: withLit(counterImpl)
8+
impl: lit(counterImpl)
99
})
1010
class Counter extends component<{
1111
reset(): void
@@ -42,7 +42,7 @@ function counterImpl(self: Counter) {
4242
@elem({
4343
tag: 'x-counter-demo',
4444
styles: () => styles,
45-
impl: withLit(counterDemo)
45+
impl: lit(counterDemo)
4646
})
4747
class CounterDemo extends component() {}
4848

0 commit comments

Comments
 (0)