diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 000000000..55e3ffcf1 --- /dev/null +++ b/.github/workflows/build.yaml @@ -0,0 +1,50 @@ +name: Build & Lint + +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup Node.js environment + uses: actions/setup-node@v2 + with: + node-version: 16 + + - name: Install dependencies + run: cd packages/radix-vue && npm install + + - name: Build + run: cd packages/radix-vue && npm run -r --filter=!docs build + + - name: Check for errors + run: | + if [ $? -eq 0 ]; then + echo "Build succeeded" + else + echo "Build failed" + exit 1 + fi + + lint: + needs: build + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup Node.js environment + uses: actions/setup-node@v2 + with: + node-version: 16 + + - name: Install dependencies + run: cd packages/radix-vue && npm install + + - name: Lint + run: cd packages/radix-vue && npm run lint \ No newline at end of file diff --git a/README.md b/README.md index 635aef528..acfd25a1a 100644 --- a/README.md +++ b/README.md @@ -23,32 +23,32 @@ For changelog, visit [radix-vue.com/overview/releases](https://radix-vue.com/ove | Component | Usable | Complete API | Complete Accessibility | | :------------------------------------------------------------------ | :----: | ------------ | ---------------------- | -| [Accordion](https://github.com/radix-vue/radix-vue/issues/1) | ✅ | | | -| [Alert Dialog](https://github.com/radix-vue/radix-vue/issues/2) | ✅ | ⏳ | | -| [Aspect Ratio](https://github.com/radix-vue/radix-vue/issues/3) | ✅ | ✅ | | -| [Avatar](https://github.com/radix-vue/radix-vue/issues/4) | ✅ | ✅ | | -| [Checkbox](https://github.com/radix-vue/radix-vue/issues/5) | ✅ | ✅ | | -| [Collapsible](https://github.com/radix-vue/radix-vue/issues/6) | ✅ | | | -| [Context Menu](https://github.com/radix-vue/radix-vue/issues/7) | ✅ | | | -| [Dialog](https://github.com/radix-vue/radix-vue/issues/8) | ✅ | ⏳ | | -| [Dropdown Menu](https://github.com/radix-vue/radix-vue/issues/9) | ✅ | | | -| [Hover Card](https://github.com/radix-vue/radix-vue/issues/11) | ✅ | | | -| [Label](https://github.com/radix-vue/radix-vue/issues/12) | ✅ | ✅ | ✅ | -| [Menubar](https://github.com/radix-vue/radix-vue/issues/13) | ✅ | | | -| [Navigation Menu](https://github.com/radix-vue/radix-vue/issues/14) | ⏳ | | | -| [Popover](https://github.com/radix-vue/radix-vue/issues/15) | ✅ | | | -| [Progress](https://github.com/radix-vue/radix-vue/issues/16) | ✅ | ⏳ | | -| [Radio Group](https://github.com/radix-vue/radix-vue/issues/17) | ✅ | | | -| [Scroll Area](https://github.com/radix-vue/radix-vue/issues/18) | ✅ | | | -| [Select](https://github.com/radix-vue/radix-vue/issues/19) | ✅ | | | -| [Separator](https://github.com/radix-vue/radix-vue/issues/20) | ✅ | ✅ | | -| [Slider](https://github.com/radix-vue/radix-vue/issues/21) | ✅ | | | -| [Switch](https://github.com/radix-vue/radix-vue/issues/22) | ✅ | ✅ | | -| [Tabs](https://github.com/radix-vue/radix-vue/issues/23) | ✅ | ✅ | | -| [Toggle](https://github.com/radix-vue/radix-vue/issues/25) | ✅ | ✅ | | -| [Toggle Group](https://github.com/radix-vue/radix-vue/issues/26) | ✅ | | | -| [Toolbar](https://github.com/radix-vue/radix-vue/issues/27) | ✅ | | | -| [Tooltip](https://github.com/radix-vue/radix-vue/issues/28) | ✅ | | | +| [Accordion](https://radix-vue.com/components/accordion) | ✅ | | | +| [Alert Dialog](https://radix-vue.com/components/alert-dialog) | ✅ | ⏳ | | +| [Aspect Ratio](https://radix-vue.com/components/aspect-ratio) | ✅ | ✅ | | +| [Avatar](https://radix-vue.com/components/avatar) | ✅ | ✅ | | +| [Checkbox](https://radix-vue.com/components/checkbox) | ✅ | ✅ | | +| [Collapsible](https://radix-vue.com/components/collapsible) | ✅ | ✅ | | +| [Context Menu](https://radix-vue.com/components/context-menu) | ✅ | | | +| [Dialog](https://radix-vue.com/components/dialog) | ✅ | ⏳ | | +| [Dropdown Menu](https://radix-vue.com/components/dropdown-menu) | ✅ | | | +| [Hover Card](https://radix-vue.com/components/hover-card) | ✅ | | | +| [Label](https://radix-vue.com/components/label) | ✅ | ✅ | ✅ | +| [Menubar](https://radix-vue.com/components/menubar) | ✅ | | | +| [Navigation Menu](https://radix-vue.com/components/navigation-menu) | ⏳ | | | +| [Popover](https://radix-vue.com/components/popover) | ✅ | | | +| [Progress](https://radix-vue.com/components/progress) | ✅ | ⏳ | | +| [Radio Group](https://radix-vue.com/components/radio-group) | ✅ | ✅ | | +| [Scroll Area](https://radix-vue.com/components/scroll-area) | ✅ | | | +| [Select](https://radix-vue.com/components/select) | ✅ | | | +| [Separator](https://radix-vue.com/components/separator) | ✅ | ✅ | | +| [Slider](https://radix-vue.com/components/slider) | ✅ | | | +| [Switch](https://radix-vue.com/components/switch) | ✅ | ✅ | | +| [Tabs](https://radix-vue.com/components/tabs) | ✅ | ✅ | | +| [Toggle](https://radix-vue.com/components/toggle) | ✅ | ✅ | | +| [Toggle Group](https://radix-vue.com/components/toggle-group) | ✅ | ✅ | | +| [Toolbar](https://radix-vue.com/components/toolbar) | ✅ | | | +| [Tooltip](https://radix-vue.com/components/tooltip) | ✅ | | | ## Contributing @@ -57,11 +57,13 @@ We would love to have your contributions! All PRs all welcomed! We need help bui ## Dev Setup ### Docs -1. Go to the docs directory : `cd docs` + +1. Go to the docs directory : `cd docs` 2. Run `pnpm i --ignore-workspace` 3. Run `pnpm run dev` ### Package + 1. Clone the repo 2. Go to the repo directory: `cd radix-vue` 3. Run `pnpm run start` @@ -79,8 +81,9 @@ We would love to have your contributions! All PRs all welcomed! We need help bui ## Credits All credits goes to these open-source works and resources + - [Radix UI](https://radix-ui.com) - [Radix Svelte](https://radix-svelte.com) - [Headless UI](https://headlessui.com) - [Floating UI](https://floating-ui.com) -- [Vue Use](https://vueuse.org) \ No newline at end of file +- [Vue Use](https://vueuse.org) diff --git a/docs/package.json b/docs/package.json index 2a589bf44..cccf5e321 100644 --- a/docs/package.json +++ b/docs/package.json @@ -21,6 +21,6 @@ } }, "dependencies": { - "radix-vue": "0.0.1-rc-.8" + "radix-vue": "0.0.1-rc-.9" } } diff --git a/packages/radix-vue/package.json b/packages/radix-vue/package.json index 63e29293f..dfea9b852 100644 --- a/packages/radix-vue/package.json +++ b/packages/radix-vue/package.json @@ -1,6 +1,6 @@ { "name": "radix-vue", - "version": "0.0.1-rc-.8", + "version": "0.0.1-rc-.9", "description": "Vue port for Radix UI Primitives.", "type": "module", "main": "./dist/index.umd.cjs", diff --git a/packages/radix-vue/src/Collapsible/CollapsibleContent.vue b/packages/radix-vue/src/Collapsible/CollapsibleContent.vue index dd87c891e..abb5f7c45 100644 --- a/packages/radix-vue/src/Collapsible/CollapsibleContent.vue +++ b/packages/radix-vue/src/Collapsible/CollapsibleContent.vue @@ -1,7 +1,6 @@ @@ -81,13 +80,18 @@ onMounted(() => { isMountAnimationPrevented.value = false; }); }); + +const props = withDefaults(defineProps(), { + asChild: false, +});