diff --git a/.prettierrc.json b/.prettierrc.json index 04f9b30..83311fa 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -2,6 +2,5 @@ "singleQuote": true, "semi": true, "trailingComma": "es5", - "printWidth": 100, - "bracketSameLine": true + "printWidth": 100 } \ No newline at end of file diff --git a/packages/luna-charts/.prettierrc.json b/packages/luna-charts/.prettierrc.json index 7ca3a28..86e01ee 100644 --- a/packages/luna-charts/.prettierrc.json +++ b/packages/luna-charts/.prettierrc.json @@ -1,7 +1,6 @@ { "arrowParens": "avoid", "bracketSpacing": true, - "jsxBracketSameLine": false, "jsxSingleQuote": false, "quoteProps": "consistent", "printWidth": 180, diff --git a/packages/luna-charts/custom-elements.d.ts b/packages/luna-charts/custom-elements.d.ts index 66d9c08..b5bff8f 100644 --- a/packages/luna-charts/custom-elements.d.ts +++ b/packages/luna-charts/custom-elements.d.ts @@ -1,4 +1,3 @@ - /** * This is an autogenerated file created by the Stencil compiler. * DO NOT MODIFY IT MANUALLY @@ -29,7 +28,7 @@ interface ComponentCompilerTypeReference { * - globally * - by importing it into a file (and is defined elsewhere) */ - location: "local" | "global" | "import"; + location: 'local' | 'global' | 'import'; /** * The path to the type reference, if applicable (global types should not need a path associated with them) */ @@ -152,7 +151,7 @@ export interface JsonDocsComponent { /** * The encapsulation strategy for a component */ - encapsulation: "shadow" | "scoped" | "none"; + encapsulation: 'shadow' | 'scoped' | 'none'; /** * The tag name for the component, for use in HTML */ @@ -467,7 +466,7 @@ export interface StyleDoc { * Used to inform Stencil where the start of a new property's description starts (and where the previous description * ends). */ - annotation: "prop"; + annotation: 'prop'; /** * The Stencil style-mode that is associated with this property. */ diff --git a/packages/luna-charts/custom-elements.json b/packages/luna-charts/custom-elements.json index 2d9bbc7..728a56e 100644 --- a/packages/luna-charts/custom-elements.json +++ b/packages/luna-charts/custom-elements.json @@ -1,5 +1,5 @@ { - "timestamp": "2026-09-17T15:31:03", + "timestamp": "2026-10-05T16:30:03", "compiler": { "name": "@stencil/core", "version": "4.44.2", @@ -30,10 +30,10 @@ "docsTags": [ { "name": "default", - "text": "\"Hello World\"" + "text": "'Hello World'" } ], - "default": "\"Hello World\"", + "default": "'Hello World'", "values": [ { "type": "string" @@ -62,5 +62,11 @@ "dependencyGraph": {} } ], - "typeLibrary": {} -} \ No newline at end of file + "typeLibrary": { + "src/types/index.ts::ChartInfo": { + "declaration": "export interface ChartInfo {\n title: string;\n description: string; \n sourceUrl: string; \n}", + "docstring": "", + "path": "src/types/index.ts" + } + } +} diff --git a/packages/luna-charts/src/components.d.ts b/packages/luna-charts/src/components.d.ts index f809239..6a9c473 100644 --- a/packages/luna-charts/src/components.d.ts +++ b/packages/luna-charts/src/components.d.ts @@ -1,50 +1,50 @@ -/* eslint-disable */ /* tslint:disable */ /** * This is an autogenerated file created by the Stencil compiler. * It contains typing information for all components that exist in this project. */ -import { HTMLStencilElement, JSXBase } from "@stencil/core/internal"; +import { HTMLStencilElement, JSXBase } from '@stencil/core/internal'; export namespace Components { - interface BarChart { - /** - * @default "Hello World" - */ - "title": string; - } + interface BarChart { + /** + * @default 'Hello World' + */ + title: string; + } } declare global { - interface HTMLBarChartElement extends Components.BarChart, HTMLStencilElement { - } - var HTMLBarChartElement: { - prototype: HTMLBarChartElement; - new (): HTMLBarChartElement; - }; - interface HTMLElementTagNameMap { - "bar-chart": HTMLBarChartElement; - } + interface HTMLBarChartElement extends Components.BarChart, HTMLStencilElement {} + var HTMLBarChartElement: { + prototype: HTMLBarChartElement; + new (): HTMLBarChartElement; + }; + interface HTMLElementTagNameMap { + 'bar-chart': HTMLBarChartElement; + } } declare namespace LocalJSX { - interface BarChart { - /** - * @default "Hello World" - */ - "title"?: string; - } + interface BarChart { + /** + * @default 'Hello World' + */ + title?: string; + } - interface BarChartAttributes { - "title": string; - } + interface BarChartAttributes { + title: string; + } - interface IntrinsicElements { - "bar-chart": Omit & { [K in keyof BarChart & keyof BarChartAttributes]?: BarChart[K] } & { [K in keyof BarChart & keyof BarChartAttributes as `attr:${K}`]?: BarChartAttributes[K] } & { [K in keyof BarChart & keyof BarChartAttributes as `prop:${K}`]?: BarChart[K] }; - } + interface IntrinsicElements { + 'bar-chart': Omit & { [K in keyof BarChart & keyof BarChartAttributes]?: BarChart[K] } & { + [K in keyof BarChart & keyof BarChartAttributes as `attr:${K}`]?: BarChartAttributes[K]; + } & { [K in keyof BarChart & keyof BarChartAttributes as `prop:${K}`]?: BarChart[K] }; + } } export { LocalJSX as JSX }; -declare module "@stencil/core" { - export namespace JSX { - interface IntrinsicElements { - "bar-chart": LocalJSX.IntrinsicElements["bar-chart"] & JSXBase.HTMLAttributes; - } +declare module '@stencil/core' { + export namespace JSX { + interface IntrinsicElements { + 'bar-chart': LocalJSX.IntrinsicElements['bar-chart'] & JSXBase.HTMLAttributes; } + } } diff --git a/packages/luna-charts/src/components/charts/bar-chart/bar-chart.stories.tsx b/packages/luna-charts/src/components/charts/bar-chart/bar-chart.stories.tsx index da9fd24..7157b8f 100644 --- a/packages/luna-charts/src/components/charts/bar-chart/bar-chart.stories.tsx +++ b/packages/luna-charts/src/components/charts/bar-chart/bar-chart.stories.tsx @@ -16,9 +16,9 @@ type Story = StoryObj; export const Primary: Story = { args: {}, - render: () => , + render: () => , }; export const Secondary: Story = { args: {}, -}; \ No newline at end of file +}; diff --git a/packages/luna-charts/src/components/charts/bar-chart/bar-chart.tsx b/packages/luna-charts/src/components/charts/bar-chart/bar-chart.tsx index 2f5a35f..a701345 100644 --- a/packages/luna-charts/src/components/charts/bar-chart/bar-chart.tsx +++ b/packages/luna-charts/src/components/charts/bar-chart/bar-chart.tsx @@ -6,8 +6,7 @@ import { Component, Host, Prop, h } from '@stencil/core'; shadow: true, }) export class BarChart { - - @Prop() title: string = "Hello World"; + @Prop() title: string = 'Hello World'; render() { return ( diff --git a/packages/luna-charts/src/components/charts/bar-chart/readme.md b/packages/luna-charts/src/components/charts/bar-chart/readme.md deleted file mode 100644 index 3e12f78..0000000 --- a/packages/luna-charts/src/components/charts/bar-chart/readme.md +++ /dev/null @@ -1,24 +0,0 @@ -# bar-chart - - - - - - -## Properties - -| Property | Attribute | Description | Type | Default | -| -------- | --------- | ----------- | -------- | --------------- | -| `title` | `title` | | `string` | `"Hello World"` | - - -## Slots - -| Slot | Description | -| ---- | ---------------- | -| | The default slot | - - ----------------------------------------------- - -*Built with [StencilJS](https://stenciljs.com/)* diff --git a/packages/luna-charts/src/components/charts/bar-chart/test/bar-chart.spec.tsx b/packages/luna-charts/src/components/charts/bar-chart/test/bar-chart.spec.tsx index efa9ca2..0b3f849 100644 --- a/packages/luna-charts/src/components/charts/bar-chart/test/bar-chart.spec.tsx +++ b/packages/luna-charts/src/components/charts/bar-chart/test/bar-chart.spec.tsx @@ -2,7 +2,6 @@ import { newSpecPage } from '@stencil/core/testing'; import { BarChart } from '../bar-chart'; import { describe, expect, it } from 'vitest'; - describe('bar-chart', () => { it('renders', async () => { const page = await newSpecPage({ diff --git a/packages/luna-charts/stencil.config.ts b/packages/luna-charts/stencil.config.ts index c78ce55..1b52999 100644 --- a/packages/luna-charts/stencil.config.ts +++ b/packages/luna-charts/stencil.config.ts @@ -12,9 +12,6 @@ export const config: Config = { customElementsExportBehavior: 'auto-define-custom-elements', externalRuntime: false, }, - { - type: 'docs-readme', - }, { type: 'www', serviceWorker: null, // disable service workers