Skip to content

Commit d63ee23

Browse files
committed
feat: renames library
1 parent cb66ec0 commit d63ee23

File tree

87 files changed

+193
-522
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+193
-522
lines changed

.github/workflows/release.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Node.js Package
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
release:
9+
name: Release
10+
runs-on: ubuntu-latest
11+
permissions:
12+
packages: write
13+
pull-requests: write
14+
contents: write
15+
16+
steps:
17+
- name: Checkout Repo
18+
uses: actions/checkout@v4
19+
20+
- name: Setup pnpm 8
21+
uses: pnpm/action-setup@v2
22+
with:
23+
version: 8
24+
25+
- name: Install Dependencies
26+
run: pnpm install
27+
28+
- name: 🏗 Setup Node
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: 18
32+
registry-url: 'https://registry.npmjs.org'
33+
cache: 'pnpm'
34+
35+
- name: 🚀 Create Release Pull Request or Publish to npm
36+
id: changesets
37+
uses: changesets/action@v1
38+
with:
39+
publish: pnpm run release
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# VAR UI Library
1+
# VAR META UI Library
22

33
Powered by:
44

apps/web/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
extends: ['@var-meta-tech/eslint-config/library'],
2+
extends: ['@var-meta/eslint-config/library'],
33
};

apps/web/.storybook/preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import '../src/app/globals.css';
33
import { DocsContainer as BaseContainer, DocsContainerProps as BaseContainerProps } from '@storybook/blocks';
44
import type { Preview } from '@storybook/react';
55
import { themes } from '@storybook/theming';
6-
import { Toaster } from '@var-meta-tech/ui';
6+
import { Toaster } from '@var-meta/ui';
77
import { useDarkMode } from 'storybook-dark-mode';
88

99
const preview: Preview = {

apps/web/.storybook/welcome.stories.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Meta, Story } from '@storybook/addon-docs';
88

99
<br />
1010

11-
## VAR-UI Version 1 - Design system
11+
## VAR-Meta UI Version 1 - Design system
1212

1313
<br />
1414

@@ -19,18 +19,18 @@ import { Meta, Story } from '@storybook/addon-docs';
1919

2020
## Install
2121

22-
The UI came with diffences package namely `@var-meta-tech/icon` and `@var-meta-tech/ui`
22+
The UI came with diffences package namely `@var-meta/icon`, `@var-meta/theme` and `@var-meta/ui`
2323

2424
```sh
25-
npm install @var-meta-tech/ui @var-meta-tech/icon
25+
npm install @var-meta/ui @var-meta/theme @var-meta/icon
2626
```
2727

2828
```sh
29-
yarn add @var-meta-tech/ui @var-meta-tech/icon
29+
yarn add @var-meta/ui @var-meta/theme @var-meta/icon
3030
```
3131

3232
```sh
33-
pnpm i @var-meta-tech/ui @var-meta-tech/icon
33+
pnpm i @var-meta/ui @var-meta/theme @var-meta/icon
3434
```
3535

3636
## Tailwind CSS Setup
@@ -41,7 +41,7 @@ the following code to your `tailwind.config.js` file:
4141

4242
```ts
4343
// tailwind.config.ts
44-
import { createThemes } from '@var-meta-tech/theme';
44+
import { createThemes } from '@var-meta/theme';
4545
import { withTV } from 'tailwind-variants/transformer';
4646
import type { Config } from 'tailwindcss';
4747

@@ -51,7 +51,7 @@ const config: Config = {
5151
'./.storybook/welcome.stories.mdx',
5252
'./src/components/**/*.{js,ts,jsx,tsx,mdx}',
5353
'./src/app/**/*.{js,ts,jsx,tsx,mdx}',
54-
'./node_modules/@var-meta-tech/ui/**/*.{js,ts,jsx,tsx}',
54+
'./node_modules/@var-meta/ui/**/*.{js,ts,jsx,tsx}',
5555
],
5656
plugins: [createThemes()],
5757
};
@@ -65,7 +65,7 @@ Now, you can use the component you installed in your application:
6565

6666
```jsx
6767
import * as React from 'react';
68-
import { Button } from '@var-meta-tech/ui';
68+
import { Button } from '@var-meta/ui';
6969

7070
function App() {
7171
return <Button>Press me</Button>;

apps/web/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/** @type {import('next').NextConfig} */
33
const nextConfig = {
44
experimental: {
5-
optimizePackageImports: ['@var-meta-tech/icon', '@var-meta-tech/ui'],
5+
optimizePackageImports: ['@var-meta/icon', '@var-meta/ui'],
66
},
77
};
88

apps/web/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web",
3-
"version": "1.0.6",
3+
"version": "0.0.1",
44
"private": true,
55
"scripts": {
66
"dev": "storybook dev -p 6006",
@@ -16,9 +16,9 @@
1616
"clean": "rimraf .turbo && rimraf .next out && rimraf storybook-static && rimraf node_modules "
1717
},
1818
"dependencies": {
19-
"@var-meta-tech/ui": "workspace:*",
20-
"@var-meta-tech/icons": "workspace:^",
21-
"@var-meta-tech/theme": "workspace:*",
19+
"@var-meta/ui": "workspace:*",
20+
"@var-meta/icons": "workspace:^",
21+
"@var-meta/theme": "workspace:*",
2222
"class-variance-authority": "^0.7.0",
2323
"dayjs": "^1.11.10",
2424
"next": "^14.0.3",
@@ -44,7 +44,7 @@
4444
"@types/node": "^18.11.17",
4545
"@types/react": "^18.2.5",
4646
"@types/react-dom": "^18.2.4",
47-
"@var-meta-tech/eslint-config": "workspace:*",
47+
"@var-meta/eslint-config": "workspace:*",
4848
"autoprefixer": "^10.4.13",
4949
"postcss": "^8.4.20",
5050
"storybook": "^7.5.3",

apps/web/src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
Select,
1111
toast,
1212
type AutocompleteProps,
13-
} from '@var-meta-tech/ui';
13+
} from '@var-meta/ui';
1414

1515
const options: AutocompleteProps['options'] = [
1616
{

apps/web/src/app/provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use client';
22

33
import React from 'react';
4-
import { Toaster, type FCC } from '@var-meta-tech/ui';
4+
import { Toaster, type FCC } from '@var-meta/ui';
55
import { ThemeProvider } from 'next-themes';
66

77
const Provider: FCC = ({ children }) => {

apps/web/src/stories/accordion.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import type { Meta, StoryFn } from '@storybook/react';
3-
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type AccordionProps } from '@var-meta-tech/ui';
3+
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, type AccordionProps } from '@var-meta/ui';
44

55
import { EnhancedView } from '@/components/View';
66

0 commit comments

Comments
 (0)