@almadar/patterns 2.30.13 → 2.32.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-05-26T07:34:29.134Z",
3
+ "exportedAt": "2026-05-29T02:49:56.240Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -4168,6 +4168,12 @@
4168
4168
  ],
4169
4169
  "typicalSize": "medium",
4170
4170
  "propsSchema": {
4171
+ "className": {
4172
+ "types": [
4173
+ "string"
4174
+ ],
4175
+ "description": "Additional CSS classes applied to the root element."
4176
+ },
4171
4177
  "padding": {
4172
4178
  "types": [
4173
4179
  "string"
@@ -4792,6 +4798,12 @@
4792
4798
  ],
4793
4799
  "typicalSize": "tiny",
4794
4800
  "propsSchema": {
4801
+ "className": {
4802
+ "types": [
4803
+ "string"
4804
+ ],
4805
+ "description": "Additional CSS classes applied to the root element."
4806
+ },
4795
4807
  "variant": {
4796
4808
  "types": [
4797
4809
  "string"
@@ -4897,6 +4909,12 @@
4897
4909
  ],
4898
4910
  "typicalSize": "tiny",
4899
4911
  "propsSchema": {
4912
+ "className": {
4913
+ "types": [
4914
+ "string"
4915
+ ],
4916
+ "description": "Additional CSS classes applied to the root element."
4917
+ },
4900
4918
  "variant": {
4901
4919
  "types": [
4902
4920
  "string"
@@ -5151,6 +5169,12 @@
5151
5169
  ],
5152
5170
  "typicalSize": "small",
5153
5171
  "propsSchema": {
5172
+ "className": {
5173
+ "types": [
5174
+ "string"
5175
+ ],
5176
+ "description": "Additional CSS classes applied to the root element."
5177
+ },
5154
5178
  "variant": {
5155
5179
  "types": [
5156
5180
  "string"
@@ -5205,7 +5229,7 @@
5205
5229
  "types": [
5206
5230
  "string"
5207
5231
  ],
5208
- "description": "Layer 2 visual treatment. Picks the chrome (border, shadow, radius, padding-intent) independently of the semantic variant. Resolution chain lives in the compiler — see docs/Almadar_Std_Variations.md §3.1.",
5232
+ "description": "Layer 2 visual treatment orthogonal to the semantic variant.",
5209
5233
  "enumValues": [
5210
5234
  "elevated",
5211
5235
  "flat-bordered",
@@ -5346,6 +5370,12 @@
5346
5370
  ],
5347
5371
  "typicalSize": "tiny",
5348
5372
  "propsSchema": {
5373
+ "className": {
5374
+ "types": [
5375
+ "string"
5376
+ ],
5377
+ "description": "Additional CSS classes applied to the root element."
5378
+ },
5349
5379
  "size": {
5350
5380
  "types": [
5351
5381
  "string"
@@ -5372,6 +5402,12 @@
5372
5402
  ],
5373
5403
  "typicalSize": "tiny",
5374
5404
  "propsSchema": {
5405
+ "className": {
5406
+ "types": [
5407
+ "string"
5408
+ ],
5409
+ "description": "Additional CSS classes applied to the root element."
5410
+ },
5375
5411
  "placeholder": {
5376
5412
  "types": [
5377
5413
  "string"
@@ -5510,6 +5546,12 @@
5510
5546
  ],
5511
5547
  "typicalSize": "small",
5512
5548
  "propsSchema": {
5549
+ "className": {
5550
+ "types": [
5551
+ "string"
5552
+ ],
5553
+ "description": "Additional CSS classes applied to the root element."
5554
+ },
5513
5555
  "placeholder": {
5514
5556
  "types": [
5515
5557
  "string"
@@ -5548,6 +5590,12 @@
5548
5590
  ],
5549
5591
  "typicalSize": "tiny",
5550
5592
  "propsSchema": {
5593
+ "className": {
5594
+ "types": [
5595
+ "string"
5596
+ ],
5597
+ "description": "Additional CSS classes applied to the root element."
5598
+ },
5551
5599
  "options": {
5552
5600
  "types": [
5553
5601
  "array"
@@ -5614,6 +5662,12 @@
5614
5662
  ],
5615
5663
  "typicalSize": "tiny",
5616
5664
  "propsSchema": {
5665
+ "className": {
5666
+ "types": [
5667
+ "string"
5668
+ ],
5669
+ "description": "Additional CSS classes applied to the root element."
5670
+ },
5617
5671
  "checked": {
5618
5672
  "types": [
5619
5673
  "boolean"
@@ -5644,6 +5698,12 @@
5644
5698
  ],
5645
5699
  "typicalSize": "tiny",
5646
5700
  "propsSchema": {
5701
+ "className": {
5702
+ "types": [
5703
+ "string"
5704
+ ],
5705
+ "description": "Additional CSS classes applied to the root element."
5706
+ },
5647
5707
  "options": {
5648
5708
  "types": [
5649
5709
  "array"
@@ -5780,6 +5840,12 @@
5780
5840
  ],
5781
5841
  "typicalSize": "tiny",
5782
5842
  "propsSchema": {
5843
+ "className": {
5844
+ "types": [
5845
+ "string"
5846
+ ],
5847
+ "description": "Additional CSS classes applied to the root element."
5848
+ },
5783
5849
  "text": {
5784
5850
  "types": [
5785
5851
  "string"
@@ -13572,6 +13638,13 @@
13572
13638
  ]
13573
13639
  }
13574
13640
  },
13641
+ "itemClickEvent": {
13642
+ "types": [
13643
+ "string"
13644
+ ],
13645
+ "description": "When set, the whole row is clickable and emits UI:{itemClickEvent} with { id, row } (action-button clicks stopPropagation so they still win).",
13646
+ "kind": "event"
13647
+ },
13575
13648
  "gap": {
13576
13649
  "types": [
13577
13650
  "string"
@@ -14036,6 +14109,12 @@
14036
14109
  ],
14037
14110
  "typicalSize": "small",
14038
14111
  "propsSchema": {
14112
+ "className": {
14113
+ "types": [
14114
+ "string"
14115
+ ],
14116
+ "description": "Additional CSS classes applied to the root element."
14117
+ },
14039
14118
  "min": {
14040
14119
  "types": [
14041
14120
  "number"
@@ -14155,6 +14234,12 @@
14155
14234
  ],
14156
14235
  "typicalSize": "small",
14157
14236
  "propsSchema": {
14237
+ "className": {
14238
+ "types": [
14239
+ "string"
14240
+ ],
14241
+ "description": "Additional CSS classes applied to the root element."
14242
+ },
14158
14243
  "status": {
14159
14244
  "types": [
14160
14245
  "string"
@@ -14208,6 +14293,12 @@
14208
14293
  ],
14209
14294
  "typicalSize": "small",
14210
14295
  "propsSchema": {
14296
+ "className": {
14297
+ "types": [
14298
+ "string"
14299
+ ],
14300
+ "description": "Additional CSS classes applied to the root element."
14301
+ },
14211
14302
  "value": {
14212
14303
  "types": [
14213
14304
  "number"
@@ -18056,6 +18147,12 @@
18056
18147
  ],
18057
18148
  "typicalSize": "small",
18058
18149
  "propsSchema": {
18150
+ "className": {
18151
+ "types": [
18152
+ "string"
18153
+ ],
18154
+ "description": "Additional CSS classes applied to the root element."
18155
+ },
18059
18156
  "src": {
18060
18157
  "types": [
18061
18158
  "string"
@@ -18154,6 +18251,12 @@
18154
18251
  ],
18155
18252
  "typicalSize": "small",
18156
18253
  "propsSchema": {
18254
+ "className": {
18255
+ "types": [
18256
+ "string"
18257
+ ],
18258
+ "description": "Additional CSS classes applied to the root element."
18259
+ },
18157
18260
  "trigger": {
18158
18261
  "types": [
18159
18262
  "string"
@@ -18736,6 +18839,12 @@
18736
18839
  ],
18737
18840
  "typicalSize": "small",
18738
18841
  "propsSchema": {
18842
+ "className": {
18843
+ "types": [
18844
+ "string"
18845
+ ],
18846
+ "description": "Additional CSS classes applied to the root element."
18847
+ },
18739
18848
  "variant": {
18740
18849
  "types": [
18741
18850
  "string"
@@ -19546,6 +19655,11 @@
19546
19655
  "name": "parentNodeId",
19547
19656
  "type": "string",
19548
19657
  "required": true
19658
+ },
19659
+ {
19660
+ "name": "content",
19661
+ "type": "string",
19662
+ "required": true
19549
19663
  }
19550
19664
  ]
19551
19665
  },
@@ -32089,6 +32203,433 @@
32089
32203
  }
32090
32204
  }
32091
32205
  },
32206
+ "table-view": {
32207
+ "type": "table-view",
32208
+ "category": "display",
32209
+ "description": "TableView component",
32210
+ "suggestedFor": [
32211
+ "table",
32212
+ "view",
32213
+ "table view"
32214
+ ],
32215
+ "typicalSize": "medium",
32216
+ "propsSchema": {
32217
+ "dragGroup": {
32218
+ "types": [
32219
+ "string"
32220
+ ],
32221
+ "description": "When set, items in this container are draggable and announce this group as their source"
32222
+ },
32223
+ "accepts": {
32224
+ "types": [
32225
+ "string"
32226
+ ],
32227
+ "description": "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
32228
+ },
32229
+ "sortable": {
32230
+ "types": [
32231
+ "boolean"
32232
+ ],
32233
+ "description": "Enable in-container reorder; items can be dragged to new positions among siblings"
32234
+ },
32235
+ "dropEvent": {
32236
+ "types": [
32237
+ "string"
32238
+ ],
32239
+ "description": "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
32240
+ },
32241
+ "reorderEvent": {
32242
+ "types": [
32243
+ "string"
32244
+ ],
32245
+ "description": "Bus event fired on in-container reorder. Payload: { id, oldIndex, newIndex }"
32246
+ },
32247
+ "positionEvent": {
32248
+ "types": [
32249
+ "string"
32250
+ ],
32251
+ "description": "Bus event fired N times per drop (one per item in affected zones) so the trait can persist new positions for the WHOLE zone, not just the moved item. Payload: { id, position }"
32252
+ },
32253
+ "dndItemIdField": {
32254
+ "types": [
32255
+ "string"
32256
+ ],
32257
+ "description": "Row field used as the @dnd-kit draggable id (default 'id')"
32258
+ },
32259
+ "dndRoot": {
32260
+ "types": [
32261
+ "boolean"
32262
+ ],
32263
+ "description": "Mark this container as the DnD root for its subtree — descendant zones share one DndContext (cross-container drag). Use on an outer container whose own items are not draggable."
32264
+ },
32265
+ "entity": {
32266
+ "types": [
32267
+ "object",
32268
+ "array"
32269
+ ],
32270
+ "description": "Schema entity data — single record or collection.",
32271
+ "required": true
32272
+ },
32273
+ "columns": {
32274
+ "types": [
32275
+ "array"
32276
+ ],
32277
+ "description": "Column definitions. The compiler emits `columns`; `fields` is the alias.",
32278
+ "items": {
32279
+ "types": [
32280
+ "object"
32281
+ ],
32282
+ "properties": {
32283
+ "key": {
32284
+ "types": [
32285
+ "string"
32286
+ ]
32287
+ },
32288
+ "field": {
32289
+ "types": [
32290
+ "string"
32291
+ ]
32292
+ },
32293
+ "header": {
32294
+ "types": [
32295
+ "string"
32296
+ ]
32297
+ },
32298
+ "label": {
32299
+ "types": [
32300
+ "string"
32301
+ ]
32302
+ },
32303
+ "width": {
32304
+ "types": [
32305
+ "string"
32306
+ ]
32307
+ },
32308
+ "align": {
32309
+ "types": [
32310
+ "string"
32311
+ ],
32312
+ "enumValues": [
32313
+ "left",
32314
+ "center",
32315
+ "right"
32316
+ ]
32317
+ },
32318
+ "className": {
32319
+ "types": [
32320
+ "string"
32321
+ ]
32322
+ },
32323
+ "weight": {
32324
+ "types": [
32325
+ "string"
32326
+ ],
32327
+ "enumValues": [
32328
+ "normal",
32329
+ "medium",
32330
+ "semibold"
32331
+ ]
32332
+ },
32333
+ "format": {
32334
+ "types": [
32335
+ "string"
32336
+ ],
32337
+ "enumValues": [
32338
+ "badge",
32339
+ "date",
32340
+ "currency",
32341
+ "number",
32342
+ "percent",
32343
+ "boolean"
32344
+ ]
32345
+ },
32346
+ "icon": {
32347
+ "types": [
32348
+ "string"
32349
+ ]
32350
+ },
32351
+ "sortable": {
32352
+ "types": [
32353
+ "boolean"
32354
+ ]
32355
+ }
32356
+ },
32357
+ "required": [
32358
+ "key"
32359
+ ]
32360
+ }
32361
+ },
32362
+ "fields": {
32363
+ "types": [
32364
+ "array"
32365
+ ],
32366
+ "description": "Alias for `columns`.",
32367
+ "items": {
32368
+ "types": [
32369
+ "object"
32370
+ ],
32371
+ "properties": {
32372
+ "key": {
32373
+ "types": [
32374
+ "string"
32375
+ ]
32376
+ },
32377
+ "field": {
32378
+ "types": [
32379
+ "string"
32380
+ ]
32381
+ },
32382
+ "header": {
32383
+ "types": [
32384
+ "string"
32385
+ ]
32386
+ },
32387
+ "label": {
32388
+ "types": [
32389
+ "string"
32390
+ ]
32391
+ },
32392
+ "width": {
32393
+ "types": [
32394
+ "string"
32395
+ ]
32396
+ },
32397
+ "align": {
32398
+ "types": [
32399
+ "string"
32400
+ ],
32401
+ "enumValues": [
32402
+ "left",
32403
+ "center",
32404
+ "right"
32405
+ ]
32406
+ },
32407
+ "className": {
32408
+ "types": [
32409
+ "string"
32410
+ ]
32411
+ },
32412
+ "weight": {
32413
+ "types": [
32414
+ "string"
32415
+ ],
32416
+ "enumValues": [
32417
+ "normal",
32418
+ "medium",
32419
+ "semibold"
32420
+ ]
32421
+ },
32422
+ "format": {
32423
+ "types": [
32424
+ "string"
32425
+ ],
32426
+ "enumValues": [
32427
+ "badge",
32428
+ "date",
32429
+ "currency",
32430
+ "number",
32431
+ "percent",
32432
+ "boolean"
32433
+ ]
32434
+ },
32435
+ "icon": {
32436
+ "types": [
32437
+ "string"
32438
+ ]
32439
+ },
32440
+ "sortable": {
32441
+ "types": [
32442
+ "boolean"
32443
+ ]
32444
+ }
32445
+ },
32446
+ "required": [
32447
+ "key"
32448
+ ]
32449
+ }
32450
+ },
32451
+ "itemActions": {
32452
+ "types": [
32453
+ "array"
32454
+ ],
32455
+ "description": "Per-row action buttons (trailing column).",
32456
+ "kind": "event-list",
32457
+ "eventField": "event",
32458
+ "items": {
32459
+ "types": [
32460
+ "object"
32461
+ ],
32462
+ "properties": {
32463
+ "label": {
32464
+ "types": [
32465
+ "string"
32466
+ ]
32467
+ },
32468
+ "event": {
32469
+ "types": [
32470
+ "string"
32471
+ ]
32472
+ },
32473
+ "icon": {
32474
+ "types": [
32475
+ "string"
32476
+ ]
32477
+ },
32478
+ "variant": {
32479
+ "types": [
32480
+ "string"
32481
+ ],
32482
+ "enumValues": [
32483
+ "primary",
32484
+ "secondary",
32485
+ "ghost",
32486
+ "danger"
32487
+ ]
32488
+ }
32489
+ },
32490
+ "required": [
32491
+ "label",
32492
+ "event"
32493
+ ]
32494
+ }
32495
+ },
32496
+ "selectable": {
32497
+ "types": [
32498
+ "boolean"
32499
+ ],
32500
+ "description": "Render a leading checkbox column. Selection changes emit `selectEvent`.",
32501
+ "default": false
32502
+ },
32503
+ "selectEvent": {
32504
+ "types": [
32505
+ "string"
32506
+ ],
32507
+ "description": "Event emitted on selection change: UI:{selectEvent} with { ids, rows }.",
32508
+ "kind": "event"
32509
+ },
32510
+ "selectedIds": {
32511
+ "types": [
32512
+ "array"
32513
+ ],
32514
+ "description": "Currently-selected ids (controlled). Falls back to local state when omitted.",
32515
+ "items": {
32516
+ "types": [
32517
+ "string"
32518
+ ]
32519
+ }
32520
+ },
32521
+ "sortEvent": {
32522
+ "types": [
32523
+ "string"
32524
+ ],
32525
+ "description": "Event emitted on sortable-header click: UI:{sortEvent} with { column, direction }.",
32526
+ "kind": "event"
32527
+ },
32528
+ "sortColumn": {
32529
+ "types": [
32530
+ "string"
32531
+ ],
32532
+ "description": "Current sort column (display hint for the active header arrow)."
32533
+ },
32534
+ "sortDirection": {
32535
+ "types": [
32536
+ "string"
32537
+ ],
32538
+ "description": "Current sort direction (display hint).",
32539
+ "enumValues": [
32540
+ "asc",
32541
+ "desc"
32542
+ ]
32543
+ },
32544
+ "className": {
32545
+ "types": [
32546
+ "string"
32547
+ ],
32548
+ "description": "Additional CSS classes applied to the table root."
32549
+ },
32550
+ "emptyMessage": {
32551
+ "types": [
32552
+ "string"
32553
+ ],
32554
+ "description": "Message shown when there are no rows."
32555
+ },
32556
+ "isLoading": {
32557
+ "types": [
32558
+ "boolean"
32559
+ ],
32560
+ "description": "Loading state.",
32561
+ "default": false
32562
+ },
32563
+ "error": {
32564
+ "types": [
32565
+ "object"
32566
+ ],
32567
+ "description": "Error state.",
32568
+ "default": null
32569
+ },
32570
+ "groupBy": {
32571
+ "types": [
32572
+ "string"
32573
+ ],
32574
+ "description": "Group rows under section headers by a field value."
32575
+ },
32576
+ "pageSize": {
32577
+ "types": [
32578
+ "number"
32579
+ ],
32580
+ "description": "Max rows before a \"Show More\" button. Defaults to 0 (show all).",
32581
+ "default": 0
32582
+ },
32583
+ "children": {
32584
+ "types": [
32585
+ "function"
32586
+ ],
32587
+ "description": "Custom per-row render. When provided, the whole row content is delegated to this function (columns are ignored for the body; the header still renders). Mirrors DataList's children render prop.",
32588
+ "kind": "callback",
32589
+ "callbackArgs": [
32590
+ {
32591
+ "name": "item",
32592
+ "type": "object"
32593
+ },
32594
+ {
32595
+ "name": "index",
32596
+ "type": "number"
32597
+ }
32598
+ ]
32599
+ },
32600
+ "renderItem": {
32601
+ "types": [
32602
+ "function"
32603
+ ],
32604
+ "description": "Per-row render function (schema alias). In .orb: [\"fn\",\"item\",{...}]. The compiler converts this to the children render prop. @deprecated Use children in React code; exists for pattern registry sync.",
32605
+ "kind": "callback",
32606
+ "callbackArgs": [
32607
+ {
32608
+ "name": "item",
32609
+ "type": "object"
32610
+ },
32611
+ {
32612
+ "name": "index",
32613
+ "type": "number"
32614
+ }
32615
+ ]
32616
+ },
32617
+ "look": {
32618
+ "types": [
32619
+ "string"
32620
+ ],
32621
+ "description": "Layer 2 visual treatment — mirrors the data-list / entity-table look enum so authors share one knob name across row renderers.",
32622
+ "enumValues": [
32623
+ "dense",
32624
+ "spacious",
32625
+ "striped",
32626
+ "borderless",
32627
+ "bordered"
32628
+ ],
32629
+ "default": "dense"
32630
+ }
32631
+ }
32632
+ },
32092
32633
  "heading": {
32093
32634
  "type": "heading",
32094
32635
  "category": "component",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/patterns",
3
- "version": "2.30.13",
3
+ "version": "2.32.0",
4
4
  "description": "Pattern registry and component mappings for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",