@almadar/patterns 2.2.0 → 2.3.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/component-mapping.json +11 -1
- package/dist/event-contracts.json +1 -1
- package/dist/index.d.ts +385 -7
- package/dist/index.js +171 -7
- package/dist/index.js.map +1 -1
- package/dist/patterns-registry.json +159 -5
- package/dist/registry.json +159 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-03-
|
|
3
|
+
"exportedAt": "2026-03-09T08:08:00.655Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -3454,15 +3454,17 @@
|
|
|
3454
3454
|
},
|
|
3455
3455
|
"icon": {
|
|
3456
3456
|
"types": [
|
|
3457
|
-
"icon"
|
|
3457
|
+
"icon",
|
|
3458
|
+
"string"
|
|
3458
3459
|
],
|
|
3459
|
-
"description": "Left icon as Lucide icon component
|
|
3460
|
+
"description": "Left icon as Lucide icon component or string name (e.g. \"plus\", \"trash\")"
|
|
3460
3461
|
},
|
|
3461
3462
|
"iconRight": {
|
|
3462
3463
|
"types": [
|
|
3463
|
-
"icon"
|
|
3464
|
+
"icon",
|
|
3465
|
+
"string"
|
|
3464
3466
|
],
|
|
3465
|
-
"description": "Right icon as Lucide icon component
|
|
3467
|
+
"description": "Right icon as Lucide icon component or string name"
|
|
3466
3468
|
},
|
|
3467
3469
|
"action": {
|
|
3468
3470
|
"types": [
|
|
@@ -3512,6 +3514,12 @@
|
|
|
3512
3514
|
"number"
|
|
3513
3515
|
],
|
|
3514
3516
|
"description": "Numeric count or amount to display in badge"
|
|
3517
|
+
},
|
|
3518
|
+
"label": {
|
|
3519
|
+
"types": [
|
|
3520
|
+
"string"
|
|
3521
|
+
],
|
|
3522
|
+
"description": "Badge label text (alternative to children for schema-driven rendering)"
|
|
3515
3523
|
}
|
|
3516
3524
|
}
|
|
3517
3525
|
},
|
|
@@ -14019,6 +14027,152 @@
|
|
|
14019
14027
|
}
|
|
14020
14028
|
}
|
|
14021
14029
|
},
|
|
14030
|
+
"data-grid": {
|
|
14031
|
+
"type": "data-grid",
|
|
14032
|
+
"category": "display",
|
|
14033
|
+
"description": "DataGrid component",
|
|
14034
|
+
"suggestedFor": [
|
|
14035
|
+
"data",
|
|
14036
|
+
"grid",
|
|
14037
|
+
"data grid"
|
|
14038
|
+
],
|
|
14039
|
+
"typicalSize": "medium",
|
|
14040
|
+
"propsSchema": {
|
|
14041
|
+
"entity": {
|
|
14042
|
+
"types": [
|
|
14043
|
+
"unknown"
|
|
14044
|
+
],
|
|
14045
|
+
"description": "Entity data array"
|
|
14046
|
+
},
|
|
14047
|
+
"fields": {
|
|
14048
|
+
"types": [
|
|
14049
|
+
"unknown"
|
|
14050
|
+
],
|
|
14051
|
+
"description": "Field definitions for rendering each card"
|
|
14052
|
+
},
|
|
14053
|
+
"columns": {
|
|
14054
|
+
"types": [
|
|
14055
|
+
"unknown"
|
|
14056
|
+
],
|
|
14057
|
+
"description": "Alias for fields (compiler generates `columns` for field definitions)"
|
|
14058
|
+
},
|
|
14059
|
+
"itemActions": {
|
|
14060
|
+
"types": [
|
|
14061
|
+
"unknown"
|
|
14062
|
+
],
|
|
14063
|
+
"description": "Per-item action buttons"
|
|
14064
|
+
},
|
|
14065
|
+
"cols": {
|
|
14066
|
+
"types": [
|
|
14067
|
+
"number"
|
|
14068
|
+
],
|
|
14069
|
+
"description": "Number of columns (uses auto-fit if omitted)"
|
|
14070
|
+
},
|
|
14071
|
+
"gap": {
|
|
14072
|
+
"types": [
|
|
14073
|
+
"string"
|
|
14074
|
+
],
|
|
14075
|
+
"description": "Gap between cards"
|
|
14076
|
+
},
|
|
14077
|
+
"minCardWidth": {
|
|
14078
|
+
"types": [
|
|
14079
|
+
"number"
|
|
14080
|
+
],
|
|
14081
|
+
"description": "Minimum card width in pixels (used when cols is not set, default 280)"
|
|
14082
|
+
},
|
|
14083
|
+
"className": {
|
|
14084
|
+
"types": [
|
|
14085
|
+
"string"
|
|
14086
|
+
],
|
|
14087
|
+
"description": "Additional CSS classes"
|
|
14088
|
+
},
|
|
14089
|
+
"isLoading": {
|
|
14090
|
+
"types": [
|
|
14091
|
+
"boolean"
|
|
14092
|
+
],
|
|
14093
|
+
"description": "Loading state"
|
|
14094
|
+
},
|
|
14095
|
+
"error": {
|
|
14096
|
+
"types": [
|
|
14097
|
+
"error"
|
|
14098
|
+
],
|
|
14099
|
+
"description": "Error state"
|
|
14100
|
+
},
|
|
14101
|
+
"imageField": {
|
|
14102
|
+
"types": [
|
|
14103
|
+
"string"
|
|
14104
|
+
],
|
|
14105
|
+
"description": "Entity field name containing an image URL for card thumbnails"
|
|
14106
|
+
}
|
|
14107
|
+
}
|
|
14108
|
+
},
|
|
14109
|
+
"data-list": {
|
|
14110
|
+
"type": "data-list",
|
|
14111
|
+
"category": "display",
|
|
14112
|
+
"description": "DataList component",
|
|
14113
|
+
"suggestedFor": [
|
|
14114
|
+
"data",
|
|
14115
|
+
"list",
|
|
14116
|
+
"data list"
|
|
14117
|
+
],
|
|
14118
|
+
"typicalSize": "medium",
|
|
14119
|
+
"propsSchema": {
|
|
14120
|
+
"entity": {
|
|
14121
|
+
"types": [
|
|
14122
|
+
"unknown"
|
|
14123
|
+
],
|
|
14124
|
+
"description": "Entity data array"
|
|
14125
|
+
},
|
|
14126
|
+
"fields": {
|
|
14127
|
+
"types": [
|
|
14128
|
+
"unknown"
|
|
14129
|
+
],
|
|
14130
|
+
"description": "Field definitions for rendering each row"
|
|
14131
|
+
},
|
|
14132
|
+
"columns": {
|
|
14133
|
+
"types": [
|
|
14134
|
+
"unknown"
|
|
14135
|
+
],
|
|
14136
|
+
"description": "Alias for fields (compiler may generate `columns` for field definitions)"
|
|
14137
|
+
},
|
|
14138
|
+
"itemActions": {
|
|
14139
|
+
"types": [
|
|
14140
|
+
"unknown"
|
|
14141
|
+
],
|
|
14142
|
+
"description": "Per-item action buttons"
|
|
14143
|
+
},
|
|
14144
|
+
"gap": {
|
|
14145
|
+
"types": [
|
|
14146
|
+
"string"
|
|
14147
|
+
],
|
|
14148
|
+
"description": "Gap between rows"
|
|
14149
|
+
},
|
|
14150
|
+
"variant": {
|
|
14151
|
+
"types": [
|
|
14152
|
+
"string"
|
|
14153
|
+
],
|
|
14154
|
+
"description": "Visual variant"
|
|
14155
|
+
},
|
|
14156
|
+
"className": {
|
|
14157
|
+
"types": [
|
|
14158
|
+
"string"
|
|
14159
|
+
],
|
|
14160
|
+
"description": "Additional CSS classes"
|
|
14161
|
+
},
|
|
14162
|
+
"isLoading": {
|
|
14163
|
+
"types": [
|
|
14164
|
+
"boolean"
|
|
14165
|
+
],
|
|
14166
|
+
"description": "Loading state"
|
|
14167
|
+
},
|
|
14168
|
+
"error": {
|
|
14169
|
+
"types": [
|
|
14170
|
+
"error"
|
|
14171
|
+
],
|
|
14172
|
+
"description": "Error state"
|
|
14173
|
+
}
|
|
14174
|
+
}
|
|
14175
|
+
},
|
|
14022
14176
|
"heading": {
|
|
14023
14177
|
"type": "heading",
|
|
14024
14178
|
"category": "component",
|
package/dist/registry.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"exportedAt": "2026-03-
|
|
3
|
+
"exportedAt": "2026-03-09T08:08:00.655Z",
|
|
4
4
|
"patterns": {
|
|
5
5
|
"entity-table": {
|
|
6
6
|
"type": "entity-table",
|
|
@@ -3454,15 +3454,17 @@
|
|
|
3454
3454
|
},
|
|
3455
3455
|
"icon": {
|
|
3456
3456
|
"types": [
|
|
3457
|
-
"icon"
|
|
3457
|
+
"icon",
|
|
3458
|
+
"string"
|
|
3458
3459
|
],
|
|
3459
|
-
"description": "Left icon as Lucide icon component
|
|
3460
|
+
"description": "Left icon as Lucide icon component or string name (e.g. \"plus\", \"trash\")"
|
|
3460
3461
|
},
|
|
3461
3462
|
"iconRight": {
|
|
3462
3463
|
"types": [
|
|
3463
|
-
"icon"
|
|
3464
|
+
"icon",
|
|
3465
|
+
"string"
|
|
3464
3466
|
],
|
|
3465
|
-
"description": "Right icon as Lucide icon component
|
|
3467
|
+
"description": "Right icon as Lucide icon component or string name"
|
|
3466
3468
|
},
|
|
3467
3469
|
"action": {
|
|
3468
3470
|
"types": [
|
|
@@ -3512,6 +3514,12 @@
|
|
|
3512
3514
|
"number"
|
|
3513
3515
|
],
|
|
3514
3516
|
"description": "Numeric count or amount to display in badge"
|
|
3517
|
+
},
|
|
3518
|
+
"label": {
|
|
3519
|
+
"types": [
|
|
3520
|
+
"string"
|
|
3521
|
+
],
|
|
3522
|
+
"description": "Badge label text (alternative to children for schema-driven rendering)"
|
|
3515
3523
|
}
|
|
3516
3524
|
}
|
|
3517
3525
|
},
|
|
@@ -14019,6 +14027,152 @@
|
|
|
14019
14027
|
}
|
|
14020
14028
|
}
|
|
14021
14029
|
},
|
|
14030
|
+
"data-grid": {
|
|
14031
|
+
"type": "data-grid",
|
|
14032
|
+
"category": "display",
|
|
14033
|
+
"description": "DataGrid component",
|
|
14034
|
+
"suggestedFor": [
|
|
14035
|
+
"data",
|
|
14036
|
+
"grid",
|
|
14037
|
+
"data grid"
|
|
14038
|
+
],
|
|
14039
|
+
"typicalSize": "medium",
|
|
14040
|
+
"propsSchema": {
|
|
14041
|
+
"entity": {
|
|
14042
|
+
"types": [
|
|
14043
|
+
"unknown"
|
|
14044
|
+
],
|
|
14045
|
+
"description": "Entity data array"
|
|
14046
|
+
},
|
|
14047
|
+
"fields": {
|
|
14048
|
+
"types": [
|
|
14049
|
+
"unknown"
|
|
14050
|
+
],
|
|
14051
|
+
"description": "Field definitions for rendering each card"
|
|
14052
|
+
},
|
|
14053
|
+
"columns": {
|
|
14054
|
+
"types": [
|
|
14055
|
+
"unknown"
|
|
14056
|
+
],
|
|
14057
|
+
"description": "Alias for fields (compiler generates `columns` for field definitions)"
|
|
14058
|
+
},
|
|
14059
|
+
"itemActions": {
|
|
14060
|
+
"types": [
|
|
14061
|
+
"unknown"
|
|
14062
|
+
],
|
|
14063
|
+
"description": "Per-item action buttons"
|
|
14064
|
+
},
|
|
14065
|
+
"cols": {
|
|
14066
|
+
"types": [
|
|
14067
|
+
"number"
|
|
14068
|
+
],
|
|
14069
|
+
"description": "Number of columns (uses auto-fit if omitted)"
|
|
14070
|
+
},
|
|
14071
|
+
"gap": {
|
|
14072
|
+
"types": [
|
|
14073
|
+
"string"
|
|
14074
|
+
],
|
|
14075
|
+
"description": "Gap between cards"
|
|
14076
|
+
},
|
|
14077
|
+
"minCardWidth": {
|
|
14078
|
+
"types": [
|
|
14079
|
+
"number"
|
|
14080
|
+
],
|
|
14081
|
+
"description": "Minimum card width in pixels (used when cols is not set, default 280)"
|
|
14082
|
+
},
|
|
14083
|
+
"className": {
|
|
14084
|
+
"types": [
|
|
14085
|
+
"string"
|
|
14086
|
+
],
|
|
14087
|
+
"description": "Additional CSS classes"
|
|
14088
|
+
},
|
|
14089
|
+
"isLoading": {
|
|
14090
|
+
"types": [
|
|
14091
|
+
"boolean"
|
|
14092
|
+
],
|
|
14093
|
+
"description": "Loading state"
|
|
14094
|
+
},
|
|
14095
|
+
"error": {
|
|
14096
|
+
"types": [
|
|
14097
|
+
"error"
|
|
14098
|
+
],
|
|
14099
|
+
"description": "Error state"
|
|
14100
|
+
},
|
|
14101
|
+
"imageField": {
|
|
14102
|
+
"types": [
|
|
14103
|
+
"string"
|
|
14104
|
+
],
|
|
14105
|
+
"description": "Entity field name containing an image URL for card thumbnails"
|
|
14106
|
+
}
|
|
14107
|
+
}
|
|
14108
|
+
},
|
|
14109
|
+
"data-list": {
|
|
14110
|
+
"type": "data-list",
|
|
14111
|
+
"category": "display",
|
|
14112
|
+
"description": "DataList component",
|
|
14113
|
+
"suggestedFor": [
|
|
14114
|
+
"data",
|
|
14115
|
+
"list",
|
|
14116
|
+
"data list"
|
|
14117
|
+
],
|
|
14118
|
+
"typicalSize": "medium",
|
|
14119
|
+
"propsSchema": {
|
|
14120
|
+
"entity": {
|
|
14121
|
+
"types": [
|
|
14122
|
+
"unknown"
|
|
14123
|
+
],
|
|
14124
|
+
"description": "Entity data array"
|
|
14125
|
+
},
|
|
14126
|
+
"fields": {
|
|
14127
|
+
"types": [
|
|
14128
|
+
"unknown"
|
|
14129
|
+
],
|
|
14130
|
+
"description": "Field definitions for rendering each row"
|
|
14131
|
+
},
|
|
14132
|
+
"columns": {
|
|
14133
|
+
"types": [
|
|
14134
|
+
"unknown"
|
|
14135
|
+
],
|
|
14136
|
+
"description": "Alias for fields (compiler may generate `columns` for field definitions)"
|
|
14137
|
+
},
|
|
14138
|
+
"itemActions": {
|
|
14139
|
+
"types": [
|
|
14140
|
+
"unknown"
|
|
14141
|
+
],
|
|
14142
|
+
"description": "Per-item action buttons"
|
|
14143
|
+
},
|
|
14144
|
+
"gap": {
|
|
14145
|
+
"types": [
|
|
14146
|
+
"string"
|
|
14147
|
+
],
|
|
14148
|
+
"description": "Gap between rows"
|
|
14149
|
+
},
|
|
14150
|
+
"variant": {
|
|
14151
|
+
"types": [
|
|
14152
|
+
"string"
|
|
14153
|
+
],
|
|
14154
|
+
"description": "Visual variant"
|
|
14155
|
+
},
|
|
14156
|
+
"className": {
|
|
14157
|
+
"types": [
|
|
14158
|
+
"string"
|
|
14159
|
+
],
|
|
14160
|
+
"description": "Additional CSS classes"
|
|
14161
|
+
},
|
|
14162
|
+
"isLoading": {
|
|
14163
|
+
"types": [
|
|
14164
|
+
"boolean"
|
|
14165
|
+
],
|
|
14166
|
+
"description": "Loading state"
|
|
14167
|
+
},
|
|
14168
|
+
"error": {
|
|
14169
|
+
"types": [
|
|
14170
|
+
"error"
|
|
14171
|
+
],
|
|
14172
|
+
"description": "Error state"
|
|
14173
|
+
}
|
|
14174
|
+
}
|
|
14175
|
+
},
|
|
14022
14176
|
"heading": {
|
|
14023
14177
|
"type": "heading",
|
|
14024
14178
|
"category": "component",
|