Skip to content

Commit

Permalink
Merge pull request #426 from phase2/feature/outline-core-link-updates
Browse files Browse the repository at this point in the history
Outline Fall/Winter Update!!
  • Loading branch information
himerus authored Feb 15, 2024
2 parents 1f972e2 + 3ce056d commit 9b5cfef
Show file tree
Hide file tree
Showing 149 changed files with 2,581 additions and 7,113 deletions.
1 change: 0 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"updateInternalDependencies": "patch",
"ignore": [
"@phase2/outline-core-accordion",
"@phase2/outline-core-alert",
"@phase2/outline-core-breadcrumb",
"@phase2/outline-core-card",
"@phase2/outline-core-container",
Expand Down
9 changes: 9 additions & 0 deletions .changeset/purple-crews-attack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'@phase2/outline-form': patch
'@phase2/outline-storybook': patch
'@phase2/outline-core-link': patch
'@phase2/outline-config': patch
'@phase2/outline-templates': patch
---

Update for core link best practices.
15 changes: 15 additions & 0 deletions .changeset/shaggy-ducks-cheat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
'@phase2/outline-form': patch
'@phase2/outline-adopted-stylesheets-controller': patch
'@phase2/outline-storybook': patch
'@phase2/outline-core-button': patch
'@phase2/outline-examples': patch
'@phase2/outline-core-alert': patch
'@phase2/outline-core-link': patch
'@phase2/outline-docs': patch
'@phase2/outline-config': patch
'@phase2/outline-templates': patch
'@phase2/outline-core': patch
---

Update and reorganization
13 changes: 13 additions & 0 deletions .changeset/twenty-colts-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@phase2/outline-form': patch
'@phase2/outline-storybook': patch
'@phase2/outline-examples': patch
'@phase2/outline-core-alert': patch
'@phase2/outline-core-link': patch
'@phase2/outline-docs': patch
'@phase2/outline-config': patch
'@phase2/outline-templates': patch
'@phase2/outline-core': patch
---

Cleaup and organization.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
{
"argsIgnorePattern": "^_"
}
]
],
"lit-plugin/no-invalid-css": "off"
},
"overrides": [
{
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ node_modules/
mutagen.yml.lock
www/
.turbo
.turbo-cookie

# Outline specific
custom-elements.json
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
changeset/
dist/
www/
dev/
Expand Down Expand Up @@ -31,3 +32,4 @@ outline.theme.css

# Ignore all stories (Storybook) files:
**/*.stories.ts
storybook.main.css
21 changes: 6 additions & 15 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@ import { dirname, join } from 'path';
module.exports = {
stories: [
// Intentionally ordering welcome page first.
'../packages/documentation/outline-docs/src/guides/welcome.mdx',
'../packages/documentation/outline-docs/src/guides/welcome/00-welcome.mdx',
'../packages/documentation/outline-docs/src/guides/welcome/more-information/*.mdx',
// Tooling usage guides.
'../packages/documentation/outline-docs/src/guides/development/tooling/**/*.mdx',
// Component development guides.
'../packages/documentation/outline-docs/src/guides/development/component-development/**/*.mdx',
// Component usage guides.
'../packages/documentation/outline-docs/src/guides/consumers/**/*.mdx',
// QA/UAT usage guides.
'../packages/documentation/outline-docs/src/guides/qa-uat/**/*.mdx',
// Tooling usage guides.
'../packages/documentation/outline-docs/src/guides/tooling/**/*.mdx',
// Documentation stories.
'../packages/documentation/outline-docs/src/guides/**/*.@(js|ts|mdx)',
// Modern component stories.
'../packages/**/docs/*.mdx',
// Old component stories.
'../packages/documentation/outline-storybook/stories/**/*.stories.@(js|ts|mdx)',
],
typescript: {
check: false,
Expand All @@ -32,18 +27,14 @@ module.exports = {
storyStoreV7: true,
postcss: true,
buildStoriesJson: true,
modernInlineRender: true,
modernInlineRender: false,
},
framework: {
name: getAbsolutePath('@storybook/web-components-vite'),
name: '@storybook/web-components-vite',
options: {},
},
docs: {
autodocs: true,
defaultName: 'Documentation', // set to change the name of generated docs entries
},
};

function getAbsolutePath(value) {
return dirname(require.resolve(join(value, 'package.json')));
}
6 changes: 2 additions & 4 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ export const parameters = {
options: {
storySort: {
order: [
'Getting Started',
'Documentation',
'Design Tokens',
'Welcome Guide',
'Coding Guide',
'Media',
'Navigation',
'Content',
'Templates',
'Pages',
'Code Examples',
'Utility Components',
],
},
Expand Down
2 changes: 0 additions & 2 deletions .storybook/storybook.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import url('https://rsms.me/inter/inter.css');
/* Outline */
@import '../packages/outline-templates/default/outline.theme.css';
/* Global Tailwind Utilities */
@import '../packages/outline-templates/default/tailwind.css';
5 changes: 0 additions & 5 deletions .yarnrc

This file was deleted.

3 changes: 3 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-1.22.19.cjs
32 changes: 0 additions & 32 deletions docs/README.md

This file was deleted.

7 changes: 5 additions & 2 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ pre-commit:
parallel: true
commands:
eslint:
glob: '*.{js,ts,jsx,tsx,mdx,cjs,mjs}'
run: yarn eslint {staged_files}
run: yarn lint:eslint
# tsc:
# run: yarn lint:tsc
prettier:
run: yarn lint:prettier
41 changes: 16 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"./packages/documentation/*",
"./packages/controllers/*",
"./packages/controllers/@deprecated/*",
"./packages/tools/*"
"./packages/tools/*",
"./docs"
],
"files": [
"./packages/*/dist"
Expand All @@ -32,9 +33,8 @@
},
"license": "BSD-3-Clause",
"scripts": {
"prepare": "husky install",
"analyze": "yarn build && wca analyze 'packages/**/*.ts' --outFiles '{dir}/../README.md'",
"build": "turbo run build --concurrency=100%",
"build": "turbo run build --concurrency=100% --filter=!./packages/**/@deprecated/*",
"changeset": "changeset",
"changeset:publish": "yarn build && yarn changeset:version && yarn changeset publish",
"changeset:version": "changeset version",
Expand All @@ -55,9 +55,9 @@
"lint:eslint": "eslint .",
"lint:tsc": "tsc --noEmit",
"lint:prettier": "prettier --check .",
"package": "turbo run package",
"package": "turbo run package --filter=!./packages/**/@deprecated/*",
"prep": "npm-run-all -s prep:*",
"prep:css": "node scripts/styles.mjs",
"prep:css": "node scripts/styles.js",
"prebuild": "yarn prep",
"prestart": "yarn prep",
"rebuild": "yarn reset && yarn build",
Expand All @@ -72,7 +72,7 @@
"test": "turbo run test",
"watch": "npm-run-all -p watch:*",
"watch:storybook": "yarn storybook dev -p ${npm_package_storybook_port}",
"watch:css": "node scripts/styles.mjs --watch"
"watch:css": "node scripts/styles.js --watch"
},
"keywords": [
"web-components",
Expand All @@ -81,7 +81,7 @@
],
"packageManager": "yarn@1.22.19",
"engines": {
"node": ">=18"
"node": ">=20"
},
"devDependencies": {
"@adobe/css-tools": "^4.3.0",
Expand All @@ -90,19 +90,15 @@
"@commitlint/cli": "^17.4.0",
"@commitlint/config-conventional": "^17.4.0",
"@open-wc/testing": "^3.0.0-next.2",
"@storybook/addon-actions": "^7.4.6",
"@storybook/addon-docs": "^7.4.6",
"@storybook/addon-essentials": "^7.4.6",
"@storybook/addon-links": "^7.4.6",
"@storybook/web-components": "^7.4.6",
"@storybook/web-components-vite": "^7.4.6",
"@storybook/addon-actions": "^7.6.16",
"@storybook/addon-docs": "^7.6.16",
"@storybook/addon-essentials": "^7.6.16",
"@storybook/addon-links": "^7.6.16",
"@storybook/web-components": "^7.6.16",
"@storybook/web-components-vite": "^7.6.16",
"@types/estree": "^0.0.47",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"@web/test-runner": "^0.13.15",
"@web/test-runner-browserstack": "^0.4.2",
"@web/test-runner-playwright": "^0.8.6",
"autoprefixer": "10.4.0",
"chromatic": "^6.11.3",
"esbuild": "^0.15.7",
"eslint": "^7.32.0",
Expand All @@ -111,19 +107,15 @@
"eslint-plugin-react": "^7.23.0",
"eslint-plugin-storybook": "^0.6.15",
"gaze": "^1.1.3",
"husky": "^8.0.3",
"jest": "^26.6.3",
"jest-cli": "^26.6.3",
"lefthook": "^1.5.2",
"lint-staged": "^10.5.4",
"lit-analyzer": "^1.2.1",
"lit-html": "^2.3.1",
"npm-run-all": "^4.1.5",
"postcss": "8.4.8",
"postcss-custom-properties": "12.1.8",
"postcss-discard-comments": "5.1.0",
"postcss-import": "14.0.2",
"postcss-loader": "^7.0.1",
"postcss-nested-import": "^1.3.0",
"postcss-preset-env": "^7.8.1",
"prettier": "^2.0.4",
"prettier-plugin-tailwindcss": "^0.1.7",
Expand All @@ -132,14 +124,13 @@
"react-syntax-highlighter": "^15.5.0",
"rimraf": "^3.0.2",
"rsync": "^0.6.1",
"storybook": "^7.4.6",
"storybook": "^7.6.16",
"svgo": "^2.8.0",
"tailwindcss": "3.0.0",
"ts-lit-plugin": "^1.2.1",
"turbo": "^1.2.16",
"turbo": "^1.10.16",
"vite": "^4.1.4"
},
"dependencies": {},
"bugs": {
"url": "https://github.com/phase2/outline/issues"
},
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta } from '@storybook/addon-docs';

import '@phase2/outline-alert';
import '@phase2/outline-core-alert';

<Meta
title="In Progress/Accordion"
Expand All @@ -21,14 +21,14 @@ import '@phase2/outline-alert';

The `outline-core-accordion` component ...

<outline-alert status="warning" size="large">
<outline-core-alert status="warning">
<span slot="header">Documentation Status: @TODO</span>
<p>This documentation is in need of completion as the component is built out.</p>
<ul>
<li>**@todo:** Complete component.</li>
<li>**@todo:** Update documentation.</li>
</ul>
</outline-alert>
</outline-core-alert>
<br />

## Introduction to the **`outline-core-accordion`** component
Expand Down
30 changes: 30 additions & 0 deletions packages/components/outline-core-alert/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# outline-core-alert

The Outline Core Alert component

## Properties

| Property | Attribute | Type | Default | Description |
|----------------------|------------------|-----------------------------------------------|---------|-----------------------------------------------|
| `adoptedStylesheets` | | `AdoptedStyleSheets` | | |
| `debug` | | `boolean` | false | |
| `isInteractive` | `is-interactive` | `boolean` | false | This is important context for screen readers. |
| `status` | `status` | `"info" \| "warning" \| "error" \| "success"` | "info" | |

## Slots

| Name | Description |
|--------------|------------------------------------------------|
| `default` | The alert contents. |
| `header` | The header in the alert. |
| `icon-end` | The icon to display at the end of the alert. |
| `icon-start` | The icon to display at the start of the alert. |

## CSS Custom Properties

| Property | Description |
|----------------------------|--------------------------------------------------|
| `--outline-alert--error` | background: The background color for the error alert. |
| `--outline-alert--info` | background: The background color for the info alert. |
| `--outline-alert--success` | background: The background color for the success alert. |
| `--outline-alert--warning` | background: The background color for the warning alert. |
Loading

0 comments on commit 9b5cfef

Please sign in to comment.