Skip to content

Commit 3b5be3b

Browse files
authored
[add] Grid, Nav, Navbar & Offcanvas types & components (#15)
1 parent db36bc1 commit 3b5be3b

17 files changed

Lines changed: 5538 additions & 6665 deletions

.github/workflows/main.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,27 @@ on:
44
tags:
55
- v*
66
jobs:
7-
Build-and-Deploy:
7+
Build-and-Publish:
88
runs-on: ubuntu-latest
99
steps:
10-
- name: Checkout
11-
uses: actions/checkout@v2
12-
- name: Use Node.js
13-
uses: actions/setup-node@v2
10+
- uses: actions/checkout@v3
11+
12+
- uses: pnpm/action-setup@v2
1413
with:
15-
node-version: 14
14+
version: 8
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 18
1618
registry-url: https://registry.npmjs.org
17-
cache: yarn
18-
- name: Install, Build & Publish
19-
run: yarn && yarn publish
19+
cache: pnpm
20+
- name: Install Dependencies
21+
run: pnpm i --frozen-lockfile
22+
23+
- name: Build & Publish
24+
run: npm publish
2025
env:
2126
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
2228
- name: Update document
2329
uses: peaceiris/actions-gh-pages@v3
2430
with:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules/
22
package-lock.json
3+
yarn.lock
34
dist/
45
.parcel-cache/
56
docs/

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers = false

.parcelrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "@parcel/config-default",
3+
"transformers": {
4+
"*.{ts,tsx}": [
5+
"@parcel/transformer-typescript-tsc"
6+
]
7+
}
8+
}

.postcssrc

Lines changed: 0 additions & 8 deletions
This file was deleted.

ReadMe.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
# BootCell
44

5-
[Web Components][1] UI library based on [WebCell v2][2], [BootStrap v5][3], [BootStrap Icon v1][4] & [FontAwesome v5][5]
5+
[Web Components][1] UI library based on [WebCell v3][2], [BootStrap v5][3], [BootStrap Icon v1][4] & [FontAwesome v6][5]
66

7-
[![NPM Dependency](https://david-dm.org/EasyWebApp/BootCell.svg)][6]
8-
[![CI & CD](https://github.com/EasyWebApp/BootCell/workflows/CI%20&%20CD/badge.svg)][7]
7+
[![NPM Dependency](https://img.shields.io/librariesio/github/EasyWebApp/WebCell.svg)][6]
8+
[![CI & CD](https://github.com/EasyWebApp/BootCell/actions/workflows/main.yml/badge.svg)][7]
99

1010
[![Anti 996 license](https://img.shields.io/badge/license-Anti%20996-blue.svg)][8]
1111
[![jaywcjlove/sb](https://jaywcjlove.github.io/sb/ico/awesome.svg)][9]
@@ -23,28 +23,28 @@ npm install boot-cell iterable-observer @nuintun/qrcode
2323
```html
2424
<link
2525
rel="stylesheet"
26-
href="https://cdn.jsdelivr.net/npm/dialog-polyfill@0.5.6/dist/dialog-polyfill.css"
26+
href="https://unpkg.com/dialog-polyfill@0.5.6/dist/dialog-polyfill.css"
2727
/>
2828
<link
2929
rel="stylesheet"
30-
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
30+
href="https://unpkg.com/bootstrap@5.3.2/dist/css/bootstrap.min.css"
3131
/>
3232
<link
3333
rel="stylesheet"
34-
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.8.0/font/bootstrap-icons.css"
34+
href="https://unpkg.com/bootstrap-icons@1.11.2/font/bootstrap-icons.css"
3535
/>
3636
<link
3737
rel="stylesheet"
38-
href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.4/css/all.min.css"
38+
href="https://unpkg.com/@fortawesome/fontawesome-free@6.5.1/css/all.min.css"
3939
/>
4040
<script
4141
crossorigin
4242
src="https://polyfill.app/api/polyfill?features=es.array.flat,es.object.from-entries,regenerator-runtime,intersection-observer,resize-observer"
4343
></script>
44-
<script src="https://cdn.jsdelivr.net/npm/dialog-polyfill@0.5.6/dist/dialog-polyfill.js"></script>
45-
<script src="https://cdn.jsdelivr.net/npm/share-api-polyfill@1.0.21/dist/share-min.js"></script>
46-
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.6.0/custom-elements-es5-adapter.js"></script>
47-
<script src="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2.6.0/webcomponents-bundle.js"></script>
44+
<script src="https://unpkg.com/dialog-polyfill@0.5.6/dist/dialog-polyfill.js"></script>
45+
<script src="https://unpkg.com/share-api-polyfill@1.1.1/dist/share-min.js"></script>
46+
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.8.0/custom-elements-es5-adapter.js"></script>
47+
<script src="https://unpkg.com/@webcomponents/webcomponentsjs@2.8.0/webcomponents-bundle.js"></script>
4848
```
4949

5050
## Components
@@ -163,8 +163,8 @@ Replace **BootStrap official CSS** file with these 3th-party libraries's directl
163163
[3]: https://getbootstrap.com/
164164
[4]: https://icons.getbootstrap.com/
165165
[5]: https://fontawesome.com/
166-
[6]: https://david-dm.org/EasyWebApp/BootCell
167-
[7]: https://github.com/EasyWebApp/BootCell/actions
166+
[6]: https://libraries.io/npm/boot-cell
167+
[7]: https://github.com/EasyWebApp/BootCell/actions/workflows/main.yml
168168
[8]: https://github.com/996icu/996.ICU/blob/master/LICENSE
169169
[9]: https://github.com/jaywcjlove/awesome-uikit
170170
[10]: https://nodei.co/npm/boot-cell/

package.json

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"name": "boot-cell",
3-
"version": "2.0.0-alpha.3",
3+
"version": "2.0.0-beta.0",
44
"license": "LGPL-3.0",
55
"author": "shiy2008@gmail.com",
6-
"description": "Web Components UI library based on WebCell v2, BootStrap v5, BootStrap Icon v1 & FontAwesome v5",
6+
"description": "Web Components UI library based on WebCell v3, BootStrap v5, BootStrap Icon v1 & FontAwesome v6",
77
"keywords": [
88
"web",
99
"component",
@@ -24,59 +24,59 @@
2424
"main": "dist/index.js",
2525
"module": "dist/index.esm.js",
2626
"dependencies": {
27-
"@swc/helpers": "^0.3.2",
28-
"classnames": "^2.3.1",
29-
"file-cell": "^0.1.0",
30-
"regenerator-runtime": "^0.13.9",
31-
"web-cell": "^2.4.0-rc.6",
32-
"web-utility": "^3.0.0"
27+
"@swc/helpers": "^0.5.3",
28+
"classnames": "^2.5.1",
29+
"dom-renderer": "^2.0.4",
30+
"mobx": "^6.12.0",
31+
"regenerator-runtime": "^0.14.1",
32+
"web-cell": "^3.0.0-rc.4",
33+
"web-utility": "^4.1.3"
3334
},
3435
"peerDependencies": {
35-
"@fortawesome/fontawesome-free": "^5.0.0",
36-
"@nuintun/qrcode": "^3.0.0",
37-
"bootstrap": "^5.0.0",
38-
"bootstrap-icons": "^1.0.0",
39-
"dialog-polyfill": "^0.5.0",
40-
"iterable-observer": "^1.0.0-rc.0",
41-
"share-api-polyfill": "1.0.21"
36+
"@fortawesome/fontawesome-free": "^6",
37+
"@nuintun/qrcode": "^3",
38+
"bootstrap": "^5",
39+
"bootstrap-icons": "^1",
40+
"dialog-polyfill": "^0.5",
41+
"iterable-observer": "^1",
42+
"share-api-polyfill": "^1"
4243
},
4344
"devDependencies": {
44-
"@jest/types": "^27.4.2",
45-
"@nuintun/qrcode": "^3.1.1",
46-
"@parcel/packager-ts": "^2.2.1",
47-
"@parcel/transformer-less": "^2.2.1",
48-
"@parcel/transformer-typescript-types": "^2.2.1",
49-
"@peculiar/webcrypto": "^1.2.3",
45+
"@jest/types": "^29.6.3",
46+
"@nuintun/qrcode": "^3.4.0",
47+
"@parcel/config-default": "^2.11.0",
48+
"@parcel/packager-ts": "~2.11.0",
49+
"@parcel/transformer-less": "~2.11.0",
50+
"@parcel/transformer-typescript-tsc": "^2.11.0",
51+
"@parcel/transformer-typescript-types": "~2.11.0",
52+
"@peculiar/webcrypto": "^1.4.3",
5053
"@tech_query/snabbdom-looks-like": "^2.0.1",
5154
"@types/classnames": "^2.3.1",
52-
"@types/jest": "^27.4.0",
53-
"@types/resize-observer-browser": "^0.1.7",
54-
"@types/turndown": "^5.0.1",
55-
"autoprefixer": "^10.4.2",
55+
"@types/jest": "^29.5.11",
56+
"@types/resize-observer-browser": "^0.1.11",
57+
"@types/turndown": "^5.0.4",
5658
"cross-env": "^7.0.3",
57-
"element-internals-polyfill": "^0.1.54",
58-
"husky": "^7.0.4",
59+
"element-internals-polyfill": "^1.3.10",
60+
"husky": "^8.0.3",
5961
"identity-obj-proxy": "^3.0.0",
60-
"iterable-observer": "1.0.0-rc.0",
61-
"jest": "^27.4.7",
62-
"less": "^4.1.2",
63-
"lint-staged": "^12.3.3",
62+
"iterable-observer": "^1.0.1",
63+
"jest": "^29.7.0",
64+
"less": "^4.2.0",
65+
"lint-staged": "^15.2.0",
6466
"markdown-area-element": "^0.2.3",
65-
"open-cli": "^7.0.1",
66-
"parcel": "^2.2.1",
67-
"postcss": "^8.4.6",
68-
"prettier": "^2.5.1",
69-
"quill-cell": "^0.1.0",
70-
"ts-jest": "^27.1.3",
71-
"ts-node": "^10.4.0",
72-
"typedoc": "^0.22.11",
73-
"typedoc-plugin-mdn-links": "^1.0.5",
74-
"typescript": "~4.3.5"
67+
"open-cli": "^8.0.0",
68+
"parcel": "~2.11.0",
69+
"prettier": "^3.1.1",
70+
"ts-jest": "^29.1.1",
71+
"ts-node": "^10.9.2",
72+
"typedoc": "^0.25.7",
73+
"typedoc-plugin-mdn-links": "^3.1.11",
74+
"typescript": "~5.3.3"
7575
},
7676
"scripts": {
7777
"prepare": "husky install",
7878
"lint": "lint-staged",
79-
"test": "lint-staged && jest --forceExit",
79+
"test": "lint-staged",
8080
"start": "cd test/ && parcel index.html --open",
8181
"pack-dist": "rm -rf dist/ && parcel build source/index.ts",
8282
"pack-docs": "rm -rf docs/ && typedoc source/",

0 commit comments

Comments
 (0)