@slipstream-ui/core 0.11.1 → 0.11.2

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.
Files changed (208) hide show
  1. package/dist/index.d.mts +21 -0
  2. package/dist/index.d.ts +21 -0
  3. package/dist/index.js +17 -4
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +17 -4
  6. package/dist/index.mjs.map +1 -1
  7. package/dist/manifests/accordion.manifest.json +1 -1
  8. package/dist/manifests/alert.manifest.json +1 -1
  9. package/dist/manifests/announcement-bar.manifest.json +1 -1
  10. package/dist/manifests/app-shell.manifest.json +1 -1
  11. package/dist/manifests/applied-filters.manifest.json +1 -1
  12. package/dist/manifests/article-card.manifest.json +1 -1
  13. package/dist/manifests/auth-layout.manifest.json +1 -1
  14. package/dist/manifests/autocomplete.manifest.json +1 -1
  15. package/dist/manifests/avatar.manifest.json +1 -1
  16. package/dist/manifests/badge.manifest.json +1 -1
  17. package/dist/manifests/block.manifest.json +1 -1
  18. package/dist/manifests/bottom-nav.manifest.json +1 -1
  19. package/dist/manifests/breadcrumb.manifest.json +1 -1
  20. package/dist/manifests/button-group.manifest.json +1 -1
  21. package/dist/manifests/button.manifest.json +1 -1
  22. package/dist/manifests/calendar.manifest.json +1 -1
  23. package/dist/manifests/card.manifest.json +1 -1
  24. package/dist/manifests/checkbox.manifest.json +1 -1
  25. package/dist/manifests/comparison-table.manifest.json +1 -1
  26. package/dist/manifests/confirm-dialog.manifest.json +1 -1
  27. package/dist/manifests/contact-strip.manifest.json +1 -1
  28. package/dist/manifests/container.manifest.json +1 -1
  29. package/dist/manifests/cta-section.manifest.json +1 -1
  30. package/dist/manifests/data-table.manifest.json +1 -1
  31. package/dist/manifests/date-picker-popover.manifest.json +1 -1
  32. package/dist/manifests/date-picker.manifest.json +1 -1
  33. package/dist/manifests/date-range-picker.manifest.json +1 -1
  34. package/dist/manifests/deal-card.manifest.json +1 -1
  35. package/dist/manifests/dialog.manifest.json +1 -1
  36. package/dist/manifests/document-card.manifest.json +1 -1
  37. package/dist/manifests/drawer.manifest.json +1 -1
  38. package/dist/manifests/empty-state.manifest.json +1 -1
  39. package/dist/manifests/entity-card.manifest.json +9 -3
  40. package/dist/manifests/feature-grid.manifest.json +1 -1
  41. package/dist/manifests/feature-row.manifest.json +1 -1
  42. package/dist/manifests/fieldset.manifest.json +1 -1
  43. package/dist/manifests/file-upload.manifest.json +1 -1
  44. package/dist/manifests/filter-bar.manifest.json +1 -1
  45. package/dist/manifests/filter-chips.manifest.json +1 -1
  46. package/dist/manifests/filter-panel.manifest.json +1 -1
  47. package/dist/manifests/flex.manifest.json +1 -1
  48. package/dist/manifests/form-field.manifest.json +1 -1
  49. package/dist/manifests/form-layout.manifest.json +1 -1
  50. package/dist/manifests/form.manifest.json +1 -1
  51. package/dist/manifests/grid.manifest.json +1 -1
  52. package/dist/manifests/heading.manifest.json +1 -1
  53. package/dist/manifests/hero.manifest.json +1 -1
  54. package/dist/manifests/image.manifest.json +1 -1
  55. package/dist/manifests/input-group.manifest.json +1 -1
  56. package/dist/manifests/input.manifest.json +1 -1
  57. package/dist/manifests/label.manifest.json +1 -1
  58. package/dist/manifests/link-tabs.manifest.json +1 -1
  59. package/dist/manifests/link.manifest.json +1 -1
  60. package/dist/manifests/list.manifest.json +1 -1
  61. package/dist/manifests/load-more.manifest.json +1 -1
  62. package/dist/manifests/logo-cloud.manifest.json +1 -1
  63. package/dist/manifests/menu.manifest.json +1 -1
  64. package/dist/manifests/metric-card.manifest.json +1 -1
  65. package/dist/manifests/multi-select.manifest.json +1 -1
  66. package/dist/manifests/newsletter.manifest.json +1 -1
  67. package/dist/manifests/page-header.manifest.json +1 -1
  68. package/dist/manifests/pagination.manifest.json +1 -1
  69. package/dist/manifests/password-input.manifest.json +1 -1
  70. package/dist/manifests/popover.manifest.json +1 -1
  71. package/dist/manifests/process-steps.manifest.json +1 -1
  72. package/dist/manifests/progress.manifest.json +1 -1
  73. package/dist/manifests/prose.manifest.json +1 -1
  74. package/dist/manifests/radio.manifest.json +1 -1
  75. package/dist/manifests/range-slider.manifest.json +1 -1
  76. package/dist/manifests/search.manifest.json +1 -1
  77. package/dist/manifests/section-heading.manifest.json +1 -1
  78. package/dist/manifests/section.manifest.json +1 -1
  79. package/dist/manifests/segmented-control.manifest.json +1 -1
  80. package/dist/manifests/select-menu.manifest.json +1 -1
  81. package/dist/manifests/select.manifest.json +1 -1
  82. package/dist/manifests/separator.manifest.json +1 -1
  83. package/dist/manifests/site-footer.manifest.json +1 -1
  84. package/dist/manifests/site-header.manifest.json +1 -1
  85. package/dist/manifests/skeleton.manifest.json +1 -1
  86. package/dist/manifests/spinner.manifest.json +1 -1
  87. package/dist/manifests/stat-band.manifest.json +1 -1
  88. package/dist/manifests/stepper.manifest.json +1 -1
  89. package/dist/manifests/switch.manifest.json +1 -1
  90. package/dist/manifests/table-card.manifest.json +1 -1
  91. package/dist/manifests/table-of-contents.manifest.json +1 -1
  92. package/dist/manifests/table.manifest.json +1 -1
  93. package/dist/manifests/tabs.manifest.json +1 -1
  94. package/dist/manifests/testimonial.manifest.json +1 -1
  95. package/dist/manifests/text.manifest.json +1 -1
  96. package/dist/manifests/textarea.manifest.json +1 -1
  97. package/dist/manifests/theme-toggle.manifest.json +1 -1
  98. package/dist/manifests/time-picker.manifest.json +1 -1
  99. package/dist/manifests/timeline.manifest.json +1 -1
  100. package/dist/manifests/toast.manifest.json +1 -1
  101. package/dist/manifests/tombstone-card.manifest.json +1 -1
  102. package/dist/manifests/tooltip.manifest.json +1 -1
  103. package/dist/src/components/entity-card/EntityCard.d.ts +21 -0
  104. package/dist/src/components/entity-card/EntityCard.js +17 -4
  105. package/dist/src/components/entity-card/EntityCard.js.map +1 -1
  106. package/dist/src/components/entity-card/EntityCard.mjs +17 -4
  107. package/dist/src/components/entity-card/EntityCard.mjs.map +1 -1
  108. package/dist/styles-full.css +1 -1
  109. package/dist/styles.css +1 -1
  110. package/package.json +3 -3
  111. package/src/components/entity-card/EntityCard.test.tsx +27 -0
  112. package/src/components/entity-card/EntityCard.tsx +22 -6
  113. package/src/manifests/accordion.manifest.json +1 -1
  114. package/src/manifests/alert.manifest.json +1 -1
  115. package/src/manifests/announcement-bar.manifest.json +1 -1
  116. package/src/manifests/app-shell.manifest.json +1 -1
  117. package/src/manifests/applied-filters.manifest.json +1 -1
  118. package/src/manifests/article-card.manifest.json +1 -1
  119. package/src/manifests/auth-layout.manifest.json +1 -1
  120. package/src/manifests/autocomplete.manifest.json +1 -1
  121. package/src/manifests/avatar.manifest.json +1 -1
  122. package/src/manifests/badge.manifest.json +1 -1
  123. package/src/manifests/block.manifest.json +1 -1
  124. package/src/manifests/bottom-nav.manifest.json +1 -1
  125. package/src/manifests/breadcrumb.manifest.json +1 -1
  126. package/src/manifests/button-group.manifest.json +1 -1
  127. package/src/manifests/button.manifest.json +1 -1
  128. package/src/manifests/calendar.manifest.json +1 -1
  129. package/src/manifests/card.manifest.json +1 -1
  130. package/src/manifests/checkbox.manifest.json +1 -1
  131. package/src/manifests/comparison-table.manifest.json +1 -1
  132. package/src/manifests/confirm-dialog.manifest.json +1 -1
  133. package/src/manifests/contact-strip.manifest.json +1 -1
  134. package/src/manifests/container.manifest.json +1 -1
  135. package/src/manifests/cta-section.manifest.json +1 -1
  136. package/src/manifests/data-table.manifest.json +1 -1
  137. package/src/manifests/date-picker-popover.manifest.json +1 -1
  138. package/src/manifests/date-picker.manifest.json +1 -1
  139. package/src/manifests/date-range-picker.manifest.json +1 -1
  140. package/src/manifests/deal-card.manifest.json +1 -1
  141. package/src/manifests/dialog.manifest.json +1 -1
  142. package/src/manifests/document-card.manifest.json +1 -1
  143. package/src/manifests/drawer.manifest.json +1 -1
  144. package/src/manifests/empty-state.manifest.json +1 -1
  145. package/src/manifests/entity-card.manifest.json +9 -3
  146. package/src/manifests/feature-grid.manifest.json +1 -1
  147. package/src/manifests/feature-row.manifest.json +1 -1
  148. package/src/manifests/fieldset.manifest.json +1 -1
  149. package/src/manifests/file-upload.manifest.json +1 -1
  150. package/src/manifests/filter-bar.manifest.json +1 -1
  151. package/src/manifests/filter-chips.manifest.json +1 -1
  152. package/src/manifests/filter-panel.manifest.json +1 -1
  153. package/src/manifests/flex.manifest.json +1 -1
  154. package/src/manifests/form-field.manifest.json +1 -1
  155. package/src/manifests/form-layout.manifest.json +1 -1
  156. package/src/manifests/form.manifest.json +1 -1
  157. package/src/manifests/grid.manifest.json +1 -1
  158. package/src/manifests/heading.manifest.json +1 -1
  159. package/src/manifests/hero.manifest.json +1 -1
  160. package/src/manifests/image.manifest.json +1 -1
  161. package/src/manifests/input-group.manifest.json +1 -1
  162. package/src/manifests/input.manifest.json +1 -1
  163. package/src/manifests/label.manifest.json +1 -1
  164. package/src/manifests/link-tabs.manifest.json +1 -1
  165. package/src/manifests/link.manifest.json +1 -1
  166. package/src/manifests/list.manifest.json +1 -1
  167. package/src/manifests/load-more.manifest.json +1 -1
  168. package/src/manifests/logo-cloud.manifest.json +1 -1
  169. package/src/manifests/menu.manifest.json +1 -1
  170. package/src/manifests/metric-card.manifest.json +1 -1
  171. package/src/manifests/multi-select.manifest.json +1 -1
  172. package/src/manifests/newsletter.manifest.json +1 -1
  173. package/src/manifests/page-header.manifest.json +1 -1
  174. package/src/manifests/pagination.manifest.json +1 -1
  175. package/src/manifests/password-input.manifest.json +1 -1
  176. package/src/manifests/popover.manifest.json +1 -1
  177. package/src/manifests/process-steps.manifest.json +1 -1
  178. package/src/manifests/progress.manifest.json +1 -1
  179. package/src/manifests/prose.manifest.json +1 -1
  180. package/src/manifests/radio.manifest.json +1 -1
  181. package/src/manifests/range-slider.manifest.json +1 -1
  182. package/src/manifests/search.manifest.json +1 -1
  183. package/src/manifests/section-heading.manifest.json +1 -1
  184. package/src/manifests/section.manifest.json +1 -1
  185. package/src/manifests/segmented-control.manifest.json +1 -1
  186. package/src/manifests/select-menu.manifest.json +1 -1
  187. package/src/manifests/select.manifest.json +1 -1
  188. package/src/manifests/separator.manifest.json +1 -1
  189. package/src/manifests/site-footer.manifest.json +1 -1
  190. package/src/manifests/site-header.manifest.json +1 -1
  191. package/src/manifests/skeleton.manifest.json +1 -1
  192. package/src/manifests/spinner.manifest.json +1 -1
  193. package/src/manifests/stat-band.manifest.json +1 -1
  194. package/src/manifests/stepper.manifest.json +1 -1
  195. package/src/manifests/switch.manifest.json +1 -1
  196. package/src/manifests/table-card.manifest.json +1 -1
  197. package/src/manifests/table-of-contents.manifest.json +1 -1
  198. package/src/manifests/table.manifest.json +1 -1
  199. package/src/manifests/tabs.manifest.json +1 -1
  200. package/src/manifests/testimonial.manifest.json +1 -1
  201. package/src/manifests/text.manifest.json +1 -1
  202. package/src/manifests/textarea.manifest.json +1 -1
  203. package/src/manifests/theme-toggle.manifest.json +1 -1
  204. package/src/manifests/time-picker.manifest.json +1 -1
  205. package/src/manifests/timeline.manifest.json +1 -1
  206. package/src/manifests/toast.manifest.json +1 -1
  207. package/src/manifests/tombstone-card.manifest.json +1 -1
  208. package/src/manifests/tooltip.manifest.json +1 -1
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "newsletter",
9
9
  "exportName": "Newsletter",
10
10
  "description": "Email capture block with inline or stacked layout, pending state, success and failure feedback.",
@@ -147,7 +147,7 @@
147
147
  ],
148
148
  "package": "@slipstream-ui/core",
149
149
  "importPath": "@slipstream-ui/core",
150
- "version": "0.11.1",
150
+ "version": "0.11.2",
151
151
  "sourceDir": "page-header",
152
152
  "exportName": "PageHeader"
153
153
  }
@@ -204,7 +204,7 @@
204
204
  ],
205
205
  "package": "@slipstream-ui/core",
206
206
  "importPath": "@slipstream-ui/core",
207
- "version": "0.11.1",
207
+ "version": "0.11.2",
208
208
  "sourceDir": "pagination",
209
209
  "exportName": "Pagination"
210
210
  }
@@ -69,7 +69,7 @@
69
69
  ],
70
70
  "package": "@slipstream-ui/core",
71
71
  "importPath": "@slipstream-ui/core",
72
- "version": "0.11.1",
72
+ "version": "0.11.2",
73
73
  "sourceDir": "password-input",
74
74
  "exportName": "PasswordInput"
75
75
  }
@@ -180,7 +180,7 @@
180
180
  ],
181
181
  "package": "@slipstream-ui/core",
182
182
  "importPath": "@slipstream-ui/core",
183
- "version": "0.11.1",
183
+ "version": "0.11.2",
184
184
  "sourceDir": "popover",
185
185
  "exportName": "Popover"
186
186
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "process-steps",
9
9
  "exportName": "ProcessSteps",
10
10
  "description": "Ordered process cards with derived step numbers or custom icons.",
@@ -109,7 +109,7 @@
109
109
  ],
110
110
  "package": "@slipstream-ui/core",
111
111
  "importPath": "@slipstream-ui/core",
112
- "version": "0.11.1",
112
+ "version": "0.11.2",
113
113
  "sourceDir": "progress",
114
114
  "exportName": "Progress"
115
115
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "prose",
9
9
  "exportName": "Prose",
10
10
  "description": "Self-contained long-form typography for rendered markdown/MDX: headings, links, lists, code, tables, quotes and figures.",
@@ -181,7 +181,7 @@
181
181
  ],
182
182
  "package": "@slipstream-ui/core",
183
183
  "importPath": "@slipstream-ui/core",
184
- "version": "0.11.1",
184
+ "version": "0.11.2",
185
185
  "sourceDir": "radio",
186
186
  "exportName": "Radio"
187
187
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "range-slider",
9
9
  "exportName": "RangeSlider",
10
10
  "description": "Dual-thumb numeric range slider with labeled native inputs and formatted values.",
@@ -161,7 +161,7 @@
161
161
  ],
162
162
  "package": "@slipstream-ui/core",
163
163
  "importPath": "@slipstream-ui/core",
164
- "version": "0.11.1",
164
+ "version": "0.11.2",
165
165
  "sourceDir": "search",
166
166
  "exportName": "Search"
167
167
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "section-heading",
9
9
  "exportName": "SectionHeading",
10
10
  "description": "Section heading block: eyebrow, title (level 2-4), description and actions, with left/center alignment and three sizes.",
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "section",
9
9
  "exportName": "Section",
10
10
  "description": "Full-width page section with a surface tone, vertical rhythm and an optional centered container.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "segmented-control",
9
9
  "exportName": "SegmentedControl",
10
10
  "description": "Single- or multi-select segmented control for view and filter switches.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "select-menu",
9
9
  "exportName": "SelectMenu",
10
10
  "description": "Custom listbox select for rich options: descriptions, icons, groups, multi-select, custom rows and hidden inputs for forms.",
@@ -130,7 +130,7 @@
130
130
  ],
131
131
  "package": "@slipstream-ui/core",
132
132
  "importPath": "@slipstream-ui/core",
133
- "version": "0.11.1",
133
+ "version": "0.11.2",
134
134
  "sourceDir": "select",
135
135
  "exportName": "Select"
136
136
  }
@@ -84,7 +84,7 @@
84
84
  ],
85
85
  "package": "@slipstream-ui/core",
86
86
  "importPath": "@slipstream-ui/core",
87
- "version": "0.11.1",
87
+ "version": "0.11.2",
88
88
  "sourceDir": "separator",
89
89
  "exportName": "Separator"
90
90
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "site-footer",
9
9
  "exportName": "SiteFooter",
10
10
  "description": "Marketing footer: brand + tagline column, link columns and a legal bar; router-agnostic via linkComponent.",
@@ -4,7 +4,7 @@
4
4
  "tier": "organism",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "site-header",
9
9
  "exportName": "SiteHeader",
10
10
  "description": "Marketing/site header: sticky bar with brand, horizontal navigation with prefix-aware active states, right-aligned actions and a mobile drawer.",
@@ -126,7 +126,7 @@
126
126
  ],
127
127
  "package": "@slipstream-ui/core",
128
128
  "importPath": "@slipstream-ui/core",
129
- "version": "0.11.1",
129
+ "version": "0.11.2",
130
130
  "sourceDir": "skeleton",
131
131
  "exportName": "Skeleton"
132
132
  }
@@ -52,7 +52,7 @@
52
52
  ],
53
53
  "package": "@slipstream-ui/core",
54
54
  "importPath": "@slipstream-ui/core",
55
- "version": "0.11.1",
55
+ "version": "0.11.2",
56
56
  "sourceDir": "spinner",
57
57
  "exportName": "Spinner"
58
58
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "stat-band",
9
9
  "exportName": "StatBand",
10
10
  "description": "Semantic description list of headline stats with labels, optional hints and column presets.",
@@ -159,7 +159,7 @@
159
159
  ],
160
160
  "package": "@slipstream-ui/core",
161
161
  "importPath": "@slipstream-ui/core",
162
- "version": "0.11.1",
162
+ "version": "0.11.2",
163
163
  "sourceDir": "stepper",
164
164
  "exportName": "Stepper"
165
165
  }
@@ -102,7 +102,7 @@
102
102
  ],
103
103
  "package": "@slipstream-ui/core",
104
104
  "importPath": "@slipstream-ui/core",
105
- "version": "0.11.1",
105
+ "version": "0.11.2",
106
106
  "sourceDir": "switch",
107
107
  "exportName": "Switch"
108
108
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "table-card",
9
9
  "exportName": "TableCard",
10
10
  "description": "Table shell with title/description, header actions, optional toolbar, edge-to-edge body and a footer row.",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "table-of-contents",
9
9
  "exportName": "TableOfContents",
10
10
  "description": "Sticky 'On this page' navigation with real anchor links, nested levels and aria-current, plus a useScrollSpy hook for the active heading.",
@@ -78,7 +78,7 @@
78
78
  ],
79
79
  "package": "@slipstream-ui/core",
80
80
  "importPath": "@slipstream-ui/core",
81
- "version": "0.11.1",
81
+ "version": "0.11.2",
82
82
  "sourceDir": "table",
83
83
  "exportName": "Table"
84
84
  }
@@ -138,7 +138,7 @@
138
138
  ],
139
139
  "package": "@slipstream-ui/core",
140
140
  "importPath": "@slipstream-ui/core",
141
- "version": "0.11.1",
141
+ "version": "0.11.2",
142
142
  "sourceDir": "tabs",
143
143
  "exportName": "Tabs"
144
144
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "testimonial",
9
9
  "exportName": "Testimonial",
10
10
  "description": "Semantic written testimonial with quote, person, role, company, avatar and logo slots.",
@@ -107,7 +107,7 @@
107
107
  ],
108
108
  "package": "@slipstream-ui/core",
109
109
  "importPath": "@slipstream-ui/core",
110
- "version": "0.11.1",
110
+ "version": "0.11.2",
111
111
  "sourceDir": "text",
112
112
  "exportName": "Text"
113
113
  }
@@ -102,7 +102,7 @@
102
102
  ],
103
103
  "package": "@slipstream-ui/core",
104
104
  "importPath": "@slipstream-ui/core",
105
- "version": "0.11.1",
105
+ "version": "0.11.2",
106
106
  "sourceDir": "textarea",
107
107
  "exportName": "Textarea"
108
108
  }
@@ -112,7 +112,7 @@
112
112
  ],
113
113
  "package": "@slipstream-ui/core",
114
114
  "importPath": "@slipstream-ui/core",
115
- "version": "0.11.1",
115
+ "version": "0.11.2",
116
116
  "sourceDir": "theme-toggle",
117
117
  "exportName": "ThemeToggle"
118
118
  }
@@ -87,7 +87,7 @@
87
87
  ],
88
88
  "package": "@slipstream-ui/core",
89
89
  "importPath": "@slipstream-ui/core",
90
- "version": "0.11.1",
90
+ "version": "0.11.2",
91
91
  "sourceDir": "time-picker",
92
92
  "exportName": "TimePicker"
93
93
  }
@@ -63,7 +63,7 @@
63
63
  ],
64
64
  "package": "@slipstream-ui/core",
65
65
  "importPath": "@slipstream-ui/core",
66
- "version": "0.11.1",
66
+ "version": "0.11.2",
67
67
  "sourceDir": "timeline",
68
68
  "exportName": "Timeline"
69
69
  }
@@ -161,7 +161,7 @@
161
161
  ],
162
162
  "package": "@slipstream-ui/core",
163
163
  "importPath": "@slipstream-ui/core",
164
- "version": "0.11.1",
164
+ "version": "0.11.2",
165
165
  "sourceDir": "toast",
166
166
  "exportName": "ToastProvider"
167
167
  }
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.1",
7
+ "version": "0.11.2",
8
8
  "sourceDir": "tombstone-card",
9
9
  "exportName": "TombstoneCard",
10
10
  "description": "Placeholder card for archived, closed or unavailable marketplace items.",
@@ -120,7 +120,7 @@
120
120
  ],
121
121
  "package": "@slipstream-ui/core",
122
122
  "importPath": "@slipstream-ui/core",
123
- "version": "0.11.1",
123
+ "version": "0.11.2",
124
124
  "sourceDir": "tooltip",
125
125
  "exportName": "Tooltip"
126
126
  }
@@ -20,6 +20,13 @@ export type EntityCardProps = React.HTMLAttributes<HTMLElement> & {
20
20
  tags?: string[];
21
21
  /** Profile destination. */
22
22
  href?: string;
23
+ /**
24
+ * Makes the whole card a single link (stretched-link pattern): the name
25
+ * becomes the link and its overlay covers the card, so one target gets one
26
+ * hover state and one focus ring. Interactive `actions` stay clickable above
27
+ * the overlay; the redundant footer "View profile" link is suppressed.
28
+ */
29
+ cardHref?: string;
23
30
  /** Custom link element for routers. */
24
31
  linkComponent?: React.ElementType;
25
32
  /** Extra footer actions. */
@@ -47,6 +54,13 @@ export declare const EntityCard: React.ForwardRefExoticComponent<React.HTMLAttri
47
54
  tags?: string[];
48
55
  /** Profile destination. */
49
56
  href?: string;
57
+ /**
58
+ * Makes the whole card a single link (stretched-link pattern): the name
59
+ * becomes the link and its overlay covers the card, so one target gets one
60
+ * hover state and one focus ring. Interactive `actions` stay clickable above
61
+ * the overlay; the redundant footer "View profile" link is suppressed.
62
+ */
63
+ cardHref?: string;
50
64
  /** Custom link element for routers. */
51
65
  linkComponent?: React.ElementType;
52
66
  /** Extra footer actions. */
@@ -70,6 +84,13 @@ export declare const ProfileCard: React.ForwardRefExoticComponent<React.HTMLAttr
70
84
  tags?: string[];
71
85
  /** Profile destination. */
72
86
  href?: string;
87
+ /**
88
+ * Makes the whole card a single link (stretched-link pattern): the name
89
+ * becomes the link and its overlay covers the card, so one target gets one
90
+ * hover state and one focus ring. Interactive `actions` stay clickable above
91
+ * the overlay; the redundant footer "View profile" link is suppressed.
92
+ */
93
+ cardHref?: string;
73
94
  /** Custom link element for routers. */
74
95
  linkComponent?: React.ElementType;
75
96
  /** Extra footer actions. */
@@ -50,17 +50,30 @@ const EntityCard = React.forwardRef(function EntityCard2({
50
50
  stats,
51
51
  tags,
52
52
  href,
53
+ cardHref,
53
54
  linkComponent,
54
55
  actions,
55
56
  className,
56
57
  ...props
57
58
  }, ref) {
58
59
  const Link = linkComponent ?? "a";
59
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Card.Card, { ref, className: (0, import_cn.cn)("flex h-full flex-col", className), ...props, children: [
60
+ const stretched = Boolean(cardHref);
61
+ const nameHref = cardHref ?? href;
62
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Card.Card, { ref, className: (0, import_cn.cn)("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
60
63
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Card.CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
61
64
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Avatar.Avatar, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Avatar.AvatarFallback, { children: initials(name) }) }) }),
62
65
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "min-w-0 flex-1", children: [
63
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "truncate text-base font-semibold tracking-tight", children: href ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: name }) : name }),
66
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
67
+ Link,
68
+ {
69
+ href: nameHref,
70
+ className: (0, import_cn.cn)(
71
+ "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
72
+ stretched && 'after:absolute after:inset-0 after:content-[""]'
73
+ ),
74
+ children: name
75
+ }
76
+ ) : name }),
64
77
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
65
78
  location && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
66
79
  ] })
@@ -73,8 +86,8 @@ const EntityCard = React.forwardRef(function EntityCard2({
73
86
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
74
87
  ] }, stat.label)) })
75
88
  ] }),
76
- (href || actions) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Card.CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
77
- href && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
89
+ (href && !stretched || actions) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Card.CardFooter, { className: (0, import_cn.cn)("flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", stretched && "relative z-10"), children: [
90
+ href && !stretched && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
78
91
  Link,
79
92
  {
80
93
  href,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/entity-card/EntityCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Avatar, AvatarFallback } from '../avatar/Avatar';\nimport { Badge } from '../badge/Badge';\nimport { Card, CardContent, CardFooter, CardHeader } from '../card/Card';\n\nexport type EntityStat = {\n label: string;\n value: string;\n};\n\nexport type EntityCardProps = React.HTMLAttributes<HTMLElement> & {\n /** Firm or member name. */\n name: string;\n /** Firm type, role or member category. */\n entityType: string;\n /** Region or office location. */\n location?: string;\n /** Short firm description. */\n description?: string;\n /** Logo slot. Falls back to initials when omitted. */\n logo?: React.ReactNode;\n /** Small stats such as closed deals or active mandates. */\n stats?: EntityStat[];\n /** Sector or service tags. */\n tags?: string[];\n /** Profile destination. */\n href?: string;\n /** Custom link element for routers. */\n linkComponent?: React.ElementType;\n /** Extra footer actions. */\n actions?: React.ReactNode;\n};\n\nfunction initials(name: string): string {\n return name\n .split(/\\s+/)\n .filter(Boolean)\n .slice(0, 2)\n .map((part) => part[0]?.toUpperCase() ?? '')\n .join('');\n}\n\n/**\n * Firm or member profile card for a directory. Use the logo slot for a brand\n * mark; when absent, initials keep the card identifiable. Stats and tags are\n * optional, so the same card works in compact and detailed directory views.\n */\nexport const EntityCard = React.forwardRef<HTMLElement, EntityCardProps>(function EntityCard(\n {\n name,\n entityType,\n location,\n description,\n logo,\n stats,\n tags,\n href,\n linkComponent,\n actions,\n className,\n ...props\n },\n ref\n) {\n const Link = linkComponent ?? 'a';\n\n return (\n <Card ref={ref as never} className={cn('flex h-full flex-col', className)} {...props}>\n <CardHeader className=\"flex-row items-start gap-3 p-5 pb-3\">\n <div className=\"shrink-0\">\n {logo ?? (\n <Avatar>\n <AvatarFallback>{initials(name)}</AvatarFallback>\n </Avatar>\n )}\n </div>\n <div className=\"min-w-0 flex-1\">\n <h3 className=\"truncate text-base font-semibold tracking-tight\">\n {href ? (\n <Link href={href} className=\"rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\">\n {name}\n </Link>\n ) : (\n name\n )}\n </h3>\n <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">{entityType}</p>\n {location && <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">{location}</p>}\n </div>\n </CardHeader>\n <CardContent className=\"flex-1 px-5 pb-3\">\n {description && <p className=\"line-clamp-3 text-sm leading-relaxed text-muted-foreground\">{description}</p>}\n {tags && tags.length > 0 && (\n <div className=\"mt-3 flex flex-wrap gap-1.5\">\n {tags.map((tag) => (\n <Badge key={tag} variant=\"secondary\">\n {tag}\n </Badge>\n ))}\n </div>\n )}\n {stats && stats.length > 0 && (\n <dl className=\"mt-4 grid grid-cols-2 gap-3\">\n {stats.map((stat) => (\n <div key={stat.label} className=\"min-w-0\">\n <dt className=\"text-xs text-muted-foreground\">{stat.label}</dt>\n <dd className=\"mt-0.5 truncate text-sm font-semibold tabular-nums\">{stat.value}</dd>\n </div>\n ))}\n </dl>\n )}\n </CardContent>\n {(href || actions) && (\n <CardFooter className=\"flex flex-wrap items-center gap-2 border-t border-border px-5 py-3\">\n {href && (\n <Link\n href={href}\n className=\"text-sm font-medium text-primary-ink underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n >\n View profile\n </Link>\n )}\n {actions && <div className=\"ml-auto flex items-center gap-2\">{actions}</div>}\n </CardFooter>\n )}\n </Card>\n );\n});\n\n/** Alias for profile-oriented directory surfaces. */\nexport const ProfileCard = EntityCard;\nexport type ProfileCardProps = EntityCardProps;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAyEc;AAzEd,YAAuB;AACvB,gBAAmB;AACnB,oBAAuC;AACvC,mBAAsB;AACtB,kBAA0D;AA8B1D,SAAS,SAAS,MAAsB;AACtC,SAAO,KACJ,MAAM,KAAK,EACX,OAAO,OAAO,EACd,MAAM,GAAG,CAAC,EACV,IAAI,CAAC,SAAS,KAAK,CAAC,GAAG,YAAY,KAAK,EAAE,EAC1C,KAAK,EAAE;AACZ;AAOO,MAAM,aAAa,MAAM,WAAyC,SAASA,YAChF;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,QAAM,OAAO,iBAAiB;AAE9B,SACE,6CAAC,oBAAK,KAAmB,eAAW,cAAG,wBAAwB,SAAS,GAAI,GAAG,OAC7E;AAAA,iDAAC,0BAAW,WAAU,uCACpB;AAAA,kDAAC,SAAI,WAAU,YACZ,kBACC,4CAAC,wBACC,sDAAC,gCAAgB,mBAAS,IAAI,GAAE,GAClC,GAEJ;AAAA,MACA,6CAAC,SAAI,WAAU,kBACb;AAAA,oDAAC,QAAG,WAAU,mDACX,iBACC,4CAAC,QAAK,MAAY,WAAU,6GACzB,gBACH,IAEA,MAEJ;AAAA,QACA,4CAAC,OAAE,WAAU,iDAAiD,sBAAW;AAAA,QACxE,YAAY,4CAAC,OAAE,WAAU,iDAAiD,oBAAS;AAAA,SACtF;AAAA,OACF;AAAA,IACA,6CAAC,2BAAY,WAAU,oBACpB;AAAA,qBAAe,4CAAC,OAAE,WAAU,8DAA8D,uBAAY;AAAA,MACtG,QAAQ,KAAK,SAAS,KACrB,4CAAC,SAAI,WAAU,+BACZ,eAAK,IAAI,CAAC,QACT,4CAAC,sBAAgB,SAAQ,aACtB,iBADS,GAEZ,CACD,GACH;AAAA,MAED,SAAS,MAAM,SAAS,KACvB,4CAAC,QAAG,WAAU,+BACX,gBAAM,IAAI,CAAC,SACV,6CAAC,SAAqB,WAAU,WAC9B;AAAA,oDAAC,QAAG,WAAU,iCAAiC,eAAK,OAAM;AAAA,QAC1D,4CAAC,QAAG,WAAU,sDAAsD,eAAK,OAAM;AAAA,WAFvE,KAAK,KAGf,CACD,GACH;AAAA,OAEJ;AAAA,KACE,QAAQ,YACR,6CAAC,0BAAW,WAAU,sEACnB;AAAA,cACC;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,WAAU;AAAA,UACX;AAAA;AAAA,MAED;AAAA,MAED,WAAW,4CAAC,SAAI,WAAU,mCAAmC,mBAAQ;AAAA,OACxE;AAAA,KAEJ;AAEJ,CAAC;AAGM,MAAM,cAAc;","names":["EntityCard"]}
1
+ {"version":3,"sources":["../../../../src/components/entity-card/EntityCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Avatar, AvatarFallback } from '../avatar/Avatar';\nimport { Badge } from '../badge/Badge';\nimport { Card, CardContent, CardFooter, CardHeader } from '../card/Card';\n\nexport type EntityStat = {\n label: string;\n value: string;\n};\n\nexport type EntityCardProps = React.HTMLAttributes<HTMLElement> & {\n /** Firm or member name. */\n name: string;\n /** Firm type, role or member category. */\n entityType: string;\n /** Region or office location. */\n location?: string;\n /** Short firm description. */\n description?: string;\n /** Logo slot. Falls back to initials when omitted. */\n logo?: React.ReactNode;\n /** Small stats such as closed deals or active mandates. */\n stats?: EntityStat[];\n /** Sector or service tags. */\n tags?: string[];\n /** Profile destination. */\n href?: string;\n /**\n * Makes the whole card a single link (stretched-link pattern): the name\n * becomes the link and its overlay covers the card, so one target gets one\n * hover state and one focus ring. Interactive `actions` stay clickable above\n * the overlay; the redundant footer \"View profile\" link is suppressed.\n */\n cardHref?: string;\n /** Custom link element for routers. */\n linkComponent?: React.ElementType;\n /** Extra footer actions. */\n actions?: React.ReactNode;\n};\n\nfunction initials(name: string): string {\n return name\n .split(/\\s+/)\n .filter(Boolean)\n .slice(0, 2)\n .map((part) => part[0]?.toUpperCase() ?? '')\n .join('');\n}\n\n/**\n * Firm or member profile card for a directory. Use the logo slot for a brand\n * mark; when absent, initials keep the card identifiable. Stats and tags are\n * optional, so the same card works in compact and detailed directory views.\n */\nexport const EntityCard = React.forwardRef<HTMLElement, EntityCardProps>(function EntityCard(\n {\n name,\n entityType,\n location,\n description,\n logo,\n stats,\n tags,\n href,\n cardHref,\n linkComponent,\n actions,\n className,\n ...props\n },\n ref\n) {\n const Link = linkComponent ?? 'a';\n const stretched = Boolean(cardHref);\n const nameHref = cardHref ?? href;\n\n return (\n <Card ref={ref as never} className={cn('flex h-full flex-col', stretched && 'relative isolate', className)} {...props}>\n <CardHeader className=\"flex-row items-start gap-3 p-5 pb-3\">\n <div className=\"shrink-0\">\n {logo ?? (\n <Avatar>\n <AvatarFallback>{initials(name)}</AvatarFallback>\n </Avatar>\n )}\n </div>\n <div className=\"min-w-0 flex-1\">\n <h3 className=\"truncate text-base font-semibold tracking-tight\">\n {nameHref ? (\n <Link\n href={nameHref}\n className={cn(\n 'rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',\n stretched && 'after:absolute after:inset-0 after:content-[\"\"]'\n )}\n >\n {name}\n </Link>\n ) : (\n name\n )}\n </h3>\n <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">{entityType}</p>\n {location && <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">{location}</p>}\n </div>\n </CardHeader>\n <CardContent className=\"flex-1 px-5 pb-3\">\n {description && <p className=\"line-clamp-3 text-sm leading-relaxed text-muted-foreground\">{description}</p>}\n {tags && tags.length > 0 && (\n <div className=\"mt-3 flex flex-wrap gap-1.5\">\n {tags.map((tag) => (\n <Badge key={tag} variant=\"secondary\">\n {tag}\n </Badge>\n ))}\n </div>\n )}\n {stats && stats.length > 0 && (\n <dl className=\"mt-4 grid grid-cols-2 gap-3\">\n {stats.map((stat) => (\n <div key={stat.label} className=\"min-w-0\">\n <dt className=\"text-xs text-muted-foreground\">{stat.label}</dt>\n <dd className=\"mt-0.5 truncate text-sm font-semibold tabular-nums\">{stat.value}</dd>\n </div>\n ))}\n </dl>\n )}\n </CardContent>\n {((href && !stretched) || actions) && (\n <CardFooter className={cn('flex flex-wrap items-center gap-2 border-t border-border px-5 py-3', stretched && 'relative z-10')}>\n {href && !stretched && (\n <Link\n href={href}\n className=\"text-sm font-medium text-primary-ink underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n >\n View profile\n </Link>\n )}\n {actions && <div className=\"ml-auto flex items-center gap-2\">{actions}</div>}\n </CardFooter>\n )}\n </Card>\n );\n});\n\n/** Alias for profile-oriented directory surfaces. */\nexport const ProfileCard = EntityCard;\nexport type ProfileCardProps = EntityCardProps;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmFc;AAnFd,YAAuB;AACvB,gBAAmB;AACnB,oBAAuC;AACvC,mBAAsB;AACtB,kBAA0D;AAqC1D,SAAS,SAAS,MAAsB;AACtC,SAAO,KACJ,MAAM,KAAK,EACX,OAAO,OAAO,EACd,MAAM,GAAG,CAAC,EACV,IAAI,CAAC,SAAS,KAAK,CAAC,GAAG,YAAY,KAAK,EAAE,EAC1C,KAAK,EAAE;AACZ;AAOO,MAAM,aAAa,MAAM,WAAyC,SAASA,YAChF;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,QAAM,OAAO,iBAAiB;AAC9B,QAAM,YAAY,QAAQ,QAAQ;AAClC,QAAM,WAAW,YAAY;AAE7B,SACE,6CAAC,oBAAK,KAAmB,eAAW,cAAG,wBAAwB,aAAa,oBAAoB,SAAS,GAAI,GAAG,OAC9G;AAAA,iDAAC,0BAAW,WAAU,uCACpB;AAAA,kDAAC,SAAI,WAAU,YACZ,kBACC,4CAAC,wBACC,sDAAC,gCAAgB,mBAAS,IAAI,GAAE,GAClC,GAEJ;AAAA,MACA,6CAAC,SAAI,WAAU,kBACb;AAAA,oDAAC,QAAG,WAAU,mDACX,qBACC;AAAA,UAAC;AAAA;AAAA,YACC,MAAM;AAAA,YACN,eAAW;AAAA,cACT;AAAA,cACA,aAAa;AAAA,YACf;AAAA,YAEC;AAAA;AAAA,QACH,IAEA,MAEJ;AAAA,QACA,4CAAC,OAAE,WAAU,iDAAiD,sBAAW;AAAA,QACxE,YAAY,4CAAC,OAAE,WAAU,iDAAiD,oBAAS;AAAA,SACtF;AAAA,OACF;AAAA,IACA,6CAAC,2BAAY,WAAU,oBACpB;AAAA,qBAAe,4CAAC,OAAE,WAAU,8DAA8D,uBAAY;AAAA,MACtG,QAAQ,KAAK,SAAS,KACrB,4CAAC,SAAI,WAAU,+BACZ,eAAK,IAAI,CAAC,QACT,4CAAC,sBAAgB,SAAQ,aACtB,iBADS,GAEZ,CACD,GACH;AAAA,MAED,SAAS,MAAM,SAAS,KACvB,4CAAC,QAAG,WAAU,+BACX,gBAAM,IAAI,CAAC,SACV,6CAAC,SAAqB,WAAU,WAC9B;AAAA,oDAAC,QAAG,WAAU,iCAAiC,eAAK,OAAM;AAAA,QAC1D,4CAAC,QAAG,WAAU,sDAAsD,eAAK,OAAM;AAAA,WAFvE,KAAK,KAGf,CACD,GACH;AAAA,OAEJ;AAAA,KACG,QAAQ,CAAC,aAAc,YACxB,6CAAC,0BAAW,eAAW,cAAG,sEAAsE,aAAa,eAAe,GACzH;AAAA,cAAQ,CAAC,aACR;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,WAAU;AAAA,UACX;AAAA;AAAA,MAED;AAAA,MAED,WAAW,4CAAC,SAAI,WAAU,mCAAmC,mBAAQ;AAAA,OACxE;AAAA,KAEJ;AAEJ,CAAC;AAGM,MAAM,cAAc;","names":["EntityCard"]}
@@ -16,17 +16,30 @@ const EntityCard = React.forwardRef(function EntityCard2({
16
16
  stats,
17
17
  tags,
18
18
  href,
19
+ cardHref,
19
20
  linkComponent,
20
21
  actions,
21
22
  className,
22
23
  ...props
23
24
  }, ref) {
24
25
  const Link = linkComponent ?? "a";
25
- return /* @__PURE__ */ jsxs(Card, { ref, className: cn("flex h-full flex-col", className), ...props, children: [
26
+ const stretched = Boolean(cardHref);
27
+ const nameHref = cardHref ?? href;
28
+ return /* @__PURE__ */ jsxs(Card, { ref, className: cn("flex h-full flex-col", stretched && "relative isolate", className), ...props, children: [
26
29
  /* @__PURE__ */ jsxs(CardHeader, { className: "flex-row items-start gap-3 p-5 pb-3", children: [
27
30
  /* @__PURE__ */ jsx("div", { className: "shrink-0", children: logo ?? /* @__PURE__ */ jsx(Avatar, { children: /* @__PURE__ */ jsx(AvatarFallback, { children: initials(name) }) }) }),
28
31
  /* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
29
- /* @__PURE__ */ jsx("h3", { className: "truncate text-base font-semibold tracking-tight", children: href ? /* @__PURE__ */ jsx(Link, { href, className: "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: name }) : name }),
32
+ /* @__PURE__ */ jsx("h3", { className: "truncate text-base font-semibold tracking-tight", children: nameHref ? /* @__PURE__ */ jsx(
33
+ Link,
34
+ {
35
+ href: nameHref,
36
+ className: cn(
37
+ "rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
38
+ stretched && 'after:absolute after:inset-0 after:content-[""]'
39
+ ),
40
+ children: name
41
+ }
42
+ ) : name }),
30
43
  /* @__PURE__ */ jsx("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: entityType }),
31
44
  location && /* @__PURE__ */ jsx("p", { className: "mt-0.5 truncate text-xs text-muted-foreground", children: location })
32
45
  ] })
@@ -39,8 +52,8 @@ const EntityCard = React.forwardRef(function EntityCard2({
39
52
  /* @__PURE__ */ jsx("dd", { className: "mt-0.5 truncate text-sm font-semibold tabular-nums", children: stat.value })
40
53
  ] }, stat.label)) })
41
54
  ] }),
42
- (href || actions) && /* @__PURE__ */ jsxs(CardFooter, { className: "flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", children: [
43
- href && /* @__PURE__ */ jsx(
55
+ (href && !stretched || actions) && /* @__PURE__ */ jsxs(CardFooter, { className: cn("flex flex-wrap items-center gap-2 border-t border-border px-5 py-3", stretched && "relative z-10"), children: [
56
+ href && !stretched && /* @__PURE__ */ jsx(
44
57
  Link,
45
58
  {
46
59
  href,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/entity-card/EntityCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Avatar, AvatarFallback } from '../avatar/Avatar';\nimport { Badge } from '../badge/Badge';\nimport { Card, CardContent, CardFooter, CardHeader } from '../card/Card';\n\nexport type EntityStat = {\n label: string;\n value: string;\n};\n\nexport type EntityCardProps = React.HTMLAttributes<HTMLElement> & {\n /** Firm or member name. */\n name: string;\n /** Firm type, role or member category. */\n entityType: string;\n /** Region or office location. */\n location?: string;\n /** Short firm description. */\n description?: string;\n /** Logo slot. Falls back to initials when omitted. */\n logo?: React.ReactNode;\n /** Small stats such as closed deals or active mandates. */\n stats?: EntityStat[];\n /** Sector or service tags. */\n tags?: string[];\n /** Profile destination. */\n href?: string;\n /** Custom link element for routers. */\n linkComponent?: React.ElementType;\n /** Extra footer actions. */\n actions?: React.ReactNode;\n};\n\nfunction initials(name: string): string {\n return name\n .split(/\\s+/)\n .filter(Boolean)\n .slice(0, 2)\n .map((part) => part[0]?.toUpperCase() ?? '')\n .join('');\n}\n\n/**\n * Firm or member profile card for a directory. Use the logo slot for a brand\n * mark; when absent, initials keep the card identifiable. Stats and tags are\n * optional, so the same card works in compact and detailed directory views.\n */\nexport const EntityCard = React.forwardRef<HTMLElement, EntityCardProps>(function EntityCard(\n {\n name,\n entityType,\n location,\n description,\n logo,\n stats,\n tags,\n href,\n linkComponent,\n actions,\n className,\n ...props\n },\n ref\n) {\n const Link = linkComponent ?? 'a';\n\n return (\n <Card ref={ref as never} className={cn('flex h-full flex-col', className)} {...props}>\n <CardHeader className=\"flex-row items-start gap-3 p-5 pb-3\">\n <div className=\"shrink-0\">\n {logo ?? (\n <Avatar>\n <AvatarFallback>{initials(name)}</AvatarFallback>\n </Avatar>\n )}\n </div>\n <div className=\"min-w-0 flex-1\">\n <h3 className=\"truncate text-base font-semibold tracking-tight\">\n {href ? (\n <Link href={href} className=\"rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\">\n {name}\n </Link>\n ) : (\n name\n )}\n </h3>\n <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">{entityType}</p>\n {location && <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">{location}</p>}\n </div>\n </CardHeader>\n <CardContent className=\"flex-1 px-5 pb-3\">\n {description && <p className=\"line-clamp-3 text-sm leading-relaxed text-muted-foreground\">{description}</p>}\n {tags && tags.length > 0 && (\n <div className=\"mt-3 flex flex-wrap gap-1.5\">\n {tags.map((tag) => (\n <Badge key={tag} variant=\"secondary\">\n {tag}\n </Badge>\n ))}\n </div>\n )}\n {stats && stats.length > 0 && (\n <dl className=\"mt-4 grid grid-cols-2 gap-3\">\n {stats.map((stat) => (\n <div key={stat.label} className=\"min-w-0\">\n <dt className=\"text-xs text-muted-foreground\">{stat.label}</dt>\n <dd className=\"mt-0.5 truncate text-sm font-semibold tabular-nums\">{stat.value}</dd>\n </div>\n ))}\n </dl>\n )}\n </CardContent>\n {(href || actions) && (\n <CardFooter className=\"flex flex-wrap items-center gap-2 border-t border-border px-5 py-3\">\n {href && (\n <Link\n href={href}\n className=\"text-sm font-medium text-primary-ink underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n >\n View profile\n </Link>\n )}\n {actions && <div className=\"ml-auto flex items-center gap-2\">{actions}</div>}\n </CardFooter>\n )}\n </Card>\n );\n});\n\n/** Alias for profile-oriented directory surfaces. */\nexport const ProfileCard = EntityCard;\nexport type ProfileCardProps = EntityCardProps;\n"],"mappings":"AAyEc,cAIN,YAJM;AAzEd,YAAY,WAAW;AACvB,SAAS,UAAU;AACnB,SAAS,QAAQ,sBAAsB;AACvC,SAAS,aAAa;AACtB,SAAS,MAAM,aAAa,YAAY,kBAAkB;AA8B1D,SAAS,SAAS,MAAsB;AACtC,SAAO,KACJ,MAAM,KAAK,EACX,OAAO,OAAO,EACd,MAAM,GAAG,CAAC,EACV,IAAI,CAAC,SAAS,KAAK,CAAC,GAAG,YAAY,KAAK,EAAE,EAC1C,KAAK,EAAE;AACZ;AAOO,MAAM,aAAa,MAAM,WAAyC,SAASA,YAChF;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,QAAM,OAAO,iBAAiB;AAE9B,SACE,qBAAC,QAAK,KAAmB,WAAW,GAAG,wBAAwB,SAAS,GAAI,GAAG,OAC7E;AAAA,yBAAC,cAAW,WAAU,uCACpB;AAAA,0BAAC,SAAI,WAAU,YACZ,kBACC,oBAAC,UACC,8BAAC,kBAAgB,mBAAS,IAAI,GAAE,GAClC,GAEJ;AAAA,MACA,qBAAC,SAAI,WAAU,kBACb;AAAA,4BAAC,QAAG,WAAU,mDACX,iBACC,oBAAC,QAAK,MAAY,WAAU,6GACzB,gBACH,IAEA,MAEJ;AAAA,QACA,oBAAC,OAAE,WAAU,iDAAiD,sBAAW;AAAA,QACxE,YAAY,oBAAC,OAAE,WAAU,iDAAiD,oBAAS;AAAA,SACtF;AAAA,OACF;AAAA,IACA,qBAAC,eAAY,WAAU,oBACpB;AAAA,qBAAe,oBAAC,OAAE,WAAU,8DAA8D,uBAAY;AAAA,MACtG,QAAQ,KAAK,SAAS,KACrB,oBAAC,SAAI,WAAU,+BACZ,eAAK,IAAI,CAAC,QACT,oBAAC,SAAgB,SAAQ,aACtB,iBADS,GAEZ,CACD,GACH;AAAA,MAED,SAAS,MAAM,SAAS,KACvB,oBAAC,QAAG,WAAU,+BACX,gBAAM,IAAI,CAAC,SACV,qBAAC,SAAqB,WAAU,WAC9B;AAAA,4BAAC,QAAG,WAAU,iCAAiC,eAAK,OAAM;AAAA,QAC1D,oBAAC,QAAG,WAAU,sDAAsD,eAAK,OAAM;AAAA,WAFvE,KAAK,KAGf,CACD,GACH;AAAA,OAEJ;AAAA,KACE,QAAQ,YACR,qBAAC,cAAW,WAAU,sEACnB;AAAA,cACC;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,WAAU;AAAA,UACX;AAAA;AAAA,MAED;AAAA,MAED,WAAW,oBAAC,SAAI,WAAU,mCAAmC,mBAAQ;AAAA,OACxE;AAAA,KAEJ;AAEJ,CAAC;AAGM,MAAM,cAAc;","names":["EntityCard"]}
1
+ {"version":3,"sources":["../../../../src/components/entity-card/EntityCard.tsx"],"sourcesContent":["import * as React from 'react';\nimport { cn } from '../../utils/cn';\nimport { Avatar, AvatarFallback } from '../avatar/Avatar';\nimport { Badge } from '../badge/Badge';\nimport { Card, CardContent, CardFooter, CardHeader } from '../card/Card';\n\nexport type EntityStat = {\n label: string;\n value: string;\n};\n\nexport type EntityCardProps = React.HTMLAttributes<HTMLElement> & {\n /** Firm or member name. */\n name: string;\n /** Firm type, role or member category. */\n entityType: string;\n /** Region or office location. */\n location?: string;\n /** Short firm description. */\n description?: string;\n /** Logo slot. Falls back to initials when omitted. */\n logo?: React.ReactNode;\n /** Small stats such as closed deals or active mandates. */\n stats?: EntityStat[];\n /** Sector or service tags. */\n tags?: string[];\n /** Profile destination. */\n href?: string;\n /**\n * Makes the whole card a single link (stretched-link pattern): the name\n * becomes the link and its overlay covers the card, so one target gets one\n * hover state and one focus ring. Interactive `actions` stay clickable above\n * the overlay; the redundant footer \"View profile\" link is suppressed.\n */\n cardHref?: string;\n /** Custom link element for routers. */\n linkComponent?: React.ElementType;\n /** Extra footer actions. */\n actions?: React.ReactNode;\n};\n\nfunction initials(name: string): string {\n return name\n .split(/\\s+/)\n .filter(Boolean)\n .slice(0, 2)\n .map((part) => part[0]?.toUpperCase() ?? '')\n .join('');\n}\n\n/**\n * Firm or member profile card for a directory. Use the logo slot for a brand\n * mark; when absent, initials keep the card identifiable. Stats and tags are\n * optional, so the same card works in compact and detailed directory views.\n */\nexport const EntityCard = React.forwardRef<HTMLElement, EntityCardProps>(function EntityCard(\n {\n name,\n entityType,\n location,\n description,\n logo,\n stats,\n tags,\n href,\n cardHref,\n linkComponent,\n actions,\n className,\n ...props\n },\n ref\n) {\n const Link = linkComponent ?? 'a';\n const stretched = Boolean(cardHref);\n const nameHref = cardHref ?? href;\n\n return (\n <Card ref={ref as never} className={cn('flex h-full flex-col', stretched && 'relative isolate', className)} {...props}>\n <CardHeader className=\"flex-row items-start gap-3 p-5 pb-3\">\n <div className=\"shrink-0\">\n {logo ?? (\n <Avatar>\n <AvatarFallback>{initials(name)}</AvatarFallback>\n </Avatar>\n )}\n </div>\n <div className=\"min-w-0 flex-1\">\n <h3 className=\"truncate text-base font-semibold tracking-tight\">\n {nameHref ? (\n <Link\n href={nameHref}\n className={cn(\n 'rounded-sm hover:text-primary-ink focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',\n stretched && 'after:absolute after:inset-0 after:content-[\"\"]'\n )}\n >\n {name}\n </Link>\n ) : (\n name\n )}\n </h3>\n <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">{entityType}</p>\n {location && <p className=\"mt-0.5 truncate text-xs text-muted-foreground\">{location}</p>}\n </div>\n </CardHeader>\n <CardContent className=\"flex-1 px-5 pb-3\">\n {description && <p className=\"line-clamp-3 text-sm leading-relaxed text-muted-foreground\">{description}</p>}\n {tags && tags.length > 0 && (\n <div className=\"mt-3 flex flex-wrap gap-1.5\">\n {tags.map((tag) => (\n <Badge key={tag} variant=\"secondary\">\n {tag}\n </Badge>\n ))}\n </div>\n )}\n {stats && stats.length > 0 && (\n <dl className=\"mt-4 grid grid-cols-2 gap-3\">\n {stats.map((stat) => (\n <div key={stat.label} className=\"min-w-0\">\n <dt className=\"text-xs text-muted-foreground\">{stat.label}</dt>\n <dd className=\"mt-0.5 truncate text-sm font-semibold tabular-nums\">{stat.value}</dd>\n </div>\n ))}\n </dl>\n )}\n </CardContent>\n {((href && !stretched) || actions) && (\n <CardFooter className={cn('flex flex-wrap items-center gap-2 border-t border-border px-5 py-3', stretched && 'relative z-10')}>\n {href && !stretched && (\n <Link\n href={href}\n className=\"text-sm font-medium text-primary-ink underline-offset-4 hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring\"\n >\n View profile\n </Link>\n )}\n {actions && <div className=\"ml-auto flex items-center gap-2\">{actions}</div>}\n </CardFooter>\n )}\n </Card>\n );\n});\n\n/** Alias for profile-oriented directory surfaces. */\nexport const ProfileCard = EntityCard;\nexport type ProfileCardProps = EntityCardProps;\n"],"mappings":"AAmFc,cAIN,YAJM;AAnFd,YAAY,WAAW;AACvB,SAAS,UAAU;AACnB,SAAS,QAAQ,sBAAsB;AACvC,SAAS,aAAa;AACtB,SAAS,MAAM,aAAa,YAAY,kBAAkB;AAqC1D,SAAS,SAAS,MAAsB;AACtC,SAAO,KACJ,MAAM,KAAK,EACX,OAAO,OAAO,EACd,MAAM,GAAG,CAAC,EACV,IAAI,CAAC,SAAS,KAAK,CAAC,GAAG,YAAY,KAAK,EAAE,EAC1C,KAAK,EAAE;AACZ;AAOO,MAAM,aAAa,MAAM,WAAyC,SAASA,YAChF;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GACA,KACA;AACA,QAAM,OAAO,iBAAiB;AAC9B,QAAM,YAAY,QAAQ,QAAQ;AAClC,QAAM,WAAW,YAAY;AAE7B,SACE,qBAAC,QAAK,KAAmB,WAAW,GAAG,wBAAwB,aAAa,oBAAoB,SAAS,GAAI,GAAG,OAC9G;AAAA,yBAAC,cAAW,WAAU,uCACpB;AAAA,0BAAC,SAAI,WAAU,YACZ,kBACC,oBAAC,UACC,8BAAC,kBAAgB,mBAAS,IAAI,GAAE,GAClC,GAEJ;AAAA,MACA,qBAAC,SAAI,WAAU,kBACb;AAAA,4BAAC,QAAG,WAAU,mDACX,qBACC;AAAA,UAAC;AAAA;AAAA,YACC,MAAM;AAAA,YACN,WAAW;AAAA,cACT;AAAA,cACA,aAAa;AAAA,YACf;AAAA,YAEC;AAAA;AAAA,QACH,IAEA,MAEJ;AAAA,QACA,oBAAC,OAAE,WAAU,iDAAiD,sBAAW;AAAA,QACxE,YAAY,oBAAC,OAAE,WAAU,iDAAiD,oBAAS;AAAA,SACtF;AAAA,OACF;AAAA,IACA,qBAAC,eAAY,WAAU,oBACpB;AAAA,qBAAe,oBAAC,OAAE,WAAU,8DAA8D,uBAAY;AAAA,MACtG,QAAQ,KAAK,SAAS,KACrB,oBAAC,SAAI,WAAU,+BACZ,eAAK,IAAI,CAAC,QACT,oBAAC,SAAgB,SAAQ,aACtB,iBADS,GAEZ,CACD,GACH;AAAA,MAED,SAAS,MAAM,SAAS,KACvB,oBAAC,QAAG,WAAU,+BACX,gBAAM,IAAI,CAAC,SACV,qBAAC,SAAqB,WAAU,WAC9B;AAAA,4BAAC,QAAG,WAAU,iCAAiC,eAAK,OAAM;AAAA,QAC1D,oBAAC,QAAG,WAAU,sDAAsD,eAAK,OAAM;AAAA,WAFvE,KAAK,KAGf,CACD,GACH;AAAA,OAEJ;AAAA,KACG,QAAQ,CAAC,aAAc,YACxB,qBAAC,cAAW,WAAW,GAAG,sEAAsE,aAAa,eAAe,GACzH;AAAA,cAAQ,CAAC,aACR;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,WAAU;AAAA,UACX;AAAA;AAAA,MAED;AAAA,MAED,WAAW,oBAAC,SAAI,WAAU,mCAAmC,mBAAQ;AAAA,OACxE;AAAA,KAEJ;AAEJ,CAAC;AAGM,MAAM,cAAc;","names":["EntityCard"]}