diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index da3ff36..9788751 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -87,51 +87,3 @@ jobs: exitOnceUploaded: true autoAcceptChanges: true projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} - - deploy-docs: - name: 'Deploy Latest documentation' - needs: publish - if: needs.publish.outputs.published == 'true' - runs-on: ubuntu-latest - environment: - name: Docs Production - url: ${{ steps.publish_docs.outputs.NETLIFY_PREVIEW_URL }} - env: - NODE_OPTIONS: --max-old-space-size=4096 - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - steps: - - uses: actions/checkout@v2 - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 - - - uses: actions/cache@v2 - name: Download storybook cache - with: - path: | - **/node_modules/.cache - key: ${{ runner.os }}-storybook-${{ github.run_id }} - restore-keys: | - ${{ runner.os }}-storybook - - - uses: actions/setup-node@v3 - with: - node-version-file: '.nvmrc' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install - - - name: Build Docs - run: pnpm build-docs --quiet - - - name: Deploy docs to Netlify - uses: South-Paw/action-netlify-deploy@v1.2.1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} - netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }} - build-dir: ./storybook-docs diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 5eefed8..90c4500 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -68,38 +68,6 @@ jobs: prNumber: context.payload.pull_request.number }) - tests: - name: 'Tests & lint' - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 - - - uses: actions/cache@v2 - name: Download eslint cache - with: - path: | - **/.eslintcache - key: ${{ runner.os }}-eslint - - - uses: actions/setup-node@v3 - with: - node-version-file: '.nvmrc' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install - - - name: Run the lint - run: pnpm lint - - - name: Run the tests - run: pnpm test -- --no-cache - deploy-chromatic: name: 'Prepare Storybook for review & tests' runs-on: ubuntu-latest @@ -162,68 +130,3 @@ jobs: repo: context.repo, prNumber: context.payload.pull_request.number }) - - deploy-docs: - name: 'Prepare Docs for the Review' - runs-on: ubuntu-latest - environment: - name: Docs staging - url: ${{ steps.publish_docs.outputs.preview-url }} - env: - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - steps: - - uses: actions/checkout@v2 - - - name: Install pnpm - uses: pnpm/action-setup@v2 - with: - version: 8 - - - uses: actions/cache@v2 - name: Download storybook cache - with: - path: | - **/node_modules/.cache - key: ${{ runner.os }}-storybook-${{ github.run_id }} - restore-keys: | - ${{ runner.os }}-storybook - - - uses: actions/setup-node@v3 - with: - node-version-file: '.nvmrc' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install - - - name: Build Docs - run: pnpm build-docs --quiet - - - name: Deploy docs to Netlify - id: publish_docs - uses: South-Paw/action-netlify-deploy@v1.2.1 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - netlify-auth-token: ${{ secrets.NETLIFY_AUTH_TOKEN }} - netlify-site-id: ${{ secrets.NETLIFY_SITE_ID }} - draft: true - build-dir: ./storybook-docs - comment-on-commit: true - - - name: Comment PR - uses: actions/github-script@v6 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - script: | - const setMessage = require('${{ github.workspace }}/scripts/ci/set-message') - - await setMessage({ - header: "## 🏗 Docs are successfully deployed!", - body: ` - 👀 Preview: ${{ steps.publish_docs.outputs.preview-url }} - `, - github, - repo: context.repo, - prNumber: context.payload.pull_request.number - }) diff --git a/package.json b/package.json index 33e59f4..5cbdccc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jenga-ui", - "version": "0.4.0", + "version": "0.5.0", "description": "Responsive and Accessible React UI Components built with React and TastyCSS", "keywords": [ "react", diff --git a/src/tasty/types.ts b/src/tasty/types.ts index 355075d..5549139 100644 --- a/src/tasty/types.ts +++ b/src/tasty/types.ts @@ -99,21 +99,15 @@ export interface AllBaseProps as?: string; } -export type BaseStyleProps = Pick; -export type PositionStyleProps = Pick; -export type BlockStyleProps = Pick; -export type ColorStyleProps = Pick; -export type TextStyleProps = Pick; -export type DimensionStyleProps = Pick< - Styles, - (typeof DIMENSION_STYLES)[number] ->; -export type FlowStyleProps = Pick; -export type ContainerStyleProps = Pick< - Styles, - (typeof CONTAINER_STYLES)[number] ->; -export type OuterStyleProps = Pick; +export type BaseStyleProps = Pick; +export type PositionStyleProps = Pick; +export type BlockStyleProps = Pick; +export type ColorStyleProps = Pick; +export type TextStyleProps = Pick; +export type DimensionStyleProps = Pick; +export type FlowStyleProps = Pick; +export type ContainerStyleProps = Pick; +export type OuterStyleProps = Pick; export type ShortGridStyles = { template?: Styles['gridTemplate'];