@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/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-03-08T11:32:49.899Z",
4
+ exportedAt: "2026-03-09T08:08:00.655Z",
5
5
  patterns: {
6
6
  "entity-table": {
7
7
  type: "entity-table",
@@ -3455,15 +3455,17 @@ var patterns_registry_default = {
3455
3455
  },
3456
3456
  icon: {
3457
3457
  types: [
3458
- "icon"
3458
+ "icon",
3459
+ "string"
3459
3460
  ],
3460
- description: "Left icon as Lucide icon component (convenience prop, renders with default size)"
3461
+ description: 'Left icon as Lucide icon component or string name (e.g. "plus", "trash")'
3461
3462
  },
3462
3463
  iconRight: {
3463
3464
  types: [
3464
- "icon"
3465
+ "icon",
3466
+ "string"
3465
3467
  ],
3466
- description: "Right icon as Lucide icon component (convenience prop)"
3468
+ description: "Right icon as Lucide icon component or string name"
3467
3469
  },
3468
3470
  action: {
3469
3471
  types: [
@@ -3513,6 +3515,12 @@ var patterns_registry_default = {
3513
3515
  "number"
3514
3516
  ],
3515
3517
  description: "Numeric count or amount to display in badge"
3518
+ },
3519
+ label: {
3520
+ types: [
3521
+ "string"
3522
+ ],
3523
+ description: "Badge label text (alternative to children for schema-driven rendering)"
3516
3524
  }
3517
3525
  }
3518
3526
  },
@@ -14020,6 +14028,152 @@ var patterns_registry_default = {
14020
14028
  }
14021
14029
  }
14022
14030
  },
14031
+ "data-grid": {
14032
+ type: "data-grid",
14033
+ category: "display",
14034
+ description: "DataGrid component",
14035
+ suggestedFor: [
14036
+ "data",
14037
+ "grid",
14038
+ "data grid"
14039
+ ],
14040
+ typicalSize: "medium",
14041
+ propsSchema: {
14042
+ entity: {
14043
+ types: [
14044
+ "unknown"
14045
+ ],
14046
+ description: "Entity data array"
14047
+ },
14048
+ fields: {
14049
+ types: [
14050
+ "unknown"
14051
+ ],
14052
+ description: "Field definitions for rendering each card"
14053
+ },
14054
+ columns: {
14055
+ types: [
14056
+ "unknown"
14057
+ ],
14058
+ description: "Alias for fields (compiler generates `columns` for field definitions)"
14059
+ },
14060
+ itemActions: {
14061
+ types: [
14062
+ "unknown"
14063
+ ],
14064
+ description: "Per-item action buttons"
14065
+ },
14066
+ cols: {
14067
+ types: [
14068
+ "number"
14069
+ ],
14070
+ description: "Number of columns (uses auto-fit if omitted)"
14071
+ },
14072
+ gap: {
14073
+ types: [
14074
+ "string"
14075
+ ],
14076
+ description: "Gap between cards"
14077
+ },
14078
+ minCardWidth: {
14079
+ types: [
14080
+ "number"
14081
+ ],
14082
+ description: "Minimum card width in pixels (used when cols is not set, default 280)"
14083
+ },
14084
+ className: {
14085
+ types: [
14086
+ "string"
14087
+ ],
14088
+ description: "Additional CSS classes"
14089
+ },
14090
+ isLoading: {
14091
+ types: [
14092
+ "boolean"
14093
+ ],
14094
+ description: "Loading state"
14095
+ },
14096
+ error: {
14097
+ types: [
14098
+ "error"
14099
+ ],
14100
+ description: "Error state"
14101
+ },
14102
+ imageField: {
14103
+ types: [
14104
+ "string"
14105
+ ],
14106
+ description: "Entity field name containing an image URL for card thumbnails"
14107
+ }
14108
+ }
14109
+ },
14110
+ "data-list": {
14111
+ type: "data-list",
14112
+ category: "display",
14113
+ description: "DataList component",
14114
+ suggestedFor: [
14115
+ "data",
14116
+ "list",
14117
+ "data list"
14118
+ ],
14119
+ typicalSize: "medium",
14120
+ propsSchema: {
14121
+ entity: {
14122
+ types: [
14123
+ "unknown"
14124
+ ],
14125
+ description: "Entity data array"
14126
+ },
14127
+ fields: {
14128
+ types: [
14129
+ "unknown"
14130
+ ],
14131
+ description: "Field definitions for rendering each row"
14132
+ },
14133
+ columns: {
14134
+ types: [
14135
+ "unknown"
14136
+ ],
14137
+ description: "Alias for fields (compiler may generate `columns` for field definitions)"
14138
+ },
14139
+ itemActions: {
14140
+ types: [
14141
+ "unknown"
14142
+ ],
14143
+ description: "Per-item action buttons"
14144
+ },
14145
+ gap: {
14146
+ types: [
14147
+ "string"
14148
+ ],
14149
+ description: "Gap between rows"
14150
+ },
14151
+ variant: {
14152
+ types: [
14153
+ "string"
14154
+ ],
14155
+ description: "Visual variant"
14156
+ },
14157
+ className: {
14158
+ types: [
14159
+ "string"
14160
+ ],
14161
+ description: "Additional CSS classes"
14162
+ },
14163
+ isLoading: {
14164
+ types: [
14165
+ "boolean"
14166
+ ],
14167
+ description: "Loading state"
14168
+ },
14169
+ error: {
14170
+ types: [
14171
+ "error"
14172
+ ],
14173
+ description: "Error state"
14174
+ }
14175
+ }
14176
+ },
14023
14177
  heading: {
14024
14178
  type: "heading",
14025
14179
  category: "component",
@@ -14836,7 +14990,7 @@ var integrators_registry_default = {
14836
14990
  // src/component-mapping.json
14837
14991
  var component_mapping_default = {
14838
14992
  version: "1.0.0",
14839
- exportedAt: "2026-03-08T11:32:49.899Z",
14993
+ exportedAt: "2026-03-09T08:08:00.655Z",
14840
14994
  mappings: {
14841
14995
  "page-header": {
14842
14996
  component: "PageHeader",
@@ -15816,6 +15970,16 @@ var component_mapping_default = {
15816
15970
  importPath: "@/components/molecules/GraphView",
15817
15971
  category: "component"
15818
15972
  },
15973
+ "data-grid": {
15974
+ component: "DataGrid",
15975
+ importPath: "@/components/molecules/DataGrid",
15976
+ category: "display"
15977
+ },
15978
+ "data-list": {
15979
+ component: "DataList",
15980
+ importPath: "@/components/molecules/DataList",
15981
+ category: "display"
15982
+ },
15819
15983
  "line-chart": {
15820
15984
  component: "LineChart",
15821
15985
  importPath: "@/components/molecules/LineChart",
@@ -15842,7 +16006,7 @@ var component_mapping_default = {
15842
16006
  // src/event-contracts.json
15843
16007
  var event_contracts_default = {
15844
16008
  version: "1.0.0",
15845
- exportedAt: "2026-03-08T11:32:49.899Z",
16009
+ exportedAt: "2026-03-09T08:08:00.655Z",
15846
16010
  contracts: {
15847
16011
  form: {
15848
16012
  emits: [