@tolle_/tolle-ui 18.3.0 → 18.3.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.
@@ -760,6 +760,54 @@
760
760
  }
761
761
  ]
762
762
  },
763
+ "bar-list": {
764
+ "category": "components",
765
+ "title": "Bar List",
766
+ "selector": "tolle-bar-list",
767
+ "isNew": true,
768
+ "import": "import { BarListComponent } from '@tolle_/tolle-ui';",
769
+ "install": "npx @tolle_/cli add bar-list",
770
+ "components": [
771
+ {
772
+ "name": "BarListComponent",
773
+ "selector": "tolle-bar-list",
774
+ "kind": "component",
775
+ "inputs": [
776
+ {
777
+ "name": "data",
778
+ "type": "Record<string, any>[]",
779
+ "default": "[]",
780
+ "description": "Rows to rank, in the order they should be drawn.",
781
+ "required": false
782
+ },
783
+ {
784
+ "name": "labelKey",
785
+ "type": "string",
786
+ "default": "'label'",
787
+ "description": "Row key holding each row's label.",
788
+ "required": false
789
+ },
790
+ {
791
+ "name": "valueKey",
792
+ "type": "string",
793
+ "default": "'value'",
794
+ "description": "Row key holding each row's numeric value.",
795
+ "required": false
796
+ },
797
+ {
798
+ "name": "class",
799
+ "type": "string",
800
+ "default": "''",
801
+ "description": "Extra Tailwind classes merged onto the list via `cn()` (last-wins).",
802
+ "required": false
803
+ }
804
+ ],
805
+ "outputs": [],
806
+ "slots": [],
807
+ "variants": []
808
+ }
809
+ ]
810
+ },
763
811
  "breadcrumb": {
764
812
  "category": "navigation",
765
813
  "title": "Breadcrumb",
@@ -1487,6 +1535,68 @@
1487
1535
  }
1488
1536
  ]
1489
1537
  },
1538
+ "category-bar": {
1539
+ "category": "components",
1540
+ "title": "Category Bar",
1541
+ "selector": "tolle-category-bar",
1542
+ "isNew": true,
1543
+ "import": "import { CategoryBarComponent } from '@tolle_/tolle-ui';",
1544
+ "install": "npx @tolle_/cli add category-bar",
1545
+ "components": [
1546
+ {
1547
+ "name": "CategoryBarComponent",
1548
+ "selector": "tolle-category-bar",
1549
+ "kind": "component",
1550
+ "inputs": [
1551
+ {
1552
+ "name": "values",
1553
+ "type": "number[]",
1554
+ "default": "[]",
1555
+ "description": "Width of each segment. Values that are not finite and greater than zero are dropped.",
1556
+ "required": false
1557
+ },
1558
+ {
1559
+ "name": "labels",
1560
+ "type": "string[]",
1561
+ "default": "[]",
1562
+ "description": "Name for each segment, used in the accessible summary and as a title tooltip.",
1563
+ "required": false
1564
+ },
1565
+ {
1566
+ "name": "colors",
1567
+ "type": "string[]",
1568
+ "default": "[]",
1569
+ "description": "Paint for each segment, by index. Falls back to the chart palette --chart-1 through --chart-5.",
1570
+ "required": false
1571
+ },
1572
+ {
1573
+ "name": "markerValue",
1574
+ "type": "number | null",
1575
+ "default": "null",
1576
+ "description": "Position of the pointer, 0-100 on the same scale the segments sum to. Omit to draw no pointer.",
1577
+ "required": false
1578
+ },
1579
+ {
1580
+ "name": "ariaLabel",
1581
+ "type": "string",
1582
+ "default": "''",
1583
+ "description": "Accessible name, prefixed onto the sr-only summary of segments and marker.",
1584
+ "required": false
1585
+ },
1586
+ {
1587
+ "name": "class",
1588
+ "type": "string",
1589
+ "default": "''",
1590
+ "description": "Extra Tailwind classes merged onto the bar via `cn()` (last-wins).",
1591
+ "required": false
1592
+ }
1593
+ ],
1594
+ "outputs": [],
1595
+ "slots": [],
1596
+ "variants": []
1597
+ }
1598
+ ]
1599
+ },
1490
1600
  "chain-of-thought": {
1491
1601
  "category": "ai",
1492
1602
  "title": "Chain Of Thought",
@@ -1889,6 +1999,13 @@
1889
1999
  "description": "Stacks marks on a shared baseline instead of grouping them.",
1890
2000
  "required": false
1891
2001
  },
2002
+ {
2003
+ "name": "orientation",
2004
+ "type": "ChartOrientation",
2005
+ "default": "'vertical'",
2006
+ "description": "Which physical axis carries the category vs the value. Only bars support\n'horizontal' — line/area marks stay vertical regardless.",
2007
+ "required": false
2008
+ },
1892
2009
  {
1893
2010
  "name": "hover",
1894
2011
  "type": "boolean",
@@ -1972,7 +2089,7 @@
1972
2089
  "name": "vertical",
1973
2090
  "type": "boolean",
1974
2091
  "default": "false",
1975
- "description": "Also draws a rule at every x position.",
2092
+ "description": "Also draws a rule at every category position.",
1976
2093
  "required": false
1977
2094
  },
1978
2095
  {
@@ -1996,7 +2113,7 @@
1996
2113
  "name": "charWidth",
1997
2114
  "type": "number",
1998
2115
  "default": "7",
1999
- "description": "Approximate px per character, used to decide when labels would collide.",
2116
+ "description": "Approximate px per character, used to decide when category labels would\ncollide. Only consulted in the vertical orientation.",
2000
2117
  "required": false
2001
2118
  },
2002
2119
  {
@@ -2298,6 +2415,117 @@
2298
2415
  }
2299
2416
  ]
2300
2417
  },
2418
+ "chart-spark": {
2419
+ "category": "data",
2420
+ "title": "Chart Spark",
2421
+ "selector": "tolle-chart-spark",
2422
+ "isNew": true,
2423
+ "import": "import { ChartSparkComponent } from '@tolle_/tolle-ui';",
2424
+ "install": "npx @tolle_/cli add chart-spark",
2425
+ "components": [
2426
+ {
2427
+ "name": "ChartSparkComponent",
2428
+ "selector": "tolle-chart-spark",
2429
+ "kind": "component",
2430
+ "inputs": [
2431
+ {
2432
+ "name": "data",
2433
+ "type": "Record<string, any>[]",
2434
+ "default": "[]",
2435
+ "description": "Rows to plot, in x order.",
2436
+ "required": false
2437
+ },
2438
+ {
2439
+ "name": "valueKey",
2440
+ "type": "string",
2441
+ "default": "'value'",
2442
+ "description": "Row key holding each row's numeric value.",
2443
+ "required": false
2444
+ },
2445
+ {
2446
+ "name": "xKey",
2447
+ "type": "string",
2448
+ "default": "''",
2449
+ "description": "Row key holding each row's x position. Only matters once `hover` is on.",
2450
+ "required": false
2451
+ },
2452
+ {
2453
+ "name": "type",
2454
+ "type": "'line' | 'area' | 'bar'",
2455
+ "default": "'line'",
2456
+ "description": "Which mark to draw.",
2457
+ "required": false
2458
+ },
2459
+ {
2460
+ "name": "curve",
2461
+ "type": "'linear' | 'smooth'",
2462
+ "default": "'linear'",
2463
+ "description": "Interpolation for line/area.",
2464
+ "required": false
2465
+ },
2466
+ {
2467
+ "name": "maxBarWidth",
2468
+ "type": "number",
2469
+ "default": "6",
2470
+ "description": "Largest bar thickness in px, used when `type` is 'bar'.",
2471
+ "required": false
2472
+ },
2473
+ {
2474
+ "name": "height",
2475
+ "type": "number",
2476
+ "default": "32",
2477
+ "description": "Height in px.",
2478
+ "required": false
2479
+ },
2480
+ {
2481
+ "name": "hover",
2482
+ "type": "boolean",
2483
+ "default": "false",
2484
+ "description": "Renders the crosshair, hit layer and tooltip.",
2485
+ "required": false
2486
+ },
2487
+ {
2488
+ "name": "showTable",
2489
+ "type": "boolean",
2490
+ "default": "false",
2491
+ "description": "Shows the data table instead of leaving it visually hidden.",
2492
+ "required": false
2493
+ },
2494
+ {
2495
+ "name": "ariaLabel",
2496
+ "type": "string",
2497
+ "default": "''",
2498
+ "description": "Accessible name, used as the svg <title>.",
2499
+ "required": false
2500
+ },
2501
+ {
2502
+ "name": "description",
2503
+ "type": "string",
2504
+ "default": "''",
2505
+ "description": "Longer summary used as the svg <desc>. Falls back to `ariaLabel`.",
2506
+ "required": false
2507
+ },
2508
+ {
2509
+ "name": "margin",
2510
+ "type": "ChartMargin",
2511
+ "default": "{ top: 2, right: 2, bottom: 2, left: 2 }",
2512
+ "description": "Space reserved around the plot — a sparkline has no axis labels to fit.",
2513
+ "required": false
2514
+ },
2515
+ {
2516
+ "name": "class",
2517
+ "type": "string",
2518
+ "default": "''",
2519
+ "description": "Extra Tailwind classes merged onto the chart via `cn()` (last-wins).",
2520
+ "required": false
2521
+ }
2522
+ ],
2523
+ "outputs": [],
2524
+ "slots": [],
2525
+ "variants": []
2526
+ }
2527
+ ]
2528
+ },
2301
2529
  "checkbox": {
2302
2530
  "category": "forms",
2303
2531
  "title": "Checkbox",
@@ -7753,6 +7981,58 @@
7753
7981
  }
7754
7982
  ]
7755
7983
  },
7984
+ "progress-circle": {
7985
+ "category": "feedback",
7986
+ "title": "Progress Circle",
7987
+ "selector": "tolle-progress-circle",
7988
+ "isNew": true,
7989
+ "import": "import { ProgressCircleComponent } from '@tolle_/tolle-ui';",
7990
+ "install": "npx @tolle_/cli add progress-circle",
7991
+ "components": [
7992
+ {
7993
+ "name": "ProgressCircleComponent",
7994
+ "selector": "tolle-progress-circle",
7995
+ "kind": "component",
7996
+ "inputs": [
7997
+ {
7998
+ "name": "value",
7999
+ "type": "number | null",
8000
+ "default": "0",
8001
+ "description": "Percent complete, 0-100.",
8002
+ "required": false
8003
+ },
8004
+ {
8005
+ "name": "size",
8006
+ "type": "number",
8007
+ "default": "120",
8008
+ "description": "Diameter of the ring in px.",
8009
+ "required": false
8010
+ },
8011
+ {
8012
+ "name": "strokeWidth",
8013
+ "type": "number",
8014
+ "default": "8",
8015
+ "description": "Thickness of the ring in px.",
8016
+ "required": false
8017
+ },
8018
+ {
8019
+ "name": "class",
8020
+ "type": "string",
8021
+ "default": "''",
8022
+ "description": "Extra Tailwind classes merged onto the ring via `cn()` (last-wins).",
8023
+ "required": false
8024
+ }
8025
+ ],
8026
+ "outputs": [],
8027
+ "slots": [
8028
+ {
8029
+ "name": ""
8030
+ }
8031
+ ],
8032
+ "variants": []
8033
+ }
8034
+ ]
8035
+ },
7756
8036
  "prompt-input": {
7757
8037
  "category": "ai",
7758
8038
  "title": "Prompt Input",
@@ -11099,6 +11379,54 @@
11099
11379
  }
11100
11380
  ]
11101
11381
  },
11382
+ "tracker": {
11383
+ "category": "components",
11384
+ "title": "Tracker",
11385
+ "selector": "tolle-tracker",
11386
+ "isNew": true,
11387
+ "import": "import { TrackerComponent } from '@tolle_/tolle-ui';",
11388
+ "install": "npx @tolle_/cli add tracker",
11389
+ "components": [
11390
+ {
11391
+ "name": "TrackerComponent",
11392
+ "selector": "tolle-tracker",
11393
+ "kind": "component",
11394
+ "inputs": [
11395
+ {
11396
+ "name": "data",
11397
+ "type": "TrackerBlock[]",
11398
+ "default": "[]",
11399
+ "description": "One block per period, in chronological order.",
11400
+ "required": false
11401
+ },
11402
+ {
11403
+ "name": "blockHeight",
11404
+ "type": "number",
11405
+ "default": "32",
11406
+ "description": "Height of each block in px.",
11407
+ "required": false
11408
+ },
11409
+ {
11410
+ "name": "ariaLabel",
11411
+ "type": "string",
11412
+ "default": "''",
11413
+ "description": "Accessible name for the whole strip.",
11414
+ "required": false
11415
+ },
11416
+ {
11417
+ "name": "class",
11418
+ "type": "string",
11419
+ "default": "''",
11420
+ "description": "Extra Tailwind classes merged onto the strip via `cn()` (last-wins).",
11421
+ "required": false
11422
+ }
11423
+ ],
11424
+ "outputs": [],
11425
+ "slots": [],
11426
+ "variants": []
11427
+ }
11428
+ ]
11429
+ },
11102
11430
  "typography": {
11103
11431
  "category": "layout",
11104
11432
  "title": "Typography",
@@ -303,6 +303,22 @@ Variants:
303
303
  - `variant`: `default`, `secondary`, `outline`, `destructive` (default `default`)
304
304
  - `size`: `xs`, `sm`, `default` (default `default`)
305
305
 
306
+ ## Bar List
307
+
308
+ - Install: `npx @tolle_/cli add bar-list`
309
+ - Import: `import { BarListComponent } from '@tolle_/tolle-ui';`
310
+
311
+ ### `<tolle-bar-list>`
312
+
313
+ Inputs:
314
+
315
+ | Name | Type | Default | Description |
316
+ | --- | --- | --- | --- |
317
+ | data | `Record<string, any>[]` | `[]` | Rows to rank, in the order they should be drawn. |
318
+ | labelKey | `string` | `'label'` | Row key holding each row's label. |
319
+ | valueKey | `string` | `'value'` | Row key holding each row's numeric value. |
320
+ | class | `string` | `''` | Extra Tailwind classes merged onto the list via `cn()` (last-wins). |
321
+
306
322
  ## Breadcrumb
307
323
 
308
324
  - Install: `npx @tolle_/cli add breadcrumb`
@@ -582,6 +598,24 @@ Slots: _default_
582
598
 
583
599
  ### `<[tolleCarouselNext]>` (directive)
584
600
 
601
+ ## Category Bar
602
+
603
+ - Install: `npx @tolle_/cli add category-bar`
604
+ - Import: `import { CategoryBarComponent } from '@tolle_/tolle-ui';`
605
+
606
+ ### `<tolle-category-bar>`
607
+
608
+ Inputs:
609
+
610
+ | Name | Type | Default | Description |
611
+ | --- | --- | --- | --- |
612
+ | values | `number[]` | `[]` | Width of each segment. Values that are not finite and greater than zero are dropped. |
613
+ | labels | `string[]` | `[]` | Name for each segment, used in the accessible summary and as a title tooltip. |
614
+ | colors | `string[]` | `[]` | Paint for each segment, by index. Falls back to the chart palette --chart-1 through --chart-5. |
615
+ | markerValue | `number | null` | `null` | Position of the pointer, 0-100 on the same scale the segments sum to. Omit to draw no pointer. |
616
+ | ariaLabel | `string` | `''` | Accessible name, prefixed onto the sr-only summary of segments and marker. |
617
+ | class | `string` | `''` | Extra Tailwind classes merged onto the bar via `cn()` (last-wins). |
618
+
585
619
  ## Chain Of Thought
586
620
 
587
621
  - Install: `npx @tolle_/cli add chain-of-thought`
@@ -720,6 +754,8 @@ Inputs:
720
754
  | ariaLabel | `string` | `''` | Accessible name for the chart, used as the svg `<title>`. |
721
755
  | description | `string` | `''` | Longer summary used as the svg `<desc>`. Falls back to `ariaLabel`. |
722
756
  | stacked | `boolean` | `false` | Stacks marks on a shared baseline instead of grouping them. |
757
+ | orientation | `ChartOrientation` | `'vertical'` | Which physical axis carries the category vs the value. Only bars support
758
+ 'horizontal' — line/area marks stay vertical regardless. |
723
759
  | hover | `boolean` | `true` | Renders the crosshair, hit layer and shared tooltip. |
724
760
  | showTable | `boolean` | `false` | Shows the data table instead of leaving it visually hidden. |
725
761
  | xHeader | `string` | `'Category'` | Column header the table fallback gives the x category. |
@@ -745,7 +781,7 @@ Inputs:
745
781
 
746
782
  | Name | Type | Default | Description |
747
783
  | --- | --- | --- | --- |
748
- | vertical | `boolean` | `false` | Also draws a rule at every x position. |
784
+ | vertical | `boolean` | `false` | Also draws a rule at every category position. |
749
785
  | class | `string` | `''` | Extra Tailwind classes merged onto each rule via `cn()` (last-wins). |
750
786
 
751
787
  ### `<svg:g[tolle-chart-x-axis]>`
@@ -754,7 +790,8 @@ Inputs:
754
790
 
755
791
  | Name | Type | Default | Description |
756
792
  | --- | --- | --- | --- |
757
- | charWidth | `number` | `7` | Approximate px per character, used to decide when labels would collide. |
793
+ | charWidth | `number` | `7` | Approximate px per character, used to decide when category labels would
794
+ collide. Only consulted in the vertical orientation. |
758
795
  | class | `string` | `''` | Extra Tailwind classes merged onto each label via `cn()` (last-wins). |
759
796
 
760
797
  ### `<svg:g[tolle-chart-y-axis]>`
@@ -836,6 +873,31 @@ Outputs:
836
873
  Variants:
837
874
  - `variant`: `default`, `card` (default `default`)
838
875
 
876
+ ## Chart Spark
877
+
878
+ - Install: `npx @tolle_/cli add chart-spark`
879
+ - Import: `import { ChartSparkComponent } from '@tolle_/tolle-ui';`
880
+
881
+ ### `<tolle-chart-spark>`
882
+
883
+ Inputs:
884
+
885
+ | Name | Type | Default | Description |
886
+ | --- | --- | --- | --- |
887
+ | data | `Record<string, any>[]` | `[]` | Rows to plot, in x order. |
888
+ | valueKey | `string` | `'value'` | Row key holding each row's numeric value. |
889
+ | xKey | `string` | `''` | Row key holding each row's x position. Only matters once `hover` is on. |
890
+ | type | `'line' | 'area' | 'bar'` | `'line'` | Which mark to draw. |
891
+ | curve | `'linear' | 'smooth'` | `'linear'` | Interpolation for line/area. |
892
+ | maxBarWidth | `number` | `6` | Largest bar thickness in px, used when `type` is 'bar'. |
893
+ | height | `number` | `32` | Height in px. |
894
+ | hover | `boolean` | `false` | Renders the crosshair, hit layer and tooltip. |
895
+ | showTable | `boolean` | `false` | Shows the data table instead of leaving it visually hidden. |
896
+ | ariaLabel | `string` | `''` | Accessible name, used as the svg <title>. |
897
+ | description | `string` | `''` | Longer summary used as the svg <desc>. Falls back to `ariaLabel`. |
898
+ | margin | `ChartMargin` | `{ top: 2, right: 2, bottom: 2, left: 2 }` | Space reserved around the plot — a sparkline has no axis labels to fit. |
899
+ | class | `string` | `''` | Extra Tailwind classes merged onto the chart via `cn()` (last-wins). |
900
+
839
901
  ## Checkbox
840
902
 
841
903
  - Install: `npx @tolle_/cli add checkbox`
@@ -2731,6 +2793,24 @@ Inputs:
2731
2793
  | value | `number | null` | `0` | |
2732
2794
  | class | `string` | `''` | |
2733
2795
 
2796
+ ## Progress Circle
2797
+
2798
+ - Install: `npx @tolle_/cli add progress-circle`
2799
+ - Import: `import { ProgressCircleComponent } from '@tolle_/tolle-ui';`
2800
+
2801
+ ### `<tolle-progress-circle>`
2802
+
2803
+ Inputs:
2804
+
2805
+ | Name | Type | Default | Description |
2806
+ | --- | --- | --- | --- |
2807
+ | value | `number | null` | `0` | Percent complete, 0-100. |
2808
+ | size | `number` | `120` | Diameter of the ring in px. |
2809
+ | strokeWidth | `number` | `8` | Thickness of the ring in px. |
2810
+ | class | `string` | `''` | Extra Tailwind classes merged onto the ring via `cn()` (last-wins). |
2811
+
2812
+ Slots: _default_
2813
+
2734
2814
  ## Prompt Input
2735
2815
 
2736
2816
  - Install: `npx @tolle_/cli add prompt-input`
@@ -3939,6 +4019,22 @@ Inputs:
3939
4019
  | content | `string` | `''` | |
3940
4020
  | placement | `'top' | 'bottom' | 'left' | 'right'` | `'top'` | |
3941
4021
 
4022
+ ## Tracker
4023
+
4024
+ - Install: `npx @tolle_/cli add tracker`
4025
+ - Import: `import { TrackerComponent } from '@tolle_/tolle-ui';`
4026
+
4027
+ ### `<tolle-tracker>`
4028
+
4029
+ Inputs:
4030
+
4031
+ | Name | Type | Default | Description |
4032
+ | --- | --- | --- | --- |
4033
+ | data | `TrackerBlock[]` | `[]` | One block per period, in chronological order. |
4034
+ | blockHeight | `number` | `32` | Height of each block in px. |
4035
+ | ariaLabel | `string` | `''` | Accessible name for the whole strip. |
4036
+ | class | `string` | `''` | Extra Tailwind classes merged onto the strip via `cn()` (last-wins). |
4037
+
3942
4038
  ## Typography
3943
4039
 
3944
4040
  - Install: `npx @tolle_/cli add typography`
package/registry/llms.txt CHANGED
@@ -14,6 +14,7 @@
14
14
  - [Avatar](r/avatar.json): Avatar component with shape and size options.
15
15
  - [Avatar Fallback](r/avatar-fallback.json): Avatar Fallback component.
16
16
  - [Badge](r/badge.json): Badge component with variant and size options.
17
+ - [Bar List](r/bar-list.json): Bar List component.
17
18
  - [Breadcrumb](r/breadcrumb.json): Breadcrumb component.
18
19
  - [Breadcrumb Item](r/breadcrumb-item.json): Breadcrumb Item component.
19
20
  - [Breadcrumb Link](r/breadcrumb-link.json): Breadcrumb Link component.
@@ -24,9 +25,11 @@
24
25
  - [Calendar](r/calendar.json): Calendar component.
25
26
  - [Card](r/card.json): Card component.
26
27
  - [Carousel](r/carousel.json): Carousel component.
28
+ - [Category Bar](r/category-bar.json): Category Bar component.
27
29
  - [Chain Of Thought](r/chain-of-thought.json): Chain Of Thought component with size options.
28
30
  - [Chart](r/chart.json): Chart component with variant and density options.
29
31
  - [Chart Pie](r/chart-pie.json): Chart Pie component with variant options.
32
+ - [Chart Spark](r/chart-spark.json): Chart Spark component.
30
33
  - [Checkbox](r/checkbox.json): Checkbox component with size and checked options.
31
34
  - [Checkpoint](r/checkpoint.json): Checkpoint component with active and size options.
32
35
  - [Collapsible](r/collapsible.json): Collapsible component.
@@ -77,6 +80,7 @@
77
80
  - [Popover](r/popover.json): Popover component.
78
81
  - [Popover Content](r/popover-content.json): Popover Content component.
79
82
  - [Progress](r/progress.json): Progress component.
83
+ - [Progress Circle](r/progress-circle.json): Progress Circle component.
80
84
  - [Prompt Input](r/prompt-input.json): Prompt Input component with status and size options.
81
85
  - [Queue](r/queue.json): Queue component with size options.
82
86
  - [Radio Group](r/radio-group.json): Radio Group component.
@@ -115,6 +119,7 @@
115
119
  - [Tolle Cell](r/tolle-cell.json): Tolle Cell component.
116
120
  - [Tool](r/tool.json): Tool component.
117
121
  - [Tooltip](r/tooltip.json): Tooltip component.
122
+ - [Tracker](r/tracker.json): Tracker component.
118
123
  - [Typography](r/typography.json): Typography component with variant options.
119
124
 
120
125
  ## Reference