Compare commits
No commits in common. "gh-pages" and "dev" have entirely different histories.
12
.editorconfig
Normal file
12
.editorconfig
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
# EditorConfig is awesome: https://EditorConfig.org
|
||||||
|
|
||||||
|
# top-most EditorConfig file
|
||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
end_of_line = lf
|
||||||
|
charset = utf-8
|
||||||
|
trim_trailing_whitespace = true
|
||||||
|
insert_final_newline = true
|
||||||
55
.gitea/ISSUE_TEMPLATE/bug-report.yml
Normal file
55
.gitea/ISSUE_TEMPLATE/bug-report.yml
Normal file
|
|
@ -0,0 +1,55 @@
|
||||||
|
name: 🐞 Bug report
|
||||||
|
description: Create a report to help us improve shadcn-vue.
|
||||||
|
title: '[Bug]: '
|
||||||
|
labels: [bug]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for taking the time to fill out this bug report!
|
||||||
|
This form is only for submitting bug reports. If you have a usage question
|
||||||
|
or are unsure if this is really a bug, make sure to:
|
||||||
|
|
||||||
|
- Read the [docs](https://radix-vue.com/)
|
||||||
|
- Ask on [Discord Chat](https://chat.radix-vue.com/)
|
||||||
|
- Ask on [GitHub Discussions](https://github.com/shadcn-vue/shadcn-vue/discussions)
|
||||||
|
- type: input
|
||||||
|
id: reproduction
|
||||||
|
attributes:
|
||||||
|
label: Reproduction
|
||||||
|
description: |
|
||||||
|
A [minimal reproduction](https://stackoverflow.com/help/minimal-reproducible-example) is **required**, otherwise the issue might be closed without further notice. [**Why?**](https://antfu.me/posts/why-reproductions-are-required)
|
||||||
|
|
||||||
|
To get started, you can use the StackBlitz and CodeSandbox playgrounds in shadcn-vue demos:
|
||||||
|
https://www.shadcn-vue.com/docs/components/accordion.html
|
||||||
|
|
||||||
|
or use template presets
|
||||||
|
https://vite.new
|
||||||
|
https://nuxt.new
|
||||||
|
placeholder: Reproduction
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: bug-description
|
||||||
|
attributes:
|
||||||
|
label: Describe the bug
|
||||||
|
description: A clear and concise description of what the bug is. If you intend to submit a PR for this issue, tell us in the description. Thanks!
|
||||||
|
placeholder: Bug description
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
id: system-info
|
||||||
|
attributes:
|
||||||
|
label: System Info
|
||||||
|
description: Output of `npx envinfo --system --npmPackages vue,@vueuse/core,radix-vue,nuxt,shadcn-vue,shadcn-nuxt,unplugin-auto-import --binaries --browsers`
|
||||||
|
render: bash
|
||||||
|
placeholder: System, Binaries, Browsers
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: checkboxes
|
||||||
|
id: contributes
|
||||||
|
attributes:
|
||||||
|
label: Contributes
|
||||||
|
options:
|
||||||
|
- label: I am willing to submit a PR to fix this issue
|
||||||
|
- label: I am willing to submit a PR with failing tests
|
||||||
8
.gitea/ISSUE_TEMPLATE/config.yml
Normal file
8
.gitea/ISSUE_TEMPLATE/config.yml
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
blank_issues_enabled: true
|
||||||
|
contact_links:
|
||||||
|
# - name: 📚 Documentation
|
||||||
|
# url: https://www.radix-vue.com/
|
||||||
|
# about: Check the documentation for usage of Radix Vue.
|
||||||
|
- name: 🗨️ Discord
|
||||||
|
url: https://chat.radix-vue.com/
|
||||||
|
about: Join the Radix Vue Discord server.
|
||||||
27
.gitea/ISSUE_TEMPLATE/feature-request.yml
Normal file
27
.gitea/ISSUE_TEMPLATE/feature-request.yml
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
name: 🚀 Feature request
|
||||||
|
description: Suggest a feature that will improve shadcn-vue.
|
||||||
|
title: '[Feature]: '
|
||||||
|
labels: [feature request]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thank you for taking the time to fill out this feature request!
|
||||||
|
- type: textarea
|
||||||
|
id: feature-description
|
||||||
|
attributes:
|
||||||
|
label: Describe the feature
|
||||||
|
description: A clear and concise description of what you think would be a helpful addition to radix-vue, including the possible use cases and alternatives you have considered. If you have a working prototype or module that implements it, please include a link.
|
||||||
|
placeholder: Feature description
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: checkboxes
|
||||||
|
id: additional-info
|
||||||
|
attributes:
|
||||||
|
label: Additional information
|
||||||
|
description: Additional information that helps us decide how to proceed.
|
||||||
|
options:
|
||||||
|
- label: I intend to submit a PR for this feature.
|
||||||
|
- label: I have already implemented and/or tested this feature.
|
||||||
|
validations:
|
||||||
|
required: false
|
||||||
35
.gitea/PULL_REQUEST_TEMPLATE.md
Normal file
35
.gitea/PULL_REQUEST_TEMPLATE.md
Normal file
|
|
@ -0,0 +1,35 @@
|
||||||
|
<!---☝️ PR title should follow conventional commits (https://conventionalcommits.org) -->
|
||||||
|
|
||||||
|
### 🔗 Linked issue
|
||||||
|
|
||||||
|
<!-- Please ensure there is an open issue and mention its number as #123 -->
|
||||||
|
|
||||||
|
### ❓ Type of change
|
||||||
|
|
||||||
|
<!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply. -->
|
||||||
|
|
||||||
|
- [ ] 📖 Documentation (updates to the documentation, readme or JSdoc annotations)
|
||||||
|
- [ ] 🐞 Bug fix (a non-breaking change that fixes an issue)
|
||||||
|
- [ ] 👌 Enhancement (improving an existing functionality like performance)
|
||||||
|
- [ ] ✨ New feature (a non-breaking change that adds functionality)
|
||||||
|
- [ ] 🧹 Chore (updates to the build process or auxiliary tools and libraries)
|
||||||
|
- [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
|
||||||
|
|
||||||
|
### 📚 Description
|
||||||
|
|
||||||
|
<!-- Describe your changes in detail -->
|
||||||
|
<!-- Why is this change required? What problem does it solve? -->
|
||||||
|
<!-- If it resolves an open issue, please link to the issue here. For example "Resolves #1337" -->
|
||||||
|
|
||||||
|
### 📸 Screenshots (if appropriate)
|
||||||
|
|
||||||
|
<!-- Add screenshots to help explain the change. -->
|
||||||
|
|
||||||
|
### 📝 Checklist
|
||||||
|
|
||||||
|
<!-- Put an `x` in all the boxes that apply. -->
|
||||||
|
<!-- If your change requires a documentation PR, please link it appropriately -->
|
||||||
|
<!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
|
||||||
|
|
||||||
|
- [ ] I have linked an issue or discussion.
|
||||||
|
- [ ] I have updated the documentation accordingly.
|
||||||
17
.gitea/actions/setup/action.yml
Normal file
17
.gitea/actions/setup/action.yml
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
name: Setup
|
||||||
|
description: Installs Node, Enables Corepack and caches pnpm.
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Enable corepack
|
||||||
|
run: corepack enable
|
||||||
|
shell: bash
|
||||||
|
|
||||||
|
- name: Setup node & pnpm
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: lts/*
|
||||||
|
cache: pnpm
|
||||||
|
registry-url: 'https://registry.npmjs.org'
|
||||||
90
.gitea/workflows/publish.yaml
Normal file
90
.gitea/workflows/publish.yaml
Normal file
|
|
@ -0,0 +1,90 @@
|
||||||
|
name: Publish www
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
paths:
|
||||||
|
- 'apps/www/**'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
paths:
|
||||||
|
- 'apps/www/**'
|
||||||
|
pull_request_target:
|
||||||
|
types:
|
||||||
|
# When a created pull request from forked repo, it will be comment 'Should deploy to add label'
|
||||||
|
- opened
|
||||||
|
# When a labeled '🚀request-deploy' pull request from forked repo, it will be deploy to Cloudflare Pages
|
||||||
|
- labeled
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
# default contents: read & write (in forked repos, only read)
|
||||||
|
contents: write
|
||||||
|
# default deployments: read & write (in forked repos, only read)
|
||||||
|
deployments: write
|
||||||
|
# default pull-requests: read & write (in forked repos, only read)
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
name: Publish to Cloudflare Pages
|
||||||
|
# push event in main branch
|
||||||
|
# workflow_dispatch event
|
||||||
|
# pull_request event from not forked repo
|
||||||
|
# pull_request_target event with label "🚀request-deploy" from forked repo
|
||||||
|
if: ${{
|
||||||
|
github.event_name == 'push' ||
|
||||||
|
github.event_name == 'workflow_dispatch' ||
|
||||||
|
(github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == false) ||
|
||||||
|
(github.event_name == 'pull_request_target' &&
|
||||||
|
github.event.action == 'labeled' &&
|
||||||
|
github.event.pull_request.head.repo.fork == true &&
|
||||||
|
contains(github.event.label.name, '🚀request-deploy'))
|
||||||
|
}}
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup (Install Node & pnpm)
|
||||||
|
uses: ./.github/actions/setup
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm i --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Build www
|
||||||
|
run: pnpm build
|
||||||
|
|
||||||
|
# Run a action to publish docs
|
||||||
|
- name: Publish to Cloudflare Pages
|
||||||
|
uses: zernonia/cloudflare-pages-action@v0.0.7
|
||||||
|
with:
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
projectName: shadcn-vue
|
||||||
|
directory: .vitepress/dist
|
||||||
|
# Optional: Enable this if you want to have GitHub Deployments triggered
|
||||||
|
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
# Optional: Switch what branch you are publishing to.
|
||||||
|
# By default this will be the branch which triggered this workflow
|
||||||
|
branch: ${{ github.ref == 'refs/heads/dev' && 'dev' || format('refs/pull/{0}/merge', github.event.number) }}
|
||||||
|
# Optional: Change the working directory
|
||||||
|
workingDirectory: apps/www
|
||||||
|
wranglerVersion: '3'
|
||||||
|
|
||||||
|
- name: Remove label
|
||||||
|
if: ${{ github.event_name == 'pull_request_target' && contains(github.event.label.name, '🚀request-deploy') }}
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
script: |
|
||||||
|
github.rest.issues.removeLabel({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
name: ['🚀request-deploy']
|
||||||
|
})
|
||||||
39
.gitea/workflows/release.yaml
Normal file
39
.gitea/workflows/release.yaml
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
# .github/workflows/release.yml
|
||||||
|
|
||||||
|
name: Release
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Setup (Install Node & pnpm)
|
||||||
|
uses: ./.github/actions/setup
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm i --frozen-lockfile
|
||||||
|
|
||||||
|
- run: pnpm dlx changelogithub
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|
||||||
|
- name: Build CLI & Publish to npm
|
||||||
|
run: pnpm --filter shadcn-vue pub:release
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build Module & Publish to npm
|
||||||
|
run: pnpm --filter shadcn-nuxt pub:release
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
31
.gitea/workflows/test.yaml
Normal file
31
.gitea/workflows/test.yaml
Normal file
|
|
@ -0,0 +1,31 @@
|
||||||
|
name: Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
paths:
|
||||||
|
- 'packages/**'
|
||||||
|
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- dev
|
||||||
|
paths:
|
||||||
|
- 'packages/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup (Install Node & pnpm)
|
||||||
|
uses: ./.github/actions/setup
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm i --frozen-lockfile
|
||||||
|
|
||||||
|
- name: Test
|
||||||
|
run: pnpm test
|
||||||
37
.gitignore
vendored
Normal file
37
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
# Logs
|
||||||
|
logs
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
|
||||||
|
.nuxt
|
||||||
|
.env
|
||||||
|
node_modules
|
||||||
|
.DS_Store
|
||||||
|
dist
|
||||||
|
dist-ssr
|
||||||
|
coverage
|
||||||
|
*.local
|
||||||
|
|
||||||
|
/cypress/videos/
|
||||||
|
/cypress/screenshots/
|
||||||
|
|
||||||
|
# Editor directories and files
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/extensions.json
|
||||||
|
!.vscode/settings.json
|
||||||
|
.idea
|
||||||
|
*.suo
|
||||||
|
*.ntvs*
|
||||||
|
*.njsproj
|
||||||
|
*.sln
|
||||||
|
*.sw?
|
||||||
|
|
||||||
|
test-results/
|
||||||
|
playwright-report/
|
||||||
|
vite.config.ts.timestamp*
|
||||||
|
|
||||||
|
**/.vitepress/cache/*
|
||||||
7
.vscode/extensions.json
vendored
Normal file
7
.vscode/extensions.json
vendored
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"recommendations": [
|
||||||
|
"Vue.volar",
|
||||||
|
"dbaeumer.vscode-eslint",
|
||||||
|
"bradlc.vscode-tailwindcss"
|
||||||
|
]
|
||||||
|
}
|
||||||
42
.vscode/settings.json
vendored
Normal file
42
.vscode/settings.json
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
"vue.server.hybridMode": true,
|
||||||
|
"vue.server.includeLanguages": [
|
||||||
|
"vue",
|
||||||
|
"markdown"
|
||||||
|
],
|
||||||
|
"prettier.enable": false,
|
||||||
|
"editor.formatOnSave": false,
|
||||||
|
"editor.codeActionsOnSave": {
|
||||||
|
"source.fixAll.eslint": "explicit",
|
||||||
|
"source.organizeImports": "never"
|
||||||
|
},
|
||||||
|
"eslint.useFlatConfig": true,
|
||||||
|
"eslint.rules.customizations": [
|
||||||
|
{ "rule": "style/*", "severity": "off" },
|
||||||
|
{ "rule": "format/*", "severity": "off" },
|
||||||
|
{ "rule": "*-indent", "severity": "off" },
|
||||||
|
{ "rule": "*-spacing", "severity": "off" },
|
||||||
|
{ "rule": "*-spaces", "severity": "off" },
|
||||||
|
{ "rule": "*-order", "severity": "off" },
|
||||||
|
{ "rule": "*-dangle", "severity": "off" },
|
||||||
|
{ "rule": "*-newline", "severity": "off" },
|
||||||
|
{ "rule": "*quotes", "severity": "off" },
|
||||||
|
{ "rule": "*semi", "severity": "off" }
|
||||||
|
],
|
||||||
|
"eslint.validate": [
|
||||||
|
"javascript",
|
||||||
|
"javascriptreact",
|
||||||
|
"typescript",
|
||||||
|
"typescriptreact",
|
||||||
|
"vue",
|
||||||
|
"html",
|
||||||
|
"markdown",
|
||||||
|
"json",
|
||||||
|
"jsonc",
|
||||||
|
"yaml"
|
||||||
|
],
|
||||||
|
"tailwindCSS.experimental.classRegex": [
|
||||||
|
["cva\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"],
|
||||||
|
["cn\\(([^)]*)\\)", "[\"'`]([^\"'`]*).*?[\"'`]"]
|
||||||
|
]
|
||||||
|
}
|
||||||
157
CONTRIBUTING.md
Normal file
157
CONTRIBUTING.md
Normal file
|
|
@ -0,0 +1,157 @@
|
||||||
|
# Contributing
|
||||||
|
|
||||||
|
Thanks for your interest in contributing to shadcn-vue.com. We're happy to have you here.
|
||||||
|
|
||||||
|
Please take a moment to review this document before submitting your first pull request. We also strongly recommend that you check for open issues and pull requests to see if someone else is working on something similar.
|
||||||
|
|
||||||
|
If you need any help, feel free to reach out to the core team on [Discord](https://chat.radix-vue.com/).
|
||||||
|
|
||||||
|
## About this repository
|
||||||
|
|
||||||
|
This repository is a monorepo.
|
||||||
|
|
||||||
|
- We use [pnpm](https://pnpm.io) and [`workspaces`](https://pnpm.io/workspaces) for development.
|
||||||
|
|
||||||
|
## Structure
|
||||||
|
|
||||||
|
This repository is structured as follows:
|
||||||
|
|
||||||
|
```
|
||||||
|
apps
|
||||||
|
└── www
|
||||||
|
├── src
|
||||||
|
│ └── content
|
||||||
|
└── registry
|
||||||
|
├── default
|
||||||
|
│ ├── example
|
||||||
|
│ └── ui
|
||||||
|
└── new-york
|
||||||
|
├── example
|
||||||
|
└── ui
|
||||||
|
packages
|
||||||
|
└── cli
|
||||||
|
```
|
||||||
|
|
||||||
|
| Path | Description |
|
||||||
|
| ----------------------------| -------------------------------------------|
|
||||||
|
| `apps/www/.vitepress` | The Vitepress application for the website. |
|
||||||
|
| `apps/www/src/content` | The content for the website. |
|
||||||
|
| `apps/www/src/lib/registry` | The registry for the components. |
|
||||||
|
| `packages/cli` | The `shadcn-vue` package. |
|
||||||
|
|
||||||
|
## Development
|
||||||
|
|
||||||
|
### Start by cloning the repository:
|
||||||
|
|
||||||
|
```
|
||||||
|
git clone git@github.com:radix-vue/shadcn-vue.git
|
||||||
|
```
|
||||||
|
|
||||||
|
### Install dependencies
|
||||||
|
|
||||||
|
```
|
||||||
|
pnpm install
|
||||||
|
```
|
||||||
|
|
||||||
|
### Run a workspace
|
||||||
|
|
||||||
|
You can use the `pnpm --filter=[WORKSPACE]` command to start the development process for a workspace or some of the shortcut command that we have setup.
|
||||||
|
|
||||||
|
#### Examples
|
||||||
|
|
||||||
|
1. To run the `shadcn-vue.com` website:
|
||||||
|
|
||||||
|
```
|
||||||
|
pnpm dev
|
||||||
|
```
|
||||||
|
|
||||||
|
2. To run the `shadcn-vue` cli package:
|
||||||
|
|
||||||
|
```
|
||||||
|
pnpm dev:cli
|
||||||
|
```
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
The documentation for this project is located in the `www` workspace. You can run the documentation locally by running the following command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pnpm dev
|
||||||
|
```
|
||||||
|
|
||||||
|
Documentation is written using [md](https://vitepress.dev/guide/markdown). You can find the documentation files in the `apps/www/src/content` directory.
|
||||||
|
|
||||||
|
## Components
|
||||||
|
|
||||||
|
We use a registry system for developing components. You can find the source code for the components under `apps/www/src/lib/registry`. The components are organized by styles.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
apps
|
||||||
|
└── www
|
||||||
|
└── src
|
||||||
|
└── lib
|
||||||
|
└── registry
|
||||||
|
├── default
|
||||||
|
│ ├── example
|
||||||
|
│ └── ui
|
||||||
|
└── new-york
|
||||||
|
├── example
|
||||||
|
└── ui
|
||||||
|
```
|
||||||
|
|
||||||
|
When adding or modifying components, please ensure that:
|
||||||
|
|
||||||
|
1. You make the changes for every style.
|
||||||
|
2. You update the documentation.
|
||||||
|
3. You run `pnpm build:registry` to update the registry.
|
||||||
|
|
||||||
|
## Commit Convention
|
||||||
|
|
||||||
|
Before you create a Pull Request, please check whether your commits comply with
|
||||||
|
the commit conventions used in this repository.
|
||||||
|
|
||||||
|
When you create a commit we kindly ask you to follow the convention
|
||||||
|
`category(scope or module): message` in your commit message while using one of
|
||||||
|
the following categories:
|
||||||
|
|
||||||
|
- `feat / feature`: all changes that introduce completely new code or new
|
||||||
|
features
|
||||||
|
- `fix`: changes that fix a bug (ideally you will additionally reference an
|
||||||
|
issue if present)
|
||||||
|
- `refactor`: any code related change that is not a fix nor a feature
|
||||||
|
- `docs`: changing existing or creating new documentation (i.e. README, docs for
|
||||||
|
usage of a lib or cli usage)
|
||||||
|
- `build`: all changes regarding the build of the software, changes to
|
||||||
|
dependencies or the addition of new dependencies
|
||||||
|
- `test`: all changes regarding tests (adding new tests or changing existing
|
||||||
|
ones)
|
||||||
|
- `ci`: all changes regarding the configuration of continuous integration (i.e.
|
||||||
|
github actions, ci system)
|
||||||
|
- `chore`: all changes to the repository that do not fit into any of the above
|
||||||
|
categories
|
||||||
|
|
||||||
|
e.g. `feat(components): add new prop to the avatar component`
|
||||||
|
|
||||||
|
If you are interested in the detailed specification you can visit
|
||||||
|
https://www.conventionalcommits.org/ or check out the
|
||||||
|
[Angular Commit Message Guidelines](https://github.com/angular/angular/blob/22b96b9/CONTRIBUTING.md#-commit-message-guidelines).
|
||||||
|
|
||||||
|
## Requests for new components
|
||||||
|
|
||||||
|
If you have a request for a new component, please open a discussion on GitHub. We'll be happy to help you out.
|
||||||
|
|
||||||
|
## CLI
|
||||||
|
|
||||||
|
The `shadcn-vue` package is a CLI for adding components to your project. You can find the documentation for the CLI [here](https://shadcn-vue.com/docs/cli).
|
||||||
|
|
||||||
|
Any changes to the CLI should be made in the `packages/cli` directory. If you can, it would be great if you could add tests for your changes.
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
Tests are written using [Vitest](https://vitest.dev). You can run all the tests from the root of the repository.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pnpm test
|
||||||
|
```
|
||||||
|
|
||||||
|
Please ensure that the tests are passing when submitting a pull request. If you're adding new features, please include tests.
|
||||||
21
LICENSE
Normal file
21
LICENSE
Normal file
|
|
@ -0,0 +1,21 @@
|
||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2023 radix-vue
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
37
README.md
Normal file
37
README.md
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
<p align="center">
|
||||||
|
<img align="center" src="https://raw.githubusercontent.com/radix-vue/shadcn-vue/dev/apps/www/src/public/android-chrome-192x192.png" height="96" />
|
||||||
|
<h1 align="center">
|
||||||
|
shadcn-vue by Niklas Hermanns
|
||||||
|
</h1>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
[shadcn-vue](https://www.shadcn-vue.com/) is an unofficial community-led [Vue](https://vuejs.org) port of [shadcn/ui](https://ui.shadcn.com/).
|
||||||
|
|
||||||
|
> **Note** <br> **We are not affiliated with shadcn, but we did get his blessing prior to creating this project** <br> This is a project born out of the need for a similar project for the vue ecosystem.
|
||||||
|
|
||||||
|
Accessible and customizable components that you can copy and paste into your apps. Free. Open Source. **Use this to build your own component library**.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
[View documentation here](https://www.shadcn-vue.com/docs/introduction.html)
|
||||||
|
|
||||||
|
## Credits
|
||||||
|
|
||||||
|
All credits go to these open-source works and resources
|
||||||
|
|
||||||
|
- [Shadcn UI](https://ui.shadcn.com) for creating this beautiful project.
|
||||||
|
- [Shadcn Svelte](https://shadcn-svelte.com) for some inspiration for registry.
|
||||||
|
- [Radix Vue](https://radix-vue.com) for doing all the hard work to make sure components are accessible.
|
||||||
|
- [VueUse](https://vueuse.org) for providing many useful utilities.
|
||||||
|
|
||||||
|
- [ahmedmayara](https://github.com/ahmedmayara/shadcn-vue) for populating many components
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
|
Licensed under the [MIT license](https://github.com/shadcn/ui/blob/main/LICENSE.md).
|
||||||
|
|
||||||
|
## Actions
|
||||||
|
|
||||||
|
- Test
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
||||||
import s from"./ContentSlot.566dad3e.js";import{d as a,b as o,c as r,e as c,g as _,n as l,l as p}from"./entry.02b0a3f0.js";const d={class:"alert-content"},i=a({__name:"Alert",props:{type:{type:String,default:"info",validator(e){return["info","success","warning","danger","primary"].includes(e)}}},setup(e){return(t,u)=>{const n=s;return o(),r("div",{class:l(["alert",[e.type]])},[c("div",d,[_(n,{use:t.$slots.default,unwrap:"p"},null,8,["use"])])],2)}}});const v=p(i,[["__scopeId","data-v-ffb9cc56"]]);export{v as default};
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
||||||
import a from"./ContentSlot.566dad3e.js";import{d as s,b as o,c as _,g as r,n as c,l as d}from"./entry.02b0a3f0.js";const p=s({__name:"Badge",props:{type:{type:String,default:"info",validator(e){return["info","success","warning","danger","primary"].includes(e)}}},setup(e){return(n,l)=>{const t=a;return o(),_("span",{class:c([[e.type],"badge"])},[r(t,{use:n.$slots.default,unwrap:"p"},null,8,["use"])],2)}}});const i=d(p,[["__scopeId","data-v-35fd83d3"]]);export{i as default};
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
||||||
.block-hero[data-v-b7c89672]{padding:var(--space-20) 0}@media (min-width:640px){.block-hero[data-v-b7c89672]{padding:var(--space-24) 0}}@media (min-width:1024px){.block-hero[data-v-b7c89672]{padding:var(--space-32) 0}}.block-hero .layout[data-v-b7c89672]{display:grid;gap:var(--space-16)}@media (min-width:1024px){.block-hero .layout[data-v-b7c89672]{gap:var(--space-8);grid-template-columns:repeat(3,minmax(0,1fr))}.block-hero .content[data-v-b7c89672]{grid-column:span 2/span 2}}.block-hero .content .announce[data-v-b7c89672]{margin-bottom:var(--space-2);text-align:center}@media (min-width:1024px){.block-hero .content .announce[data-v-b7c89672]{text-align:start}}.block-hero .content .title[data-v-b7c89672]{color:var(--elements-text-primary-color-static);font-size:var(--text-4xl-fontSize);font-weight:var(--fontWeight-bold);letter-spacing:var(--letterSpacing-tight);line-height:var(--text-4xl-lineHeight);margin-bottom:var(--space-8);padding-left:var(--space-8);padding-right:var(--space-8);text-align:center}@media (min-width:640px){.block-hero .content .title[data-v-b7c89672]{font-size:var(--text-5xl-fontSize);line-height:var(--text-5xl-lineHeight)}}@media (min-width:1024px){.block-hero .content .title[data-v-b7c89672]{font-size:var(--text-6xl-fontSize);line-height:var(--text-6xl-lineHeight);padding-left:var(--space-0);padding-right:var(--space-0);text-align:start}}.block-hero .content .description[data-v-b7c89672]{color:var(--elements-text-secondary-color-static);font-size:var(--text-lg-fontSize);line-height:var(--text-lg-lineHeight);margin-bottom:var(--space-12);padding-left:var(--space-2);padding-right:var(--space-2);text-align:center}@media (min-width:1024px){.block-hero .content .description[data-v-b7c89672]{text-align:start}}.block-hero .content .extra[data-v-b7c89672]{display:flex;justify-content:center;margin-bottom:var(--space-16)}@media (min-width:1024px){.block-hero .content .extra[data-v-b7c89672]{justify-content:flex-start}}.block-hero .content .actions[data-v-b7c89672]{align-items:center;display:flex;flex-direction:column;gap:var(--space-4);justify-content:center}@media (min-width:640px){.block-hero .content .actions[data-v-b7c89672]{flex-direction:row;gap:var(--space-6)}}@media (min-width:1024px){.block-hero .content .actions[data-v-b7c89672]{justify-content:flex-start}}.block-hero .content .actions .cta[data-v-b7c89672]{margin-bottom:0}.block-hero .content .actions .secondary[data-v-b7c89672]{color:var(--elements-text-secondary-color-static);font-weight:var(--fontWeight-medium)}.block-hero .content .actions .secondary[data-v-b7c89672]:hover{color:var(--elements-text-secondary-color-hover)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import f from"./ContentSlot.566dad3e.js";import y from"./ButtonLink.d450cb05.js";import h from"./Terminal.5e810118.js";import k from"./VideoPlayer.7e09a35e.js";import{d as v,b as s,c as a,e as o,g as c,f as r,w as i,D as u,K as l,F as $,t as d,N as B,l as w}from"./entry.02b0a3f0.js";import"./index.fbfef7e6.js";import"./NuxtImg.vue.9289f73c.js";const g={class:"block-hero"},b={class:"layout"},H={class:"content"},N={key:0,class:"announce"},S={class:"title"},V={class:"description"},q={key:1,class:"extra"},C={class:"actions"},x=["href"],A={class:"support"},T=v({__name:"BlockHero",props:{cta:{type:Array,required:!1,default:()=>[]},secondary:{type:Array,required:!1,default:()=>[]},video:{type:String,required:!1,default:""},snippet:{type:[Array,String],required:!1,default:""}},setup(e){return(t,D)=>{const n=f,_=y,p=h,m=k;return s(),a("section",g,[o("div",b,[o("div",H,[t.$slots.announce?(s(),a("p",N,[c(n,{use:t.$slots.announce,unwrap:"p"},null,8,["use"])])):r("",!0),o("h1",S,[c(n,{use:t.$slots.title,unwrap:"p"},{default:i(()=>[u(" Hero Title ")]),_:1},8,["use"])]),o("p",V,[c(n,{use:t.$slots.description,unwrap:"p"},{default:i(()=>[u(" Hero default description. ")]),_:1},8,["use"])]),t.$slots.extra?(s(),a("div",q,[c(n,{use:t.$slots.extra,unwrap:"p"},null,8,["use"])])):r("",!0),o("div",C,[t.$slots.actions?(s(),l(n,{key:0,use:t.$slots.actions,unwrap:"p"},null,8,["use"])):(s(),a($,{key:1},[e.cta?(s(),l(_,{key:0,class:"cta",bold:"",size:"medium",href:e.cta[1]},{default:i(()=>[u(d(e.cta[0]),1)]),_:1},8,["href"])):r("",!0),e.secondary?(s(),a("a",{key:1,href:e.secondary[1],class:"secondary"},d(e.secondary[0]),9,x)):r("",!0)],64))])]),o("div",A,[B(t.$slots,"support",{},()=>[e.snippet?(s(),l(p,{key:0,content:e.snippet},null,8,["content"])):e.video?(s(),l(m,{key:1,src:e.video},null,8,["src"])):r("",!0)],!0)])])])}}});const j=w(T,[["__scopeId","data-v-b7c89672"]]);export{j as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.button-link[data-v-614b3880]{--button-primary:var(---ym9-button-primary);--button-secondary:var(---a23-button-secondary);align-items:center;background-color:var(---ym9-button-primary);background-color:var(--button-primary);border:1px solid transparent;border-radius:var(--radii-md);color:var(--color-white);display:inline-flex;flex:none;font-weight:var(--fontWeight-bold);transition:color .1s ease-in-out}.button-link[data-v-614b3880]:hover{background-color:var(--button-secondary)}.button-link[data-v-614b3880]:focus{border:1px solid var(--button-primary)}.button-link .icon[data-v-614b3880]{-webkit-margin-end:var(--space-1);margin-inline-end:var(--space-1)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d,a1 as m,L as a,M as f,b as o,K as s,w as g,f as x,g as b,n as S,I as h,O as y,E as k,l as z}from"./entry.02b0a3f0.js";import H from"./ContentSlot.566dad3e.js";const $=d({__name:"ButtonLink",props:{blank:{type:Boolean,required:!1,default:!1},color:m("primary"),href:{type:String,required:!0,default:""},icon:{type:String,default:""},size:{required:!1,type:[String,Object],default:"medium"},transparent:{required:!1,type:[Boolean,Object],default:!1}},setup(e){const n=e,i=a(()=>((t=n)=>`{color.${t.color}.600}`)()),l=a(()=>((t=n)=>`{color.${t.color}.500}`)()),c={size:{small:{padding:"{space.2} {space.4}",fontSize:"{text.sm.fontSize}",lineHeight:"{text.sm.lineHeight}"},medium:{padding:"{space.rem.625} {space.5}",fontSize:"{text.base.fontSize}",lineHeight:"{text.base.lineHeight}"},large:{padding:"{space.3} {space.6}",fontSize:"{text.lg.fontSize}",lineHeight:"{text.lg.lineHeight}"},giant:{padding:"{space.4} {space.8}",fontSize:"{text.lg.fontSize}",lineHeight:"{text.lg.lineHeight}"}},transparent:{true:{backgroundColor:"transparent"}}},{$pinceau:r}=f(n,c,{_YM9_buttonPrimary:i,_A23_buttonSecondary:l});return(t,B)=>{const u=y,_=H,p=k;return o(),s(p,{class:S(["button-link",[h(r)]]),to:e.href,target:e.blank?"_blank":void 0},{default:g(()=>[e.icon?(o(),s(u,{key:0,name:e.icon},null,8,["name"])):x("",!0),b(_,{use:t.$slots.default,unwrap:"p ul li"},null,8,["use"])]),_:1},8,["to","target","class"])}}});const v=z($,[["__scopeId","data-v-614b3880"]]);export{v as default};
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
||||||
import p from"./ContentSlot.566dad3e.js";import{d,r as l,b as m,c as f,e as a,g as o,n as c,I as r,ai as v,aj as g,O as h,l as y}from"./entry.02b0a3f0.js";const C={class:"summary"},V={class:"content"},w=d({__name:"Callout",props:{type:{type:String,default:"info",validator(s){return["info","success","warning","danger","primary"].includes(s)}},modelValue:{required:!1,default:()=>l(!1)}},emits:["update:modelValue"],setup(s,{emit:u}){const e=l(s.modelValue),i=()=>{e.value=!e.value,u("update:modelValue",e.value)};return(t,k)=>{const n=p,_=h;return m(),f("div",{class:c(["callout",[s.type]])},[a("span",{class:"preview",onClick:i},[a("span",C,[o(n,{use:t.$slots.summary},null,8,["use"])]),o(_,{name:"heroicons-outline:chevron-right",class:c(["icon",[r(e)&&"rotate"]])},null,8,["class"])]),v(a("div",V,[o(n,{use:t.$slots.content},null,8,["use"])],512),[[g,r(e)]])],2)}}});const I=y(w,[["__scopeId","data-v-961b73c7"]]);export{I as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.card[data-v-7b5b6b25]{-webkit-backdrop-filter:var(--elements-backdrop-filter);backdrop-filter:var(--elements-backdrop-filter);background:var(--elements-backdrop-background);border:1px solid var(--elements-border-primary-static);border-radius:var(--radii-xl);display:block;padding:var(--space-8);position:relative;width:100%}.card .icon[data-v-7b5b6b25]{display:inline-block;height:var(--space-6);width:var(--space-6)}.card .icon[data-v-7b5b6b25],.card .title[data-v-7b5b6b25]{margin-bottom:var(--space-2)}.card .title[data-v-7b5b6b25]{color:var(--elements-text-primary-color-static);font-size:var(--text-lg-fontSize);font-weight:var(--fontWeight-semibold);line-height:var(--text-lg-lineHeight)}.card .description[data-v-7b5b6b25]{color:var(--elements-text-secondary-color-static);font-size:var(--text-sm-fontSize);font-weight:var(--fontWeight-medium);line-height:var(--text-sm-lineHeight)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d,b as a,c as l,K as i,f as p,N as u,e as t,g as n,w as c,D as r,O as m,l as f}from"./entry.02b0a3f0.js";import C from"./ContentSlot.566dad3e.js";const b={class:"card"},h={class:"title"},v={class:"description"},N=d({__name:"Card",props:{icon:{type:String,default:""}},setup(s){return(e,k)=>{const _=m,o=C;return a(),l("div",b,[s.icon?(a(),i(_,{key:0,name:s.icon},null,8,["name"])):p("",!0),u(e.$slots,"default",{},void 0,!0),t("div",null,[t("h3",h,[n(o,{use:e.$slots.title,unwrap:"p"},{default:c(()=>[r(" Card title ")]),_:1},8,["use"])]),t("p",v,[n(o,{use:e.$slots.description,unwrap:"p"},{default:c(()=>[r(" Card description ")]),_:1},8,["use"])])])])}}});const y=f(N,[["__scopeId","data-v-7b5b6b25"]]);export{y as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.card-grid[data-v-e09c77a3]{padding-bottom:var(--space-20);position:relative}@media (min-width:640px){.card-grid[data-v-e09c77a3]{padding-bottom:var(--space-24)}}@media (min-width:1024px){.card-grid[data-v-e09c77a3]{padding-bottom:var(--space-32)}}.card-grid .title[data-v-e09c77a3]{color:var(--elements-text-primary-color-static);font-size:var(--text-3xl-fontSize);font-weight:var(--fontWeight-bold);letter-spacing:var(--letterSpacing-tight);line-height:var(--text-3xl-lineHeight);margin-bottom:var(--space-8)}@media (min-width:640px){.card-grid .title[data-v-e09c77a3]{font-size:var(--text-4xl-fontSize);line-height:var(--text-4xl-lineHeight)}}.card-grid .layout[data-v-e09c77a3]{display:grid;gap:var(--space-4);text-align:start}@media (min-width:640px){.card-grid .layout[data-v-e09c77a3]{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (min-width:1024px){.card-grid .layout[data-v-e09c77a3]{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (min-width:1536px){.card-grid .layout[data-v-e09c77a3]{gap:var(--space-8)}}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import r from"./ContentSlot.566dad3e.js";import{d as n,b as _,c as d,g as s,e as o,w as c,D as l,t as i,N as u,l as p}from"./entry.02b0a3f0.js";const f={class:"card-grid"},m={class:"title"},h={class:"layout"},C=n({__name:"CardGrid",props:{title:{type:String,default:"Features"}},setup(a){return(e,g)=>{const t=r;return _(),d("section",f,[s(t,{use:e.$slots.root},null,8,["use"]),o("h2",m,[s(t,{use:e.$slots.title,unwrap:"p"},{default:c(()=>[l(i(a.title),1)]),_:1},8,["use"])]),o("div",h,[u(e.$slots,"default",{},void 0,!0)])])}}});const N=p(C,[["__scopeId","data-v-e09c77a3"]]);export{N as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as t,b as a,c as d,N as l,n as s,l as c}from"./entry.02b0a3f0.js";const n=t({__name:"CodeBlock",props:{label:{type:String,required:!0},active:{type:Boolean,default:!1},preview:{type:Boolean,default:!1}},setup(e){return(o,r)=>(a(),d("div",{class:s(["code-block",{active:e.active,"rounded-lg p-4":e.preview}])},[l(o.$slots,"default",{},void 0,!0)],2))}});const p=c(n,[["__scopeId","data-v-084dd8bd"]]);export{p as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.code-block[data-v-084dd8bd]{display:none}.code-block.active[data-v-084dd8bd]{display:block}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import o from"./TabsHeader.03d7ad13.js";import{d as v,W as d,l as u}from"./entry.02b0a3f0.js";const _=(t,r)=>t.type&&t.type.tag&&t.type.tag===r,b=v({data(){return{activeTabIndex:0,counter:0}},render(){var c,p;const t=((p=(c=this.$slots)==null?void 0:c.default)==null?void 0:p.call(c))||[],r=t.map((e,i)=>{var a,n,s;return{label:((a=e==null?void 0:e.props)==null?void 0:a.filename)||((n=e==null?void 0:e.props)==null?void 0:n.label)||`${i}`,active:((s=e==null?void 0:e.props)==null?void 0:s.active)||!1,component:e}});return d("div",{class:{"code-group":!0,"first-tab":this.activeTabIndex===0}},[d(o,{ref:"tabs-header",activeTabIndex:this.activeTabIndex,tabs:r,"onUpdate:activeTabIndex":e=>this.activeTabIndex=e}),d("div",{class:"code-group-content",text:this.activeTabIndex},t.map((e,i)=>{var a,n;return d("div",{style:{display:i===this.activeTabIndex?"block":"none"},class:{"":!_(e,"code")}},[_(e,"code")?e:d("div",{class:{"preview-canvas":!0}},[((n=(a=e.children)==null?void 0:a.default)==null?void 0:n.call(a))||e.children])])}))])}});const m=u(b,[["__scopeId","data-v-577cdd71"]]);export{m as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.code-group[data-v-577cdd71]{border:1px solid var(--elements-border-secondary-static);border-radius:var(--radii-md);overflow:hidden}.code-group[data-v-577cdd71] .prose-code{border:none;border-radius:0;margin:0}.code-group[data-v-577cdd71] .filename{display:none}.code-group .preview-canvas[data-v-577cdd71]{padding:var(--space-4)}.code-group .preview-canvas[data-v-577cdd71]:has(.sandbox){padding:0}.code-group .preview-canvas[data-v-577cdd71]:has(.sandbox) .sandbox{border:0;border-radius:0}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{u as b}from"./asyncData.84fe43db.js";import{I as m,L as a,d as _,M as S,b as $,c as I,n as w,p as P,j as C,e as x,l as u,Z as E,r as j,W as r}from"./entry.02b0a3f0.js";import D from"./ComponentPlaygroundData.3fad3127.js";import"./TabsHeader.03d7ad13.js";import"./ComponentPlaygroundProps.050a351b.js";import"./ProseH4.1a7cc7d0.js";import"./ProseCodeInline.d7e621c3.js";import"./Badge.74e5cfac.js";import"./ContentSlot.566dad3e.js";import"./ProseP.50c79610.js";import"./index.fbfef7e6.js";import"./ComponentPlaygroundSlots.vue.8e7754ff.js";import"./ComponentPlaygroundTokens.vue.b6dfa16a.js";async function z(o){const e=m(o);{const{data:n}=await b(`nuxt-component-meta${e?`-${e}`:""}`,()=>$fetch(`/api/component-meta${e?`/${e}`:""}`));return a(()=>n.value)}}const B=o=>(P("data-v-a2bd7d25"),o=o(),C(),o),N=B(()=>x("div",{class:"ellipsis-item"},null,-1)),V=[N],W=_({__name:"Ellipsis",props:{width:{type:String,default:"10rem"},height:{type:String,default:"10rem"},zIndex:{type:String,default:"10"},top:{type:String,default:"0"},left:{type:String,default:"auto"},right:{type:String,default:"auto"},blur:{type:String,default:"50px"},colors:{type:Array,default:()=>["rgba(0, 71, 225, 0.22)","rgba(26, 214, 255, 0.22)","rgba(0, 220, 130, 0.22)"]}},setup(o){const e=o,n=a(()=>((t=e)=>t.top)()),s=a(()=>((t=e)=>t.left)()),c=a(()=>((t=e)=>t.right)()),i=a(()=>((t=e)=>t.zIndex)()),f=a(()=>((t=e)=>t.width)()),g=a(()=>((t=e)=>t.height)()),y=a(()=>((t=e)=>`blur(${t.blur})`)()),h=a(()=>((t=e)=>{var l,d,p;return`linear-gradient(97.62deg, ${(l=t==null?void 0:t.colors)==null?void 0:l[0]} 2.27%, ${(d=t==null?void 0:t.colors)==null?void 0:d[1]} 50.88%, ${(p=t==null?void 0:t.colors)==null?void 0:p[2]} 98.48%)`})()),{$pinceau:v}=S(e,void 0,{_cCN_top:n,_eih_insetInlineStart:s,_IfB_insetInlineEnd:c,_SsE_zIndex:i,_wj8_maxWidth:f,_t33_height:g,_Jfd_filter:y,_yUj_background:h});return(t,l)=>($(),I("div",{class:w(["ellipsis",[m(v)]])},V,2))}});const k=u(W,[["__scopeId","data-v-a2bd7d25"]]),q=_({props:{component:{type:String,required:!0},props:{type:Object,required:!1,default:()=>({})}},async setup(o){const e=a(()=>E(o.component)),n=j({...o.props}),s=await z(o.component);return{as:e,formProps:n,componentData:s}},render(o){const e=Object.entries(this.$slots).reduce((n,[s,c])=>{if(s.startsWith("component-")){const i=s.replace("component-","");n[i]=c}return n},{});return r("div",{class:"component-playground"},[r("div",{class:"component-playground-wrapper"},[r(k,{class:"component-playground-ellipsis",blur:"5vw",height:"100%",width:"100%"}),r(o.as,{...o.formProps,class:"component-playground-component"},{...e})]),r(D,{modelValue:o.formProps,componentData:o.componentData,"onUpdate:modelValue":n=>o.formProps=n})])}});const T=u(q,[["__scopeId","data-v-ffdff82a"]]);export{T as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.ellipsis[data-v-a2bd7d25]{filter:var(---jfd-filter);height:var(---t33-height);inset-inline-end:var(---if-b-inset-inline-end);inset-inline-start:var(---eih-inset-inline-start);max-width:var(---wj8-max-width);pointer-events:none;position:absolute;top:var(---c-cn-top);width:-webkit-fill-available;z-index:var(---ss-e-z-index)}.ellipsis .ellipsis-item[data-v-a2bd7d25]{background:var(---y-uj-background);height:100%;width:100%}.component-playground[data-v-ffdff82a]{border:1px solid var(--color-gray-200);border-radius:var(--radii-lg);overflow:hidden}:root.dark .component-playground[data-v-ffdff82a]{border:1px solid var(--color-gray-800)}.component-playground .component-playground-wrapper[data-v-ffdff82a]{background:linear-gradient(330deg,var(--color-gray-200) 0,var(--color-gray-100) 100%);overflow:hidden;padding:var(--space-8);position:relative}:root.dark .component-playground .component-playground-wrapper[data-v-ffdff82a]{background:linear-gradient(330deg,var(--color-gray-900) 0,var(--color-gray-800) 100%)}.component-playground .component-playground-wrapper .component-playground-ellipsis[data-v-ffdff82a]{z-index:1}.component-playground .component-playground-wrapper .component-playground-component[data-v-ffdff82a]{z-index:50}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import b from"./TabsHeader.03d7ad13.js";import g from"./ComponentPlaygroundProps.050a351b.js";import{_ as v}from"./ComponentPlaygroundSlots.vue.8e7754ff.js";import{_ as x}from"./ComponentPlaygroundTokens.vue.b6dfa16a.js";import{a as D}from"./index.fbfef7e6.js";import{d as V,r as k,b as n,c as C,g as P,I as o,K as m,am as T,f as l,l as I}from"./entry.02b0a3f0.js";import"./ProseH4.1a7cc7d0.js";import"./ProseCodeInline.d7e621c3.js";import"./Badge.74e5cfac.js";import"./ContentSlot.566dad3e.js";import"./ProseP.50c79610.js";const B={class:"component-playground-data"},j=V({__name:"ComponentPlaygroundData",props:{modelValue:{type:Object,required:!1,default:()=>({})},componentData:{type:Object,required:!1,default:()=>({})}},emits:["update:modelValue"],setup(t,{emit:p}){const a=D(t,"modelValue",p),e=k(0),r=[{label:"Props"},{label:"Slots"},{label:"Design Tokens"}],d=s=>e.value=s;return(s,c)=>{const u=b,_=g,i=v,f=x;return n(),C("div",B,[P(u,{"active-tab-index":o(e),tabs:r,"onUpdate:activeTabIndex":d},null,8,["active-tab-index"]),o(e)===0?(n(),m(_,{key:0,modelValue:o(a),"onUpdate:modelValue":c[0]||(c[0]=y=>T(a)?a.value=y:null),"component-data":t.componentData},null,8,["modelValue","component-data"])):l("",!0),o(e)===1?(n(),m(i,{key:1,"component-data":t.componentData},null,8,["component-data"])):l("",!0),o(e)===2?(n(),m(f,{key:2,"component-data":t.componentData},null,8,["component-data"])):l("",!0)])}}});const w=I(j,[["__scopeId","data-v-ef4d9ec9"]]);export{w as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.component-playground-data .component-playground-data-section[data-v-ef4d9ec9]{padding:var(--space-4)}:root.dark .component-playground-data .component-playground-data-section[data-v-ef4d9ec9]{background-color:var(--color-gray-900)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import k from"./ProseH4.1a7cc7d0.js";import B from"./ProseCodeInline.d7e621c3.js";import D from"./Badge.74e5cfac.js";import q from"./ProseP.50c79610.js";import{a as N}from"./index.fbfef7e6.js";import{d as b,L as I,b as o,c,F as j,aa as w,I as d,e as m,g as l,w as s,D as _,t as u,K as i,f as p,l as F}from"./entry.02b0a3f0.js";import"./ContentSlot.566dad3e.js";const L={class:"component-playground-data-section"},O=["id"],E=["value","onChange"],H=b({__name:"ComponentPlaygroundProps",props:{modelValue:{type:Object,required:!0},componentData:{type:Object,required:!0}},emits:["update:modelValue"],setup(f,{emit:g}){const a=f,r=N(a,"modelValue",g),y=(t,n)=>{r.value={...r.value,[n]:t.target.value}},v=I(()=>{var t,n;return(n=(t=a==null?void 0:a.componentData)==null?void 0:t.meta)==null?void 0:n.props});return(t,n)=>{const x=k,C=B,P=D,h=q;return o(),c("div",L,[(o(!0),c(j,null,w(d(v),e=>(o(),c("div",{key:e.name},[m("div",{id:e.name,class:"prop-title"},[l(x,{id:e.name},{default:s(()=>[_(u(e.name),1)]),_:2},1032,["id"]),m("span",null,[l(C,null,{default:s(()=>[_(u(e.type),1)]),_:2},1024),e.required?p("",!0):(o(),i(P,{key:0},{default:s(()=>[_(" Required ")]),_:1}))])],8,O),e.description?(o(),i(h,{key:0},{default:s(()=>[_(u(e.description),1)]),_:2},1024)):p("",!0),m("input",{value:d(r)[e.name],onChange:V=>y(V,e.name)},null,40,E)]))),128))])}}});const A=F(H,[["__scopeId","data-v-4939fa9a"]]);export{A as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.prop-title[data-v-4939fa9a]{align-items:flex-start;display:flex;flex-direction:column;justify-content:flex-start;width:100%}.prop-title[data-v-4939fa9a],.prop-title h4[data-v-4939fa9a]{margin-bottom:var(--space-4);margin-top:var(--space-4)}.prop-title h4[data-v-4939fa9a]{font-size:var(--fontSize-2xl);font-weight:var(--fontWeight-black);line-height:1}@mq .md{.prop-title h4[data-v-4939fa9a]{margin-bottom:var(--space-0);margin-top:var(--space-0)}}.prop-title span[data-v-4939fa9a]{align-items:center;display:flex;gap:var(--space-4)}@mq .md{.prop-title[data-v-4939fa9a]{flex-direction:row;justify-content:space-between}}input[data-v-4939fa9a]{border:1px solid var(--color-gray-200);border-radius:var(--radii-sm);padding:var(--space-1) var(--space-2)}:root.dark input[data-v-4939fa9a]{border:1px solid var(--color-gray-800)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{_ as m}from"./ComponentPlaygroundSlots.vue.8e7754ff.js";import"./entry.02b0a3f0.js";export{m as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as t,b as n,c as o,e as a,t as s}from"./entry.02b0a3f0.js";const r={class:"component-playground-data-section"},i=t({__name:"ComponentPlaygroundSlots",props:{componentData:{type:Object,required:!0}},setup(e){return(c,p)=>(n(),o("div",r,[a("pre",null,s(JSON.stringify(e.componentData,null,2)),1)]))}});export{i as _};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{_ as m}from"./ComponentPlaygroundTokens.vue.b6dfa16a.js";import"./entry.02b0a3f0.js";export{m as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as t,b as o,c as n,t as a}from"./entry.02b0a3f0.js";const c={class:"component-playground-data-section"},m=t({__name:"ComponentPlaygroundTokens",props:{componentData:{type:Object,required:!0}},setup(e){return(s,r)=>(o(),n("div",c,a(e.componentData),1))}});export{m as _};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as s,X as y,ao as g,i as v,W as o,H as p}from"./entry.02b0a3f0.js";import w from"./ContentRenderer.94168147.js";import C from"./ContentQuery.8426d3f5.js";import"./ContentRendererMarkdown.7471903e.js";import"./asyncData.84fe43db.js";const x=s({name:"ContentDoc",props:{tag:{type:String,required:!1,default:"div"},excerpt:{type:Boolean,default:!1},path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0},head:{type:Boolean,required:!1,default:!0}},render(f){const e=y(),{tag:d,excerpt:a,path:m,query:r,head:i}=f,c={...r||{},path:m||(r==null?void 0:r.path)||g(v().path),find:"one"},l=(t,n)=>o("pre",null,JSON.stringify({message:"You should use slots with <ContentDoc>",slot:t,data:n},null,2));return o(C,c,{default:e!=null&&e.default?({data:t,refresh:n,isPartial:h})=>{var u;return i&&p(t),(u=e.default)==null?void 0:u.call(e,{doc:t,refresh:n,isPartial:h,excerpt:a,...this.$attrs})}:({data:t})=>(i&&p(t),o(w,{value:t,excerpt:a,tag:d,...this.$attrs},{empty:n=>e!=null&&e.empty?e.empty(n):l("default",t)})),empty:t=>{var n;return((n=e==null?void 0:e.empty)==null?void 0:n.call(e,t))||o("p",null,"Document is empty, overwrite this content with #empty slot in <ContentDoc>.")},"not-found":t=>{var n;return((n=e==null?void 0:e["not-found"])==null?void 0:n.call(e,t))||o("p",null,"Document not found, overwrite this content with #not-found slot in <ContentDoc>.")}})}});export{x as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import n from"./ContentQuery.8426d3f5.js";import{d as c,X as l,W as f}from"./entry.02b0a3f0.js";import"./asyncData.84fe43db.js";const r=(u,t)=>f("pre",null,JSON.stringify({message:"You should use slots with <ContentList>",slot:u,data:t},null,2)),C=c({name:"ContentList",props:{path:{type:String,required:!1,default:void 0},query:{type:Object,required:!1,default:void 0}},render(u){const t=l(),{path:p,query:a}=u,d={...a||{},path:p||(a==null?void 0:a.path)||"/"};return f(n,d,{default:t!=null&&t.default?({data:e,refresh:o,isPartial:m})=>t.default({list:e,refresh:o,isPartial:m,...this.$attrs}):e=>r("default",e.data),empty:e=>t!=null&&t.empty?t.empty(e):r("default",e==null?void 0:e.data),"not-found":e=>{var o;return t!=null&&t["not-found"]?(o=t==null?void 0:t["not-found"])==null?void 0:o.call(t,e):r("not-found",e==null?void 0:e.data)}})}});export{C as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{u as d}from"./asyncData.84fe43db.js";import{d as l,ap as f,L as p,q as v,G as m,aq as g,X as h,ar as y,W as s,E as _}from"./entry.02b0a3f0.js";const L=l({name:"ContentNavigation",props:{query:{type:Object,required:!1,default:void 0}},async setup(u){const{query:a}=f(u),n=p(()=>{var t;return typeof((t=a.value)==null?void 0:t.params)=="function"?a.value.params():a.value});if(!n.value&&v("dd-navigation").value){const{navigation:t}=m();return{navigation:t}}const{data:o}=await d(`content-navigation-${g(n.value)}`,()=>y(n.value));return{navigation:o}},render(u){const a=h(),{navigation:n}=u,o=e=>s(_,{to:e._path},()=>e.title),t=(e,i)=>s("ul",i?{"data-level":i}:null,e.map(r=>r.children?s("li",null,[o(r),t(r.children,i+1)]):s("li",null,o(r)))),c=e=>t(e,0);return a!=null&&a.default?a.default({navigation:n,...this.$attrs}):c(n)}});export{L as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{u as q}from"./asyncData.84fe43db.js";import{d as g,ap as S,L as b,R as C,aq as k,X as N,s as c,W as _}from"./entry.02b0a3f0.js";const Q=g({name:"ContentQuery",props:{path:{type:String,required:!1,default:void 0},only:{type:Array,required:!1,default:void 0},without:{type:Array,required:!1,default:void 0},where:{type:Object,required:!1,default:void 0},sort:{type:Object,required:!1,default:void 0},limit:{type:Number,required:!1,default:void 0},skip:{type:Number,required:!1,default:void 0},locale:{type:String,required:!1,default:void 0},find:{type:String,required:!1,default:void 0}},async setup(a){const{path:t,only:r,without:n,where:i,sort:l,limit:o,skip:s,locale:f,find:d}=S(a),h=b(()=>{var e;return(e=t.value)==null?void 0:e.includes("/_")});C(()=>a,()=>p(),{deep:!0});const{data:v,refresh:p}=await q(`content-query-${k(a)}`,()=>{let e;return t.value?e=c(t.value):e=c(),r.value&&(e=e.only(r.value)),n.value&&(e=e.without(n.value)),i.value&&(e=e.where(i.value)),l.value&&(e=e.sort(l.value)),o.value&&(e=e.limit(o.value)),s.value&&(e=e.skip(s.value)),f.value&&(e=e.where({_locale:f.value})),d.value==="one"?e.findOne():d.value==="surround"?t.value?e.findSurround(t.value):(console.warn("[Content] Surround queries requires `path` prop to be set."),console.warn("[Content] Query without `path` will return regular `find()` results."),e.find()):e.find()});return{isPartial:h,data:v,refresh:p}},render(a){var y;const t=N(),{data:r,refresh:n,isPartial:i,path:l,only:o,without:s,where:f,sort:d,limit:h,skip:v,locale:p,find:e}=a,u={path:l,only:o,without:s,where:f,sort:d,limit:h,skip:v,locale:p,find:e};if(u.find==="one"){if(!r&&(t!=null&&t["not-found"]))return t["not-found"]({props:u,...this.$attrs});if(t!=null&&t.empty&&(r==null?void 0:r._type)==="markdown"&&!((y=r==null?void 0:r.body)!=null&&y.children.length))return t.empty({props:u,...this.$attrs})}else if((!r||!r.length)&&t!=null&&t["not-found"])return t["not-found"]({props:u,...this.$attrs});return t!=null&&t.default?t.default({data:r,refresh:n,isPartial:i,props:u,...this.$attrs}):((m,w)=>_("pre",null,JSON.stringify({message:"You should use slots with <ContentQuery>!",slot:m,data:w},null,2)))("default",{data:r,props:u,isPartial:i})}});export{Q as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import c from"./ContentRendererMarkdown.7471903e.js";import{d as l,R as s,X as m,W as f}from"./entry.02b0a3f0.js";const x=l({name:"ContentRenderer",props:{value:{type:Object,required:!1,default:()=>({})},excerpt:{type:Boolean,default:!1},tag:{type:String,default:"div"}},setup(t){s(()=>t.excerpt,n=>{var e,r,a;n&&!((e=t.value)!=null&&e.excerpt)&&(console.warn(`No excerpt found for document content/${(r=t==null?void 0:t.value)==null?void 0:r._path}.${(a=t==null?void 0:t.value)==null?void 0:a._extension}!`),console.warn("Make sure to use <!--more--> in your content if you want to use excerpt feature."))},{immediate:!0})},render(t){var u,i,o,d;const n=m(),{value:e,excerpt:r,tag:a}=t;return!((i=(u=e==null?void 0:e.body)==null?void 0:u.children)!=null&&i.length)&&(n!=null&&n.empty)?n.empty({value:e,excerpt:r,tag:a,...this.$attrs}):n!=null&&n.default?n.default({value:e,excerpt:r,tag:a,...this.$attrs}):(e==null?void 0:e._type)==="markdown"&&((d=(o=e==null?void 0:e.body)==null?void 0:o.children)!=null&&d.length)?f(c,{value:e,excerpt:r,tag:a,...this.$attrs}):f("pre",null,JSON.stringify({message:"You should use slots with <ContentRenderer>",value:e,excerpt:r,tag:a},null,2))}});export{x as default};
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -1 +0,0 @@
|
||||||
import{d as g,X as h,L as c,W as p,a2 as y,V as w}from"./entry.02b0a3f0.js";const C=g({name:"ContentSlot",functional:!0,props:{use:{type:Function,default:void 0},unwrap:{type:[Boolean,String],default:!1}},setup(e){const{parent:u}=w(),{between:o,default:l}=h(),i=c(()=>typeof e.unwrap=="string"?e.unwrap.split(" "):["*"]);return{fallbackSlot:l,tags:i,between:o,parent:u}},render({use:e,unwrap:u,fallbackSlot:o,between:l,tags:i,parent:n}){var f;try{let r=e;if(typeof e=="string"&&(r=(n==null?void 0:n.slots[e])||((f=n==null?void 0:n.parent)==null?void 0:f.slots[e]),console.warn(`Please set :use="$slots.${e}" in <ContentSlot> component to enable reactivity`)),!r)return o?o():p("div");if(!u)return[r()];const{flatUnwrap:d}=y(),a=d(r(),i);return l?a.flatMap((t,s)=>s===0?[t]:[l(),t]):a.reduce((t,s)=>(typeof s.children=="string"?typeof t[t.length-1]=="string"?t[t.length-1]+=s.children:t.push(s.children):t.push(s),t),[])}catch{return p("div")}}});export{C as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as l,r as i,b as e,c as u,I as d,K as n,O as m}from"./entry.02b0a3f0.js";import{u as f}from"./index.fbfef7e6.js";const k=l({__name:"CopyButton",props:{content:{type:String,default:""}},setup(c){const a=c,{copy:s}=f(),o=i("init"),p=r=>{s(a.content).then(()=>{o.value="copied",setTimeout(()=>{o.value="init"},1e3)}).catch(()=>{console.warn("Couldn't copy to clipboard!")})};return(r,y)=>{const t=m;return e(),u("button",{class:"copy rounded-lg bg-gray-800 px-2 py-2 font-mono text-xs font-semibold leading-none text-gray-400 focus:outline-none dark:bg-black",onClick:p},[d(o)==="copied"?(e(),n(t,{key:0,name:"fa-check",class:"h-4 w-4"})):(e(),n(t,{key:1,name:"fa-copy",class:"h-4 w-4"}))])}}});export{k as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as l,a3 as r,b as o,c as u,I as n,K as c,w as d,g as i,a4 as m,O as f,E as k,p as x,j as h,e as I,l as v}from"./entry.02b0a3f0.js";const g=e=>(x("data-v-f0e4c554"),e=e(),h(),e),w=g(()=>I("span",{class:"text"},"Go back",-1)),y=l({__name:"DocsAside",setup(e){const{tree:s}=r();return(B,D)=>{var t;const _=m,a=f,p=k;return o(),u("nav",null,[((t=n(s))==null?void 0:t.length)>0?(o(),c(_,{key:0,links:n(s)},null,8,["links"])):(o(),c(p,{key:1,to:"/",class:"go-back-link"},{default:d(()=>[i(a,{name:"heroicons-outline:arrow-left",class:"icon"}),w]),_:1}))])}}});const A=v(y,[["__scopeId","data-v-f0e4c554"]]);export{A as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.go-back-link[data-v-f0e4c554]{align-items:center;color:var(--color-gray-500);cursor:pointer;display:flex;font-size:var(--text-sm-fontSize);line-height:var(--text-sm-lineHeight)}.go-back-link[data-v-f0e4c554]:hover{color:var(--color-gray-700)}.go-back-link .icon[data-v-f0e4c554]{height:var(--space-4);width:var(--space-4)}.go-back-link .text[data-v-f0e4c554]{margin-left:var(--space-2)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as h,G as x,a3 as k,I as t,b as s,c as n,g as a,w as i,f as _,D,e as m,t as I,O as v,p as y,j as b,l as B}from"./entry.02b0a3f0.js";import S from"./ProseA.6bb395fc.js";import{_ as w}from"./EditOnLink.vue.144bf8f4.js";const C=e=>(y("data-v-41cdf4f8"),e=e(),b(),e),N={key:0,class:"docs-page-bottom"},V={key:0,class:"edit-link"},E=C(()=>m("span",null," Edit this page on GitHub ",-1)),P={key:1},G=h({__name:"DocsPageBottom",setup(e){const{page:o}=x(),{config:r}=k();return(O,T)=>{var c,p,d;const u=v,f=S,l=w;return t(o)?(s(),n("div",N,[(p=(c=t(r))==null?void 0:c.github)!=null&&p.edit?(s(),n("div",V,[a(u,{name:"uil:edit"}),a(l,{page:t(o)},{default:i(({url:g})=>[a(f,{to:g},{default:i(()=>[E]),_:2},1032,["to"])]),_:1},8,["page"])])):_("",!0),(d=t(o))!=null&&d.mtime?(s(),n("span",P,[D("Updated on "),m("b",null,I(new Intl.DateTimeFormat("en-US").format(Date.parse(t(o).mtime))),1)])):_("",!0)])):_("",!0)}}});const F=B(G,[["__scopeId","data-v-41cdf4f8"]]);export{F as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.docs-page-bottom[data-v-41cdf4f8]{align-items:center;color:var(--color-gray-500);display:flex;flex-direction:row;font-size:var(--fontSize-sm);gap:var(--space-4);justify-content:space-between;margin-top:var(--space-8)}:root.dark .docs-page-bottom[data-v-41cdf4f8]{color:var(--color-gray-400)}.docs-page-bottom .edit-link[data-v-41cdf4f8]{align-items:center;display:flex;flex:1;gap:var(--space-2)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.docs-page-content[data-v-59f831ff]{display:flex;flex-direction:column-reverse;position:relative}@media (min-width:1024px){.docs-page-content[data-v-59f831ff]{display:grid;gap:var(--space-8)}.docs-page-content.has-toc[data-v-59f831ff]{grid-template-columns:minmax(320px,1fr) minmax(250px,250px)}.docs-page-content.has-aside[data-v-59f831ff]{grid-template-columns:minmax(250px,250px) minmax(320px,1fr)}.docs-page-content.has-aside.has-toc[data-v-59f831ff]{grid-template-columns:minmax(250px,250px) minmax(320px,1fr) minmax(250px,250px)}}.aside-nav[data-v-59f831ff]{display:none;overflow-y:auto}@media (min-width:1024px){.aside-nav[data-v-59f831ff]{align-self:flex-start;display:block;height:calc(100vh - var(--docus-header-height));padding-bottom:var(--space-8);padding-right:var(--space-8);padding-top:var(--space-8);position:sticky;top:var(--docus-header-height)}.fluid .aside-nav.aside-nav[data-v-59f831ff]{border-right:1px solid var(--elements-border-primary-static)}}.page-body[data-v-59f831ff]{display:flex;flex:1 1 0%;flex-direction:column;margin-left:auto;margin-right:auto;padding-bottom:var(--space-8);padding-top:var(--space-8);position:relative;width:100%}.has-toc .page-body.page-body[data-v-59f831ff]{padding-top:var(--space-12)}@media (min-width:1024px){.has-toc .page-body.page-body[data-v-59f831ff]{padding-top:var(--space-8)}.page-body[data-v-59f831ff]{margin-top:0}}.page-body[data-v-59f831ff] h1:not(.not-prose):first-child{font-size:var(--text-4xl-fontSize);line-height:var(--text-4xl-lineHeight);margin-top:0}@media (min-width:640px){.page-body[data-v-59f831ff] h1:not(.not-prose):first-child{font-size:var(--text-5xl-fontSize);line-height:var(--text-5xl-lineHeight)}}.page-body[data-v-59f831ff] h1:not(.not-prose) first-child+p{border-bottom:1px solid var(--elements-border-primary-static);color:var(--color-gray-500);margin-bottom:var(--space-8);margin-top:0;padding-bottom:var(--space-8)}@media (min-width:640px){.page-body[data-v-59f831ff] h1:not(.not-prose) first-child+p{font-size:var(--text-lg-fontSize);line-height:var(--text-lg-lineHeight)}}:root.dark .page-body[data-v-59f831ff] h1:not(.not-prose) first-child+p{color:var(--color-gray-400)}.page-body[data-v-59f831ff] h1:not(.not-prose) first-child+p a{color:var(--color-gray-700)}:root.dark .page-body[data-v-59f831ff] h1:not(.not-prose) first-child+p a{color:var(--color-gray-200)}.page-body[data-v-59f831ff] h1:not(.not-prose) first-child+p a:hover{border-color:var(--color-gray-700)}.page-body .docs-prev-next[data-v-59f831ff]{margin-top:var(--space-4)}.toc[data-v-59f831ff]{border-bottom:1px solid var(--elements-border-primary-static);display:flex;margin-left:calc(0px - var(--space-4));margin-right:calc(0px - var(--space-4));overflow:auto;position:sticky;top:var(--docus-header-height)}@media (min-width:640px){.toc[data-v-59f831ff]{margin-left:calc(0px - var(--space-6));margin-right:calc(0px - var(--space-6))}}@media (min-width:1024px){.toc[data-v-59f831ff]{align-self:flex-start;border-bottom:none;height:calc(100vh - var(--docus-header-height));margin-left:0;margin-right:0;max-height:none;padding:var(--space-8)}.fluid .toc.toc[data-v-59f831ff]{border-left:1px solid var(--elements-border-primary-static)}}.toc .toc-wrapper[data-v-59f831ff]{-webkit-backdrop-filter:var(--elements-backdrop-filter);backdrop-filter:var(--elements-backdrop-filter);background-color:var(--elements-backdrop-background);height:100%;width:100%}@media (min-width:1024px){.toc .toc-wrapper[data-v-59f831ff]{-webkit-backdrop-filter:none;backdrop-filter:none;background-color:transparent}}.toc .toc-wrapper button[data-v-59f831ff]{align-items:center;display:flex;height:100%;padding:var(--space-4);width:100%}@media (min-width:640px){.toc .toc-wrapper button[data-v-59f831ff]{padding-left:var(--space-6);padding-right:var(--space-6)}}@media (min-width:1024px){.toc .toc-wrapper button[data-v-59f831ff]{display:none}}.toc .toc-wrapper button .title[data-v-59f831ff]{font-size:var(--text-sm-fontSize);font-weight:var(--fontWeight-semibold);line-height:var(--text-sm-lineHeight);margin-right:var(--space-1)}.toc .toc-wrapper button .icon[data-v-59f831ff]{height:var(--space-4);transition:transform .1s;width:var(--space-4)}.toc .toc-wrapper button .icon.rotate[data-v-59f831ff]{transform:rotate(90deg)}.toc .toc-wrapper .docs-toc-wrapper[data-v-59f831ff]{display:none;margin-bottom:var(--space-4)}.toc .toc-wrapper .docs-toc-wrapper.opened[data-v-59f831ff]{display:block;max-height:50vh;overflow:auto;padding-left:var(--space-4);padding-right:var(--space-4)}@media (min-width:640px){.toc .toc-wrapper .docs-toc-wrapper.opened[data-v-59f831ff]{padding-left:var(--space-6);padding-right:var(--space-6)}}@media (min-width:1024px){.toc .toc-wrapper .docs-toc-wrapper.opened[data-v-59f831ff]{max-height:none;padding-left:0;padding-right:0}.toc .toc-wrapper .docs-toc-wrapper[data-v-59f831ff]{display:block;margin-top:0}}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import G from"./DocsAside.02917ca5.js";import K from"./ProseCodeInline.d7e621c3.js";import R from"./Alert.c9a2533c.js";import U from"./DocsPageBottom.44f8865e.js";import J from"./DocsPrevNext.60edd871.js";import{d as Q,G as W,a3 as X,i as Y,L as m,r as V,q as Z,o as ee,a6 as oe,b as u,K as A,w as h,I as t,c as g,g as r,f as y,e as p,N as te,D as x,t as ne,F as se,n as k,O as ae,a7 as ce,p as le,j as re,l as _e}from"./entry.02b0a3f0.js";import ie from"./DocsToc.6e02842d.js";import"./ContentSlot.566dad3e.js";import"./ProseA.6bb395fc.js";import"./EditOnLink.vue.144bf8f4.js";import"./DocsTocLinks.af41e3b1.js";const ue=d=>(le("data-v-59f831ff"),d=d(),re(),d),pe={class:"page-body"},de={key:1,class:"toc"},me={class:"toc-wrapper"},fe=ue(()=>p("span",{class:"title"},"Table of Contents",-1)),ve=Q({__name:"DocsPageLayout",setup(d){const{page:s}=W(),{config:f,tree:T}=X(),L=Y(),j=(e,o=!0)=>{var n;return typeof((n=s.value)==null?void 0:n[e])<"u"?s.value[e]:o},P=m(()=>{var e,o,n;return!s.value||((n=(o=(e=s.value)==null?void 0:e.body)==null?void 0:o.children)==null?void 0:n.length)>0}),S=m(()=>{var e,o,n,c,l;return((e=s.value)==null?void 0:e.toc)!==!1&&((l=(c=(n=(o=s.value)==null?void 0:o.body)==null?void 0:n.toc)==null?void 0:c.links)==null?void 0:l.length)>=2}),b=m(()=>{var e,o,n,c,l;return((e=s.value)==null?void 0:e.aside)!==!1&&(((o=T.value)==null?void 0:o.length)>1||((l=(c=(n=T.value)==null?void 0:n[0])==null?void 0:c.children)==null?void 0:l.length))}),F=m(()=>j("bottom",!0)),_=V(!1),a=V(null),v=()=>L.path.split("/").slice(0,2).join("/"),i=Z("asideScroll",()=>{var e;return{parentPath:v(),scrollTop:((e=a.value)==null?void 0:e.scrollTop)||0}});function C(){a.value&&(a.value.scrollHeight===0&&setTimeout(C,0),a.value.scrollTop=i.value.scrollTop)}return ee(()=>{i.value.parentPath!==v()?(i.value.parentPath=v(),i.value.scrollTop=0):C()}),oe(()=>{a.value&&(i.value.scrollTop=a.value.scrollTop)}),(e,o)=>{var D,N,w,B,I,$;const n=G,c=K,l=R,H=U,M=J,O=ae,q=ie,z=ce;return u(),A(z,{fluid:(N=(D=t(f))==null?void 0:D.main)==null?void 0:N.fluid,padded:(B=(w=t(f))==null?void 0:w.main)==null?void 0:B.padded,class:k(["docs-page-content",{fluid:($=(I=t(f))==null?void 0:I.main)==null?void 0:$.fluid,"has-toc":t(S),"has-aside":t(b)}])},{default:h(()=>[t(b)?(u(),g("aside",{key:0,ref_key:"asideNav",ref:a,class:"aside-nav"},[r(n,{class:"app-aside"})],512)):y("",!0),p("article",pe,[t(P)?te(e.$slots,"default",{key:0},void 0,!0):(u(),A(l,{key:1,type:"info"},{default:h(()=>[x(" Start writing in "),r(c,null,{default:h(()=>[x("content/"+ne(t(s)._file),1)]),_:1}),x(" to see this page taking shape. ")]),_:1})),t(P)&&t(s)&&t(F)?(u(),g(se,{key:2},[r(H),r(M)],64)):y("",!0)]),t(S)?(u(),g("div",de,[p("div",me,[p("button",{onClick:o[0]||(o[0]=E=>_.value=!t(_))},[fe,r(O,{name:"heroicons-outline:chevron-right",class:k(["icon",[t(_)&&"rotate"]])},null,8,["class"])]),p("div",{class:k(["docs-toc-wrapper",[t(_)&&"opened"]])},[r(q,{onMove:o[1]||(o[1]=E=>_.value=!1)})],2)])])):y("",!0)]),_:3},8,["fluid","padded","class"])}}});const Ne=_e(ve,[["__scopeId","data-v-59f831ff"]]);export{Ne as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as x,G as y,I as t,b as n,c as r,K as h,w as u,g as m,e as p,t as i,f as d,a8 as k,O as g,E as w,a9 as N,l as C}from"./entry.02b0a3f0.js";const B={key:0,class:"docs-prev-next"},D={class:"wrapper"},b={key:0,class:"directory"},I={class:"title"},P={key:1},V={class:"wrapper"},E={key:0,class:"directory"},F={class:"title"},j=x({__name:"DocsPrevNext",setup(G){const{prev:e,next:s,navigation:v}=y(),{navDirFromPath:f}=N(),_=l=>{var a;const c=f(l._path,v.value||[]);if(c&&c[0])return((a=c[0])==null?void 0:a._path)??"";{const o=l.split("/");return(o.length>1?o[o.length-2]:"").split("-").map(k).join(" ")}};return(l,c)=>{const a=g,o=w;return t(e)||t(s)?(n(),r("div",B,[t(e)&&t(e)._path?(n(),h(o,{key:0,to:t(e)._path,class:"prev"},{default:u(()=>[m(a,{name:"heroicons-outline:arrow-sm-left",class:"icon"}),p("div",D,[_(t(e)._path)?(n(),r("span",b,i(_(t(e)._path)),1)):d("",!0),p("span",I,i(t(e).title),1)])]),_:1},8,["to"])):(n(),r("span",P)),t(s)&&t(s)._path?(n(),h(o,{key:2,to:t(s)._path,class:"next"},{default:u(()=>[p("div",V,[_(t(s)._path)?(n(),r("span",E,i(_(t(s)._path)),1)):d("",!0),p("span",F,i(t(s).title),1)]),m(a,{name:"heroicons-outline:arrow-sm-right",class:"icon"})]),_:1},8,["to"])):d("",!0)])):d("",!0)}}});const L=C(j,[["__scopeId","data-v-3b1dd3f8"]]);export{L as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.docs-prev-next[data-v-3b1dd3f8]{display:flex;flex-direction:column;gap:var(--space-3);justify-content:space-between}@media (min-width:640px){.docs-prev-next[data-v-3b1dd3f8]{align-items:center;flex-direction:row}}.docs-prev-next a[data-v-3b1dd3f8]{border:1px solid var(--elements-border-primary-static);border-radius:var(--radii-md);min-width:0;padding:var(--space-3);position:relative}.docs-prev-next a[data-v-3b1dd3f8]:hover{background-color:var(--color-gray-50);border-color:var(--color-gray-50);color:var(--color-primary-500)}:root.dark .docs-prev-next a[data-v-3b1dd3f8]:hover{background-color:var(--color-gray-900);border-color:var(--color-gray-900)}.docs-prev-next a.prev[data-v-3b1dd3f8]{display:flex;gap:var(--space-3);text-align:left}.docs-prev-next a.prev .directory[data-v-3b1dd3f8]{color:var(--color-gray-500);display:block;font-size:var(--text-xs-fontSize);font-weight:var(--fontWeight-medium);line-height:var(--text-xs-lineHeight);margin-bottom:var(--space-1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width:640px){.docs-prev-next a.prev .wrapper[data-v-3b1dd3f8]{align-items:flex-end}}.docs-prev-next a.next[data-v-3b1dd3f8]{display:flex;gap:var(--space-3);justify-content:flex-end;text-align:right}.docs-prev-next a.next .directory[data-v-3b1dd3f8]{color:var(--color-gray-500);display:block;font-size:var(--text-xs-fontSize);font-weight:var(--fontWeight-medium);line-height:var(--text-xs-lineHeight);margin-bottom:var(--space-1);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (min-width:640px){.docs-prev-next a.next .wrapper[data-v-3b1dd3f8]{align-items:flex-start}}.docs-prev-next a .wrapper[data-v-3b1dd3f8]{display:flex;flex-direction:column}.docs-prev-next a .icon[data-v-3b1dd3f8]{align-self:flex-end;flex-shrink:0;height:var(--space-5);width:var(--space-5)}.docs-prev-next a .title[data-v-3b1dd3f8]{flex:1 1 0%;font-weight:var(--fontWeight-medium);line-height:var(--lead-5);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import l from"./DocsTocLinks.af41e3b1.js";import{d as m,G as i,b as c,c as _,I as a,F as u,g as f,f as v,p as k,j as x,e as p,l as I}from"./entry.02b0a3f0.js";const g=e=>(k("data-v-fe39117c"),e=e(),x(),e),h={class:"docs-toc"},C=g(()=>p("div",{class:"docs-toc-title"},[p("span",null,"Table of Contents")],-1)),T=m({__name:"DocsToc",emits:["move"],setup(e,{emit:d}){const{toc:o}=i();return(y,t)=>{var s,n;const r=l;return c(),_("div",h,[(n=(s=a(o))==null?void 0:s.links)!=null&&n.length?(c(),_(u,{key:0},[C,f(r,{links:a(o).links,onMove:t[0]||(t[0]=B=>d("move"))},null,8,["links"])],64)):v("",!0)])}}});const S=I(T,[["__scopeId","data-v-fe39117c"]]);export{S as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.docs-toc[data-v-fe39117c]{display:flex;flex-direction:column;gap:8px}.docs-toc .docs-toc-title[data-v-fe39117c]{display:none}@media (min-width:1024px){.docs-toc .docs-toc-title[data-v-fe39117c]{display:block;font-size:var(--text-sm-fontSize);font-weight:var(--fontWeight-semibold);line-height:var(--text-sm-lineHeight);overflow:hidden}}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.docs-toc-links .depth-3[data-v-60b5259e]{padding-left:var(--space-3)}.docs-toc-links .depth-4[data-v-60b5259e]{padding-left:var(--space-6)}.docs-toc-links a[data-v-60b5259e]{color:var(--color-gray-500);display:block;font-size:var(--text-sm-fontSize);line-height:var(--text-sm-lineHeight);overflow:hidden;padding:var(--space-1) 0;text-overflow:ellipsis;white-space:nowrap}@media (min-width:1024px){.docs-toc-links a[data-v-60b5259e]{padding-right:var(--space-3)}}.docs-toc-links a[data-v-60b5259e]:not(.active):hover{color:var(--color-gray-900)}:root.dark .docs-toc-links a[data-v-60b5259e]:not(.active):hover{color:var(--color-gray-400)}.docs-toc-links a.active[data-v-60b5259e]{color:var(--color-primary-500)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{r as i,R as h,Q as f,a6 as g,d as y,u as b,b as u,c as v,F as k,aa as x,n as p,e as B,t as C,I as H,ab as S,K as A,f as T,l as q}from"./entry.02b0a3f0.js";const D=()=>{const c=i(),t=i([]),a=i([]),l=e=>e.forEach(o=>{const s=o.target.id;o.isIntersecting?t.value.push(s):t.value=t.value.filter(r=>r!==s)}),d=e=>e.forEach(o=>{c.value.observe(o)});return h(t,(e,o)=>{e.length===0?a.value=o:a.value=e},{deep:!0}),f(()=>c.value=new IntersectionObserver(l)),g(()=>{var e;return(e=c.value)==null?void 0:e.disconnect()}),{visibleHeadings:t,activeHeadings:a,updateHeadings:d}},I={class:"docs-toc-links"},L=["href","onClick"],M=y({__name:"DocsTocLinks",props:{links:{type:Array,default:()=>[]}},emits:["move"],setup(c,{emit:t}){const a=b(),{activeHeadings:l,updateHeadings:d}=D();setTimeout(()=>{d([...document.querySelectorAll(".document-driven-page h1, .docus-content h1"),...document.querySelectorAll(".document-driven-page h2, .docus-content h2"),...document.querySelectorAll(".document-driven-page h3, .docus-content h3"),...document.querySelectorAll(".document-driven-page h4, .docus-content h4")])},300);function e(s){a.push(`#${s}`),t("move",s)}function o(s){t("move",s)}return(s,r)=>{const m=$;return u(),v("ul",I,[(u(!0),v(k,null,x(c.links,n=>(u(),v("li",{key:n.text,class:p([`depth-${n.depth}`])},[B("a",{href:`#${n.id}`,class:p([H(l).includes(n.id)&&"active"]),onClick:S(_=>e(n.id),["prevent"])},C(n.text),11,L),n.children?(u(),A(m,{key:0,links:n.children,onMove:r[0]||(r[0]=_=>o(_))},null,8,["links"])):T("",!0)],2))),128))])}}});const $=q(M,[["__scopeId","data-v-60b5259e"]]);export{$ as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as n,W as e}from"./entry.02b0a3f0.js";const r=n({name:"DocumentDrivenEmpty",props:{value:{type:Object,required:!0}},render({value:t}){return e("div",void 0,[e("p","Document is empty"),e("p",`Add content to it by opening ${t._source}/${t._file} file.`)])}});export{r as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import s from"./ButtonLink.d450cb05.js";import{l as c,b as _,c as a,e as o,g as d,w as r,D as i,p,j as l}from"./entry.02b0a3f0.js";import"./ContentSlot.566dad3e.js";const u={},e=t=>(p("data-v-a44683cd"),t=t(),l(),t),m={class:"document-driven-not-found not-prose"},h=e(()=>o("p",null," 404 ",-1)),f={class:"content"},v=e(()=>o("div",{class:"text-section"},[o("h1",null," Not Found "),o("p",null," This is not the page you're looking for. ")],-1)),x={class:"button-section"};function g(t,k){const n=s;return _(),a("div",m,[o("main",null,[h,o("div",f,[v,o("div",x,[d(n,{href:"/",size:"large",variant:"primary"},{default:r(()=>[i(" Go back home ")]),_:1})])])])])}const I=c(u,[["render",g],["__scopeId","data-v-a44683cd"]]);export{I as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.document-driven-not-found[data-v-a44683cd]{display:flex;flex:1;padding:var(--space-16) var(--space-4)}@media (min-width:640px){.document-driven-not-found[data-v-a44683cd]{padding:var(--space-24) var(--space-6)}}@media (min-width:768px){.document-driven-not-found[data-v-a44683cd]{display:grid;place-items:center}}@media (min-width:1024px){.document-driven-not-found[data-v-a44683cd]{padding-left:var(--space-8);padding-right:var(--space-8)}}.document-driven-not-found main[data-v-a44683cd]{margin-left:auto;margin-right:auto;max-width:var(--size-full)}@media (min-width:640px){.document-driven-not-found main[data-v-a44683cd]{display:flex;gap:var(--space-6)}}.document-driven-not-found main>p[data-v-a44683cd]{color:var(--color-primary-500);font-size:var(--fontSize-4xl);font-weight:var(--fontWeight-bold);line-height:var(--lead-tight)}@media (min-width:640px){.document-driven-not-found main>p[data-v-a44683cd]{font-size:var(--fontSize-5xl)}}.document-driven-not-found main .content .text-section[data-v-a44683cd]{border:none}:root.dark .document-driven-not-found main .content .text-section[data-v-a44683cd]{border-color:var(--color-gray-800)}@media (min-width:640px){.document-driven-not-found main .content .text-section[data-v-a44683cd]{border-color:var(--color-gray-200);border-left-style:solid;border-left-width:1px;padding-left:var(--space-6)}}.document-driven-not-found main .content .text-section h1[data-v-a44683cd]{color:var(--color-gray-900);font-size:var(--fontSize-4xl);font-weight:var(--fontWeight-extrabold);letter-spacing:var(--letterSpacing-tight)}:root.dark .document-driven-not-found main .content .text-section h1[data-v-a44683cd]{color:var(--color-gray-200)}@media (min-width:640px){.document-driven-not-found main .content .text-section h1[data-v-a44683cd]{font-size:var(--fontSize-5xl)}}.document-driven-not-found main .content .text-section p[data-v-a44683cd]{color:var(--color-gray-700);font-size:var(--fontSize-xl);margin-top:var(--space-1)}:root.dark .document-driven-not-found main .content .text-section p[data-v-a44683cd]{color:var(--color-gray-400)}.document-driven-not-found main .content .button-section[data-v-a44683cd]{flex:none;gap:var(--space-3);margin-top:var(--space-10)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{_ as m}from"./EditOnLink.vue.144bf8f4.js";import"./entry.02b0a3f0.js";export{m as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as v,x as u,L as d,a5 as w,X as p}from"./entry.02b0a3f0.js";const S=v({props:{baseUrl:{type:String,default:()=>{var e,t,r;return((r=(t=(e=u())==null?void 0:e.docus)==null?void 0:t.github)==null?void 0:r.baseUrl)||"https://github.com"},required:!1},owner:{type:String,default:()=>{var e,t,r;return(r=(t=(e=u())==null?void 0:e.docus)==null?void 0:t.github)==null?void 0:r.owner},required:!1},repo:{type:String,default:()=>{var e,t,r;return(r=(t=(e=u())==null?void 0:e.docus)==null?void 0:t.github)==null?void 0:r.repo},required:!1},branch:{type:String,default:()=>{var e,t,r;return(r=(t=(e=u())==null?void 0:e.docus)==null?void 0:t.github)==null?void 0:r.branch},required:!1},dir:{type:String,default:()=>{var e,t,r;return(r=(t=(e=u())==null?void 0:e.docus)==null?void 0:t.github)==null?void 0:r.dir},required:!1},source:{type:String,required:!1,default:void 0},page:{type:Object,required:!1,default:void 0},contentDir:{type:String,required:!1,default:()=>{var e,t,r;return((r=(t=(e=u())==null?void 0:e.docus)==null?void 0:t.github)==null?void 0:r.dir)||"content"}},edit:{type:Boolean,required:!1,default:()=>{var e,t,r;return(r=(t=(e=u())==null?void 0:e.docus)==null?void 0:t.github)==null?void 0:r.edit}}},setup(e){if(!e.owner||!e.repo||!e.branch)throw new Error("If you want to use `GithubLink` component, you must specify: `owner`, `repo` and `branch`.");const t=d(()=>{var h,b;let{baseUrl:n,repo:a,owner:c,branch:l,contentDir:f}=e,s="";if((b=(h=u())==null?void 0:h.public)!=null&&b.content){let i;const{sources:g}=u().public.content;for(const y in g||[])if(e.page._id.startsWith(y)){i=g[y];break}(i==null?void 0:i.driver)==="github"&&(a=i.repo||e.repo||"",c=i.owner||e.owner||"",l=i.branch||e.branch||"main",f=i.dir||e.contentDir||"",s=i.prefix||"")}return{baseUrl:n,repo:a,owner:c,branch:l,contentDir:f,prefix:s}}),r=d(()=>w(`${t.value.baseUrl}/${t.value.owner}/${t.value.repo}`)),o=d(()=>{var a;const n=[];return(a=e==null?void 0:e.page)!=null&&a._path?(t.value.contentDir&&n.push(t.value.contentDir),n.push(e.page._file.substring(t.value.prefix.length)),n):(e.dir&&n.push(e.dir),e.source&&n.push(e.source),n)});return{url:d(()=>{var a;const n=[r.value];return e.edit?n.push("edit"):n.push("tree"),n.push(((a=t==null?void 0:t.value)==null?void 0:a.branch)||"",...o.value),n.filter(Boolean).join("/")})}},render(e){var o;const{url:t}=e,r=p();return(o=r==null?void 0:r.default)==null?void 0:o.call(r,{url:t})}});export{S as _};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.ellipsis[data-v-cf540861]{filter:var(---jfd-filter);height:var(---t33-height);inset-inline-end:var(---if-b-inset-inline-end);inset-inline-start:var(---eih-inset-inline-start);max-width:var(---wj8-max-width);pointer-events:none;position:absolute;top:var(---c-cn-top);width:-webkit-fill-available;z-index:var(---ss-e-z-index)}.ellipsis .ellipsis-item[data-v-cf540861]{background:var(---y-uj-background);height:100%;width:100%}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as m,L as n,M as y,b as S,c as p,n as I,I as x,p as b,j as v,e as E,l as $}from"./entry.02b0a3f0.js";const w=s=>(b("data-v-cf540861"),s=s(),v(),s),z=w(()=>E("div",{class:"ellipsis-item"},null,-1)),B=[z],j=m({__name:"Ellipsis",props:{width:{type:String,default:"10rem"},height:{type:String,default:"10rem"},zIndex:{type:String,default:"10"},top:{type:String,default:"0"},left:{type:String,default:"auto"},right:{type:String,default:"auto"},blur:{type:String,default:"50px"},colors:{type:Array,default:()=>["rgba(0, 71, 225, 0.22)","rgba(26, 214, 255, 0.22)","rgba(0, 220, 130, 0.22)"]}},setup(s){const e=s,l=n(()=>((t=e)=>t.top)()),_=n(()=>((t=e)=>t.left)()),o=n(()=>((t=e)=>t.right)()),d=n(()=>((t=e)=>t.zIndex)()),r=n(()=>((t=e)=>t.width)()),u=n(()=>((t=e)=>t.height)()),f=n(()=>((t=e)=>`blur(${t.blur})`)()),g=n(()=>((t=e)=>{var a,i,c;return`linear-gradient(97.62deg, ${(a=t==null?void 0:t.colors)==null?void 0:a[0]} 2.27%, ${(i=t==null?void 0:t.colors)==null?void 0:i[1]} 50.88%, ${(c=t==null?void 0:t.colors)==null?void 0:c[2]} 98.48%)`})()),{$pinceau:h}=y(e,void 0,{_cCN_top:l,_eih_insetInlineStart:_,_IfB_insetInlineEnd:o,_SsE_zIndex:d,_wj8_maxWidth:r,_t33_height:u,_Jfd_filter:f,_yUj_background:g});return(t,a)=>(S(),p("div",{class:I(["ellipsis",[x(h)]])},B,2))}});const C=$(j,[["__scopeId","data-v-cf540861"]]);export{C as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
span[data-v-a58be67d]{background-color:currentColor;display:inline-block;-webkit-mask-image:var(--85f54cb8);mask-image:var(--85f54cb8);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;vertical-align:middle}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d,as as m,x,L as o,b as S,c as f,at as I,I as a,l as z}from"./entry.02b0a3f0.js";const y=d({__name:"IconCSS",props:{name:{type:String,required:!0},size:{type:String,default:""}},setup(l){var r;const n=l;m(s=>({"85f54cb8":a(p)}));const e=x();(r=e==null?void 0:e.nuxtIcon)!=null&&r.aliases;const _=o(()=>{var s;return(((s=e==null?void 0:e.nuxtIcon)==null?void 0:s.aliases)||{})[n.name]||n.name}),p=o(()=>`url('https://api.iconify.design/${_.value.replace(":","/")}.svg')`),c=o(()=>{var t,i,u;if(!n.size&&typeof((t=e.nuxtIcon)==null?void 0:t.size)=="boolean"&&!((i=e.nuxtIcon)!=null&&i.size))return;const s=n.size||((u=e.nuxtIcon)==null?void 0:u.size)||"1em";return String(Number(s))===s?`${s}px`:s});return(s,t)=>(S(),f("span",{style:I({width:a(c),height:a(c)})},null,4))}});const v=z(y,[["__scopeId","data-v-a58be67d"]]);export{v as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{l as e,b as o,c as n,e as t}from"./entry.02b0a3f0.js";const c={},s={viewBox:"0 0 105 104",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l=t("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M104.297.31104.87354.3111V103.735H104.297V.31104ZM93.7196 93.1572V10.8885H11.4509v82.2687h82.2687Z",fill:"currentColor"},null,-1),r=[l];function d(_,a){return o(),n("svg",s,r)}const f=e(c,[["render",d]]);export{f as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{l as e,b as o,c,e as s}from"./entry.02b0a3f0.js";const t={},n={viewBox:"0 0 57 57",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l=s("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M28.5445 0C12.8044 0 0 12.7599 0 28.5v25.4549c0 1.5835 1.28368 2.8672 2.86718 2.8672H28.5889C44.2799 56.8221 57 44.102 57 28.4111 57 12.7201 44.2355 0 28.5445 0Zm15.4963 34.452c3.3649 0 6.0927-2.7278 6.0927-6.0928 0-3.3649-2.7278-6.0927-6.0927-6.0927-3.365 0-6.0928 2.7278-6.0928 6.0927 0 3.365 2.7278 6.0928 6.0928 6.0928Zm-18.0833.0003c3.3649 0 6.0927-2.7278 6.0927-6.0927s-2.7278-6.0928-6.0927-6.0928-6.0928 2.7279-6.0928 6.0928c0 3.3649 2.7279 6.0927 6.0928 6.0927Z",fill:"currentColor"},null,-1),r=[l];function _(a,d){return o(),c("svg",n,r)}const f=e(t,[["render",_]]);export{f as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{l as c,b as e,c as t,e as o}from"./entry.02b0a3f0.js";const s={},n={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 324 324"},r=o("path",{fill:"currentColor",d:"M181.767 270h120.444c3.826 0 7.584-.997 10.897-2.893 3.313-1.896 6.064-4.623 7.976-7.907 1.912-3.285 2.918-7.01 2.916-10.801-.002-3.792-1.011-7.516-2.926-10.798L240.187 98.7439c-1.912-3.2832-4.662-6.0097-7.974-7.9054-3.312-1.8956-7.07-2.8936-10.895-2.8936-3.824 0-7.582.998-10.894 2.8936-3.312 1.8957-6.063 4.6222-7.975 7.9054l-20.682 35.5281-40.438-69.4745c-1.913-3.283-4.665-6.0091-7.978-7.9044C130.038 54.9978 126.28 54 122.454 54c-3.825 0-7.583.9978-10.896 2.8931-3.313 1.8953-6.065 4.6214-7.978 7.9044L2.9255 237.601C1.0107 240.883.0017 244.607 0 248.399c-.0017 3.791 1.004 7.516 2.916 10.801 1.912 3.284 4.6628 6.011 7.9758 7.907C14.2047 269.003 17.963 270 21.7886 270h75.605c29.9554 0 52.0464-13.041 67.2474-38.483l36.905-63.345 19.767-33.9L280.637 236.1h-79.091L181.767 270Zm-85.6059-33.935-52.7627-.011L122.49 100.291l39.463 67.881-26.422 45.371c-10.095 16.508-21.563 22.522-39.3699 22.522Z"},null,-1),l=[r];function _(a,h){return e(),t("svg",n,l)}const i=c(s,[["render",_]]);export{i as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{l as c,b as e,c as t,e as o}from"./entry.02b0a3f0.js";const s={},n={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 324 324"},r=o("path",{fill:"currentColor",d:"M181.767 270h120.444c3.826 0 7.584-.997 10.897-2.893 3.313-1.896 6.064-4.623 7.976-7.907 1.912-3.285 2.918-7.01 2.916-10.801-.002-3.792-1.011-7.516-2.926-10.798L240.187 98.7439c-1.912-3.2832-4.662-6.0097-7.974-7.9054-3.312-1.8956-7.07-2.8936-10.895-2.8936-3.824 0-7.582.998-10.894 2.8936-3.312 1.8957-6.063 4.6222-7.975 7.9054l-20.682 35.5281-40.438-69.4745c-1.913-3.283-4.665-6.0091-7.978-7.9044C130.038 54.9978 126.28 54 122.454 54c-3.825 0-7.583.9978-10.896 2.8931-3.313 1.8953-6.065 4.6214-7.978 7.9044L2.9255 237.601C1.0107 240.883.0017 244.607 0 248.399c-.0017 3.791 1.004 7.516 2.916 10.801 1.912 3.284 4.6628 6.011 7.9758 7.907C14.2047 269.003 17.963 270 21.7886 270h75.605c29.9554 0 52.0464-13.041 67.2474-38.483l36.905-63.345 19.767-33.9L280.637 236.1h-79.091L181.767 270Zm-85.6059-33.935-52.7627-.011L122.49 100.291l39.463 67.881-26.422 45.371c-10.095 16.508-21.563 22.522-39.3699 22.522Z"},null,-1),l=[r];function _(a,h){return e(),t("svg",n,l)}const i=c(s,[["render",_]]);export{i as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{l as c,b as e,c as t,e as o}from"./entry.02b0a3f0.js";const s={},n={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 324 324"},r=o("path",{fill:"currentColor",d:"M181.767 270h120.444c3.826 0 7.584-.997 10.897-2.893 3.313-1.896 6.064-4.623 7.976-7.907 1.912-3.285 2.918-7.01 2.916-10.801-.002-3.792-1.011-7.516-2.926-10.798L240.187 98.7439c-1.912-3.2832-4.662-6.0097-7.974-7.9054-3.312-1.8956-7.07-2.8936-10.895-2.8936-3.824 0-7.582.998-10.894 2.8936-3.312 1.8957-6.063 4.6222-7.975 7.9054l-20.682 35.5281-40.438-69.4745c-1.913-3.283-4.665-6.0091-7.978-7.9044C130.038 54.9978 126.28 54 122.454 54c-3.825 0-7.583.9978-10.896 2.8931-3.313 1.8953-6.065 4.6214-7.978 7.9044L2.9255 237.601C1.0107 240.883.0017 244.607 0 248.399c-.0017 3.791 1.004 7.516 2.916 10.801 1.912 3.284 4.6628 6.011 7.9758 7.907C14.2047 269.003 17.963 270 21.7886 270h75.605c29.9554 0 52.0464-13.041 67.2474-38.483l36.905-63.345 19.767-33.9L280.637 236.1h-79.091L181.767 270Zm-85.6059-33.935-52.7627-.011L122.49 100.291l39.463 67.881-26.422 45.371c-10.095 16.508-21.563 22.522-39.3699 22.522Z"},null,-1),l=[r];function _(a,h){return e(),t("svg",n,l)}const i=c(s,[["render",_]]);export{i as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
svg[data-v-dff2da5e]{fill:var(--color-black)}:root.dark svg[data-v-dff2da5e]{fill:var(--color-white)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{l as t,b as c,c as o,p as s,j as _,e as d}from"./entry.02b0a3f0.js";const a={},n=e=>(s("data-v-dff2da5e"),e=e(),_(),e),r={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 324 324"},l=n(()=>d("path",{fill:"currentColor",d:"M181.767 270h120.444c3.826 0 7.584-.997 10.897-2.893 3.313-1.896 6.064-4.623 7.976-7.907 1.912-3.285 2.918-7.01 2.916-10.801-.002-3.792-1.011-7.516-2.926-10.798L240.187 98.7439c-1.912-3.2832-4.662-6.0097-7.974-7.9054-3.312-1.8956-7.07-2.8936-10.895-2.8936-3.824 0-7.582.998-10.894 2.8936-3.312 1.8957-6.063 4.6222-7.975 7.9054l-20.682 35.5281-40.438-69.4745c-1.913-3.283-4.665-6.0091-7.978-7.9044C130.038 54.9978 126.28 54 122.454 54c-3.825 0-7.583.9978-10.896 2.8931-3.313 1.8953-6.065 4.6214-7.978 7.9044L2.9255 237.601C1.0107 240.883.0017 244.607 0 248.399c-.0017 3.791 1.004 7.516 2.916 10.801 1.912 3.284 4.6628 6.011 7.9758 7.907C14.2047 269.003 17.963 270 21.7886 270h75.605c29.9554 0 52.0464-13.041 67.2474-38.483l36.905-63.345 19.767-33.9L280.637 236.1h-79.091L181.767 270Zm-85.6059-33.935-52.7627-.011L122.49 100.291l39.463 67.881-26.422 45.371c-10.095 16.508-21.563 22.522-39.3699 22.522Z"},null,-1)),p=[l];function f(e,u){return c(),o("svg",r,p)}const h=t(a,[["render",f],["__scopeId","data-v-dff2da5e"]]);export{h as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{l as e,b as t,c as o,e as c}from"./entry.02b0a3f0.js";const s={},n={viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l=c("path",{d:"M11.46 14.773H4L17.638 0l-3.671 10.227h7.46L7.788 25l3.671-10.227h.001Z",fill:"currentColor"},null,-1),r=[l];function _(a,i){return t(),o("svg",n,r)}const f=e(s,[["render",_]]);export{f as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{l as e,b as t,c as l,e as o}from"./entry.02b0a3f0.js";const n={},s={viewBox:"0 0 124 124",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c=o("path",{d:"M48 82.5887L57.1066 98.175C59.3073 101.942 64.8092 101.942 67.0102 98.175L101 40H72.8834L48 82.5887Z",fill:"currentColor"},null,-1),r=o("path",{d:"M77 33H104.936L105.23 32.4924C107.417 28.718 104.684 24 100.31 24H82.2142L77 33Z",fill:"currentColor"},null,-1),_=o("path",{d:"M74 24L68.7601 33H19.0689L18.7734 32.4924C16.5759 28.718 19.3228 24 23.7177 24H74Z",fill:"currentColor"},null,-1),a=o("path",{d:"M65 40L44 76L23 40H65Z",fill:"currentColor"},null,-1),i=[c,r,_,a];function d(h,u){return t(),l("svg",s,i)}const p=e(n,[["render",d]]);export{p as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
li[data-v-6109395b]{align-items:flex-start;display:flex;margin-bottom:var(--space-3)}li[data-v-6109395b]:last-child{margin-bottom:0}li .list-icon[data-v-6109395b]{-webkit-margin-end:var(--space-3);flex-shrink:0;margin-inline-end:var(--space-3)}li .list-icon.primary[data-v-6109395b]{color:var(--elements-state-primary-color-primary)}li .list-icon.info[data-v-6109395b]{color:var(--elements-state-info-color-primary)}li .list-icon.success[data-v-6109395b]{color:var(--elements-state-success-color-primary)}li .list-icon.warning[data-v-6109395b]{color:var(--elements-state-warning-color-primary)}li .list-icon.danger[data-v-6109395b]{color:var(--elements-state-danger-color-primary)}li .list-icon .icon[data-v-6109395b]{height:var(--space-6);width:var(--space-6)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as r,X as l,L as u,W as e,O as p,a2 as _,l as m}from"./entry.02b0a3f0.js";import d from"./ContentSlot.566dad3e.js";const f={primary:"heroicons-outline:check",info:"heroicons-outline:information-circle",success:"heroicons-outline:check-circle",warning:"heroicons-outline:exclamation",danger:"heroicons-outline:exclamation-circle"},y=r({props:{icon:{type:String,default:null},type:{type:String,default:"primary",validator:n=>["primary","info","success","warning","danger"].includes(n)}},setup(n){const o=l(),{flatUnwrap:s,unwrap:a}=_(),i=u(()=>n.icon||f[n.type]);return()=>{const c=s((o.default&&o.default())??[],["ul"]).map(t=>a(t,["li"]));return e("ul",c.map(t=>e("li",[e("span",{class:`list-icon ${n.type}`},e(p,{name:i.value,class:"icon"})),e("span",e(d,{use:()=>t}))])))}}});const x=m(y,[["__scopeId","data-v-6109395b"]]);export{x as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import r from"./ContentSlot.566dad3e.js";import{d as o,X as u,L as f,V as c}from"./entry.02b0a3f0.js";const i=o({name:"Markdown",extends:r,setup(t){const{parent:e}=c(),{between:n,default:a}=u(),s=f(()=>typeof t.unwrap=="string"?t.unwrap.split(" "):["*"]);return{fallbackSlot:a,tags:s,between:n,parent:e}}});export{i as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{_ as m}from"./NuxtImg.vue.9289f73c.js";import"./entry.02b0a3f0.js";export{m as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as a,L as i,W as e,ag as n,m as h}from"./entry.02b0a3f0.js";const f=a({props:{src:{type:[String,Object],default:null}},setup(s){const r=t=>t&&t.startsWith("/")&&!t.startsWith("//")?n(t,h().app.baseURL):t;return{imgSrc:i(()=>{let t=s.src;try{t=JSON.parse(t)}catch{t=s.src}return typeof t=="string"?r(s.src):{light:r(t.light),dark:r(t.dark)}})}},render({imgSrc:s}){if(typeof s=="string")return e("img",{src:s,...this.$attrs});const r=[];return s.light&&r.push(e("img",{src:s.light,class:["dark-img"],...this.$attrs})),s.dark&&r.push(e("img",{src:s.dark,class:["light-img"],...this.$attrs})),r}});export{f as _};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{l as t,b as _,c as o,N as s}from"./entry.02b0a3f0.js";const a={},r={class:"preview-layout"};function c(e,n){return _(),o("div",r,[s(e.$slots,"default",{},void 0,!0)])}const l=t(a,[["render",c],["__scopeId","data-v-e118c7a6"]]);export{l as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
.preview-layout[data-v-e118c7a6]{display:flex;flex-direction:column;gap:1rem}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import g from"./ProseTh.330913be.js";import B from"./ProseTr.b9f079a5.js";import N from"./ProseThead.04cb6fac.js";import V from"./ProseCodeInline.d7e621c3.js";import b from"./ProseTd.05b2a5f7.js";import C from"./ProseTbody.69ff7c75.js";import R from"./ProseTable.2970a41c.js";import{u as F}from"./asyncData.84fe43db.js";import{l as L,d as S,ak as A,L as m,b as o,K as l,w as e,g as s,D as d,f,c as E,aa as I,F as K,t as c}from"./entry.02b0a3f0.js";const Y=S({props:{of:{type:String,default:void 0},required:{type:Boolean,default:void 0},values:{type:Boolean,default:void 0},description:{type:Boolean,default:void 0},default:{type:Boolean,default:void 0}},async setup(t){const k=`/api/component-meta/${A(t.of)}`,{data:h}=await F(t.of,()=>$fetch(k),"$NfwNoFP45N"),i=m(()=>h.value.props.filter(a=>{var n;return!((n=a.tags)!=null&&n.ignore.includes(a))})),w=m(()=>{var a;return t.required!==void 0?t.required:(a=i.value)==null?void 0:a.find(n=>n.required!==void 0)}),q=m(()=>{var a;return t.values!==void 0?t.values:(a=i.value)==null?void 0:a.find(n=>n.values)}),r=m(()=>{var a;return t.description!==void 0?t.description:(a=i.value)==null?void 0:a.find(n=>n.description)}),y=m(()=>{var a;return t.default!==void 0?t.default:(a=i.value)==null?void 0:a.find(n=>n.default)});return{meta:h,properties:i,showRequired:w,showValues:q,showDescription:r,showDefault:y}}});function j(t,k,h,i,w,q){var v,D,P;const r=g,y=B,a=N,n=V,_=b,T=C,$=R;return t.meta&&((v=t.meta)!=null&&v.props)&&((P=(D=t.meta)==null?void 0:D.props)!=null&&P.length)?(o(),l($,{key:0},{default:e(()=>[s(a,null,{default:e(()=>[s(y,null,{default:e(()=>[s(r,null,{default:e(()=>[d("Prop")]),_:1}),s(r,null,{default:e(()=>[d("Type")]),_:1}),t.showRequired?(o(),l(r,{key:0},{default:e(()=>[d(" Required ")]),_:1})):f("",!0),t.showDefault?(o(),l(r,{key:1},{default:e(()=>[d(" Default ")]),_:1})):f("",!0),t.showValues?(o(),l(r,{key:2},{default:e(()=>[d(" Values ")]),_:1})):f("",!0),t.showDescription?(o(),l(r,{key:3},{default:e(()=>[d(" Description ")]),_:1})):f("",!0)]),_:1})]),_:1}),s(T,null,{default:e(()=>[(o(!0),E(K,null,I(t.properties,u=>(o(),l(y,{key:u.name},{default:e(()=>[s(_,null,{default:e(()=>[s(n,null,{default:e(()=>[d(c((u==null?void 0:u.name)||"?"),1)]),_:2},1024)]),_:2},1024),s(_,null,{default:e(()=>[s(n,null,{default:e(()=>[d(c((u==null?void 0:u.type)||"?"),1)]),_:2},1024)]),_:2},1024),t.showRequired?(o(),l(_,{key:0},{default:e(()=>[s(n,null,{default:e(()=>[d(c(u.required==="?"?"?":u.required?"Yes":"No"),1)]),_:2},1024)]),_:2},1024)):f("",!0),t.showDefault?(o(),l(_,{key:1},{default:e(()=>[u.default?(o(),l(n,{key:0},{default:e(()=>[d(c((u==null?void 0:u.default)||"?"),1)]),_:2},1024)):f("",!0)]),_:2},1024)):f("",!0),t.showValues?(o(),l(_,{key:2},{default:e(()=>[u.values?(o(),l(n,{key:0},{default:e(()=>[d(c((u==null?void 0:u.values)||"?"),1)]),_:2},1024)):(o(),l(n,{key:1},{default:e(()=>[d(" - ")]),_:1}))]),_:2},1024)):f("",!0),t.showDescription?(o(),l(_,{key:3},{default:e(()=>[s(n,null,{default:e(()=>[d(c(u.description),1)]),_:2},1024)]),_:2},1024)):f("",!0)]),_:2},1024))),128))]),_:1})]),_:1})):f("",!0)}const W=L(Y,[["render",j]]);export{W as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as _,b as a,K as n,w as r,N as s,E as c,l as d}from"./entry.02b0a3f0.js";const u=_({__name:"ProseA",props:{href:{type:String,default:""},target:{type:String,default:void 0,required:!1}},setup(t){return(e,f)=>{const o=c;return a(),n(o,{to:t.href,target:t.target},{default:r(()=>[s(e.$slots,"default",{},void 0,!0)]),_:3},8,["to","target"])}}});const l=d(u,[["__scopeId","data-v-af1c0c3b"]]);export{l as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
a[data-v-af1c0c3b]{border-bottom:var(--prose-a-border-width) var(--prose-a-border-style-static) var(--prose-a-border-color-static);color:var(--prose-a-color-static);font-family:var(--typography-font-body);font-weight:var(--prose-a-fontWeight);padding-bottom:var(--prose-a-border-distance);-webkit-text-decoration:var(--prose-a-textDecoration);text-decoration:var(--prose-a-textDecoration)}a[data-v-af1c0c3b]:hover{border-color:var(--prose-a-border-color-hover);border-style:var(--prose-a-border-style-hover);color:var(--prose-a-color-hover)}a[data-v-af1c0c3b]:has(img){border-width:0}a[data-v-af1c0c3b]:has(code){border-bottom:var(--prose-a-hasCode-borderBottom)}a[data-v-af1c0c3b]:has(code) code{border-color:var(--prose-a-code-border-color-static);border-style:var(--prose-a-code-border-style);border-width:var(--prose-a-code-border-width);color:var(--prose-a-code-color-static)}a[data-v-af1c0c3b]:has(code):hover{border-bottom:var(--prose-a-hasCode-borderBottom)}a[data-v-af1c0c3b]:has(code):hover code{background-color:var(--prose-a-code-background-hover);border-color:var(--prose-a-code-border-color-hover);color:var(--prose-a-code-color-hover)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
blockquote[data-v-40e15040]{-webkit-padding-start:var(--prose-blockquote-paddingInlineStart);border-inline-start-color:var(--prose-blockquote-border-color);border-inline-start-style:var(--prose-blockquote-border-style);border-inline-start-width:var(--prose-blockquote-border-width);color:var(--prose-blockquote-color);font-family:var(--typography-font-body);margin:var(--prose-blockquote-margin);padding-inline-start:var(--prose-blockquote-paddingInlineStart);quotes:var(--prose-blockquote-quotes)}blockquote p[data-v-40e15040]:first-of-type:before,blockquote p[data-v-40e15040]:last-of-type:after{content:""}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{l as o,b as t,c as _,N as r}from"./entry.02b0a3f0.js";const s={};function c(e,n){return t(),_("blockquote",null,[r(e.$slots,"default",{},void 0,!0)])}const a=o(s,[["render",c],["__scopeId","data-v-40e15040"]]);export{a as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
button[data-v-75636234]{border-radius:3px;margin:4px;opacity:0;padding:4px;transform:scale(.75);transition:all .2s}button[data-v-75636234]:hover{background-color:var(--elements-surface-secondary-backgroundColor)}button[data-v-75636234]:focus{box-shadow:0 0 0 2px var(--color-blue-500);opacity:1;outline:none}button.show[data-v-75636234]{opacity:1;transform:scale(1)}button .icon-wrapper[data-v-75636234]{display:block;height:18px;position:relative;width:18px}button .icon-wrapper .icon[data-v-75636234]{display:block;position:absolute}button .icon-wrapper .fade-enter-active[data-v-75636234],button .icon-wrapper .fade-leave-active[data-v-75636234]{transition:opacity .2s}button .icon-wrapper .fade-enter-from[data-v-75636234],button .icon-wrapper .fade-leave-to[data-v-75636234]{opacity:0}.prose-code[data-v-bfc7416e]{-webkit-backdrop-filter:var(--prose-code-block-backdropFilter);backdrop-filter:var(--prose-code-block-backdropFilter);background-color:var(--prose-code-block-backgroundColor);border-color:var(--prose-code-block-border-color);border-radius:var(--radii-md);border-style:var(--prose-code-block-border-style);border-width:var(--prose-code-block-border-width);color:var(--prose-code-block-color);font-size:var(--prose-code-block-fontSize);margin:var(--prose-code-block-margin);overflow:hidden;position:relative;width:100%}.prose-code.highlight-bash[data-v-bfc7416e] code .line,.prose-code.highlight-sh[data-v-bfc7416e] code .line,.prose-code.highlight-shell[data-v-bfc7416e] code .line,.prose-code.highlight-shellscript[data-v-bfc7416e] code .line,.prose-code.highlight-zsh[data-v-bfc7416e] code .line{-webkit-padding-start:1rem;padding-inline-start:1rem;position:relative}.prose-code.highlight-bash[data-v-bfc7416e] code .line:before,.prose-code.highlight-sh[data-v-bfc7416e] code .line:before,.prose-code.highlight-shell[data-v-bfc7416e] code .line:before,.prose-code.highlight-shellscript[data-v-bfc7416e] code .line:before,.prose-code.highlight-zsh[data-v-bfc7416e] code .line:before{color:var(--typography-color-primary-500);content:">";display:block;font-family:var(--font-mono);font-weight:700;inset-inline-start:-.1rem;position:absolute;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.copy-button[data-v-bfc7416e]{bottom:0;inset-inline-end:0;position:absolute}[data-v-bfc7416e] code{display:flex;flex-direction:column}[data-v-bfc7416e] .line{display:inline-table;min-height:1rem}.filename[data-v-bfc7416e]{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:var(--radii-lg);color:var(--prose-code-block-color);font-family:var(--typography-font-code);font-size:var(--fontSize-xs);inset-inline-end:0;line-height:var(--lead-normal);padding:.5rem .75rem;position:absolute;top:0;transition:opacity .2s}.prose-code:hover .filename[data-v-bfc7416e]{opacity:0}.prose-code:hover .filename[data-v-bfc7416e]:hover{opacity:1}[data-v-bfc7416e] pre{display:flex;flex:1;line-height:var(--lead-relaxed);margin:0;overflow-x:auto;padding:var(--prose-code-block-pre-padding)}[data-v-bfc7416e] pre code{-webkit-padding-end:30px;padding-inline-end:30px}[data-v-bfc7416e] .line.highlight{background-color:var(--prose-code-block-border-color)}
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
import{d as y,r as l,x as w,b as s,c as p,e as m,g as C,w as b,K as _,I as f,T as k,n as v,O as x,p as S,j as I,l as h,t as $,f as P,N}from"./entry.02b0a3f0.js";import{u as z,o as T}from"./index.fbfef7e6.js";const V=e=>(S("data-v-75636234"),e=e(),I(),e),A=V(()=>m("span",{class:"sr-only"},"Copy to clipboard",-1)),M={class:"icon-wrapper"},O=y({__name:"ProseCodeCopyButton",props:{content:{type:String,default:""},show:{type:Boolean,default:!1}},setup(e){const n=e,a=l(),{copy:t}=z();T(a,()=>{o.value==="copied"&&(o.value="init")});const{prose:c}=w(),o=l("init"),g=B=>{t(n.content).then(()=>{o.value="copied"}).catch(r=>{console.warn("Couldn't copy to clipboard!",r)})};return(B,r)=>{const u=x;return s(),p("button",{ref_key:"copyButtonRef",ref:a,class:v([(e.show||o.value==="copied")&&"show"]),onClick:g},[A,m("span",M,[C(k,{name:"fade"},{default:b(()=>{var d,i;return[o.value==="copied"?(s(),_(u,{key:0,name:(d=f(c).copyButton)==null?void 0:d.iconCopied,size:"18",class:"copied"},null,8,["name"])):(s(),_(u,{key:1,name:(i=f(c).copyButton)==null?void 0:i.iconCopy,size:"18"},null,8,["name"]))]}),_:1})])],2)}}});const R=h(O,[["__scopeId","data-v-75636234"]]),j={key:0,class:"filename"},D=y({__name:"ProseCode",props:{code:{type:String,default:""},language:{type:String,default:null},filename:{type:String,default:null},highlights:{type:Array,default:()=>[]}},setup(e){const n=l(!1);return(a,t)=>{const c=R;return s(),p("div",{class:v([[`highlight-${e.language}`],"prose-code"]),onMouseenter:t[0]||(t[0]=o=>n.value=!0),onMouseleave:t[1]||(t[1]=o=>n.value=!1)},[e.filename?(s(),p("span",j,$(e.filename),1)):P("",!0),N(a.$slots,"default",{},void 0,!0),C(c,{show:n.value,content:e.code,class:"copy-button"},null,8,["show","content"])],34)}}});const q=h(D,[["__scopeId","data-v-bfc7416e"]]);export{q as default};
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
code[data-v-c81ed8f1]{background-color:var(--prose-code-inline-backgroundColor);border-radius:var(--prose-code-inline-borderRadius);color:var(--prose-code-inline-color);font-family:var(--typography-font-code);font-size:var(--prose-code-inline-fontSize);font-weight:var(--prose-code-inline-fontWeight);margin-left:1px;margin-right:1px;padding:var(--prose-code-inline-padding)}tbody code[data-v-c81ed8f1]{font-size:var(--prose-tbody-code-inline-fontSize)}h1 a code[data-v-c81ed8f1],h2 a code[data-v-c81ed8f1],h3 a code[data-v-c81ed8f1],h4 a code[data-v-c81ed8f1],h5 a code[data-v-c81ed8f1],h6 a code[data-v-c81ed8f1]{border-radius:var(--prose-code-inline-borderRadius);color:inherit;font-size:.777777em;padding:.15em .5em}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user