division-ds 0.7.0 → 0.7.1

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.6.0 mcp` (`list_components`, `get_component`,
54
+ `claude mcp add division-ds -- npx -y division-ds@0.7.1 mcp` (`list_components`, `get_component`,
55
55
  `search`, `get_tokens`, `validate_code`, `check_contrast`, `get_add_command`,
56
56
  `get_review_checklist`).
57
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "division-ds",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
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",
@@ -116,6 +116,18 @@ const DELIVERY_GROUPS: SelectGroup[] = [
116
116
  <Select label="Delivery" groups={DELIVERY_GROUPS} placeholder="Choose delivery" />
117
117
  ```
118
118
 
119
+ ### Long list
120
+
121
+ ```tsx
122
+ const MONTH_OPTIONS = Array.from({ length: 30 }, (_, i) => {
123
+ const date = new Date(Date.UTC(2026, 10 - i, 1))
124
+ const label = date.toLocaleDateString('en-GB', { month: 'long', year: 'numeric', timeZone: 'UTC' })
125
+ return { value: date.toISOString().slice(0, 7), label }
126
+ })
127
+
128
+ <Select label="Billing month" options={MONTH_OPTIONS} placeholder="Choose a month" />
129
+ ```
130
+
119
131
  ### Sizes
120
132
 
121
133
  ```tsx
@@ -2373,6 +2373,10 @@
2373
2373
  "caption": "Groups with headings and icons",
2374
2374
  "source": "const DELIVERY_GROUPS: SelectGroup[] = [\n {\n label: 'Courier',\n options: [\n { value: 'standard', label: 'Standard', icon: <Truck /> },\n { value: 'priority', label: 'Priority', icon: <Zap /> },\n ],\n },\n {\n label: 'Collect',\n options: [\n { value: 'depot', label: 'Brasov depot', icon: <Package /> },\n { value: 'field', label: 'At the field', icon: <Crosshair /> },\n ],\n },\n]\n\n<Select label=\"Delivery\" groups={DELIVERY_GROUPS} placeholder=\"Choose delivery\" />"
2375
2375
  },
2376
+ {
2377
+ "caption": "Long list",
2378
+ "source": "const MONTH_OPTIONS = Array.from({ length: 30 }, (_, i) => {\n const date = new Date(Date.UTC(2026, 10 - i, 1))\n const label = date.toLocaleDateString('en-GB', { month: 'long', year: 'numeric', timeZone: 'UTC' })\n return { value: date.toISOString().slice(0, 7), label }\n})\n\n<Select label=\"Billing month\" options={MONTH_OPTIONS} placeholder=\"Choose a month\" />"
2379
+ },
2376
2380
  {
2377
2381
  "caption": "Sizes",
2378
2382
  "source": "const TERRAIN_OPTIONS = [\n { value: 'woodland', label: 'Woodland' },\n { value: 'urban', label: 'Urban' },\n { value: 'desert', label: 'Desert' },\n { value: 'indoor', label: 'Indoor' },\n]\n\n<Select label=\"Terrain (small)\" inputSize=\"sm\" options={TERRAIN_OPTIONS} placeholder=\"Terrain\" />\n<Select label=\"Terrain (medium)\" inputSize=\"md\" options={TERRAIN_OPTIONS} placeholder=\"Terrain\" />\n<Select label=\"Terrain (large)\" inputSize=\"lg\" options={TERRAIN_OPTIONS} placeholder=\"Terrain\" />"