brainzlab-ui 0.1.0 → 0.2.0

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: 13d80bf67037932fc8c3745319d2f23d7d5a510ae7775cd6276b303a52fec8e4
4
- data.tar.gz: 8b1606fd13965a96ae121fd2e973d6c8d67a6f158f1eefc6eeecded170b432bb
3
+ metadata.gz: 273e92114173d155dbb570ceba73de87bd968282e5e0c942baf463ad2f225543
4
+ data.tar.gz: add3d18ca6a9ade3cb84728c49bea134bdbda89b5e776dacd9076f042341d065
5
5
  SHA512:
6
- metadata.gz: aecbb45750388fd87c6c4704f84357f339f3919c878dec39f98c004d2fa0b8ec1826199e93a7c54ffc78cc46dcf21a6174b1f7e3976d4e1fa1569103111011ce
7
- data.tar.gz: d7be25d5b9c9115441dd47297e014f64ea468177baa3088155a0b0ad9e6581b578b0e6b68e4dd1ce0291fea53b0589d780d92f6c28fe1ae6f01a1f7aa75a47b4
6
+ metadata.gz: e7fdfdaea5814ccb02cd9b055f998fa221bfdc1b75c4a3ce69a5276433671c0e29fb736fa67793665a922119cb1909bed9f62125fb4771a5b7b429eefdc85d4c
7
+ data.tar.gz: 77dbb32022fd4ac9f4973c91c99719a095d29fa7f73147db797174f37e7b97453e04346f4aed717111d8309bedb189c57aea2c87ed83e909287c62ae0aa2d90c
data/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.2.0] - 2026-06-07
6
+
7
+ ### Added
8
+ - **Service brand tokens** for all 16 platform services (Synapse, Nexus, Platform,
9
+ Signal, Beacon, Vision, Sentinel, Cortex, Dendrite, Nerve, Axon, Recall, Reflex,
10
+ Pulse, Flux, Vault) plus the Plexus engine, grouped by platform layer.
11
+ - **Layer accent tokens** (`--color-layer-ai|hub|obs|data|foundation`) so service
12
+ pages stay layer-coded while reading as one family.
13
+ - **Data-viz categorical palette** (`--color-viz-1..8`) for charts and dashboards
14
+ across every sub-app.
15
+ - **MaturityBadge** Phlex component + `.badge-maturity` / `.badge-disponible` /
16
+ `.badge-beta` / `.badge-proximamente` CSS (light + dark) for the app launcher
17
+ and service landing pages.
18
+
5
19
  ## [0.1.0] - 2024-12-27
6
20
 
7
21
  ### Added
data/LICENSE CHANGED
@@ -1,21 +1,11 @@
1
- MIT License
1
+ OSAaSy License
2
2
 
3
- Copyright (c) 2024 Brainz Lab
3
+ Copyright © 2025, Brainz Lab.
4
4
 
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
11
6
 
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14
8
 
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
9
+ No licensee or downstream recipient may use the Software (including any modified or derivative versions) to directly compete with the original Licensor by offering it to third parties as a hosted, managed, or Software-as-a-Service (SaaS) product or cloud service where the primary value of the service is the functionality of the Software itself.
10
+
11
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -1,6 +1,22 @@
1
- # Brainzlab UI
1
+ # BrainzLab UI
2
2
 
3
- Unified design system for Brainz Lab products. Anthropic/Claude-inspired design with Phlex components and Tailwind CSS.
3
+ Unified design system for BrainzLab products with Phlex components and Tailwind CSS.
4
+
5
+ [![CI](https://github.com/brainz-lab/brainzlab-ui/actions/workflows/ci.yml/badge.svg)](https://github.com/brainz-lab/brainzlab-ui/actions/workflows/ci.yml)
6
+ [![CodeQL](https://github.com/brainz-lab/brainzlab-ui/actions/workflows/codeql.yml/badge.svg)](https://github.com/brainz-lab/brainzlab-ui/actions/workflows/codeql.yml)
7
+ [![codecov](https://codecov.io/gh/brainz-lab/brainzlab-ui/graph/badge.svg)](https://codecov.io/gh/brainz-lab/brainzlab-ui)
8
+ [![Gem Version](https://badge.fury.io/rb/brainzlab-ui.svg)](https://rubygems.org/gems/brainzlab-ui)
9
+ [![License: OSAaSy](https://img.shields.io/badge/License-OSAaSy-blue.svg)](LICENSE)
10
+
11
+ ## Quick Start
12
+
13
+ ```ruby
14
+ # Gemfile
15
+ gem "brainzlab-ui"
16
+
17
+ # In your view
18
+ <%= render Brainzlab::Components::Button.new(variant: :primary) { "Save" } %>
19
+ ```
4
20
 
5
21
  ## Installation
6
22
 
@@ -15,7 +31,7 @@ else
15
31
  end
16
32
  ```
17
33
 
18
- ## CSS Setup
34
+ ### CSS Setup
19
35
 
20
36
  Import the design system in your Tailwind CSS file:
21
37
 
@@ -26,12 +42,52 @@ Import the design system in your Tailwind CSS file:
26
42
  /* Your project-specific overrides below */
27
43
  ```
28
44
 
45
+ ## Configuration
46
+
47
+ The design system follows Anthropic/Claude-inspired aesthetics with warm earth tones.
48
+
49
+ ### Design Tokens
50
+
51
+ #### Colors
52
+
53
+ | Token | Value | Usage |
54
+ |-------|-------|-------|
55
+ | `--color-primary-500` | #C77B58 | Brand terracotta |
56
+ | `--color-cream-50` | #FAF9F7 | Background |
57
+ | `--color-ink-900` | #3D3833 | Text |
58
+
59
+ #### Service & layer tokens
60
+
61
+ Each of the 16 platform services has a brand accent (`--color-<service>`, e.g.
62
+ `--color-signal`, `--color-vault`), grouped by platform layer. Service landing
63
+ pages and dashboards tint with the **layer accent** so the family stays coherent
64
+ while staying layer-coded:
65
+
66
+ | Layer | Token | Services |
67
+ |-------|-------|----------|
68
+ | L5 — AI | `--color-layer-ai` | Synapse, Nexus |
69
+ | L4 — Hub | `--color-layer-hub` | Platform |
70
+ | L3 — Observability | `--color-layer-obs` | Signal, Beacon, Vision, Sentinel, Cortex, Dendrite, Nerve, Axon |
71
+ | L2 — Data | `--color-layer-data` | Recall, Reflex, Pulse, Flux |
72
+ | L1 — Foundation | `--color-layer-foundation` | Vault |
73
+
74
+ Charts and dashboards use the categorical data-viz palette `--color-viz-1` … `--color-viz-8`.
75
+
76
+ #### Typography
77
+
78
+ | Font | Stack | Usage |
79
+ |------|-------|-------|
80
+ | Sans | Inter, system-ui | Body text |
81
+ | Serif | Source Serif 4, Georgia | Headlines |
82
+ | Mono | JetBrains Mono, ui-monospace | Code |
83
+
29
84
  ## Usage
30
85
 
31
86
  ### Phlex Components
32
87
 
33
88
  ```erb
34
89
  <%= render Brainzlab::Components::Button.new(variant: :primary) { "Save" } %>
90
+ <%= render Brainzlab::Components::Button.new(variant: :secondary) { "Cancel" } %>
35
91
  <%= render Brainzlab::Components::Card.new { "Content" } %>
36
92
  <%= render Brainzlab::Components::Badge.new(variant: :success) { "Active" } %>
37
93
  <%= render Brainzlab::Components::Alert.new(type: :info) { "Note..." } %>
@@ -46,21 +102,61 @@ Import the design system in your Tailwind CSS file:
46
102
  <span class="badge badge-success">Active</span>
47
103
  ```
48
104
 
49
- ## Design Tokens
105
+ ### Available Components
50
106
 
51
- ### Colors
107
+ | Component | Variants |
108
+ |-----------|----------|
109
+ | **Button** | primary, secondary, ghost, danger |
110
+ | **Card** | default, bordered, elevated |
111
+ | **Badge** | default, success, warning, error, info |
112
+ | **MaturityBadge** | disponible, beta, proximamente |
113
+ | **Alert** | info, success, warning, error |
114
+ | **Input** | text, email, password, number |
115
+ | **Select** | default, multi |
116
+ | **Modal** | default, large, fullscreen |
117
+ | **Table** | default, striped, compact |
118
+ | **Tabs** | default, pills |
52
119
 
53
- | Token | Value | Usage |
54
- |-------|-------|-------|
55
- | `--color-primary-500` | #D97706 | Anthropic orange |
56
- | `--color-cream-50` | #FAFAF9 | Background |
57
- | `--color-ink-900` | #1C1917 | Text |
120
+ ## API Reference
121
+
122
+ ### Button
123
+
124
+ ```ruby
125
+ Brainzlab::Components::Button.new(
126
+ variant: :primary, # :primary, :secondary, :ghost, :danger
127
+ size: :md, # :sm, :md, :lg
128
+ disabled: false,
129
+ type: :button # :button, :submit, :reset
130
+ )
131
+ ```
132
+
133
+ ### Card
134
+
135
+ ```ruby
136
+ Brainzlab::Components::Card.new(
137
+ variant: :default, # :default, :bordered, :elevated
138
+ padding: :md # :none, :sm, :md, :lg
139
+ )
140
+ ```
141
+
142
+ ### Badge
143
+
144
+ ```ruby
145
+ Brainzlab::Components::Badge.new(
146
+ variant: :default, # :default, :success, :warning, :error, :info
147
+ size: :md # :sm, :md, :lg
148
+ )
149
+ ```
150
+
151
+ Full documentation: [docs.brainzlab.ai/ui](https://docs.brainzlab.ai/ui/overview)
152
+
153
+ ## Self-Hosting
154
+
155
+ When self-hosting BrainzLab products, the UI gem is automatically included as a dependency.
58
156
 
59
- ### Typography
157
+ ## Contributing
60
158
 
61
- - **Sans**: Inter, system-ui
62
- - **Serif**: Source Serif 4, Georgia
63
- - **Mono**: JetBrains Mono, ui-monospace
159
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup and contribution guidelines.
64
160
 
65
161
  ## License
66
162
 
@@ -44,8 +44,17 @@
44
44
  }
45
45
 
46
46
  @keyframes shimmer {
47
- 0% { background-position: -200% 0; }
48
- 100% { background-position: 200% 0; }
47
+ 0% { background-position: 200% 0; }
48
+ 100% { background-position: -200% 0; }
49
+ }
50
+
51
+ @keyframes pulse {
52
+ 0%, 100% { opacity: 1; }
53
+ 50% { opacity: 0.5; }
54
+ }
55
+
56
+ @keyframes spin {
57
+ to { transform: rotate(360deg); }
49
58
  }
50
59
 
51
60
  @keyframes ping-slow {
@@ -21,3 +21,6 @@
21
21
 
22
22
  /* Utilities */
23
23
  @import "./utilities.css";
24
+
25
+ /* Dark Mode */
26
+ @import "./dark-mode.css";