Skip to content

Commit

Permalink
fix: package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Selemondev authored and Selemondev committed Aug 10, 2023
1 parent f1eeba8 commit 132944a
Show file tree
Hide file tree
Showing 20 changed files with 65 additions and 109 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ Add `Windi UI` to your project by running one of the following commands:
```bash

# pnpm
pnpm add @selemondev/windi-ui
pnpm add @windi/ui-vue

# yarn
yarn add @selemondev/windi-ui
yarn add @windi/ui-vue

# npm
npm install @selemondev/windi-ui
npm install @windi/ui-vue

```

Expand All @@ -37,7 +37,7 @@ npm install @selemondev/windi-ui
```ts
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}', 'node_modules/@selemondev/windi-ui/dist/theme/*.{js,jsx,ts,tsx,vue}'],
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}', 'node_modules/@windi/ui-vue/dist/theme/*.{js,jsx,ts,tsx,vue}'],
darkMode: 'class',
theme: {
extend: {},
Expand All @@ -57,8 +57,8 @@ To import all the components provided by `Windi UI`, add `WindiUI` in your main

```ts
import { createApp } from 'vue'
import windiTheme from '@selemondev/windi-ui/dist/theme/windiTheme'
import WindiUI from '@selemondev/windi-ui'
import windiTheme from '@windi/ui-vue/dist/theme/windiTheme'
import WindiUI from '@windi/ui-vue'
import App from './App.vue'

const app = createApp(App)
Expand All @@ -78,9 +78,9 @@ Probably you might not want to globally register all the components but instead
```ts
import { createApp } from 'vue'
import './style.css'
import windiTheme from '@selemondev/windi-ui/dist/theme/windiTheme'
import windiTheme from '@windi/ui-vue/dist/theme/windiTheme'

import { WKbd, createWindiUI } from '@selemondev/windi-ui'
import { WKbd, createWindiUI } from '@windi/ui-vue'

import App from './App.vue'

Expand Down Expand Up @@ -137,9 +137,9 @@ npm i -D unplugin-vue-components
```ts
import { createApp } from 'vue'
import './style.css'
import windiTheme from '@selemondev/windi-ui/dist/theme/windiTheme'
import windiTheme from '@windi/ui-vue/dist/theme/windiTheme'

import { createWindiUI } from '@selemondev/windi-ui'
import { createWindiUI } from '@windi/ui-vue'

import App from './App.vue'

Expand All @@ -158,7 +158,7 @@ app.mount('#app')

```ts
// other imports
import { WindiUIComponentResolver } from '@selemondev/windi-ui'
import { WindiUIComponentResolver } from '@windi/ui-vue'
import Components from 'unplugin-vue-components/vite'

export default defineConfig({
Expand Down
4 changes: 2 additions & 2 deletions docs/docs/.vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import "./rainbow.css"
import "./style.css"
import './tailwind.css'
import 'uno.css'
import windiTheme from '@selemondev/windi-ui/dist/theme/windiTheme'
import WindiUI from '@selemondev/windi-ui'
import windiTheme from '@windi/ui-vue/dist/theme/windiTheme'
import WindiUI from '@windi/ui-vue'
let homePageStyle: HTMLStyleElement | undefined
export default {
extend: Theme,
Expand Down
28 changes: 14 additions & 14 deletions docs/docs/guide/getting-started/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ Adding `Windi UI` to your project is relatively straightforward. Run one of the

::: code-group
```bash [pnpm]
pnpm add @selemondev/windi-ui
pnpm add @windi/ui-vue
```
```bash [yarn]
yarn add @selemondev/windi-ui
yarn add @windi/ui-vue
```
```bash [npm]
npm install @selemondev/windi-ui
npm install @windi/ui-vue
```
:::

Expand All @@ -21,7 +21,7 @@ Adding `Windi UI` to your project is relatively straightforward. Run one of the
```ts
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}", "node_modules/@selemondev/windi-ui/dist/theme/*.{js,jsx,ts,tsx,vue}"],
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}", "node_modules/@windi/ui-vue/dist/theme/*.{js,jsx,ts,tsx,vue}"],
darkMode: "class",
theme: {
extend: {},
Expand All @@ -43,8 +43,8 @@ To import all the components provided by `Windi UI`, add `WindiUI` in your main
```ts
import { createApp } from 'vue'
import App from './App.vue'
import windiTheme from '@selemondev/windi-ui/dist/theme/windiTheme'
import WindiUI from '@selemondev/windi-ui'
import windiTheme from '@windi/ui-vue/dist/theme/windiTheme'
import WindiUI from '@windi/ui-vue'
const app = createApp(App)
app.use(WindiUI, windiTheme)
Expand All @@ -66,11 +66,11 @@ Probably you might not want to globally register all the components but instead
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import windiTheme from '@selemondev/windi-ui/dist/theme/windiTheme'
import windiTheme from '@windi/ui-vue/dist/theme/windiTheme'
import { WKbd, createWindiUI } from '@selemondev/windi-ui' // [!code ++]
import { WKbd, createWindiUI } from '@windi/ui-vue' // [!code ++]
import WindiUI from '@selemondev/windi-ui' // [!code --]
import WindiUI from '@windi/ui-vue' // [!code --]
const app = createApp(App)
Expand Down Expand Up @@ -130,13 +130,13 @@ To achieve this you need to do the following:
import { createApp } from 'vue'
import './style.css'
import App from './App.vue'
import windiTheme from '@selemondev/windi-ui/dist/theme/windiTheme'
import windiTheme from '@windi/ui-vue/dist/theme/windiTheme'
import { WKbd, createWindiUI } from '@selemondev/windi-ui' // [!code --]
import { WKbd, createWindiUI } from '@windi/ui-vue' // [!code --]
import { createWindiUI } from '@selemondev/windi-ui' // [!code ++]
import { createWindiUI } from '@windi/ui-vue' // [!code ++]
import WindiUI from '@selemondev/windi-ui' // [!code --]
import WindiUI from '@windi/ui-vue' // [!code --]
const app = createApp(App)
Expand All @@ -161,7 +161,7 @@ app.mount('#app')
```ts
// other imports
import { WindiUIComponentResolver } from '@selemondev/windi-ui'
import { WindiUIComponentResolver } from '@windi/ui-vue'
import Components from "unplugin-vue-components/vite"
export default defineConfig({
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"serve": "vitepress serve"
},
"dependencies": {
"@selemondev/windi-ui": "workspace:^",
"@windi/ui-vue": "workspace:^",
"markdown-it": "^13.0.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
content: ['./docs/.vitepress/**/*.{js,ts,vue}', './components/**/*.{js,ts,vue,md}', './src/**/*.{js,ts,vue}', 'node_modules/@selemondev/windi-ui/dist/theme/*.{js,ts,json}'],
content: ['./docs/.vitepress/**/*.{js,ts,vue}', './components/**/*.{js,ts,vue,md}', './src/**/*.{js,ts,vue}', 'node_modules/@windi/ui-vue/dist/theme/*.{js,ts,json}'],
plugins: [],
darkMode: 'class',
theme: {
Expand Down
3 changes: 0 additions & 3 deletions docs/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"./guide/*"
]
},
"types": [
"./auto-imports"
]
},
"exclude": [
"**/dist/**"
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"vue": "^3.3.4"
},
"devDependencies": {
"@selemondev/windi-ui": "workspace:^",
"@windi/ui-vue": "workspace:^",
"@tsconfig/node18": "^18.2.0",
"@types/node": "^20.4.5",
"@vitejs/plugin-vue": "^4.2.3",
Expand Down
45 changes: 2 additions & 43 deletions example/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,10 @@

<template>
<div class="grid place-items-center w-full min-h-screen">
<div class="space-y-2">
<div class="max-w-md">
<WAccordion class="grid gap-3">
<WAccordionItem title="1. How do I host Supabase?">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad error distinctio beatae odio natus unde ratione,
veniam assumenda dolor inventore cum architecto velit, ducimus ab debitis aut. Deserunt, atque enim vel
consectetur tenetur qui illo.
</WAccordionItem>
<WAccordionItem title="2. Do you support only PostgreSQL?">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad error distinctio beatae odio natus unde ratione,
veniam assumenda dolor inventore cum architecto velit, ducimus ab debitis aut. Deserunt, atque enim vel
consectetur tenetur qui illo.
</WAccordionItem>
<WAccordionItem title="3. Do you have a library for JavaScript and Flutter?">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad error distinctio beatae odio natus unde ratione,
veniam assumenda dolor inventore cum architecto velit, ducimus ab debitis aut. Deserunt, atque enim vel
consectetur tenetur qui illo.
</WAccordionItem>
</WAccordion>
</div>
<!-- rounded -->
<!-- <div class="max-w-md">
<WAccordion class="grid gap-3">
<WAccordionItem rounded title="1. How do I host Supabase?">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad error distinctio beatae odio natus unde ratione,
veniam assumenda dolor inventore cum architecto velit, ducimus ab debitis aut. Deserunt, atque enim vel
consectetur tenetur qui illo.
</WAccordionItem>
<WAccordionItem rounded title="2. Do you support only PostgreSQL?">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad error distinctio beatae odio natus unde ratione,
veniam assumenda dolor inventore cum architecto velit, ducimus ab debitis aut. Deserunt, atque enim vel
consectetur tenetur qui illo.
</WAccordionItem>
<WAccordionItem rounded title="3. Do you have a library for JavaScript and Flutter?">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad error distinctio beatae odio natus unde ratione,
veniam assumenda dolor inventore cum architecto velit, ducimus ab debitis aut. Deserunt, atque enim vel
consectetur tenetur qui illo.
</WAccordionItem>
</WAccordion>
</div> -->
<!-- <WButtonGroup >
<WButtonGroup>
<WButton icon="bxl:meta" :trailing="false" variant="primary" size="lg" />
<WButton icon="ic:round-play-arrow" :trailing="false" variant="danger" size="lg" />
<WButton icon="ph:reddit-logo" :trailing="false" variant="warning" size="lg" />
</WButtonGroup> -->
</WButtonGroup>
</div>
</div>
</template>
4 changes: 2 additions & 2 deletions example/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import "./assets/css/tailwind.css"
import { createApp } from 'vue'
import App from './App.vue'
import install from "windi-ui"
import config from "windi-ui/dist/theme/windiTheme"
import install from "@windi/ui-vue"
import config from "@windi/ui-vue/dist/theme/windiTheme"
const app = createApp(App)
app.use(install, config)
app.mount('#app')
2 changes: 1 addition & 1 deletion example/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}", 'node_modules/windi-ui/dist/theme/*.{js,ts,json}'],
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}", 'node_modules/@windi/ui-vue/dist/theme/*.{js,ts,json}'],
theme: {
extend: {},
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test": "vitest",
"test:update": "vitest -u",
"test:coverage": "vitest --coverage",
"windi-ui": "pnpm --filter @selemondev/windi-ui",
"windi-ui": "pnpm --filter @windi/ui-vue",
"postinstall": "npx simple-git-hooks",
"major": "taze minor -wIr"
},
Expand Down
22 changes: 11 additions & 11 deletions packages/windi/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ Add `Windi UI` to your project by running one of the following commands:
```bash

# pnpm
pnpm add @selemondev/windi-ui
pnpm add @windi/ui-vue

# yarn
yarn add @selemondev/windi-ui
yarn add @windi/ui-vue

# npm
npm install @selemondev/windi-ui
npm install @windi/ui-vue

```

Expand All @@ -37,7 +37,7 @@ npm install @selemondev/windi-ui
```ts
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}', 'node_modules/@selemondev/windi-ui/dist/theme/*.{js,jsx,ts,tsx,vue}'],
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}', 'node_modules/@windi/ui-vue/dist/theme/*.{js,jsx,ts,tsx,vue}'],
darkMode: 'class',
theme: {
extend: {},
Expand All @@ -57,8 +57,8 @@ To import all the components provided by `Windi UI`, add `WindiUI` in your main

```ts
import { createApp } from 'vue'
import windiTheme from '@selemondev/windi-ui/dist/theme/windiTheme'
import WindiUI from '@selemondev/windi-ui'
import windiTheme from '@windi/ui-vue/dist/theme/windiTheme'
import WindiUI from '@windi/ui-vue'
import App from './App.vue'

const app = createApp(App)
Expand All @@ -78,9 +78,9 @@ Probably you might not want to globally register all the components but instead
```ts
import { createApp } from 'vue'
import './style.css'
import windiTheme from '@selemondev/windi-ui/dist/theme/windiTheme'
import windiTheme from '@windi/ui-vue/dist/theme/windiTheme'

import { WKbd, createWindiUI } from '@selemondev/windi-ui'
import { WKbd, createWindiUI } from '@windi/ui-vue'

import App from './App.vue'

Expand Down Expand Up @@ -137,9 +137,9 @@ npm i -D unplugin-vue-components
```ts
import { createApp } from 'vue'
import './style.css'
import windiTheme from '@selemondev/windi-ui/dist/theme/windiTheme'
import windiTheme from '@windi/ui-vue/dist/theme/windiTheme'

import { createWindiUI } from '@selemondev/windi-ui'
import { createWindiUI } from '@windi/ui-vue'

import App from './App.vue'

Expand All @@ -158,7 +158,7 @@ app.mount('#app')

```ts
// other imports
import { WindiUIComponentResolver } from '@selemondev/windi-ui'
import { WindiUIComponentResolver } from '@windi/ui-vue'
import Components from 'unplugin-vue-components/vite'

export default defineConfig({
Expand Down
4 changes: 2 additions & 2 deletions packages/windi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@selemondev/windi-ui",
"version": "0.0.1-beta.0",
"name": "@windi/ui-vue",
"version": "0.0.0",
"packageManager": "[email protected]",
"description": "Build Accessible Apps 10x faster",
"author": "Selemondev",
Expand Down
2 changes: 1 addition & 1 deletion packages/windi/src/componentResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export function WindiUIComponentResolver(): ComponentResolver {
type: 'component',
resolve: (name: string) => {
if (name.match(/^W[A-Z]/))
return { name, from: '@selemondev/windi-ui' }
return { name, from: '@windi/ui-vue' }
},
}
}
2 changes: 1 addition & 1 deletion packages/windi/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// module.exports = require('@windi-ui/tailwind-config/tailwind.config')
/** @type {import('tailwindcss').Config} */
module.exports = {
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}', 'node_modules/@selemondev/windi-ui/dist/theme/*.{js,ts,json}'],
content: ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}', 'node_modules/@windi/ui-vue/dist/theme/*.{js,ts,json}'],
darkMode: 'class',
theme: {
extend: {
Expand Down
2 changes: 1 addition & 1 deletion playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"homepage": "https://github.com/selemondev/windi-ui#readme",
"dependencies": {
"@selemondev/windi-ui": "workspace:^",
"@windi/ui-vue": "workspace:^",
"@vue/repl": "^1.4.1",
"autoprefixer": "^10.4.14",
"compare-versions": "^4.1.4",
Expand Down
Loading

0 comments on commit 132944a

Please sign in to comment.