@b3-crow/ui-kit 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -35
- package/dist/components/AnimatedBackground.d.ts +9 -0
- package/dist/components/AnimatedBackground.d.ts.map +1 -0
- package/dist/components/AnimatedBackground.js +43 -0
- package/dist/components/AnimatedBackground.js.map +1 -0
- package/dist/components/Button.d.ts +15 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +26 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/Card.d.ts +22 -0
- package/dist/components/Card.d.ts.map +1 -0
- package/dist/components/Card.js +50 -0
- package/dist/components/Card.js.map +1 -0
- package/dist/components/Globe.d.ts +14 -0
- package/dist/components/Globe.d.ts.map +1 -0
- package/dist/components/Globe.js +67 -0
- package/dist/components/Globe.js.map +1 -0
- package/dist/components/GradientBackground.d.ts +16 -0
- package/dist/components/GradientBackground.d.ts.map +1 -0
- package/dist/components/GradientBackground.js +18 -0
- package/dist/components/GradientBackground.js.map +1 -0
- package/dist/components/HeroText.d.ts +6 -0
- package/dist/components/HeroText.d.ts.map +1 -0
- package/dist/components/HeroText.js +22 -0
- package/dist/components/HeroText.js.map +1 -0
- package/dist/components/InputField.d.ts +25 -0
- package/dist/components/InputField.d.ts.map +1 -0
- package/dist/components/InputField.js +73 -0
- package/dist/components/InputField.js.map +1 -0
- package/dist/components/Logo.d.ts +6 -0
- package/dist/components/Logo.d.ts.map +1 -0
- package/dist/components/Logo.js +7 -0
- package/dist/components/Logo.js.map +1 -0
- package/dist/components/SectionLabel.d.ts +7 -0
- package/dist/components/SectionLabel.d.ts.map +1 -0
- package/dist/components/SectionLabel.js +11 -0
- package/dist/components/SectionLabel.js.map +1 -0
- package/dist/components/Subtitle.d.ts +6 -0
- package/dist/components/Subtitle.d.ts.map +1 -0
- package/dist/components/Subtitle.js +18 -0
- package/dist/components/Subtitle.js.map +1 -0
- package/dist/components/TypewriterText.d.ts +5 -0
- package/dist/components/TypewriterText.d.ts.map +1 -0
- package/dist/components/TypewriterText.js +57 -0
- package/dist/components/TypewriterText.js.map +1 -0
- package/dist/components/index.d.ts +12 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +12 -0
- package/dist/components/index.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/lib/utils.js +6 -0
- package/dist/lib/utils.js.map +1 -0
- package/dist/styles.css +2 -0
- package/docs/components.md +265 -0
- package/docs/development.md +291 -0
- package/docs/examples.md +333 -0
- package/docs/setup.md +73 -0
- package/package.json +9 -4
- package/.github/dependabot.yml +0 -6
- package/.github/workflows/publish.yml +0 -75
- package/.github/workflows/template-sync.yml +0 -31
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/.prettierrc +0 -13
- package/bun.lock +0 -1042
- package/commitlint.config.cjs +0 -4
- package/eslint.config.mts +0 -7
- package/lint-staged +0 -0
- package/postcss.config.mjs +0 -5
- package/src/components/coming-soon/AnimatedBackground.tsx +0 -71
- package/src/components/coming-soon/HeroText.tsx +0 -40
- package/src/components/coming-soon/Logo.tsx +0 -27
- package/src/components/coming-soon/Subtitle.tsx +0 -37
- package/src/components/coming-soon/TypewriterText.tsx +0 -89
- package/src/components/coming-soon/index.ts +0 -5
- package/src/index.ts +0 -2
- package/tsconfig.json +0 -23
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@b3-crow/ui-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"description": "CROW-B3 UI Kit",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -9,11 +9,13 @@
|
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.js"
|
|
12
|
-
}
|
|
12
|
+
},
|
|
13
|
+
"./styles.css": "./dist/styles.css"
|
|
13
14
|
},
|
|
14
15
|
"type": "module",
|
|
15
16
|
"scripts": {
|
|
16
|
-
"build": "tsc",
|
|
17
|
+
"build": "tsc && bun run build:css",
|
|
18
|
+
"build:css": "tailwindcss -i src/styles.css -o dist/styles.css --minify",
|
|
17
19
|
"build:watch": "tsc --watch",
|
|
18
20
|
"lint": "eslint src/",
|
|
19
21
|
"lint:fix": "eslint src/ --fix",
|
|
@@ -34,6 +36,7 @@
|
|
|
34
36
|
"devDependencies": {
|
|
35
37
|
"@antfu/eslint-config": "^6.2.0",
|
|
36
38
|
"@commitlint/config-conventional": "^20.0.0",
|
|
39
|
+
"@tailwindcss/cli": "4.1.17",
|
|
37
40
|
"@tailwindcss/postcss": "^4.1.17",
|
|
38
41
|
"@types/react": "^19.2.7",
|
|
39
42
|
"@types/react-dom": "^19.2.3",
|
|
@@ -63,7 +66,9 @@
|
|
|
63
66
|
"@radix-ui/react-slot": "^1.2.4",
|
|
64
67
|
"class-variance-authority": "^0.7.1",
|
|
65
68
|
"clsx": "^2.1.1",
|
|
66
|
-
"
|
|
69
|
+
"cobe": "^0.6.5",
|
|
70
|
+
"framer-motion": "^12.23.26",
|
|
71
|
+
"react-icons": "^5.5.0",
|
|
67
72
|
"tailwind-merge": "^3.4.0"
|
|
68
73
|
}
|
|
69
74
|
}
|
package/.github/dependabot.yml
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
name: Publish npm Package
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
permissions:
|
|
9
|
-
contents: write
|
|
10
|
-
packages: write
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
update-version:
|
|
14
|
-
runs-on: ubuntu-latest
|
|
15
|
-
if: ${{ github.actor != 'github-actions[bot]' }}
|
|
16
|
-
outputs:
|
|
17
|
-
version: ${{ steps.read_version.outputs.new_version }}
|
|
18
|
-
steps:
|
|
19
|
-
- name: Checkout
|
|
20
|
-
uses: actions/checkout@v4
|
|
21
|
-
with:
|
|
22
|
-
persist-credentials: false
|
|
23
|
-
|
|
24
|
-
- name: Configure Git Identity
|
|
25
|
-
run: |
|
|
26
|
-
git config user.name "github-actions[bot]"
|
|
27
|
-
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
28
|
-
|
|
29
|
-
- name: Read current version
|
|
30
|
-
id: read_version
|
|
31
|
-
run: |
|
|
32
|
-
current=$(jq -r '.version' package.json)
|
|
33
|
-
echo "current version: $current"
|
|
34
|
-
IFS='.' read -r major minor patch <<< "$current"
|
|
35
|
-
patch=$((patch + 1))
|
|
36
|
-
new="$major.$minor.$patch"
|
|
37
|
-
echo "new version: $new"
|
|
38
|
-
echo "new_version=$new" >> $GITHUB_OUTPUT
|
|
39
|
-
|
|
40
|
-
- name: Bump version in package.json
|
|
41
|
-
run: |
|
|
42
|
-
jq --arg v "${{ steps.read_version.outputs.new_version }}" '.version = $v' package.json > package.json.tmp
|
|
43
|
-
mv package.json.tmp package.json
|
|
44
|
-
|
|
45
|
-
- name: Commit & push version bump
|
|
46
|
-
env:
|
|
47
|
-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
48
|
-
run: |
|
|
49
|
-
git remote set-url origin https://x-access-token:${GH_TOKEN}@github.com/${{ github.repository }}.git
|
|
50
|
-
git add package.json
|
|
51
|
-
git diff --cached --quiet || git commit -m "chore: bump up version +0.0.1 [skip ci]"
|
|
52
|
-
git push origin HEAD
|
|
53
|
-
|
|
54
|
-
build:
|
|
55
|
-
runs-on: ubuntu-latest
|
|
56
|
-
needs: update-version
|
|
57
|
-
permissions:
|
|
58
|
-
contents: read
|
|
59
|
-
packages: write
|
|
60
|
-
steps:
|
|
61
|
-
- uses: actions/checkout@v4
|
|
62
|
-
- name: Pull latest version changes
|
|
63
|
-
run: git pull origin ${{ github.ref_name }}
|
|
64
|
-
- uses: oven-sh/setup-bun@v2
|
|
65
|
-
with:
|
|
66
|
-
bun-version: latest
|
|
67
|
-
- uses: actions/setup-node@v4
|
|
68
|
-
with:
|
|
69
|
-
node-version: '20.x'
|
|
70
|
-
registry-url: 'https://registry.npmjs.org'
|
|
71
|
-
- run: bun install
|
|
72
|
-
- run: bun run build
|
|
73
|
-
- run: bunx npm publish --no-git-checks
|
|
74
|
-
env:
|
|
75
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
on:
|
|
2
|
-
schedule:
|
|
3
|
-
- cron: '0 0 1 * *'
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
|
|
6
|
-
permissions:
|
|
7
|
-
contents: write
|
|
8
|
-
pull-requests: write
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
repo-sync:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
permissions:
|
|
14
|
-
contents: write
|
|
15
|
-
pull-requests: write
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- name: Checkout
|
|
19
|
-
uses: actions/checkout@v4
|
|
20
|
-
with:
|
|
21
|
-
token: ${{ secrets.GH_TOKEN }}
|
|
22
|
-
persist-credentials: false
|
|
23
|
-
|
|
24
|
-
- name: actions-template-sync
|
|
25
|
-
uses: AndreasAugustin/actions-template-sync@v2
|
|
26
|
-
with:
|
|
27
|
-
git_user_name: Methika Fernando
|
|
28
|
-
git_user_email: methikafernando2006@gmail.com
|
|
29
|
-
source_gh_token: ${{ secrets.GH_TOKEN }}
|
|
30
|
-
target_gh_token: ${{ secrets.GH_TOKEN }}
|
|
31
|
-
source_repo_path: CROW-B3/npm-sdk-template
|
package/.husky/commit-msg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
npx commitlint --edit $1
|
package/.husky/pre-commit
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
bun run lint-staged
|
package/.prettierrc
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"semi": true,
|
|
3
|
-
"trailingComma": "es5",
|
|
4
|
-
"singleQuote": true,
|
|
5
|
-
"tabWidth": 2,
|
|
6
|
-
"useTabs": false,
|
|
7
|
-
"printWidth": 80,
|
|
8
|
-
"bracketSpacing": true,
|
|
9
|
-
"arrowParens": "avoid",
|
|
10
|
-
"endOfLine": "lf",
|
|
11
|
-
"jsxSingleQuote": false,
|
|
12
|
-
"bracketSameLine": false
|
|
13
|
-
}
|