senren-ui 0.1.1 → 0.1.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8bcfbb253e663c59e6628841c25bf5584fb665385243e791d318bb65d8500dfb
4
- data.tar.gz: f091c8049f283fca041ca8c1c716feda255008365239d9728f1b6ef2c38c378a
3
+ metadata.gz: 4faf9e9f31f33386d09a0d5627aefcb57fb81caa2d30dceb26393a5264fab3ec
4
+ data.tar.gz: 86554b736bbe51c931c449d6b9b9141327d6cbe273fcf3783f9f076bdd094187
5
5
  SHA512:
6
- metadata.gz: c42f55ffa59c1d82416c98f336b3927ecb72255bc32d530c2fa8f55ce60fa3cd2d6331159a30efabb78ac60b838853bdcfe17368248873d6a39a48d819be1118
7
- data.tar.gz: abb2a2e92a1138842d5a06820de2f39006b8519d3ad010d2300154c5b6ac9986eb23e80e077e23e1ef386530944b1956ee1c15e1d774aa26828b5d256cfa75f3
6
+ metadata.gz: e033a2d37fea9cb223350818ef554d0065a60a27da9d35e4a681cf8110da7191845c81d17aa10600e221d698a85ea8f6cd7982142e10a183fc4fbe4e476afddc
7
+ data.tar.gz: a372309914368659762128d8751d94c88b868af32bfa170fa82670f81559c18692334baf840d99cf6c8c0608c1dec9fdfb2e8cebc54f08406530401632a72aa0
data/CHANGELOG.md CHANGED
@@ -7,7 +7,22 @@ and adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
  v0.x is a pre-stable line: minor bumps may break things; patch bumps are
8
8
  bug fixes only.
9
9
 
10
- ## [Unreleased]
10
+ ## [0.1.3] — 2026-05-02
11
+
12
+ ### Added
13
+
14
+ - Documentation site deployed at [senren-ui.dev](https://www.senren-ui.dev).
15
+ - Gem homepage now points to the live docs site.
16
+
17
+ ## [0.1.2] — 2026-05-02
18
+
19
+ ### Fixed
20
+
21
+ - Progress component no longer paints variant background on the full root
22
+ container. Variant color is now applied only to the indicator fill bar.
23
+ - Improved progress visuals by separating track/fill styling more clearly
24
+ (`h-2.5` track) and using smoother fill-width transition
25
+ (`transition-[width] duration-300 ease-out`).
11
26
 
12
27
  ## [0.1.1] — 2026-05-02
13
28
 
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  > 洗練 — refined, polished, sophisticated.
4
4
 
5
+ **[Live Docs & Component Reference → senren-ui.dev](https://www.senren-ui.dev)**
6
+
5
7
  A Rails-native UI component library built on **ViewComponent**, **Hotwire
6
8
  (Turbo + Stimulus)**, and **TailwindCSS**, with a centralized AI-agent
7
9
  skill system and a source-copy install model inspired by shadcn/ui.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Senren
4
4
  module Rails
5
- VERSION = '0.1.1'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
@@ -5,7 +5,7 @@
5
5
  <span class="text-[hsl(var(--senren-muted-foreground))]"><%= percent %>%</span>
6
6
  </div>
7
7
  <% end %>
8
- <div role="progressbar" aria-valuemin="0" aria-valuemax="<%= max.to_i %>" aria-valuenow="<%= value.to_i %>" class="h-2 w-full overflow-hidden rounded-full bg-[hsl(var(--senren-muted))]">
9
- <div class="h-full rounded-full transition-all <%= self.class::VARIANTS[variant] %>" style="width: <%= percent %>%"></div>
8
+ <div role="progressbar" aria-valuemin="0" aria-valuemax="<%= max.to_i %>" aria-valuenow="<%= value.to_i %>" class="h-2.5 w-full overflow-hidden rounded-full bg-[hsl(var(--senren-muted))]">
9
+ <div class="h-full rounded-full transition-[width] duration-300 ease-out <%= indicator_class %>" style="width: <%= percent %>%"></div>
10
10
  </div>
11
11
  </div>
@@ -3,6 +3,12 @@
3
3
  module Senren
4
4
  class ProgressComponent < BaseComponent
5
5
  VARIANTS = {
6
+ default: '',
7
+ success: '',
8
+ warning: '',
9
+ destructive: ''
10
+ }.freeze
11
+ INDICATOR_VARIANTS = {
6
12
  default: 'bg-[hsl(var(--senren-primary))]',
7
13
  success: 'bg-[hsl(var(--senren-success))]',
8
14
  warning: 'bg-[hsl(var(--senren-warning))]',
@@ -22,5 +28,9 @@ module Senren
22
28
  def percent
23
29
  ((value / max) * 100).clamp(0, 100).round
24
30
  end
31
+
32
+ def indicator_class
33
+ INDICATOR_VARIANTS.fetch(variant)
34
+ end
25
35
  end
26
36
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: senren-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - vutt
@@ -228,13 +228,13 @@ files:
228
228
  - templates/controllers/tabs_controller.js
229
229
  - templates/controllers/theme_toggle_controller.js
230
230
  - templates/controllers/tooltip_controller.js
231
- homepage: https://github.com/vuth-dogo/senren-ui
231
+ homepage: https://www.senren-ui.dev
232
232
  licenses:
233
233
  - MIT
234
234
  metadata:
235
- homepage_uri: https://github.com/vuth-dogo/senren-ui
236
- source_code_uri: https://github.com/vuth-dogo/senren-ui/tree/main
237
- changelog_uri: https://github.com/vuth-dogo/senren-ui/blob/main/CHANGELOG.md
235
+ homepage_uri: https://www.senren-ui.dev
236
+ source_code_uri: https://www.senren-ui.dev/tree/main
237
+ changelog_uri: https://www.senren-ui.dev/blob/main/CHANGELOG.md
238
238
  rubygems_mfa_required: 'true'
239
239
  rdoc_options: []
240
240
  require_paths: