Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
4832b61
migration to 0.21
goodidea-kp Jun 5, 2024
0a7dbd5
migration to 0.21
goodidea-kp Jun 5, 2024
2af7b60
migration to 0.21
goodidea-kp Jun 5, 2024
0587d3e
migration to 0.21
goodidea-kp Jun 5, 2024
8383158
migration to 0.21
goodidea-kp Jun 5, 2024
14e16a3
migration to 0.21
goodidea-kp Jun 5, 2024
131b3fa
remove debug comments
goodidea-kp Jun 5, 2024
21236f9
remove debug comments
goodidea-kp Jun 5, 2024
a14f0e8
remove debug comments
goodidea-kp Jun 5, 2024
d3c2c8e
remove debug comments
goodidea-kp Jun 5, 2024
8dd3f61
Merge pull request #1 from goodidea-kp/migration-0.21
goodidea-kp Jun 5, 2024
a01f607
add Calendar with datetime type
goodidea-kp Jun 5, 2024
cfb00ba
Create rust.yml
goodidea-kp Jun 5, 2024
67edac7
fix tests
goodidea-kp Jun 5, 2024
a288677
Merge remote-tracking branch 'origin/master'
goodidea-kp Jun 5, 2024
da2fc54
fix defect
goodidea-kp Jun 6, 2024
34c6e26
fix defect in format
goodidea-kp Jun 6, 2024
49e2d19
added calendar use example, fix minor warnings
goodidea-kp Jun 9, 2024
bf5f8bb
added calendar use example, fix minor warnings
goodidea-kp Jun 9, 2024
b695db7
Update ci.yaml
goodidea-kp Jun 10, 2024
61eb951
formatting
goodidea-kp Jun 10, 2024
79abc54
Merge pull request #2 from goodidea-kp/feature/accordion
goodidea-kp Jun 10, 2024
139d50f
Update README.md
goodidea-kp Jun 10, 2024
3df8a06
fix defect and add step
goodidea-kp Jun 13, 2024
4bf15d8
formatting
goodidea-kp Jun 13, 2024
39c10a0
formatting
goodidea-kp Jun 13, 2024
6ba7297
Merge pull request #3 from goodidea-kp/fix/defect-in-calendar
goodidea-kp Jun 13, 2024
80c65f8
simplify and fix defect
goodidea-kp Jun 15, 2024
2b15270
remove logging
goodidea-kp Jun 15, 2024
99bbf84
formatting
goodidea-kp Jun 15, 2024
c053415
Merge pull request #4 from goodidea-kp/fix/calendar-defect
goodidea-kp Jun 15, 2024
27fe1b5
add autocomplete
goodidea-kp Jun 21, 2024
c225aca
Update autocomplete component with dynamic fetching
goodidea-kp Jun 22, 2024
64259cc
Refactor autocomplete component and remove unnecessary logs
goodidea-kp Jun 23, 2024
5805e73
Change field label and placeholder in AutoComplete
goodidea-kp Jun 23, 2024
7e5ddf5
Remove console log from autocomplete setup
goodidea-kp Jun 23, 2024
aa949d2
Refactor string properties to use Rc<str>
goodidea-kp Jun 23, 2024
81e93c4
Replace String with Rc<str> in accordion component
goodidea-kp Jun 24, 2024
f7fd9e1
Add initial value support to the dynamic autocomplete function
goodidea-kp Jun 24, 2024
2f84fa6
Merge pull request #5 from goodidea-kp/feature/autocomplete
goodidea-kp Jun 24, 2024
8d5559a
Update progress bar functionality
goodidea-kp Jun 30, 2024
0950821
Merge pull request #6 from goodidea-kp/fix/progress
goodidea-kp Jun 30, 2024
40f626f
Add interactive textarea and ChatGPT icon
goodidea-kp Jul 7, 2024
5981dfa
Merge pull request #7 from goodidea-kp/fix/progress
goodidea-kp Jul 7, 2024
5c89c5a
update web-sys to 0.3.77
goodidea-kp Jul 22, 2025
703f273
cleanup formatting in examples/basic/src/main.rs
goodidea-kp Jul 22, 2025
01d5028
bump serde to 1.0.228 and update CI workflow
goodidea-kp Oct 16, 2025
9bbbab1
bump edition to 2024, update dependencies, and simplify derive_more d…
goodidea-kp Oct 16, 2025
abff6bd
organize imports and fix duplicate `Box` export
goodidea-kp Oct 16, 2025
f56a4ed
Merge branch 'master' into migration-0.21
goodidea-kp Oct 17, 2025
daf436a
Merge pull request #8 from goodidea-kp/migration-0.21
goodidea-kp Oct 17, 2025
093af37
organize and deduplicate imports in components
goodidea-kp Oct 17, 2025
9355f16
Merge pull request #9 from goodidea-kp/fix/defects
goodidea-kp Oct 17, 2025
0848fbf
add example pages for panel, card, form, table, columns, calendar, an…
goodidea-kp Oct 28, 2025
7de9985
Replace all section and container elements with `ybc::Section` and `y…
goodidea-kp Oct 28, 2025
d2e4f6a
Add calendar component example with date/time picker integration
goodidea-kp Oct 28, 2025
b83f251
Refactor initialization and formatting preferences
goodidea-kp Oct 28, 2025
99bb37b
Merge pull request #10 from goodidea-kp/feature/catalog
goodidea-kp Oct 28, 2025
f3c06fa
Refactor unused variable bindings and update module reference paths
goodidea-kp Oct 28, 2025
344ef3a
Merge pull request #11 from goodidea-kp/feature/catalog
goodidea-kp Oct 28, 2025
31aacc7
Add GitHub Pages workflow and enhance documentation configuration
goodidea-kp Oct 28, 2025
64ae902
Remove `doc_auto_cfg` feature flag for docs.rs compatibility
goodidea-kp Oct 28, 2025
0dca28a
Update README link to new repository URL in documentation
goodidea-kp Oct 28, 2025
96fafe3
Merge pull request #12 from goodidea-kp/feature/pub-step
goodidea-kp Oct 28, 2025
7e4c5c6
Add `configure-pages` step to GitHub Pages workflow (#13)
goodidea-kp Oct 28, 2025
189cf72
Enable GitHub Pages configuration in `docs-pages` workflow (#14)
goodidea-kp Oct 28, 2025
24666a5
Enable GitHub Pages configuration in `docs-pages` workflow (#15)
goodidea-kp Oct 28, 2025
a334cd4
Feature/pub 4 (#16)
goodidea-kp Oct 28, 2025
8d978d3
Update Cargo.toml with repository metadata and YBC dependency from Gi…
goodidea-kp Oct 29, 2025
65cea52
Update `navbar` and `modal` examples with additional usage rules in t…
goodidea-kp Oct 29, 2025
2f6bbe3
Fix select component value handling and enhance modal documentation (…
goodidea-kp Oct 30, 2025
97c2136
Bump Yew-related dependencies and update package version to 0.4.2 (#20)
goodidea-kp Dec 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 22 additions & 24 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,37 +6,35 @@ jobs:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: wasm32-unknown-unknown
default: true
targets: wasm32-unknown-unknown
components: clippy, rustfmt
- uses: actions-rs/cargo@v1
with:
command: clippy
- uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
- uses: actions-rs/cargo@v1
with:
command: build
- name: Run clippy
run: cargo clippy
- name: Check formatting
run: cargo fmt -- --check
- name: Build
run: cargo build
- name: Install nightly for docs
uses: dtolnay/rust-toolchain@nightly
- name: Build docs (all features)
run: RUSTDOCFLAGS="--cfg docsrs" cargo doc --all-features --no-deps

example_basic:
name: Example | Basic
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: wasm32-unknown-unknown
default: true
targets: wasm32-unknown-unknown
components: clippy, rustfmt
- name: fetch trunk
run: wget -qO- https://github.com/thedodd/trunk/releases/download/v0.16.0/trunk-x86_64-unknown-linux-gnu.tar.gz | tar -xzf-
- name: build example
run: cd examples/basic && ../../trunk build
- name: Install trunk
uses: taiki-e/install-action@v2
with:
tool: trunk
- name: Build example
run: cd examples/basic && trunk build
10 changes: 3 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
uses: dtolnay/rust-toolchain@stable

- name: Build | Publish
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
Expand All @@ -26,7 +22,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup | Create Release Log
run: cat CHANGELOG.md | tail -n +7 | head -n 25 > RELEASE_LOG.md
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Rust

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
26 changes: 15 additions & 11 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
[package]
name = "ybc"
version = "0.4.0"
version = "0.4.2"
description = "A Yew component library based on the Bulma CSS framework."
authors = ["Anthony Dodd <[email protected]>"]
edition = "2021"
authors = ["Anthony Dodd <[email protected]>", "Konstantin Pupkov <[email protected]>"]
edition = "2024"
license = "MIT/Apache-2.0"
repository = "https://github.com/thedodd/ybc"
repository = "https://github.com/goodidea-kp/ybc.git"
documentation = "https://docs.rs/ybc"
readme = "README.md"
categories = ["wasm", "web-programming"]
keywords = ["wasm", "web", "bulma", "sass", "yew"]

[dependencies]
derive_more = { version = "0.99.17", default-features = false, features = ["display"] }
web-sys = { version = "0.3.61", features = ["Element", "File", "HtmlCollection", "HtmlSelectElement"] }
yew = { version = "0.20.0", features = ["csr"] }
yew-agent = "0.2.0"
yew-router = { version = "0.17.0", optional = true }
wasm-bindgen = "0.2.84"
serde = { version = "1.0.152", features = ["derive"] }
derive_more = { version = "2.0.1", default-features = false, features = ["display"] }
web-sys = { version = "0.3.81", features = ["Element", "File", "HtmlCollection", "HtmlSelectElement"] }
yew = { version = "0.22.0", features = ["csr"] }
yew-agent = "0.4.0"
yew-router = { version = "0.19.0", optional = true }
wasm-bindgen = "0.2"
serde = { version = "1.0.228", features = ["derive"] }
#gloo-console = "0.3.0"

[features]
default = ["router"]
Expand All @@ -26,3 +28,5 @@ docinclude = [] # Used only for activating `doc(include="...")` on nightly.

[package.metadata.docs.rs]
features = ["docinclude"] # Activate `docinclude` during docs.rs build.
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ First, add this library to your `Cargo.toml` dependencies.

```toml
[dependencies]
ybc = "*"
ybc = { git = "https://github.com/goodidea-kp/ybc.git" }
```

### add bulma
#### add bulma css (no customizations)
This project works perfectly well if you just include the Bulma CSS in your HTML, [as described here](https://bulma.io/documentation/overview/start/). The following link in your HTML head should do the trick: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css"/>`.
This project works perfectly well if you just include the Bulma CSS in your HTML, [as described here](https://bulma.io/documentation/overview/start/). The following link in your HTML head should do the trick: `<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@latest/css/bulma.min.css"/>`.

#### add bulma sass (allows customization & themes)
However, if you want to customize Bulma to match your style guidelines, then you will need to have a copy of the Bulma SASS locally, and then import Bulma after you've defined your customizations, [as described here](https://bulma.io/documentation/customize/).
Expand Down
8 changes: 4 additions & 4 deletions examples/basic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
[package]
name = "basic"
version = "0.1.0"
authors = ["Anthony Dodd <[email protected]>"]
authors = ["Anthony Dodd <[email protected]>", "Konstantin Pupkov <[email protected]>"]
edition = "2018"

[dependencies]
console_error_panic_hook = "0.1"
gloo-console = "0.2"
gloo-console = "0.3"
wasm-bindgen = "0.2"
ybc = { path = "../../" }
yew = "0.20"
ybc = { path = "../.." }
yew = "0.22"

[features]
default = []
Expand Down
13 changes: 10 additions & 3 deletions examples/basic/index.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Trunk | Yew | YBC</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/bulma.min.css"/>

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@latest/css/bulma.min.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bulma-calendar.min.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bulma-accordion.min.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@creativebulma/[email protected]/dist/css/bulma-tagsinput.min.css" />
<link data-trunk rel="scss" href="src/index.scss"/>
<link data-trunk rel="scss" data-inline href="src/inline-scss.scss"/>
<link data-trunk rel="css" href="src/app.css"/>
<link data-trunk rel="icon" href="src/yew.svg"/>
<link data-trunk rel="icon" href="src/chatgpt.svg"/>
<link data-trunk rel="copy-file" href="src/yew.svg"/>
<link data-trunk rel="copy-file" href="src/chatgpt.svg"/>
<base data-trunk-public-url/>
</head>
<body>
<link data-trunk rel="rust" href="Cargo.toml" data-wasm-opt="z" data-bin="basic" data-cargo-features="demo-abc,demo-xyz"/>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bulma-calendar.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bulma-accordion.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@creativebulma/[email protected]/dist/js/bulma-tagsinput.min.js"></script>
</body>
</html>
1 change: 1 addition & 0 deletions examples/basic/src/chatgpt.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions examples/basic/src/index.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
@charset "utf-8";

html {}

.ribbon {
position:absolute;
top:0;
right:0;
z-index:1;
}
Loading