chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 12:12:04 +08:00
commit 124b5f0e67
2918 changed files with 321047 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
# Each line is a file pattern followed by one or more owners.
# These owners will be the default owners for everything in the repo.
* @jrgarciadev
# Order is important. The last matching pattern has the most precedence.
# So if a pull request only touches javascript files, only these owners
# will be requested to review.
# *.js @octocat @github/js
# You can also use email addresses if you prefer.
# docs/* docs@example.com
+13
View File
@@ -0,0 +1,13 @@
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: heroui
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
+114
View File
@@ -0,0 +1,114 @@
name: "Bug report"
title: "[BUG] - YOUR_ISSUE_TITLE_HERE_REPLACE_ME"
description: Create a report to help us improve
labels: [bug]
body:
- type: markdown
attributes:
value: |
Thank you for reporting an issue :pray:.
This issue tracker is for reporting bugs found in [HeroUI github repository](https://github.com/heroui-inc/heroui/)
If you have a question about how to achieve something and are struggling, please post a question
inside of either of the following places:
- HeroUI's [Discussion's tab](https://github.com/heroui-inc/heroui/discussions)
- HeroUI's [Discord channel](https://discord.gg/9b6yyZKmH4)
Before submitting a new bug/issue, please check the links below to see if there is a solution or question posted there already:
- HeroUI's [Issue's tab](https://github.com/heroui-inc/heroui/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-desc)
- HeroUI's [closed issues tab](https://github.com/heroui-inc/heroui/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed)
- HeroUI's [Discussions tab](https://github.com/heroui-inc/heroui/discussions)
The more information you fill in, the better the community can help you.
- type: input
id: version
attributes:
label: HeroUI Version
description: |
Please provide the version of HeroUI you are using (e.g. 3.0.5). Do NOT just put "latest" or "latest version".
placeholder: ex. 3.0.5
validations:
required: true
- type: textarea
id: description
attributes:
label: Describe the bug
description: |
Provide a clear and concise description of the challenge you are running into.
placeholder: |
This issue page is ONLY for HeroUI's core library. If you are facing an issue with a specific product, please refer to the following links:
- HeroUI Pro: Report in HeroUI Pro Discord Channel or Contact Support in Pro Dashboard
- HeroUI CLI: Report in https://github.com/heroui-inc/heroui-cli/issues
- HeroUI Native: Report in https://github.com/heroui-inc/heroui-native/issues
- Tailwind Variants: Report in https://github.com/heroui-inc/tailwind-variants/issues
validations:
required: true
- type: input
id: link
attributes:
label: Your Example Website or App
description: |
Which website or app were you using when the bug happened?
Note:
- Your bug will may get fixed much faster if we can run your code and it doesn't have dependencies other than the `@heroui/react` npm package.
- To create a shareable code example you can use Stackblitz (https://stackblitz.com/). Please no localhost URLs.
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve.
placeholder: |
e.g. https://stackblitz.com/edit/...... OR Github Repo
validations:
required: false
- type: textarea
id: steps
attributes:
label: Steps to Reproduce the Bug or Issue
description: Describe the steps we have to take to reproduce the behavior.
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
description: Provide a clear and concise description of what you expected to happen.
placeholder: |
As a user, I expected ___ behavior but i am seeing ___
validations:
required: true
- type: textarea
id: screenshots_or_videos
attributes:
label: Screenshots or Videos
description: |
If applicable, add screenshots or a video to help explain your problem.
For more information on the supported file image/file types and the file size limits, please refer
to the following link: https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/attaching-files
placeholder: |
You can drag your video or image files inside of this editor ↓
- type: input
id: os
attributes:
label: Operating System Version
description: What operating system are you using?
placeholder: |
- OS: [e.g. macOS, Windows, Linux]
validations:
required: true
- type: dropdown
id: browser_type
attributes:
label: Browser
description: Select the browsers where the issue can be reproduced (that you know of).
options:
- "Chrome"
- "Firefox"
- "Safari"
- "Edge"
- "Opera"
- "Other (add additional context)"
validations:
required: true
+14
View File
@@ -0,0 +1,14 @@
blank_issues_enabled: true
contact_links:
- name: 💡 Feature Request
url: https://github.com/heroui-inc/heroui/discussions/categories/feature-requests
about: 💡 Suggest a new component, improve an existing component and etc
- name: 🤔 Long question or ideas?
url: https://github.com/heroui-inc/heroui/discussions
about: Ask long-form questions and discuss ideas.
- name: 💬 Discord Community Chat
url: https://discord.gg/9b6yyZKmH4
about: Ask quick questions or simply chat on the `HeroUI` community Discord server.
- name: 💬 New Updates (X)
url: https://x.com/hero_ui
about: Link to our X account if you want to follow us and stay up to date with HeroUI news
+41
View File
@@ -0,0 +1,41 @@
name: "Install"
description: "Sets up Node.js and runs install"
runs:
using: composite
steps:
- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
run_install: false
- name: Setup node
uses: actions/setup-node@v6
with:
cache: "pnpm"
check-latest: true
node-version-file: ".nvmrc"
registry-url: "https://registry.npmjs.org"
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v5
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
shell: bash
run: pnpm install --frozen-lockfile
- name: Setup Git User
shell: bash
run: |
git config --global user.email "jrgarciadev@gmail.com"
git config --global user.name "Junior Garcia"
+28
View File
@@ -0,0 +1,28 @@
<!---
Thanks for creating a Pull Request ❤️!
Please read the following before submitting:
- PRs that adds new external dependencies might take a while to review.
- Keep your PR as small as possible.
- Limit your PR to one type (docs, feature, refactoring, ci, repo, or bugfix)
-->
Closes # <!-- Github issue # here -->
## 📝 Description
<!--- Add a brief description -->
## ⛳️ Current behavior (updates)
<!--- Please describe the current behavior that you are modifying -->
## 🚀 New behavior
<!--- Please describe the behavior or changes this PR adds -->
## 💣 Is this a breaking change (Yes/No):
<!-- If Yes, please describe the impact and migration path for existing HeroUI users. -->
## 📝 Additional Information
+71
View File
@@ -0,0 +1,71 @@
name: QA
on:
pull_request:
branches:
- canary
- v3*
- "beta-*"
- "rc-*"
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v6
- name: Install
uses: ./.github/common-actions/install
- name: Build packages
run: pnpm build
eslint:
name: ESLint
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v6
- name: Install
uses: ./.github/common-actions/install
- name: Run ESLint
run: pnpm lint
types:
name: TypeScript
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v6
- name: Install
uses: ./.github/common-actions/install
- name: Run typecheck
run: pnpm typecheck
continuous-release:
name: Continuous Release
if: github.repository == 'heroui-inc/heroui'
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout branch
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install
uses: ./.github/common-actions/install
- name: Build packages
run: pnpm build
- name: Release
run: pnpx pkg-pr-new publish --pnpm './packages/styles' './packages/react'
+69
View File
@@ -0,0 +1,69 @@
name: Release
on:
push:
tags:
- "v*"
workflow_dispatch:
inputs:
dry_run:
description: "Dry run (publish without actually uploading to npm)"
required: false
type: boolean
default: false
jobs:
release:
runs-on: ubuntu-latest
environment: npm-publish
timeout-minutes: 15
permissions:
contents: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install
uses: ./.github/common-actions/install
- name: Build packages
run: pnpm build
- name: Ensure npm supports trusted publishing
run: npm install -g npm@11
- name: Determine previous tag
id: prev-tag
run: |
PREV=$(git tag -l 'v*' --sort=-v:refname | grep -v "$(git describe --tags --exact-match 2>/dev/null || echo '')" | head -1)
echo "tag=${PREV:-}" >> $GITHUB_OUTPUT
echo "Previous tag: ${PREV:-none}"
- name: Create GitHub Release
if: ${{ !inputs.dry_run }}
run: npx changelogithub --from ${{ steps.prev-tag.outputs.tag }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
- name: Publish @heroui/styles
id: publish-styles
working-directory: packages/styles
run: |
mkdir -p "$RUNNER_TEMP/heroui-release"
PACKAGE_TARBALL="$(node -p "const pkg = require('./package.json'); pkg.name.replace('@', '').replace('/', '-') + '-' + pkg.version + '.tgz'")"
pnpm pack --pack-destination "$RUNNER_TEMP/heroui-release"
npm publish "$RUNNER_TEMP/heroui-release/$PACKAGE_TARBALL" --access public ${{ inputs.dry_run && '--dry-run' || '' }}
- name: Publish @heroui/react
if: steps.publish-styles.outcome == 'success'
working-directory: packages/react
run: |
mkdir -p "$RUNNER_TEMP/heroui-release"
PACKAGE_TARBALL="$(node -p "const pkg = require('./package.json'); pkg.name.replace('@', '').replace('/', '-') + '-' + pkg.version + '.tgz'")"
pnpm pack --pack-destination "$RUNNER_TEMP/heroui-release"
npm publish "$RUNNER_TEMP/heroui-release/$PACKAGE_TARBALL" --access public ${{ inputs.dry_run && '--dry-run' || '' }}
@@ -0,0 +1,50 @@
name: Trigger MCP Extraction on Vercel Deployment
on:
repository_dispatch:
types:
- vercel.deployment.success
- vercel.deployment.promoted
jobs:
trigger-extraction:
name: Trigger MCP Extraction
runs-on: ubuntu-latest
steps:
- name: Trigger Native MCP Extraction
if: |
github.event.client_payload.git.ref == 'v3' ||
github.event.client_payload.git.ref == 'refs/heads/v3'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.MCP_DISPATCH_TOKEN }}
repository: heroui-inc/heroui-mcp
event-type: native-docs-deployed
client-payload: |
{
"environment": "production",
"deployment_url": "${{ github.event.client_payload.url }}",
"deployment_id": "${{ github.event.client_payload.id }}",
"git_ref": "${{ github.event.client_payload.git.ref }}",
"git_sha": "${{ github.event.client_payload.git.sha }}",
"triggered_by": "vercel_deployment"
}
- name: Trigger React MCP Extraction
if: |
github.event.client_payload.git.ref == 'v3' ||
github.event.client_payload.git.ref == 'refs/heads/v3'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.MCP_DISPATCH_TOKEN }}
repository: heroui-inc/heroui-mcp
event-type: react-docs-deployed
client-payload: |
{
"environment": "production",
"deployment_url": "${{ github.event.client_payload.url }}",
"deployment_id": "${{ github.event.client_payload.id }}",
"git_ref": "${{ github.event.client_payload.git.ref }}",
"git_sha": "${{ github.event.client_payload.git.sha }}",
"triggered_by": "vercel_deployment"
}
+42
View File
@@ -0,0 +1,42 @@
name: Update Stats
on:
schedule:
# Runs every Monday at 00:00 UTC
- cron: "0 0 * * 1"
# Allow manual trigger
workflow_dispatch:
jobs:
update-stats:
name: Update Stats
runs-on: ubuntu-latest
steps:
- name: Checkout branch
uses: actions/checkout@v6
- name: Install
uses: ./.github/common-actions/install
- name: Update search metadata
run: pnpm update:search-meta
- name: Update GitHub info
run: pnpm update:github-info
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
commit-message: "chore(stats): update project statistics"
title: "chore(stats): 📊 Update project statistics"
body: |
This PR updates the project statistics including:
- Search metadata
- GitHub repository information
This is an automated PR generated weekly.
branch: chore/update-stats
base: main
delete-branch: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}