division-ds 0.10.0 → 0.11.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.
package/AGENTS.md
CHANGED
|
@@ -51,7 +51,7 @@ installs these rules into that project's `AGENTS.md`, `GEMINI.md` and Cursor rul
|
|
|
51
51
|
`.claude/skills/` (Claude Code).
|
|
52
52
|
|
|
53
53
|
An agent that supports MCP can have the docs and the same checks as tools instead:
|
|
54
|
-
`claude mcp add division-ds -- npx -y division-ds@0.
|
|
54
|
+
`claude mcp add division-ds -- npx -y division-ds@0.10.0 mcp` (`list_components`, `get_component`,
|
|
55
55
|
`search`, `get_tokens`, `validate_code`, `check_contrast`, `get_add_command`,
|
|
56
56
|
`get_review_checklist`, and two that report back: `request_change` and `report_drift`, which open
|
|
57
57
|
an issue on the public repository instead of patching the installed copy).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "division-ds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Checks a project that uses Division DS components (raw colours, invented tokens, touching buttons, unknown props), and serves the docs and the same checks to agents over MCP.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Victor Ilioiu",
|
|
@@ -25,6 +25,7 @@ Paths are from the Division DS repository root. Installed with shadcn they start
|
|
|
25
25
|
| `showValue` | `boolean` | `false` | Shows the percentage (or "In progress") as a readout. |
|
|
26
26
|
| `tone` | `'signal' \| 'ok' \| 'warning' \| 'hostile'` | `'signal'` | The fill colour. signal paints accent.signal.indicator to match Slider. On the track in light theme that’s a 2.80:1 contrast ratio, below the 3:1 a bar needs when it’s the only sign of progress. So set showValue there. |
|
|
27
27
|
| `allowOverMax` | `boolean` | `false` | Shows a value above max as it is instead of clamping it, for a budget at 112%. The track rescales to span the value, a marker shows where max sits, the part past it paints hostile, and the readout shows the real value (112%) in hostile. aria-valuenow is the real value, and aria-valuetext reads "112%, 12% over". |
|
|
28
|
+
| `shape` | `'bar' \| 'ring'` | `'bar'` | ring draws a circular indicator with the readout in its centre and the label beneath, for a countdown or session timer. It takes the same value and max, It is not a live region, so a ticking timer stays quiet; announce milestones from your own status message. allowOverMax does not apply to it: the value is clamped. |
|
|
28
29
|
| `className` | `string` | | Merged with the outer wrapper’s classes. Later Tailwind utilities (Tailwind is the CSS framework the system is styled with) win. |
|
|
29
30
|
| `ref` | `Ref<HTMLDivElement>` | | Passed through to the Radix Progress root, which is the bar itself. Radix is the library of accessible building blocks this component sits on. |
|
|
30
31
|
| `...rest` | `Omit<HTMLAttributes<HTMLDivElement>, 'children'>` | | Every native div prop except children, spread onto the outer wrapper, so a molecule can attach a data-testid there. children is typed away because this component draws its own label row and track, and a children prop would be thrown away without any warning. |
|
|
@@ -85,6 +86,15 @@ Each is compiled and rendered on the docs page. Imports are omitted; see above.
|
|
|
85
86
|
</div>
|
|
86
87
|
```
|
|
87
88
|
|
|
89
|
+
### Ring
|
|
90
|
+
|
|
91
|
+
```tsx
|
|
92
|
+
<div className="flex gap-6">
|
|
93
|
+
<Progress shape="ring" label="Focus session" value={18} max={25} showValue />
|
|
94
|
+
<Progress shape="ring" label="Break" value={2} max={5} tone="ok" showValue />
|
|
95
|
+
</div>
|
|
96
|
+
```
|
|
97
|
+
|
|
88
98
|
## Keyboard
|
|
89
99
|
|
|
90
100
|
Not focusable. No keyboard behaviour of its own.
|
|
@@ -1783,6 +1783,12 @@
|
|
|
1783
1783
|
"default": "false",
|
|
1784
1784
|
"description": "Shows a value above max as it is instead of clamping it, for a budget at 112%. The track rescales to span the value, a marker shows where max sits, the part past it paints hostile, and the readout shows the real value (112%) in hostile. aria-valuenow is the real value, and aria-valuetext reads \"112%, 12% over\"."
|
|
1785
1785
|
},
|
|
1786
|
+
{
|
|
1787
|
+
"name": "shape",
|
|
1788
|
+
"type": "'bar' | 'ring'",
|
|
1789
|
+
"default": "'bar'",
|
|
1790
|
+
"description": "ring draws a circular indicator with the readout in its centre and the label beneath, for a countdown or session timer. It takes the same value and max, It is not a live region, so a ticking timer stays quiet; announce milestones from your own status message. allowOverMax does not apply to it: the value is clamped."
|
|
1791
|
+
},
|
|
1786
1792
|
{
|
|
1787
1793
|
"name": "className",
|
|
1788
1794
|
"type": "string",
|
|
@@ -1858,6 +1864,10 @@
|
|
|
1858
1864
|
{
|
|
1859
1865
|
"caption": "Over the limit",
|
|
1860
1866
|
"source": "<div className=\"flex flex-col gap-4 w-full max-w-sm\">\n <Progress label=\"Groceries\" value={64} tone=\"ok\" allowOverMax showValue />\n <Progress label=\"Eating out\" value={112} tone=\"ok\" allowOverMax showValue />\n</div>"
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
"caption": "Ring",
|
|
1870
|
+
"source": "<div className=\"flex gap-6\">\n <Progress shape=\"ring\" label=\"Focus session\" value={18} max={25} showValue />\n <Progress shape=\"ring\" label=\"Break\" value={2} max={5} tone=\"ok\" showValue />\n</div>"
|
|
1861
1871
|
}
|
|
1862
1872
|
],
|
|
1863
1873
|
"closed": false
|