-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from brainstormforce/staging
v0.0.2
- Loading branch information
Showing
87 changed files
with
14,667 additions
and
4,483 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,31 @@ | ||
// .eslintrc.mjs | ||
module.exports = { | ||
root: true, | ||
extends: ["plugin:@wordpress/eslint-plugin/recommended-with-formatting"], | ||
extends: [ 'plugin:@wordpress/eslint-plugin/recommended-with-formatting', "plugin:storybook/recommended" ], | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
extensions: [ '.js', '.jsx', '.ts', '.tsx' ], | ||
}, | ||
alias: { | ||
map: [ | ||
[ '@', './src' ], | ||
[ '@/components', './src/components' ], | ||
[ '@/utilities', './src/utilities' ], | ||
], | ||
extensions: [ '.js', '.jsx' ], | ||
}, | ||
}, | ||
}, | ||
parserOptions: { | ||
requireConfigFile: false, | ||
babelOptions: { | ||
presets: ["@wordpress/babel-preset-default"], | ||
presets: [ '@wordpress/babel-preset-default' ], | ||
}, | ||
}, | ||
rules: { | ||
"jsx-a11y/click-events-have-key-events": "off", | ||
"react-hooks/exhaustive-deps": "off", | ||
"jsx-a11y/label-has-associated-control": "off", | ||
'jsx-a11y/click-events-have-key-events': 'off', | ||
'react-hooks/exhaustive-deps': 'off', | ||
'jsx-a11y/label-has-associated-control': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
version: 2 | ||
updates: | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
target-branch: "dev" | ||
schedule: | ||
interval: "daily" | ||
# Maintain dependencies for GitHub Actions | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
target-branch: 'dev' | ||
schedule: | ||
interval: 'daily' | ||
|
||
# Maintain dependencies for npm | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
target-branch: "dev" | ||
schedule: | ||
interval: "daily" | ||
# Maintain dependencies for npm | ||
- package-ecosystem: 'npm' | ||
directory: '/' | ||
target-branch: 'dev' | ||
schedule: | ||
interval: 'daily' | ||
|
||
# Maintain dependencies for Composer | ||
- package-ecosystem: "composer" | ||
target-branch: "dev" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
# Maintain dependencies for Composer | ||
- package-ecosystem: 'composer' | ||
target-branch: 'dev' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "Chromatic" | ||
|
||
on: | ||
push: | ||
branches: | ||
- staging | ||
|
||
jobs: | ||
chromatic: | ||
name: Run Chromatic | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
- name: Install dependencies | ||
# ⚠️ See your package manager's documentation for the correct command to install dependencies in a CI environment. | ||
run: npm install | ||
- name: Run Chromatic | ||
uses: chromaui/action@latest | ||
with: | ||
# ⚠️ Make sure to configure a `CHROMATIC_PROJECT_TOKEN` repository secret | ||
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | ||
zip: true | ||
onlyChanged: true # 👈 Required option to enable TurboSnap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
node_modules | ||
dist/*.map | ||
.DS_Store | ||
.DS_Store | ||
*storybook.log | ||
storybook-static/* |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import path from 'path'; | ||
|
||
/** @type { import('@storybook/react-webpack5').StorybookConfig } */ | ||
const config = { | ||
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"], | ||
addons: ["@storybook/addon-webpack5-compiler-swc", "@storybook/addon-onboarding", "@storybook/addon-links", "@storybook/addon-essentials", "@chromatic-com/storybook", "@storybook/addon-interactions"], | ||
swc: () => ({ | ||
jsc: { | ||
transform: { | ||
react: { | ||
runtime: 'automatic' | ||
} | ||
} | ||
} | ||
}), | ||
framework: { | ||
name: "@storybook/react-webpack5", | ||
options: {}, | ||
}, | ||
core: { | ||
builder: "webpack5", | ||
}, | ||
webpackFinal: async (config) => { | ||
config.resolve.alias = { | ||
'@': path.resolve(__dirname, '..', 'src'), | ||
}; | ||
|
||
return config; | ||
}, | ||
}; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** @type { import('@storybook/react').Preview } */ | ||
import '../dist/force-ui.css'; | ||
const preview = { | ||
parameters: { | ||
controls: { | ||
matchers: { | ||
color: /(background|color)$/i, | ||
date: /Date$/i, | ||
}, | ||
}, | ||
}, | ||
}; | ||
|
||
export default preview; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
module.exports = { | ||
presets: [ | ||
"@babel/preset-env", | ||
"@babel/preset-react" | ||
] | ||
presets: [ '@babel/preset-env', '@babel/preset-react' ], | ||
}; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array('react', 'react-dom'), 'version' => 'bb18901488b5453d1e86'); | ||
<?php return array('dependencies' => array('react', 'react-dom'), 'version' => '27e54a60318d13aa0c6c'); |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<?php return array('dependencies' => array(), 'version' => '4114bc5c3397a0071e02'); | ||
<?php return array('dependencies' => array(), 'version' => 'f5765dea688f24fb260e'); |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.