@almadar/patterns 2.30.12 → 2.31.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/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  // src/patterns-registry.json
2
2
  var patterns_registry_default = {
3
3
  version: "1.0.0",
4
- exportedAt: "2026-05-26T02:27:33.609Z",
4
+ exportedAt: "2026-05-29T00:33:20.610Z",
5
5
  patterns: {
6
6
  "entity-table": {
7
7
  type: "entity-table",
@@ -4169,6 +4169,12 @@ var patterns_registry_default = {
4169
4169
  ],
4170
4170
  typicalSize: "medium",
4171
4171
  propsSchema: {
4172
+ className: {
4173
+ types: [
4174
+ "string"
4175
+ ],
4176
+ description: "Additional CSS classes applied to the root element."
4177
+ },
4172
4178
  padding: {
4173
4179
  types: [
4174
4180
  "string"
@@ -4793,6 +4799,12 @@ var patterns_registry_default = {
4793
4799
  ],
4794
4800
  typicalSize: "tiny",
4795
4801
  propsSchema: {
4802
+ className: {
4803
+ types: [
4804
+ "string"
4805
+ ],
4806
+ description: "Additional CSS classes applied to the root element."
4807
+ },
4796
4808
  variant: {
4797
4809
  types: [
4798
4810
  "string"
@@ -4898,6 +4910,12 @@ var patterns_registry_default = {
4898
4910
  ],
4899
4911
  typicalSize: "tiny",
4900
4912
  propsSchema: {
4913
+ className: {
4914
+ types: [
4915
+ "string"
4916
+ ],
4917
+ description: "Additional CSS classes applied to the root element."
4918
+ },
4901
4919
  variant: {
4902
4920
  types: [
4903
4921
  "string"
@@ -5152,6 +5170,12 @@ var patterns_registry_default = {
5152
5170
  ],
5153
5171
  typicalSize: "small",
5154
5172
  propsSchema: {
5173
+ className: {
5174
+ types: [
5175
+ "string"
5176
+ ],
5177
+ description: "Additional CSS classes applied to the root element."
5178
+ },
5155
5179
  variant: {
5156
5180
  types: [
5157
5181
  "string"
@@ -5206,7 +5230,7 @@ var patterns_registry_default = {
5206
5230
  types: [
5207
5231
  "string"
5208
5232
  ],
5209
- description: "Layer 2 visual treatment. Picks the chrome (border, shadow, radius, padding-intent) independently of the semantic variant. Resolution chain lives in the compiler \u2014 see docs/Almadar_Std_Variations.md \xA73.1.",
5233
+ description: "Layer 2 visual treatment \u2014 orthogonal to the semantic variant.",
5210
5234
  enumValues: [
5211
5235
  "elevated",
5212
5236
  "flat-bordered",
@@ -5347,6 +5371,12 @@ var patterns_registry_default = {
5347
5371
  ],
5348
5372
  typicalSize: "tiny",
5349
5373
  propsSchema: {
5374
+ className: {
5375
+ types: [
5376
+ "string"
5377
+ ],
5378
+ description: "Additional CSS classes applied to the root element."
5379
+ },
5350
5380
  size: {
5351
5381
  types: [
5352
5382
  "string"
@@ -5373,6 +5403,12 @@ var patterns_registry_default = {
5373
5403
  ],
5374
5404
  typicalSize: "tiny",
5375
5405
  propsSchema: {
5406
+ className: {
5407
+ types: [
5408
+ "string"
5409
+ ],
5410
+ description: "Additional CSS classes applied to the root element."
5411
+ },
5376
5412
  placeholder: {
5377
5413
  types: [
5378
5414
  "string"
@@ -5511,6 +5547,12 @@ var patterns_registry_default = {
5511
5547
  ],
5512
5548
  typicalSize: "small",
5513
5549
  propsSchema: {
5550
+ className: {
5551
+ types: [
5552
+ "string"
5553
+ ],
5554
+ description: "Additional CSS classes applied to the root element."
5555
+ },
5514
5556
  placeholder: {
5515
5557
  types: [
5516
5558
  "string"
@@ -5549,6 +5591,12 @@ var patterns_registry_default = {
5549
5591
  ],
5550
5592
  typicalSize: "tiny",
5551
5593
  propsSchema: {
5594
+ className: {
5595
+ types: [
5596
+ "string"
5597
+ ],
5598
+ description: "Additional CSS classes applied to the root element."
5599
+ },
5552
5600
  options: {
5553
5601
  types: [
5554
5602
  "array"
@@ -5615,6 +5663,12 @@ var patterns_registry_default = {
5615
5663
  ],
5616
5664
  typicalSize: "tiny",
5617
5665
  propsSchema: {
5666
+ className: {
5667
+ types: [
5668
+ "string"
5669
+ ],
5670
+ description: "Additional CSS classes applied to the root element."
5671
+ },
5618
5672
  checked: {
5619
5673
  types: [
5620
5674
  "boolean"
@@ -5645,6 +5699,12 @@ var patterns_registry_default = {
5645
5699
  ],
5646
5700
  typicalSize: "tiny",
5647
5701
  propsSchema: {
5702
+ className: {
5703
+ types: [
5704
+ "string"
5705
+ ],
5706
+ description: "Additional CSS classes applied to the root element."
5707
+ },
5648
5708
  options: {
5649
5709
  types: [
5650
5710
  "array"
@@ -5781,6 +5841,12 @@ var patterns_registry_default = {
5781
5841
  ],
5782
5842
  typicalSize: "tiny",
5783
5843
  propsSchema: {
5844
+ className: {
5845
+ types: [
5846
+ "string"
5847
+ ],
5848
+ description: "Additional CSS classes applied to the root element."
5849
+ },
5784
5850
  text: {
5785
5851
  types: [
5786
5852
  "string"
@@ -13341,7 +13407,8 @@ var patterns_registry_default = {
13341
13407
  "striped",
13342
13408
  "borderless",
13343
13409
  "card-rows"
13344
- ]
13410
+ ],
13411
+ default: "dense"
13345
13412
  }
13346
13413
  }
13347
13414
  },
@@ -13756,7 +13823,8 @@ var patterns_registry_default = {
13756
13823
  "striped",
13757
13824
  "borderless",
13758
13825
  "card-rows"
13759
- ]
13826
+ ],
13827
+ default: "dense"
13760
13828
  }
13761
13829
  }
13762
13830
  },
@@ -14035,6 +14103,12 @@ var patterns_registry_default = {
14035
14103
  ],
14036
14104
  typicalSize: "small",
14037
14105
  propsSchema: {
14106
+ className: {
14107
+ types: [
14108
+ "string"
14109
+ ],
14110
+ description: "Additional CSS classes applied to the root element."
14111
+ },
14038
14112
  min: {
14039
14113
  types: [
14040
14114
  "number"
@@ -14154,6 +14228,12 @@ var patterns_registry_default = {
14154
14228
  ],
14155
14229
  typicalSize: "small",
14156
14230
  propsSchema: {
14231
+ className: {
14232
+ types: [
14233
+ "string"
14234
+ ],
14235
+ description: "Additional CSS classes applied to the root element."
14236
+ },
14157
14237
  status: {
14158
14238
  types: [
14159
14239
  "string"
@@ -14207,6 +14287,12 @@ var patterns_registry_default = {
14207
14287
  ],
14208
14288
  typicalSize: "small",
14209
14289
  propsSchema: {
14290
+ className: {
14291
+ types: [
14292
+ "string"
14293
+ ],
14294
+ description: "Additional CSS classes applied to the root element."
14295
+ },
14210
14296
  value: {
14211
14297
  types: [
14212
14298
  "number"
@@ -18055,6 +18141,12 @@ var patterns_registry_default = {
18055
18141
  ],
18056
18142
  typicalSize: "small",
18057
18143
  propsSchema: {
18144
+ className: {
18145
+ types: [
18146
+ "string"
18147
+ ],
18148
+ description: "Additional CSS classes applied to the root element."
18149
+ },
18058
18150
  src: {
18059
18151
  types: [
18060
18152
  "string"
@@ -18153,6 +18245,12 @@ var patterns_registry_default = {
18153
18245
  ],
18154
18246
  typicalSize: "small",
18155
18247
  propsSchema: {
18248
+ className: {
18249
+ types: [
18250
+ "string"
18251
+ ],
18252
+ description: "Additional CSS classes applied to the root element."
18253
+ },
18156
18254
  trigger: {
18157
18255
  types: [
18158
18256
  "string"
@@ -18735,6 +18833,12 @@ var patterns_registry_default = {
18735
18833
  ],
18736
18834
  typicalSize: "small",
18737
18835
  propsSchema: {
18836
+ className: {
18837
+ types: [
18838
+ "string"
18839
+ ],
18840
+ description: "Additional CSS classes applied to the root element."
18841
+ },
18738
18842
  variant: {
18739
18843
  types: [
18740
18844
  "string"
@@ -32088,6 +32192,433 @@ var patterns_registry_default = {
32088
32192
  }
32089
32193
  }
32090
32194
  },
32195
+ "table-view": {
32196
+ type: "table-view",
32197
+ category: "display",
32198
+ description: "TableView component",
32199
+ suggestedFor: [
32200
+ "table",
32201
+ "view",
32202
+ "table view"
32203
+ ],
32204
+ typicalSize: "medium",
32205
+ propsSchema: {
32206
+ dragGroup: {
32207
+ types: [
32208
+ "string"
32209
+ ],
32210
+ description: "When set, items in this container are draggable and announce this group as their source"
32211
+ },
32212
+ accepts: {
32213
+ types: [
32214
+ "string"
32215
+ ],
32216
+ description: "When set, the container accepts drops whose dragGroup matches this value (or '*' for any group)"
32217
+ },
32218
+ sortable: {
32219
+ types: [
32220
+ "boolean"
32221
+ ],
32222
+ description: "Enable in-container reorder; items can be dragged to new positions among siblings"
32223
+ },
32224
+ dropEvent: {
32225
+ types: [
32226
+ "string"
32227
+ ],
32228
+ description: "Bus event fired on cross-container drop. Payload: { id, sourceGroup, targetGroup, newIndex }"
32229
+ },
32230
+ reorderEvent: {
32231
+ types: [
32232
+ "string"
32233
+ ],
32234
+ description: "Bus event fired on in-container reorder. Payload: { id, oldIndex, newIndex }"
32235
+ },
32236
+ positionEvent: {
32237
+ types: [
32238
+ "string"
32239
+ ],
32240
+ 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 }"
32241
+ },
32242
+ dndItemIdField: {
32243
+ types: [
32244
+ "string"
32245
+ ],
32246
+ description: "Row field used as the @dnd-kit draggable id (default 'id')"
32247
+ },
32248
+ dndRoot: {
32249
+ types: [
32250
+ "boolean"
32251
+ ],
32252
+ description: "Mark this container as the DnD root for its subtree \u2014 descendant zones share one DndContext (cross-container drag). Use on an outer container whose own items are not draggable."
32253
+ },
32254
+ entity: {
32255
+ types: [
32256
+ "object",
32257
+ "array"
32258
+ ],
32259
+ description: "Schema entity data \u2014 single record or collection.",
32260
+ required: true
32261
+ },
32262
+ columns: {
32263
+ types: [
32264
+ "array"
32265
+ ],
32266
+ description: "Column definitions. The compiler emits `columns`; `fields` is the alias.",
32267
+ items: {
32268
+ types: [
32269
+ "object"
32270
+ ],
32271
+ properties: {
32272
+ key: {
32273
+ types: [
32274
+ "string"
32275
+ ]
32276
+ },
32277
+ field: {
32278
+ types: [
32279
+ "string"
32280
+ ]
32281
+ },
32282
+ header: {
32283
+ types: [
32284
+ "string"
32285
+ ]
32286
+ },
32287
+ label: {
32288
+ types: [
32289
+ "string"
32290
+ ]
32291
+ },
32292
+ width: {
32293
+ types: [
32294
+ "string"
32295
+ ]
32296
+ },
32297
+ align: {
32298
+ types: [
32299
+ "string"
32300
+ ],
32301
+ enumValues: [
32302
+ "left",
32303
+ "center",
32304
+ "right"
32305
+ ]
32306
+ },
32307
+ className: {
32308
+ types: [
32309
+ "string"
32310
+ ]
32311
+ },
32312
+ weight: {
32313
+ types: [
32314
+ "string"
32315
+ ],
32316
+ enumValues: [
32317
+ "normal",
32318
+ "medium",
32319
+ "semibold"
32320
+ ]
32321
+ },
32322
+ format: {
32323
+ types: [
32324
+ "string"
32325
+ ],
32326
+ enumValues: [
32327
+ "badge",
32328
+ "date",
32329
+ "currency",
32330
+ "number",
32331
+ "percent",
32332
+ "boolean"
32333
+ ]
32334
+ },
32335
+ icon: {
32336
+ types: [
32337
+ "string"
32338
+ ]
32339
+ },
32340
+ sortable: {
32341
+ types: [
32342
+ "boolean"
32343
+ ]
32344
+ }
32345
+ },
32346
+ required: [
32347
+ "key"
32348
+ ]
32349
+ }
32350
+ },
32351
+ fields: {
32352
+ types: [
32353
+ "array"
32354
+ ],
32355
+ description: "Alias for `columns`.",
32356
+ items: {
32357
+ types: [
32358
+ "object"
32359
+ ],
32360
+ properties: {
32361
+ key: {
32362
+ types: [
32363
+ "string"
32364
+ ]
32365
+ },
32366
+ field: {
32367
+ types: [
32368
+ "string"
32369
+ ]
32370
+ },
32371
+ header: {
32372
+ types: [
32373
+ "string"
32374
+ ]
32375
+ },
32376
+ label: {
32377
+ types: [
32378
+ "string"
32379
+ ]
32380
+ },
32381
+ width: {
32382
+ types: [
32383
+ "string"
32384
+ ]
32385
+ },
32386
+ align: {
32387
+ types: [
32388
+ "string"
32389
+ ],
32390
+ enumValues: [
32391
+ "left",
32392
+ "center",
32393
+ "right"
32394
+ ]
32395
+ },
32396
+ className: {
32397
+ types: [
32398
+ "string"
32399
+ ]
32400
+ },
32401
+ weight: {
32402
+ types: [
32403
+ "string"
32404
+ ],
32405
+ enumValues: [
32406
+ "normal",
32407
+ "medium",
32408
+ "semibold"
32409
+ ]
32410
+ },
32411
+ format: {
32412
+ types: [
32413
+ "string"
32414
+ ],
32415
+ enumValues: [
32416
+ "badge",
32417
+ "date",
32418
+ "currency",
32419
+ "number",
32420
+ "percent",
32421
+ "boolean"
32422
+ ]
32423
+ },
32424
+ icon: {
32425
+ types: [
32426
+ "string"
32427
+ ]
32428
+ },
32429
+ sortable: {
32430
+ types: [
32431
+ "boolean"
32432
+ ]
32433
+ }
32434
+ },
32435
+ required: [
32436
+ "key"
32437
+ ]
32438
+ }
32439
+ },
32440
+ itemActions: {
32441
+ types: [
32442
+ "array"
32443
+ ],
32444
+ description: "Per-row action buttons (trailing column).",
32445
+ kind: "event-list",
32446
+ eventField: "event",
32447
+ items: {
32448
+ types: [
32449
+ "object"
32450
+ ],
32451
+ properties: {
32452
+ label: {
32453
+ types: [
32454
+ "string"
32455
+ ]
32456
+ },
32457
+ event: {
32458
+ types: [
32459
+ "string"
32460
+ ]
32461
+ },
32462
+ icon: {
32463
+ types: [
32464
+ "string"
32465
+ ]
32466
+ },
32467
+ variant: {
32468
+ types: [
32469
+ "string"
32470
+ ],
32471
+ enumValues: [
32472
+ "primary",
32473
+ "secondary",
32474
+ "ghost",
32475
+ "danger"
32476
+ ]
32477
+ }
32478
+ },
32479
+ required: [
32480
+ "label",
32481
+ "event"
32482
+ ]
32483
+ }
32484
+ },
32485
+ selectable: {
32486
+ types: [
32487
+ "boolean"
32488
+ ],
32489
+ description: "Render a leading checkbox column. Selection changes emit `selectEvent`.",
32490
+ default: false
32491
+ },
32492
+ selectEvent: {
32493
+ types: [
32494
+ "string"
32495
+ ],
32496
+ description: "Event emitted on selection change: UI:{selectEvent} with { ids, rows }.",
32497
+ kind: "event"
32498
+ },
32499
+ selectedIds: {
32500
+ types: [
32501
+ "array"
32502
+ ],
32503
+ description: "Currently-selected ids (controlled). Falls back to local state when omitted.",
32504
+ items: {
32505
+ types: [
32506
+ "string"
32507
+ ]
32508
+ }
32509
+ },
32510
+ sortEvent: {
32511
+ types: [
32512
+ "string"
32513
+ ],
32514
+ description: "Event emitted on sortable-header click: UI:{sortEvent} with { column, direction }.",
32515
+ kind: "event"
32516
+ },
32517
+ sortColumn: {
32518
+ types: [
32519
+ "string"
32520
+ ],
32521
+ description: "Current sort column (display hint for the active header arrow)."
32522
+ },
32523
+ sortDirection: {
32524
+ types: [
32525
+ "string"
32526
+ ],
32527
+ description: "Current sort direction (display hint).",
32528
+ enumValues: [
32529
+ "asc",
32530
+ "desc"
32531
+ ]
32532
+ },
32533
+ className: {
32534
+ types: [
32535
+ "string"
32536
+ ],
32537
+ description: "Additional CSS classes applied to the table root."
32538
+ },
32539
+ emptyMessage: {
32540
+ types: [
32541
+ "string"
32542
+ ],
32543
+ description: "Message shown when there are no rows."
32544
+ },
32545
+ isLoading: {
32546
+ types: [
32547
+ "boolean"
32548
+ ],
32549
+ description: "Loading state.",
32550
+ default: false
32551
+ },
32552
+ error: {
32553
+ types: [
32554
+ "object"
32555
+ ],
32556
+ description: "Error state.",
32557
+ default: null
32558
+ },
32559
+ groupBy: {
32560
+ types: [
32561
+ "string"
32562
+ ],
32563
+ description: "Group rows under section headers by a field value."
32564
+ },
32565
+ pageSize: {
32566
+ types: [
32567
+ "number"
32568
+ ],
32569
+ description: 'Max rows before a "Show More" button. Defaults to 0 (show all).',
32570
+ default: 0
32571
+ },
32572
+ children: {
32573
+ types: [
32574
+ "function"
32575
+ ],
32576
+ 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.",
32577
+ kind: "callback",
32578
+ callbackArgs: [
32579
+ {
32580
+ name: "item",
32581
+ type: "object"
32582
+ },
32583
+ {
32584
+ name: "index",
32585
+ type: "number"
32586
+ }
32587
+ ]
32588
+ },
32589
+ renderItem: {
32590
+ types: [
32591
+ "function"
32592
+ ],
32593
+ 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.',
32594
+ kind: "callback",
32595
+ callbackArgs: [
32596
+ {
32597
+ name: "item",
32598
+ type: "object"
32599
+ },
32600
+ {
32601
+ name: "index",
32602
+ type: "number"
32603
+ }
32604
+ ]
32605
+ },
32606
+ look: {
32607
+ types: [
32608
+ "string"
32609
+ ],
32610
+ description: "Layer 2 visual treatment \u2014 mirrors the data-list / entity-table look enum so authors share one knob name across row renderers.",
32611
+ enumValues: [
32612
+ "dense",
32613
+ "spacious",
32614
+ "striped",
32615
+ "borderless",
32616
+ "bordered"
32617
+ ],
32618
+ default: "dense"
32619
+ }
32620
+ }
32621
+ },
32091
32622
  heading: {
32092
32623
  type: "heading",
32093
32624
  category: "component",
@@ -33022,7 +33553,7 @@ var integrators_registry_default = {
33022
33553
  // src/component-mapping.json
33023
33554
  var component_mapping_default = {
33024
33555
  version: "1.0.0",
33025
- exportedAt: "2026-05-26T02:27:33.609Z",
33556
+ exportedAt: "2026-05-29T00:33:20.610Z",
33026
33557
  mappings: {
33027
33558
  "page-header": {
33028
33559
  component: "PageHeader",
@@ -34541,6 +35072,11 @@ var component_mapping_default = {
34541
35072
  importPath: "@/components/molecules/MarketingFooter",
34542
35073
  category: "component"
34543
35074
  },
35075
+ "table-view": {
35076
+ component: "TableView",
35077
+ importPath: "@/components/molecules/TableView",
35078
+ category: "display"
35079
+ },
34544
35080
  heading: {
34545
35081
  component: "Typography",
34546
35082
  importPath: "@/components/atoms/Typography",
@@ -34557,7 +35093,7 @@ var component_mapping_default = {
34557
35093
  // src/event-contracts.json
34558
35094
  var event_contracts_default = {
34559
35095
  version: "1.0.0",
34560
- exportedAt: "2026-05-26T02:27:33.609Z",
35096
+ exportedAt: "2026-05-29T00:33:20.610Z",
34561
35097
  contracts: {
34562
35098
  form: {
34563
35099
  emits: [