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

Outline Fall/Winter Update!! #426

Merged
merged 52 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
4887050
feat: outline-core-button WIP
Aug 1, 2023
dd335e0
Merge branch 'next' of https://github.com/phase2/outline into issue/o…
shaal Aug 8, 2023
7ea6f10
fix: update styles for slotted button
shaal Aug 8, 2023
4a5f2b1
fix: remove tailwind resets
shaal Aug 8, 2023
e105065
Merge branch 'next' of https://github.com/phase2/outline into issue/o…
shaal Aug 8, 2023
dc8a71c
fix: linting
shaal Aug 8, 2023
c4f91e5
fix: linting
shaal Aug 8, 2023
eba5c8f
fix: adding full button markup in defaultSlot
shaal Aug 8, 2023
1825e37
fix: fixed styling for all button variants, removed link variants
Aug 22, 2023
ea16ab4
Merge branch 'next' of https://github.com/phase2/outline into issue/o…
Sep 12, 2023
7e1737f
fix: core button changes
Oct 3, 2023
3943a09
fix(outline-core-link): Updating to utilize @phase2/outline-adopted-s…
himerus Oct 16, 2023
ee19425
chore(changeset): Adding changeset for outline-core-link updates.
himerus Oct 16, 2023
c89b042
fix(outline-core-link): Update format.
himerus Oct 16, 2023
7f45e72
Merge branch 'next' into feature/outline-core-link-updates
himerus Oct 16, 2023
23412d4
fix(base): Removing extraneous sample component.
himerus Oct 16, 2023
cd398b3
fix(outline-core-link): Removing duplicate invocation of controller.
himerus Oct 16, 2023
b738317
fix(base): Working on updates to build.
himerus Oct 16, 2023
467e80e
feat(base): Adding Astro package for testing new documentation for Ou…
himerus Oct 17, 2023
d7270c9
fix(base): Fix for namespace of new documentation package.
himerus Oct 17, 2023
da6e747
fix(base): Removing Astro/docs folder for now to reduce complexity.
himerus Oct 20, 2023
51d90f0
Merge branch 'next' into feature/outline-octoberfest-updates
himerus Oct 20, 2023
8404ab1
feat(docs): Updating `outline-core-alert` and all mdx docs.
himerus Oct 23, 2023
d33e664
fix: extended button
glitchgirl Oct 24, 2023
97ac001
fix(baseline): Removing and ignoring new defaults.
himerus Oct 25, 2023
413e1c2
fix(outline-core-link): Cleanup.
himerus Oct 25, 2023
b880f15
fix(outline-core-alert): Basic updates and cleanup.
himerus Oct 25, 2023
fe13acc
fix(baseline): Simplification of default configuration.
himerus Oct 25, 2023
f23f892
fix(baseline): Reorganization of documents. Fix for postcss.
himerus Nov 7, 2023
80da0ef
fix(baseline): Reorganization of documents. Updates to alert.
himerus Nov 7, 2023
640c139
fix(baseline): Doc updates.
himerus Nov 7, 2023
3c0c904
fix(baseline): AI updates.
himerus Nov 7, 2023
b3ad22e
fix(baseline): Doc updates.
himerus Nov 7, 2023
a9638ee
fix(baseline): Update Storybook.
himerus Nov 8, 2023
0176860
fix(baseline): Reorganization of documents.
himerus Nov 8, 2023
e6af1a3
fix(baseline): Update story for AI suggestion.
himerus Nov 8, 2023
e5fa0e5
fix(baseline): Simple updates.
himerus Dec 5, 2023
da9f578
feat(outline-core-button): Tweaks for release prep.
himerus Dec 5, 2023
a30f3b6
Merge branch 'next' into issue/outline-core-button
himerus Dec 5, 2023
ba20a64
feat(outline-core-button): Tweaks for release prep.
himerus Dec 5, 2023
5777a40
feat(outline-core-button): Tweaks for release prep.
himerus Dec 5, 2023
d8358c3
feat(outline-core-button): Release 0.0.1.
himerus Dec 5, 2023
cdebe41
fix(baseline): Removing package-lock.json.
himerus Dec 5, 2023
e6a12ad
feat(outline-core-button): Tweaks for release prep.
himerus Dec 5, 2023
56a7da6
feat(outline-core-button): Tweaks for release prep.
himerus Dec 5, 2023
f13e5b9
feat(outline-core-button): Tweaks for release prep.
himerus Jan 18, 2024
75942f6
Merge branch 'next' into feature/outline-core-link-updates
glitchgirl Feb 6, 2024
c88172d
Merge branch 'next' into feature/outline-core-link-updates
himerus Feb 6, 2024
105ceb3
chore(tooling): Updated yarn.lock.
himerus Feb 6, 2024
50dce11
feat(tooling): Update yarn config.
himerus Feb 15, 2024
d1db38f
feat(tooling): Update Storybook.
himerus Feb 15, 2024
3ce056d
chore(changeset): Adding Changeset.
himerus Feb 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
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
45 changes: 45 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/bin/sh

if [ "$LEFTHOOK" = "0" ]; then
exit 0
fi

call_lefthook()
{
dir="$(git rev-parse --show-toplevel)"
osArch=$(uname | tr '[:upper:]' '[:lower:]')
cpuArch=$(uname -m | sed 's/aarch64/arm64/')

if lefthook -h >/dev/null 2>&1
then
lefthook "$@"
elif test -f "$dir/node_modules/lefthook/bin/index.js"
then
"$dir/node_modules/lefthook/bin/index.js" "$@"
elif test -f "$dir/node_modules/@evilmartians/lefthook/bin/lefthook_${osArch}_${cpuArch}/lefthook"
then
"$dir/node_modules/@evilmartians/lefthook/bin/lefthook_${osArch}_${cpuArch}/lefthook" "$@"
elif test -f "$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook_${osArch}_${cpuArch}/lefthook"
then
"$dir/node_modules/@evilmartians/lefthook-installer/bin/lefthook_${osArch}_${cpuArch}/lefthook" "$@"
elif bundle exec lefthook -h >/dev/null 2>&1
then
bundle exec lefthook "$@"
elif yarn lefthook -h >/dev/null 2>&1
then
yarn lefthook "$@"
elif pnpm lefthook -h >/dev/null 2>&1
then
pnpm lefthook "$@"
elif command -v npx >/dev/null 2>&1
then
npx @evilmartians/lefthook "$@"
elif swift package plugin lefthook >/dev/null 2>&1
then
swift package --disable-sandbox plugin lefthook "$@"
else
echo "Can't find lefthook in PATH"
fi
}

call_lefthook run "pre-commit" "$@"
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
himerus marked this conversation as resolved.
Show resolved Hide resolved
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
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
38 changes: 15 additions & 23 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": "[email protected]",
"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.3",
"@storybook/addon-docs": "^7.6.3",
"@storybook/addon-essentials": "^7.6.3",
"@storybook/addon-links": "^7.6.3",
"@storybook/web-components": "^7.6.3",
"@storybook/web-components-vite": "^7.6.3",
"@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,7 +124,7 @@
"react-syntax-highlighter": "^15.5.0",
"rimraf": "^3.0.2",
"rsync": "^0.6.1",
"storybook": "^7.4.6",
"storybook": "^7.6.3",
"svgo": "^2.8.0",
"tailwindcss": "3.0.0",
"ts-lit-plugin": "^1.2.1",
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. |
himerus marked this conversation as resolved.
Show resolved Hide resolved
Loading