poetry-charts 0.1.0 → 0.1.2
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 +4 -4
- data/CHANGELOG.md +11 -1
- data/config/component_registry.yml +13 -0
- data/lib/poetry/charts/version.rb +1 -1
- data/lib/poetry/charts.rb +4 -0
- data/themes/luma.css +1 -1
- data/themes/lyra.css +1 -1
- data/themes/maia.css +1 -1
- data/themes/mira.css +1 -1
- data/themes/nova.css +1 -1
- data/themes/rhea.css +1 -1
- data/themes/sera.css +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9ddba8811f1d688f8e5404a49df8831559ee34fb35c84f963f1e50c302b1c3c2
|
|
4
|
+
data.tar.gz: a409c8899a1cabbe20c91f0d50adb82a57622308fbbbab5c8af06a3249f42da9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bab7bbbe2b44f740da46aed0f6f9da2be90fdac7b4ba21d2b8157898e83488e920a60a0317ce7f093942f1bd3fdc17c71a246dc33ab027f1ded7b28041bf33d8
|
|
7
|
+
data.tar.gz: dfad68141b7d158b2080421e2e57ddcae51445448d3a2754c9b9ae8814bff9fc4e59d470d58cd02c2716b9c28f7e887e2bc191cd19f16fb77927647f12e13899
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
## [
|
|
3
|
+
## [0.1.2] - 2026-09-13
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- The charts pin `css_mode :tailwind` for their namespace, like poetry-ui: a host's global `:bem` (for a kit of its own on the DSL) never reaches them.
|
|
8
|
+
|
|
9
|
+
## [0.1.1] - 2026-09-08
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- Theme headers reference the shadcn@4.21.0 pin; the chart rule is unchanged. Lockstep release with the family.
|
|
4
14
|
|
|
5
15
|
## [0.1.0] - 2026-09-05
|
|
6
16
|
|
|
@@ -50,6 +50,7 @@ components:
|
|
|
50
50
|
required: true
|
|
51
51
|
description: The chart type carried in the spec (see Spec::TYPES).
|
|
52
52
|
slots: []
|
|
53
|
+
helper: poetry_adapter_chart
|
|
53
54
|
description: 'The bring-your-own-engine path: a themed mount and chart-spec JSON
|
|
54
55
|
for a client library (Chart.js, etc.) to draw, instead of poetry''s server-side
|
|
55
56
|
SVG.'
|
|
@@ -261,6 +262,7 @@ components:
|
|
|
261
262
|
many: false
|
|
262
263
|
setter_args:
|
|
263
264
|
tooltip: 0
|
|
265
|
+
helper: poetry_area_chart
|
|
264
266
|
description: An area chart for volume or cumulative totals over a continuous axis.
|
|
265
267
|
elements:
|
|
266
268
|
- frame
|
|
@@ -692,6 +694,7 @@ components:
|
|
|
692
694
|
many: false
|
|
693
695
|
setter_args:
|
|
694
696
|
tooltip: 0
|
|
697
|
+
helper: poetry_bar_chart
|
|
695
698
|
description: A bar chart for comparing values across categories.
|
|
696
699
|
elements:
|
|
697
700
|
- frame
|
|
@@ -1107,6 +1110,7 @@ components:
|
|
|
1107
1110
|
many: false
|
|
1108
1111
|
setter_args:
|
|
1109
1112
|
tooltip: 0
|
|
1113
|
+
helper: poetry_composed_chart
|
|
1110
1114
|
description: A composed chart layering bars, lines, and areas on shared axes.
|
|
1111
1115
|
elements:
|
|
1112
1116
|
- frame
|
|
@@ -1311,6 +1315,7 @@ components:
|
|
|
1311
1315
|
description: Explicit DOM id token, stable across renders; otherwise the frame
|
|
1312
1316
|
gets a unique per-render id.
|
|
1313
1317
|
slots: []
|
|
1318
|
+
helper: poetry_container
|
|
1314
1319
|
elements: []
|
|
1315
1320
|
capsule: 7b90eeaff974
|
|
1316
1321
|
agent_rules:
|
|
@@ -1370,6 +1375,7 @@ components:
|
|
|
1370
1375
|
description: 'Interactive legend: items render as buttons that toggle their
|
|
1371
1376
|
series through the live controller (the host chart guards that live: is on).'
|
|
1372
1377
|
slots: []
|
|
1378
|
+
helper: poetry_legend_content
|
|
1373
1379
|
elements:
|
|
1374
1380
|
- item
|
|
1375
1381
|
- swatch
|
|
@@ -1555,6 +1561,7 @@ components:
|
|
|
1555
1561
|
many: false
|
|
1556
1562
|
setter_args:
|
|
1557
1563
|
tooltip: 0
|
|
1564
|
+
helper: poetry_line_chart
|
|
1558
1565
|
description: A line chart for trends over a continuous axis.
|
|
1559
1566
|
elements:
|
|
1560
1567
|
- frame
|
|
@@ -1907,6 +1914,7 @@ components:
|
|
|
1907
1914
|
defaults on.
|
|
1908
1915
|
setter_args:
|
|
1909
1916
|
tooltip: 0
|
|
1917
|
+
helper: poetry_pie_chart
|
|
1910
1918
|
description: A pie chart for showing parts of a whole.
|
|
1911
1919
|
slot_extras:
|
|
1912
1920
|
- py
|
|
@@ -2159,6 +2167,7 @@ components:
|
|
|
2159
2167
|
description: The hover tooltip - multi-series rows under the category label.
|
|
2160
2168
|
setter_args:
|
|
2161
2169
|
tooltip: 0
|
|
2170
|
+
helper: poetry_radar_chart
|
|
2162
2171
|
description: A radar chart for comparing several variables on radial axes.
|
|
2163
2172
|
elements:
|
|
2164
2173
|
- frame
|
|
@@ -2444,6 +2453,7 @@ components:
|
|
|
2444
2453
|
defaults on.
|
|
2445
2454
|
setter_args:
|
|
2446
2455
|
tooltip: 0
|
|
2456
|
+
helper: poetry_radial_bar_chart
|
|
2447
2457
|
description: A radial bar chart with bars wrapped around a circular axis.
|
|
2448
2458
|
elements:
|
|
2449
2459
|
- frame
|
|
@@ -2753,6 +2763,7 @@ components:
|
|
|
2753
2763
|
description: The hover tooltip - per-point x/y(/z) rows under the series name.
|
|
2754
2764
|
setter_args:
|
|
2755
2765
|
tooltip: 0
|
|
2766
|
+
helper: poetry_scatter_chart
|
|
2756
2767
|
description: A scatter chart for the relationship between two variables.
|
|
2757
2768
|
elements:
|
|
2758
2769
|
- frame
|
|
@@ -2936,6 +2947,7 @@ components:
|
|
|
2936
2947
|
type: string
|
|
2937
2948
|
description: The category label above the rows, resolved through the config.
|
|
2938
2949
|
slots: []
|
|
2950
|
+
helper: poetry_tooltip_content
|
|
2939
2951
|
elements:
|
|
2940
2952
|
- label
|
|
2941
2953
|
- inner
|
|
@@ -3012,6 +3024,7 @@ components:
|
|
|
3012
3024
|
required: true
|
|
3013
3025
|
description: The series keys to pre-render rows for.
|
|
3014
3026
|
slots: []
|
|
3027
|
+
helper: poetry_tooltip_layer
|
|
3015
3028
|
elements: []
|
|
3016
3029
|
capsule: 3aa9cd90e2e1
|
|
3017
3030
|
controllers:
|
data/lib/poetry/charts.rb
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
require "poetry/core"
|
|
4
4
|
require "yaml"
|
|
5
|
+
|
|
6
|
+
# Tailwind-native like poetry-ui: the charts render in :tailwind whatever a
|
|
7
|
+
# host sets the global css_mode to (that global is for kits the host writes).
|
|
8
|
+
Poetry::Core::CSS::Modes.pin("Poetry::Charts", :tailwind)
|
|
5
9
|
require_relative "charts/version"
|
|
6
10
|
require_relative "charts/config"
|
|
7
11
|
require_relative "charts/theme_style"
|
data/themes/luma.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* poetry-charts luma theme - chart chrome under upstream
|
|
2
|
-
* style-luma.css (pinned clone
|
|
2
|
+
* style-luma.css (pinned clone 7c9eaba1, the shadcn@4.21.0 release). Upstream ships ONE chart rule (cn-chart-tooltip); luma reskins it exactly as rhea does (popover surface, ring-for-border, rounded-xl) - everything else carries the default treatment.
|
|
3
3
|
* Same contract as default.css: imported layer(base) by the host entry;
|
|
4
4
|
* POETRY_THEME=luma drives the gates and golden set. */
|
|
5
5
|
/* MARK: Tooltip */
|
data/themes/lyra.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* poetry-charts lyra theme - chart chrome under upstream
|
|
2
|
-
* style-lyra.css (pinned clone
|
|
2
|
+
* style-lyra.css (pinned clone 7c9eaba1, the shadcn@4.21.0 release). Upstream ships ONE chart rule (cn-chart-tooltip) and lyra squares it (rounded-none); everything else carries the default treatment.
|
|
3
3
|
* Same contract as default.css: imported layer(base) by the host entry;
|
|
4
4
|
* POETRY_THEME=lyra drives the gates and golden set. */
|
|
5
5
|
|
data/themes/maia.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* poetry-charts maia theme - chart chrome under upstream
|
|
2
|
-
* style-maia.css (pinned clone
|
|
2
|
+
* style-maia.css (pinned clone 7c9eaba1, the shadcn@4.21.0 release). Upstream ships ONE chart rule (cn-chart-tooltip) and maia's is a token-order twin of default (same set) - the whole file carries the default treatment.
|
|
3
3
|
* Same contract as default.css: imported layer(base) by the host entry;
|
|
4
4
|
* POETRY_THEME=maia drives the gates and golden set. */
|
|
5
5
|
/* MARK: Tooltip */
|
data/themes/mira.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* poetry-charts mira theme - chart chrome under upstream
|
|
2
|
-
* style-mira.css (pinned clone
|
|
2
|
+
* style-mira.css (pinned clone 7c9eaba1, the shadcn@4.21.0 release). Upstream ships ONE chart rule (cn-chart-tooltip); mira compacts its type (text-xs/relaxed) - everything else carries the default treatment.
|
|
3
3
|
* Same contract as default.css: imported layer(base) by the host entry;
|
|
4
4
|
* POETRY_THEME=mira drives the gates and golden set. */
|
|
5
5
|
/* MARK: Tooltip */
|
data/themes/nova.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* poetry-charts nova theme - chart chrome under upstream
|
|
2
|
-
* style-nova.css (pinned clone
|
|
2
|
+
* style-nova.css (pinned clone 7c9eaba1, the shadcn@4.21.0 release). Upstream ships ONE chart rule (cn-chart-tooltip) and nova's is byte-identical to default - the whole file carries the default treatment.
|
|
3
3
|
* Same contract as default.css: imported layer(base) by the host entry;
|
|
4
4
|
* POETRY_THEME=nova drives the gates and golden set. */
|
|
5
5
|
/* MARK: Tooltip */
|
data/themes/rhea.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* poetry-charts rhea theme - chart chrome under upstream
|
|
2
|
-
* style-rhea.css (pinned clone
|
|
2
|
+
* style-rhea.css (pinned clone 7c9eaba1, the shadcn@4.21.0 release). Upstream ships ONE chart rule (cn-chart-tooltip); rhea reskins it (popover surface, ring-for-border, rounded-xl) - everything else carries the default treatment.
|
|
3
3
|
* Same contract as default.css: imported layer(base) by the host entry;
|
|
4
4
|
* POETRY_THEME=rhea drives the gates and golden set. */
|
|
5
5
|
/* MARK: Tooltip */
|
data/themes/sera.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* poetry-charts sera theme - chart chrome under upstream
|
|
2
|
-
* style-sera.css (pinned clone
|
|
2
|
+
* style-sera.css (pinned clone 7c9eaba1, the shadcn@4.21.0 release). Upstream ships ONE chart rule (cn-chart-tooltip) and sera reskins it (bg-popover ring-1 ring-foreground/10 shadow-sm, radius absent = square); everything else carries the default treatment.
|
|
3
3
|
* Same contract as default.css: imported layer(base) by the host entry;
|
|
4
4
|
* POETRY_THEME=sera drives the gates and golden set. */
|
|
5
5
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: poetry-charts
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Matt Solt
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.1.
|
|
18
|
+
version: 0.1.2
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.1.
|
|
25
|
+
version: 0.1.2
|
|
26
26
|
description: Charts whose geometry is computed on the server (Ruby; d3-scale/d3-shape
|
|
27
27
|
semantics, recharts' nice ticks) and shipped as finished SVG - no-JS valid, CSS-variable
|
|
28
28
|
themed, zero client chart math. Stimulus chrome reads server-embedded coordinates
|