Skip to content

Commit

Permalink
Added an adaptive UI package containing color utilities, design token…
Browse files Browse the repository at this point in the history
…s, and patterns (#39)

# Pull Request

## 📖 Description

<!--- Provide some background and a description of your work. -->
This work adds a private package to assist in revving the CLI and it includes the following work for use by the components:
- Design tokens
- Color utilities
- Component style patterns

It also speeds up the build by using the static generated storybook files to run on playwright.

### 🎫 Issues

<!---
List and link relevant issues here using the keyword "closes"
if this PR will close an issue, eg. closes #411
-->
Continues work on #31

## 👩‍💻 Reviewer Notes

<!---
Provide some notes for reviewers to help them provide targeted feedback and testing.
-->
The files should be very similar to what was in `@microsoft/fast-components`, with a few fixes to integrate into the CLI.

## ✅ Checklist

### General

<!--- Review the list and put an x in the boxes that apply. -->

- [ ] I have added tests for my changes.
- [x] I have tested my changes.
- [ ] I have updated the project documentation to reflect my changes.

## ⏭ Next Steps

<!---
If there is relevant follow-up work to this PR, please list any existing issues or provide brief descriptions of what you would like to do next.
-->
- Begin adding components
  • Loading branch information
janechu committed May 12, 2022
1 parent 55431ec commit a6ff04f
Show file tree
Hide file tree
Showing 57 changed files with 8,854 additions and 608 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Updated playwright to use a statically served version of storybook",
"packageName": "@microsoft/fast-cli",
"email": "7559015+janechu@users.noreply.github.com",
"dependentChangeType": "none"
}
889 changes: 291 additions & 598 deletions package-lock.json

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions packages/adaptive-ui/.eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Never lint webpack files
webpack.*.js

# Never lint test files
*.spec.ts

# don't lint storybook
.storybook

# don't lint stories
*.stories.ts

# Never lint node_modules
node_modules

# Never lint build output
dist

# Never lint coverage output
coverage
79 changes: 79 additions & 0 deletions packages/adaptive-ui/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "import"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
rules: {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-empty-interface": [
"error",
{
allowSingleExtends: true,
},
],
"import/order": "error",
"sort-imports": [
"error",
{
ignoreCase: true,
ignoreDeclarationSort: true,
},
],
"import/extensions": ["error", "always"],
"comma-dangle": "off",
"@typescript-eslint/typedef": [
"error",
{
arrowParameter: false,
arrayDestructuring: true,
parameter: true,
propertyDeclaration: true,
memberVariableDeclaration: true,
variableDeclarationIgnoreFunction: true,
variableDeclaration: false,
},
],
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/naming-convention": [
"error",
{
selector: "default",
format: ["UPPER_CASE", "camelCase", "PascalCase"],
leadingUnderscore: "allow",
},
{
selector: "property",
format: null, // disable for property names because of our foo__expanded convention for JSS
// TODO: I think we can come up with a regex that ignores variables with __ in them
},
{
selector: "variable",
format: null, // disable for variable names because of our foo__expanded convention for JSS
// TODO: I think we can come up with a regex that ignores variables with __ in them
},
{
selector: "objectLiteralMethod",
format: null, // disable for file names
}
],
"@typescript-eslint/no-inferrable-types": "off",
"no-prototype-builtins": "off",
"no-fallthrough": "off",
"no-unexpected-multiline": "off",
"@typescript-eslint/no-unused-vars": ["warn", { args: "none" }],
"@typescript-eslint/no-explicit-any": "off",
},
settings: {
"import/resolver": {
node: {
extensions: [".js", ".ts"]
}
}
},
};
3 changes: 3 additions & 0 deletions packages/adaptive-ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Description

This is the temporary location for Adaptive UI styles. Do not publish.

0 comments on commit a6ff04f

Please sign in to comment.