diff --git a/.eslintrc.json b/.eslintrc.json index 80e2c496..295962a4 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -51,6 +51,7 @@ } } ], + "lit/attribute-value-entities": "off", "@typescript-eslint/prefer-string-starts-ends-with": "off", "@typescript-eslint/no-dynamic-delete": "off", "@typescript-eslint/no-non-null-assertion": "off", diff --git a/demo/font/index.html b/demo/font/index.html index 8dd192e8..ce6ff3ce 100644 --- a/demo/font/index.html +++ b/demo/font/index.html @@ -1,4 +1,4 @@ - + diff --git a/demo/font/simple.html b/demo/font/simple.html index 7e37cf28..9e6c73c5 100644 --- a/demo/font/simple.html +++ b/demo/font/simple.html @@ -1,4 +1,4 @@ - + diff --git a/demo/i18n/i18n.ts b/demo/i18n/i18n.ts index 6ba0e51d..19c227c2 100644 --- a/demo/i18n/i18n.ts +++ b/demo/i18n/i18n.ts @@ -17,11 +17,14 @@ l10n.setResourceLoader((locale) => { code: locale.language === 'fa' ? 'fa-IR' : 'en-US', rev: 2, }, - data: locale.language === 'fa' ? { - 'hi': 'سلام', - } : { - 'hi': 'hello', - }, + data: + locale.language === 'fa' + ? { + hi: 'سلام', + } + : { + hi: 'hello', + }, }; }); diff --git a/demo/icon/index.html b/demo/icon/index.html index 36ece63b..b3b888b7 100644 --- a/demo/icon/index.html +++ b/demo/icon/index.html @@ -18,7 +18,9 @@ alwatr-icon { font-size: 2em; - transition: font-size 0.5s, color 0.5s; + transition: + font-size 0.5s, + color 0.5s; margin: 0.3em; } alwatr-icon:hover { diff --git a/demo/tsconfig.json b/demo/tsconfig.json index c6dc88aa..a9789718 100644 --- a/demo/tsconfig.json +++ b/demo/tsconfig.json @@ -9,9 +9,5 @@ "include": ["**/*.ts"], "exclude": ["*.d.ts", "node_modules"], - "references": [ - {"path": "../packages/router"}, - {"path": "../packages/icon"}, - {"path": "../packages/i18n"} - ] + "references": [{"path": "../packages/router"}, {"path": "../packages/icon"}, {"path": "../packages/i18n"}] } diff --git a/index.html b/index.html index bd5cf0f4..aeacc29d 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + diff --git a/packages/demo-pwa/esbuild.mjs b/packages/demo-pwa/esbuild.mjs index bf50f1ec..f2e4a756 100755 --- a/packages/demo-pwa/esbuild.mjs +++ b/packages/demo-pwa/esbuild.mjs @@ -84,12 +84,7 @@ const esbuildContext = await esbuild.context({ plugins: [ postCssPlugin({ - plugins: [ - postcssImport, - postcssNesting, - postcssTailwind, - postcssPresetEnv, - ], + plugins: [postcssImport, postcssNesting, postcssTailwind, postcssPresetEnv], }), ], @@ -111,12 +106,12 @@ async function makeHtml() { const outFiles = Object.keys(metafile.outputs); const jsFilename = outFiles - .find((filename) => filename.includes(srcFilename) && filename.endsWith('.js')) - .substring(outDir.length + 1); + .find((filename) => filename.includes(srcFilename) && filename.endsWith('.js')) + .substring(outDir.length + 1); const cssFilename = outFiles - .find((filename) => filename.includes(srcFilename) && filename.endsWith('.css')) - .substring(outDir.length + 1); + .find((filename) => filename.includes(srcFilename) && filename.endsWith('.css')) + .substring(outDir.length + 1); logger.logProperty?.('jsFilename', jsFilename); logger.logProperty?.('cssFilename', cssFilename); @@ -131,9 +126,7 @@ async function makeHtml() { throw new Error('css_filename_not_found'); } - htmlContent = htmlContent - .replaceAll(`${srcFilename}.css`, cssFilename) - .replaceAll(`${srcFilename}.js`, jsFilename); + htmlContent = htmlContent.replaceAll(`${srcFilename}.css`, cssFilename).replaceAll(`${srcFilename}.js`, jsFilename); await copyPromise; // wait to cp done await fs.writeFile(`${outDir}/index.html`, htmlContent, {encoding: 'utf-8', flag: 'w'}); @@ -147,9 +140,7 @@ async function buildServiceWorker() { globDirectory: `${outDir}/`, clientsClaim: true, skipWaiting: true, - globPatterns: [ - '**/*.{js,css,json,png,svg,ico,webp,woff2,html}', - ], + globPatterns: ['**/*.{js,css,json,png,svg,ico,webp,woff2,html}'], }); logger.logOther?.('serviceWorkerPath', build); @@ -157,12 +148,10 @@ async function buildServiceWorker() { if (watchMode) { esbuildContext.watch(); -} -else { +} else { await makeHtml(); esbuildContext.dispose(); - if (debugMode) { console.log(await esbuild.analyzeMetafile((await esBuildPromise).metafile)); } diff --git a/packages/demo-pwa/res/service-worker.js b/packages/demo-pwa/res/service-worker.js index 64a5d005..a1c4dcc0 100644 --- a/packages/demo-pwa/res/service-worker.js +++ b/packages/demo-pwa/res/service-worker.js @@ -1 +1 @@ -console.log('Service worker not build in development mode.') +console.log('Service worker not build in development mode.'); diff --git a/packages/demo-pwa/src/share/app-navigation-context.ts b/packages/demo-pwa/src/share/app-navigation-context.ts index ccb42d67..2c24355c 100644 --- a/packages/demo-pwa/src/share/app-navigation-context.ts +++ b/packages/demo-pwa/src/share/app-navigation-context.ts @@ -52,6 +52,24 @@ appNavigationContext.setValue({ topAppBarContext.setValue({ title: 'الوتر دمو', - startIcon: {svg: icons.person, onClick: () => {console.log('`startIcon` clicked');}}, - endIconList: [{svg: icons.refresh, onClick: () => {console.log('`refreshIcon` clicked');}}, {svg: icons.home, onClick: () => {console.log('`homeIcon` clicked');}}], + startIcon: { + svg: icons.person, + onClick: () => { + console.log('`startIcon` clicked'); + }, + }, + endIconList: [ + { + svg: icons.refresh, + onClick: () => { + console.log('`refreshIcon` clicked'); + }, + }, + { + svg: icons.home, + onClick: () => { + console.log('`homeIcon` clicked'); + }, + }, + ], }); diff --git a/packages/demo-pwa/src/ui/alwatr-pwa.ts b/packages/demo-pwa/src/ui/alwatr-pwa.ts index 2dd30e5e..dd5f45de 100644 --- a/packages/demo-pwa/src/ui/alwatr-pwa.ts +++ b/packages/demo-pwa/src/ui/alwatr-pwa.ts @@ -14,13 +14,12 @@ export type PageName = 'home' | 'favorites' | 'contact' | 'other' | '_404'; appLogger.logModule?.('alwatr-pwa'); - export class AlwatrPwaDirective extends AlwatrDynamicDirective { constructor(partInfo: PartInfo) { super(partInfo, ''); } - * render(): unknown { + *render(): unknown { this._logger.logMethod?.('render'); yield this._renderTopAppBar(); @@ -33,15 +32,21 @@ export class AlwatrPwaDirective extends AlwatrDynamicDirective { } protected _renderNavigationBar(): unknown { - return alwatrObserve(appNavigationContext, (content: AppNavigationContext) => alwatrNavigationBar(content.navigationBar)); + return alwatrObserve(appNavigationContext, (content: AppNavigationContext) => + alwatrNavigationBar(content.navigationBar), + ); } protected _renderNavigationDrawer(): unknown { - return alwatrObserve(appNavigationContext, (content: AppNavigationContext) => alwatrNavigationDrawer(content.navigationDrawer)); + return alwatrObserve(appNavigationContext, (content: AppNavigationContext) => + alwatrNavigationDrawer(content.navigationDrawer), + ); } protected _renderNavigationRail(): unknown { - return alwatrObserve(appNavigationContext, (context: AppNavigationContext) => alwatrNavigationRail(context.navigationRail)); + return alwatrObserve(appNavigationContext, (context: AppNavigationContext) => + alwatrNavigationRail(context.navigationRail), + ); } protected _renderTopAppBar(): unknown { @@ -50,15 +55,17 @@ export class AlwatrPwaDirective extends AlwatrDynamicDirective { protected _renderContent(): unknown { return alwatrObserve(router, (route: RouteContext) => { - const page = route.sectionList[0] as PageName ?? 'home'; - return cache(renderState(page, { - home: () => html`

home2...

`, - favorites: () => html`${alwatrPageTest(page)}`, - other: () => html`${alwatrPageTest(page)}`, - contact: () => html`

call...

`, - _404: () => html`

404!

`, - _default: '_404', - })); + const page = (route.sectionList[0] as PageName) ?? 'home'; + return cache( + renderState(page, { + home: () => html`

home2...

`, + favorites: () => html`${alwatrPageTest(page)}`, + other: () => html`${alwatrPageTest(page)}`, + contact: () => html`

call...

`, + _404: () => html`

404!

`, + _default: '_404', + }), + ); }); } } diff --git a/packages/demo-pwa/src/ui/button.ts b/packages/demo-pwa/src/ui/button.ts index c307bbcc..b0e3a958 100644 --- a/packages/demo-pwa/src/ui/button.ts +++ b/packages/demo-pwa/src/ui/button.ts @@ -1,14 +1,14 @@ import {AlwatrDynamicDirective, classMap, directive, html, type PartInfo} from '@alwatr/fract'; export interface ButtonOptions { - /** + /** * Label. */ - label: string, + label: string; - disabled?: boolean; + disabled?: boolean; - extendClass?: string + extendClass?: string; } export class AlwatrButtonDirective extends AlwatrDynamicDirective { @@ -19,10 +19,14 @@ export class AlwatrButtonDirective extends AlwatrDynamicDirective { render(options: ButtonOptions): unknown { this._logger.logMethodArgs?.('render', options); return html``; + class="${classMap({ + 'opacity-25 pointer-events-none': options.disabled === true, + })} inline-flex select-none items-center justify-center rounded-lg bg-primary bg-opacity-90 px-5 + py-3 text-center text-base font-medium text-onPrimary hover:bg-opacity-100 + active:bg-opacity-95" + > + ${options.label} + `; } } diff --git a/packages/demo-pwa/tailwind.config.js b/packages/demo-pwa/tailwind.config.js index 9c7188e7..5c32f898 100644 --- a/packages/demo-pwa/tailwind.config.js +++ b/packages/demo-pwa/tailwind.config.js @@ -1,3 +1,3 @@ -import {tailwindConfig} from '@alwatr/style' +import {tailwindConfig} from '@alwatr/style'; export default tailwindConfig; diff --git a/packages/demo-pwa/tsconfig.json b/packages/demo-pwa/tsconfig.json index c339e51b..813ee1b8 100644 --- a/packages/demo-pwa/tsconfig.json +++ b/packages/demo-pwa/tsconfig.json @@ -11,7 +11,7 @@ "name": "ts-lit-plugin", "strict": true } - ], + ] }, "include": ["src/**/*.ts"], diff --git a/packages/demo-pwa/web-dev-server.config.js b/packages/demo-pwa/web-dev-server.config.js index 9c0815c2..ad4cf39a 100644 --- a/packages/demo-pwa/web-dev-server.config.js +++ b/packages/demo-pwa/web-dev-server.config.js @@ -11,17 +11,15 @@ const config = { rootDir: 'dist', appIndex: 'index.html', plugins: [], - middleware: [(context, next) => { - // if file not found, return app index.html - if (!( - context.url === '/' || - context.url.startsWith('/__w') || - existsSync(config.rootDir + context.url) - )) { - context.url = config.appIndex; - } - return next(); - }], + middleware: [ + (context, next) => { + // if file not found, return app index.html + if (!(context.url === '/' || context.url.startsWith('/__w') || existsSync(config.rootDir + context.url))) { + context.url = config.appIndex; + } + return next(); + }, + ], }; export default config; diff --git a/packages/font/CHANGELOG.md b/packages/font/CHANGELOG.md index 3ec49f9b..d7a72326 100644 --- a/packages/font/CHANGELOG.md +++ b/packages/font/CHANGELOG.md @@ -17,7 +17,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Performance Improvements -* **pwa:** optimize first load and rendering ([343d757](https://github.com/AliMD/fract/commit/343d757eefab6572df54fb4f7624698e9a9f9e11)) +- **pwa:** optimize first load and rendering ([343d757](https://github.com/AliMD/fract/commit/343d757eefab6572df54fb4f7624698e9a9f9e11)) # 0.30.0 (2023-03-06) @@ -29,13 +29,13 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Features -* new ui design system ([8c9c8ba](https://github.com/AliMD/fract/commit/8c9c8ba29c477838f3e7034b902f4e0dafabd17c)) +- new ui design system ([8c9c8ba](https://github.com/AliMD/fract/commit/8c9c8ba29c477838f3e7034b902f4e0dafabd17c)) # 0.26.0 (2022-12-22) ### Bug Fixes -* **packages/*:** package path in refrences ([841d86d](https://github.com/AliMD/fract/commit/841d86dc2555fdc86a950b490ea2eb9fffe4df2d)) +- **packages/\*:** package path in refrences ([841d86d](https://github.com/AliMD/fract/commit/841d86dc2555fdc86a950b490ea2eb9fffe4df2d)) # [1.0.0](https://github.com/AliMD/fract/compare/v0.32.0...v1.0.0) (2023-06-14) diff --git a/packages/font/README.md b/packages/font/README.md index f6c9c590..1ea1753f 100644 --- a/packages/font/README.md +++ b/packages/font/README.md @@ -34,7 +34,11 @@ Insert these lines inside `` tag. - + ( - items: Iterable | undefined, - f: (value: T) => unknown, - _this?: unknown, - loading?: () => unknown, + items: Iterable | undefined, + f: (value: T) => unknown, + _this?: unknown, + loading?: () => unknown, ): unknown { if (items === undefined) { return loading?.() ?? nothing; @@ -46,10 +46,10 @@ export function* map( * ``` */ export function* mapObject( - items: Record | undefined | null, - f: (value: T, key: string) => unknown, - _this?: unknown, - loading?: () => unknown, + items: Record | undefined | null, + f: (value: T, key: string) => unknown, + _this?: unknown, + loading?: () => unknown, ): unknown { if (items === undefined) { return loading?.() ?? nothing; diff --git a/packages/fract/src/directives/observe.ts b/packages/fract/src/directives/observe.ts index f7a3a321..69815541 100644 --- a/packages/fract/src/directives/observe.ts +++ b/packages/fract/src/directives/observe.ts @@ -1,4 +1,3 @@ - import {AlwatrDynamicDirective} from '../dynamic-directive.js'; import {directive, noChange, type PartInfo} from '../lit-html.js'; @@ -35,9 +34,12 @@ class AlwatrObserveDirective> exten */ subscribe(observable: T): void { this._logger.logMethod?.('subscribe'); - this.unsubscribe = observable.subscribe((v) => { - this.setValue(this._$render!(v)); - }, {receivePrevious: true}).unsubscribe; + this.unsubscribe = observable.subscribe( + (v) => { + this.setValue(this._$render!(v)); + }, + {receivePrevious: true}, + ).unsubscribe; } // When the directive is disconnected from the DOM, unsubscribe to ensure diff --git a/packages/i18n/src/l10n.ts b/packages/i18n/src/l10n.ts index f2397574..ae1771f4 100644 --- a/packages/i18n/src/l10n.ts +++ b/packages/i18n/src/l10n.ts @@ -70,13 +70,13 @@ export class AlwatrL10n extends AlwatrObservable { if (this._resource?.meta.code === locale.code) { this._logger.incident?.( - '_loadResource', - 'load_skipped', - 'Request l18e (LocalizationResource) is same as active l18n', - { - request: locale.code, - active: this._resource.meta.code, - }, + '_loadResource', + 'load_skipped', + 'Request l18e (LocalizationResource) is same as active l18n', + { + request: locale.code, + active: this._resource.meta.code, + }, ); return; } @@ -84,20 +84,16 @@ export class AlwatrL10n extends AlwatrObservable { try { const resource = await this._resourceLoader(locale); if (resource.meta?.code !== locale.code) { - this._logger.error( - '_loadResource', - 'invalid_localization', - { - request: locale.code, - active: resource.meta.code, - }, - ); + this._logger.error('_loadResource', 'invalid_localization', { + request: locale.code, + active: resource.meta.code, + }); } - else { + else { this._resource = resource; } } - catch (err) { + catch (err) { this._logger.error('_loadResource', 'loader_function_error', err); } } @@ -166,9 +162,9 @@ export class AlwatrL10n extends AlwatrObservable { } relativeTime( - date: number | Date, - from: number | Date = Date.now(), - options: Intl.RelativeTimeFormatOptions = {numeric: 'auto', style: 'narrow'}, + date: number | Date, + from: number | Date = Date.now(), + options: Intl.RelativeTimeFormatOptions = {numeric: 'auto', style: 'narrow'}, ): string { this._logger.logMethodArgs?.('relativeTime', {date, from, options}); @@ -243,9 +239,9 @@ export class AlwatrL10n extends AlwatrObservable { if (this._resourceLoader !== undefined) { this._logger.accident( - 'setResourceLoader', - 'resource_loader_exist', - 'Multi l10n resource loader register, the previous one was removed to avoid errors.', + 'setResourceLoader', + 'resource_loader_exist', + 'Multi l10n resource loader register, the previous one was removed to avoid errors.', ); } diff --git a/packages/i18n/src/type.ts b/packages/i18n/src/type.ts index 94e89807..ab7ad590 100644 --- a/packages/i18n/src/type.ts +++ b/packages/i18n/src/type.ts @@ -2,10 +2,13 @@ import type {AlwatrServiceResponseSuccessWithMeta, MaybePromise} from '@alwatr/t export type LocaleCode = `${Lowercase}-${Uppercase}`; -export type L10nResource = AlwatrServiceResponseSuccessWithMeta, { - code: LocaleCode; - rev: number; -}>; +export type L10nResource = AlwatrServiceResponseSuccessWithMeta< + Record, + { + code: LocaleCode; + rev: number; + } +>; export interface Locale { /** @@ -24,4 +27,4 @@ export interface Locale { direction: 'rtl' | 'ltr'; } -export type L10nResourceLoader = (locale: Locale) => MaybePromise +export type L10nResourceLoader = (locale: Locale) => MaybePromise; diff --git a/packages/icon/CHANGELOG.md b/packages/icon/CHANGELOG.md index 5c8185f3..7fa4d70d 100644 --- a/packages/icon/CHANGELOG.md +++ b/packages/icon/CHANGELOG.md @@ -15,11 +15,11 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Bug Fixes -* **icon:** scg export ([c50e413](https://github.com/AliMD/fract/commit/c50e4139f566afa9ec791eea81f2d3403561d481)) +- **icon:** scg export ([c50e413](https://github.com/AliMD/fract/commit/c50e4139f566afa9ec791eea81f2d3403561d481)) ### Features -* **icon:** import svg type ([ca659e4](https://github.com/AliMD/fract/commit/ca659e43a485488e5e8ea177f7d955054e69682e)) +- **icon:** import svg type ([ca659e4](https://github.com/AliMD/fract/commit/ca659e43a485488e5e8ea177f7d955054e69682e)) # 1.0.0 (2023-06-14) @@ -29,64 +29,64 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Bug Fixes -* **icon:** 404 cache issue ([5fbc7d8](https://github.com/AliMD/fract/commit/5fbc7d87dcb6a82e8cb72e689730db1660c7aa58)) -* **icon:** build issue ([42d3914](https://github.com/AliMD/fract/commit/42d39140ca43602c8e30d676bcd9af4b4f62998e)) -* **icon:** render delay on icon change ([9b4bafb](https://github.com/AliMD/fract/commit/9b4bafbb23c613c32c35ae3a0c83c1fdd38b8ac4)) -* new logger api ([9d83a7d](https://github.com/AliMD/fract/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300)) +- **icon:** 404 cache issue ([5fbc7d8](https://github.com/AliMD/fract/commit/5fbc7d87dcb6a82e8cb72e689730db1660c7aa58)) +- **icon:** build issue ([42d3914](https://github.com/AliMD/fract/commit/42d39140ca43602c8e30d676bcd9af4b4f62998e)) +- **icon:** render delay on icon change ([9b4bafb](https://github.com/AliMD/fract/commit/9b4bafbb23c613c32c35ae3a0c83c1fdd38b8ac4)) +- new logger api ([9d83a7d](https://github.com/AliMD/fract/commit/9d83a7dc5c103bc3bb4282dacfd85fa998915300)) ### Features -* **packages/icon:** svg property ([7815917](https://github.com/AliMD/fract/commit/7815917546be016387d9c0a30a60821d541a0bce)) +- **packages/icon:** svg property ([7815917](https://github.com/AliMD/fract/commit/7815917546be016387d9c0a30a60821d541a0bce)) # 0.30.0 (2023-03-06) ### Bug Fixes -* **icon:** fill color ([fa1c280](https://github.com/AliMD/fract/commit/fa1c280e0385f3acbf456204f47d6e627371e130)) -* **icon:** fix all svg currentcolor ([f06c795](https://github.com/AliMD/fract/commit/f06c795f36c5b05c8c2e17e8b80e1e5dd72613c6)) -* **icon:** vertical-align style ([d449498](https://github.com/AliMD/fract/commit/d4494981d00a46aa512b6d892286f9f24aeaa0ff)) +- **icon:** fill color ([fa1c280](https://github.com/AliMD/fract/commit/fa1c280e0385f3acbf456204f47d6e627371e130)) +- **icon:** fix all svg currentcolor ([f06c795](https://github.com/AliMD/fract/commit/f06c795f36c5b05c8c2e17e8b80e1e5dd72613c6)) +- **icon:** vertical-align style ([d449498](https://github.com/AliMD/fract/commit/d4494981d00a46aa512b6d892286f9f24aeaa0ff)) ### Features -* **icon:** add toman icon ;) ([fbebf5b](https://github.com/AliMD/fract/commit/fbebf5b5051fc92c634455bb1ba6e5447720bbe1)) -* **icon:** update and compress all icons ([8ded731](https://github.com/AliMD/fract/commit/8ded731ef6da34a1f66d1fce80a92c77929b8144)) +- **icon:** add toman icon ;) ([fbebf5b](https://github.com/AliMD/fract/commit/fbebf5b5051fc92c634455bb1ba6e5447720bbe1)) +- **icon:** update and compress all icons ([8ded731](https://github.com/AliMD/fract/commit/8ded731ef6da34a1f66d1fce80a92c77929b8144)) # 0.29.0 (2023-02-10) ### Bug Fixes -* compatible with new element mixins ([d26e827](https://github.com/AliMD/fract/commit/d26e82731b2ae9c2483ba931c450c5a604633122)) +- compatible with new element mixins ([d26e827](https://github.com/AliMD/fract/commit/d26e82731b2ae9c2483ba931c450c5a604633122)) ### Features -* debug all renders ([73a0d34](https://github.com/AliMD/fract/commit/73a0d3483b7c42ab0a6247721073b81a01f7b258)) -* **icon:** enhance preload, support `icon-url-prefix` context signal ([b5a277c](https://github.com/AliMD/fract/commit/b5a277c1403177ba14de9434d908df0f4000a5a6)) +- debug all renders ([73a0d34](https://github.com/AliMD/fract/commit/73a0d3483b7c42ab0a6247721073b81a01f7b258)) +- **icon:** enhance preload, support `icon-url-prefix` context signal ([b5a277c](https://github.com/AliMD/fract/commit/b5a277c1403177ba14de9434d908df0f4000a5a6)) # 0.28.0 (2023-01-20) ### Bug Fixes -* **icon:** attr name ([92492bd](https://github.com/AliMD/fract/commit/92492bde7595a272ce38476732ee32ddc758d9d2)) -* **icon:** fetch timeout ([46ee93e](https://github.com/AliMD/fract/commit/46ee93e2a3b50ec5b087dd86a84ebee37a9695c5)) +- **icon:** attr name ([92492bd](https://github.com/AliMD/fract/commit/92492bde7595a272ce38476732ee32ddc758d9d2)) +- **icon:** fetch timeout ([46ee93e](https://github.com/AliMD/fract/commit/46ee93e2a3b50ec5b087dd86a84ebee37a9695c5)) # 0.27.0 (2022-12-29) ### Bug Fixes -* **icon:** DirectionMixin! ([61b369e](https://github.com/AliMD/fract/commit/61b369e4a058d38df79f281dc84193129a12b4a5)) -* **icon:** PropertyValues ([ccba95a](https://github.com/AliMD/fract/commit/ccba95a7a716773c57474d8002320304e772e3cc)) -* **icon:** reflect flip-rtl errro ([b2359e6](https://github.com/AliMD/fract/commit/b2359e64c2ef9c381274fe91cc038593c0603ee9)) +- **icon:** DirectionMixin! ([61b369e](https://github.com/AliMD/fract/commit/61b369e4a058d38df79f281dc84193129a12b4a5)) +- **icon:** PropertyValues ([ccba95a](https://github.com/AliMD/fract/commit/ccba95a7a716773c57474d8002320304e772e3cc)) +- **icon:** reflect flip-rtl errro ([b2359e6](https://github.com/AliMD/fract/commit/b2359e64c2ef9c381274fe91cc038593c0603ee9)) ### Features -* **element:** export from lit ([21f15d8](https://github.com/AliMD/fract/commit/21f15d86319a40fab02d86f24a1451c056f36a7c)) -* **packages/icon:** localize mixin ([d91fe98](https://github.com/AliMD/fract/commit/d91fe98c3d9df8e30e5159ab93bb8018ef6d4c90)) +- **element:** export from lit ([21f15d8](https://github.com/AliMD/fract/commit/21f15d86319a40fab02d86f24a1451c056f36a7c)) +- **packages/icon:** localize mixin ([d91fe98](https://github.com/AliMD/fract/commit/d91fe98c3d9df8e30e5159ab93bb8018ef6d4c90)) # 0.26.0 (2022-12-22) ### Bug Fixes -* **packages/*:** package path ([21dc99f](https://github.com/AliMD/fract/commit/21dc99fddb55b085a3d79b8595ae4630520bc43e)) +- **packages/\*:** package path ([21dc99f](https://github.com/AliMD/fract/commit/21dc99fddb55b085a3d79b8595ae4630520bc43e)) # [1.0.0](https://github.com/AliMD/fract/compare/v0.32.0...v1.0.0) (2023-06-14) diff --git a/packages/icon/src/icon.ts b/packages/icon/src/icon.ts index 626c1b18..0f49a1ab 100644 --- a/packages/icon/src/icon.ts +++ b/packages/icon/src/icon.ts @@ -64,7 +64,7 @@ export class AlwatrIcon extends DirectionMixin(SignalMixin(AlwatrBaseElement)) { `; @property({attribute: false}) - svg: HTMLTemplateResult | null = null; + svg: HTMLTemplateResult | null = null; private _name = ''; set name(val: string) { diff --git a/packages/icon/tsconfig.json b/packages/icon/tsconfig.json index 1226f19b..2ba23dfd 100644 --- a/packages/icon/tsconfig.json +++ b/packages/icon/tsconfig.json @@ -10,7 +10,7 @@ "name": "ts-lit-plugin", "strict": true } - ], + ] }, "include": ["src/**/*.ts"], diff --git a/packages/playground/app.html b/packages/playground/app.html index 4eee20ba..54babbe1 100644 --- a/packages/playground/app.html +++ b/packages/playground/app.html @@ -82,77 +82,77 @@

سربرگ

+ id="navigationRail" + class="fixed bottom-0 left-0 top-0 z-modal w-20 translate-x-full transform-gpu overflow-clip rounded-e-2xl bg-surfaceContainerLow transition-transform duration-300 ease-in will-change-transform elevation-1 rtl:left-auto rtl:right-0 medium:translate-x-0 medium:rounded-none medium:transition-none medium:will-change-auto medium:elevation-0 extended:hidden [&.opened]:translate-x-0 [&.opened]:ease-out" + > + +
-
diff --git a/packages/playground/navigation-bar.html b/packages/playground/navigation-bar.html index 082fbc51..1b3d01aa 100644 --- a/packages/playground/navigation-bar.html +++ b/packages/playground/navigation-bar.html @@ -33,7 +33,7 @@ >
{ * ``` */ redirect( - route: string | Partial | undefined, - pushState: PushState = true, - keepSectionSlice = 0, + route: string | Partial | undefined, + pushState: PushState = true, + keepSectionSlice = 0, ): void { if (route == null) return; this._logger.logMethodArgs?.('redirect', route); @@ -100,7 +100,7 @@ export class AlwatrRouter extends AlwatrObservable { if (pushState === 'replace') { history.replaceState(null, '', url); } - else { + else { history.pushState(null, '', url); } } @@ -112,9 +112,9 @@ export class AlwatrRouter extends AlwatrObservable { this._logger.logMethod?.('makeRouteContext'); const sectionList = location.pathname - .split('/') - .map(this._decodeURIComponent) // decode must be after split because encoded '/' maybe include in values. - .filter((section) => section.trim() !== ''); + .split('/') + .map(this._decodeURIComponent) // decode must be after split because encoded '/' maybe include in values. + .filter((section) => section.trim() !== ''); const queryParamList = this._parseQueryParamString(location.search); @@ -172,7 +172,7 @@ export class AlwatrRouter extends AlwatrObservable { try { return decodeURIComponent(val); } - catch (err) { + catch (err) { return val; } } @@ -196,7 +196,7 @@ export class AlwatrRouter extends AlwatrObservable { if (enable) { globalThis.addEventListener('popstate', this._popstateHandler); } - else { + else { globalThis.removeEventListener('popstate', this._popstateHandler); } this._$popstateTrigger = enable; @@ -283,7 +283,7 @@ export class AlwatrRouter extends AlwatrObservable { if (enable) { window.document.addEventListener('click', this._clickHandler); } - else { + else { window.document.removeEventListener('click', this._clickHandler); } this._$clickTrigger = enable; diff --git a/packages/style/CHANGELOG.md b/packages/style/CHANGELOG.md index e91d3023..0387b46c 100644 --- a/packages/style/CHANGELOG.md +++ b/packages/style/CHANGELOG.md @@ -11,20 +11,20 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline ### Bug Fixes -* **style:** change backdrop to scrim ([e41d771](https://github.com/AliMD/fract/commit/e41d771082933b39035bb91b1fbc6486f4d803a7)) -* **style:** import type issue ([19fc273](https://github.com/AliMD/fract/commit/19fc273310c2e32beb1d48224bcebb9f1dd75153)) -* **style:** outline colors ([e948464](https://github.com/AliMD/fract/commit/e9484640b2b11ad2e010fcad2b729efb5e0eeb39)) -* **style:** typography fontWeight ([74fc62b](https://github.com/AliMD/fract/commit/74fc62b6bbb009090c58bde3db9bfa841fa0131c)) +- **style:** change backdrop to scrim ([e41d771](https://github.com/AliMD/fract/commit/e41d771082933b39035bb91b1fbc6486f4d803a7)) +- **style:** import type issue ([19fc273](https://github.com/AliMD/fract/commit/19fc273310c2e32beb1d48224bcebb9f1dd75153)) +- **style:** outline colors ([e948464](https://github.com/AliMD/fract/commit/e9484640b2b11ad2e010fcad2b729efb5e0eeb39)) +- **style:** typography fontWeight ([74fc62b](https://github.com/AliMD/fract/commit/74fc62b6bbb009090c58bde3db9bfa841fa0131c)) ### Features -* **style:** add `stateLayerPlugin` ([db076dd](https://github.com/AliMD/fract/commit/db076dd5f3af851e5eac3e1c68d7b1e2cb7cbc0d)) -* **style:** add new color h260 ([c128609](https://github.com/AliMD/fract/commit/c128609963df0aba508f239799ef8c52ea066c40)) -* **style:** add our z-index ([af5c97f](https://github.com/AliMD/fract/commit/af5c97f6f9fb439ec414e903497f416ddd2a76de)) -* **style:** add ui-kit to tailwind content ([8aeb3c9](https://github.com/AliMD/fract/commit/8aeb3c90df1e87c1d7e128a0b50662727417e679)) -* **style:** elevation util ([29412d6](https://github.com/AliMD/fract/commit/29412d6541ce63e2dbf4078a81b308c1b7a6020c)) -* **style:** enhance stateHover, stateActive ([0aa3ee1](https://github.com/AliMD/fract/commit/0aa3ee1ed13183921aed058502fd961f2902e676)) -* **style:** new package for alwatr 2 css system ([9b9c791](https://github.com/AliMD/fract/commit/9b9c791570f23ec14d724528b5173cfe93a5e46b)) -* **style:** screen breakpoints ([839b149](https://github.com/AliMD/fract/commit/839b14951665fbb109a46713d528e0070da46e4e)) -* **style:** update material 3 colors ([7d8d755](https://github.com/AliMD/fract/commit/7d8d75557d927d045889a3463562e50093edbbdc)) -* update postcss-preset-env and browserlist ([b83fcb8](https://github.com/AliMD/fract/commit/b83fcb8e7d3f9cfa41f6e846444591642d7ebe6c)) +- **style:** add `stateLayerPlugin` ([db076dd](https://github.com/AliMD/fract/commit/db076dd5f3af851e5eac3e1c68d7b1e2cb7cbc0d)) +- **style:** add new color h260 ([c128609](https://github.com/AliMD/fract/commit/c128609963df0aba508f239799ef8c52ea066c40)) +- **style:** add our z-index ([af5c97f](https://github.com/AliMD/fract/commit/af5c97f6f9fb439ec414e903497f416ddd2a76de)) +- **style:** add ui-kit to tailwind content ([8aeb3c9](https://github.com/AliMD/fract/commit/8aeb3c90df1e87c1d7e128a0b50662727417e679)) +- **style:** elevation util ([29412d6](https://github.com/AliMD/fract/commit/29412d6541ce63e2dbf4078a81b308c1b7a6020c)) +- **style:** enhance stateHover, stateActive ([0aa3ee1](https://github.com/AliMD/fract/commit/0aa3ee1ed13183921aed058502fd961f2902e676)) +- **style:** new package for alwatr 2 css system ([9b9c791](https://github.com/AliMD/fract/commit/9b9c791570f23ec14d724528b5173cfe93a5e46b)) +- **style:** screen breakpoints ([839b149](https://github.com/AliMD/fract/commit/839b14951665fbb109a46713d528e0070da46e4e)) +- **style:** update material 3 colors ([7d8d755](https://github.com/AliMD/fract/commit/7d8d75557d927d045889a3463562e50093edbbdc)) +- update postcss-preset-env and browserlist ([b83fcb8](https://github.com/AliMD/fract/commit/b83fcb8e7d3f9cfa41f6e846444591642d7ebe6c)) diff --git a/packages/style/lib/state-layer.ts b/packages/style/lib/state-layer.ts index 6c37ce77..9fef9202 100644 --- a/packages/style/lib/state-layer.ts +++ b/packages/style/lib/state-layer.ts @@ -11,50 +11,50 @@ const stateOpacity = { export const stateLayerPlugin = plugin(({matchUtilities, theme}) => { matchUtilities( - { - state: (value) => { - if (typeof value !== 'function') return null; - const makeColor = value as unknown as (options: {opacityValue: number}) => string; - const colors = { - base: makeColor({opacityValue: 1}), - hover: makeColor({opacityValue: stateOpacity.hover}), - focus: makeColor({opacityValue: stateOpacity.focus}), - pressed: makeColor({opacityValue: stateOpacity.pressed}), - }; - return { - 'color': colors.base, - '&:hover': { - backgroundImage: `linear-gradient(${colors.hover}, ${colors.hover})`, - }, - '&:active': { - backgroundImage: `linear-gradient(${colors.pressed}, ${colors.pressed})`, - }, - '&:focus:not(:hover), &:focus-within:not(:hover)': { - 'backgroundImage': `linear-gradient(${colors.focus}, ${colors.focus})`, - }, - }; - }, - stateHover: (value) => { - if (typeof value !== 'function') return null; - const makeColor = value as unknown as (options: {opacityValue: number}) => string; - const color = makeColor({opacityValue: stateOpacity.hover}); - return { - backgroundImage: `linear-gradient(${color}, ${color})`, - }; - }, - stateActive: (value) => { - if (typeof value !== 'function') return null; - const makeColor = value as unknown as (options: {opacityValue: number}) => string; - const color = makeColor({opacityValue: stateOpacity.pressed}); - return { - backgroundImage: `linear-gradient(${color}, ${color})`, - }; - }, + { + state: (value) => { + if (typeof value !== 'function') return null; + const makeColor = value as unknown as (options: {opacityValue: number}) => string; + const colors = { + base: makeColor({opacityValue: 1}), + hover: makeColor({opacityValue: stateOpacity.hover}), + focus: makeColor({opacityValue: stateOpacity.focus}), + pressed: makeColor({opacityValue: stateOpacity.pressed}), + }; + return { + color: colors.base, + '&:hover': { + backgroundImage: `linear-gradient(${colors.hover}, ${colors.hover})`, + }, + '&:active': { + backgroundImage: `linear-gradient(${colors.pressed}, ${colors.pressed})`, + }, + '&:focus:not(:hover), &:focus-within:not(:hover)': { + backgroundImage: `linear-gradient(${colors.focus}, ${colors.focus})`, + }, + }; }, - { - // eslint-disable-next-line @typescript-eslint/no-unused-vars - values: (({DEFAULT: _, ...colors}) => colors)(flattenColorPalette(theme('colors'))), - type: 'color', + stateHover: (value) => { + if (typeof value !== 'function') return null; + const makeColor = value as unknown as (options: {opacityValue: number}) => string; + const color = makeColor({opacityValue: stateOpacity.hover}); + return { + backgroundImage: `linear-gradient(${color}, ${color})`, + }; }, + stateActive: (value) => { + if (typeof value !== 'function') return null; + const makeColor = value as unknown as (options: {opacityValue: number}) => string; + const color = makeColor({opacityValue: stateOpacity.pressed}); + return { + backgroundImage: `linear-gradient(${color}, ${color})`, + }; + }, + }, + { + // eslint-disable-next-line @typescript-eslint/no-unused-vars + values: (({DEFAULT: _, ...colors}) => colors)(flattenColorPalette(theme('colors'))), + type: 'color', + }, ); }); diff --git a/packages/style/lib/z-index.ts b/packages/style/lib/z-index.ts index bafa1abb..27a1089f 100644 --- a/packages/style/lib/z-index.ts +++ b/packages/style/lib/z-index.ts @@ -2,18 +2,18 @@ import type {Config} from 'tailwindcss'; export const zIndexTheme: Config['theme'] = { zIndex: { - 'bottomness': '-900', - 'below': '-1', - 'default': '1', - 'above': '2', - 'dropdown': '100', - 'sticky': '200', - 'fixed': '300', - 'scrim': '400', - 'modal': '500', - 'popover': '600', - 'snackbar': '700', - 'tooltip': '800', - 'topness': '900', + bottomness: '-900', + below: '-1', + default: '1', + above: '2', + dropdown: '100', + sticky: '200', + fixed: '300', + scrim: '400', + modal: '500', + popover: '600', + snackbar: '700', + tooltip: '800', + topness: '900', }, }; diff --git a/packages/style/tsconfig.json b/packages/style/tsconfig.json index beb10a00..5e69b17b 100644 --- a/packages/style/tsconfig.json +++ b/packages/style/tsconfig.json @@ -4,7 +4,7 @@ "composite": true, "tsBuildInfoFile": ".tsbuildinfo", "rootDir": ".", - "outDir": ".", + "outDir": "." }, "include": ["**/*.ts"], diff --git a/packages/ui-kit/fab/extended-fab.ts b/packages/ui-kit/fab/extended-fab.ts index 12c7afcd..51c44b7e 100644 --- a/packages/ui-kit/fab/extended-fab.ts +++ b/packages/ui-kit/fab/extended-fab.ts @@ -20,7 +20,9 @@ export class AlwatrFabExtendedDirective extends AlwatrDirective { gap-2 rounded-2xl bg-primaryContainer px-4 text-labelLarge elevation-3 state-onPrimaryContainer hover:elevation-4 focus:elevation-3 active:elevation-3 [&>.alwatr-icon]:h-6 [&>.alwatr-icon]:w-6" - >${content.label}${content.icon ? icon(content.icon) : nothing} `; + > + ${content.label}${content.icon ? icon(content.icon) : nothing} + `; } } diff --git a/packages/ui-kit/fab/fab.ts b/packages/ui-kit/fab/fab.ts index 6ecbfca9..fd194bd0 100644 --- a/packages/ui-kit/fab/fab.ts +++ b/packages/ui-kit/fab/fab.ts @@ -3,7 +3,7 @@ import {AlwatrDirective, classMap, directive, html, type PartInfo} from '@alwatr import {icon, IconContent} from '../icon/icon.js'; export interface FabContent { - icon: IconContent + icon: IconContent; /** * @defaultValue 'medium' @@ -21,13 +21,14 @@ export class AlwatrFabDirective extends AlwatrDirective { content.type ??= 'medium'; return html` `; diff --git a/packages/ui-kit/icon-button/icon-button.ts b/packages/ui-kit/icon-button/icon-button.ts index 4f680e37..6deae179 100644 --- a/packages/ui-kit/icon-button/icon-button.ts +++ b/packages/ui-kit/icon-button/icon-button.ts @@ -7,4 +7,10 @@ export interface IconButtonContent extends IconContent { disabled?: boolean; } -export const iconButton = (content: IconButtonContent) => html``; +export const iconButton = (content: IconButtonContent) => + html``; diff --git a/packages/ui-kit/icon/icon.ts b/packages/ui-kit/icon/icon.ts index 7155c7e1..04518c82 100644 --- a/packages/ui-kit/icon/icon.ts +++ b/packages/ui-kit/icon/icon.ts @@ -23,13 +23,17 @@ export class IconDirective extends AlwatrDynamicDirective { }); return this._renderSvg(); } - else { + else { return this._renderSvg(content.svg, content.flipIconInRtl ? 'rtl:-scale-x-100' : ''); } } protected _renderSvg(svg?: string, customClass = ''): unknown { - return html`
${svg ? unsafeSVG(svg) : nothing}
`; + return html`
+ ${svg ? unsafeSVG(svg) : nothing} +
`; } } diff --git a/packages/ui-kit/navigation-bar/navigation-bar.ts b/packages/ui-kit/navigation-bar/navigation-bar.ts index 3811c477..97a8e472 100644 --- a/packages/ui-kit/navigation-bar/navigation-bar.ts +++ b/packages/ui-kit/navigation-bar/navigation-bar.ts @@ -5,7 +5,9 @@ import {icon, type IconContent} from '../icon/icon.js'; export interface NavigationBarContent { selected: string; - itemList: Record`; + return html`
+ +
`; } protected _renderNavItems(content: NavigationBarContent): unknown { const navItemList = mapObject(content.itemList, (item, key) => { const _label = item.label ?? l10n.message(item.labelKey); - return html`
${icon(item.icon)}
${when(_label, () => html`
- ${_label}
`)}
`; + >
+ ${icon(item.icon)} +
+ ${when(_label, () => html`
${_label}
`)}`; }); return navItemList; diff --git a/packages/ui-kit/navigation-drawer/navigation-drawer.ts b/packages/ui-kit/navigation-drawer/navigation-drawer.ts index 3b032f38..6fb271e0 100644 --- a/packages/ui-kit/navigation-drawer/navigation-drawer.ts +++ b/packages/ui-kit/navigation-drawer/navigation-drawer.ts @@ -6,7 +6,9 @@ import {icon, IconContent} from '../icon/icon.js'; export interface NavigationDrawerContent { selected: string; title: string; - itemList: Record { const _label = item.label ?? l10n.message(item.labelKey); return html`
  • ${icon(item.icon)}${when(_label, () => html`
    ${_label}
    `)} - ${when(item.badge != null, () => html`
    ${item.badge}
    `)}
  • `; + class="${classMap({ + 'stateActive-onSecondaryContainer text-onSecondaryContainer': content.selected === key, + })} flex h-14 cursor-pointer select-none flex-nowrap items-center + rounded-full px-3 hover:bg-secondaryContainer hover:text-onSecondaryContainer + hover:stateHover-onSecondaryContainer [&>.alwatr-icon]:mx-1 [&>.alwatr-icon]:h-6 + [&>.alwatr-icon]:w-6" + > + ${icon(item.icon)}${when(_label, () => html`
    ${_label}
    `)} + ${when(item.badge != null, () => html`
    ${item.badge}
    `)} + `; }); - return html`
      ${navItemList}
    `; + return html`
      + ${navItemList} +
    `; } } diff --git a/packages/ui-kit/navigation-rail/navigation-rail.ts b/packages/ui-kit/navigation-rail/navigation-rail.ts index 281440da..b2e161da 100644 --- a/packages/ui-kit/navigation-rail/navigation-rail.ts +++ b/packages/ui-kit/navigation-rail/navigation-rail.ts @@ -5,7 +5,9 @@ import {icon, type IconContent} from '../icon/icon.js'; export interface NavigationRailContent { selected: string; - itemList: Record`; + > + + `; } protected _renderNavItemList(content: NavigationRailContent): unknown { const itemList = mapObject(content.itemList, (item, key) => { const _label = item.label ?? l10n.message(item.labelKey); return html`
  • -
    ${icon(item.icon)}
    - ${when(_label, () => html`
    ${_label}
    `)}
  • `; +
    + ${icon(item.icon)} +
    + ${when( + _label, + () => + html`
    + ${_label} +
    `, + )} + `; }); - return html`
      ${itemList}
    `; + return html`
      + ${itemList} +
    `; } } diff --git a/packages/ui-kit/top-app-bar/center-top-app-bar.ts b/packages/ui-kit/top-app-bar/center-top-app-bar.ts index c00f2c74..cd62bb2f 100644 --- a/packages/ui-kit/top-app-bar/center-top-app-bar.ts +++ b/packages/ui-kit/top-app-bar/center-top-app-bar.ts @@ -12,22 +12,25 @@ export interface CenterTopAppBarContent { elevated?: number; } -export const centerTopAppBar = (content: CenterTopAppBarContent) => html`
    +export const centerTopAppBar = (content: CenterTopAppBarContent) => + html`
    ${content.startIcon ? iconButton(content.startIcon) : nothing} -
    ${content.title}
    +
    + ${content.title} +
    ${endIconListTemplate(content.endIconList)} -
    -`; +
    `; export const endIconListTemplate = (iconList?: IconButtonContent[]) => { return iconList?.map((icon) => iconButton(icon)); }; - diff --git a/packages/ui-kit/top-app-bar/large-top-app-bar.ts b/packages/ui-kit/top-app-bar/large-top-app-bar.ts index 1c410de0..13413833 100644 --- a/packages/ui-kit/top-app-bar/large-top-app-bar.ts +++ b/packages/ui-kit/top-app-bar/large-top-app-bar.ts @@ -3,7 +3,10 @@ import {html, nothing} from '@alwatr/fract'; import {endIconListTemplate, type CenterTopAppBarContent} from './center-top-app-bar.js'; import {iconButton} from '../icon-button/icon-button.js'; -export const centerTopAppBar = (content: CenterTopAppBarContent) => html`
    +export const centerTopAppBar = (content: CenterTopAppBarContent) => + html`
    @@ -13,7 +16,9 @@ export const centerTopAppBar = (content: CenterTopAppBarContent) => html`
    --> ${endIconListTemplate(content.endIconList)} -
    ${content.title}
    -
    -`; - +
    +
    ${content.title}
    +
    +
    `; diff --git a/packages/ui-kit/top-app-bar/medium-top-app-bar.ts b/packages/ui-kit/top-app-bar/medium-top-app-bar.ts index d7ac51a5..b37f8d52 100644 --- a/packages/ui-kit/top-app-bar/medium-top-app-bar.ts +++ b/packages/ui-kit/top-app-bar/medium-top-app-bar.ts @@ -3,8 +3,10 @@ import {html, nothing} from '@alwatr/fract'; import {endIconListTemplate, type CenterTopAppBarContent} from './center-top-app-bar.js'; import {iconButton} from '../icon-button/icon-button.js'; - -export const mediumTopAppBar = (content: CenterTopAppBarContent) => html`
    +export const mediumTopAppBar = (content: CenterTopAppBarContent) => + html`
    @@ -14,7 +16,9 @@ export const mediumTopAppBar = (content: CenterTopAppBarContent) => html`
    --> ${endIconListTemplate(content.endIconList)} -
    ${content.title}
    -
    -`; - +
    +
    ${content.title}
    +
    +
    `; diff --git a/packages/ui-kit/tsconfig.json b/packages/ui-kit/tsconfig.json index 02d90cdd..c77c8433 100644 --- a/packages/ui-kit/tsconfig.json +++ b/packages/ui-kit/tsconfig.json @@ -10,12 +10,10 @@ "name": "ts-lit-plugin", "strict": true } - ], + ] }, // files, include and exclude from the inheriting config are always overwritten. "include": ["**/*.ts"], "exclude": [], - "references": [ - {"path": "../fract"}, - ] + "references": [{"path": "../fract"}] } diff --git a/tailwind.config.js b/tailwind.config.js index 9c7188e7..5c32f898 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,3 +1,3 @@ -import {tailwindConfig} from '@alwatr/style' +import {tailwindConfig} from '@alwatr/style'; export default tailwindConfig; diff --git a/tsconfig.json b/tsconfig.json index 6d6d623f..96dd76ed 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -10,7 +10,7 @@ "name": "ts-lit-plugin", "strict": true } - ], + ] }, "files": [], "exclude": [], @@ -25,6 +25,6 @@ {"path": "./packages/demo-pwa"}, // demo - {"path": "./demo"}, + {"path": "./demo"} ] }