Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency Updates #438

Merged
merged 11 commits into from
Mar 8, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
28 changes: 0 additions & 28 deletions LICENSE

This file was deleted.

9 changes: 9 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# MIT License

Copyright (c) 2024 Phase2 Technology
himerus marked this conversation as resolved.
Show resolved Hide resolved

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { html, TemplateResult } from 'lit';
import { html, TemplateResult, LitElement } from 'lit';
import { customElement } from 'lit/decorators.js';

// Our base component, which all others extend.
import { OutlineElement } from '@phase2/outline-core';

// import componentStyles from './outline-core-accordion.css.lit';

/** The element name, reused throughout the codebase */
Expand All @@ -14,7 +11,7 @@ const componentName = 'outline-core-accordion';
* The Outline Core Accordion component
*
* @element outline-core-accordion
* @extends OutlineElement
* @extends LitElement
* @slot - The default slot for this element.
*
* @todo: Complete component.
Expand All @@ -25,14 +22,19 @@ const componentName = 'outline-core-accordion';
* @todo: Create PR for updated and completed component.
*/
@customElement(componentName)
export class OutlineCoreAccordion extends OutlineElement {
export class OutlineCoreAccordion extends LitElement {
// static styles: CSSResultGroup = [componentStyles];

render(): TemplateResult {
return html` <slot></slot> `;
}
}

/**
* TypeScript declaration extends the HTMLElementTagNameMap interface, adding
* the web component. This enhances type checking and autocompletion in IDEs.
* @see {@link https://lit.dev/docs/components/defining/#typescript-typings | Providing good TypeScript typings}
*/
declare global {
interface HTMLElementTagNameMap {
[componentName]: OutlineCoreAccordion;
Expand Down
16 changes: 12 additions & 4 deletions packages/components/outline-core-alert/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,12 @@
"image",
"picture"
],
"main": "index.ts",
"types": "index.ts",
"typings": "index.d.ts",
"engines": {
"node": ">=20"
},
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"/dist/",
"/src/",
Expand All @@ -36,7 +39,12 @@
"access": "public"
},
"exports": {
".": "./index.ts"
".": {
"development": "./src/index.ts",
"production": "./dist/index.js",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"devDependencies": {
"@phase2/outline-adopted-stylesheets-controller": "^1.0.2",
Expand Down
12 changes: 8 additions & 4 deletions packages/components/outline-core-alert/src/outline-core-alert.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { html, TemplateResult } from 'lit';
import { html, TemplateResult, LitElement } from 'lit';
import { customElement, property } from 'lit/decorators.js';
import { ifDefined } from 'lit/directives/if-defined.js';
import { OutlineElement } from '@phase2/outline-core';
import {
CoreAlertStatusType,
OutlineCoreAlertInterface,
Expand All @@ -18,7 +17,7 @@ const componentName = 'outline-core-alert';
* The Outline Core Alert component
*
* @element outline-core-alert
* @extends OutlineElement
* @extends LitElement
* @slot header - The header in the alert.
* @slot icon-start - The icon to display at the start of the alert.
* @slot default - The alert contents.
Expand All @@ -39,7 +38,7 @@ const componentName = 'outline-core-alert';
*/
@customElement(componentName)
export class OutlineCoreAlert
extends OutlineElement
extends LitElement
implements OutlineCoreAlertInterface
{
GlobalStylesheets: AdoptedStylesheets | undefined = new AdoptedStylesheets(
Expand Down Expand Up @@ -89,6 +88,11 @@ export class OutlineCoreAlert
}
}

/**
* TypeScript declaration extends the HTMLElementTagNameMap interface, adding
* the web component. This enhances type checking and autocompletion in IDEs.
* @see {@link https://lit.dev/docs/components/defining/#typescript-typings | Providing good TypeScript typings}
*/
declare global {
interface HTMLElementTagNameMap {
[componentName]: OutlineCoreAlert;
Expand Down
6 changes: 3 additions & 3 deletions packages/components/outline-core-alert/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"extends": "../../../tsconfig.json",
"extends": "../../../tsconfig.build.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "./dist"
},
"include": ["index.ts", "src/**/*", "tests/**/*"],
"references": [{ "path": "../../outline-core/tsconfig.build.json" }]
"include": ["index.ts", "src/**/*", "tests/**/*", "../../env.d.ts"],
"exclude": ["**/*.js"]
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { html, TemplateResult } from 'lit';
import { html, TemplateResult, LitElement } from 'lit';
import { customElement } from 'lit/decorators.js';

// Our base component, which all others extend.
import { OutlineElement } from '@phase2/outline-core';

// import componentStyles from './outline-core-breadcrumb.css.lit';

/** The element name, reused throughout the codebase */
Expand All @@ -14,7 +11,7 @@ const componentName = 'outline-core-breadcrumb';
* The Outline Core Breadcrumb component
*
* @element outline-core-breadcrumb
* @extends OutlineElement
* @extends LitElement
* @slot - The default slot for this element.
*
* @todo: Complete component.
Expand All @@ -25,14 +22,19 @@ const componentName = 'outline-core-breadcrumb';
* @todo: Create PR for updated and completed component.
*/
@customElement(componentName)
export class OutlineCoreBreadcrumb extends OutlineElement {
export class OutlineCoreBreadcrumb extends LitElement {
// static styles: CSSResultGroup = [componentStyles];

render(): TemplateResult {
return html` <slot></slot> `;
}
}

/**
* TypeScript declaration extends the HTMLElementTagNameMap interface, adding
* the web component. This enhances type checking and autocompletion in IDEs.
* @see {@link https://lit.dev/docs/components/defining/#typescript-typings | Providing good TypeScript typings}
*/
declare global {
interface HTMLElementTagNameMap {
[componentName]: OutlineCoreBreadcrumb;
Expand Down
14 changes: 8 additions & 6 deletions packages/components/outline-core-card/src/outline-core-card.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { html, TemplateResult } from 'lit';
import { html, TemplateResult, LitElement } from 'lit';
import { customElement } from 'lit/decorators.js';

// Our base component, which all others extend.
import { OutlineElement } from '@phase2/outline-core';

// import componentStyles from './outline-core-card.css.lit';

/** The element name, reused throughout the codebase */
Expand All @@ -14,7 +11,7 @@ const componentName = 'outline-core-card';
* The Outline Core Card component
*
* @element outline-core-card
* @extends OutlineElement
* @extends LitElement
* @slot - The default slot for this element.
*
* @todo: Complete component.
Expand All @@ -25,14 +22,19 @@ const componentName = 'outline-core-card';
* @todo: Create PR for updated and completed component.
*/
@customElement(componentName)
export class OutlineCoreCard extends OutlineElement {
export class OutlineCoreCard extends LitElement {
// static styles: CSSResultGroup = [componentStyles];

render(): TemplateResult {
return html` <slot></slot> `;
}
}

/**
* TypeScript declaration extends the HTMLElementTagNameMap interface, adding
* the web component. This enhances type checking and autocompletion in IDEs.
* @see {@link https://lit.dev/docs/components/defining/#typescript-typings | Providing good TypeScript typings}
*/
declare global {
interface HTMLElementTagNameMap {
[componentName]: OutlineCoreCard;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { html, TemplateResult } from 'lit';
import { html, TemplateResult, LitElement } from 'lit';
import { customElement } from 'lit/decorators.js';

// Our base component, which all others extend.
import { OutlineElement } from '@phase2/outline-core';

// import componentStyles from './outline-core-container.css.lit';

/** The element name, reused throughout the codebase */
Expand All @@ -14,7 +11,7 @@ const componentName = 'outline-core-container';
* The Outline Core Container component
*
* @element outline-core-container
* @extends OutlineElement
* @extends LitElement
* @slot - The default slot for this element.
*
* @todo: Complete component.
Expand All @@ -25,14 +22,19 @@ const componentName = 'outline-core-container';
* @todo: Create PR for updated and completed component.
*/
@customElement(componentName)
export class OutlineCoreContainer extends OutlineElement {
export class OutlineCoreContainer extends LitElement {
// static styles: CSSResultGroup = [componentStyles];

render(): TemplateResult {
return html` <slot></slot> `;
}
}

/**
* TypeScript declaration extends the HTMLElementTagNameMap interface, adding
* the web component. This enhances type checking and autocompletion in IDEs.
* @see {@link https://lit.dev/docs/components/defining/#typescript-typings | Providing good TypeScript typings}
*/
declare global {
interface HTMLElementTagNameMap {
[componentName]: OutlineCoreContainer;
Expand Down
14 changes: 8 additions & 6 deletions packages/components/outline-core-form/src/outline-core-form.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { html, TemplateResult } from 'lit';
import { html, TemplateResult, LitElement } from 'lit';
import { customElement } from 'lit/decorators.js';

// Our base component, which all others extend.
import { OutlineElement } from '@phase2/outline-core';

// import componentStyles from './outline-core-form.css.lit';

/** The element name, reused throughout the codebase */
Expand All @@ -14,7 +11,7 @@ const componentName = 'outline-core-form';
* The Outline Core Form component
*
* @element outline-core-form
* @extends OutlineElement
* @extends LitElement
* @slot - The default slot for this element.
*
* @todo: Complete component.
Expand All @@ -25,14 +22,19 @@ const componentName = 'outline-core-form';
* @todo: Create PR for updated and completed component.
*/
@customElement(componentName)
export class OutlineCoreForm extends OutlineElement {
export class OutlineCoreForm extends LitElement {
// static styles: CSSResultGroup = [componentStyles];

render(): TemplateResult {
return html` <slot></slot> `;
}
}

/**
* TypeScript declaration extends the HTMLElementTagNameMap interface, adding
* the web component. This enhances type checking and autocompletion in IDEs.
* @see {@link https://lit.dev/docs/components/defining/#typescript-typings | Providing good TypeScript typings}
*/
declare global {
interface HTMLElementTagNameMap {
[componentName]: OutlineCoreForm;
Expand Down
14 changes: 8 additions & 6 deletions packages/components/outline-core-icon/src/outline-core-icon.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import { html, TemplateResult } from 'lit';
import { html, TemplateResult, LitElement } from 'lit';
import { customElement } from 'lit/decorators.js';

// Our base component, which all others extend.
import { OutlineElement } from '@phase2/outline-core';

// import componentStyles from './outline-core-icon.css.lit';

/** The element name, reused throughout the codebase */
Expand All @@ -14,7 +11,7 @@ const componentName = 'outline-core-icon';
* The Outline Core Image component
*
* @element outline-core-icon
* @extends OutlineElement
* @extends LitElement
* @slot - The default slot for this element.
*
* @todo: Complete component.
Expand All @@ -25,14 +22,19 @@ const componentName = 'outline-core-icon';
* @todo: Create PR for updated and completed component.
*/
@customElement(componentName)
export class OutlineCoreIcon extends OutlineElement {
export class OutlineCoreIcon extends LitElement {
// static styles: CSSResultGroup = [componentStyles];

render(): TemplateResult {
return html` <slot></slot> `;
}
}

/**
* TypeScript declaration extends the HTMLElementTagNameMap interface, adding
* the web component. This enhances type checking and autocompletion in IDEs.
* @see {@link https://lit.dev/docs/components/defining/#typescript-typings | Providing good TypeScript typings}
*/
declare global {
interface HTMLElementTagNameMap {
[componentName]: OutlineCoreIcon;
Expand Down