phase2 / outline

Tooling infrastructure for modern web component development.
https://outline.phase2tech.com
MIT License
128 stars 27 forks source link

OUTLINE-165: Creating ready to develop placeholders for upcoming components #414

Closed himerus closed 1 year ago

himerus commented 1 year ago

Description

Patterns

*`outline-core-.ts` Component file:**

import { html, TemplateResult, CSSResultGroup } 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-image.css.lit';

/** The element name, reused throughout the codebase */
const componentName = 'outline-core-image';

/**
 *
 * The Outline Core Image component
 *
 * @element outline-core-image
 * @extends OutlineElement
 * @slot - The default slot for this element.
 *
 * @todo: Complete component.
 * @todo: Update `../docs/outline-core-image.mdx` to accurately document the component.
 * @todo: Run `yarn analyze` to generate README.md.
 * @todo: Update `package.json` to remove the `private` flag.
 * @todo: Update `.changeset/config.json` to remove this component from the `ignore` list.
 * @todo: Create PR for updated and completed component.
 */
@customElement(componentName)
export class OutlineCoreImage extends OutlineElement {
  static styles: CSSResultGroup = [componentStyles];

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

declare global {
  interface HTMLElementTagNameMap {
    [componentName]: OutlineCoreImage;
  }
}

Basic folder structure:

changeset-bot[bot] commented 1 year ago

⚠️ No Changeset found

Latest commit: ec02013b03664e28fe65fb009e49bb88f7e0610d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

netlify[bot] commented 1 year ago

Deploy Preview for outlinejs ready!

Name Link
Latest commit ec02013b03664e28fe65fb009e49bb88f7e0610d
Latest deploy log https://app.netlify.com/sites/outlinejs/deploys/64d66be9cdbcb00008be928d
Deploy Preview https://deploy-preview-414--outlinejs.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.