Skip to content

Commit

Permalink
Merge branch 'main' into feat/updated-site-search
Browse files Browse the repository at this point in the history
  • Loading branch information
SiTaggart authored Oct 16, 2023
2 parents 30ed3f3 + f370db0 commit 25ebf5e
Show file tree
Hide file tree
Showing 67 changed files with 366 additions and 487 deletions.
14 changes: 14 additions & 0 deletions .changeset/early-frogs-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
"@twilio-paste/progress-bar": minor
"@twilio-paste/core": minor
---

[ProgressBar] Added new features and updated the design.

The ProgressBarLabel component has the following new props:
- `valueLabel` which displays a plain text value on the right side of the label.
- `disabled` which applies disabled styling on the label.

The ProgressBar component has updated styling and the following new props:
- `hasError` which displays error styling.
- `disabled` which displays disabled styling.
50 changes: 19 additions & 31 deletions .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -445,37 +445,6 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Setup Node.js 20.5
uses: actions/setup-node@v3
with:
node-version: 20.5.x

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT

- name: Load Yarn cache
uses: actions/cache@v3
id: yarn_cache_id
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn
- name: Node modules cache
uses: actions/cache@v3
id: node_modules_cache_id
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}

- name: Install Dependencies
if: steps.yarn_cache_id.outputs.cache-hit != 'true' || steps.node_modules_cache_id.outputs.cache-hit != 'true'
run: yarn install --immutable

- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down Expand Up @@ -523,3 +492,22 @@ jobs:
run: yarn danger ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

typos:
name: Typos checks
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3

- name: Check for typos
uses: reviewdog/action-misspell@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
locale: "US"
reporter: github-pr-review
level: error
pattern: |
*.md
*.mdx
**/type-docs.json
6 changes: 3 additions & 3 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
font-family: Colfax;
font-style: normal;
font-weight: 300;
src: url(/fonts/colfax-light.woff2) format('woff2'), url(/fonts/colfax-light.woff) format('woff');
src: url(/fonts/colfax-light.woff2) format("woff2"), url(/fonts/colfax-light.woff) format("woff");
}

@font-face {
font-family: Colfax;
font-style: normal;
font-weight: 400;
src: url(/fonts/colfax-regular.woff2) format('woff2'), url(/fonts/colfax-regular.woff) format('woff');
src: url(/fonts/colfax-regular.woff2) format("woff2"), url(/fonts/colfax-regular.woff) format("woff");
}

@font-face {
font-family: Colfax;
font-style: normal;
font-weight: 600;
src: url(/fonts/colfax-medium.woff2) format('woff2'), url(/fonts/colfax-medium.woff) format('woff');
src: url(/fonts/colfax-medium.woff2) format("woff2"), url(/fonts/colfax-medium.woff) format("woff");
}
</style>

Expand Down
7 changes: 2 additions & 5 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,13 @@
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[css]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[jsonc]": {
"[json]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[typescriptreact]": {
"[jsonc]": {
"editor.defaultFormatter": "biomejs.biome"
},
"search.exclude": {
Expand Down
4 changes: 2 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
"packages/**/dist/*",
"tsconfig.build.tsbuildinfo",
"**/*.d.ts",
"**/package.json",
".codesandbox/ci.json",
"build.icon-list.js",
"**/*.hbs",
"apps/backend/supabase/schema.gen.ts",
"package.json"
"apps/backend/supabase/schema.gen.ts"
]
},
"organizeImports": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
"lint:vscode-intellisense": "eslint -c ./apps/vs-code-intellisense/.eslintrc.json --ext .tsx,.ts ./apps/vs-code-intellisense",
"lint:repo": "eslint -c .eslintrc.repo.js --ext .tsx,.ts .",
"format": "biome format ./ && prettier --list-different ./packages/",
"format:write": "biome format ./ --write",
"format:write": "biome format ./ --write && prettier ./ --write",
"format:ci": "biome ci ./ --linter-enabled=false && prettier --list-different ./packages/",
"type-check": "yarn prebuild && yarn nx run-many --target=tsc",
"tsc": "echo 'Did you mean to run yarn type-check?'",
Expand Down
10 changes: 3 additions & 7 deletions packages/paste-core/components/alert/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/anchor/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/avatar/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/base-radio-checkbox/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/breadcrumb/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/button/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/card/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/checkbox/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/combobox/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/description-list/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/disclosure/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/heading/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/help-text/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/input-box/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
10 changes: 3 additions & 7 deletions packages/paste-core/components/input/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
{
"extends": "../../../../tsconfig.json",
"compilerOptions": {
"outDir": "dist/",
"outDir": "dist/"
},
"include": [
"src/**/*",
],
"exclude": [
"node_modules"
]
"include": ["src/**/*"],
"exclude": ["node_modules"]
}
Loading

0 comments on commit 25ebf5e

Please sign in to comment.