@slipstream-ui/core 0.11.8 → 0.11.10

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 (272) hide show
  1. package/dist/index.d.mts +176 -9
  2. package/dist/index.d.ts +176 -9
  3. package/dist/index.js +1297 -905
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +1294 -905
  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 +4 -2
  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/cover-image.manifest.json +1 -1
  30. package/dist/manifests/cta-section.manifest.json +1 -1
  31. package/dist/manifests/data-table.manifest.json +22 -1
  32. package/dist/manifests/date-picker-popover.manifest.json +1 -1
  33. package/dist/manifests/date-picker.manifest.json +1 -1
  34. package/dist/manifests/date-range-picker.manifest.json +1 -1
  35. package/dist/manifests/deal-card.manifest.json +1 -1
  36. package/dist/manifests/dialog.manifest.json +1 -1
  37. package/dist/manifests/document-card.manifest.json +1 -1
  38. package/dist/manifests/drawer.manifest.json +1 -1
  39. package/dist/manifests/empty-state.manifest.json +1 -1
  40. package/dist/manifests/entity-card.manifest.json +1 -1
  41. package/dist/manifests/feature-grid.manifest.json +1 -1
  42. package/dist/manifests/feature-row.manifest.json +1 -1
  43. package/dist/manifests/fieldset.manifest.json +1 -1
  44. package/dist/manifests/file-upload.manifest.json +1 -1
  45. package/dist/manifests/filter-bar.manifest.json +1 -1
  46. package/dist/manifests/filter-chips.manifest.json +1 -1
  47. package/dist/manifests/filter-panel.manifest.json +1 -1
  48. package/dist/manifests/flex.manifest.json +1 -1
  49. package/dist/manifests/form-field.manifest.json +1 -1
  50. package/dist/manifests/form-layout.manifest.json +1 -1
  51. package/dist/manifests/form.manifest.json +1 -1
  52. package/dist/manifests/grid.manifest.json +1 -1
  53. package/dist/manifests/heading.manifest.json +1 -1
  54. package/dist/manifests/hero.manifest.json +1 -1
  55. package/dist/manifests/image.manifest.json +1 -1
  56. package/dist/manifests/input-group.manifest.json +1 -1
  57. package/dist/manifests/input.manifest.json +1 -1
  58. package/dist/manifests/label.manifest.json +1 -1
  59. package/dist/manifests/link-tabs.manifest.json +1 -1
  60. package/dist/manifests/link.manifest.json +1 -1
  61. package/dist/manifests/list-toolbar.manifest.json +120 -0
  62. package/dist/manifests/list.manifest.json +1 -1
  63. package/dist/manifests/load-more.manifest.json +1 -1
  64. package/dist/manifests/logo-cloud.manifest.json +1 -1
  65. package/dist/manifests/media-card.manifest.json +161 -0
  66. package/dist/manifests/menu.manifest.json +1 -1
  67. package/dist/manifests/metric-card.manifest.json +1 -1
  68. package/dist/manifests/month-schedule.manifest.json +217 -0
  69. package/dist/manifests/multi-select.manifest.json +1 -1
  70. package/dist/manifests/newsletter.manifest.json +1 -1
  71. package/dist/manifests/page-header.manifest.json +1 -1
  72. package/dist/manifests/pagination.manifest.json +1 -1
  73. package/dist/manifests/password-input.manifest.json +1 -1
  74. package/dist/manifests/popover.manifest.json +1 -1
  75. package/dist/manifests/process-steps.manifest.json +1 -1
  76. package/dist/manifests/progress.manifest.json +1 -1
  77. package/dist/manifests/prose.manifest.json +1 -1
  78. package/dist/manifests/radio.manifest.json +1 -1
  79. package/dist/manifests/range-slider.manifest.json +1 -1
  80. package/dist/manifests/search.manifest.json +1 -1
  81. package/dist/manifests/section-heading.manifest.json +1 -1
  82. package/dist/manifests/section.manifest.json +1 -1
  83. package/dist/manifests/segmented-control.manifest.json +4 -4
  84. package/dist/manifests/select-menu.manifest.json +1 -1
  85. package/dist/manifests/select.manifest.json +1 -1
  86. package/dist/manifests/separator.manifest.json +1 -1
  87. package/dist/manifests/site-footer.manifest.json +1 -1
  88. package/dist/manifests/site-header.manifest.json +1 -1
  89. package/dist/manifests/skeleton.manifest.json +1 -1
  90. package/dist/manifests/spinner.manifest.json +1 -1
  91. package/dist/manifests/stat-band.manifest.json +1 -1
  92. package/dist/manifests/stepper.manifest.json +1 -1
  93. package/dist/manifests/switch.manifest.json +1 -1
  94. package/dist/manifests/table-card.manifest.json +1 -1
  95. package/dist/manifests/table-of-contents.manifest.json +1 -1
  96. package/dist/manifests/table.manifest.json +1 -1
  97. package/dist/manifests/tabs.manifest.json +1 -1
  98. package/dist/manifests/testimonial.manifest.json +1 -1
  99. package/dist/manifests/text.manifest.json +1 -1
  100. package/dist/manifests/textarea.manifest.json +1 -1
  101. package/dist/manifests/theme-toggle.manifest.json +1 -1
  102. package/dist/manifests/time-picker.manifest.json +1 -1
  103. package/dist/manifests/timeline.manifest.json +1 -1
  104. package/dist/manifests/toast.manifest.json +1 -1
  105. package/dist/manifests/tombstone-card.manifest.json +1 -1
  106. package/dist/manifests/tooltip.manifest.json +1 -1
  107. package/dist/src/components/button/Button.d.ts +2 -2
  108. package/dist/src/components/button/Button.js +1 -0
  109. package/dist/src/components/button/Button.js.map +1 -1
  110. package/dist/src/components/button/Button.mjs +1 -0
  111. package/dist/src/components/button/Button.mjs.map +1 -1
  112. package/dist/src/components/data-table/DataTable.d.ts +12 -1
  113. package/dist/src/components/data-table/DataTable.js +189 -112
  114. package/dist/src/components/data-table/DataTable.js.map +1 -1
  115. package/dist/src/components/data-table/DataTable.mjs +189 -112
  116. package/dist/src/components/data-table/DataTable.mjs.map +1 -1
  117. package/dist/src/components/list-toolbar/ListToolbar.d.ts +25 -0
  118. package/dist/src/components/list-toolbar/ListToolbar.js +68 -0
  119. package/dist/src/components/list-toolbar/ListToolbar.js.map +1 -0
  120. package/dist/src/components/list-toolbar/ListToolbar.mjs +44 -0
  121. package/dist/src/components/list-toolbar/ListToolbar.mjs.map +1 -0
  122. package/dist/src/components/list-toolbar/index.d.ts +1 -0
  123. package/dist/src/components/list-toolbar/index.js +23 -0
  124. package/dist/src/components/list-toolbar/index.js.map +1 -0
  125. package/dist/src/components/list-toolbar/index.mjs +2 -0
  126. package/dist/src/components/list-toolbar/index.mjs.map +1 -0
  127. package/dist/src/components/media-card/MediaCard.d.ts +61 -0
  128. package/dist/src/components/media-card/MediaCard.js +88 -0
  129. package/dist/src/components/media-card/MediaCard.js.map +1 -0
  130. package/dist/src/components/media-card/MediaCard.mjs +54 -0
  131. package/dist/src/components/media-card/MediaCard.mjs.map +1 -0
  132. package/dist/src/components/media-card/index.d.ts +1 -0
  133. package/dist/src/components/media-card/index.js +23 -0
  134. package/dist/src/components/media-card/index.js.map +1 -0
  135. package/dist/src/components/media-card/index.mjs +2 -0
  136. package/dist/src/components/media-card/index.mjs.map +1 -0
  137. package/dist/src/components/month-schedule/MonthSchedule.d.ts +56 -0
  138. package/dist/src/components/month-schedule/MonthSchedule.js +245 -0
  139. package/dist/src/components/month-schedule/MonthSchedule.js.map +1 -0
  140. package/dist/src/components/month-schedule/MonthSchedule.mjs +219 -0
  141. package/dist/src/components/month-schedule/MonthSchedule.mjs.map +1 -0
  142. package/dist/src/components/month-schedule/index.d.ts +1 -0
  143. package/dist/src/components/month-schedule/index.js +23 -0
  144. package/dist/src/components/month-schedule/index.js.map +1 -0
  145. package/dist/src/components/month-schedule/index.mjs +2 -0
  146. package/dist/src/components/month-schedule/index.mjs.map +1 -0
  147. package/dist/src/components/segmented-control/SegmentedControl.d.ts +20 -4
  148. package/dist/src/components/segmented-control/SegmentedControl.js +17 -3
  149. package/dist/src/components/segmented-control/SegmentedControl.js.map +1 -1
  150. package/dist/src/components/segmented-control/SegmentedControl.mjs +17 -3
  151. package/dist/src/components/segmented-control/SegmentedControl.mjs.map +1 -1
  152. package/dist/src/index.d.ts +3 -0
  153. package/dist/styles-full.css +1 -1
  154. package/dist/styles.css +1 -1
  155. package/package.json +3 -3
  156. package/src/components/button/Button.ssr.test.tsx +1 -1
  157. package/src/components/button/Button.test.tsx +6 -0
  158. package/src/components/button/Button.tsx +1 -0
  159. package/src/components/data-table/DataTable.test.tsx +99 -0
  160. package/src/components/data-table/DataTable.tsx +115 -1
  161. package/src/components/list-toolbar/ListToolbar.test.tsx +50 -0
  162. package/src/components/list-toolbar/ListToolbar.tsx +64 -0
  163. package/src/components/list-toolbar/index.ts +1 -0
  164. package/src/components/media-card/MediaCard.test.tsx +97 -0
  165. package/src/components/media-card/MediaCard.tsx +116 -0
  166. package/src/components/media-card/index.ts +1 -0
  167. package/src/components/month-schedule/MonthSchedule.test.tsx +137 -0
  168. package/src/components/month-schedule/MonthSchedule.tsx +332 -0
  169. package/src/components/month-schedule/index.ts +1 -0
  170. package/src/components/segmented-control/SegmentedControl.test.tsx +51 -0
  171. package/src/components/segmented-control/SegmentedControl.tsx +36 -4
  172. package/src/index.ts +3 -0
  173. package/src/manifests/accordion.manifest.json +1 -1
  174. package/src/manifests/alert.manifest.json +1 -1
  175. package/src/manifests/announcement-bar.manifest.json +1 -1
  176. package/src/manifests/app-shell.manifest.json +1 -1
  177. package/src/manifests/applied-filters.manifest.json +1 -1
  178. package/src/manifests/article-card.manifest.json +1 -1
  179. package/src/manifests/auth-layout.manifest.json +1 -1
  180. package/src/manifests/autocomplete.manifest.json +1 -1
  181. package/src/manifests/avatar.manifest.json +1 -1
  182. package/src/manifests/badge.manifest.json +1 -1
  183. package/src/manifests/block.manifest.json +1 -1
  184. package/src/manifests/bottom-nav.manifest.json +1 -1
  185. package/src/manifests/breadcrumb.manifest.json +1 -1
  186. package/src/manifests/button-group.manifest.json +1 -1
  187. package/src/manifests/button.manifest.json +4 -2
  188. package/src/manifests/calendar.manifest.json +1 -1
  189. package/src/manifests/card.manifest.json +1 -1
  190. package/src/manifests/checkbox.manifest.json +1 -1
  191. package/src/manifests/comparison-table.manifest.json +1 -1
  192. package/src/manifests/confirm-dialog.manifest.json +1 -1
  193. package/src/manifests/contact-strip.manifest.json +1 -1
  194. package/src/manifests/container.manifest.json +1 -1
  195. package/src/manifests/cover-image.manifest.json +1 -1
  196. package/src/manifests/cta-section.manifest.json +1 -1
  197. package/src/manifests/data-table.manifest.json +22 -1
  198. package/src/manifests/date-picker-popover.manifest.json +1 -1
  199. package/src/manifests/date-picker.manifest.json +1 -1
  200. package/src/manifests/date-range-picker.manifest.json +1 -1
  201. package/src/manifests/deal-card.manifest.json +1 -1
  202. package/src/manifests/dialog.manifest.json +1 -1
  203. package/src/manifests/document-card.manifest.json +1 -1
  204. package/src/manifests/drawer.manifest.json +1 -1
  205. package/src/manifests/empty-state.manifest.json +1 -1
  206. package/src/manifests/entity-card.manifest.json +1 -1
  207. package/src/manifests/feature-grid.manifest.json +1 -1
  208. package/src/manifests/feature-row.manifest.json +1 -1
  209. package/src/manifests/fieldset.manifest.json +1 -1
  210. package/src/manifests/file-upload.manifest.json +1 -1
  211. package/src/manifests/filter-bar.manifest.json +1 -1
  212. package/src/manifests/filter-chips.manifest.json +1 -1
  213. package/src/manifests/filter-panel.manifest.json +1 -1
  214. package/src/manifests/flex.manifest.json +1 -1
  215. package/src/manifests/form-field.manifest.json +1 -1
  216. package/src/manifests/form-layout.manifest.json +1 -1
  217. package/src/manifests/form.manifest.json +1 -1
  218. package/src/manifests/grid.manifest.json +1 -1
  219. package/src/manifests/heading.manifest.json +1 -1
  220. package/src/manifests/hero.manifest.json +1 -1
  221. package/src/manifests/image.manifest.json +1 -1
  222. package/src/manifests/input-group.manifest.json +1 -1
  223. package/src/manifests/input.manifest.json +1 -1
  224. package/src/manifests/label.manifest.json +1 -1
  225. package/src/manifests/link-tabs.manifest.json +1 -1
  226. package/src/manifests/link.manifest.json +1 -1
  227. package/src/manifests/list-toolbar.manifest.json +120 -0
  228. package/src/manifests/list.manifest.json +1 -1
  229. package/src/manifests/load-more.manifest.json +1 -1
  230. package/src/manifests/logo-cloud.manifest.json +1 -1
  231. package/src/manifests/media-card.manifest.json +161 -0
  232. package/src/manifests/menu.manifest.json +1 -1
  233. package/src/manifests/metric-card.manifest.json +1 -1
  234. package/src/manifests/month-schedule.manifest.json +217 -0
  235. package/src/manifests/multi-select.manifest.json +1 -1
  236. package/src/manifests/newsletter.manifest.json +1 -1
  237. package/src/manifests/page-header.manifest.json +1 -1
  238. package/src/manifests/pagination.manifest.json +1 -1
  239. package/src/manifests/password-input.manifest.json +1 -1
  240. package/src/manifests/popover.manifest.json +1 -1
  241. package/src/manifests/process-steps.manifest.json +1 -1
  242. package/src/manifests/progress.manifest.json +1 -1
  243. package/src/manifests/prose.manifest.json +1 -1
  244. package/src/manifests/radio.manifest.json +1 -1
  245. package/src/manifests/range-slider.manifest.json +1 -1
  246. package/src/manifests/search.manifest.json +1 -1
  247. package/src/manifests/section-heading.manifest.json +1 -1
  248. package/src/manifests/section.manifest.json +1 -1
  249. package/src/manifests/segmented-control.manifest.json +4 -4
  250. package/src/manifests/select-menu.manifest.json +1 -1
  251. package/src/manifests/select.manifest.json +1 -1
  252. package/src/manifests/separator.manifest.json +1 -1
  253. package/src/manifests/site-footer.manifest.json +1 -1
  254. package/src/manifests/site-header.manifest.json +1 -1
  255. package/src/manifests/skeleton.manifest.json +1 -1
  256. package/src/manifests/spinner.manifest.json +1 -1
  257. package/src/manifests/stat-band.manifest.json +1 -1
  258. package/src/manifests/stepper.manifest.json +1 -1
  259. package/src/manifests/switch.manifest.json +1 -1
  260. package/src/manifests/table-card.manifest.json +1 -1
  261. package/src/manifests/table-of-contents.manifest.json +1 -1
  262. package/src/manifests/table.manifest.json +1 -1
  263. package/src/manifests/tabs.manifest.json +1 -1
  264. package/src/manifests/testimonial.manifest.json +1 -1
  265. package/src/manifests/text.manifest.json +1 -1
  266. package/src/manifests/textarea.manifest.json +1 -1
  267. package/src/manifests/theme-toggle.manifest.json +1 -1
  268. package/src/manifests/time-picker.manifest.json +1 -1
  269. package/src/manifests/timeline.manifest.json +1 -1
  270. package/src/manifests/toast.manifest.json +1 -1
  271. package/src/manifests/tombstone-card.manifest.json +1 -1
  272. package/src/manifests/tooltip.manifest.json +1 -1
@@ -161,7 +161,7 @@
161
161
  ],
162
162
  "package": "@slipstream-ui/core",
163
163
  "importPath": "@slipstream-ui/core",
164
- "version": "0.11.8",
164
+ "version": "0.11.10",
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.8",
7
+ "version": "0.11.10",
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.8",
7
+ "version": "0.11.10",
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.8",
7
+ "version": "0.11.10",
8
8
  "sourceDir": "segmented-control",
9
9
  "exportName": "SegmentedControl",
10
10
  "description": "Single- or multi-select segmented control for view and filter switches.",
@@ -14,7 +14,7 @@
14
14
  "name": "options",
15
15
  "type": "SegmentedOption[]",
16
16
  "required": true,
17
- "description": "Segments to render: value, label, optional icon, disabled, and href. An option with href renders as a link (view-switch navigation that survives refresh and works without JavaScript); the active segment becomes a non-link aria-current=\"page\" marker."
17
+ "description": "Segments to render: value, label, optional icon, hint, disabled, and href. An option with href renders as a link (view-switch navigation that survives refresh and works without JavaScript); the active segment becomes a non-link aria-current=\"page\" marker."
18
18
  },
19
19
  {
20
20
  "name": "value",
@@ -55,10 +55,10 @@
55
55
  },
56
56
  {
57
57
  "name": "fullWidth",
58
- "type": "boolean",
58
+ "type": "boolean | 'sm' | 'md' | 'lg' | 'xl' | '2xl'",
59
59
  "required": false,
60
60
  "defaultValue": "false",
61
- "description": "Stretch segments to fill the container width."
61
+ "description": "Stretch segments to fill the container width. A breakpoint string fills only below that breakpoint and hugs content at and above it."
62
62
  },
63
63
  {
64
64
  "name": "linkComponent",
@@ -4,7 +4,7 @@
4
4
  "tier": "molecule",
5
5
  "package": "@slipstream-ui/core",
6
6
  "importPath": "@slipstream-ui/core",
7
- "version": "0.11.8",
7
+ "version": "0.11.10",
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.8",
133
+ "version": "0.11.10",
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.8",
87
+ "version": "0.11.10",
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.8",
7
+ "version": "0.11.10",
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.8",
7
+ "version": "0.11.10",
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.8",
129
+ "version": "0.11.10",
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.8",
55
+ "version": "0.11.10",
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.8",
7
+ "version": "0.11.10",
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.8",
162
+ "version": "0.11.10",
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.8",
105
+ "version": "0.11.10",
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.8",
7
+ "version": "0.11.10",
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.8",
7
+ "version": "0.11.10",
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.8",
81
+ "version": "0.11.10",
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.8",
141
+ "version": "0.11.10",
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.8",
7
+ "version": "0.11.10",
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.8",
110
+ "version": "0.11.10",
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.8",
105
+ "version": "0.11.10",
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.8",
115
+ "version": "0.11.10",
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.8",
90
+ "version": "0.11.10",
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.8",
66
+ "version": "0.11.10",
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.8",
164
+ "version": "0.11.10",
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.8",
7
+ "version": "0.11.10",
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.8",
123
+ "version": "0.11.10",
124
124
  "sourceDir": "tooltip",
125
125
  "exportName": "Tooltip"
126
126
  }
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { type VariantProps } from 'class-variance-authority';
3
3
  declare const buttonVariants: (props?: ({
4
4
  variant?: "link" | "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-destructive" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "ghost" | "contrast" | "onDark" | null | undefined;
5
- size?: "sm" | "lg" | "default" | "icon" | null | undefined;
5
+ size?: "sm" | "lg" | "default" | "xs" | "icon" | null | undefined;
6
6
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
7
  export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {
8
8
  asChild?: boolean;
@@ -13,7 +13,7 @@ export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & Varian
13
13
  };
14
14
  declare const Button: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<(props?: ({
15
15
  variant?: "link" | "default" | "primary" | "destructive" | "danger" | "success" | "warning" | "info" | "outline" | "outline-destructive" | "outline-success" | "outline-warning" | "outline-info" | "secondary" | "ghost" | "contrast" | "onDark" | null | undefined;
16
- size?: "sm" | "lg" | "default" | "icon" | null | undefined;
16
+ size?: "sm" | "lg" | "default" | "xs" | "icon" | null | undefined;
17
17
  } & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
18
18
  asChild?: boolean;
19
19
  /** Shows a spinner, disables the button and sets aria-busy while an action runs. */
@@ -71,6 +71,7 @@ const buttonVariants = (0, import_class_variance_authority.cva)(
71
71
  size: {
72
72
  default: "h-10 px-4 py-2",
73
73
  sm: "h-9 rounded-md px-3",
74
+ xs: "h-8 rounded-md px-2.5 text-xs",
74
75
  lg: "h-11 rounded-md px-8",
75
76
  icon: "h-10 w-10"
76
77
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n danger: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n // Semantic status variants — foregrounds are the paired AA tokens\n // (white on dark green, ink on amber/cyan) in both themes.\n success: 'bg-success text-success-foreground hover:bg-success/90',\n warning: 'bg-warning text-warning-foreground hover:bg-warning/90',\n info: 'bg-info text-info-foreground hover:bg-info/90',\n outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\n // Colored outlines: semantic border + AA ink label on the page\n // surface, with a faint tint on hover - mirrors the Alert recipe.\n 'outline-destructive':\n 'border border-destructive/50 bg-background text-destructive hover:border-destructive hover:bg-destructive/10',\n 'outline-success':\n 'border border-success/50 bg-background text-success hover:border-success hover:bg-success/10',\n 'outline-warning':\n 'border border-warning/50 bg-background text-warning-ink hover:border-warning hover:bg-warning/10',\n 'outline-info':\n 'border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary-ink underline-offset-4 hover:underline',\n // High-contrast fills for hero and other always-dark surfaces. These\n // do not read the theme surface, so they stay legible in both modes.\n // Fixed ink, not --primary: in dark mode --primary lightens and would\n // sit at low contrast on the white surface.\n contrast: 'bg-white text-slate-900 shadow-sm hover:bg-slate-100',\n onDark:\n 'border border-white/45 bg-transparent text-white hover:border-white/70 hover:bg-white/10',\n },\n size: {\n default: 'h-10 px-4 py-2',\n sm: 'h-9 rounded-md px-3',\n lg: 'h-11 rounded-md px-8',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n /** Shows a spinner, disables the button and sets aria-busy while an action runs. */\n loading?: boolean;\n /** Screen-reader text while loading (default \"Loading\"). */\n loadingLabel?: string;\n};\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, loading = false, loadingLabel = 'Loading', disabled, children, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n if (asChild) {\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props}>\n {children}\n </Comp>\n );\n }\n return (\n <button\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n {...props}\n >\n {loading && (\n <span\n aria-hidden=\"true\"\n className=\"h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-current border-t-transparent\"\n />\n )}\n {loading && <span className=\"sr-only\">{loadingLabel}</span>}\n {children}\n </button>\n );\n }\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoEQ;AApER,YAAuB;AACvB,wBAAqB;AACrB,sCAAuC;AACvC,gBAAmB;AAEnB,MAAM,qBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,SAAS;AAAA,QACT,aAAa;AAAA,QACb,QAAQ;AAAA;AAAA;AAAA,QAGR,SAAS;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA;AAAA;AAAA,QAGT,uBACE;AAAA,QACF,mBACE;AAAA,QACF,mBACE;AAAA,QACF,gBACE;AAAA,QACF,WAAW;AAAA,QACX,OAAO;AAAA,QACP,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,QAKN,UAAU;AAAA,QACV,QACE;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAUA,MAAM,SAAS,MAAM;AAAA,EACnB,CAAC,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,UAAU,OAAO,eAAe,WAAW,UAAU,UAAU,GAAG,MAAM,GAAG,QAAQ;AAC/H,UAAM,OAAO,UAAU,yBAAO;AAC9B,QAAI,SAAS;AACX,aACE,4CAAC,QAAK,eAAW,cAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC,GAAG,KAAW,GAAG,OAC9E,UACH;AAAA,IAEJ;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,cAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC;AAAA,QAC1D;AAAA,QACA,UAAU,YAAY;AAAA,QACtB,aAAW,WAAW;AAAA,QACrB,GAAG;AAAA,QAEH;AAAA,qBACC;AAAA,YAAC;AAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA;AAAA,UACZ;AAAA,UAED,WAAW,4CAAC,UAAK,WAAU,WAAW,wBAAa;AAAA,UACnD;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,OAAO,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n danger: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n // Semantic status variants — foregrounds are the paired AA tokens\n // (white on dark green, ink on amber/cyan) in both themes.\n success: 'bg-success text-success-foreground hover:bg-success/90',\n warning: 'bg-warning text-warning-foreground hover:bg-warning/90',\n info: 'bg-info text-info-foreground hover:bg-info/90',\n outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\n // Colored outlines: semantic border + AA ink label on the page\n // surface, with a faint tint on hover - mirrors the Alert recipe.\n 'outline-destructive':\n 'border border-destructive/50 bg-background text-destructive hover:border-destructive hover:bg-destructive/10',\n 'outline-success':\n 'border border-success/50 bg-background text-success hover:border-success hover:bg-success/10',\n 'outline-warning':\n 'border border-warning/50 bg-background text-warning-ink hover:border-warning hover:bg-warning/10',\n 'outline-info':\n 'border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary-ink underline-offset-4 hover:underline',\n // High-contrast fills for hero and other always-dark surfaces. These\n // do not read the theme surface, so they stay legible in both modes.\n // Fixed ink, not --primary: in dark mode --primary lightens and would\n // sit at low contrast on the white surface.\n contrast: 'bg-white text-slate-900 shadow-sm hover:bg-slate-100',\n onDark:\n 'border border-white/45 bg-transparent text-white hover:border-white/70 hover:bg-white/10',\n },\n size: {\n default: 'h-10 px-4 py-2',\n sm: 'h-9 rounded-md px-3',\n xs: 'h-8 rounded-md px-2.5 text-xs',\n lg: 'h-11 rounded-md px-8',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n /** Shows a spinner, disables the button and sets aria-busy while an action runs. */\n loading?: boolean;\n /** Screen-reader text while loading (default \"Loading\"). */\n loadingLabel?: string;\n};\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, loading = false, loadingLabel = 'Loading', disabled, children, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n if (asChild) {\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props}>\n {children}\n </Comp>\n );\n }\n return (\n <button\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n {...props}\n >\n {loading && (\n <span\n aria-hidden=\"true\"\n className=\"h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-current border-t-transparent\"\n />\n )}\n {loading && <span className=\"sr-only\">{loadingLabel}</span>}\n {children}\n </button>\n );\n }\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAqEQ;AArER,YAAuB;AACvB,wBAAqB;AACrB,sCAAuC;AACvC,gBAAmB;AAEnB,MAAM,qBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,SAAS;AAAA,QACT,aAAa;AAAA,QACb,QAAQ;AAAA;AAAA;AAAA,QAGR,SAAS;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA;AAAA;AAAA,QAGT,uBACE;AAAA,QACF,mBACE;AAAA,QACF,mBACE;AAAA,QACF,gBACE;AAAA,QACF,WAAW;AAAA,QACX,OAAO;AAAA,QACP,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,QAKN,UAAU;AAAA,QACV,QACE;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAUA,MAAM,SAAS,MAAM;AAAA,EACnB,CAAC,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,UAAU,OAAO,eAAe,WAAW,UAAU,UAAU,GAAG,MAAM,GAAG,QAAQ;AAC/H,UAAM,OAAO,UAAU,yBAAO;AAC9B,QAAI,SAAS;AACX,aACE,4CAAC,QAAK,eAAW,cAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC,GAAG,KAAW,GAAG,OAC9E,UACH;AAAA,IAEJ;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,eAAW,cAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC;AAAA,QAC1D;AAAA,QACA,UAAU,YAAY;AAAA,QACtB,aAAW,WAAW;AAAA,QACrB,GAAG;AAAA,QAEH;AAAA,qBACC;AAAA,YAAC;AAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA;AAAA,UACZ;AAAA,UAED,WAAW,4CAAC,UAAK,WAAU,WAAW,wBAAa;AAAA,UACnD;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,OAAO,cAAc;","names":[]}
@@ -37,6 +37,7 @@ const buttonVariants = cva(
37
37
  size: {
38
38
  default: "h-10 px-4 py-2",
39
39
  sm: "h-9 rounded-md px-3",
40
+ xs: "h-8 rounded-md px-2.5 text-xs",
40
41
  lg: "h-11 rounded-md px-8",
41
42
  icon: "h-10 w-10"
42
43
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n danger: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n // Semantic status variants — foregrounds are the paired AA tokens\n // (white on dark green, ink on amber/cyan) in both themes.\n success: 'bg-success text-success-foreground hover:bg-success/90',\n warning: 'bg-warning text-warning-foreground hover:bg-warning/90',\n info: 'bg-info text-info-foreground hover:bg-info/90',\n outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\n // Colored outlines: semantic border + AA ink label on the page\n // surface, with a faint tint on hover - mirrors the Alert recipe.\n 'outline-destructive':\n 'border border-destructive/50 bg-background text-destructive hover:border-destructive hover:bg-destructive/10',\n 'outline-success':\n 'border border-success/50 bg-background text-success hover:border-success hover:bg-success/10',\n 'outline-warning':\n 'border border-warning/50 bg-background text-warning-ink hover:border-warning hover:bg-warning/10',\n 'outline-info':\n 'border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary-ink underline-offset-4 hover:underline',\n // High-contrast fills for hero and other always-dark surfaces. These\n // do not read the theme surface, so they stay legible in both modes.\n // Fixed ink, not --primary: in dark mode --primary lightens and would\n // sit at low contrast on the white surface.\n contrast: 'bg-white text-slate-900 shadow-sm hover:bg-slate-100',\n onDark:\n 'border border-white/45 bg-transparent text-white hover:border-white/70 hover:bg-white/10',\n },\n size: {\n default: 'h-10 px-4 py-2',\n sm: 'h-9 rounded-md px-3',\n lg: 'h-11 rounded-md px-8',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n /** Shows a spinner, disables the button and sets aria-busy while an action runs. */\n loading?: boolean;\n /** Screen-reader text while loading (default \"Loading\"). */\n loadingLabel?: string;\n};\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, loading = false, loadingLabel = 'Loading', disabled, children, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n if (asChild) {\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props}>\n {children}\n </Comp>\n );\n }\n return (\n <button\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n {...props}\n >\n {loading && (\n <span\n aria-hidden=\"true\"\n className=\"h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-current border-t-transparent\"\n />\n )}\n {loading && <span className=\"sr-only\">{loadingLabel}</span>}\n {children}\n </button>\n );\n }\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\n"],"mappings":"AAoEQ,cAMF,YANE;AApER,YAAY,WAAW;AACvB,SAAS,YAAY;AACrB,SAAS,WAA8B;AACvC,SAAS,UAAU;AAEnB,MAAM,iBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,SAAS;AAAA,QACT,aAAa;AAAA,QACb,QAAQ;AAAA;AAAA;AAAA,QAGR,SAAS;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA;AAAA;AAAA,QAGT,uBACE;AAAA,QACF,mBACE;AAAA,QACF,mBACE;AAAA,QACF,gBACE;AAAA,QACF,WAAW;AAAA,QACX,OAAO;AAAA,QACP,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,QAKN,UAAU;AAAA,QACV,QACE;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAUA,MAAM,SAAS,MAAM;AAAA,EACnB,CAAC,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,UAAU,OAAO,eAAe,WAAW,UAAU,UAAU,GAAG,MAAM,GAAG,QAAQ;AAC/H,UAAM,OAAO,UAAU,OAAO;AAC9B,QAAI,SAAS;AACX,aACE,oBAAC,QAAK,WAAW,GAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC,GAAG,KAAW,GAAG,OAC9E,UACH;AAAA,IAEJ;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,GAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC;AAAA,QAC1D;AAAA,QACA,UAAU,YAAY;AAAA,QACtB,aAAW,WAAW;AAAA,QACrB,GAAG;AAAA,QAEH;AAAA,qBACC;AAAA,YAAC;AAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA;AAAA,UACZ;AAAA,UAED,WAAW,oBAAC,UAAK,WAAU,WAAW,wBAAa;AAAA,UACnD;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,OAAO,cAAc;","names":[]}
1
+ {"version":3,"sources":["../../../../src/components/button/Button.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Slot } from '@radix-ui/react-slot';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { cn } from '../../utils/cn';\n\nconst buttonVariants = cva(\n 'inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0',\n {\n variants: {\n variant: {\n default: 'bg-primary text-primary-foreground hover:bg-primary/90',\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n danger: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n // Semantic status variants — foregrounds are the paired AA tokens\n // (white on dark green, ink on amber/cyan) in both themes.\n success: 'bg-success text-success-foreground hover:bg-success/90',\n warning: 'bg-warning text-warning-foreground hover:bg-warning/90',\n info: 'bg-info text-info-foreground hover:bg-info/90',\n outline: 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\n // Colored outlines: semantic border + AA ink label on the page\n // surface, with a faint tint on hover - mirrors the Alert recipe.\n 'outline-destructive':\n 'border border-destructive/50 bg-background text-destructive hover:border-destructive hover:bg-destructive/10',\n 'outline-success':\n 'border border-success/50 bg-background text-success hover:border-success hover:bg-success/10',\n 'outline-warning':\n 'border border-warning/50 bg-background text-warning-ink hover:border-warning hover:bg-warning/10',\n 'outline-info':\n 'border border-info/50 bg-background text-info-ink hover:border-info hover:bg-info/10',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n ghost: 'hover:bg-accent hover:text-accent-foreground',\n link: 'text-primary-ink underline-offset-4 hover:underline',\n // High-contrast fills for hero and other always-dark surfaces. These\n // do not read the theme surface, so they stay legible in both modes.\n // Fixed ink, not --primary: in dark mode --primary lightens and would\n // sit at low contrast on the white surface.\n contrast: 'bg-white text-slate-900 shadow-sm hover:bg-slate-100',\n onDark:\n 'border border-white/45 bg-transparent text-white hover:border-white/70 hover:bg-white/10',\n },\n size: {\n default: 'h-10 px-4 py-2',\n sm: 'h-9 rounded-md px-3',\n xs: 'h-8 rounded-md px-2.5 text-xs',\n lg: 'h-11 rounded-md px-8',\n icon: 'h-10 w-10',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & VariantProps<typeof buttonVariants> & {\n asChild?: boolean;\n /** Shows a spinner, disables the button and sets aria-busy while an action runs. */\n loading?: boolean;\n /** Screen-reader text while loading (default \"Loading\"). */\n loadingLabel?: string;\n};\n\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\n ({ className, variant, size, asChild = false, loading = false, loadingLabel = 'Loading', disabled, children, ...props }, ref) => {\n const Comp = asChild ? Slot : 'button';\n if (asChild) {\n return (\n <Comp className={cn(buttonVariants({ variant, size, className }))} ref={ref} {...props}>\n {children}\n </Comp>\n );\n }\n return (\n <button\n className={cn(buttonVariants({ variant, size, className }))}\n ref={ref}\n disabled={disabled || loading}\n aria-busy={loading || undefined}\n {...props}\n >\n {loading && (\n <span\n aria-hidden=\"true\"\n className=\"h-4 w-4 shrink-0 animate-spin rounded-full border-2 border-current border-t-transparent\"\n />\n )}\n {loading && <span className=\"sr-only\">{loadingLabel}</span>}\n {children}\n </button>\n );\n }\n);\nButton.displayName = 'Button';\n\nexport { Button, buttonVariants };\n"],"mappings":"AAqEQ,cAMF,YANE;AArER,YAAY,WAAW;AACvB,SAAS,YAAY;AACrB,SAAS,WAA8B;AACvC,SAAS,UAAU;AAEnB,MAAM,iBAAiB;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,SAAS;AAAA,QACT,aAAa;AAAA,QACb,QAAQ;AAAA;AAAA;AAAA,QAGR,SAAS;AAAA,QACT,SAAS;AAAA,QACT,MAAM;AAAA,QACN,SAAS;AAAA;AAAA;AAAA,QAGT,uBACE;AAAA,QACF,mBACE;AAAA,QACF,mBACE;AAAA,QACF,gBACE;AAAA,QACF,WAAW;AAAA,QACX,OAAO;AAAA,QACP,MAAM;AAAA;AAAA;AAAA;AAAA;AAAA,QAKN,UAAU;AAAA,QACV,QACE;AAAA,MACJ;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA,MACf,SAAS;AAAA,MACT,MAAM;AAAA,IACR;AAAA,EACF;AACF;AAUA,MAAM,SAAS,MAAM;AAAA,EACnB,CAAC,EAAE,WAAW,SAAS,MAAM,UAAU,OAAO,UAAU,OAAO,eAAe,WAAW,UAAU,UAAU,GAAG,MAAM,GAAG,QAAQ;AAC/H,UAAM,OAAO,UAAU,OAAO;AAC9B,QAAI,SAAS;AACX,aACE,oBAAC,QAAK,WAAW,GAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC,GAAG,KAAW,GAAG,OAC9E,UACH;AAAA,IAEJ;AACA,WACE;AAAA,MAAC;AAAA;AAAA,QACC,WAAW,GAAG,eAAe,EAAE,SAAS,MAAM,UAAU,CAAC,CAAC;AAAA,QAC1D;AAAA,QACA,UAAU,YAAY;AAAA,QACtB,aAAW,WAAW;AAAA,QACrB,GAAG;AAAA,QAEH;AAAA,qBACC;AAAA,YAAC;AAAA;AAAA,cACC,eAAY;AAAA,cACZ,WAAU;AAAA;AAAA,UACZ;AAAA,UAED,WAAW,oBAAC,UAAK,WAAU,WAAW,wBAAa;AAAA,UACnD;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AACA,OAAO,cAAc;","names":[]}
@@ -18,6 +18,8 @@ export type DataTableColumn<T> = {
18
18
  onClick?: (row: T) => void;
19
19
  };
20
20
  export type SortIconState = 'none' | 'asc' | 'desc';
21
+ /** Viewport breakpoint below which card layout takes over. */
22
+ export type DataTableCardBreakpoint = 'sm' | 'md' | 'lg' | 'xl' | '2xl';
21
23
  export type DataTableProps<T> = {
22
24
  /** Column configuration — everything about the table's shape. */
23
25
  columns: DataTableColumn<T>[];
@@ -76,6 +78,15 @@ export type DataTableProps<T> = {
76
78
  density?: 'default' | 'compact';
77
79
  /** Zebra-striped rows. */
78
80
  zebra?: boolean;
81
+ /**
82
+ * Responsive card fallback: below the given breakpoint each row renders as
83
+ * a definition-list card (column headers become field labels) instead of a
84
+ * table row — the fix for unreadable horizontal scroll on narrow viewports.
85
+ * `true` enables it below `md` (768px); a string picks the breakpoint.
86
+ * Both layouts are rendered and swapped with CSS only, so sorting,
87
+ * selection, pagination, and row callbacks behave identically in each.
88
+ */
89
+ cardLayout?: boolean | DataTableCardBreakpoint;
79
90
  /** Render skeleton placeholder rows (announced via aria-busy). */
80
91
  loading?: boolean;
81
92
  /**
@@ -92,4 +103,4 @@ export type DataTableProps<T> = {
92
103
  * aria-sort, cursor pagination when `pageSize` is set, and a friendly empty
93
104
  * state — so most tables never need hand-rolled table code.
94
105
  */
95
- export declare function DataTable<T>({ columns, data, rowId, caption, defaultSort, sortKey, sortDir, onSortChange, renderSortIcon, pageSize, page, onPageChange, pageCount: pageCountProp, total, manualPagination, selectedRowIds, onSelectedRowIdsChange, isRowSelectable, bulkActions, onRowClick, emptyMessage, selectAllLabel, selectedLabel, stickyHeader, density, zebra, loading, loadingRows, className, }: DataTableProps<T>): React.JSX.Element;
106
+ export declare function DataTable<T>({ columns, data, rowId, caption, defaultSort, sortKey, sortDir, onSortChange, renderSortIcon, pageSize, page, onPageChange, pageCount: pageCountProp, total, manualPagination, selectedRowIds, onSelectedRowIdsChange, isRowSelectable, bulkActions, onRowClick, emptyMessage, selectAllLabel, selectedLabel, stickyHeader, density, zebra, cardLayout, loading, loadingRows, className, }: DataTableProps<T>): React.JSX.Element;