diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index f9eeeb2e..b8e55d5f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -24,7 +24,7 @@ jobs: - name: Setup Node.js environment uses: actions/setup-node@v2 with: - node-version: 16 + node-version: 18 - uses: pnpm/action-setup@v2 name: Install pnpm diff --git a/apps/www/.vitepress/theme/utils/codeeditor.ts b/apps/www/.vitepress/theme/utils/codeeditor.ts index 864146a6..02239879 100644 --- a/apps/www/.vitepress/theme/utils/codeeditor.ts +++ b/apps/www/.vitepress/theme/utils/codeeditor.ts @@ -123,7 +123,7 @@ function constructFiles(componentName: string, style: Style, sources: Record i !== 'utils') const files = { diff --git a/apps/www/package.json b/apps/www/package.json index edea6be2..49224f5e 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -1,7 +1,7 @@ { "name": "www", "type": "module", - "version": "0.10.3", + "version": "0.10.4", "files": [ "dist" ], @@ -52,7 +52,7 @@ "@iconify/vue": "^4.1.2", "@oxc-parser/wasm": "^0.1.0", "@shikijs/transformers": "^1.3.0", - "@types/lodash.template": "^4.5.3", + "@types/lodash-es": "^4.17.12", "@types/node": "^20.12.7", "@vitejs/plugin-vue": "^5.0.4", "@vitejs/plugin-vue-jsx": "^3.1.0", @@ -60,7 +60,7 @@ "@vue/compiler-dom": "^3.4.24", "@vue/tsconfig": "^0.5.1", "autoprefixer": "^10.4.19", - "lodash.template": "^4.5.0", + "lodash-es": "^4.17.21", "pathe": "^1.1.2", "rimraf": "^5.0.5", "shiki": "^1.3.0", diff --git a/apps/www/scripts/build-registry.ts b/apps/www/scripts/build-registry.ts index 2df7fd3e..56535b0d 100644 --- a/apps/www/scripts/build-registry.ts +++ b/apps/www/scripts/build-registry.ts @@ -1,6 +1,6 @@ import fs from 'node:fs' import path, { basename } from 'node:path' -import template from 'lodash.template' +import { template } from 'lodash-es' import { rimraf } from 'rimraf' import { colorMapping, colors } from '../src/lib/registry/colors' @@ -40,7 +40,7 @@ for (const style of styles) { file => `../src/lib/registry/${style.name}/${file}`, ) - const type = item.type.split(':')[1] + // const type = item.type.split(':')[1] index += ` "${item.name}": { name: "${item.name}", @@ -396,4 +396,4 @@ fs.writeFileSync( 'utf8', ) -console.log('✅ Done!') +console.log('✅ Done!!') diff --git a/apps/www/src/content/docs/components/form.md b/apps/www/src/content/docs/components/form.md index 1bb4cf7f..6c0d0f42 100644 --- a/apps/www/src/content/docs/components/form.md +++ b/apps/www/src/content/docs/components/form.md @@ -23,7 +23,7 @@ The `
` component is a wrapper around the `vee-validate` library. It prov - Composable components for building forms. - A `` component for building controlled form fields. - Form validation using `zod`. -- Applies the correct `aria` attributes to form fields based on states, handle unqiue IDs +- Applies the correct `aria` attributes to form fields based on states, handle unique IDs - Built to work with all Radix Vue components. - Bring your own schema library. We use `zod` but you can use any other supported schema validation you want, like [`yup`](https://github.com/jquense/yup) or [`valibot`](https://valibot.dev/). - **You have full control over the markup and styling.** @@ -249,7 +249,7 @@ function onSubmit(values) { ### Build your form Based on last step we can either use `` component or `useForm` composable -`useForm` is recommended cause values are typed automatically +`useForm` is recommended because values are typed automatically ```vue:line-numbers {2}