@almadar/patterns 2.30.5 → 2.30.7

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-19T14:17:44.107Z",
3
+ "exportedAt": "2026-05-22T00:42:28.331Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -4903,6 +4903,20 @@
4903
4903
  "node"
4904
4904
  ],
4905
4905
  "description": "Icon name (Lucide icon string) or React node"
4906
+ },
4907
+ "onRemove": {
4908
+ "types": [
4909
+ "function"
4910
+ ],
4911
+ "description": "When set, renders a small X button on the right of the badge that invokes this handler — turns the badge into a removable chip. Used by the TagInput molecule and other \"list of removable values\" surfaces.",
4912
+ "kind": "callback",
4913
+ "callbackArgs": []
4914
+ },
4915
+ "removeLabel": {
4916
+ "types": [
4917
+ "string"
4918
+ ],
4919
+ "description": "Accessible label for the remove button. Defaults to \"Remove\"."
4906
4920
  }
4907
4921
  }
4908
4922
  },
@@ -30225,6 +30239,188 @@
30225
30239
  }
30226
30240
  }
30227
30241
  },
30242
+ "tag-input": {
30243
+ "type": "tag-input",
30244
+ "category": "form",
30245
+ "description": "TagInput component",
30246
+ "suggestedFor": [
30247
+ "tag",
30248
+ "input",
30249
+ "tag input"
30250
+ ],
30251
+ "typicalSize": "medium",
30252
+ "propsSchema": {
30253
+ "value": {
30254
+ "types": [
30255
+ "array"
30256
+ ],
30257
+ "description": "Current list of tags.",
30258
+ "required": true,
30259
+ "items": {
30260
+ "types": [
30261
+ "string"
30262
+ ]
30263
+ }
30264
+ },
30265
+ "onChange": {
30266
+ "types": [
30267
+ "function"
30268
+ ],
30269
+ "description": "Direct callback emitted on every change. Stays as the Storybook / non-trait contract; trait-driven schemas should prefer the bus events below.",
30270
+ "kind": "callback",
30271
+ "callbackArgs": [
30272
+ {
30273
+ "name": "next",
30274
+ "type": "array"
30275
+ }
30276
+ ]
30277
+ },
30278
+ "placeholder": {
30279
+ "types": [
30280
+ "string"
30281
+ ],
30282
+ "description": "Placeholder for the entry input. Default: `\"Type and press Enter…\"`."
30283
+ },
30284
+ "disabled": {
30285
+ "types": [
30286
+ "boolean"
30287
+ ],
30288
+ "description": "Disable add + remove interactions.",
30289
+ "default": false
30290
+ },
30291
+ "variant": {
30292
+ "types": [
30293
+ "string"
30294
+ ],
30295
+ "description": "Variant applied to each chip Badge. Default: `'default'`.",
30296
+ "enumValues": [
30297
+ "default",
30298
+ "primary",
30299
+ "secondary",
30300
+ "success",
30301
+ "warning",
30302
+ "danger",
30303
+ "error",
30304
+ "info",
30305
+ "neutral"
30306
+ ],
30307
+ "default": "default"
30308
+ },
30309
+ "unique": {
30310
+ "types": [
30311
+ "boolean"
30312
+ ],
30313
+ "description": "Suppress duplicate entries. Default: `true`.",
30314
+ "default": true
30315
+ },
30316
+ "helperText": {
30317
+ "types": [
30318
+ "string"
30319
+ ],
30320
+ "description": "Helper text rendered under the input."
30321
+ },
30322
+ "className": {
30323
+ "types": [
30324
+ "string"
30325
+ ],
30326
+ "description": "Additional CSS classes applied to the outer container."
30327
+ },
30328
+ "addEvent": {
30329
+ "types": [
30330
+ "string"
30331
+ ],
30332
+ "description": "Event emitted when a tag is added: `UI:{addEvent}` with payload `{ tag: string, value: string[] }`.",
30333
+ "kind": "event"
30334
+ },
30335
+ "removeEvent": {
30336
+ "types": [
30337
+ "string"
30338
+ ],
30339
+ "description": "Event emitted when a tag is removed: `UI:{removeEvent}` with payload `{ tag: string, index: number, value: string[] }`.",
30340
+ "kind": "event"
30341
+ }
30342
+ }
30343
+ },
30344
+ "marketing-footer": {
30345
+ "type": "marketing-footer",
30346
+ "category": "component",
30347
+ "description": "MarketingFooter component",
30348
+ "suggestedFor": [
30349
+ "marketing",
30350
+ "footer",
30351
+ "marketing footer"
30352
+ ],
30353
+ "typicalSize": "medium",
30354
+ "propsSchema": {
30355
+ "columns": {
30356
+ "types": [
30357
+ "array"
30358
+ ],
30359
+ "description": "columns prop",
30360
+ "required": true,
30361
+ "items": {
30362
+ "types": [
30363
+ "object"
30364
+ ],
30365
+ "properties": {
30366
+ "title": {
30367
+ "types": [
30368
+ "string"
30369
+ ]
30370
+ },
30371
+ "items": {
30372
+ "types": [
30373
+ "array"
30374
+ ],
30375
+ "items": {
30376
+ "types": [
30377
+ "object"
30378
+ ],
30379
+ "properties": {
30380
+ "label": {
30381
+ "types": [
30382
+ "string"
30383
+ ]
30384
+ },
30385
+ "href": {
30386
+ "types": [
30387
+ "string"
30388
+ ]
30389
+ }
30390
+ },
30391
+ "required": [
30392
+ "label",
30393
+ "href"
30394
+ ]
30395
+ }
30396
+ }
30397
+ },
30398
+ "required": [
30399
+ "title",
30400
+ "items"
30401
+ ]
30402
+ }
30403
+ },
30404
+ "copyright": {
30405
+ "types": [
30406
+ "string"
30407
+ ],
30408
+ "description": "copyright prop"
30409
+ },
30410
+ "logo": {
30411
+ "types": [
30412
+ "object"
30413
+ ],
30414
+ "description": "logo prop"
30415
+ },
30416
+ "className": {
30417
+ "types": [
30418
+ "string"
30419
+ ],
30420
+ "description": "className prop"
30421
+ }
30422
+ }
30423
+ },
30228
30424
  "heading": {
30229
30425
  "type": "heading",
30230
30426
  "category": "component",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-05-19T14:17:44.107Z",
3
+ "exportedAt": "2026-05-22T00:42:28.331Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -4903,6 +4903,20 @@
4903
4903
  "node"
4904
4904
  ],
4905
4905
  "description": "Icon name (Lucide icon string) or React node"
4906
+ },
4907
+ "onRemove": {
4908
+ "types": [
4909
+ "function"
4910
+ ],
4911
+ "description": "When set, renders a small X button on the right of the badge that invokes this handler — turns the badge into a removable chip. Used by the TagInput molecule and other \"list of removable values\" surfaces.",
4912
+ "kind": "callback",
4913
+ "callbackArgs": []
4914
+ },
4915
+ "removeLabel": {
4916
+ "types": [
4917
+ "string"
4918
+ ],
4919
+ "description": "Accessible label for the remove button. Defaults to \"Remove\"."
4906
4920
  }
4907
4921
  }
4908
4922
  },
@@ -30225,6 +30239,188 @@
30225
30239
  }
30226
30240
  }
30227
30241
  },
30242
+ "tag-input": {
30243
+ "type": "tag-input",
30244
+ "category": "form",
30245
+ "description": "TagInput component",
30246
+ "suggestedFor": [
30247
+ "tag",
30248
+ "input",
30249
+ "tag input"
30250
+ ],
30251
+ "typicalSize": "medium",
30252
+ "propsSchema": {
30253
+ "value": {
30254
+ "types": [
30255
+ "array"
30256
+ ],
30257
+ "description": "Current list of tags.",
30258
+ "required": true,
30259
+ "items": {
30260
+ "types": [
30261
+ "string"
30262
+ ]
30263
+ }
30264
+ },
30265
+ "onChange": {
30266
+ "types": [
30267
+ "function"
30268
+ ],
30269
+ "description": "Direct callback emitted on every change. Stays as the Storybook / non-trait contract; trait-driven schemas should prefer the bus events below.",
30270
+ "kind": "callback",
30271
+ "callbackArgs": [
30272
+ {
30273
+ "name": "next",
30274
+ "type": "array"
30275
+ }
30276
+ ]
30277
+ },
30278
+ "placeholder": {
30279
+ "types": [
30280
+ "string"
30281
+ ],
30282
+ "description": "Placeholder for the entry input. Default: `\"Type and press Enter…\"`."
30283
+ },
30284
+ "disabled": {
30285
+ "types": [
30286
+ "boolean"
30287
+ ],
30288
+ "description": "Disable add + remove interactions.",
30289
+ "default": false
30290
+ },
30291
+ "variant": {
30292
+ "types": [
30293
+ "string"
30294
+ ],
30295
+ "description": "Variant applied to each chip Badge. Default: `'default'`.",
30296
+ "enumValues": [
30297
+ "default",
30298
+ "primary",
30299
+ "secondary",
30300
+ "success",
30301
+ "warning",
30302
+ "danger",
30303
+ "error",
30304
+ "info",
30305
+ "neutral"
30306
+ ],
30307
+ "default": "default"
30308
+ },
30309
+ "unique": {
30310
+ "types": [
30311
+ "boolean"
30312
+ ],
30313
+ "description": "Suppress duplicate entries. Default: `true`.",
30314
+ "default": true
30315
+ },
30316
+ "helperText": {
30317
+ "types": [
30318
+ "string"
30319
+ ],
30320
+ "description": "Helper text rendered under the input."
30321
+ },
30322
+ "className": {
30323
+ "types": [
30324
+ "string"
30325
+ ],
30326
+ "description": "Additional CSS classes applied to the outer container."
30327
+ },
30328
+ "addEvent": {
30329
+ "types": [
30330
+ "string"
30331
+ ],
30332
+ "description": "Event emitted when a tag is added: `UI:{addEvent}` with payload `{ tag: string, value: string[] }`.",
30333
+ "kind": "event"
30334
+ },
30335
+ "removeEvent": {
30336
+ "types": [
30337
+ "string"
30338
+ ],
30339
+ "description": "Event emitted when a tag is removed: `UI:{removeEvent}` with payload `{ tag: string, index: number, value: string[] }`.",
30340
+ "kind": "event"
30341
+ }
30342
+ }
30343
+ },
30344
+ "marketing-footer": {
30345
+ "type": "marketing-footer",
30346
+ "category": "component",
30347
+ "description": "MarketingFooter component",
30348
+ "suggestedFor": [
30349
+ "marketing",
30350
+ "footer",
30351
+ "marketing footer"
30352
+ ],
30353
+ "typicalSize": "medium",
30354
+ "propsSchema": {
30355
+ "columns": {
30356
+ "types": [
30357
+ "array"
30358
+ ],
30359
+ "description": "columns prop",
30360
+ "required": true,
30361
+ "items": {
30362
+ "types": [
30363
+ "object"
30364
+ ],
30365
+ "properties": {
30366
+ "title": {
30367
+ "types": [
30368
+ "string"
30369
+ ]
30370
+ },
30371
+ "items": {
30372
+ "types": [
30373
+ "array"
30374
+ ],
30375
+ "items": {
30376
+ "types": [
30377
+ "object"
30378
+ ],
30379
+ "properties": {
30380
+ "label": {
30381
+ "types": [
30382
+ "string"
30383
+ ]
30384
+ },
30385
+ "href": {
30386
+ "types": [
30387
+ "string"
30388
+ ]
30389
+ }
30390
+ },
30391
+ "required": [
30392
+ "label",
30393
+ "href"
30394
+ ]
30395
+ }
30396
+ }
30397
+ },
30398
+ "required": [
30399
+ "title",
30400
+ "items"
30401
+ ]
30402
+ }
30403
+ },
30404
+ "copyright": {
30405
+ "types": [
30406
+ "string"
30407
+ ],
30408
+ "description": "copyright prop"
30409
+ },
30410
+ "logo": {
30411
+ "types": [
30412
+ "object"
30413
+ ],
30414
+ "description": "logo prop"
30415
+ },
30416
+ "className": {
30417
+ "types": [
30418
+ "string"
30419
+ ],
30420
+ "description": "className prop"
30421
+ }
30422
+ }
30423
+ },
30228
30424
  "heading": {
30229
30425
  "type": "heading",
30230
30426
  "category": "component",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/patterns",
3
- "version": "2.30.5",
3
+ "version": "2.30.7",
4
4
  "description": "Pattern registry and component mappings for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",